diff --git a/src/pages/index/code/code_module_category/components/AddCodeModuleCategoryDialog.vue b/src/pages/index/code/code_module_category/components/AddCodeModuleCategoryDialog.vue index 7cf52c8..a1eafcb 100644 --- a/src/pages/index/code/code_module_category/components/AddCodeModuleCategoryDialog.vue +++ b/src/pages/index/code/code_module_category/components/AddCodeModuleCategoryDialog.vue @@ -112,7 +112,7 @@ async function getCustomerOptions() { //获取代码块类目树形列表 const dataList = ref([]) async function getList() { - await getCodeModuleCategoryList().then((res) => { + await getCodeModuleCategoryList({ all: true }).then((res) => { if (res.code == 0) { dataList.value = res.data } @@ -205,12 +205,12 @@ const rules = reactive({ // --基础方法 // 打开弹窗时执行 -const openDialog = () => { - get_global_mode() - get_library_type() - get_audit_status() - getCustomerOptions() - getList() +const openDialog = async () => { + await get_global_mode() + await get_library_type() + await get_audit_status() + await getCustomerOptions() + await getList() }; const closeDialog = () => { diff --git a/src/pages/index/code/code_module_category/components/DetailCodeModuleCategoryDialog.vue b/src/pages/index/code/code_module_category/components/DetailCodeModuleCategoryDialog.vue index 3966666..391425f 100644 --- a/src/pages/index/code/code_module_category/components/DetailCodeModuleCategoryDialog.vue +++ b/src/pages/index/code/code_module_category/components/DetailCodeModuleCategoryDialog.vue @@ -102,8 +102,8 @@ async function getCustomerOptions() { } //获取代码块类目树形列表 const dataList = ref([]) -function getList() { - getCodeModuleCategoryList().then((res) => { +async function getList() { + await getCodeModuleCategoryList({ all: true }).then((res) => { if (res.code == 0) { dataList.value = res.data } @@ -135,12 +135,12 @@ watch(props, (v) => { }); // 打开弹窗时执行 -const openDialog = () => { - get_global_mode() - get_library_type() - get_audit_status() - getCustomerOptions() - getList() +const openDialog = async () => { + await get_global_mode() + await get_library_type() + await get_audit_status() + await getCustomerOptions() + await getList() }; const closeDialog = () => { diff --git a/src/pages/index/code/code_module_category/components/EditCodeModuleCategoryDialog.vue b/src/pages/index/code/code_module_category/components/EditCodeModuleCategoryDialog.vue index 6f00a3b..49ec1f1 100644 --- a/src/pages/index/code/code_module_category/components/EditCodeModuleCategoryDialog.vue +++ b/src/pages/index/code/code_module_category/components/EditCodeModuleCategoryDialog.vue @@ -109,8 +109,8 @@ async function getCustomerOptions() { } const dataList = ref([]) -function getList() { - getCodeModuleCategoryList().then((res) => { +async function getList() { + await getCodeModuleCategoryList({ all: true }).then((res) => { if (res.code == 0) { dataList.value = res.data } @@ -173,12 +173,12 @@ watch(props, (v) => { }); // 打开弹窗时执行 -const openDialog = () => { - get_global_mode() - get_library_type() - get_audit_status() - getCustomerOptions() - getList() +const openDialog = async () => { + await get_global_mode() + await get_library_type() + await get_audit_status() + await getCustomerOptions() + await getList() }; const closeDialog = () => { diff --git a/src/pages/index/code/code_module_category/index.vue b/src/pages/index/code/code_module_category/index.vue index e086ed9..fd9899c 100644 --- a/src/pages/index/code/code_module_category/index.vue +++ b/src/pages/index/code/code_module_category/index.vue @@ -7,14 +7,17 @@ - - + + + + + - + @@ -25,9 +28,6 @@ :value="item.dictionary_value"> - - - 添加 - - @@ -75,11 +73,20 @@ - + @@ -126,65 +133,12 @@ const params = reactive({ code_module_category_name: "", code_module_category_ps: "", code_module_category_global_mode: "", - code_module_category_library_type: "", + code_module_category_library_type: "2", customer: "", - code_module_category_audit: "", + code_module_category_audit: "2", page: 1, limit: 10, }); -const column = [ - - { - fixed: true, - type: 'selection' - }, - { - prop: "code_module_category_name", - label: '类目名', - width: '150' - }, - { - prop: "code_module_category_ps", - label: '补充', - width: '150' - }, - { - prop: "code_module_category_parent_guid", - label: '父级guid', - width: '150' - }, - { - prop: "code_module_category_sort", - label: '排序', - width: '150' - }, - { - prop: "code_module_category_global_mode", - label: '全局模式', - width: '150' - }, - { - prop: "code_module_category_library_type", - label: '库类型', - width: '150' - }, - { - prop: "customer_guid", - label: '所属客户', - width: '150' - }, - { - prop: "code_module_category_audit", - label: '审核状态', - width: '150' - }, - { - label: '操作', - prop: 'chaoz', - width: '250', - fixed: 'right' - } -]; const handleCommand = ({ type, row }) => {