From 974e30f17dbe3df13e0f01d006b6b643729d73fa Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Thu, 10 Aug 2023 13:28:32 +0800 Subject: [PATCH] 2023-8-10 --- src/store/modules/user.js | 6 ++ src/views/component/biaoqian.vue | 5 ++ src/views/component/table.vue | 92 ++++++++++++++++++++++------- src/views/reception/list1/index.vue | 5 ++ src/views/system/user.vue | 5 +- 5 files changed, 89 insertions(+), 24 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 00a74b5..0273a62 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -15,6 +15,7 @@ import { const getDefaultState = () => { return { token: getToken(), + id: "", name: '', avatar: '', roles: [], @@ -42,6 +43,9 @@ const mutations = { }, SET_DEPARTMENT:(state, department) => { state.department = department + }, + SET_ID:(state, id) => { + state.id = id } } @@ -86,6 +90,7 @@ const actions = { } response["roles"] = ["admin"]; const { + id, roles, name, avatar, @@ -98,6 +103,7 @@ const actions = { commit('SET_NAME', name) commit('SET_AVATAR', avatar) commit('SET_DEPARTMENT', department) + commit('SET_ID', id) resolve(response) }).catch(error => { reject(error) diff --git a/src/views/component/biaoqian.vue b/src/views/component/biaoqian.vue index 198c35a..05af5b2 100644 --- a/src/views/component/biaoqian.vue +++ b/src/views/component/biaoqian.vue @@ -52,6 +52,11 @@ export default { page_size: 20, table_name: "tags", filter: [ + { + key: 'zhuangtai', + op: 'eq', + value: '1' + }, { key: "mingcheng", op: "like", diff --git a/src/views/component/table.vue b/src/views/component/table.vue index 03742bb..269ba1f 100644 --- a/src/views/component/table.vue +++ b/src/views/component/table.vue @@ -12,7 +12,7 @@ +