Commit 977b3dd0 authored by zhangrui123's avatar zhangrui123

列表页条找

parent 4fdc737b
......@@ -54,8 +54,8 @@
</a-dropdown>
</span>
<span slot="userType" slot-scope="text" align="center">
{{getUserType(text)}}
<span slot="orgType" slot-scope="text,record" align="center">
{{record.orgType==2?'房办':(record.orgType==4?'区级':'')}}
</span>
<span slot="status" slot-scope="text, record">
......@@ -165,13 +165,20 @@ export default {
},
},
{
title: '身份',
title: '姓名',
align: 'center',
dataIndex: 'type',
key: 'type',
dataIndex: 'name',
key: 'name',
width: '20%',
},
{
title: '机构类型',
align: 'center',
dataIndex: 'orgType',
key: 'orgType',
width: '10%',
scopedSlots: {
customRender: 'userType',
customRender: 'orgType',
},
},
{
......@@ -184,13 +191,7 @@ export default {
customRender: 'roleIds',
},
},
{
title: '手机号',
align: 'center',
dataIndex: 'phone',
key: 'phone',
width: '20%',
},
{
title: '操作',
dataIndex: 'action',
......
......@@ -31,6 +31,12 @@
<a-col span="8">
<DetailsItem :labelSpan='8' :textSpan="16" :label='"角色名称"' :text='detail.roleNames||"暂无" '></DetailsItem>
</a-col>
<a-col span="8">
<DetailsItem :labelSpan='8' :textSpan="16" :label='"机构类型"' :text='detail.orgType||"暂无" '></DetailsItem>
</a-col>
<a-col span="8">
<DetailsItem :labelSpan='8' :textSpan="16" :label='"机构名称"' :text='detail.orgName||"暂无" '></DetailsItem>
</a-col>
</a-row>
<div class="layoutMargin detailsPartLine" v-if="detailReady==2" >
<a-tree class="portalRoleTree" checkable :treeData="treeData" v-model="checkedKeys" disabled />
......@@ -80,6 +86,11 @@ export default {
url: this.$api.GET_USER_DETAIL.replace('{id}', this.$route.query.id),
}).then(res => {
this.detail = res.data.content
if(this.detail.orgType&&this.detail.orgType==2){
this.detail.orgType = '房办'
}else if(this.detail.orgType&&this.detail.orgType==4){
this.detail.orgType = '区级'
}
if (!!this.detail.phone&&this.detail.phone.length>12) {
this.detail.phone0 = this.detail.phone
// console.log( this.detail)
......
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