Hwt 2 vuotta sitten
vanhempi
commit
eba22536c3

+ 31 - 22
operationSupport/src/components/common/MenuTree.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2022-08-24 11:40:11
- * @LastEditTime: 2022-09-13 10:52:48
+ * @LastEditTime: 2022-10-10 18:52:30
  * @LastEditors: D4THYL3
  * @Description: In User Settings Edit
  * @FilePath: \operationSupport\src\components\common\MenuTree.vue
@@ -14,24 +14,39 @@
         :index="'/' + item.linkPath"
         :key="item.id"
       >
+
         <template slot="title">
-          <!-- <img
-            :src="`${envConfig.baseImgApi}${
+          <div v-if="item.parentMenuId != 405">
+            <img
+              :src="`${envConfig.baseImgApi}${
                             openArray.includes(item.linkPath) ? item.menuDynamicImage || item.menuImage : item.menuImage
                         }`"
-            style="width: 14px; height: 14px; margin-right: 10px"
-          /> -->
-          <img
-            v-show="item.parentMenuId != 405"
-            :src="`${envConfig.baseImgApi}${
+              style="width: 14px; height: 14px; margin-right: 10px"
+            />
+            <span
+              v-if="!collapse"
+              slot="title"
+            >{{ item.name }}</span>
+          </div>
+          <div v-else>
+            <img
+              :src="`${envConfig.baseImgApi}${
                             openArray.includes(item.linkPath) ? item.menuDynamicImage || item.menuImage : item.menuImage
                         }`"
-            style="width: 14px; height: 14px; margin-right: 10px"
-          />
-          <span
-            v-if="!collapse"
-            slot="title"
-          >{{ item.name }}</span>
+              alt=""
+              style="margin-right:10px"
+            >
+            <span
+              slot="title"
+              v-if="openArray.includes(item.linkPath)"
+              style="color: #0eaeff;"
+            >{{ item.name }}</span>
+            <span
+              slot="title"
+              v-else
+            >{{ item.name  }}</span>
+          </div>
+
         </template>
         <menu-tree
           :menuList="item.children"
@@ -43,12 +58,6 @@
         :index="'/' + item.linkPath"
         :key="item.id"
       >
-        <!-- <img
-          :src="`${envConfig.baseImgApi}${
-                        openArray.includes(item.linkPath) ? item.menuDynamicImage || item.menuImage : item.menuImage
-                    }`"
-          style="width: 14px; height: 14px; margin-right: 10px"
-        /> -->
         <img
           v-if="item.linkPath == 'newWorkBench/index' || item.linkPath =='flow/index'"
           :src="`${envConfig.baseImgApi}${
@@ -59,13 +68,13 @@
         <img
           src="@/assets/img/menuicon/xuanzhong2.png"
           alt=""
-          v-if="openArray.includes(item.linkPath) && item.linkPath != 'newWorkBench/index' && item.linkPath !='flow/index'"
+          v-if="openArray.includes(item.linkPath) && item.linkPath != 'newWorkBench/index' && item.linkPath !='flow/index' && item.parentMenuId != '465'"
           style=" margin-right: 10px"
         >
         <img
           src="@/assets/img/menuicon/changtai.png"
           alt=""
-          v-if="!openArray.includes(item.linkPath) && item.linkPath != 'newWorkBench/index' && item.linkPath !='flow/index'"
+          v-if="!openArray.includes(item.linkPath) && item.linkPath != 'newWorkBench/index' && item.linkPath !='flow/index' && item.parentMenuId != '465'"
           style=" margin-right: 10px"
         >
         <span slot="title">{{ item.name }}</span>

+ 8 - 2
operationSupport/src/components/common/Sidebar.vue

@@ -92,13 +92,19 @@ export default {
     },
     thisfindMen (arr, indexPath) {
       let status = [];
-      arr.map((v) => {
-        if (v.children) {
+      arr.map((v, index) => {
+        if (v.children && v.id != '405') {
           v.children.map((s) => {
             if ('/' + s.linkPath === indexPath) {
               status.push(v.linkPath, s.linkPath);
             }
           });
+        } else if (v.id == '405') {
+          for (let i = 0; i < v.children[v.children.length - 1].children.length; i++) {
+            if ('/' + v.children[v.children.length - 1].children[i].linkPath === indexPath) {
+              status.push(v.children[v.children.length - 1].linkPath, v.children[v.children.length - 1].children[i].linkPath);
+            }
+          }
         } else {
           if ('/' + v.linkPath === indexPath) {
             status.push(v.linkPath);

+ 6 - 6
operationSupport/vue.config.js

@@ -1,8 +1,8 @@
 /*
  * @Author: zouwenying
  * @Date: 2020-10-21 18:14:35
- * @LastEditTime: 2021-04-27 17:28:49
- * @LastEditors: zwy
+ * @LastEditTime: 2022-10-10 17:46:27
+ * @LastEditors: D4THYL3
  * @Description: In User Settings Edit
  * @FilePath: \vue-manage-system-master\vue.config.js
  */
@@ -35,8 +35,8 @@ module.exports = {
             });
 
         // // 配置每次打包浏览器缓存文件名的随机性
-        const filename = path.posix.join('js', `${new Date().getTime()}_[name].js`);
-        config.mode('production').devtool(false).output.filename(filename).chunkFilename(filename);
+        // const filename = path.posix.join('js', `${new Date().getTime()}_[name].js`);
+        // config.mode('production').devtool(false).output.filename(filename).chunkFilename(filename);
     },
     // 配置全局样式变量
     css: {
@@ -62,8 +62,8 @@ module.exports = {
         },
         extract: {
             // 打包后css文件名称添加时间戳
-            filename: `css/[name].${new Date().getTime()}.css`,
-            chunkFilename: `css/chunk.[id].${new Date().getTime()}.css`
+            // filename: `css/[name].${new Date().getTime()}.css`,
+            // chunkFilename: `css/chunk.[id].${new Date().getTime()}.css`
         }
     },
     configureWebpack: {