From 39979c262a28500d5b982e10bdb919fdef9c4f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Sun, 1 Sep 2024 16:28:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=B4=E4=BF=9D=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=92=8C=E7=BB=B4=E4=BF=AE=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icons/ConfirmOrder.vue | 13 +++ src/assets/icons/MaintenanceSetup.vue | 13 +++ src/assets/icons/index.js | 2 + src/views/login/index.vue | 11 +- src/views/order/orderPlan/index.vue | 46 ++------ src/views/order/repairList/index.vue | 159 +++++++------------------- src/views/setting/role/index.vue | 10 +- 7 files changed, 89 insertions(+), 165 deletions(-) create mode 100644 src/assets/icons/ConfirmOrder.vue create mode 100644 src/assets/icons/MaintenanceSetup.vue diff --git a/src/assets/icons/ConfirmOrder.vue b/src/assets/icons/ConfirmOrder.vue new file mode 100644 index 0000000..055b709 --- /dev/null +++ b/src/assets/icons/ConfirmOrder.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/assets/icons/MaintenanceSetup.vue b/src/assets/icons/MaintenanceSetup.vue new file mode 100644 index 0000000..9771a3d --- /dev/null +++ b/src/assets/icons/MaintenanceSetup.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/assets/icons/index.js b/src/assets/icons/index.js index 823c507..fd884db 100644 --- a/src/assets/icons/index.js +++ b/src/assets/icons/index.js @@ -28,6 +28,8 @@ export { default as AgentMaintenance } from './AgentMaintenance.vue' export { default as CostAllocation } from './CostAllocation.vue' export { default as K3Api } from './K3Api.vue' export { default as CostSetup } from './CostSetup.vue' +export { default as MaintenanceSetup } from './MaintenanceSetup.vue' +export { default as ConfirmOrder } from './ConfirmOrder.vue' export { default as DataSource } from './DataSource.vue' export { default as MachineRoom } from './MachineRoom.vue' export { default as CreateFolder } from './CreateFolder.vue' diff --git a/src/views/login/index.vue b/src/views/login/index.vue index b09e705..c4cfdc2 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -177,16 +177,13 @@ async setLoginData(user) { this.$TOOL.cookie.set("TOKEN", user.data.token, { - expires: this.form.autologin ? 24 * 60 * 60 : 0 + expires: 0 }) this.$TOOL.data.set("USER_INFO", user.data.user) if(user.data.user.avatar!=''){ this.$store.commit("SET_LOGIN_AVATAR", user.data.user.avatar); } this.$store.commit("SET_LOGIN_NAME", user.data.user.name); - // 创建WebSocket连接 - // let global_callback = function () {}; - // this.$socketApi.createWebSocket(global_callback, user.data.token); //获取菜单 let menu = null; @@ -243,9 +240,9 @@ userHandle:this.bufferToBase64URL(assertion.response.userHandle), } } - const res = await this.$API.system.user.verifyAuthentication.post(params); - if(res.code == 200){ - await this.setLoginData(res); + const user = await this.$API.system.user.verifyAuthentication.post(params); + if(user.code == 200){ + await this.setLoginData(user); } }, bufferToBase64URL(buffer) { diff --git a/src/views/order/orderPlan/index.vue b/src/views/order/orderPlan/index.vue index 959a5c7..99f8ccd 100644 --- a/src/views/order/orderPlan/index.vue +++ b/src/views/order/orderPlan/index.vue @@ -1,25 +1,7 @@