From 4e6d05e023123e4d5a6710549fe5eb30be108402 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期四, 11 七月 2024 11:35:26 +0800
Subject: [PATCH] 密码策略增删改分页 首页添加修改密码对话框 取消最近模块中dialog对话框中关闭对话框销毁对话框中元素的destroy-on-close属性(导致拖拽效果不实现)

---
 Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue |   20 +++++++++++++++++---
 1 files changed, 17 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..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() {
@@ -111,6 +124,7 @@
       if (resbonse.code === 200) {
         this.$message.success("瀵煎叆鎴愬姛锛�");
         this.visible = false;
+        this.$emit('updata');
       } else {
         this.$message.error(resbonse.msg);
       }

--
Gitblit v1.9.3