|
@ -14,6 +14,7 @@ |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block"> |
|
|
style="display: block"> |
|
|
<el-input class="item_width_2" |
|
|
<el-input class="item_width_2" |
|
|
|
|
|
:disabled="defaultRole==='1'" |
|
|
placeholder="请输入角色名称" |
|
|
placeholder="请输入角色名称" |
|
|
clearable |
|
|
clearable |
|
|
v-model="formData.name"> |
|
|
v-model="formData.name"> |
|
@ -27,6 +28,7 @@ |
|
|
style="display: block"> |
|
|
style="display: block"> |
|
|
<el-input class="item_width_1" |
|
|
<el-input class="item_width_1" |
|
|
type="textarea" |
|
|
type="textarea" |
|
|
|
|
|
:disabled="defaultRole==='1'" |
|
|
maxlength="500" |
|
|
maxlength="500" |
|
|
show-word-limit |
|
|
show-word-limit |
|
|
:autosize="{ minRows: 5, maxRows: 10 }" |
|
|
:autosize="{ minRows: 5, maxRows: 10 }" |
|
@ -104,7 +106,7 @@ export default { |
|
|
customerId: '' |
|
|
customerId: '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
defaultRole: '', |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -116,7 +118,7 @@ export default { |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
async initForm (type, roleId) { |
|
|
async initForm (type, roleId, defaultRole) { |
|
|
this.startLoading() |
|
|
this.startLoading() |
|
|
this.customerId = localStorage.getItem("customerId"); |
|
|
this.customerId = localStorage.getItem("customerId"); |
|
|
this.formData.customerId = this.customerId |
|
|
this.formData.customerId = this.customerId |
|
@ -132,6 +134,7 @@ export default { |
|
|
if (roleId) { |
|
|
if (roleId) { |
|
|
this.roleId = roleId |
|
|
this.roleId = roleId |
|
|
this.formData.id = roleId |
|
|
this.formData.id = roleId |
|
|
|
|
|
this.defaultRole = defaultRole |
|
|
this.loadFormData() |
|
|
this.loadFormData() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|