|
@@ -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
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|