From 062cafaecdd03f085ab1555b3343c36c18af491e Mon Sep 17 00:00:00 2001
From: yz3456 <2753272399@qq.com>
Date: 星期二, 26 三月 2024 16:39:35 +0800
Subject: [PATCH] 完善家庭会议模块2

---
 ruoyi-ui/src/views/self/show.vue |   61 ++++++++++++++++++++++++++----
 1 files changed, 52 insertions(+), 9 deletions(-)

diff --git a/ruoyi-ui/src/views/self/show.vue b/ruoyi-ui/src/views/self/show.vue
index 2b285c4..2d542b3 100644
--- a/ruoyi-ui/src/views/self/show.vue
+++ b/ruoyi-ui/src/views/self/show.vue
@@ -292,6 +292,9 @@
           multiple
           :http-request="requestUploadm"
           :file-list="fileList"
+          :on-change="handleChange1"
+          :auto-upload="false"
+          ref="upload"
         >
           <i slot="default" class="el-icon-plus"></i>
           <div slot="file" slot-scope="{ file }">
@@ -870,6 +873,8 @@
 
   data() {
     return {
+	    uploadFileList: [],
+      uploadFileList1: [],
       // 閬僵灞�
       disabled: false,
 
@@ -941,7 +946,7 @@
       // 寮瑰嚭灞傛爣棰�
       title: "",
 
-      // open:true,
+       open:false,
       // 鏄惁鏄剧ず寮瑰嚭灞傦紙鏁版嵁鏉冮檺锛�
       openDataScope: false,
       menuExpand: false,
@@ -955,6 +960,7 @@
      fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
        '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'],
 
+      fileList1:[],
       fileList:[],
       fileListOther:[],
       dsb:true,
@@ -1159,9 +1165,45 @@
 
   },
   methods: {
+    handleRemoveFile(file) {
+      for(let i = 0; i < this.fileListOther.length; i++)
+      {
+        if(this.fileListOther[i].url==file.url)
+    {
+          this.$delete(this.fileListOther,i);
+      this.$delete(this.uploadFileList1,i);
+      }
+      }
+    },
+    handleRemove(file) {
+      for(let i = 0; i < this.fileList.length; i++)
+      {
+        if(this.fileList[i].url==file.url)
+      {
+          this.$delete(this.fileList,i);
+    		 this.$delete(this.uploadFileList,i);
+    		 }
+      }
+     },
+    handleChange1(file, fileList1) {
+       //瀹氫箟涓�涓叏灞�鏁扮粍uploadFileList鏉ュ仛瀛樺偍
+
+     // this.uploadFileList.push(file.raw);
+      console.log("=========5555=========")
+      console.log(file)
+    //  console.log(this.uploadFileList)
+    //  this.fileList = fileList
+    //alert(file)
+        this.uploadFileList.push(file.raw);
+         this.fileList.push({name:file.name,url:file.url})
+    //alert(fileList1.length)
+    },
+
+
+
     // 鍙栨秷鎸夐挳
     cancelData() {
-		alert(23)
+	//	alert(23)
       this.dialogVisible.open = false;
       this.dialogVisible.relation1 = false;
       this.dialogVisible.certificate =false;
@@ -1169,7 +1211,7 @@
       this.dialogVisible.autobiography=false;
       this.isEdit1 = false;
       this.reset();
-	  alert(32)
+	 // alert(32)
       // 娓呯┖formDat瀵硅薄鐨勬暟鎹�
       Object.keys(this.formDat).forEach(key => {
         this.formDat[key] = '';
@@ -1515,6 +1557,7 @@
 
           addNote(this.formDat).then(response => {
             this.$modal.msgSuccess("鏂板鎴愬姛");
+            this.getList();
             this.open = false;
             // 娓呯┖formDat瀵硅薄鐨勬暟鎹�
             Object.keys(this.formDat).forEach(key => {
@@ -1586,9 +1629,9 @@
 	cancelDataPer()
 	{
 		this.open = false;
-		
-		alert(123)
-		alert(this.open)
+
+		// alert(123)
+		// alert(this.open)
 	},
 
     /** 鏌ヨ鑷紶淇℃伅 */
@@ -1624,7 +1667,7 @@
 			   _this.dialogVisible.open = false;
           addExperience(_this.formDat).then(response => {
             _this.$modal.msgSuccess("鏂板鎴愬姛");
-         
+
             _this.getList();
           });
         }
@@ -1641,7 +1684,7 @@
 			        this.dialogVisible.relation1 = false;
           addRelation(this.formDat).then(response => {
             this.$modal.msgSuccess("鏂板鎴愬姛");
-    
+
             this.getList();
           });
         }
@@ -1734,7 +1777,7 @@
     },
     //淇敼鍚庣殑淇濆瓨
 
-   
+
     //涓昏缁忓巻
     saveRowExperienceList(row) {
      // this.$refs['elForm'].validate(valid => {

--
Gitblit v1.9.1