龚焕茏
2024-05-10 b133f992572d5c35687cf9d55a14f4f9fa53f8bc
src/views/user/student/edit.vue
@@ -122,11 +122,10 @@
    submitForm () {
      console.log("this.form", this.form)
      let _this = this
      this.form.deptIds = this.form.deptIds.join(',')
      this.$refs.form.validate((valid) => {
        if (valid) {
          this.formLoading = true
          console.log("this.form", this.form)
          this.form.deptIds = this.form.deptIds.join(',')
          userApi.createUser(this.form).then(data => {
            if (data.code === 1) {
              _this.$message.success(data.message)