no message

cyl/job_im_cus
jscyl13849007907 6 days ago
parent 9a202bd6f0
commit 2d5c510e97

@ -297,16 +297,16 @@
<div class="dept-columns g_flex_row_start"> <div class="dept-columns g_flex_row_start">
<div class="dept-column" style="width: 100%; min-width: 100%; max-width: 100%; border-right: none;"> <div class="dept-column" style="width: 100%; min-width: 100%; max-width: 100%; border-right: none;">
<div class=""> <div class="">
<div class="g_flex_row_between g_pt_16 g_pb_16" style="border-bottom: 1px solid #ddd;" v-for="(role, roleIndex) in roleList" :key="role.id" @click="handleRoleClick(role)"> <div class="g_flex_row_between g_pt_16 g_pb_16" style="border-bottom: 1px solid #ddd;" v-for="(role, roleIndex) in roleList" :key="role.id" @click="!role.disabled && handleRoleClick(role)">
<div class="g_ell_1 g_flex_1" :style="{ color: '#333', fontSize: '17px', flex: 1, marginRight: '8px', padding: '0 0 0 10px' }"> <div class="g_ell_1 g_flex_1" :style="{ color: role.disabled ? '#999' : '#333', fontSize: '17px', flex: 1, marginRight: '8px', padding: '0 0 0 10px' }">
{{ role.roleName }} {{ role.roleName }}
</div> </div>
<div class="g_flex_column_center g_flex_none" style="margin-right: 10px;"> <div class="g_flex_column_center g_flex_none" style="margin-right: 10px;" v-if="role.disabled">
<i <i
class="iconfont icon-a-duigoubeifen2" class="iconfont icon-a-duigoubeifen2"
style="font-size: 24px" style="font-size: 24px"
:style="{ :style="{
color: isRoleSelected(role.id) ? '#6A81FF' : '#fff', color: role.disabled ? '#ddd' : (isRoleSelected(role.id) ? '#6A81FF' : '#fff'),
}" }"
></i> ></i>
</div> </div>

@ -149,7 +149,12 @@ export default {
getRoleList() { getRoleList() {
let that = this; let that = this;
this.G.Get('/yishoudan/agency/role/list', {}, (res) => { this.G.Get('/yishoudan/agency/role/list', {}, (res) => {
that.roleList = res.list || []; that.roleList = (res.list || []).map(item => {
if (item.roleName && item.roleName.indexOf('创建人') > -1) {
item.disabled = true;
}
return item;
});
}); });
}, },
getMemberList() { getMemberList() {

Loading…
Cancel
Save