WXL
2024-10-12 2fe94c2414aa1b8840e4dbf9a8e19121a8a867b6
src/views/system/user/index.vue
@@ -871,9 +871,11 @@
    submitForm: function () {
      this.form.hospInfo = JSON.stringify(this.form.deptCodes);
      this.form.deptInfo = JSON.stringify(this.form.wardCodes);
      if (this.form.deptCodes.length)
      this.form.deptCodes = this.form.deptCodes.map(
        (subArr) => subArr[subArr.length - 1]
      );
      if (this.form.wardCodes.length)
      this.form.wardCodes = this.form.wardCodes.map(
        (subArr) => subArr[subArr.length - 1]
      );