|
@@ -54,7 +54,7 @@
|
|
|
icon="download"
|
|
|
@click="doExport">导出
|
|
|
</a-button>
|
|
|
- <a-button style="margin-left:8px;" type="primary" @click="doUpdateNo">
|
|
|
+ <a-button :confirmLoading="confirmLoading" style="margin-left:8px;" type="primary" @click="doUpdateNo">
|
|
|
<a-icon type="upload"/>
|
|
|
初始化编码
|
|
|
</a-button>
|
|
@@ -146,6 +146,7 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
// 查询参数
|
|
|
+ confirmLoading: false,
|
|
|
queryParam: {
|
|
|
type: this.checkType
|
|
|
},
|
|
@@ -338,7 +339,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
doUpdateNo (record) {
|
|
|
+ this.confirmLoading = true
|
|
|
updateCheckStandardNo().then(res => {
|
|
|
+ this.confirmLoading = false
|
|
|
this.$message.info('编码生成成功')
|
|
|
this.handleOk()
|
|
|
this.$refs.table.clearSelected()
|