From 28a6ee45ba66f9993f2310594bb7e94ec276eb2a Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 12 八月 2024 16:15:16 +0800 Subject: [PATCH] 生命周期:在非编辑状态下,左边的状态列表不显示,中间的图不能拖动。在编辑状态下,左边的生命周期列表不能切换选中项。 --- Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue | 19 ++++++++++++++++--- 1 files changed, 16 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 37862b0..ea6985d 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,11 +9,16 @@ 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 @@ -43,21 +47,30 @@ export default { name: "upload-file", props: { + // 鎺у埗涓婁紶绫诲瀷 鏍煎紡涓�: ['xls', 'xlsx'], fileType: { type: Array, default: () => [] }, + // 瀵硅瘽妗嗗ご閮ㄥ悕绉� title: { type: String, default: '涓婁紶鏂囦欢' }, + // 蹇呬紶 涓婁紶鐨勫湴鍧� fileUrl: { type: String, default: '' }, + // 璇锋眰鍦板潃 鎼哄甫鍙傛暟 fileData: { type: Array, default: () => [] + }, + // 瀵煎叆鎻愮ず鏂囧瓧 tipList:["瀵煎叆妯℃澘涓爣鏄庣孩鑹插瓧浣撶殑涓哄繀杈撻」","閮ㄩ棬鍒椾笂涓嬬骇鍏崇郴蹇呴』鎸夌収鍙嶆枩鏉犻殧寮�(/)"] + tipList:{ + type:Array, + default:() => [] } }, data() { -- Gitblit v1.9.3