Browse Source

新增数据资源

zhengnaiwen_citu 2 months ago
parent
commit
f915384e8f
1 changed files with 13 additions and 2 deletions
  1. 13 2
      src/views/dataGovernance/dataResource/components/editBase.vue

+ 13 - 2
src/views/dataGovernance/dataResource/components/editBase.vue

@@ -39,8 +39,9 @@ export default {
         leader: this.$store.getters.userInfo.username,
         frequency: '日',
         data_sensitivity: '低',
-        chooseStorage: true,
+        chooseStorage: false,
         storage_location: '/',
+        data_source: null,
         tag: null,
         describe: null,
         status: true
@@ -214,7 +215,17 @@ export default {
       if (!this.$refs.form.validate()) {
         return
       }
-      return this.formValues
+      const { chooseStorage, data_source: dataSource, storage_location: storageLocation, ...obj } = this.formValues
+      // if (chooseStorage) {
+      //   return {
+      //     ...obj,
+      //     data_source: dataSource
+      //   }
+      // }
+      return {
+        ...obj,
+        storage_location: storageLocation
+      }
     }
   }
 }