|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
|
|
|
|
|
<div v-show="showSearch" class="mb-[10px]">
|
|
|
|
|
<el-card shadow="hover">
|
|
|
|
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
|
|
|
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true" label-width='100px'>
|
|
|
|
|
#foreach($column in $columns)
|
|
|
|
|
#if($column.query)
|
|
|
|
|
#set($dictType=$column.dictType)
|
|
|
|
@ -78,6 +78,11 @@
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['${moduleName}:${businessName}:export']">导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="warning" plain icon="Download" @click="handleExportTemplate" v-hasPermi="['${moduleName}:${businessName}:export']">导出模板</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<right-toolbar v-model:showSearch="showSearch" :columns="columns" :search="true" @queryTable="getList"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
</template>
|
|
|
|
@ -136,7 +141,7 @@
|
|
|
|
|
</el-card>
|
|
|
|
|
<!-- 添加或修改${functionName}对话框 -->
|
|
|
|
|
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
|
|
|
|
<el-form ref="${businessName}FormRef" :model="form" :rules="rules" label-width="80px">
|
|
|
|
|
<el-form ref="${businessName}FormRef" :model="form" :rules="rules" label-width="120px">
|
|
|
|
|
#foreach($column in $columns)
|
|
|
|
|
#set($field=$column.javaField)
|
|
|
|
|
#if(($column.insert || $column.edit) && !$column.pk)
|
|
|
|
@ -466,6 +471,13 @@ const handleExport = () => {
|
|
|
|
|
}, `${businessName}_#[[${new Date().getTime()}]]#.xlsx`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 导出模板按钮操作 */
|
|
|
|
|
const handleExportTemplate = () => {
|
|
|
|
|
proxy?.download('${moduleName}/${businessName}/exportTemplate', {
|
|
|
|
|
|
|
|
|
|
}, `${businessName}_#[[${new Date().getTime()}]]#.xlsx`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
getList();
|
|
|
|
|
});
|
|
|
|
|