|
|
@@ -122,7 +122,8 @@
|
|
|
qianming: '',
|
|
|
id: null
|
|
|
},
|
|
|
- type: null
|
|
|
+ type: null,
|
|
|
+ timer: null
|
|
|
})
|
|
|
|
|
|
const commonDialogRef = ref(null)
|
|
|
@@ -161,6 +162,11 @@
|
|
|
}
|
|
|
|
|
|
function handleAdd() {
|
|
|
+ if (data.timer) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ data.timer = setTimeout(() => { },3000)
|
|
|
+
|
|
|
const opt = Object.assign({}, {
|
|
|
...data.hetong,
|
|
|
htId: data.mobanList[data.mobanIndex].id
|
|
|
@@ -174,7 +180,10 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- })
|
|
|
+ }).finally(() => {
|
|
|
+ clearTimeout(data.timer);
|
|
|
+ data.timer = null;
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
function handleUpdate() {
|