7166760b by xukangle

Merge branch 'develop' into dev_20241202_xukangle

2 parents 433bc83b c2785dc2
...@@ -24,7 +24,8 @@ const props = defineProps({ ...@@ -24,7 +24,8 @@ const props = defineProps({
24 24
25 const emits = defineEmits(["expand"]); 25 const emits = defineEmits(["expand"]);
26 26
27 const isExpanded = ref(true); 27 // const isExpanded = ref(true);
28 const isExpanded = ref(props.isExpand);
28 29
29 watch( 30 watch(
30 () => props.isExpand, 31 () => props.isExpand,
...@@ -46,14 +47,10 @@ const expandSwicthHandler = () => { ...@@ -46,14 +47,10 @@ const expandSwicthHandler = () => {
46 </script> 47 </script>
47 48
48 <template> 49 <template>
49 <ElCard 50 <ElCard class="v-content-wrap" shadow="never" :body-style="{
50 class="v-content-wrap"
51 shadow="never"
52 :body-style="{
53 padding: `0px`, 51 padding: `0px`,
54 height: `${isExpanded ? contentHeight + 28 : 0}px`, 52 height: `${isExpanded ? contentHeight + 28 : 0}px`,
55 }" 53 }">
56 >
57 <template v-if="title" #header> 54 <template v-if="title" #header>
58 <div class="card-title" @click="expandSwicthHandler"> 55 <div class="card-title" @click="expandSwicthHandler">
59 <span v-if="expandSwicth" style="padding-right: 5px; cursor: pointer"> 56 <span v-if="expandSwicth" style="padding-right: 5px; cursor: pointer">
......
...@@ -15,7 +15,7 @@ const { required, orderNum } = useValidator(); ...@@ -15,7 +15,7 @@ const { required, orderNum } = useValidator();
15 const { proxy } = getCurrentInstance() as any; 15 const { proxy } = getCurrentInstance() as any;
16 const router = useRouter(); 16 const router = useRouter();
17 const route = useRoute(); 17 const route = useRoute();
18 const fullPath = route.query.fullPath; 18 const fullPath = route.fullPath;
19 const userStore = useUserStore(); 19 const userStore = useUserStore();
20 20
21 const fullscreenLoading = ref(false); 21 const fullscreenLoading = ref(false);
...@@ -501,6 +501,7 @@ const saveUpdate = async () => { ...@@ -501,6 +501,7 @@ const saveUpdate = async () => {
501 }); 501 });
502 saveLoading.value = false; 502 saveLoading.value = false;
503 } else { 503 } else {
504 saveLoading.value = false;
504 proxy.$ElMessage.error(res.msg); 505 proxy.$ElMessage.error(res.msg);
505 } 506 }
506 } 507 }
...@@ -517,6 +518,8 @@ const changeShowMethod = () => { ...@@ -517,6 +518,8 @@ const changeShowMethod = () => {
517 } 518 }
518 519
519 const cancel = () => { 520 const cancel = () => {
521 console.log(userStore.tabbar);
522 console.log(fullPath);
520 proxy.$openMessageBox("当前页面尚未保存,确定放弃修改吗?", () => { 523 proxy.$openMessageBox("当前页面尚未保存,确定放弃修改吗?", () => {
521 userStore.setTabbar(userStore.tabbar.filter((tab: any) => tab.fullPath !== fullPath)); 524 userStore.setTabbar(userStore.tabbar.filter((tab: any) => tab.fullPath !== fullPath));
522 router.push({ 525 router.push({
...@@ -673,7 +676,7 @@ const initGraph = () => { ...@@ -673,7 +676,7 @@ const initGraph = () => {
673 }, 676 },
674 getHGap: function getHGap() { 677 getHGap: function getHGap() {
675 return 80; 678 return 80;
676 } 679 },
677 } 680 }
678 }); 681 });
679 graph.data(shapeTreeListData.value[0]); 682 graph.data(shapeTreeListData.value[0]);
...@@ -799,12 +802,16 @@ onMounted(() => { ...@@ -799,12 +802,16 @@ onMounted(() => {
799 // }); 802 // });
800 }) 803 })
801 804
805 const isExpand = ref<boolean>(router.currentRoute.value.query.isExpand == 'true');
806
807
802 </script> 808 </script>
803 809
804 <template> 810 <template>
805 <div class="container_wrap" v-loading="fullscreenLoading"> 811 <div class="container_wrap" v-loading="fullscreenLoading">
806 <div class="content_main"> 812 <div class="content_main">
807 <ContentWrap id="id-baseInfo" title="基础信息" description="" style="margin-top: 8px;"> 813 <ContentWrap id="id-baseInfo" title="基础信息" description="" style="margin-top: 8px;" :expandSwicth="true"
814 :isExpand="isExpand">
808 <Form ref="formRef" :itemList="classStandardFormItems" formId="main-model-edit" col="col3" /> 815 <Form ref="formRef" :itemList="classStandardFormItems" formId="main-model-edit" col="col3" />
809 </ContentWrap> 816 </ContentWrap>
810 <ContentWrap id="id-classStandard" class="detail-content" title="分类标准" description="" 817 <ContentWrap id="id-classStandard" class="detail-content" title="分类标准" description=""
...@@ -852,6 +859,7 @@ onMounted(() => { ...@@ -852,6 +859,7 @@ onMounted(() => {
852 .content_main { 859 .content_main {
853 height: calc(100% - 44px); 860 height: calc(100% - 44px);
854 padding: 10px 16px; 861 padding: 10px 16px;
862 overflow: auto;
855 } 863 }
856 864
857 .bottom_tool_wrap { 865 .bottom_tool_wrap {
...@@ -870,6 +878,7 @@ onMounted(() => { ...@@ -870,6 +878,7 @@ onMounted(() => {
870 878
871 .card-body-content { 879 .card-body-content {
872 height: 100%; 880 height: 100%;
881 overflow: auto;
873 } 882 }
874 } 883 }
875 } 884 }
...@@ -885,11 +894,11 @@ onMounted(() => { ...@@ -885,11 +894,11 @@ onMounted(() => {
885 } 894 }
886 895
887 .shape-main { 896 .shape-main {
888 height: calc(100% - 160px); 897 height: calc(100% - 44px);
889 } 898 }
890 899
891 .table_panel { 900 .table_panel {
892 height: calc(100% - 160px) !important; 901 height: calc(100% - 44px) !important;
893 } 902 }
894 903
895 .node-details-popup { 904 .node-details-popup {
......
...@@ -10,7 +10,7 @@ import { saveGrade, getGradeList, deleteGrade, getLargeCategoryList, updateGrade ...@@ -10,7 +10,7 @@ import { saveGrade, getGradeList, deleteGrade, getLargeCategoryList, updateGrade
10 import useUserStore from "@/store/modules/user"; 10 import useUserStore from "@/store/modules/user";
11 const userStore = useUserStore(); 11 const userStore = useUserStore();
12 const route = useRoute(); 12 const route = useRoute();
13 const fullPath = route.query.fullPath; 13 const fullPath = route.fullPath;
14 onBeforeMount(() => { 14 onBeforeMount(() => {
15 getGradeListData(); 15 getGradeListData();
16 getDataGrade(); 16 getDataGrade();
...@@ -114,7 +114,7 @@ const tableInfo = ref({ ...@@ -114,7 +114,7 @@ const tableInfo = ref({
114 multiple: true, 114 multiple: true,
115 fields: [ 115 fields: [
116 { label: "序号", type: 'index', width: 56, align: "center" }, 116 { label: "序号", type: 'index', width: 56, align: "center" },
117 { label: "排序", field: 'orderNum', width: 56, align: "center" }, 117 // { label: "排序", field: 'orderNum', width: 56, align: "center" },
118 { 118 {
119 label: "数据级别", field: "dataGrade", width: 120, getName: (scope) => { 119 label: "数据级别", field: "dataGrade", width: 120, getName: (scope) => {
120 let dataGrade = scope.row.dataGrade; 120 let dataGrade = scope.row.dataGrade;
...@@ -140,7 +140,7 @@ const tableInfo = ref({ ...@@ -140,7 +140,7 @@ const tableInfo = ref({
140 console.log(scope); 140 console.log(scope);
141 filterDataGradeEdit(scope.row.dataGrade); 141 filterDataGradeEdit(scope.row.dataGrade);
142 newCreateGradeStandardDialogInfo.value.visible = true; 142 newCreateGradeStandardDialogInfo.value.visible = true;
143 newCreateGradeStandardDialogInfo.value.title = '编辑分类'; 143 newCreateGradeStandardDialogInfo.value.title = '编辑标准';
144 newCreateGradeFormItems.value.forEach(item => { 144 newCreateGradeFormItems.value.forEach(item => {
145 item.default = scope.row[item.field]; 145 item.default = scope.row[item.field];
146 }) 146 })
...@@ -231,7 +231,7 @@ const newCreateGradeFormItems = ref([{ ...@@ -231,7 +231,7 @@ const newCreateGradeFormItems = ref([{
231 visible: true, 231 visible: true,
232 }, 232 },
233 { 233 {
234 label: '序号', 234 label: '序号',
235 type: 'input', 235 type: 'input',
236 maxlength: 19, 236 maxlength: 19,
237 placeholder: '请输入', 237 placeholder: '请输入',
...@@ -268,7 +268,7 @@ const newCreateGradeFormRules = ref({ ...@@ -268,7 +268,7 @@ const newCreateGradeFormRules = ref({
268 const newCreateGradeStandardDialogInfo = ref({ 268 const newCreateGradeStandardDialogInfo = ref({
269 visible: false, 269 visible: false,
270 size: 860, 270 size: 860,
271 title: "添加分类", 271 title: "新增标准",
272 type: "", 272 type: "",
273 formInfo: { 273 formInfo: {
274 id: "grade-form", 274 id: "grade-form",
...@@ -281,9 +281,8 @@ const newCreateGradeStandardDialogInfo = ref({ ...@@ -281,9 +281,8 @@ const newCreateGradeStandardDialogInfo = ref({
281 newCreateGradeStandardDialogInfo.value.visible = false; 281 newCreateGradeStandardDialogInfo.value.visible = false;
282 }, 282 },
283 submit: async (btn, info) => { 283 submit: async (btn, info) => {
284 console.log(info, guid);
285 newCreateGradeStandardDialogInfo.value.submitBtnLoading = true; 284 newCreateGradeStandardDialogInfo.value.submitBtnLoading = true;
286 if (newCreateGradeStandardDialogInfo.value.title === '编辑分类') { 285 if (newCreateGradeStandardDialogInfo.value.title === '编辑标准') {
287 const params = { 286 const params = {
288 ...info, 287 ...info,
289 guid: editClassifyGradeGuid.value, 288 guid: editClassifyGradeGuid.value,
...@@ -294,7 +293,7 @@ const newCreateGradeStandardDialogInfo = ref({ ...@@ -294,7 +293,7 @@ const newCreateGradeStandardDialogInfo = ref({
294 if (res.code == proxy.$passCode) { 293 if (res.code == proxy.$passCode) {
295 proxy.$ElMessage({ 294 proxy.$ElMessage({
296 type: 'success', 295 type: 'success',
297 message: '修改分类成功' 296 message: '编辑标准成功'
298 }) 297 })
299 getGradeListData(); 298 getGradeListData();
300 newCreateGradeStandardDialogInfo.value.submitBtnLoading = false; 299 newCreateGradeStandardDialogInfo.value.submitBtnLoading = false;
...@@ -312,7 +311,7 @@ const newCreateGradeStandardDialogInfo = ref({ ...@@ -312,7 +311,7 @@ const newCreateGradeStandardDialogInfo = ref({
312 if (res.code == proxy.$passCode) { 311 if (res.code == proxy.$passCode) {
313 proxy.$ElMessage({ 312 proxy.$ElMessage({
314 type: 'success', 313 type: 'success',
315 message: '新增分类成功' 314 message: '新增标准成功'
316 }) 315 })
317 getGradeListData(); 316 getGradeListData();
318 newCreateGradeStandardDialogInfo.value.submitBtnLoading = false; 317 newCreateGradeStandardDialogInfo.value.submitBtnLoading = false;
...@@ -369,6 +368,7 @@ const saveUpdate = async () => { ...@@ -369,6 +368,7 @@ const saveUpdate = async () => {
369 }); 368 });
370 saveLoading.value = false; 369 saveLoading.value = false;
371 } else { 370 } else {
371 saveLoading.value = false;
372 proxy.$ElMessage.error(res.msg); 372 proxy.$ElMessage.error(res.msg);
373 } 373 }
374 } 374 }
...@@ -417,6 +417,7 @@ const cancel = () => { ...@@ -417,6 +417,7 @@ const cancel = () => {
417 .content_main { 417 .content_main {
418 height: calc(100% - 44px); 418 height: calc(100% - 44px);
419 padding: 10px 16px; 419 padding: 10px 16px;
420 overflow: auto;
420 421
421 .table-top-btns { 422 .table-top-btns {
422 margin-bottom: 12px; 423 margin-bottom: 12px;
......
...@@ -5,18 +5,12 @@ ...@@ -5,18 +5,12 @@
5 <script lang="ts" setup name="taskConfig"> 5 <script lang="ts" setup name="taskConfig">
6 import { ref, onMounted } from "vue"; 6 import { ref, onMounted } from "vue";
7 import { useRouter, useRoute } from "vue-router"; 7 import { useRouter, useRoute } from "vue-router";
8 import useUserStore from "@/store/modules/user";
9 import { ElMessage, ElMessageBox } from "element-plus"; 8 import { ElMessage, ElMessageBox } from "element-plus";
10
11 import useDataAssetStore from "@/store/modules/dataAsset";
12 import { filterVal, getCgTaskPageList, cgTaskDelete, runExecTask } from "@/api/modules/dataInventory"; 9 import { filterVal, getCgTaskPageList, cgTaskDelete, runExecTask } from "@/api/modules/dataInventory";
13 import { TableColumnWidth } from '@/utils/enum'; 10 import { TableColumnWidth } from '@/utils/enum';
14 11
15 const { proxy } = getCurrentInstance() as any; 12 const { proxy } = getCurrentInstance() as any;
16 const router = useRouter(); 13 const router = useRouter();
17 const userStore = useUserStore();
18 const userData = JSON.parse(userStore.userData);
19 const assetStore = useDataAssetStore();
20 14
21 const loading = ref(false); 15 const loading = ref(false);
22 const page = ref({ 16 const page = ref({
...@@ -159,7 +153,7 @@ const toPath = (type) => { ...@@ -159,7 +153,7 @@ const toPath = (type) => {
159 query: { 153 query: {
160 guid: currTableData.value.guid, 154 guid: currTableData.value.guid,
161 name: currTableData.value.taskName, 155 name: currTableData.value.taskName,
162 detail: JSON.stringify(currTableData.value), 156 execGuid: currTableData.value.execGuid,
163 type 157 type
164 }, 158 },
165 }); 159 });
......
...@@ -5,18 +5,13 @@ ...@@ -5,18 +5,13 @@
5 <script lang="ts" setup name="taskEdit"> 5 <script lang="ts" setup name="taskEdit">
6 import { ref, onMounted } from "vue"; 6 import { ref, onMounted } from "vue";
7 import { useRouter, useRoute } from "vue-router"; 7 import { useRouter, useRoute } from "vue-router";
8 import useUserStore from "@/store/modules/user";
9 import { ElMessage, ElMessageBox } from "element-plus"; 8 import { ElMessage, ElMessageBox } from "element-plus";
10 import { Search } from "@element-plus/icons-vue"; 9 import { Search } from "@element-plus/icons-vue";
11 import useDataAssetStore from "@/store/modules/dataAsset";
12 import { getCgTaskDetail, getClassifyGradList, getClassifyTreeList, getCgLabelPageList, getMetaTableCollectList, cgTaskSave, cgTaskUpdate } from "@/api/modules/dataInventory"; 10 import { getCgTaskDetail, getClassifyGradList, getClassifyTreeList, getCgLabelPageList, getMetaTableCollectList, cgTaskSave, cgTaskUpdate } from "@/api/modules/dataInventory";
13 11
14 const { proxy } = getCurrentInstance() as any; 12 const { proxy } = getCurrentInstance() as any;
15 const router = useRouter(); 13 const router = useRouter();
16 const route = useRoute(); 14 const route = useRoute();
17 const userStore = useUserStore();
18 const userData = JSON.parse(userStore.userData);
19 const assetStore = useDataAssetStore();
20 15
21 const step = ref(0); 16 const step = ref(0);
22 const selectIndex = ref(0); 17 const selectIndex = ref(0);
......
...@@ -5,20 +5,13 @@ ...@@ -5,20 +5,13 @@
5 <script lang="ts" setup name="taskLog"> 5 <script lang="ts" setup name="taskLog">
6 import { ref, onMounted } from "vue"; 6 import { ref, onMounted } from "vue";
7 import { useRouter, useRoute } from "vue-router"; 7 import { useRouter, useRoute } from "vue-router";
8 import useUserStore from "@/store/modules/user";
9 import { ElMessage, ElMessageBox } from "element-plus"; 8 import { ElMessage, ElMessageBox } from "element-plus";
10
11 import useDataAssetStore from "@/store/modules/dataAsset";
12 import { getTaskExecPageList, filterVal } from "@/api/modules/dataInventory"; 9 import { getTaskExecPageList, filterVal } from "@/api/modules/dataInventory";
13 import { TableColumnWidth } from '@/utils/enum'; 10 import { TableColumnWidth } from '@/utils/enum';
14 11
15 const { proxy } = getCurrentInstance() as any; 12 const { proxy } = getCurrentInstance() as any;
16 const router = useRouter(); 13 const router = useRouter();
17 const route = useRoute(); 14 const route = useRoute();
18 const userStore = useUserStore();
19 const userData = JSON.parse(userStore.userData);
20 const assetStore = useDataAssetStore();
21
22 const loading = ref(false); 15 const loading = ref(false);
23 const page = ref({ 16 const page = ref({
24 limit: 50, 17 limit: 50,
...@@ -71,12 +64,11 @@ const tableInfo = ref({ ...@@ -71,12 +64,11 @@ const tableInfo = ref({
71 actionInfo: { 64 actionInfo: {
72 label: "操作", 65 label: "操作",
73 type: "btn", 66 type: "btn",
74 width: 100, 67 width: 90,
75 btns: (scope) => { 68 btns: (scope) => {
76 let row = scope.row, btnArr: any = [ 69 return [
77 { label: "查看结果", value: "path" }, 70 { label: "查看结果", value: "log" },
78 ]; 71 ];
79 return btnArr;
80 }, 72 },
81 }, 73 },
82 }); 74 });
...@@ -107,7 +99,7 @@ const tableBtnClick = (scope, btn) => { ...@@ -107,7 +99,7 @@ const tableBtnClick = (scope, btn) => {
107 const type = btn.value; 99 const type = btn.value;
108 const row = scope.row; 100 const row = scope.row;
109 currTableData.value = row; 101 currTableData.value = row;
110 if (type == "path") { 102 if (type == "log") {
111 toPath(type); 103 toPath(type);
112 } 104 }
113 }; 105 };
...@@ -116,8 +108,9 @@ const toPath = (type) => { ...@@ -116,8 +108,9 @@ const toPath = (type) => {
116 router.push({ 108 router.push({
117 name: "taskDetail", 109 name: "taskDetail",
118 query: { 110 query: {
119 guid: currTableData.value.guid, 111 guid: currTableData.value.taskGuid,
120 name: currTableData.value.damName, 112 name: currTableData.value.taskName,
113 execGuid: currTableData.value.guid,
121 type 114 type
122 }, 115 },
123 }); 116 });
......
...@@ -158,7 +158,8 @@ const handleClassDataClick = (item, des = '') => { ...@@ -158,7 +158,8 @@ const handleClassDataClick = (item, des = '') => {
158 type: des === '' ? '配置' : des, 158 type: des === '' ? '配置' : des,
159 classStandardName: item.name, 159 classStandardName: item.name,
160 refGradeGuid: item.refGradeGuid, 160 refGradeGuid: item.refGradeGuid,
161 description: item.description 161 description: item.description,
162 isExpand: item.isExpand || false
162 } 163 }
163 }); 164 });
164 } 165 }
...@@ -276,7 +277,8 @@ const newCreateClassStandardDialogInfo = ref({ ...@@ -276,7 +277,8 @@ const newCreateClassStandardDialogInfo = ref({
276 name: item.name, 277 name: item.name,
277 guid: item.guid, 278 guid: item.guid,
278 refGradeGuid: item.refGradeGuid, 279 refGradeGuid: item.refGradeGuid,
279 description: item.description 280 description: item.description,
281 isExpand: true
280 } 282 }
281 handleClassDataClick(params, ''); 283 handleClassDataClick(params, '');
282 } 284 }
...@@ -312,6 +314,7 @@ const newCreateClassStandardDialogInfo = ref({ ...@@ -312,6 +314,7 @@ const newCreateClassStandardDialogInfo = ref({
312 }) 314 })
313 315
314 const newCreateClass = () => { 316 const newCreateClass = () => {
317 newCreateClassStandardDialogInfo.value.submitBtnLoading = false;
315 newCreateClassStandardDialogInfo.value.visible = true; 318 newCreateClassStandardDialogInfo.value.visible = true;
316 classStandardFormItems.value.forEach(item => item.default = ''); 319 classStandardFormItems.value.forEach(item => item.default = '');
317 } 320 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!