Commit 85dfd15a authored by 樊国敬's avatar 樊国敬

edit

parent 849080ce
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<Col :span="12"><FormItem :label="l('loginName')" prop="loginName"> <Input v-model="entity.loginName"> </Input> <Col :span="12"><FormItem :label="l('loginName')" prop="loginName"> <Input v-model="entity.loginName"> </Input>
</FormItem></Col> </FormItem></Col>
<Col :span="12"><FormItem :label="l('password')" prop="password"> <Input v-model="entity.password"> </Input> <Col :span="12"><FormItem :label="l('password')" prop="password"> <Input v-model="entity.password" type="password"> </Input>
</FormItem></Col> </FormItem></Col>
<Col :span="12"><FormItem :label="l('status')" prop="status"> <Dictionary code="system.account.status" v-model="entity.status"></Dictionary> <Col :span="12"><FormItem :label="l('status')" prop="status"> <Dictionary code="system.account.status" v-model="entity.status"></Dictionary>
...@@ -29,9 +29,8 @@ ...@@ -29,9 +29,8 @@
entity: { entity: {
}, },
rules: { rules: {
name: [{ required: true, message: '必填', trigger: 'blur' }], name: [{ required: true, message: '必填' }],
loginName: [{ required: true, message: '必填' }], loginName: [{ required: true, message: '必填' }]
password: [{ required: true, message: '必填' }]
} }
} }
}, },
......
...@@ -68,7 +68,7 @@ keys:{op:"name,loginName,password,token,source,remark",value:null} ...@@ -68,7 +68,7 @@ keys:{op:"name,loginName,password,token,source,remark",value:null}
align: 'center', align: 'center',
render: (h, params) => { render: (h, params) => {
return h('div', { class: "action" }, [ return h('div', { class: "action" }, [
h('op', { attrs: { oprate: 'detail' }, on: { click: () => this.detail(params.row.id) } }, '查看'), // h('op', { attrs: { oprate: 'detail' }, on: { click: () => this.detail(params.row.id) } }, '查看'),
h('op', { attrs: { oprate: 'edit'}, on: { click: () => this.edit(params.row.id) } }, '编辑'), h('op', { attrs: { oprate: 'edit'}, on: { click: () => this.edit(params.row.id) } }, '编辑'),
h('op', { attrs: { oprate: 'remove' }, on: { click: () => this.remove(params.row.id) } }, '删除') h('op', { attrs: { oprate: 'remove' }, on: { click: () => this.remove(params.row.id) } }, '删除')
]) ])
......
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