diff --git a/server/model/sys_user.go b/server/model/sys_user.go index 801db1d6..9f86d10a 100644 --- a/server/model/sys_user.go +++ b/server/model/sys_user.go @@ -10,8 +10,8 @@ type SysUser struct { UUID uuid.UUID `json:"uuid"` Username string `json:"userName"` Password string `json:"-"` - NickName string `json:"nickName" gorm:"default:'QMPlusUser'"` - HeaderImg string `json:"headerImg" gorm:"default:'http://www.henrongyi.top/avatar/lufu.jpg'"` + NickName string `json:"nickName" gorm:"default:'系统用户'"` + HeaderImg string `json:"headerImg" gorm:"default:'http://qmplusimg.henrongyi.top/head.png'"` Authority SysAuthority `json:"authority" gorm:"ForeignKey:AuthorityId;AssociationForeignKey:AuthorityId"` AuthorityId string `json:"authorityId" gorm:"default:888"` } \ No newline at end of file diff --git a/web/src/view/systemTools/autoCode/index.vue b/web/src/view/systemTools/autoCode/index.vue index 26572f7b..0de76dd1 100644 --- a/web/src/view/systemTools/autoCode/index.vue +++ b/web/src/view/systemTools/autoCode/index.vue @@ -28,6 +28,7 @@ width="280"> @@ -116,7 +117,13 @@ export default { components:{ FieldDialog }, - methods:{ + directives:{ + 'test':function(el,binding,vnode){ + /** el可以获取当前dom节点,并且进行编译,也可以操作事件 **/ + /** binding指的是一个对象,一般不用 **/ /** vnode 是 Vue 编译生成的虚拟节点 **/ + console.log(el.click()); //获取v-model的值 + }}, + methods:{ editAndAddField(item){ this.dialogFlag = true if(item){ @@ -129,6 +136,8 @@ export default { } }, enterDialog(){ + console.log(this.dialogMiddle.fieldName.replace(/\s*/g,"")) + this.$refs.fieldDialog.$refs.fieldDialogFrom.validate((valid) => { if (valid) { this.dialogMiddle.fieldName = toUpperCase(this.dialogMiddle.fieldName) @@ -140,7 +149,7 @@ export default { return false; } }); - + }, closeDialog(){ if(this.addFlag=="edit"){ @@ -200,4 +209,4 @@ export default { float: right; } } - \ No newline at end of file +