前端优化调整
This commit is contained in:
@@ -198,7 +198,6 @@ import { ResultEnum } from '@/enums/httpEnum'
|
|||||||
const checkStore = useCheckStore()
|
const checkStore = useCheckStore()
|
||||||
let devNum = 0//当前选取的被检设备数量
|
let devNum = 0//当前选取的被检设备数量
|
||||||
let devChannelsNum = 0//当前选择的被检设备通道总数
|
let devChannelsNum = 0//当前选择的被检设备通道总数
|
||||||
let devTestedNum = 0//当前选择的已完成检测的被检设备数量
|
|
||||||
const tableKey = ref(0)
|
const tableKey = ref(0)
|
||||||
const tableHeight = ref(0)
|
const tableHeight = ref(0)
|
||||||
|
|
||||||
@@ -206,7 +205,6 @@ const dataCheckPopupRef = ref<InstanceType<typeof dataCheckPopup>>()
|
|||||||
const selectTestItemPopupRef = ref<InstanceType<typeof SelectTestItemPopup>>()
|
const selectTestItemPopupRef = ref<InstanceType<typeof SelectTestItemPopup>>()
|
||||||
const writeTHPopupRef = ref<InstanceType<typeof WriteTHPopup>>()
|
const writeTHPopupRef = ref<InstanceType<typeof WriteTHPopup>>()
|
||||||
const deviceConnectionPopupRef = ref<InstanceType<typeof DeviceConnectionPopup>>()
|
const deviceConnectionPopupRef = ref<InstanceType<typeof DeviceConnectionPopup>>()
|
||||||
const matchDialogVisible = ref(false)
|
|
||||||
const dialogTitle = ref('手动检测')
|
const dialogTitle = ref('手动检测')
|
||||||
const checkStateTable = ref<number[]>([0, 1, 2])
|
const checkStateTable = ref<number[]>([0, 1, 2])
|
||||||
const modeStore = useModeStore()
|
const modeStore = useModeStore()
|
||||||
@@ -531,7 +529,6 @@ const handleSelectionChange = (selection: any[]) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 统计已完成检测的设备数量
|
// 统计已完成检测的设备数量
|
||||||
devTestedNum = selection.filter((item) => item.checkState === 2).length
|
|
||||||
const result = selection.filter((item) => item.checkResult != 0)
|
const result = selection.filter((item) => item.checkResult != 0)
|
||||||
if (result.length > 0) {
|
if (result.length > 0) {
|
||||||
testType = 'test'
|
testType = 'test'
|
||||||
@@ -662,7 +659,6 @@ function refreshStatusList() {
|
|||||||
// 重置设备选择统计信息
|
// 重置设备选择统计信息
|
||||||
devNum = 0
|
devNum = 0
|
||||||
devChannelsNum = 0
|
devChannelsNum = 0
|
||||||
devTestedNum = 0
|
|
||||||
// 清空查询表单
|
// 清空查询表单
|
||||||
form.value.search = null
|
form.value.search = null
|
||||||
form.value.checkStatus = null//检测状态默认为未检
|
form.value.checkStatus = null//检测状态默认为未检
|
||||||
|
|||||||
Reference in New Issue
Block a user