Commit e81b1753 by fengzhaoyu

权限

parent 79fcf48e
...@@ -123,6 +123,16 @@ export default { ...@@ -123,6 +123,16 @@ export default {
}, },
onCancel () {} onCancel () {}
}) })
} else if(!this.form.getFieldValue('roleName')) {
console.log(this.roleName,'this.roleName');
this.$confirm({
content: '请先填写角色名称',
onOk () {
// that.changeData(record, index)
},
onCancel () {}
})
} else { } else {
if (this.type === 0) { if (this.type === 0) {
let data = { let data = {
...@@ -209,15 +219,13 @@ export default { ...@@ -209,15 +219,13 @@ export default {
line-height: 22px; line-height: 22px;
margin:27px 0 18px 0; margin:27px 0 18px 0;
} }
input { .ant-form-item /deep/ .ant-input {
height: 40px; height: 40px;
margin-left: 5px;
} }
.addOrRights /deep/ .ant-form-item-label { .addOrRights /deep/ .ant-form-item-label {
width: 9.5% !important; width: 9.5% !important;
} }
input {
margin-left: 5px;
}
.permisson { .permisson {
display: flex; display: flex;
height: 500px; height: 500px;
...@@ -258,7 +266,7 @@ export default { ...@@ -258,7 +266,7 @@ export default {
width: 100%; width: 100%;
font-size: 14px; font-size: 14px;
color: #cccccc; color: #cccccc;
min-height: 40px; min-height: 39px;
line-height: 40px; line-height: 40px;
margin-left: 5px; margin-left: 5px;
text-indent: 10px; text-indent: 10px;
......
...@@ -163,10 +163,10 @@ export default { ...@@ -163,10 +163,10 @@ export default {
}) })
this.roleList.push({ this.roleList.push({
key: item.roleId, key: item.roleId,
roleName: item.roleName, roleName: item.roleName || '---',
userHasRoles: userHasRoles, userHasRoles: userHasRoles || '---',
roleDesc: item.roleDesc, roleDesc: item.roleDesc || '---',
creatTime: item.createTime, creatTime: item.createTime.replace('T', ' '),
action: { ddUserId: ddUserId, name: userHasRoles } action: { ddUserId: ddUserId, name: userHasRoles }
}) })
} }
......
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