Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
renren-generator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
renren-generator
Commits
ac239744
Commit
ac239744
authored
Jul 17, 2023
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加data
parent
cd344e51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
add-or-update.vue.vm
src/main/resources/template/add-or-update.vue.vm
+1
-1
index.vue.vm
target/classes/template/index.vue.vm
+2
-2
menu.sql.vm
target/classes/template/menu.sql.vm
+1
-1
No files found.
src/main/resources/template/add-or-update.vue.vm
View file @
ac239744
...
...
@@ -61,7 +61,7 @@
if (data && data.code === 0) {
#foreach($column in $columns)
#if($column.columnName != $pk.columnName)
this.dataForm.${column.attrname} = data.
${classname}
.${column.attrname}
this.dataForm.${column.attrname} = data.
data
.${column.attrname}
#end
#end
}
...
...
target/classes/template/index.vue.vm
View file @
ac239744
...
...
@@ -93,8 +93,8 @@
})
}).then(({data}) => {
if (data && data.code === 0) {
this.dataList = data.
page.
list
this.totalPage = data.
page.
totalCount
this.dataList = data.list
this.totalPage = data.totalCount
} else {
this.dataList = []
this.totalPage = 0
...
...
target/classes/template/menu.sql.vm
View file @
ac239744
-- 菜单SQL
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
set @parentId = @@identity;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment