|
@@ -67,6 +67,7 @@ import {
|
|
onUpdated,
|
|
onUpdated,
|
|
nextTick,
|
|
nextTick,
|
|
watch,
|
|
watch,
|
|
|
|
+ getCurrentInstance,
|
|
} from "vue";
|
|
} from "vue";
|
|
import { swiper } from "@/utils/swiper";
|
|
import { swiper } from "@/utils/swiper";
|
|
import {
|
|
import {
|
|
@@ -100,6 +101,7 @@ export default defineComponent({
|
|
},
|
|
},
|
|
},
|
|
},
|
|
setup(props, context) {
|
|
setup(props, context) {
|
|
|
|
+ const proxyGlobal: any = getCurrentInstance();
|
|
const screenInfo: any = {
|
|
const screenInfo: any = {
|
|
screenWidth: 0,
|
|
screenWidth: 0,
|
|
screenHeight: 0,
|
|
screenHeight: 0,
|
|
@@ -982,11 +984,24 @@ export default defineComponent({
|
|
},
|
|
},
|
|
// 提交加班记录
|
|
// 提交加班记录
|
|
saveBatchCustomScene(formTimerArr: any, type: any = 1) {
|
|
saveBatchCustomScene(formTimerArr: any, type: any = 1) {
|
|
- saveBatchCustomScene(formTimerArr).then((res) => {
|
|
|
|
- if (type === 1) {
|
|
|
|
- context.emit("closeWork");
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ proxyGlobal.proxy.$loadingStart(0);
|
|
|
|
+ proxyData.formBtn = true;
|
|
|
|
+ saveBatchCustomScene(formTimerArr)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ let timer: any = setTimeout(() => {
|
|
|
|
+ proxyGlobal.proxy.$loadinngEnd();
|
|
|
|
+ if (type === 1) {
|
|
|
|
+ context.emit("closeWork");
|
|
|
|
+ }
|
|
|
|
+ timer = null;
|
|
|
|
+ clearTimeout(timer);
|
|
|
|
+ proxyData.formBtn = false;
|
|
|
|
+ }, 1000);
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ proxyGlobal.proxy.$loadinngEnd();
|
|
|
|
+ proxyData.formBtn = false;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
// 删除
|
|
// 删除
|
|
triggerDelTime() {
|
|
triggerDelTime() {
|