龚焕茏
2024-05-07 82379f6ff9ddc28abb2a0e46bc97090ec049b6e9
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)