UPDATE: 1、重新修改激活逻辑;2、优化
This commit is contained in:
@@ -369,9 +369,7 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
|
||||
fixed: 'right',
|
||||
render: (scope: { row: { checkState: number } }) => {
|
||||
return scope.row.checkState === 0 ? (
|
||||
<el-tag type="primary" effect="dark">
|
||||
未检
|
||||
</el-tag>
|
||||
<el-tag type="info">未检</el-tag>
|
||||
) : scope.row.checkState === 1 ? (
|
||||
<el-tag type="warning" effect="dark">
|
||||
检测中
|
||||
@@ -531,7 +529,6 @@ const removeTab = async (targetName: TabPaneName) => {
|
||||
}
|
||||
// 弹窗打开方法
|
||||
const open = async (textTitle: string, data: Plan.ReqPlan, pattern: string) => {
|
||||
|
||||
dialogVisible.value = true
|
||||
title.value = textTitle
|
||||
planTitle.value = data.name
|
||||
@@ -585,7 +582,7 @@ const handleTableDataUpdate = async (newData: any[]) => {
|
||||
planFormContent.value = matchedItem
|
||||
//console.log('递归匹配成功:', planFormContent.value)
|
||||
} else {
|
||||
// console.warn('未找到匹配的 planId:', planId.value)
|
||||
// console.warn('未找到匹配的 planId:', planId.value)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -616,7 +613,7 @@ const handleRemove = async (row: any) => {
|
||||
ElMessage.warning(`当前设备已被子计划绑定,无法删除!`)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
proTable.value?.getTableList() // 刷新当前表格
|
||||
})
|
||||
.catch(() => {
|
||||
@@ -690,10 +687,6 @@ const exportPlan = async () => {
|
||||
ElMessageBox.confirm(`确认导出${subPlanFormContent.name}子计划元信息?`, '温馨提示', { type: 'warning' }).then(() =>
|
||||
useDownload(exportSubPlan, `${subPlanFormContent.name}_子计划元信息`, params, false, '.zip')
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
const exportPlanCheckResultData = async (selectedListIds: string[]) => {
|
||||
@@ -743,7 +736,6 @@ const initSSE = () => {
|
||||
eventSource.value = http.sse('/sse/createSse')
|
||||
|
||||
eventSource.value.onmessage = event => {
|
||||
|
||||
const res = JSON.parse(event.data)
|
||||
progressData.value.percentage = res.data
|
||||
progressData.value.message = res.message
|
||||
|
||||
@@ -338,9 +338,7 @@ const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
|
||||
fieldNames: { label: 'label', value: 'id' },
|
||||
render: scope => {
|
||||
return scope.row.testState === 0 ? (
|
||||
<el-tag type="primary" effect="dark">
|
||||
未检
|
||||
</el-tag>
|
||||
<el-tag type="info">未检</el-tag>
|
||||
) : scope.row.testState === 1 ? (
|
||||
<el-tag type="warning" effect="dark">
|
||||
检测中
|
||||
|
||||
Reference in New Issue
Block a user