|
@@ -36,7 +36,7 @@ export default {
|
|
|
id: '',
|
|
|
title: '',
|
|
|
is_public: 2,
|
|
|
- is_default: 0
|
|
|
+ is_default: 0,
|
|
|
},
|
|
|
rules: {
|
|
|
title: [{ required: true, message: '请输入' }],
|
|
@@ -76,7 +76,10 @@ export default {
|
|
|
onSubmit() {
|
|
|
this.$refs.formDataRef.validate((valid) => {
|
|
|
if (valid) {
|
|
|
- const params = {...this.formData}
|
|
|
+ let params = {...this.formData}
|
|
|
+ if(this.action == 'ADD') {
|
|
|
+ params = {...params, ...this.$parent.formData}
|
|
|
+ }
|
|
|
collectSearchSave(params).then(res => {
|
|
|
if(res.code == 200) {
|
|
|
this.$message({
|