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 ++++++++++++++++++---------
 src/settings_local.js             |   18 +++++++++---------
 src/views/user/inemployees.vue    |    1 +
 3 files changed, 28 insertions(+), 18 deletions(-)

diff --git a/src/settings_local.js b/src/settings_local.js
index 7ed5a8a..cc7036b 100644
--- a/src/settings_local.js
+++ b/src/settings_local.js
@@ -3,23 +3,23 @@
   // 获取令牌时,请求头信息(Basic Base64.encode(client_id:client_secret))
   authorizationValue: 'Basic ZmViczoxMjM0NTY=',
   // 社交登录后台地址
-  socialLoginUrl: 'http://localhost:8301/auth/social/login',
+  socialLoginUrl: 'http://120.24.23.155:8301/auth/social/login',
   // 请替换为您的实际地址
   pages: {
     // FEBS-Admin 控制台地址
-    springBootAdminUrl: 'http://localhost:8401/login',
+    springBootAdminUrl: 'http://120.24.23.155:8401/login',
     // kibana 控制台地址
-    kibanaUrl: 'http://localhost:5601',
+    kibanaUrl: 'http://120.24.23.155:5601',
     // nacos 控制台地址
-    nacosUrl: 'http://localhost:8001/nacos',
+    nacosUrl: 'http://120.24.23.155:8001/nacos',
     // skywalking地址
-    skywalkingUrl: 'http://localhost:8080/',
+    skywalkingUrl: 'http://120.24.23.155:8080/',
     // 文档中心
-    docUrl: 'http://localhost:8301/doc.html',
+    docUrl: 'http://120.24.23.155:8301/doc.html',
     // Granfana控制台
-    grafanaUrl: 'http://localhost:8404/',
+    grafanaUrl: 'http://120.24.23.155:8404/',
     // tx-manager控制台
-    txUrl: 'http://localhost:8501/admin/index.html#/login',
+    txUrl: 'http://120.24.23.155:8501/admin/index.html#/login',
     // 文件上传地址
     filesUploadUrl: 'http://120.24.23.155:8301/hr/filesUpload',
     // 个人文件上传地址
@@ -29,7 +29,7 @@
     // 下载员工导入模版
     downloadEmpExcel: 'http://120.24.23.155:8000/员工信息.xls',
     // 导入员工
-    uploadEmpExcel: 'http://localhost:8301/hr/empBaseInfo/importEmp',
+    uploadEmpExcel: 'http://120.24.23.155:8301/hr/empBaseInfo/importEmp',
     // 获取图片
     getFilesUploadImage: 'http://120.24.23.155:8301/hr/filesUpload/image/',
     // 获取图片
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
diff --git a/src/views/user/inemployees.vue b/src/views/user/inemployees.vue
index 51e5ef4..2b5514d 100644
--- a/src/views/user/inemployees.vue
+++ b/src/views/user/inemployees.vue
@@ -1614,6 +1614,7 @@
       this.empBaseInfoForm.stature = row.stature
       this.empBaseInfoForm.politics = row.politics
       this.empBaseInfoForm.entryDate = row.entryDate
+      this.empBaseInfoForm.entryType = row.entryType
       this.empBaseInfoForm.education = row.education
       this.empBaseInfoForm.seniority = row.seniority
       this.empBaseInfoForm.nativePlace = row.nativePlace

--
Gitblit v1.8.0