|
|
|
@ -17,13 +17,12 @@
|
|
|
|
|
v-model="queryParams.${column.javaField}"
|
|
|
|
|
placeholder="请输入${comment}"
|
|
|
|
|
clearable
|
|
|
|
|
size="small"
|
|
|
|
|
@keyup.enter="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType)
|
|
|
|
|
<el-form-item label="${comment}" prop="${column.javaField}">
|
|
|
|
|
<el-select v-model="queryParams.${column.javaField}" placeholder="请选择${comment}" clearable size="small">
|
|
|
|
|
<el-select v-model="queryParams.${column.javaField}" placeholder="请选择${comment}" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in ${dictType}"
|
|
|
|
|
:key="dict.value"
|
|
|
|
@ -34,13 +33,13 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType)
|
|
|
|
|
<el-form-item label="${comment}" prop="${column.javaField}">
|
|
|
|
|
<el-select v-model="queryParams.${column.javaField}" placeholder="请选择${comment}" clearable size="small">
|
|
|
|
|
<el-select v-model="queryParams.${column.javaField}" placeholder="请选择${comment}" clearable>
|
|
|
|
|
<el-option label="请选择字典生成" value="" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
#elseif($column.htmlType == "datetime" && $column.queryType != "BETWEEN")
|
|
|
|
|
<el-form-item label="${comment}" prop="${column.javaField}">
|
|
|
|
|
<el-date-picker clearable size="small"
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
v-model="queryParams.${column.javaField}"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="YYYY-MM-DD"
|
|
|
|
@ -48,11 +47,9 @@
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
#elseif($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
|
|
|
|
|
<el-form-item label="${comment}">
|
|
|
|
|
<el-form-item label="${comment}" style="width: 308px">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="daterange${AttrName}"
|
|
|
|
|
size="small"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
value-format="YYYY-MM-DD"
|
|
|
|
|
type="daterange"
|
|
|
|
|
range-separator="-"
|
|
|
|
@ -64,8 +61,8 @@
|
|
|
|
|
#end
|
|
|
|
|
#end
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="Search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
<el-button icon="Refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
|
|
|
|
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
@ -75,7 +72,6 @@
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
icon="Plus"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
v-hasPermi="['${moduleName}:${businessName}:add']"
|
|
|
|
|
>新增</el-button>
|
|
|
|
@ -85,7 +81,6 @@
|
|
|
|
|
type="success"
|
|
|
|
|
plain
|
|
|
|
|
icon="Edit"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['${moduleName}:${businessName}:edit']"
|
|
|
|
@ -96,7 +91,6 @@
|
|
|
|
|
type="danger"
|
|
|
|
|
plain
|
|
|
|
|
icon="Delete"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
v-hasPermi="['${moduleName}:${businessName}:remove']"
|
|
|
|
@ -107,7 +101,6 @@
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="Download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['${moduleName}:${businessName}:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
@ -156,14 +149,12 @@
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="Edit"
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['${moduleName}:${businessName}:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="Delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
@ -176,8 +167,8 @@
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
:total="total"
|
|
|
|
|
v-model:p:page="queryParams.pageNum"
|
|
|
|
|
v-model:p:limit="queryParams.pageSize"
|
|
|
|
|
v-model:page="queryParams.pageNum"
|
|
|
|
|
v-model:limit="queryParams.pageSize"
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
@ -265,7 +256,7 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
#elseif($column.htmlType == "datetime")
|
|
|
|
|
<el-form-item label="${comment}" prop="${field}">
|
|
|
|
|
<el-date-picker clearable size="small"
|
|
|
|
|
<el-date-picker clearable
|
|
|
|
|
v-model="form.${field}"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="YYYY-MM-DD"
|
|
|
|
@ -284,10 +275,10 @@
|
|
|
|
|
<el-divider content-position="center">${subTable.functionName}信息</el-divider>
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="primary" icon="Plus" size="mini" @click="handleAdd${subClassName}">添加</el-button>
|
|
|
|
|
<el-button type="primary" icon="Plus" @click="handleAdd${subClassName}">添加</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="danger" icon="Delete" size="mini" @click="handleDelete${subClassName}">删除</el-button>
|
|
|
|
|
<el-button type="danger" icon="Delete" @click="handleDelete${subClassName}">删除</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-table :data="${subclassName}List" :row-class-name="row${subClassName}Index" @selection-change="handle${subClassName}SelectionChange" ref="${subclassName}">
|
|
|
|
|