From 3f00b2330b38bd025cc1d6287078eebe7f00ece7 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Tue, 9 Apr 2024 09:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=84=E6=98=BE=E7=A4=BA=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/evaluation/evaluationUpload.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/evaluation/evaluationUpload.vue b/src/views/evaluation/evaluationUpload.vue index fcb3945a..0924c5fa 100644 --- a/src/views/evaluation/evaluationUpload.vue +++ b/src/views/evaluation/evaluationUpload.vue @@ -860,6 +860,7 @@ import {timeoutUpload} from "@/api/configPublic"; key: "id", className: "h", ellipsis: true, + align: "center", width: 100, }, { @@ -868,6 +869,7 @@ import {timeoutUpload} from "@/api/configPublic"; key: "evaluationName", className: "h", ellipsis: true, + align: "center", width: 100, }, { @@ -876,6 +878,7 @@ import {timeoutUpload} from "@/api/configPublic"; key: "remarks", className: "h", ellipsis: true, + align: "center", width: 100, }, { @@ -892,6 +895,7 @@ import {timeoutUpload} from "@/api/configPublic"; dataIndex: "uploadTime", key: "uploadTime", className: "h", + align: "center", ellipsis: true, width: 100, } @@ -902,6 +906,7 @@ import {timeoutUpload} from "@/api/configPublic"; dataIndex: "name", key: "name", className: "h", + align: "center", ellipsis: true, width: 100, }, @@ -911,6 +916,7 @@ import {timeoutUpload} from "@/api/configPublic"; key: "workNum", className: "h", ellipsis: true, + align: "center", width: 100, }, { @@ -919,6 +925,7 @@ import {timeoutUpload} from "@/api/configPublic"; key: "organizationalDepartment", className: "h", ellipsis: true, + align: "center", width: 150, customRender: ({ text }) => { return text ? text : ""; @@ -929,6 +936,7 @@ import {timeoutUpload} from "@/api/configPublic"; dataIndex: "createTime", key: "createTime", className: "h", + align: "center", ellipsis: true, width: 200, }, @@ -937,6 +945,7 @@ import {timeoutUpload} from "@/api/configPublic"; dataIndex: "permission", key: "permission", className: "h", + align: "center", ellipsis: true, width: 200, customRender: ({ text }) => { @@ -976,6 +985,7 @@ import {timeoutUpload} from "@/api/configPublic"; key: "status", className: "h", ellipsis: true, + align: "center", width: 100, customRender: (value) =>{ if(value.record.status == 0){ @@ -1002,6 +1012,7 @@ import {timeoutUpload} from "@/api/configPublic"; key: "realName", className: "h", ellipsis: true, + align: "center", width: 50, }, { @@ -1010,6 +1021,7 @@ import {timeoutUpload} from "@/api/configPublic"; key: "departId", className: "h", ellipsis: true, + align: "center", width: 100, }, { @@ -1018,6 +1030,7 @@ import {timeoutUpload} from "@/api/configPublic"; key: "departName", className: "h", ellipsis: true, + align: "center", width: 100, }, { @@ -1026,6 +1039,7 @@ import {timeoutUpload} from "@/api/configPublic"; key: "addTime", className: "h", ellipsis: true, + align: "center", width: 100, }, { @@ -1277,7 +1291,8 @@ import {timeoutUpload} from "@/api/configPublic"; } const isJpgOrPng = file.type === "application/x-zip-compressed" || - file.type === "application/pdf" + file.type === "application/pdf" || + file.type === "application/zip" if (!isJpgOrPng) { message.error("仅支持zip、pdf格式!"); return false;