|
@@ -2,7 +2,7 @@
|
|
<div class="scene-config">
|
|
<div class="scene-config">
|
|
<!--开放办公区-->
|
|
<!--开放办公区-->
|
|
<div class="time-box" :class="timerText.classColor">
|
|
<div class="time-box" :class="timerText.classColor">
|
|
- <img :src="parseImgUrl('page-officehome', 'work.svg')" alt="" />
|
|
|
|
|
|
+ <!-- <img :src="parseImgUrl('page-officehome', 'work.svg')" alt="" /> -->
|
|
<div class="time-text">
|
|
<div class="time-text">
|
|
<span>{{ timerText.text }}</span>
|
|
<span>{{ timerText.text }}</span>
|
|
<span>{{ timerText.timer }}</span>
|
|
<span>{{ timerText.timer }}</span>
|
|
@@ -23,6 +23,13 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <!--加班点击我要离开触发-->
|
|
|
|
+ <leave-dailog
|
|
|
|
+ :isShowLeaveDailog="isShowLeaveDailog"
|
|
|
|
+ v-if="isShowLeaveDailog"
|
|
|
|
+ @closeDailog="closeLeavDailog"
|
|
|
|
+ >
|
|
|
|
+ </leave-dailog>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -47,6 +54,8 @@ import {
|
|
import { UserActionTypes } from "@/store/modules/user/action-types";
|
|
import { UserActionTypes } from "@/store/modules/user/action-types";
|
|
import { useStore } from "@/store";
|
|
import { useStore } from "@/store";
|
|
import { saveBatchCustomScene } from "@/apis/envmonitor";
|
|
import { saveBatchCustomScene } from "@/apis/envmonitor";
|
|
|
|
+// import { Dialog } from "vant";
|
|
|
|
+import LeaveDailog from "@/views/envmonitor/components/workOvertime/LeaveDailog.vue";
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
props: {
|
|
props: {
|
|
@@ -59,6 +68,9 @@ export default defineComponent({
|
|
default: () => [],
|
|
default: () => [],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ components: {
|
|
|
|
+ LeaveDailog
|
|
|
|
+ },
|
|
setup(props, contx) {
|
|
setup(props, contx) {
|
|
const proxyGlobal: any = getCurrentInstance();
|
|
const proxyGlobal: any = getCurrentInstance();
|
|
let router: any = useRouter();
|
|
let router: any = useRouter();
|
|
@@ -406,18 +418,26 @@ export default defineComponent({
|
|
},
|
|
},
|
|
// 取消加班记录
|
|
// 取消加班记录
|
|
saveBatchCustomScene() {
|
|
saveBatchCustomScene() {
|
|
- proxyGlobal.proxy.$loadingStart(0);
|
|
|
|
|
|
+ // proxyGlobal.proxy.$loadingStart(0);
|
|
|
|
+ proxyData.openLeavDailog();
|
|
saveBatchCustomScene(proxyData.delTimeArr)
|
|
saveBatchCustomScene(proxyData.delTimeArr)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
proxyData.leaveBtnFlag = false;
|
|
proxyData.leaveBtnFlag = false;
|
|
console.log(res);
|
|
console.log(res);
|
|
- proxyGlobal.proxy.$loadinngEnd();
|
|
|
|
|
|
+ // proxyGlobal.proxy.$loadinngEnd();
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
proxyData.leaveBtnFlag = false;
|
|
proxyData.leaveBtnFlag = false;
|
|
- proxyGlobal.proxy.$loadinngEnd();
|
|
|
|
|
|
+ // proxyGlobal.proxy.$loadinngEnd();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ isShowLeaveDailog: false,
|
|
|
|
+ openLeavDailog() {
|
|
|
|
+ proxyData.isShowLeaveDailog = true;
|
|
|
|
+ },
|
|
|
|
+ closeLeavDailog() {
|
|
|
|
+ proxyData.isShowLeaveDailog = false;
|
|
|
|
+ },
|
|
});
|
|
});
|
|
watch(
|
|
watch(
|
|
props,
|
|
props,
|