From 770128636c42cb75a27ae833e1453672f5022916 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 03 三月 2025 14:38:24 +0800
Subject: [PATCH] 下单样式调整
---
src/views/CNAS/personnel/personnelInfo/tabs/personnel-information.vue | 110 +++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 79 insertions(+), 31 deletions(-)
diff --git a/src/views/CNAS/personnel/personnelInfo/tabs/personnel-information.vue b/src/views/CNAS/personnel/personnelInfo/tabs/personnel-information.vue
index 4615cad..2b71f75 100644
--- a/src/views/CNAS/personnel/personnelInfo/tabs/personnel-information.vue
+++ b/src/views/CNAS/personnel/personnelInfo/tabs/personnel-information.vue
@@ -277,7 +277,9 @@
</el-form-item>
</el-col>
<el-col :span="6">
- <el-upload ref="upload" :action="action" :on-success="(response, file, fileList) => onSuccess(response, file, fileList, 'pictureUrl')"
+ <el-upload ref="upload" :action="action"
+ :headers="uploadHeader"
+ :on-success="(response, file, fileList) => onSuccess(response, file, fileList, 'pictureUrl')"
:show-file-list="false"
style="float: left; margin: 0 10px 0 10px;">
<el-button slot="trigger" class="uploadFile" size="mini" type="primary">涓婁紶</el-button>
@@ -296,7 +298,9 @@
</el-form-item>
</el-col>
<el-col :span="6">
- <el-upload ref="upload" :action="action" :on-success="(response, file, fileList) => onSuccess(response, file, fileList, 'signatureUrl')"
+ <el-upload ref="upload" :action="action"
+ :headers="uploadHeader"
+ :on-success="(response, file, fileList) => onSuccess(response, file, fileList, 'signatureUrl')"
:show-file-list="false"
style="float: left; margin: 0 10px 0 10px;">
<el-button slot="trigger" class="uploadFile" size="small" type="primary">涓婁紶</el-button>
@@ -314,30 +318,9 @@
<el-button size="mini" style="float: right;margin-right: 25px" type="primary" @click="annexAdd(0)">鏂板</el-button>
</el-col>
</el-row>
- <el-table :data="annexList" border height="200" style="width: 96%;float: right;">
- <el-table-column label="搴忓彿" type="index" width="80px">
- </el-table-column>
- <el-table-column label="璇佷欢鍙�" prop="idNumber" width="150px">
- </el-table-column>
- <el-table-column label="鍙戣瘉鍗曚綅" prop="issueUnit" width="150px">
- </el-table-column>
- <el-table-column label="鏂囦欢鍚嶇О" prop="fileName" show-overflow-tooltip width="200px">
- </el-table-column>
- <el-table-column label="绾у埆" prop="level" width="150px">
- </el-table-column>
- <el-table-column label="鏈夋晥鏈�" prop="periodValidity" width="150px">
- </el-table-column>
- <el-table-column label="娣诲姞鏃堕棿" prop="createTime" width="150px">
- </el-table-column>
- <el-table-column fixed="right" label="鎿嶄綔" width="150px">
- <template slot-scope="scope">
- <el-button size="mini" type="text" @click="downloadFile(scope.row.fileName)">涓嬭浇</el-button>
- <el-button size="mini" type="text" @click="annexAdd(1,scope.row)">缂栬緫</el-button>
- <el-button size="mini" type="text" @click="deleteAnnex(scope.row)">鍒犻櫎</el-button>
- </template>
- </el-table-column>
- </el-table>
- <el-row>
+ <lims-table :tableData="annexList" :column="columnData2" style="width: 96%;margin-left: 34px"
+ height="200" :tableLoading="tableLoading2"></lims-table>
+ <el-row style="margin-top: 10px">
<el-col :span="20">
<el-form-item label="闄勪欢璧勬枡" >
</el-form-item>
@@ -351,13 +334,13 @@
:on-success="handleSuccessUp"
:show-file-list="false"
accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar' style="width: 80px !important;">
- <el-button size="small" style="margin-top: 10px" type="primary">闄勪欢涓婁紶</el-button>
+ <el-button size="small" type="primary">闄勪欢涓婁紶</el-button>
</el-upload>
</el-col>
</el-row>
<lims-table :tableData="tableData" :column="columnData" style="width: 96%;float: right;"
height="200" :tableLoading="tableLoading"></lims-table>
- <el-row>
+ <el-row style="margin-top: 10px">
<el-col :span="20">
<el-form-item label="宸ヤ綔缁忓巻" >
</el-form-item>
@@ -367,14 +350,14 @@
</el-col>
</el-row>
<el-table :data="tableData1" border height="200" style="width: 96%;float: right;" v-loading="tableLoading1">
- <el-table-column label="搴忓彿" type="index" width="80px" align="center">
+ <el-table-column label="搴忓彿" type="index" width="55px" align="center">
</el-table-column>
<el-table-column label="宸ヤ綔缁忓巻" prop="workExperience">
</el-table-column>
<el-table-column align="center" label="鎿嶄綔">
<template slot-scope="scope">
- <el-button type="text" @click="annexAdd1('edit',scope.row)">缂栬緫</el-button>
- <el-button type="text" @click="deleteAnnex1(scope.row)" style="color: #f56c6c">鍒犻櫎</el-button>
+ <el-button type="text" size="mini" @click="annexAdd1('edit',scope.row)">缂栬緫</el-button>
+ <el-button type="text" size="mini" @click="deleteAnnex1(scope.row)" style="color: #f56c6c">鍒犻櫎</el-button>
</template>
</el-table-column>
</el-table>
@@ -458,6 +441,7 @@
<el-upload
:action="action"
:before-upload="beforeAvatarUpload"
+ :headers="uploadHeader"
:on-success="(response,file,fileList) => onSuccess(response, file, fileList, 'fileName')"
:show-file-list="false">
<span v-if="annex.fileName">{{annex.fileName}}</span>
@@ -560,7 +544,65 @@
]
}
],
+ columnData2: [
+ {
+ label: '璇佷欢鍙�',
+ prop: 'idNumber',
+ minWidth: '150px'
+ },{
+ label: '鍙戣瘉鍗曚綅',
+ prop: 'issueUnit',
+ minWidth: '150px'
+ },{
+ label: '鏂囦欢鍚嶇О',
+ prop: 'fileName',
+ minWidth: '200px'
+ },{
+ label: '绾у埆',
+ prop: 'level',
+ minWidth: '150px'
+ },{
+ label: '鏈夋晥鏈�',
+ prop: 'periodValidity',
+ minWidth: '150px'
+ },{
+ label: '娣诲姞鏃堕棿',
+ prop: 'createTime',
+ minWidth: '150px'
+ },
+ {
+ dataType: 'action',
+ minWidth: '130',
+ label: '鎿嶄綔',
+ fixed: 'right',
+ operation: [
+ {
+ name: '涓嬭浇',
+ type: 'text',
+ clickFun: (row) => {
+ this.downloadFile(row.fileName)
+ }
+ },
+ {
+ name: '缂栬緫',
+ type: 'text',
+ clickFun: (row) => {
+ this.annexAdd(1,row)
+ }
+ },
+ {
+ name: '鍒犻櫎',
+ type: 'text',
+ color: '#f56c6c',
+ clickFun: (row) => {
+ this.deleteAnnex(row)
+ }
+ }
+ ]
+ }
+ ],
tableLoading1: false,
+ tableLoading2: false,
tableData1: [],
addOrupdate: null,
title: '',
@@ -792,6 +834,8 @@
this.tableLoading1 = false
this.$message.success('鍒犻櫎鎴愬姛')
this.searchTableList2();
+ }).catch(err => {
+ this.tableLoading1 = false
})
}).catch(() => {
this.$message({
@@ -1032,6 +1076,10 @@
</script>
<style scoped>
+>>>.el-table__body-wrapper::-webkit-scrollbar {
+ height: 12px;
+ /* 璁剧疆婊氬姩鏉″搴� */
+}
>>>.el-form-item {
margin-bottom: 3px;
}
--
Gitblit v1.9.3