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