【bug】 合同关联项目的提交
This commit is contained in:
+14
-2
@@ -291,10 +291,17 @@ export default {
|
||||
this.onClearSelected()
|
||||
},
|
||||
handleOk() {
|
||||
if (this.selectedRowKeys.length <= 0) {
|
||||
this.$message.warn('请选择项目后再提交关联')
|
||||
if (this.confirmLoading) {
|
||||
return
|
||||
}
|
||||
this.confirmLoading = true
|
||||
if (this.selectedRowKeys.length <= 0) {
|
||||
this.$message.warn('请选择项目后再提交关联')
|
||||
this.confirmLoading = false
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
let submitData = []
|
||||
let projectItem
|
||||
this.selectedRowKeys.forEach(item => {
|
||||
@@ -309,10 +316,15 @@ export default {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.close()
|
||||
this.confirmLoading = false
|
||||
this.$emit('ok')
|
||||
} else {
|
||||
this.$message.warn(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
setTimeout(() => {
|
||||
this.confirmLoading = false
|
||||
}, 1000)
|
||||
})
|
||||
},
|
||||
handleCancel() {
|
||||
|
||||
@@ -109,10 +109,6 @@
|
||||
</div>
|
||||
<!-- 新增项目成员-->
|
||||
<add-member-project ref="modalForm" @ok="modalFormOk"></add-member-project>
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">关闭</a-button>
|
||||
<a-button @click="handleOk" type="primary" v-preventclick>确定</a-button>
|
||||
</template>
|
||||
</j-modal>
|
||||
</template>
|
||||
|
||||
@@ -329,8 +325,13 @@ export default {
|
||||
this.$emit('ok')
|
||||
},
|
||||
handleOk() {
|
||||
if (this.confirmLoading) {
|
||||
return
|
||||
}
|
||||
this.confirmLoading = true
|
||||
if (this.selectedRowKeys.length <= 0) {
|
||||
this.$message.warn('请选择项目后再提交关联')
|
||||
this.confirmLoading = false
|
||||
return
|
||||
}
|
||||
let submitData = []
|
||||
@@ -348,10 +349,15 @@ export default {
|
||||
this.$message.success(res.message)
|
||||
this.close()
|
||||
this.$emit('ok')
|
||||
this.confirmLoading = false
|
||||
} else {
|
||||
this.$message.warn(res.message)
|
||||
}
|
||||
})
|
||||
}).finally( () => {
|
||||
setTimeout(() => {
|
||||
this.confirmLoading = false
|
||||
}, 1000)
|
||||
} )
|
||||
},
|
||||
handleCancel() {
|
||||
this.activeKey = '1'
|
||||
|
||||
Reference in New Issue
Block a user