Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
祺技世界
gin-vue-admin
提交
a4683dcd
G
gin-vue-admin
项目概览
祺技世界
/
gin-vue-admin
与 Fork 源项目一致
Fork自
FLIPPED-AURORA / gin-vue-admin
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
a4683dcd
编写于
5月 20, 2020
作者:
K
klausY
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
上传图片跳转审核页面的问题修改
上级
f6d53141
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
5 deletion
+14
-5
server/model/sys_user.go
server/model/sys_user.go
+2
-2
web/src/view/systemTools/autoCode/index.vue
web/src/view/systemTools/autoCode/index.vue
+12
-3
未找到文件。
server/model/sys_user.go
浏览文件 @
a4683dcd
...
@@ -10,8 +10,8 @@ type SysUser struct {
...
@@ -10,8 +10,8 @@ type SysUser struct {
UUID
uuid
.
UUID
`json:"uuid"`
UUID
uuid
.
UUID
`json:"uuid"`
Username
string
`json:"userName"`
Username
string
`json:"userName"`
Password
string
`json:"-"`
Password
string
`json:"-"`
NickName
string
`json:"nickName" gorm:"default:'
QMPlusUser
'"`
NickName
string
`json:"nickName" gorm:"default:'
系统用户
'"`
HeaderImg
string
`json:"headerImg" gorm:"default:'http://
www.henrongyi.top/avatar/lufu.jp
g'"`
HeaderImg
string
`json:"headerImg" gorm:"default:'http://
qmplusimg.henrongyi.top/head.pn
g'"`
Authority
SysAuthority
`json:"authority" gorm:"ForeignKey:AuthorityId;AssociationForeignKey:AuthorityId"`
Authority
SysAuthority
`json:"authority" gorm:"ForeignKey:AuthorityId;AssociationForeignKey:AuthorityId"`
AuthorityId
string
`json:"authorityId" gorm:"default:888"`
AuthorityId
string
`json:"authorityId" gorm:"default:888"`
}
}
\ No newline at end of file
web/src/view/systemTools/autoCode/index.vue
浏览文件 @
a4683dcd
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
width=
"280"
>
width=
"280"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
v-test
prop=
"fieldName"
prop=
"fieldName"
label=
"Field名"
label=
"Field名"
width=
"280"
>
width=
"280"
>
...
@@ -116,7 +117,13 @@ export default {
...
@@ -116,7 +117,13 @@ export default {
components
:{
components
:{
FieldDialog
FieldDialog
},
},
methods
:{
directives
:{
'
test
'
:
function
(
el
,
binding
,
vnode
){
/** el可以获取当前dom节点,并且进行编译,也可以操作事件 **/
/** binding指的是一个对象,一般不用 **/
/** vnode 是 Vue 编译生成的虚拟节点 **/
console
.
log
(
el
.
click
());
//获取v-model的值
}},
methods
:{
editAndAddField
(
item
){
editAndAddField
(
item
){
this
.
dialogFlag
=
true
this
.
dialogFlag
=
true
if
(
item
){
if
(
item
){
...
@@ -129,6 +136,8 @@ export default {
...
@@ -129,6 +136,8 @@ export default {
}
}
},
},
enterDialog
(){
enterDialog
(){
console
.
log
(
this
.
dialogMiddle
.
fieldName
.
replace
(
/
\s
*/g
,
""
))
this
.
$refs
.
fieldDialog
.
$refs
.
fieldDialogFrom
.
validate
((
valid
)
=>
{
this
.
$refs
.
fieldDialog
.
$refs
.
fieldDialogFrom
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
dialogMiddle
.
fieldName
=
toUpperCase
(
this
.
dialogMiddle
.
fieldName
)
this
.
dialogMiddle
.
fieldName
=
toUpperCase
(
this
.
dialogMiddle
.
fieldName
)
...
@@ -140,7 +149,7 @@ export default {
...
@@ -140,7 +149,7 @@ export default {
return
false
;
return
false
;
}
}
});
});
},
},
closeDialog
(){
closeDialog
(){
if
(
this
.
addFlag
==
"
edit
"
){
if
(
this
.
addFlag
==
"
edit
"
){
...
@@ -200,4 +209,4 @@ export default {
...
@@ -200,4 +209,4 @@ export default {
float
:
right
;
float
:
right
;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录