微调弹出框

This commit is contained in:
sjl
2024-12-06 09:11:44 +08:00
parent 69a4cbbbc2
commit b57a7edf28
6 changed files with 12 additions and 8 deletions

View File

@@ -55,7 +55,7 @@
:dialogTitle="dialogTitle"
:is-read-only="isReadOnly"
@update:visible="dialogFormVisible = $event"
ref='testSourcePopup'
/>
<!-- 查看误差体系详细信息 -->
<ErrorStandardDialog
@@ -65,6 +65,8 @@
@update:visible='detail_dialogFormVisible = $event'
ref="errorStandardPopup"
/>
<!-- <TestSourcePopup :refresh-table='proTable?.getTableList' ref='testSourcePopup' /> -->
</div>
<devTransfer
:dialogVisible=devTransferVisible
@@ -110,8 +112,8 @@ import { ElMessage, ElMessageBox } from 'element-plus'
import type { Action } from 'element-plus'
import type { ErrorSystem } from '@/api/error/interface'
import ErrorStandardDialog from '@/views/machine/errorSystem/components/errorStandardPopup.vue' // 导入子组件
import TestSourcePopup from '@/views/machine/testSource/components/testSourcePopup.vue' // 导入子组件
import { type TestSource } from '@/api/device/interface/testSource'
const dictStore = useDictStore()
// 定义包含和排除的单位
const includedUnits = ['日', '周', '月', '自定义'] // 可以根据需要包含的单位
@@ -129,6 +131,7 @@ const dialogFormVisible = ref(false)
const dialogTitle = ref('')
const isReadOnly = ref(false)
const router = useRouter()
const dialogForm = ref<Plan.PlanBO>({
id: '',
name: '',
@@ -272,7 +275,7 @@ function openFileDialog() {
function isVisible(row: Plan.PlanAndSourceBO) {
console.log(row)
//console.log(row)
if(!row.hasOwnProperty('testSourceList') || !Array.isArray(row.testSourceList))
return false
else if(row.testSourceList.length <= 1)
@@ -292,7 +295,6 @@ function showData(row: string) {
}
const testSourcePopup = ref()
function showTestSource(row: string) {
//testSourcePopup.value?.open('view', row,'模拟式')
}