From 9981d4d90db5a6ee6b138eeea400502636f7f098 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期二, 27 八月 2024 17:57:04 +0800 Subject: [PATCH] 完善业务类型创建索引&&完善系统配置模块(管理功能模块、业务功能模块、操作类型管理、系统配置、系统运行监控) --- Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue index d75110c..1195fc0 100644 --- a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue +++ b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue @@ -2,7 +2,6 @@ <el-dialog v-dialogDrag :close-on-click-modal="false" - :destroy-on-close="true" :title="title" :visible.sync="visible" width="40%" @@ -10,14 +9,20 @@ class="avue-dialog" style="margin-top: -20vh !important;" > - <Divider left="30px" text="瀵煎叆鎻愮ず"></Divider> - <ul> + <Divider left="30px" text="瀵煎叆鎻愮ず"> + </Divider> + <ul v-if="tipList.length === 0" style="color: #f33939"> <li> 璇风偣鍑绘祻瑙堟枃浠惰繘琛屼笂浼� </li> </ul> + + <ul style="color: #f33939" v-if="tipList.length >=1 "> + <li v-for="(item, index) in tipList" :key="index">{{ index + 1 }}: {{ item }} 銆�</li> + </ul> <Divider left="30px" text="閫夋嫨鏂囦欢鍚庝細鑷姩涓婁紶"></Divider> <el-upload + :name="fileName" :action="fileUrl" :before-upload="beforeUpload" :data="fileData" @@ -43,21 +48,34 @@ export default { name: "upload-file", props: { + // 鎺у埗涓婁紶绫诲瀷 鏍煎紡涓�: ['xls', 'xlsx'], fileType: { type: Array, default: () => [] }, + fileName: { + type: String, + default: () => "file" + }, + // 瀵硅瘽妗嗗ご閮ㄥ悕绉� title: { type: String, default: '涓婁紶鏂囦欢' }, + // 蹇呬紶 涓婁紶鐨勫湴鍧� fileUrl: { type: String, default: '' }, + // 璇锋眰鍦板潃 鎼哄甫鍙傛暟 fileData: { type: Array, default: () => [] + }, + // 瀵煎叆鎻愮ず鏂囧瓧 tipList:["瀵煎叆妯℃澘涓爣鏄庣孩鑹插瓧浣撶殑涓哄繀杈撻」","閮ㄩ棬鍒椾笂涓嬬骇鍏崇郴蹇呴』鎸夌収鍙嶆枩鏉犻殧寮�(/)"] + tipList:{ + type:Array, + default:() => [] } }, data() { @@ -111,6 +129,7 @@ if (resbonse.code === 200) { this.$message.success("瀵煎叆鎴愬姛锛�"); this.visible = false; + this.$emit('updata'); } else { this.$message.error(resbonse.msg); } -- Gitblit v1.9.3