forked from integrated_whb/integrated_whb_vue
修复bug:#16407 清单排查后发现隐患,隐患整改未看到数据。
parent
174e504780
commit
27b5c216c9
|
@ -1,5 +1,6 @@
|
|||
import { nextTick, ref } from "vue";
|
||||
import { getDataType } from "@/assets/js/utils.js";
|
||||
import { getLevels } from "@/request/data_dictionary.js";
|
||||
|
||||
/**
|
||||
* @param api {Function} 接口函数
|
||||
|
@ -97,3 +98,10 @@ export default function useListData(api, options = {}) {
|
|||
await fnResetPagination(otherParams),
|
||||
};
|
||||
}
|
||||
|
||||
export const layoutFnGetHiddenLevelList = async () => {
|
||||
const resData = await getLevels({
|
||||
DICTIONARIES_ID: "5e7cf8620ba54ad89719d0be62133c7a",
|
||||
});
|
||||
return ref(resData);
|
||||
};
|
|
@ -12,6 +12,13 @@
|
|||
<el-input v-model="searchForm.KEYWORDS" />
|
||||
</el-form-item>
|
||||
</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-form-item label="发现日期" prop="dates">
|
||||
<el-date-picker
|
||||
|
@ -121,7 +128,7 @@
|
|||
import { useRouter } from "vue-router";
|
||||
import { serialNumber, translationStatus } from "@/assets/js/utils";
|
||||
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 { ElMessage } from "element-plus";
|
||||
|
||||
|
@ -134,7 +141,8 @@ const stateList = [
|
|||
const router = useRouter();
|
||||
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
|
||||
useListData(getHiddenDangerListAll, {
|
||||
otherParams: { HIDDENLEVEL: "hiddenLevel0001", DISPOSESTATE: "2" },
|
||||
// 2024.6.21 删除HIDDENLEVEL: "hiddenLevel0001",改为查询所有,然后添加根据隐患级别筛选
|
||||
otherParams: { DISPOSESTATE: "2" },
|
||||
});
|
||||
const fnGetDataTransfer = () => {
|
||||
fnGetData({
|
||||
|
@ -159,6 +167,8 @@ const fnRectification = (row) => {
|
|||
query: { HIDDEN_ID: row.HIDDEN_ID, LIST_TYPE: row.LIST_TYPE },
|
||||
});
|
||||
};
|
||||
const relatedClassificationTempList = await layoutFnGetHiddenLevelList();
|
||||
const hiddenLevelList = relatedClassificationTempList.value.list;
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
|
Loading…
Reference in New Issue