审核按钮防止快速点击
parent
37db6f8263
commit
f1ae28d005
|
|
@ -267,7 +267,8 @@
|
|||
import { settings } from 'nprogress';
|
||||
const MapboxMap = defineAsyncComponent(() => import('@/components/MapboxMaps/MapComponent.vue'));
|
||||
const spinning = ref(false)
|
||||
const quickClick = ref<any>(null)
|
||||
let quickClick: any = null
|
||||
const goClick = ref(true)
|
||||
const geomsList = ref();
|
||||
const mapConfig = ref({ isShowMap: false });
|
||||
const MapboxComponent = ref();
|
||||
|
|
@ -683,12 +684,11 @@
|
|||
designerData.taskBtns = btns;
|
||||
}
|
||||
async function handleBtnClick(btn) {
|
||||
if(quickClick.value !== null){
|
||||
clearTimeout(quickClick.value)
|
||||
quickClick.value = setTimeout(() => {}, 100)
|
||||
return
|
||||
if(goClick.value){
|
||||
goClick.value = false
|
||||
quickClick = setTimeout(() => {goClick.value = true}, 1000)
|
||||
}else{
|
||||
quickClick.value = setTimeout(() => {}, 100)
|
||||
return
|
||||
}
|
||||
const instanceInfo = designerData.process.instanceInfo;
|
||||
// 验证审批栏必填项
|
||||
|
|
|
|||
Loading…
Reference in New Issue