132 lines
3.4 KiB
Vue
132 lines
3.4 KiB
Vue
<template>
|
||
<div class="aidFund_view">
|
||
|
||
<el-form label-suffix=":" label-position="left" style="padding: 20px 0">
|
||
<vi-title title="基本资料"></vi-title>
|
||
|
||
<el-row gutter="20">
|
||
<el-col :span="8">
|
||
<el-form-item prop="username" label="姓  名">
|
||
{{ viewData.username }}
|
||
</el-form-item>
|
||
</el-col>
|
||
<el-col :span="8">
|
||
<el-form-item prop="loginname" label="工  号">
|
||
{{ viewData.loginname }}
|
||
</el-form-item>
|
||
</el-col>
|
||
<el-col :span="8">
|
||
<el-form-item prop="sex" label="性  别">
|
||
{{ viewData.sex }}
|
||
</el-form-item>
|
||
</el-col>
|
||
<el-col :span="8">
|
||
<el-form-item prop="sex" label="出生日期">
|
||
{{ viewData.sex }}
|
||
</el-form-item>
|
||
</el-col>
|
||
<el-col :span="8">
|
||
<el-form-item prop="nation" label="民  族">
|
||
{{ viewData.nation }}
|
||
</el-form-item>
|
||
</el-col>
|
||
<el-col :span="8">
|
||
<el-form-item prop="position" label="职  务">
|
||
{{ viewData.position }}
|
||
</el-form-item>
|
||
</el-col>
|
||
<el-col :span="8">
|
||
<el-form-item prop="jobTitle" label="职  称">
|
||
{{ viewData.jobTitle }}
|
||
</el-form-item>
|
||
</el-col>
|
||
<el-col :span="8">
|
||
<el-form-item prop="political" label="政治面貌">
|
||
{{ viewData.political }}
|
||
</el-form-item>
|
||
</el-col>
|
||
<el-col :span="8">
|
||
<el-form-item prop="mobile" label="联系方式">
|
||
{{ viewData.mobile }}
|
||
</el-form-item>
|
||
</el-col>
|
||
<el-col :span="8">
|
||
<el-form-item prop="unitname" label="所在部门">
|
||
{{ viewData.unitname }}
|
||
</el-form-item>
|
||
</el-col>
|
||
<el-col :span="8">
|
||
<el-form-item prop="unionname" label="所在工会">
|
||
{{ viewData.unionname }}
|
||
</el-form-item>
|
||
</el-col>
|
||
</el-row>
|
||
|
||
</el-form>
|
||
|
||
</div>
|
||
</template>
|
||
<script>
|
||
module.exports = {
|
||
props: {
|
||
handle: {
|
||
type: Boolean,
|
||
default: false,
|
||
},
|
||
label: {
|
||
type: String,
|
||
default: '审核'
|
||
},
|
||
userid: {
|
||
type: String,
|
||
default: ''
|
||
},
|
||
panes: {
|
||
type: Array,
|
||
default: []
|
||
},
|
||
},
|
||
data() {
|
||
return {
|
||
aidFundName: "1",
|
||
viewData: {},
|
||
loading: true,
|
||
}
|
||
},
|
||
watch: {
|
||
userid(val) {
|
||
this.getInfo()
|
||
}
|
||
},
|
||
methods: {
|
||
hasPane(name) {
|
||
if (!this.handle) {
|
||
return true
|
||
}
|
||
return this.panes.includes(name)
|
||
},
|
||
async getInfo() {
|
||
this.loading = true
|
||
const {data, code, msg} = await $.get("/platform/aid/fund/common/findOneUser", {userId:this.userid})
|
||
this.loading = false
|
||
if (data) {
|
||
this.aidFundName = this.handle ? "999" : "1"
|
||
this.viewData = data
|
||
|
||
} else {
|
||
this.viewData = {}
|
||
this.$message({
|
||
message: "获取信息失败",
|
||
type: 'error'
|
||
});
|
||
}
|
||
},
|
||
},
|
||
}
|
||
</script>
|
||
<style>
|
||
.aidFund_view .el-timeline {
|
||
padding-left: 0;
|
||
}
|
||
|
||
</style> |