修复bug:#16407 清单排查后发现隐患,隐患整改未看到数据。

dev
WL 2024-06-21 15:40:27 +08:00
parent 174e504780
commit 27b5c216c9
2 changed files with 20 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import { nextTick, ref } from "vue"; import { nextTick, ref } from "vue";
import { getDataType } from "@/assets/js/utils.js"; import { getDataType } from "@/assets/js/utils.js";
import { getLevels } from "@/request/data_dictionary.js";
/** /**
* @param api {Function} 接口函数 * @param api {Function} 接口函数
@ -97,3 +98,10 @@ export default function useListData(api, options = {}) {
await fnResetPagination(otherParams), await fnResetPagination(otherParams),
}; };
} }
export const layoutFnGetHiddenLevelList = async () => {
const resData = await getLevels({
DICTIONARIES_ID: "5e7cf8620ba54ad89719d0be62133c7a",
});
return ref(resData);
};

View File

@ -12,6 +12,13 @@
<el-input v-model="searchForm.KEYWORDS" /> <el-input v-model="searchForm.KEYWORDS" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item label="隐患级别:" prop="HIDDENLEVEL">
<el-select v-model="searchForm.HIDDENLEVEL" placeholder="请选择">
<el-option v-for="item in hiddenLevelList" :key="item.BIANMA" :label="item.NAME" :value="item.BIANMA" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="发现日期" prop="dates"> <el-form-item label="发现日期" prop="dates">
<el-date-picker <el-date-picker
@ -121,7 +128,7 @@
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { serialNumber, translationStatus } from "@/assets/js/utils"; import { serialNumber, translationStatus } from "@/assets/js/utils";
import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js"; import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js";
import useListData from "@/assets/js/useListData.js"; import useListData, { layoutFnGetHiddenLevelList } from "@/assets/js/useListData.js";
import { getHiddenDangerListAll } from "@/request/hidden_danger_government.js"; import { getHiddenDangerListAll } from "@/request/hidden_danger_government.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
@ -134,7 +141,8 @@ const stateList = [
const router = useRouter(); const router = useRouter();
const { list, pagination, searchForm, fnGetData, fnResetPagination } = const { list, pagination, searchForm, fnGetData, fnResetPagination } =
useListData(getHiddenDangerListAll, { useListData(getHiddenDangerListAll, {
otherParams: { HIDDENLEVEL: "hiddenLevel0001", DISPOSESTATE: "2" }, // 2024.6.21 HIDDENLEVEL: "hiddenLevel0001"
otherParams: { DISPOSESTATE: "2" },
}); });
const fnGetDataTransfer = () => { const fnGetDataTransfer = () => {
fnGetData({ fnGetData({
@ -159,6 +167,8 @@ const fnRectification = (row) => {
query: { HIDDEN_ID: row.HIDDEN_ID, LIST_TYPE: row.LIST_TYPE }, query: { HIDDEN_ID: row.HIDDEN_ID, LIST_TYPE: row.LIST_TYPE },
}); });
}; };
const relatedClassificationTempList = await layoutFnGetHiddenLevelList();
const hiddenLevelList = relatedClassificationTempList.value.list;
</script> </script>
<style scoped></style> <style scoped></style>