Merge remote-tracking branch 'origin/master'
# Conflicts: # acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/two_conveyor/plug_pull_device_site/PlugPullDeviceSiteDeviceDriver.java # acs2/nladmin-ui/src/views/system/monitor/device/index.vue
This commit is contained in:
@@ -759,7 +759,11 @@ export default {
|
||||
this.dialogVisible = false
|
||||
},
|
||||
saveBtn() {
|
||||
// 禁用按钮
|
||||
this.isDisabled = true
|
||||
crudTask.add(this.form).then(res => {
|
||||
// 请求完成后启用按钮
|
||||
this.isDisabled = false
|
||||
this.crud.toQuery()
|
||||
this.formDia = false
|
||||
this.isDisabled = true
|
||||
@@ -767,6 +771,10 @@ export default {
|
||||
this.extension = [{
|
||||
name: '',
|
||||
value: '' }]
|
||||
// 设置定时器,等待一定时间后再次允许请求
|
||||
setTimeout(() => {
|
||||
this.isDisabled = false // 可根据具体需求进行调整
|
||||
}, 1000) // 5000 毫秒,即 5 秒钟
|
||||
},
|
||||
openDialog() {
|
||||
this.dialogVisible = true
|
||||
|
||||
Reference in New Issue
Block a user