diff --git a/src/components/table/DisasterTable.vue b/src/components/table/DisasterTable.vue
index 982ccb3..fa81599 100644
--- a/src/components/table/DisasterTable.vue
+++ b/src/components/table/DisasterTable.vue
@@ -5,6 +5,11 @@
v-model="state.search.disasterType">
+
+
+
+
@@ -40,7 +45,8 @@ const emit = defineEmits(["click"]);
const props = defineProps({
//响应状态
status: {
- type: Number
+ type: Number,
+ default: 2
},
})
const state = reactive({
@@ -76,6 +82,7 @@ const getDictBizData = () => {
}
//获取灾害列表
const getDisasterTable = () => {
+ convert();
getPage(state.disasterData.param.pageNum, state.disasterData.param.pageSize, state.search).then(res => {
state.disasterData.data = res.records;
state.disasterData.data.forEach(item => {
@@ -85,6 +92,10 @@ const getDisasterTable = () => {
state.disasterData.total = res.total;
})
}
+//判断查询条件
+const convert = () => {
+ state.search.disasterStatus ? state.search.respondStatus = state.search.disasterStatus : state.search.respondStatus = 2
+}
// 分页改变
const onHandleDisasterSizeChange = (val) => {
state.disasterData.param.pageSize = val;