update vue template

This commit is contained in:
zhangwenjian committed 2020-05-05 12:25:17 +08:00
1 parent 570afbbe12
commit 38eed4a8fe
1 file changed
+4 -8
+4 -8
View File
@@ -4,7 +4,7 @@
{{range .Columns}} {{range .Columns}}
{{- $x := .IsQuery -}} {{- $x := .IsQuery -}}
{{- if ($x) -}} {{- if ($x) -}}
<el-form-item label="参数名称" prop="{{.JsonField}}"> <el-form-item label="{{.ColumnComment}}" prop="{{.JsonField}}">
<el-input v-model="queryParams.{{.JsonField}}" placeholder="请输入{{.ColumnComment}}" clearable size="small" @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.{{.JsonField}}" placeholder="请输入{{.ColumnComment}}" clearable size="small" @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
{{end}} {{end}}
@@ -47,7 +47,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-table v-loading="loading" :data="configList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="{{.ModuleName}}List" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
{{- range .Columns -}} {{- range .Columns -}}
{{- $x := .IsList -}} {{- $x := .IsList -}}
@@ -86,9 +86,6 @@
<!-- 添加或修改参数配置对话框 --> <!-- 添加或修改参数配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px"> <el-dialog :title="title" :visible.sync="open" width="500px">
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="参数名称" prop="configName">
<el-input v-model="form.configName" placeholder="请输入参数名称" />
</el-form-item>
{{ range .Columns }} {{ range .Columns }}
{{- $x := .IsInsert -}} {{- $x := .IsInsert -}}
{{- if ($x) -}} {{- if ($x) -}}
@@ -107,8 +104,7 @@
</template> </template>
<script> <script>
import { list{{.ClassName}}, get{{.ClassName}}, del{{.ClassName}}, add{{.ClassName}}, update{{.ClassName}} } from '@/api/system/config' import { list{{.ClassName}}, get{{.ClassName}}, del{{.ClassName}}, add{{.ClassName}}, update{{.ClassName}} } from '@/api/{{.PackageName}}'
import { formatJson } from '@/utils'
export default { export default {
name: 'Config', name: 'Config',
@@ -173,7 +169,7 @@
this.loading = false this.loading = false
} }
) )
} },
// 取消按钮 // 取消按钮
cancel() { cancel() {
this.open = false this.open = false