From 49204f6a06f62a8a8f0ad9b04834144146bffaf0 Mon Sep 17 00:00:00 2001 From: yyhouc <792163605@qq.com> Date: Wed, 12 Apr 2023 10:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/disasterInfo/index.js | 2 +- src/views/responseManagement/userResponse/index.vue | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/api/disasterInfo/index.js b/src/api/disasterInfo/index.js index 2625925..bee51f0 100644 --- a/src/api/disasterInfo/index.js +++ b/src/api/disasterInfo/index.js @@ -12,7 +12,7 @@ export function getList(params) { export function review(id) { return request({ url: '/api/'+moduleName+'/ui/disasterInfo/review', - method: 'get', + method: 'post', params: { id }, }); } \ No newline at end of file diff --git a/src/views/responseManagement/userResponse/index.vue b/src/views/responseManagement/userResponse/index.vue index f6dbd25..b4604db 100644 --- a/src/views/responseManagement/userResponse/index.vue +++ b/src/views/responseManagement/userResponse/index.vue @@ -80,7 +80,8 @@ @@ -125,8 +126,8 @@ import { getDictionary } from '/@/api/system/dictbiz'; const activeName = ref('first'); const handleClick = (tab ,event) => { - console.log(activeName,tab, event); - // getTableData(); + state.selectName=tab.props.name; + getTableData(); }; // 引入组件 const RoleDialog = defineAsyncComponent(() => import('/@/views/system/role/dialog.vue')); @@ -146,16 +147,18 @@ const state = reactive({ }, }, disasterTypeList: [], + selectName: 'first', }); // 初始化表格数据 const getTableData = () => { state.tableData.loading = true; //根据activeName的值来判断是哪个tab页 - if(activeName.value === 'first'){ + if(state.selectName === 'first'){ state.tableData.param.respondStatus = 0; }else{ - state.tableData.param.respondStatus = 1; + state.tableData.param.respondStatus = 2; } + console.log(activeName.value); getList(state.tableData.param).then((res) => { state.tableData.data = res.records; state.tableData.total = res.total;