cc7ff2f3 by xukangle

update : 分类分级目录

1 parent dcdb4505
...@@ -748,6 +748,7 @@ export const createTableSql = (data) => request({ ...@@ -748,6 +748,7 @@ export const createTableSql = (data) => request({
748 export const exportCgDir = () => request({ 748 export const exportCgDir = () => request({
749 url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/cg-dir/export`, 749 url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/cg-dir/export`,
750 method: 'post', 750 method: 'post',
751 responseType: 'blob',
751 }) 752 })
752 753
753 /** 754 /**
...@@ -758,6 +759,7 @@ export const exportCgDir = () => request({ ...@@ -758,6 +759,7 @@ export const exportCgDir = () => request({
758 export const exportDbDirTable = (params) => request({ 759 export const exportDbDirTable = (params) => request({
759 url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/db-dir/table/export?execGuid=${params.execGuid}`, 760 url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/db-dir/table/export?execGuid=${params.execGuid}`,
760 method: 'post', 761 method: 'post',
762 responseType: 'blob',
761 }) 763 })
762 764
763 /** 765 /**
...@@ -767,7 +769,7 @@ export const exportDbDirTable = (params) => request({ ...@@ -767,7 +769,7 @@ export const exportDbDirTable = (params) => request({
767 * 769 *
768 */ 770 */
769 export const getDbDirDetail = (params) => request({ 771 export const getDbDirDetail = (params) => request({
770 url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/db-dir/detail?guid=${params.tableGuid}`, 772 url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/db-dir/detail?tableGuid=${params.tableGuid}`,
771 method: 'get', 773 method: 'get',
772 }) 774 })
773 775
......
...@@ -7,6 +7,7 @@ import TableTools from '@/components/Tools/table_tools.vue'; ...@@ -7,6 +7,7 @@ import TableTools from '@/components/Tools/table_tools.vue';
7 import { getGradeList } from "@/api/modules/dataInventory"; 7 import { getGradeList } from "@/api/modules/dataInventory";
8 import { getLabelList, getClassifyGradeTreeList, saveLabel, getLabelPageList, deleteLabel, updateLabel } from "@/api/modules/dataLabel"; 8 import { getLabelList, getClassifyGradeTreeList, saveLabel, getLabelPageList, deleteLabel, updateLabel } from "@/api/modules/dataLabel";
9 import { CirclePlus, Delete, Warning } from "@element-plus/icons-vue"; 9 import { CirclePlus, Delete, Warning } from "@element-plus/icons-vue";
10 import { tr } from 'element-plus/es/locale';
10 11
11 12
12 const { proxy } = getCurrentInstance() as any; 13 const { proxy } = getCurrentInstance() as any;
...@@ -39,7 +40,8 @@ const getClassifyGradeTree = async () => { ...@@ -39,7 +40,8 @@ const getClassifyGradeTree = async () => {
39 } 40 }
40 // 分别赋值 分类guid 41 // 分别赋值 分类guid
41 classifyGuid.value = classGradeTreeData.value[0].guid; 42 classifyGuid.value = classGradeTreeData.value[0].guid;
42 newCreateGradeFormItems.value[1].options = transformDataForTree(transformedData) 43 console.log('getClassifyGradeTree', transformedData);
44 newCreateGradeFormItems.value[1].options = transformDataForTree([transformedData[0]])
43 treeInfo.value.loading = false; 45 treeInfo.value.loading = false;
44 isAddDisabled.value = false; 46 isAddDisabled.value = false;
45 } else { 47 } else {
...@@ -78,8 +80,8 @@ const getLabelPageData = async () => { ...@@ -78,8 +80,8 @@ const getLabelPageData = async () => {
78 refCount.value++; 80 refCount.value++;
79 tableInfo.value.loading = true; 81 tableInfo.value.loading = true;
80 const params = { 82 const params = {
81 pageIndex: 1, 83 pageIndex: page.value.curr,
82 pageSize: 50, 84 pageSize: page.value.limit,
83 classifyGuid: classifyGuid.value, 85 classifyGuid: classifyGuid.value,
84 detailGuid: classifyDetailGuid.value 86 detailGuid: classifyDetailGuid.value
85 } 87 }
...@@ -208,7 +210,7 @@ const deleteLabelGuids = ref<any>([]); ...@@ -208,7 +210,7 @@ const deleteLabelGuids = ref<any>([]);
208 // 保存编辑的guid 210 // 保存编辑的guid
209 const editLabelRow = ref<any>(''); 211 const editLabelRow = ref<any>('');
210 const page = ref({ 212 const page = ref({
211 limit: 10, 213 limit: 50,
212 curr: 1, 214 curr: 1,
213 sizes: [ 215 sizes: [
214 { label: "10", value: 10 }, 216 { label: "10", value: 10 },
...@@ -672,6 +674,10 @@ const searchClass = async (val: any, clear: boolean = false) => { ...@@ -672,6 +674,10 @@ const searchClass = async (val: any, clear: boolean = false) => {
672 } 674 }
673 if (val?.labelName?.length !== 0 || refCount.value >= 1) { 675 if (val?.labelName?.length !== 0 || refCount.value >= 1) {
674 tableInfo.value.loading = true; 676 tableInfo.value.loading = true;
677 classifyGuid.value = '';
678 classifyDetailGuid.value = '';
679 treeInfo.value.expandedKey = [];
680 treeInfo.value.currentNodeKey = '';
675 const params = { 681 const params = {
676 pageIndex: 1, 682 pageIndex: 1,
677 pageSize: 50, 683 pageSize: 50,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!