|
@@ -6,21 +6,18 @@
|
|
</div>
|
|
</div>
|
|
<div class="el-descriptions">
|
|
<div class="el-descriptions">
|
|
<div class="el-descriptions__body">
|
|
<div class="el-descriptions__body">
|
|
- <table class="el-descriptions__table is-bordered el-descriptions--big" style="border: 1px solid #e6ebf5;">
|
|
|
|
- <tbody>
|
|
|
|
- <tr class="el-descriptions-row" rowspan="3">
|
|
|
|
|
|
+ <table class="el-descriptions__table is-bordered el-descriptions--big" style="table-layout: fixed;border: 1px solid #e6ebf5;">
|
|
|
|
+ <tr class="el-descriptions-row">
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 姓名</th>
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 姓名</th>
|
|
<td colspan="1" class="el-descriptions-item__cell el-descriptions-item__content"> {{staff.name}}</td>
|
|
<td colspan="1" class="el-descriptions-item__cell el-descriptions-item__content"> {{staff.name}}</td>
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 性别</th>
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 性别</th>
|
|
<td colspan="1" class="el-descriptions-item__cell el-descriptions-item__content" > {{sexFormat(staff)}}</td>
|
|
<td colspan="1" class="el-descriptions-item__cell el-descriptions-item__content" > {{sexFormat(staff)}}</td>
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 年龄</th>
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 年龄</th>
|
|
<td colspan="1" class="el-descriptions-item__cell el-descriptions-item__content">{{staff.birthday}}</td>
|
|
<td colspan="1" class="el-descriptions-item__cell el-descriptions-item__content">{{staff.birthday}}</td>
|
|
- <td colspan="1" rowspan="3" class="el-descriptions-item__cell el-descriptions-item__content">
|
|
|
|
- <img :src="staff.photo" />
|
|
|
|
|
|
+ <td colspan="1" rowspan="3" >
|
|
|
|
+ <img :src="photo" style="width: 150px"/>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
- </tbody>
|
|
|
|
- <tbody>
|
|
|
|
<tr class="el-descriptions-row">
|
|
<tr class="el-descriptions-row">
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 学历</th>
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 学历</th>
|
|
<td colspan="1" class="el-descriptions-item__cell el-descriptions-item__content">{{educationFormat(staff)}}</td>
|
|
<td colspan="1" class="el-descriptions-item__cell el-descriptions-item__content">{{educationFormat(staff)}}</td>
|
|
@@ -29,8 +26,7 @@
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 工号</th>
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 工号</th>
|
|
<td colspan="1" class="el-descriptions-item__cell el-descriptions-item__content">{{staff.staffid}}</td>
|
|
<td colspan="1" class="el-descriptions-item__cell el-descriptions-item__content">{{staff.staffid}}</td>
|
|
</tr>
|
|
</tr>
|
|
- </tbody>
|
|
|
|
- <tbody>
|
|
|
|
|
|
+
|
|
<tr class="el-descriptions-row">
|
|
<tr class="el-descriptions-row">
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 入职时间
|
|
<th colspan="1" class="el-descriptions-item__cell el-descriptions-item__label is-bordered-label "> 入职时间
|
|
</th>
|
|
</th>
|
|
@@ -39,7 +35,6 @@
|
|
</th>
|
|
</th>
|
|
<td colspan="3" class="el-descriptions-item__cell el-descriptions-item__content">{{actualpostFormat(staff)}}</td>
|
|
<td colspan="3" class="el-descriptions-item__cell el-descriptions-item__content">{{actualpostFormat(staff)}}</td>
|
|
</tr>
|
|
</tr>
|
|
- </tbody>
|
|
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -137,7 +132,8 @@ export default {
|
|
visible: false,
|
|
visible: false,
|
|
// 选中数组
|
|
// 选中数组
|
|
ids: [],
|
|
ids: [],
|
|
- staff: null,
|
|
|
|
|
|
+ staff: {},
|
|
|
|
+ photo: '',
|
|
dataListSelections: [],
|
|
dataListSelections: [],
|
|
// 装置名称字典
|
|
// 装置名称字典
|
|
plantCodeOptions: [],
|
|
plantCodeOptions: [],
|
|
@@ -239,7 +235,9 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
init(row) {
|
|
init(row) {
|
|
this.visible = true
|
|
this.visible = true
|
|
|
|
+ console.log(row.staff)
|
|
this.staff = row.staff
|
|
this.staff = row.staff
|
|
|
|
+ this.photo = process.env.VUE_APP_BASE_API + row.staff.photo
|
|
this.queryParams.staffId = row.staff.staffid
|
|
this.queryParams.staffId = row.staff.staffid
|
|
this.getNowTime()
|
|
this.getNowTime()
|
|
this.getPlanList()
|
|
this.getPlanList()
|