修复显示问题
This commit is contained in:
parent
293a87ea5f
commit
49204f6a06
|
@ -12,7 +12,7 @@ export function getList(params) {
|
||||||
export function review(id) {
|
export function review(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/'+moduleName+'/ui/disasterInfo/review',
|
url: '/api/'+moduleName+'/ui/disasterInfo/review',
|
||||||
method: 'get',
|
method: 'post',
|
||||||
params: { id },
|
params: { id },
|
||||||
});
|
});
|
||||||
}
|
}
|
|
@ -80,7 +80,8 @@
|
||||||
<el-table-column prop="respondStatus" label="Response status" show-overflow-tooltip>
|
<el-table-column prop="respondStatus" label="Response status" show-overflow-tooltip>
|
||||||
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag type="info" v-if="scope.row.respondStatus!==0">reviewed</el-tag>
|
<el-tag type="info" v-if="scope.row.respondStatus===2">Reviewed</el-tag>
|
||||||
|
<el-tag type="info" v-if="scope.row.respondStatus===1">Failed</el-tag>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -125,8 +126,8 @@ import { getDictionary } from '/@/api/system/dictbiz';
|
||||||
const activeName = ref('first');
|
const activeName = ref('first');
|
||||||
|
|
||||||
const handleClick = (tab ,event) => {
|
const handleClick = (tab ,event) => {
|
||||||
console.log(activeName,tab, event);
|
state.selectName=tab.props.name;
|
||||||
// getTableData();
|
getTableData();
|
||||||
};
|
};
|
||||||
// 引入组件
|
// 引入组件
|
||||||
const RoleDialog = defineAsyncComponent(() => import('/@/views/system/role/dialog.vue'));
|
const RoleDialog = defineAsyncComponent(() => import('/@/views/system/role/dialog.vue'));
|
||||||
|
@ -146,16 +147,18 @@ const state = reactive({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
disasterTypeList: [],
|
disasterTypeList: [],
|
||||||
|
selectName: 'first',
|
||||||
});
|
});
|
||||||
// 初始化表格数据
|
// 初始化表格数据
|
||||||
const getTableData = () => {
|
const getTableData = () => {
|
||||||
state.tableData.loading = true;
|
state.tableData.loading = true;
|
||||||
//根据activeName的值来判断是哪个tab页
|
//根据activeName的值来判断是哪个tab页
|
||||||
if(activeName.value === 'first'){
|
if(state.selectName === 'first'){
|
||||||
state.tableData.param.respondStatus = 0;
|
state.tableData.param.respondStatus = 0;
|
||||||
}else{
|
}else{
|
||||||
state.tableData.param.respondStatus = 1;
|
state.tableData.param.respondStatus = 2;
|
||||||
}
|
}
|
||||||
|
console.log(activeName.value);
|
||||||
getList(state.tableData.param).then((res) => {
|
getList(state.tableData.param).then((res) => {
|
||||||
state.tableData.data = res.records;
|
state.tableData.data = res.records;
|
||||||
state.tableData.total = res.total;
|
state.tableData.total = res.total;
|
||||||
|
|
Loading…
Reference in New Issue