优化代码
This commit is contained in:
@@ -436,6 +436,7 @@ function BigBrotherstop() {
|
|||||||
loading.close();
|
loading.close();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//指定直播间
|
//指定直播间
|
||||||
function specifyClick() {
|
function specifyClick() {
|
||||||
if (textarea.value == "") {
|
if (textarea.value == "") {
|
||||||
@@ -451,6 +452,7 @@ function specifyClick() {
|
|||||||
streamdialogVisible.value = false;
|
streamdialogVisible.value = false;
|
||||||
streamdialogVisibletext.value = true;
|
streamdialogVisibletext.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//指定直播间重置
|
//指定直播间重置
|
||||||
function specifyreset() {
|
function specifyreset() {
|
||||||
textarea.value = "";
|
textarea.value = "";
|
||||||
@@ -561,6 +563,8 @@ let streamdialogVisibletext = ref(false);
|
|||||||
let streamdialogVisible = ref(false);
|
let streamdialogVisible = ref(false);
|
||||||
//指定直播间id
|
//指定直播间id
|
||||||
let textarea = ref("");
|
let textarea = ref("");
|
||||||
|
//计时器
|
||||||
|
let startTime = ref(null);
|
||||||
//分配的员工
|
//分配的员工
|
||||||
let staffId = ref({});
|
let staffId = ref({});
|
||||||
//备注信息
|
//备注信息
|
||||||
@@ -585,6 +589,7 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
}, 500);
|
}, 500);
|
||||||
});
|
});
|
||||||
|
|
||||||
// 启动计时器
|
// 启动计时器
|
||||||
function startTimerfun() {
|
function startTimerfun() {
|
||||||
startTime.value = setInterval(() => {
|
startTime.value = setInterval(() => {
|
||||||
@@ -599,6 +604,8 @@ function startTimerfun() {
|
|||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 停止计时器
|
// 停止计时器
|
||||||
function stopTimerfun() {
|
function stopTimerfun() {
|
||||||
clearInterval(startTime.value);
|
clearInterval(startTime.value);
|
||||||
|
|||||||
Reference in New Issue
Block a user