ソースを参照

业务域:组合业务域创建调整

Xiao_123 1 週間 前
コミット
9fdce074a3

+ 5 - 1
src/components/List/table.vue

@@ -125,7 +125,7 @@
       </template>
       <template v-if="showPage && total > 0" v-slot:footer>
         <v-divider></v-divider>
-        <pagination :total="total" :page="pageInfo.current" :limit="pageInfo.size" @handleChange="pageHandleChange" />
+        <pagination :total="total" :page="pageInfo.current" :totalVisible="totalVisible" :limit="pageInfo.size" @handleChange="pageHandleChange" />
       </template>
       <template v-slot:expanded-item="{ headers, item }">
         <slot name="expanded-item" :item="item" :headers="headers"></slot>
@@ -281,6 +281,10 @@ export default {
     noDataText: {
       type: String,
       default: 'No data available'
+    },
+    totalVisible: {
+      type: Number,
+      default: 7
     }
   },
   watch: {

+ 9 - 5
src/views/dataGovernance/businessDomain/components/combination.vue

@@ -26,10 +26,10 @@
       <v-col cols="6">
         <MCard title="候选元数据">
           <template #title>
-            <div style="width: 200px; font-weight: normal;">
+            <div style="width: 300px; font-weight: normal;">
               <v-text-field
                 v-model="candidate.search"
-                placeholder="输入名称"
+                placeholder="输入中文名称回车查找"
                 outlined
                 hide-details
                 dense
@@ -37,7 +37,7 @@
                 append-icon="mdi-magnify"
                 @click:append="handleCandidateSearch"
                 @keyup.enter="handleCandidateSearch"
-                @click:clear="handleCandidateSearch"
+                @click:clear="handleCandidateSearch(true)"
               ></v-text-field>
             </div>
           </template>
@@ -50,6 +50,7 @@
             :height="candidate.items.length > 0 ? '400px' : '490px'"
             :select-item="true"
             fixed-header
+            :totalVisible="5"
             :page-info="candidate.pageInfo"
             :is-tools="false"
             :show-select="true"
@@ -68,7 +69,7 @@
             :items="candidate.selected"
             :is-tools="false"
             :disable-sort="true"
-            height="490px"
+            height="500px"
             fixed-header
             :show-page="false"
             :show-select="false"
@@ -222,7 +223,10 @@ export default {
       this.candidate.pageInfo.current = index
       this.getCandidate()
     },
-    handleCandidateSearch () {
+    handleCandidateSearch (clear) {
+      if (clear === true) {
+        this.candidate.search = null
+      }
       this.candidate.pageInfo.current = 1
       this.getCandidate()
     },

+ 2 - 9
src/views/dataGovernance/businessDomain/components/edit.vue

@@ -214,10 +214,7 @@ export default {
             meta: columns.map(e => {
               return {
                 text: e.name_zh,
-                map: {
-                  ...e,
-                  data_standard: null
-                }
+                map: e
               }
             })
           }
@@ -268,11 +265,7 @@ export default {
         // 如果有解析数据,添加 parsed_data
         if (this.selectModel && this.selectModel.length) {
           params.parsed_data = this.selectModel.map(e => {
-            const { data_standard: dataStandard, ...obj } = e.map
-            return {
-              data_standard: dataStandard?.id ?? null,
-              ...obj
-            }
+            return e.map
           })
         }
 

+ 3 - 2
src/views/dataGovernance/businessDomain/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <!-- 元数据 -->
+  <!-- 业务域 -->
   <div class="pa-3 white">
     <filter-list :filter="['name_zh', 'name_en', 'category', 'tag']" @search="handleSearch" />
     <table-list
@@ -10,6 +10,7 @@
       :total="total"
       :page-info="pageInfo"
       :is-tools="false"
+      :disable-sort="true"
       :show-select="false"
       @pageHandleChange="pageHandleChange"
       @sort="handleSort"
@@ -65,7 +66,7 @@
       :visible.sync="showCombination"
       title="新增组合业务域"
       :footer="true"
-      widthType="1"
+      :fullscreen="true"
       @close="showCombination = false"
       @submit="handleCombinationSubmit"
     >