Commit 788841a8 authored by xd's avatar xd

修改加载状态

parent 9baf0ca0
......@@ -224,11 +224,11 @@ export default {
handleAddCancel() {
this.$emit("handleAddCancel")
},
handleAddFinish(formName) {
this.formLoading = true
this.loadText = "处理中"
handleAddFinish(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
this.formLoading = true
this.loadText = "处理中"
this.addForm.clerkIds = this.addForm.clerkIds + ""
// let data = Object.assign(this.addForm,{ clerkIdss })
// delete data.clerkIds
......
......@@ -250,11 +250,11 @@ export default {
handleEditCancel() {
this.$emit("handleEditCancel")
},
handleEditFinish(formName) {
this.formLoading = true
this.loadText = "处理中"
this.$refs[formName].validate((valid) => {
handleEditFinish(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
this.formLoading = true
this.loadText = "处理中"
this.addForm.clerkIds = this.addForm.clerkIds + ""
editDept(this.addForm).then(res => {
if(res.result == 'success') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment