From 86003276d5ccf73b21874c6fb98364849dd72beb Mon Sep 17 00:00:00 2001 From: glj Date: Fri, 5 May 2023 16:08:58 +0800 Subject: [PATCH] =?UTF-8?q?glj-=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/DisasterTable.vue | 5 +++++ src/views/systemManagement/administrator/component/audit.vue | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/table/DisasterTable.vue b/src/components/table/DisasterTable.vue index 4fd8a86..2af37ad 100644 --- a/src/components/table/DisasterTable.vue +++ b/src/components/table/DisasterTable.vue @@ -39,6 +39,7 @@ import { onMounted, reactive, computed, defineProps, defineEmits } from "vue"; import { getList } from "/@/api/system/dictbiz.js"; import { getPage } from "/@/api/disasterInfo/index.js"; +import { Session } from '/@/utils/storage'; //定义表格点击后的回调 const emit = defineEmits(["click"]); //定义组件接收的参数 @@ -84,6 +85,10 @@ const getDictBizData = () => { //获取灾害列表 const getDisasterTable = () => { convert(); + let userData = Session.get('userInfo'); + console.log(userData,"userDatauserData"); + state.search.chiefIdEquals = userData.id; + state.search.roleName = userData.roles[0]; getPage(state.disasterData.param.pageNum, state.disasterData.param.pageSize, state.search).then(res => { state.disasterData.data = res.records; state.disasterData.data.forEach(item => { diff --git a/src/views/systemManagement/administrator/component/audit.vue b/src/views/systemManagement/administrator/component/audit.vue index a22ddad..f7ff178 100644 --- a/src/views/systemManagement/administrator/component/audit.vue +++ b/src/views/systemManagement/administrator/component/audit.vue @@ -19,7 +19,6 @@