From fcd8d7f55ab468e538a91ce168d5f3be144e140e Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期五, 21 六月 2024 21:21:05 +0800
Subject: [PATCH] feat: 员工档案编辑时入职类型丢失问题解决
---
src/views/user/archivesChange.vue | 27 ++++++++++++++++++---------
1 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/src/views/user/archivesChange.vue b/src/views/user/archivesChange.vue
index 454eb73..8517a3b 100644
--- a/src/views/user/archivesChange.vue
+++ b/src/views/user/archivesChange.vue
@@ -924,7 +924,11 @@
</template>
</el-table-column>
<el-table-column v-if="fsnumShow" show-overflow-tooltip prop="accidentId" label="" />
- <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="100" />
+ <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="110">
+ <template slot-scope="scope">
+ <span class="table-button" @click="editAccidentCases(scope.row,9)">{{ scope.row.injuredTime }}</span>
+ </template>
+ </el-table-column>
<el-table-column show-overflow-tooltip prop="injuredAddress" label="受伤地点" width="200" />
<el-table-column show-overflow-tooltip prop="injuredPart" label="受伤部位" width="80" />
<el-table-column show-overflow-tooltip prop="injuredDescribe" label="受伤经过描述" width="300" />
@@ -971,7 +975,11 @@
</template>
</el-table-column>
<el-table-column v-if="fsnumShow" show-overflow-tooltip prop="occupationalId" label="" />
- <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="120" />
+ <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="110">
+ <template slot-scope="scope">
+ <span class="table-button" @click="editOccupational(scope.row)">{{ scope.row.injuredTime }}</span>
+ </template>
+ </el-table-column>
<el-table-column show-overflow-tooltip prop="injuredAddress" label="受伤地点" width="100" />
<el-table-column show-overflow-tooltip prop="injuredPart" label="受伤部位" width="100" />
<el-table-column show-overflow-tooltip prop="injuredDescribe" label="受伤经过描述" width="140" />
@@ -1994,7 +2002,6 @@
<el-form
ref="accidentCasesForm"
:model="accidentCasesForm"
- :rules="accidentCasesRules"
label-position="right"
label-width="120px"
>
@@ -2141,15 +2148,13 @@
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="putAccidentCases('accidentCasesForm')">保 存</el-button>
-
+ <el-button v-if="dialogshowArr[9].read" type="primary" @click="putAccidentCases('accidentCasesForm')">保 存</el-button>
</div>
</el-dialog>
<el-dialog title="工伤案件" append-to-body :visible.sync="dialogshowArr[10].show" width="50%">
<el-form
ref="occupationalForm"
:model="occupationalForm"
- :rules="occupationalRules"
label-position="right"
label-width="140px"
>
@@ -2338,7 +2343,7 @@
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="putOccupational('occupationalForm')">保 存</el-button>
+ <el-button v-if="dialogshowArr[10].read" type="primary" @click="putOccupational('occupationalForm')">保 存</el-button>
</div>
</el-dialog>
@@ -2674,10 +2679,12 @@
show: false
},
{
- show: false
+ show: false,
+ read: false
},
{
- show: false
+ show: false,
+ read: false
},
{
show: false
@@ -5204,6 +5211,7 @@
this.accidentCasesForm.version = row.version
this.thisShowIndex = 9
this.dialogshowArr[9].show = true
+ this.dialogshowArr[9].read = false
},
editOccupational(row) {
this.isAdd = false
@@ -5254,6 +5262,7 @@
this.occupationalForm.remark = row.remark
this.thisShowIndex = 10
this.dialogshowArr[10].show = true
+ this.dialogshowArr[10].read = false
},
editLaborTrouble(row) {
this.isAdd = false
--
Gitblit v1.8.0