Commit 788841a8 authored by xd's avatar xd

修改加载状态

parent 9baf0ca0
...@@ -224,11 +224,11 @@ export default { ...@@ -224,11 +224,11 @@ export default {
handleAddCancel() { handleAddCancel() {
this.$emit("handleAddCancel") this.$emit("handleAddCancel")
}, },
handleAddFinish(formName) { handleAddFinish(formName) {
this.formLoading = true
this.loadText = "处理中"
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.formLoading = true
this.loadText = "处理中"
this.addForm.clerkIds = this.addForm.clerkIds + "" this.addForm.clerkIds = this.addForm.clerkIds + ""
// let data = Object.assign(this.addForm,{ clerkIdss }) // let data = Object.assign(this.addForm,{ clerkIdss })
// delete data.clerkIds // delete data.clerkIds
......
...@@ -250,11 +250,11 @@ export default { ...@@ -250,11 +250,11 @@ export default {
handleEditCancel() { handleEditCancel() {
this.$emit("handleEditCancel") this.$emit("handleEditCancel")
}, },
handleEditFinish(formName) { handleEditFinish(formName) {
this.formLoading = true this.$refs[formName].validate((valid) => {
this.loadText = "处理中"
this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.formLoading = true
this.loadText = "处理中"
this.addForm.clerkIds = this.addForm.clerkIds + "" this.addForm.clerkIds = this.addForm.clerkIds + ""
editDept(this.addForm).then(res => { editDept(this.addForm).then(res => {
if(res.result == 'success') { 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