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 @@ +