From a79d67f8a9a9fa02f9d25f987b9611af965c484f Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 22 十月 2026 18:41:01 +0800
Subject: [PATCH] 修改了风格
---
src/views/project/documentfiles/index.vue | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/views/project/documentfiles/index.vue b/src/views/project/documentfiles/index.vue
index 591306b..fe30533 100644
--- a/src/views/project/documentfiles/index.vue
+++ b/src/views/project/documentfiles/index.vue
@@ -1,6 +1,7 @@
<template>
<div class="app-container">
<el-form
+ class="opo-query-form"
:model="queryParams"
ref="queryForm"
:inline="true"
@@ -273,7 +274,7 @@
size="small"
style="width: 220px"
v-model="form.uploadtime"
- type="datetime"
+ type="datetime" format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
@@ -331,7 +332,6 @@
<el-input v-model="form.fileurl" placeholder="璇疯緭鍏ユ枃浠跺湴鍧�" />
</el-form-item> -->
<el-form-item label="鏂囦欢涓婁紶" align="left" prop="fileurl">
- <!-- <file-upload ref="fileUpload" :fileType=fileType :limit="1" :on-success="handleUploadSuccess"></file-upload> -->
<el-upload
size="mini"
class="upload-demo"
@@ -460,7 +460,6 @@
fileurl: null,
status: null,
},
- fileType: ["png", "jpg", "jpeg", "doc", "xls", "ppt", "txt", "pdf"],
// 琛ㄥ崟鍙傛暟
form: {},
// 琛ㄥ崟鏍¢獙
@@ -469,8 +468,9 @@
//鏂囦欢鍒楄〃
fileList: [],
baseUrl: process.env.VUE_APP_BASE_API,
- // 涓婁紶鐨勫浘鐗囨湇鍔″櫒鍦板潃
- uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload",
+ // 鏀跨瓥鏂囦欢涓婁紶鎺ュ彛锛�2026-10-09锛氭敼鐢ㄦā鍧椾笓灞炴帴鍙o紝鍏佽浠绘剰鏂囦欢绫诲瀷锛�
+ // 閫氱敤 /common/upload 浠嶆寜鎵╁睍鍚嶇櫧鍚嶅崟鏍¢獙锛屼笉閫傜敤浜庢湰妯″潡锛�
+ uploadFileUrl: process.env.VUE_APP_BASE_API + "/project/documentfiles/upload",
//涓婁紶闄勪欢璇锋眰澶�
headers: {
Authorization: "Bearer " + getToken(),
@@ -764,7 +764,8 @@
this.$modal.msgSuccess(response.msg);
this.fileList.push({ name: response.fileName, url: response.fileName });
} else {
- console.log(response.msg);;
+ // 2026-10-09锛氫笂浼犲け璐ュ繀椤绘彁绀恒�傚師鏉ュ彧 console.log锛岀敤鎴风湅涓嶅埌澶辫触鍘熷洜锛堣〃鐜颁负"鐐逛簡娌″弽搴�"锛�
+ this.$modal.msgError(response.msg || "涓婁紶澶辫触锛岃閲嶈瘯");
}
//console.log("涓婁紶鏂囦欢鍚庯細" + JSON.stringify(this.fileList));
},
@@ -782,9 +783,10 @@
handleExceed() {
this.$message.error(`涓婁紶鏂囦欢鏁伴噺宸茶秴杩�!`);
},
- // 涓婁紶澶辫触
+ // 涓婁紶澶辫触锛圚TTP 灞傞敊璇紝濡傜櫥褰曡繃鏈熴�佺綉缁滃紓甯革級
handleUploadError(err) {
- this.$message.error("涓婁紶澶辫触, 璇烽噸璇�" + JSON.stringify(err));
+ const msg = (err && (err.msg || err.message)) || "";
+ this.$modal.msgError("涓婁紶澶辫触锛岃閲嶈瘯" + (msg ? "锛�" + msg : ""));
},
},
};
--
Gitblit v1.9.3