|
@@ -76,14 +76,23 @@ |
|
@@ -76,14 +76,23 @@ |
|
76
|
v-hasPermi="['${moduleName}:${businessName}:add']"
|
76
|
v-hasPermi="['${moduleName}:${businessName}:add']"
|
|
77
|
>新增</el-button>
|
77
|
>新增</el-button>
|
|
78
|
</el-col>
|
78
|
</el-col>
|
|
|
|
79
|
+ <el-col :span="1.5">
|
|
|
|
80
|
+ <el-button
|
|
|
|
81
|
+ type="info"
|
|
|
|
82
|
+ plain
|
|
|
|
83
|
+ icon="Sort"
|
|
|
|
84
|
+ @click="toggleExpandAll"
|
|
|
|
85
|
+ >展开/折叠</el-button>
|
|
|
|
86
|
+ </el-col>
|
|
79
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
87
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
|
80
|
</el-row>
|
88
|
</el-row>
|
|
81
|
|
89
|
|
|
82
|
<el-table
|
90
|
<el-table
|
|
|
|
91
|
+ v-if="refreshTable"
|
|
83
|
v-loading="loading"
|
92
|
v-loading="loading"
|
|
84
|
:data="${businessName}List"
|
93
|
:data="${businessName}List"
|
|
85
|
row-key="${treeCode}"
|
94
|
row-key="${treeCode}"
|
|
86
|
- default-expand-all
|
95
|
+ :default-expand-all="isExpandAll"
|
|
87
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
96
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
88
|
>
|
97
|
>
|
|
89
|
#foreach($column in $columns)
|
98
|
#foreach($column in $columns)
|
|
@@ -283,6 +292,8 @@ const open = ref(false); |
|
@@ -283,6 +292,8 @@ const open = ref(false); |
|
283
|
const loading = ref(true);
|
292
|
const loading = ref(true);
|
|
284
|
const showSearch = ref(true);
|
293
|
const showSearch = ref(true);
|
|
285
|
const title = ref("");
|
294
|
const title = ref("");
|
|
|
|
295
|
+const isExpandAll = ref(true);
|
|
|
|
296
|
+const refreshTable = ref(true);
|
|
286
|
#foreach ($column in $columns)
|
297
|
#foreach ($column in $columns)
|
|
287
|
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
|
298
|
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
|
|
288
|
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
|
299
|
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
|
|
@@ -405,6 +416,15 @@ async function handleAdd(row) { |
|
@@ -405,6 +416,15 @@ async function handleAdd(row) { |
|
405
|
title.value = "添加${functionName}";
|
416
|
title.value = "添加${functionName}";
|
|
406
|
}
|
417
|
}
|
|
407
|
|
418
|
|
|
|
|
419
|
+/** 展开/折叠操作 */
|
|
|
|
420
|
+function toggleExpandAll() {
|
|
|
|
421
|
+ refreshTable.value = false;
|
|
|
|
422
|
+ isExpandAll.value = !isExpandAll.value;
|
|
|
|
423
|
+ nextTick(() => {
|
|
|
|
424
|
+ refreshTable.value = true;
|
|
|
|
425
|
+ });
|
|
|
|
426
|
+}
|
|
|
|
427
|
+
|
|
408
|
/** 修改按钮操作 */
|
428
|
/** 修改按钮操作 */
|
|
409
|
async function handleUpdate(row) {
|
429
|
async function handleUpdate(row) {
|
|
410
|
reset();
|
430
|
reset();
|