连点限制
This commit is contained in:
+9
-8
@@ -80,11 +80,6 @@
|
||||
:is-contract-num-disabled="true"
|
||||
:flag="1"
|
||||
:default-charge-way="2"></working-group-member-unit-module>
|
||||
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">关闭</a-button>
|
||||
<a-button @click="handleOk" type="primary" v-preventclick>确定</a-button>
|
||||
</template>
|
||||
</j-modal>
|
||||
</template>
|
||||
|
||||
@@ -179,11 +174,15 @@ export default {
|
||||
this.$emit('ok')
|
||||
},
|
||||
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 => {
|
||||
@@ -203,7 +202,9 @@ export default {
|
||||
this.$message.warn(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.confirmLoading = false
|
||||
setTimeout(() => {
|
||||
this.confirmLoading = false
|
||||
}, 1000)
|
||||
})
|
||||
},
|
||||
handleCancel() {
|
||||
|
||||
Reference in New Issue
Block a user