Commit 977b3dd0 authored by zhangrui123's avatar zhangrui123

列表页条找

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