style: 移除抓包loading提示
This commit is contained in:
@@ -112,7 +112,6 @@ function fnStart() {
|
|||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
modalState.from.timestamp = `${Date.now()}`;
|
modalState.from.timestamp = `${Date.now()}`;
|
||||||
const from = toRaw(modalState.from);
|
const from = toRaw(modalState.from);
|
||||||
const hide = message.loading(t('common.loading'), 0);
|
|
||||||
controller = new AbortController();
|
controller = new AbortController();
|
||||||
const signal = controller.signal;
|
const signal = controller.signal;
|
||||||
timeoutId = setInterval(() => {
|
timeoutId = setInterval(() => {
|
||||||
@@ -166,7 +165,6 @@ function fnStart() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hide();
|
|
||||||
clearInterval(timeoutId);
|
clearInterval(timeoutId);
|
||||||
runTime.value = 0;
|
runTime.value = 0;
|
||||||
modalState.confirmLoading = false;
|
modalState.confirmLoading = false;
|
||||||
@@ -219,7 +217,6 @@ function fnDownPCAP() {
|
|||||||
|
|
||||||
/**UPF抓包命令选择 */
|
/**UPF抓包命令选择 */
|
||||||
function fnUPFSelectCmd(value: any, option: any) {
|
function fnUPFSelectCmd(value: any, option: any) {
|
||||||
console.log(value, option);
|
|
||||||
modalState.from.upfStart = option.start;
|
modalState.from.upfStart = option.start;
|
||||||
modalState.from.upfStop = option.stop;
|
modalState.from.upfStop = option.stop;
|
||||||
}
|
}
|
||||||
@@ -235,7 +232,6 @@ function fnUPF(runType: 'start' | 'stop') {
|
|||||||
modalState.from.timestamp = `${Date.now()}`;
|
modalState.from.timestamp = `${Date.now()}`;
|
||||||
}
|
}
|
||||||
const from = toRaw(modalState.from);
|
const from = toRaw(modalState.from);
|
||||||
const hide = message.loading(t('common.loading'), 0);
|
|
||||||
tcpdumpNeUPFTask({
|
tcpdumpNeUPFTask({
|
||||||
neType: modalState.neType[0],
|
neType: modalState.neType[0],
|
||||||
neId: modalState.neType[1],
|
neId: modalState.neType[1],
|
||||||
@@ -286,7 +282,6 @@ function fnUPF(runType: 'start' | 'stop') {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hide();
|
|
||||||
modalState.confirmLoading = false;
|
modalState.confirmLoading = false;
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
@@ -317,6 +312,9 @@ onMounted(() => {
|
|||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
fnStop();
|
fnStop();
|
||||||
|
if (modalState.neType[0] === 'UPF') {
|
||||||
|
fnUPF('stop');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -360,6 +358,7 @@ onUnmounted(() => {
|
|||||||
v-model:value="modalState.from.upfStart"
|
v-model:value="modalState.from.upfStart"
|
||||||
:options="modalState.upfCmdOptions"
|
:options="modalState.upfCmdOptions"
|
||||||
:placeholder="t('views.traceManage.pcap.capArgUPFPlease')"
|
:placeholder="t('views.traceManage.pcap.capArgUPFPlease')"
|
||||||
|
:disabled="modalState.confirmLoading"
|
||||||
allow-clear
|
allow-clear
|
||||||
@select="fnUPFSelectCmd"
|
@select="fnUPFSelectCmd"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user