|
@@ -96,10 +96,15 @@ export default {
|
|
|
if (!this.$refs.form.validate()) {
|
|
if (!this.$refs.form.validate()) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- return this.formItems.options.reduce((acc, cur) => {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ const params = this.formItems.options.reduce((acc, cur) => {
|
|
|
acc[cur.key] = cur.value
|
|
acc[cur.key] = cur.value
|
|
|
return acc
|
|
return acc
|
|
|
}, {})
|
|
}, {})
|
|
|
|
|
+ // 编辑带id
|
|
|
|
|
+ if (this.itemData?.id) params.id = this.itemData.id
|
|
|
|
|
+
|
|
|
|
|
+ return params
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|