From 1f236bfe78813d4a97ad2bc0aa5af0575679c379 Mon Sep 17 00:00:00 2001
From: Zhu Zhonghua <zhonghua@qq.com>
Date: 星期三, 16 四月 2025 15:20:53 +0800
Subject: [PATCH] 增加锁定列和滚动高度问题
---
src/views/mainPlan/apsPartRoutStat/index.vue | 2 +-
src/views/partPlan/index.vue | 2 +-
src/views/mainPlan/platePlan/index.vue | 9 +++------
src/views/mainPlan/weldSeam/index.vue | 16 +++++++++-------
src/views/mainPlan/gasPiping/index.vue | 2 +-
5 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/src/views/mainPlan/apsPartRoutStat/index.vue b/src/views/mainPlan/apsPartRoutStat/index.vue
index dbda14c..e3432df 100644
--- a/src/views/mainPlan/apsPartRoutStat/index.vue
+++ b/src/views/mainPlan/apsPartRoutStat/index.vue
@@ -19,8 +19,8 @@
v-hasPermi="['apsPartRouteStat:edit']"
>鏇存柊</el-button>
</el-col>
+ <right-toolbar @queryTable="getList" :search="false"></right-toolbar>
</el-row>
-
<vxe-grid ref="gridRef" v-bind="gridOptions" :loading="loading"></vxe-grid>
</div>
</template>
diff --git a/src/views/mainPlan/gasPiping/index.vue b/src/views/mainPlan/gasPiping/index.vue
index cac1bf8..fe9d87e 100644
--- a/src/views/mainPlan/gasPiping/index.vue
+++ b/src/views/mainPlan/gasPiping/index.vue
@@ -207,7 +207,7 @@
const total = ref(0);
const daterangePlanStartDay = ref([]);
const daterangePlanEndDay = ref([]);
-const height = ref(document.documentElement.clientHeight - 210 + "px;")
+const height = ref(document.documentElement.clientHeight - 270 + "px;")
const isVisible = ref(false);
const isError = ref(false);
const planned = ref(true);
diff --git a/src/views/mainPlan/platePlan/index.vue b/src/views/mainPlan/platePlan/index.vue
index fa6e073..08a4fb4 100644
--- a/src/views/mainPlan/platePlan/index.vue
+++ b/src/views/mainPlan/platePlan/index.vue
@@ -105,7 +105,6 @@
:loading="loading"
:height="height"
@on-checkbox="handleCheckboxChange"
-
:expand-config="expandConfig"
:subGridOptions="subGridOptions"
>
@@ -219,7 +218,7 @@
const daterangePlanStartDay = ref([]);
const daterangePlanEndDay = ref([]);
-const height = ref(document.documentElement.clientHeight - 210 + "px;")
+const height = ref(document.documentElement.clientHeight - 270 + "px;")
const isVisible = ref(false);
const isError = ref(false);
const planned = ref(true);
@@ -431,9 +430,9 @@
// 琛ㄦ牸閰嶇疆
const columns = ref([
+ { field: 'expand', type: 'expand', width: 60, align: 'center', slots: { content: 'expandContent' } },
{ type: 'checkbox', width: 60, align:"center"},
{ type: 'seq', title: '搴忓彿', width: 60 },
- { field: 'expand', type: 'expand', width: 60, align: 'center', slots: { content: 'expandContent' } },
{
title: '涓昏鍒掑憳',
field: 'masterPlanner',
@@ -482,7 +481,7 @@
{
title: '鍗曟嵁鍙�',
field: 'documentNumber',
- width: 100,
+ width: 140,
},
{
title: '闇�姹傚垎绫�',
@@ -850,11 +849,9 @@
const expandConfig = ref({
lazy: true,
loadMethod ({ row }) {
- debugger;
// 璋冪敤鎺ュ彛
return listProcessRoute({'workOrderNo':row.documentNumber}).then(data => {
row.subList = data.rows;
- debugger;
})
}
})
diff --git a/src/views/mainPlan/weldSeam/index.vue b/src/views/mainPlan/weldSeam/index.vue
index e852eff..2c9f3bc 100644
--- a/src/views/mainPlan/weldSeam/index.vue
+++ b/src/views/mainPlan/weldSeam/index.vue
@@ -20,7 +20,7 @@
v-hasPermi="['weldSeam:weldSeam:export']"
>瀵煎嚭</el-button>
</el-col>
- <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
+ <right-toolbar :search="false" @queryTable="getList"></right-toolbar>
</el-row>
<HxlhTable
@@ -171,7 +171,6 @@
const open = ref(false);
const loading = ref(true);
-const showSearch = ref(true);
const ids = ref([]);
const single = ref(true);
const multiple = ref(true);
@@ -210,21 +209,24 @@
// 琛ㄦ牸閰嶇疆
const columns = ref([
- { type: 'seq', title: '搴忓彿', width: 60 },
+ { type: 'seq', title: '搴忓彿', width: 60, fixed: 'left' },
{
title: '骞翠唤',
field: 'year',
- width: 100,
+ width: 100,
+ fixed: 'left'
},
{
title: '鏈堜唤',
field: 'month',
- width: 80,
+ width: 80,
+ fixed: 'left'
},
{
title: '鐢熶骇鍩哄湴',
field: 'productionBase',
- width: 150,
+ width: 150,
+ fixed: 'left'
},
{
title: '璁㈠崟闇�姹�',
@@ -709,7 +711,7 @@
console.log(row);
open.value = true;
title.value = "淇敼鐒婄紳";
- form.value = row;
+ form.value = {...row};
// const _id = row.id
// getWeldSeam(_id).then(response => {
// form.value = response.data;
diff --git a/src/views/partPlan/index.vue b/src/views/partPlan/index.vue
index bd69847..dcafbb0 100644
--- a/src/views/partPlan/index.vue
+++ b/src/views/partPlan/index.vue
@@ -244,7 +244,7 @@
const total = ref(0);
const daterangePlanStartDay = ref([]);
const daterangePlanEndDay = ref([]);
-const height = ref(document.documentElement.clientHeight - 210 + "px;")
+const height = ref(document.documentElement.clientHeight - 270 + "px;")
const isVisible = ref(false);
const isError = ref(false);
const planned = ref(true);
--
Gitblit v1.9.3