Commit 68c4e055 by 唐玉峰

.

parent 0d31f7d4
...@@ -777,9 +777,14 @@ export default { ...@@ -777,9 +777,14 @@ export default {
{ id: "2", name: "检查" }, { id: "2", name: "检查" },
{ id: "3", name: "检验" }, { id: "3", name: "检验" },
], ],
myTimer: null,
}; };
}, },
mounted() { mounted() {
this.$nextTick(() => {
window.addEventListener("mouseover", this.myTimeOut);
});
this.myTimeOut();
this.getIsRoute(); this.getIsRoute();
this.gettopdata(); this.gettopdata();
this.getlefttime(); this.getlefttime();
...@@ -824,6 +829,15 @@ export default { ...@@ -824,6 +829,15 @@ export default {
}, },
}, },
methods: { methods: {
myTimeOut() {
clearTimeout(this.myTimer);
this.myTimer = setTimeout(() => {
window.opener = null;
window.open("about:blank", "_self", "").close();
window.close();
clearTimeout(this.myTimer);
}, 120 * 60 * 1000);
},
setIndex(data) { setIndex(data) {
let queue = [...data]; let queue = [...data];
if (queue.length > 0) { if (queue.length > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment