Commit ac239744 by 吴迪

添加data

parent cd344e51
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
if (data && data.code === 0) { if (data && data.code === 0) {
#foreach($column in $columns) #foreach($column in $columns)
#if($column.columnName != $pk.columnName) #if($column.columnName != $pk.columnName)
this.dataForm.${column.attrname} = data.${classname}.${column.attrname} this.dataForm.${column.attrname} = data.data.${column.attrname}
#end #end
#end #end
} }
......
...@@ -93,8 +93,8 @@ ...@@ -93,8 +93,8 @@
}) })
}).then(({data}) => { }).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.dataList = data.page.list this.dataList = data.list
this.totalPage = data.page.totalCount this.totalPage = data.totalCount
} else { } else {
this.dataList = [] this.dataList = []
this.totalPage = 0 this.totalPage = 0
......
-- 菜单SQL -- 菜单SQL
INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`) INSERT INTO `sys_menu` (`parent_id`, `name`, `url`, `perms`, `type`, `icon`, `order_num`)
VALUES ('1', '${comments}', '${moduleName}/${pathName}', NULL, '1', 'config', '6'); VALUES ('0', '${comments}', '${moduleName}/${pathName}', NULL, '1', 'config', '6');
-- 按钮父菜单ID -- 按钮父菜单ID
set @parentId = @@identity; set @parentId = @@identity;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment