|
|
@ -76,14 +76,23 @@ |
|
|
|
v-hasPermi="['${moduleName}:${businessName}:add']" |
|
|
|
v-hasPermi="['${moduleName}:${businessName}:add']" |
|
|
|
>新增</el-button> |
|
|
|
>新增</el-button> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="1.5"> |
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
|
|
type="info" |
|
|
|
|
|
|
|
plain |
|
|
|
|
|
|
|
icon="Sort" |
|
|
|
|
|
|
|
@click="toggleExpandAll" |
|
|
|
|
|
|
|
>展开/折叠</el-button> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> |
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
<el-table |
|
|
|
<el-table |
|
|
|
|
|
|
|
v-if="refreshTable" |
|
|
|
v-loading="loading" |
|
|
|
v-loading="loading" |
|
|
|
:data="${businessName}List" |
|
|
|
:data="${businessName}List" |
|
|
|
row-key="${treeCode}" |
|
|
|
row-key="${treeCode}" |
|
|
|
default-expand-all |
|
|
|
:default-expand-all="isExpandAll" |
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}" |
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}" |
|
|
|
> |
|
|
|
> |
|
|
|
#foreach($column in $columns) |
|
|
|
#foreach($column in $columns) |
|
|
@ -283,6 +292,8 @@ const open = ref(false); |
|
|
|
const loading = ref(true); |
|
|
|
const loading = ref(true); |
|
|
|
const showSearch = ref(true); |
|
|
|
const showSearch = ref(true); |
|
|
|
const title = ref(""); |
|
|
|
const title = ref(""); |
|
|
|
|
|
|
|
const isExpandAll = ref(true); |
|
|
|
|
|
|
|
const refreshTable = ref(true); |
|
|
|
#foreach ($column in $columns) |
|
|
|
#foreach ($column in $columns) |
|
|
|
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN") |
|
|
|
#if($column.htmlType == "datetime" && $column.queryType == "BETWEEN") |
|
|
|
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) |
|
|
|
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) |
|
|
@ -405,6 +416,15 @@ async function handleAdd(row) { |
|
|
|
title.value = "添加${functionName}"; |
|
|
|
title.value = "添加${functionName}"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 展开/折叠操作 */ |
|
|
|
|
|
|
|
function toggleExpandAll() { |
|
|
|
|
|
|
|
refreshTable.value = false; |
|
|
|
|
|
|
|
isExpandAll.value = !isExpandAll.value; |
|
|
|
|
|
|
|
nextTick(() => { |
|
|
|
|
|
|
|
refreshTable.value = true; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 修改按钮操作 */ |
|
|
|
/** 修改按钮操作 */ |
|
|
|
async function handleUpdate(row) { |
|
|
|
async function handleUpdate(row) { |
|
|
|
reset(); |
|
|
|
reset(); |
|
|
|