mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 10:12:59 +00:00
代码生成前端页面错误修复
This commit is contained in:
@@ -28,9 +28,9 @@
|
|||||||
<el-select v-model="queryParams.{{$column.ColumnName}}" placeholder="请选择{{$comment}}" clearable size="small">
|
<el-select v-model="queryParams.{{$column.ColumnName}}" placeholder="请选择{{$comment}}" clearable size="small">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in {{$column.ColumnName}}Options"
|
v-for="dict in {{$column.ColumnName}}Options"
|
||||||
:key="dict.dictValue"
|
:key="dict.key"
|
||||||
:label="dict.dictLabel"
|
:label="dict.value"
|
||||||
:value="dict.dictValue"
|
:value="dict.key"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -86,7 +86,6 @@
|
|||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="{{.table.BusinessName}}List" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="{{.table.BusinessName}}List" @selection-change="handleSelectionChange">
|
||||||
@@ -152,9 +151,9 @@
|
|||||||
<el-select v-model="form.{{$field}}" placeholder="请选择{{$comment}}">
|
<el-select v-model="form.{{$field}}" placeholder="请选择{{$comment}}">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in {{$field}}Options"
|
v-for="dict in {{$field}}Options"
|
||||||
:key="dict.dictValue"
|
:key="dict.key"
|
||||||
:label="dict.dictLabel"
|
:label="dict.value"
|
||||||
{{if or (eq $column.GoType "int") (eq $column.GoType "int64")}}:value="parseInt(dict.dictValue)"{{else}}:value="dict.dictValue"{{end}}
|
{{if or (eq $column.GoType "int") (eq $column.GoType "int64")}}:value="parseInt(dict.key)"{{else}}:value="dict.key"{{end}}
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -169,9 +168,9 @@
|
|||||||
<el-checkbox-group v-model="form.{{$field}}">
|
<el-checkbox-group v-model="form.{{$field}}">
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-for="dict in {{$field}}Options"
|
v-for="dict in {{$field}}Options"
|
||||||
:key="dict.dictValue"
|
:key="dict.key"
|
||||||
:label="dict.dictValue">
|
:label="dict.key">
|
||||||
{{"{{"}}dict.dictLabel{{"}}"}}
|
{{"{{"}}dict.value{{"}}"}}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -186,9 +185,9 @@
|
|||||||
<el-radio-group v-model="form.{{$field}}">
|
<el-radio-group v-model="form.{{$field}}">
|
||||||
<el-radio
|
<el-radio
|
||||||
v-for="dict in {{$field}}Options"
|
v-for="dict in {{$field}}Options"
|
||||||
:key="dict.dictValue"
|
:key="dict.key"
|
||||||
{{if or (eq $column.GoType "int") (eq $column.GoType "int64")}}:label="parseInt(dict.dictValue)"{{else}}:label="dict.dictValue"{{end}}
|
{{if or (eq $column.GoType "int") (eq $column.GoType "int64")}}:label="parseInt(dict.key)"{{else}}:label="dict.key"{{end}}
|
||||||
>{{"{{"}}dict.dictLabel{{"}}"}}</el-radio>
|
>{{"{{"}}dict.value{{"}}"}}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
{{else if and (eq $column.HtmlType "radio") $dictType }}
|
{{else if and (eq $column.HtmlType "radio") $dictType }}
|
||||||
@@ -298,8 +297,8 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
list{{.table.BusinessName|UcFirst}}(this.queryParams).then(response => {
|
list{{.table.BusinessName|UcFirst}}(this.queryParams).then(response => {
|
||||||
this.{{.table.BusinessName}}List = response.rows;
|
this.{{.table.BusinessName}}List = response.data.list;
|
||||||
this.total = response.total;
|
this.total = response.data.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -31,9 +31,9 @@
|
|||||||
<el-select v-model="queryParams.{{$column.ColumnName}}" placeholder="请选择{{$comment}}" clearable size="small">
|
<el-select v-model="queryParams.{{$column.ColumnName}}" placeholder="请选择{{$comment}}" clearable size="small">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in {{$column.ColumnName}}Options"
|
v-for="dict in {{$column.ColumnName}}Options"
|
||||||
:key="dict.dictValue"
|
:key="dict.key"
|
||||||
:label="dict.dictLabel"
|
:label="dict.value"
|
||||||
:value="dict.dictValue"
|
:value="dict.key"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -71,7 +71,6 @@
|
|||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
>新增</el-button>
|
>新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
@@ -139,9 +138,9 @@
|
|||||||
<el-select v-model="form.{{$field}}" placeholder="请选择{{$comment}}">
|
<el-select v-model="form.{{$field}}" placeholder="请选择{{$comment}}">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in {{$field}}Options"
|
v-for="dict in {{$field}}Options"
|
||||||
:key="dict.dictValue"
|
:key="dict.key"
|
||||||
:label="dict.dictLabel"
|
:label="dict.value"
|
||||||
{{if or (eq $column.GoType "int") (eq $column.GoType "int64")}}:value="parseInt(dict.dictValue)"{{else}}:value="dict.dictValue"{{end}}
|
{{if or (eq $column.GoType "int") (eq $column.GoType "int64")}}:value="parseInt(dict.key)"{{else}}:value="dict.key"{{end}}
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -156,9 +155,9 @@
|
|||||||
<el-checkbox-group v-model="form.{{$field}}">
|
<el-checkbox-group v-model="form.{{$field}}">
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-for="dict in {{$field}}Options"
|
v-for="dict in {{$field}}Options"
|
||||||
:key="dict.dictValue"
|
:key="dict.key"
|
||||||
:label="dict.dictValue">
|
:label="dict.key">
|
||||||
{{"{{"}}dict.dictLabel{{"}}"}}
|
{{"{{"}}dict.value{{"}}"}}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -173,9 +172,9 @@
|
|||||||
<el-radio-group v-model="form.{{$field}}">
|
<el-radio-group v-model="form.{{$field}}">
|
||||||
<el-radio
|
<el-radio
|
||||||
v-for="dict in {{$field}}Options"
|
v-for="dict in {{$field}}Options"
|
||||||
:key="dict.dictValue"
|
:key="dict.key"
|
||||||
{{if or (eq $column.GoType "int") (eq $column.GoType "int64")}}:label="parseInt(dict.dictValue)"{{else}}:label="dict.dictValue"{{end}}
|
{{if or (eq $column.GoType "int") (eq $column.GoType "int64")}}:label="parseInt(dict.key)"{{else}}:label="dict.key"{{end}}
|
||||||
>{{"{{"}}dict.dictLabel{{"}}"}}</el-radio>
|
>{{"{{"}}dict.value{{"}}"}}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
{{else if and (eq $column.HtmlType "radio") $dictType }}
|
{{else if and (eq $column.HtmlType "radio") $dictType }}
|
||||||
|
|||||||
Reference in New Issue
Block a user