diff --git a/src/assets/js/useListData.js b/src/assets/js/useListData.js index 12d83fd..a1b79eb 100644 --- a/src/assets/js/useListData.js +++ b/src/assets/js/useListData.js @@ -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); +}; \ No newline at end of file diff --git a/src/views/hidden_danger_government/rectification/index.vue b/src/views/hidden_danger_government/rectification/index.vue index b36f8a0..27736a6 100644 --- a/src/views/hidden_danger_government/rectification/index.vue +++ b/src/views/hidden_danger_government/rectification/index.vue @@ -12,6 +12,13 @@ + + + + + + + { 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;