首页隐藏子计划,计划列表子计划设备管理
This commit is contained in:
@@ -53,10 +53,9 @@
|
||||
<!-- 查看检测源 -->
|
||||
<TestSourcePopup :refresh-table='proTable?.getTableList' ref="testSourcePopup"/>
|
||||
|
||||
<ImportExcel ref='planImportExcel' />
|
||||
<ImportExcel ref='planImportExcel'/>
|
||||
|
||||
<ChildrenPlan :refresh-table='refreshTable' ref='childrenPlanView' :width='viewWidth' :height='viewHeight'></ChildrenPlan>
|
||||
|
||||
</template>
|
||||
|
||||
<script setup lang='tsx' name='useProTable'>
|
||||
@@ -108,6 +107,8 @@ const currentPage = ref(1)
|
||||
const pageSize = ref(10)
|
||||
const currentPageData = ref<any[]>([])//当前页的数据
|
||||
const patternId = ref('')
|
||||
|
||||
|
||||
onMounted(async () => {
|
||||
refreshTable()
|
||||
|
||||
@@ -200,6 +201,7 @@ function buildTree(flatList: any[]): any[] {
|
||||
return tree;
|
||||
}
|
||||
|
||||
|
||||
const handleSizeChange = (size: number) => {
|
||||
pageSize.value = size
|
||||
updateCurrentPageData()
|
||||
@@ -472,9 +474,7 @@ const importClick = () => {
|
||||
}
|
||||
// 点击导出按钮
|
||||
const exportClick = () => {
|
||||
|
||||
ElMessageBox.confirm('确认导出检测计划?', '温馨提示', { type: 'warning' }).then(() =>{
|
||||
const patternId = dictStore.getDictData('Pattern').find(item=>item.name=== modeStore.currentMode)?.id//获取数据字典中对应的id
|
||||
useDownload(exportPlan,'检测计划导出数据', {...proTable.value?.searchParam,patternId:patternId}, false,'.xlsx')
|
||||
})
|
||||
}
|
||||
@@ -500,7 +500,7 @@ const handleDelete = async (params: Plan.ReqPlanParams) => {
|
||||
}
|
||||
|
||||
const openChildrenPlan = (row: Partial<Plan.ReqPlan> = {}) => {
|
||||
childrenPlanView.value.open("检测计划详情",row)
|
||||
childrenPlanView.value.open("检测计划详情",row,patternId.value)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user