检测计划列表编辑

This commit is contained in:
sjl
2025-07-29 18:35:46 +08:00
parent 6e22c01dd8
commit 0079f7415e
3 changed files with 56 additions and 26 deletions

View File

@@ -188,7 +188,7 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
fieldNames: {label: 'name', value: 'id'},
minWidth: 200,
},
{
{
prop: 'cityName',
label: '地市',
minWidth: 150,
@@ -383,6 +383,11 @@ const open = async (textTitle: string,data: Plan.ReqPlan,pattern: string) => {
proTable.value?.getTableList()
isTabPlanFather.value = false//子计划页面按钮默认展示主计划的
patternId.value = pattern
columns.forEach(item => {//刚进去子计划页面隐藏主计划的操作列
if (item.prop === 'operation') {
item.isShow = false;
}
});
console.log('弹窗打开方法',planFormContent.value)
}
@@ -393,6 +398,9 @@ const handleTabClick = (tab:any) => {
if (item.prop === 'boundPlanName') {
item.isShow = false;
}
if (item.prop === 'operation') {
item.isShow = true;
}
});
isTabPlanFather.value = true
}else{
@@ -400,6 +408,9 @@ const handleTabClick = (tab:any) => {
if (item.prop === 'boundPlanName') {
item.isShow = true;
}
if (item.prop === 'operation') {
item.isShow = false;
}
});
isTabPlanFather.value = false
}