|
@@ -162,6 +162,9 @@ export default {
|
|
// 确认
|
|
// 确认
|
|
saveClick() {
|
|
saveClick() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
|
+ if(this.form.parentId == ""){
|
|
|
|
+ this.form.parentId = 0
|
|
|
|
+ }
|
|
const subForm = this.$refs["form"];
|
|
const subForm = this.$refs["form"];
|
|
subForm.validate((valid) => {
|
|
subForm.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|