From b590b01a1d2b01136543e04b2aebf45b51883d0c Mon Sep 17 00:00:00 2001 From: lwh <2679599887@qq.com> Date: Fri, 30 Jun 2023 09:38:32 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E4=BB=A3=E7=A0=81=E5=BA=93=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E7=B1=BB=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DataTable.jsx | 2 +- .../components/AddCodeModuleDialog.vue | 38 ++-- .../components/DetailCodeModuleDialog.vue | 136 ++++++------ .../components/EditCodeModuleDialog.vue | 198 +++++++++--------- src/pages/index/code/code_module/index.vue | 34 +-- 5 files changed, 221 insertions(+), 187 deletions(-) diff --git a/src/components/DataTable.jsx b/src/components/DataTable.jsx index b8b66de..ae9518e 100644 --- a/src/components/DataTable.jsx +++ b/src/components/DataTable.jsx @@ -19,7 +19,7 @@ export default defineComponent({ params = {}, loading = {}, debug = false, - border = true, + border = false, ...attr } = attrs; diff --git a/src/pages/index/code/code_module/components/AddCodeModuleDialog.vue b/src/pages/index/code/code_module/components/AddCodeModuleDialog.vue index a6c1a33..67bea48 100644 --- a/src/pages/index/code/code_module/components/AddCodeModuleDialog.vue +++ b/src/pages/index/code/code_module/components/AddCodeModuleDialog.vue @@ -3,15 +3,16 @@ - - - - - - - - + + + + @@ -64,6 +65,7 @@ - + diff --git a/src/pages/index/code/code_module/components/EditCodeModuleDialog.vue b/src/pages/index/code/code_module/components/EditCodeModuleDialog.vue index d3399f2..742c08c 100644 --- a/src/pages/index/code/code_module/components/EditCodeModuleDialog.vue +++ b/src/pages/index/code/code_module/components/EditCodeModuleDialog.vue @@ -2,54 +2,53 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -64,23 +63,34 @@ - + diff --git a/src/pages/index/code/code_module/index.vue b/src/pages/index/code/code_module/index.vue index b9719e9..b21f863 100644 --- a/src/pages/index/code/code_module/index.vue +++ b/src/pages/index/code/code_module/index.vue @@ -7,11 +7,15 @@ - - - - + + + @@ -124,6 +128,7 @@ import { ArrowDown } from '@element-plus/icons-vue'; import { ref, reactive, watch } from 'vue'; import { useLoginStore } from "~/store"; import { getCodeModuleList, editCodeModule, deleteCodeModule, getDictionary, downloadTemplate, importExcel, exportExcel, audit } from '~/service/code_module'; +import { getCodeModuleCategoryList } from "~/service/code_module_category"; import AddCodeModuleDialog from './components/AddCodeModuleDialog.vue'; import EditCodeModuleDialog from './components/EditCodeModuleDialog.vue'; import DetailCodeModuleDialog from './components/DetailCodeModuleDialog.vue'; @@ -146,10 +151,10 @@ const headers = { // 查询参数 const params = reactive({ customer_guid: "", - code_module_catetory_guid: "", + code_module_category_guid: "", code_module_name: "", code_module_audit: "", - + }); const column = [ @@ -158,12 +163,7 @@ const column = [ type: 'selection' }, { - prop: "customer_name", - label: '所属客户', - width: '150' - }, - { - prop: "code_module_catetory_name", + prop: "code_module_category_name", label: '类目', width: '150' }, @@ -226,6 +226,16 @@ function handleDetail(row) { DetailCodeModuleDialogRow.value = row } +//获取代码块类目树形列表 +const dataList = ref([]) +async function getList() { + await getCodeModuleCategoryList({ 'all': true }).then((res) => { + if (res.code == 0) { + dataList.value = res.data + } + }) +} +getList() // 导入方法 let loadingImoprt = null;