Browse Source

上传图片跳转审核页面的问题修改

main
klausY 5 years ago
parent
commit
a4683dcd6e
  1. 4
      server/model/sys_user.go
  2. 15
      web/src/view/systemTools/autoCode/index.vue

4
server/model/sys_user.go

@ -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'"`
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"` Authority SysAuthority `json:"authority" gorm:"ForeignKey:AuthorityId;AssociationForeignKey:AuthorityId"`
AuthorityId string `json:"authorityId" gorm:"default:888"` AuthorityId string `json:"authorityId" gorm:"default:888"`
} }

15
web/src/view/systemTools/autoCode/index.vue

@ -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 {
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 {
} }
}, },
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 {
return false; return false;
} }
}); });
}, },
closeDialog(){ closeDialog(){
if(this.addFlag=="edit"){ if(this.addFlag=="edit"){
@ -200,4 +209,4 @@ export default {
float: right; float: right;
} }
} }
</style>
</style>
Loading…
Cancel
Save