9ed1e7db by lxs

数据资产登记更新

1 parent 74846114
...@@ -47,7 +47,7 @@ const resetForm = (formEl: FormInstance | undefined) => { ...@@ -47,7 +47,7 @@ const resetForm = (formEl: FormInstance | undefined) => {
47 47
48 defineExpose({ 48 defineExpose({
49 formInline, 49 formInline,
50 formRef 50 formRef,
51 }) 51 })
52 const setFormFields = (list: any) => { 52 const setFormFields = (list: any) => {
53 let obj = {} 53 let obj = {}
...@@ -89,6 +89,12 @@ const cascaderChange = (val, item) => { ...@@ -89,6 +89,12 @@ const cascaderChange = (val, item) => {
89 formCascader.togglePopperVisible(false) 89 formCascader.togglePopperVisible(false)
90 } 90 }
91 } 91 }
92
93 const getCascaderCheckedData = () => {
94 const formCascader = formCascaderRef.value[0] || formCascaderRef.value;
95 const data = formCascader.getCheckedNodes();
96 return data;
97 };
92 const inputChange = (val) => { 98 const inputChange = (val) => {
93 onSubmit() 99 onSubmit()
94 } 100 }
......
...@@ -57,8 +57,14 @@ const cascaderChange = (val, item) => { ...@@ -57,8 +57,14 @@ const cascaderChange = (val, item) => {
57 emits("cascaderChange", val, item); 57 emits("cascaderChange", val, item);
58 } 58 }
59 59
60 const getCascaderCheckedData = () => {
61 const toolSearchForm = toolSearch.value.formRef[0] || toolSearch.value.formRef;
62 return toolSearchForm.getCascaderCheckedData();
63 }
64
60 defineExpose({ 65 defineExpose({
61 toolSearch, 66 toolSearch,
67 getCascaderCheckedData
62 }) 68 })
63 69
64 </script> 70 </script>
......
...@@ -52,7 +52,6 @@ const treeInfo: any = ref({ ...@@ -52,7 +52,6 @@ const treeInfo: any = ref({
52 queryPlaceholder: "输入分类名称搜索", 52 queryPlaceholder: "输入分类名称搜索",
53 props: { 53 props: {
54 label: "classifyName", 54 label: "classifyName",
55 value: "classifyDetailGuid",
56 }, 55 },
57 nodeKey: 'classifyDetailGuid', 56 nodeKey: 'classifyDetailGuid',
58 expandedKey: [], 57 expandedKey: [],
...@@ -187,7 +186,7 @@ const fieldItemList = ref([ ...@@ -187,7 +186,7 @@ const fieldItemList = ref([
187 checkStrictly: true, 186 checkStrictly: true,
188 expandTrigger: "hover", 187 expandTrigger: "hover",
189 label: "classifyName", 188 label: "classifyName",
190 value: "classifyDetailGuid", 189 value: "guid",
191 }, 190 },
192 filterable: true, 191 filterable: true,
193 clearable: true, 192 clearable: true,
...@@ -565,6 +564,8 @@ const getFieldTableData = () => { ...@@ -565,6 +564,8 @@ const getFieldTableData = () => {
565 pageSize: fieldTableInfo.value.page.limit, 564 pageSize: fieldTableInfo.value.page.limit,
566 isMergeClassify: checked1.value ? 'Y' : 'N' 565 isMergeClassify: checked1.value ? 'Y' : 'N'
567 } 566 }
567 const cascaderData = fieldSearchRef.value.toolSearch.getCascaderCheckedData();
568 debugger
568 const classifyName = params.classifyName?.at(-1) || undefined; 569 const classifyName = params.classifyName?.at(-1) || undefined;
569 if (classifyName && classifyName != 'unclassified') { 570 if (classifyName && classifyName != 'unclassified') {
570 params.classifyDetail = classifyName; 571 params.classifyDetail = classifyName;
...@@ -1046,7 +1047,8 @@ onMounted(() => { ...@@ -1046,7 +1047,8 @@ onMounted(() => {
1046 <div class="table_panel" v-loading="fieldTableInfo.loading"> 1047 <div class="table_panel" v-loading="fieldTableInfo.loading">
1047 <el-table ref="fieldTableRef" :data="fieldTableInfo.data" border :height="'100%'" 1048 <el-table ref="fieldTableRef" :data="fieldTableInfo.data" border :height="'100%'"
1048 style="width: 100%; display: inline-block" :style="{ 'max-height': 'calc(100% - 44px)' }" 1049 style="width: 100%; display: inline-block" :style="{ 'max-height': 'calc(100% - 44px)' }"
1049 :cell-class-name="tableCellClassName" @selection-change="tableSelectionChange" highlight-current-row> 1050 :cell-class-name="tableCellClassName" @selection-change="tableSelectionChange"
1051 highlight-current-row>
1050 <el-table-column type="selection" align="center" :width="32" :selectable="rowSelectable" 1052 <el-table-column type="selection" align="center" :width="32" :selectable="rowSelectable"
1051 fixed="left" /> 1053 fixed="left" />
1052 <el-table-column v-for="(item, i) in fieldTableInfo.fields" :label="item.label" :width="item.width" 1054 <el-table-column v-for="(item, i) in fieldTableInfo.fields" :label="item.label" :width="item.width"
...@@ -1113,48 +1115,6 @@ onMounted(() => { ...@@ -1113,48 +1115,6 @@ onMounted(() => {
1113 1115
1114 <style scoped lang="scss"> 1116 <style scoped lang="scss">
1115 .container_wrap { 1117 .container_wrap {
1116 .aside_wrap {
1117 width: 199px;
1118 border-right: 1px solid #d9d9d9;
1119 box-shadow: none;
1120
1121 .aside_title {
1122 width: calc(100% - 32px);
1123 display: inline-block;
1124 }
1125
1126 .icon-add.el-icon {
1127 width: 24px;
1128 height: 24px;
1129 vertical-align: middle;
1130 cursor: pointer;
1131
1132 svg {
1133 width: 24px;
1134 height: 24px;
1135 }
1136 }
1137
1138 .tree_panel {
1139 height: calc(100% - 72px);
1140 padding-top: 0;
1141 border-bottom: 1px solid #d9d9d9;
1142
1143 :deep(.el-tree) {
1144 margin: 0;
1145 height: calc(100% - 32px);
1146 overflow: hidden auto;
1147 }
1148 }
1149
1150 .page_nav_wrap.concise {
1151 justify-content: center;
1152 }
1153
1154 }
1155 }
1156
1157 .container_wrap {
1158 overflow: hidden auto; 1118 overflow: hidden auto;
1159 1119
1160 .main_wrap { 1120 .main_wrap {
...@@ -1304,6 +1264,11 @@ onMounted(() => { ...@@ -1304,6 +1264,11 @@ onMounted(() => {
1304 .tree_panel { 1264 .tree_panel {
1305 height: 100%; 1265 height: 100%;
1306 padding: 8px 0; 1266 padding: 8px 0;
1267
1268 :deep(.el-tree) {
1269 height: calc(100% - 40px);
1270 overflow: hidden auto;
1271 }
1307 } 1272 }
1308 } 1273 }
1309 1274
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!