Browse Source

修改传参

mym 1 year ago
parent
commit
bc0ec4f3a0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/JOINTCONFERENCE/add.vue

+ 4 - 4
src/views/JOINTCONFERENCE/add.vue

@@ -105,8 +105,8 @@ export default {
       this.$refs["form"].validate((valid) => {
         if (valid) {
           if (this.form.id != null) {
-            this.form.deptId = this.deptId
-            this.form.deptNum = this.form.deptId.length
+            this.form.deptIds = this.deptId
+            this.form.deptNum = this.form.deptIds.length
             updateJOINTCONFERENCE(this.form).then((response) => {
               this.$modal.msgSuccess("修改成功");
               this.$layer.close(this.layerid);
@@ -126,8 +126,8 @@ export default {
             //   }
             // }
             //俊豪像甲方一样,老是让我改传参
-            this.form.deptId = this.deptId
-            this.form.deptNum = this.form.deptId.length
+            this.form.deptIds = this.deptId
+            this.form.deptNum = this.form.deptIds.length
             addJOINTCONFERENCE(this.form).then((response) => {
               this.$modal.msgSuccess("发布成功");
               this.$layer.close(this.layerid);