diff --git a/template/vm/html/vue_crud.template b/template/vm/html/vue_crud.template index b4ee549..56b7f60 100644 --- a/template/vm/html/vue_crud.template +++ b/template/vm/html/vue_crud.template @@ -28,9 +28,9 @@ @@ -86,7 +86,6 @@ @click="handleDelete" >删除 - @@ -152,9 +151,9 @@ @@ -169,9 +168,9 @@ - {{"{{"}}dict.dictLabel{{"}}"}} + :key="dict.key" + :label="dict.key"> + {{"{{"}}dict.value{{"}}"}} @@ -186,9 +185,9 @@ {{"{{"}}dict.dictLabel{{"}}"}} + :key="dict.key" + {{if or (eq $column.GoType "int") (eq $column.GoType "int64")}}:label="parseInt(dict.key)"{{else}}:label="dict.key"{{end}} + >{{"{{"}}dict.value{{"}}"}} {{else if and (eq $column.HtmlType "radio") $dictType }} @@ -298,8 +297,8 @@ export default { getList() { this.loading = true; list{{.table.BusinessName|UcFirst}}(this.queryParams).then(response => { - this.{{.table.BusinessName}}List = response.rows; - this.total = response.total; + this.{{.table.BusinessName}}List = response.data.list; + this.total = response.data.total; this.loading = false; }); }, diff --git a/template/vm/html/vue_tree.template b/template/vm/html/vue_tree.template index 2b0398e..721ef30 100644 --- a/template/vm/html/vue_tree.template +++ b/template/vm/html/vue_tree.template @@ -31,9 +31,9 @@ @@ -71,7 +71,6 @@ @click="handleAdd" >新增 - @@ -156,9 +155,9 @@ - {{"{{"}}dict.dictLabel{{"}}"}} + :key="dict.key" + :label="dict.key"> + {{"{{"}}dict.value{{"}}"}} @@ -173,9 +172,9 @@ {{"{{"}}dict.dictLabel{{"}}"}} + :key="dict.key" + {{if or (eq $column.GoType "int") (eq $column.GoType "int64")}}:label="parseInt(dict.key)"{{else}}:label="dict.key"{{end}} + >{{"{{"}}dict.value{{"}}"}} {{else if and (eq $column.HtmlType "radio") $dictType }}