登录失效

This commit is contained in:
sjl
2025-02-07 14:28:15 +08:00
parent 6065fd1f67
commit 9206be2562
6 changed files with 55 additions and 25 deletions

View File

@@ -891,21 +891,21 @@ const handleTest = async (val: string) => {
if (val === '手动检测' || val === '自动检测' || val === '不合格项复检' || val === '全部复检') {
if (devNum > 6) {
// if (devNum > 6) {
// ElMessageBox.confirm(
// '每次检测最多只能选择6台设备请重新选择',
// '提示',
// {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning',
// },
// )
// return
// }
if (devChannelsNum > 12) {
ElMessageBox.confirm(
'每次检测最多只能选择6台设备,请重新选择',
'提示',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
},
)
return
}
if (devChannelsNum > 20) {
ElMessageBox.confirm(
'每次检测最多只能检测20个设备通道请重新选择',
'每次检测最多只能检测12个设备通道,请重新选择',
'提示',
{
confirmButtonText: '确定',

View File

@@ -27,7 +27,7 @@
<el-button type="primary" :icon="DArrowRight" v-if="stepsActiveIndex < 2 && ActiveStatue != 'success'" :disabled="skipDisabled"
@click="nextStep">跳过
</el-button>
<el-button type="primary" :icon="VideoPlay" v-if="ActiveStatue === 'waiting'" @click="handleSubmit">开始检测</el-button>
<el-button type="primary" :icon="VideoPlay" v-if="ActiveStatue === 'waiting'" @click="handleSubmit" :disabled="btnState">开始检测</el-button>
<el-button type="primary" v-if="TestStatus === 'process'" @click="handleSubmit" disabled>
<el-icon class="loading-box" style="color: #fff;margin-right: 8px;">
<component :is="Refresh"/>
@@ -114,7 +114,7 @@ import {showFullScreenLoading} from "@/components/Loading/fullScreen";
// (e: 'update:visible', value: boolean): void;
// (e: 'submit', data: any): void;
// }>();
const btnState = ref(false)
const checkStore = useCheckStore();
const skipDisabled = ref(false);
const nextStepText = ref('下一步');
@@ -243,6 +243,7 @@ const open = (selection: Device.ResPqDev[], title: string, time: boolean) => {
let loading;
const handleSubmit = () => {
skipDisabled.value = true
//btnState.value = true
console.log('=============', stepsActiveIndex.value)
let deviceIds = checkStore.devices.map((item) => item.deviceId)