dev01 преди 1 година
родител
ревизия
ac6b637339
променени са 12 файла, в които са добавени 22 реда и са изтрити 24 реда
  1. 2 2
      .env.development
  2. 2 2
      .env.production
  3. 2 2
      .env.staging
  4. 2 2
      package.json
  5. 1 1
      public/index.html
  6. 3 6
      src/layout/components/Sidebar/Logo.vue
  7. 1 1
      src/store/modules/user.js
  8. 1 1
      src/views/index.vue
  9. 1 1
      src/views/login.vue
  10. 1 1
      src/views/register.vue
  11. 4 3
      src/views/system/dept/index.vue
  12. 2 2
      vue.config.js

+ 2 - 2
.env.development

@@ -1,10 +1,10 @@
 # 页面标题
-VUE_APP_TITLE = 科德研发工时管理服务系统
+VUE_APP_TITLE = 研发工时管理服务系统
 
 # 开发环境配置
 ENV = 'development'
 
-# 科德研发工时管理服务系统/开发环境
+# 研发工时管理服务系统/开发环境
 VUE_APP_BASE_API = '/dev-api'
 
 # 路由懒加载

+ 2 - 2
.env.production

@@ -1,8 +1,8 @@
 # 页面标题
-VUE_APP_TITLE = 科德研发工时管理服务系统
+VUE_APP_TITLE = 研发工时管理服务系统
 
 # 生产环境配置
 ENV = 'production'
 
-# 科德研发工时管理服务系统/生产环境
+# 研发工时管理服务系统/生产环境
 VUE_APP_BASE_API = '/prod-api'

+ 2 - 2
.env.staging

@@ -1,10 +1,10 @@
 # 页面标题
-VUE_APP_TITLE = 科德研发工时管理服务系统
+VUE_APP_TITLE = 研发工时管理服务系统
 
 NODE_ENV = production
 
 # 测试环境配置
 ENV = 'staging'
 
-# 科德研发工时管理服务系统/测试环境
+# 研发工时管理服务系统/测试环境
 VUE_APP_BASE_API = '/stage-api'

+ 2 - 2
package.json

@@ -1,8 +1,8 @@
 {
   "name": "ruoyi",
   "version": "3.8.6",
-  "description": "科德研发工时管理服务系统",
-  "author": "科德",
+  "description": "研发工时管理服务系统",
+  "author": "",
   "license": "MIT",
   "scripts": {
     "dev": "vue-cli-service serve",

+ 1 - 1
public/index.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="renderer" content="webkit">
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
-    <link rel="icon" href="<%= BASE_URL %>logo.png">
+    <!-- <link rel="icon" href="<%= BASE_URL %>logo.png"> -->
     <title><%= webpackConfig.name %></title>
     <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
 	  <style>

+ 3 - 6
src/layout/components/Sidebar/Logo.vue

@@ -12,12 +12,10 @@
     <transition name="sidebarLogoFade">
       <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
         <img
-          v-if="company.companyLogo"
           :src="realSrc(company.companyLogo)"
           class="sidebar-logo"
         />
         <h1
-          v-else
           class="sidebar-title"
           :style="{
             color:
@@ -26,12 +24,11 @@
                 : variables.logoLightTitleColor,
           }"
         >
-          {{ company.companyFullName }}
+          {{ company.companyFullName || "管理系统" }}
         </h1>
       </router-link>
       <router-link v-else key="expand" class="sidebar-logo-link" to="/">
         <img
-          v-if="company.companyLogo"
           :src="realSrc(company.companyLogo)"
           class="sidebar-logo"
         />
@@ -44,7 +41,7 @@
                 : variables.logoLightTitleColor,
           }"
         >
-          {{ company.companyFullName }}
+          {{ company.companyFullName || "管理系统" }}
         </h1>
       </router-link>
     </transition>
@@ -82,7 +79,7 @@ export default {
   methods: {
     realSrc(src) {
       if (!src) {
-        return;
+        return logoImg;
       }
       return process.env.VUE_APP_BASE_API + src;
     },

+ 1 - 1
src/store/modules/user.js

@@ -69,7 +69,7 @@ const user = {
           commit('SET_NAME', user.userName)
           commit('SET_NICKNAME', user.nickName)
           commit('SET_AVATAR', avatar)
-          commit('SET_COMPANY', res.company)
+          commit('SET_COMPANY', res.company || {})
           resolve(res)
         }).catch(error => {
           reject(error)

+ 1 - 1
src/views/index.vue

@@ -2,7 +2,7 @@
   <div class="app-container home">
     <el-row :gutter="20">
       <el-col :sm="24" :lg="12" style="padding-left: 20px">
-        <h2>欢迎使用科德研发工时管理服务系统</h2>
+        <h2>欢迎使用研发工时管理服务系统</h2>
       </el-col>
     </el-row>
   </div>

+ 1 - 1
src/views/login.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="login">
     <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
-      <h3 class="title">科德研发工时管理服务系统</h3>
+      <h3 class="title">研发工时管理服务系统</h3>
       <el-form-item prop="username">
         <el-input
           v-model="loginForm.username"

+ 1 - 1
src/views/register.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="register">
     <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
-      <h3 class="title">科德研发工时管理服务系统</h3>
+      <h3 class="title">研发工时管理服务系统</h3>
       <el-form-item prop="username">
         <el-input v-model="registerForm.username" type="text" auto-complete="off" placeholder="账号">
           <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />

+ 4 - 3
src/views/system/dept/index.vue

@@ -384,8 +384,8 @@ export default {
       listDept().then((response) => {
         this.deptOptions = this.handleTree(response.data, "deptId");
         this.form.parentId = response.data[0].deptId;
-        // parentId == 100为创建公司
-        this.isERP = response.data[0].parentId == 100;
+        // deptId == 100为创建公司
+        this.isERP = response.data[0].deptId == 100;
       });
     },
     /** 展开/折叠操作 */
@@ -401,6 +401,7 @@ export default {
       this.reset();
       getDept(row.deptId).then((response) => {
         this.form = response.data;
+        this.isERP = response.data.parentId == 100;
         this.open = true;
         this.title = "修改部门";
         listDeptExcludeChild(row.deptId).then((response) => {
@@ -461,7 +462,7 @@ export default {
       return process.env.VUE_APP_BASE_API + src;
     },
     treeSelectChange(value) {
-      this.isERP = value.parentId == 100;
+      this.isERP = value.deptId == 100;
     },
   },
 };

+ 2 - 2
vue.config.js

@@ -35,8 +35,8 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://172.16.0.255:8888`,
-        // target: `https://yanfa.jishutao.com/prod-api`,
+        // target: `http://172.16.0.255:8888`,
+        target: `https://yanfa.jishutao.com/prod-api`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''