|
@@ -1,40 +1,67 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<basicDetails
|
|
|
- ref="details"
|
|
|
- :titleText="`${mainData.accountno}-${mainData.name}`"
|
|
|
- :oldFormPath="{edit:'HManagement/accountManage/modules'}"
|
|
|
- :editData="mainData"
|
|
|
- :mainAreaData="mainAreaData"
|
|
|
- turnPageId="20221031141102"
|
|
|
- idname="userid"
|
|
|
- ownertable="sys_users"
|
|
|
- tags=""
|
|
|
- :tabs="['员工信息','角色信息']"
|
|
|
- @pageChange="pageChange"
|
|
|
- @onEditSuccess="queryMainData($route.query.id)">
|
|
|
- <div slot="tags">
|
|
|
- </div>
|
|
|
+ ref="details"
|
|
|
+ :titleText="`${mainData.accountno}-${mainData.name}`"
|
|
|
+ :oldFormPath="{edit:'HManagement/accountManage/modules'}"
|
|
|
+ :editData="mainData"
|
|
|
+ :mainAreaData="mainAreaData"
|
|
|
+ turnPageId="20221031141102"
|
|
|
+ idname="userid"
|
|
|
+ ownertable="sys_users"
|
|
|
+ tags=""
|
|
|
+ :tabs="['员工信息','角色信息']"
|
|
|
+ @pageChange="pageChange"
|
|
|
+ @onEditSuccess="queryMainData($route.query.id)">
|
|
|
<div slot="customOperation" >
|
|
|
+ <useTemp v-if="tool.checkAuth($route.name,'use')" :data="mainData" @onSuccess="queryMainData"></useTemp>
|
|
|
+ <unuseTemp v-if="tool.checkAuth($route.name,'use')" :data="mainData" @onSuccess="queryMainData"></unuseTemp>
|
|
|
</div>
|
|
|
- <div slot="slot0" >
|
|
|
+ <div class="container normal-panel" slot="slot0" >
|
|
|
+ <el-descriptions :column="6">
|
|
|
+ <el-descriptions-item label-class-name="my-label" content-class-name="my-content" label="编号">{{mainData.hrmsg.hrcode?mainData.hrmsg.hrcode:'--'}}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label-class-name="my-label" content-class-name="my-content" label="身份证号">{{mainData.hrmsg.idcard?mainData.hrmsg.idcard:'--'}}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label-class-name="my-label" content-class-name="my-content" label="部门">{{mainData.hrmsg.depname?mainData.hrmsg.depname:'--'}}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label-class-name="my-label" content-class-name="my-content" label="是否部门负责人">{{mainData.hrmsg.isleader === 1?'是':'否'}}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label-class-name="my-label" content-class-name="my-content" label="职位">{{mainData.hrmsg.position?mainData.hrmsg.position:'--'}}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label-class-name="my-label" content-class-name="my-content" label="办公电话">{{mainData.hrmsg.officetelephone?mainData.hrmsg.officetelephone:'--'}}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label-class-name="my-label" content-class-name="my-content" label="姓名">{{mainData.hrmsg.name?mainData.hrmsg.name:'--'}}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label-class-name="my-label" content-class-name="my-content" label="电话">{{mainData.hrmsg.phonenumber?mainData.hrmsg.phonenumber:'--'}}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label-class-name="my-label" content-class-name="my-content" label="性别">{{mainData.hrmsg.sex?mainData.hrmsg.sex:'--'}}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label-class-name="my-label" content-class-name="my-content" label="电子邮箱">{{mainData.hrmsg.email?mainData.hrmsg.email:'--'}}</el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
</div>
|
|
|
- <div slot="slot1" >
|
|
|
+ <div class="container normal-panel" slot="slot1" >
|
|
|
+ <tableLayout :layout="table_roleinfo" :data="roleData" :opwidth="200" :custom="false">
|
|
|
+ <template v-slot:opreation="scope">
|
|
|
+ <el-button type="text" size="small" @click="$router.push({path:'/roleDetail',query:{id:scope.data.roleid}})">详 情</el-button>
|
|
|
+ </template>
|
|
|
+ </tableLayout>
|
|
|
</div>
|
|
|
</basicDetails>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import unuseTemp from './unuseAccount.vue'
|
|
|
+import useTemp from './useAccdount.vue'
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
data() {
|
|
|
return {
|
|
|
mainData:{},
|
|
|
- mainAreaData:{}
|
|
|
+ mainAreaData:{},
|
|
|
+ table_userinfo:[],
|
|
|
+ table_hrinfo:[],
|
|
|
+ table_roleinfo:[],
|
|
|
+ list:[],
|
|
|
+ hrmsg:[],
|
|
|
+ roleData:[]
|
|
|
}
|
|
|
},
|
|
|
components:{
|
|
|
+ unuseTemp,
|
|
|
+ useTemp
|
|
|
},
|
|
|
methods:{
|
|
|
async queryMainData(id) {
|
|
@@ -46,6 +73,22 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.mainData = res.data
|
|
|
+ let arr = [{
|
|
|
+ accountno:res.data.accountno,
|
|
|
+ phonenumber:res.data.phonenumber,
|
|
|
+ usertypename:res.data.usertypename,
|
|
|
+ status:res.data.status
|
|
|
+ }]
|
|
|
+ this.list = arr
|
|
|
+ // 插入人员数据
|
|
|
+ if (typeof(res.data.hrmsg) === 'object'){
|
|
|
+ res.data.hrmsg.systemname = res.data.name
|
|
|
+ let hrmsg = [res.data.hrmsg]
|
|
|
+ this.hrmsg = hrmsg
|
|
|
+ }
|
|
|
+ // 插入角色数据
|
|
|
+ this.roleData = res.data.userrole
|
|
|
+ this.changeDataStructure()
|
|
|
},
|
|
|
changeDataStructure() {
|
|
|
this.mainAreaData = [
|
|
@@ -55,39 +98,20 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label:'状态',
|
|
|
- value:this.minaInfo.status === 'ACTIVE'?'启用':this.minaInfo.status === 'INACTIVE'?'停用':'其他'
|
|
|
+ value:this.mainData.status === 'ACTIVE'?'启用':this.mainData.status === 'INACTIVE'?'停用':'其他'
|
|
|
},
|
|
|
{
|
|
|
label:'联系方式',
|
|
|
value:this.mainData.phonenumber
|
|
|
- },
|
|
|
- {
|
|
|
- label:'上级企业',
|
|
|
- value:this.mainData.superiorenterprisename
|
|
|
- },
|
|
|
- {
|
|
|
- label:'成交状态',
|
|
|
- value:this.mainData.tradingstatus
|
|
|
- },
|
|
|
- {
|
|
|
- label:'负责人',
|
|
|
- value:this.mainData.leader[0]?this.mainData.leader[0].name:""
|
|
|
- },
|
|
|
- {
|
|
|
- label:'最近跟近时间',
|
|
|
- value:''
|
|
|
- },
|
|
|
- {
|
|
|
- label:'所属公海',
|
|
|
- value:this.mainData.poolname
|
|
|
}
|
|
|
]
|
|
|
+ console.log(this.mainAreaData)
|
|
|
},
|
|
|
// 监听切换数据,上一页,下一页
|
|
|
pageChange (id,rowindex,tabIndex) {
|
|
|
this.flag = false
|
|
|
tabIndex = this.$route.query.tabIndex
|
|
|
- this.$router.replace({path:'/customerDetail',query:{id:id,rowindex:rowindex,tabIndex:tabIndex}})
|
|
|
+ this.$router.replace({path:'/account_details',query:{id:id,rowindex:rowindex,tabIndex:tabIndex}})
|
|
|
this.queryMainData(id)
|
|
|
},
|
|
|
onSuccess(){
|
|
@@ -100,6 +124,12 @@ export default {
|
|
|
this.queryMainData(this.$route.query.id)
|
|
|
},
|
|
|
created() {
|
|
|
+ // 获取用户信息表结构
|
|
|
+ this.table_userinfo = this.tool.tabelCol(this.$route.name).detailUserinfo.tablecols
|
|
|
+ // 获取人员表结构
|
|
|
+ this.table_hrinfo = this.tool.tabelCol(this.$route.name).detailHrInfo.tablecols
|
|
|
+ // 获取角色表结构
|
|
|
+ this.table_roleinfo = this.tool.tabelCol(this.$route.name).detailRoleInfo.tablecols
|
|
|
}
|
|
|
}
|
|
|
</script>
|