|
|
<div class="yfyw-user">
|
|
|
<div>
|
|
|
<el-avatar :size="80" :src="imageUrl">
|
|
|
<el-avatar :size="80" :src="imageUrl" shape="circle">
|
|
|
<i class="iconfont icon-yonghu" style="font-size: 80px;"/>
|
|
|
</el-avatar>
|
|
|
<el-upload
|
...
|
...
|
@@ -21,7 +21,7 @@ |
|
|
<el-row :gutter="5">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="姓名" prop="nickname" class="form-class">
|
|
|
<el-input v-model="ruleForm.nickname" :readonly="isAdmin()"></el-input>
|
|
|
<el-input v-model="ruleForm.nickname" :readonly="true"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
...
|
...
|
@@ -34,7 +34,7 @@ |
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="年龄" prop="age" class="form-class">
|
|
|
<el-input v-model="ruleForm.age" type="number"></el-input>
|
|
|
<el-input v-model="ruleForm.age" type="number" :readonly="isAdmin()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
...
|
...
|
@@ -43,7 +43,7 @@ |
|
|
<el-row :gutter="5">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="座机号码" prop="tel" class="form-class">
|
|
|
<el-input v-model="ruleForm.tel"></el-input>
|
|
|
<el-input v-model="ruleForm.tel" :readonly="isAdmin()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
...
|
...
|
@@ -53,7 +53,7 @@ |
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="电子邮箱" prop="email" class="form-class">
|
|
|
<el-input v-model="ruleForm.email" id="email"></el-input>
|
|
|
<el-input v-model="ruleForm.email" id="email" :readonly="isAdmin()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
...
|
...
|
@@ -67,7 +67,7 @@ |
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="学历" prop="education" class="form-class">
|
|
|
<el-input v-model="ruleForm.education"></el-input>
|
|
|
<el-input v-model="ruleForm.education" :readonly="isAdmin()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
...
|
...
|
@@ -80,7 +80,7 @@ |
|
|
<el-row :gutter="5">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="身份证" prop="idcard" class="form-class">
|
|
|
<el-input v-model="ruleForm.idcard"></el-input>
|
|
|
<el-input v-model="ruleForm.idcard" :readonly="isAdmin()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
...
|
...
|
@@ -108,12 +108,12 @@ |
|
|
<el-row :gutter="5">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="政治面貌" prop="politicsStatus" class="form-class">
|
|
|
<el-input v-model="ruleForm.politicsStatus"></el-input>
|
|
|
<el-input v-model="ruleForm.politicsStatus" :readonly="isAdmin()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="在职状态" prop="certificate" :readonly="isAdmin()" class="form-class">
|
|
|
<el-radio-group v-model="ruleForm.state">
|
|
|
<el-form-item label="在职状态" prop="certificate" :readonly="true" class="form-class">
|
|
|
<el-radio-group v-model="ruleForm.state" :disabled="true">
|
|
|
<el-radio :label="1">在职</el-radio>
|
|
|
<el-radio :label="2">离职</el-radio>
|
|
|
</el-radio-group>
|
...
|
...
|
@@ -124,18 +124,18 @@ |
|
|
<el-row :gutter="5">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="获得证书" prop="post" class="form-textarea">
|
|
|
<el-input v-model="ruleForm.certificate" type="textarea"></el-input>
|
|
|
<el-input v-model="ruleForm.certificate" type="textarea" :readonly="isAdmin()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="5">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="家庭住址" prop="post" class="form-textarea">
|
|
|
<el-input v-model="ruleForm.post" type="textarea"></el-input>
|
|
|
<el-input v-model="ruleForm.post" type="textarea" :readonly="isAdmin()"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<div style="text-align: center;padding-top: 10px">
|
|
|
<div style="text-align: center;padding-top: 10px" v-if="!isAdmin()">
|
|
|
<el-button type="primary" size="mini" @click="saveUser()">保存基本信息</el-button>
|
|
|
</div>
|
|
|
</el-form>
|
...
|
...
|
@@ -143,8 +143,7 @@ |
|
|
<!--资产信息-->
|
|
|
<div class="title">
|
|
|
<i class="iconfont icon-liebiaomoshi"/> 资产信息
|
|
|
|
|
|
<el-dropdown v-if="Object.keys(icon).length > 0" size="mini" split-button @click="assetsAdd('bastion',`新建${icon['bastion'].name}资产`)" style="margin-left: 20px">
|
|
|
<el-dropdown v-if="Object.keys(icon).length > 0 && !isAdmin()" size="mini" split-button @click="assetsAdd('bastion',`新建${icon['bastion'].name}资产`)" style="margin-left: 20px">
|
|
|
<i class="icon el-icon-plus"/>添加{{icon['bastion'].name}}
|
|
|
<template #dropdown>
|
|
|
<div style="max-height: 300px;overflow-y: auto">
|
...
|
...
|
@@ -173,13 +172,10 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
<div class="zc-item-tools">
|
|
|
<el-button-group size="mini">
|
|
|
<el-button-group size="mini" v-if="!isAdmin()">
|
|
|
<el-button @click="btnClick('add',arr,`新建${icon[k].name}资产`)">
|
|
|
<i class="el-icon-plus"/>
|
|
|
</el-button>
|
|
|
<!--<el-button @click="btnClick('save',arr,`保存${icon[k].name}资产`)">
|
|
|
<i class="el-icon-check"/>
|
|
|
</el-button>-->
|
|
|
<el-button @click="btnClick('edit',arr,`编辑${icon[k].name}资产`)">
|
|
|
<i class="el-icon-edit"/>
|
|
|
</el-button>
|
...
|
...
|
|