From 1f192bd3a2df3894f2955cc0c2f2a4d6afcd3888 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 31 五月 2024 14:52:36 +0800
Subject: [PATCH] 最新版本

---
 admin/src/components/system/menu/OperaMenuWindow.vue |    4 ++++
 admin/vue.config.js                                  |    7 ++++---
 admin/src/views/system/menu.vue                      |    1 +
 admin/src/store/index.js                             |    4 ++--
 4 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/admin/src/components/system/menu/OperaMenuWindow.vue b/admin/src/components/system/menu/OperaMenuWindow.vue
index 872bde2..a367642 100644
--- a/admin/src/components/system/menu/OperaMenuWindow.vue
+++ b/admin/src/components/system/menu/OperaMenuWindow.vue
@@ -17,6 +17,9 @@
       <el-form-item label="璁块棶璺緞" prop="path">
         <el-input v-model="form.path" placeholder="璇疯緭鍏ヨ闂矾寰�" v-trim maxlength="200"/>
       </el-form-item>
+      <el-form-item label="鎼哄甫鍙傛暟" prop="params">
+        <el-input v-model="form.params" placeholder="璇疯緭鍏ユ惡甯﹀弬鏁�" v-trim maxlength="200"/>
+      </el-form-item>
       <el-form-item label="鍥炬爣" prop="icon" class="form-item-icon">
         <el-radio-group v-model="form.icon">
           <el-radio :label="icon" v-for="icon in icons" :key="icon">
@@ -52,6 +55,7 @@
         id: null,
         parentId: null,
         name: '',
+        params:'',
         path: '',
         icon: '',
         remark: ''
diff --git a/admin/src/store/index.js b/admin/src/store/index.js
index 0782641..c97ca53 100644
--- a/admin/src/store/index.js
+++ b/admin/src/store/index.js
@@ -54,7 +54,7 @@
   pushtags(state,val){
     //濡傛灉绛変簬-1璇存槑tabs涓嶅瓨鍦ㄩ偅涔堟彃鍏ワ紝鍚﹀垯浠�涔堥兘涓嶅仛
     //findindex鎵捐鏍囷紝寰幆鍒ゆ柇涓�涓嬶紝濡傛灉绛変簬閭d箞灏变唬琛ㄦ湁鐩稿悓鐨勶紝灏变笉蹇呮坊鍔狅紝濡傛灉鎵句笉鍒伴偅灏辨槸-1.灏辨坊鍔�
-    let result = state.tags.findIndex(item => item.label === val.label)
+    let result = state.tags.findIndex(item => item.index === val.index)
     if (result === -1) {
       state.tags.push({...val, keepAlive: false})
     } else {
@@ -65,7 +65,7 @@
   //鍏抽棴鏍囩
   closeTab(state, val) {
     //鍚屼笂锛屾壘瑙掓爣锛岀劧鍚庣敤瑙掓爣鐨勪綅缃搴斿垹闄や竴浣嶃�俿plice锛氳繖鏄暟缁勭殑鍒犻櫎鏂规硶
-    let result = state.tags.findIndex(item => item.label === val.label)
+    let result = state.tags.findIndex(item => item.index === val.index)
     state.tags.splice(result, 1)
   },
   //鍏抽棴鎵�鏈塼agsview鏍囩
diff --git a/admin/src/views/system/menu.vue b/admin/src/views/system/menu.vue
index 2e98085..27b05ad 100644
--- a/admin/src/views/system/menu.vue
+++ b/admin/src/views/system/menu.vue
@@ -27,6 +27,7 @@
           </template>
         </el-table-column>
         <el-table-column prop="path" label="璁块棶璺緞" min-width="140px"></el-table-column>
+        <el-table-column prop="params" label="鍙傛暟" min-width="120px"></el-table-column>
         <el-table-column prop="remark" label="澶囨敞" min-width="120px"></el-table-column>
         <el-table-column prop="createUser" label="鍒涘缓浜�" min-width="100px">
           <template slot-scope="{row}">{{row.createUserInfo == null ? '' : row.createUserInfo.username}}</template>
diff --git a/admin/vue.config.js b/admin/vue.config.js
index b120104..c429385 100644
--- a/admin/vue.config.js
+++ b/admin/vue.config.js
@@ -12,15 +12,16 @@
   lintOnSave: false,
   devServer: {
     host: '0.0.0.0',
-    port: 10012
-  /*  proxy: {
+    port: 10012,
+    proxy: {
       [process.env.VUE_APP_API_PREFIX]: {
         target: process.env.VUE_APP_API_URL,
         changeOrigin: true,
         pathRewrite: {
           [`^${[process.env.VUE_APP_API_PREFIX]}`]: ''
         }
-      } */
+      }
+    }
   },
   configureWebpack: {
     resolve: {

--
Gitblit v1.9.3