From f112e2c62b6fca7b115dd37e34dc19dbcbc91d15 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 07 三月 2025 14:52:41 +0800
Subject: [PATCH] 样式优化

---
 src/views/CNAS/personnel/personnelInfo/tabs/personnel-information.vue |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/views/CNAS/personnel/personnelInfo/tabs/personnel-information.vue b/src/views/CNAS/personnel/personnelInfo/tabs/personnel-information.vue
index 7df2ab0..eab557f 100644
--- a/src/views/CNAS/personnel/personnelInfo/tabs/personnel-information.vue
+++ b/src/views/CNAS/personnel/personnelInfo/tabs/personnel-information.vue
@@ -397,7 +397,7 @@
         </el-row>
         <el-row style="margin-top: 15px">
           <el-col :span="16">
-            <el-form-item label="绾у埆">
+            <el-form-item label="绾у埆" prop="level">
               <el-input v-model="annex.level" clearable size="small"></el-input>
             </el-form-item>
           </el-col>
@@ -414,7 +414,7 @@
         </el-row>
         <el-row style="margin-top: 15px">
           <el-col :span="16">
-            <el-form-item label="澶嶅嵃浠�">
+            <el-form-item label="澶嶅嵃浠�" prop="copy">
               <el-input v-model="annex.copy" clearable size="small"></el-input>
             </el-form-item>
           </el-col>
@@ -422,7 +422,7 @@
 
         <el-row style="margin-top: 15px">
           <el-col :span="16">
-            <el-form-item label="鍘熶欢">
+            <el-form-item label="鍘熶欢" prop="original">
               <el-input v-model="annex.original" clearable size="small"></el-input>
             </el-form-item>
           </el-col>
@@ -431,6 +431,7 @@
           <el-col :span="16">
             <el-form-item label="鏂囦欢">
               <el-upload :action="action" :before-upload="beforeAvatarUpload" :headers="uploadHeader"
+                         ref="fileName"
                 :on-success="(response, file, fileList) => onSuccess(response, file, fileList, 'fileName')"
                 :show-file-list="false">
                 <span v-if="annex.fileName">{{ annex.fileName }}</span>
@@ -687,6 +688,7 @@
   methods: {
     // 涓嬭浇妗f
     downPerson() {
+      console.log('this.clickNodeVal.userId',this.clickNodeVal.userId)
       exportPersonBasicInfoById({ id: this.clickNodeVal.userId }).then(res => {
         const blob = new Blob([res], { type: 'application/msword' });
         this.$download.saveAs(blob, '浜哄憳妗f.docx');
@@ -878,6 +880,8 @@
           if (res.code == 200) {
             getAnnexByUserId({ userId: this.clickNodeVal.userId }).then(res => {
               this.imageUrl = ''
+              this.$refs.fileName.clearFiles()
+              this.annex.fileName = ''
               this.resetForm('annex')
               this.annexList = res.data
               this.dialogVisible1 = false
@@ -891,6 +895,8 @@
           if (res.code == 200) {
             getAnnexByUserId({ userId: this.clickNodeVal.userId }).then(res => {
               this.imageUrl = ''
+              this.$refs.fileName.clearFiles()
+              this.annex.fileName = ''
               this.resetForm('annex')
               this.annexList = res.data
               this.dialogVisible1 = false
@@ -1001,9 +1007,11 @@
       })
     },
     cancellation() {
-      this.dialogVisible1 = false
-      this.imageUrl = ''
       this.resetForm('annex')
+      this.$refs.fileName.clearFiles()
+      this.annex.fileName = ''
+      this.imageUrl = ''
+      this.dialogVisible1 = false
     },
     handleClose(done) {
       this.imageUrl = ''

--
Gitblit v1.9.3