调整检测首页布局;根据不同的功能,实现不同的表格展示
This commit is contained in:
@@ -45,8 +45,14 @@
|
||||
</template>
|
||||
</ProTable>
|
||||
|
||||
@update:visible="dialogFormVisible = $event"/>
|
||||
|
||||
<!-- 向计划导入/导出设备对话框 -->
|
||||
<planPopup
|
||||
:visible="dialogFormVisible"
|
||||
:formData="dialogForm"
|
||||
:dialogTitle="dialogTitle"
|
||||
:is-read-only="isReadOnly"
|
||||
@update:visible="dialogFormVisible = $event"
|
||||
/>
|
||||
<!-- 查看误差体系详细信息 -->
|
||||
<ErrorStandardDialog
|
||||
:visible='detail_dialogFormVisible'
|
||||
@@ -89,7 +95,7 @@ import type { Plan } from '@/api/plan/interface'
|
||||
import planPopup from '@/views/plan/planList/components/planPopup.vue' // 导入子组件
|
||||
import DeviceOpen from '@/views/plan/planList/components/devPopup.vue'
|
||||
import SourceOpen from '@/views/plan/planList/components/sourcePopup.vue'
|
||||
import temp from './components/temp.vue'
|
||||
import Temp from './components/Temp.vue'
|
||||
import devTransfer from './components/devTransfer.vue'
|
||||
import sourceTransfer from './components/sourceTransfer.vue'
|
||||
import { useViewSize } from '@/hooks/useViewSize'
|
||||
@@ -142,6 +148,14 @@ const detail_dialogForm = ref<ErrorSystem.Error_detail>({
|
||||
maxErrorValue: '',//最大误差
|
||||
})
|
||||
|
||||
// <el-button
|
||||
// v-for="(button, index) in scope.row.testSourceList"
|
||||
// :key="index"
|
||||
// @click="handleClick(button)"
|
||||
// >
|
||||
// {{ button.text }}
|
||||
// </el-button>
|
||||
|
||||
// 表格配置项
|
||||
const columns = reactive<ColumnProps<Plan.PlanAndSourceBO>[]>([
|
||||
{ type: 'selection', fixed: 'left', width: 70 },
|
||||
@@ -158,19 +172,15 @@ const columns = reactive<ColumnProps<Plan.PlanAndSourceBO>[]>([
|
||||
width: 300,
|
||||
render: scope => {
|
||||
return (
|
||||
// <el-button
|
||||
// v-for="(button, index) in scope.row.testSourceList"
|
||||
// :key="index"
|
||||
// @click="handleClick(button)"
|
||||
// >
|
||||
// {{ button.text }}
|
||||
// </el-button>
|
||||
<div class='flx-flex-start'>
|
||||
<el-button type='primary' link onClick={() => showData(scope.row.testSourceName)}>
|
||||
{scope.row.testSourceName}
|
||||
</el-button>
|
||||
<temp></temp>
|
||||
</div>
|
||||
<Temp></Temp>
|
||||
</div>
|
||||
// <Temp { visible: scope.row.testSourceList.length > 1 }></Temp>
|
||||
// <Temp :visible='{scope.row.testSourceList.length > 1}'></Temp>
|
||||
// <Temp :visible="scope.row.testSourceList.length > 1"></Temp>
|
||||
|
||||
)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user