From c1c6793d2d40e75885c942a9cda5579b7dbefbe0 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期一, 11 九月 2023 22:39:16 +0800
Subject: [PATCH] 修改设备的备忘本

---
 ruoyi-ui/src/views/bignote/familyeventInfo.vue |   45 +++++++++++++++++++++++++--------------------
 1 files changed, 25 insertions(+), 20 deletions(-)

diff --git a/ruoyi-ui/src/views/bignote/familyeventInfo.vue b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
index b53783b..0c086cb 100644
--- a/ruoyi-ui/src/views/bignote/familyeventInfo.vue
+++ b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
@@ -20,7 +20,7 @@
         </el-input>
       </el-form-item>
       <el-form-item label="鍙戠敓鏃堕棿" prop="happenTime">
-        <el-input v-model="formData.happenTime" placeholder="璇疯緭鍏ュ彂鐢熸椂闂�" clearable :style="{width: '100%'}" :disabled="dsb">
+        <el-input v-model="formData.happenTime" placeholder="璇疯緭鍏ュ彂鐢熸椂闂�" type="date" clearable :style="{width: '100%'}" :disabled="dsb">
         </el-input>
       </el-form-item>
 
@@ -28,7 +28,11 @@
         <el-input v-model="formData.remark" placeholder="璇疯緭鍏ュ娉�" clearable :style="{width: '100%'}" :disabled="dsb"></el-input>
       </el-form-item>
 
-      <h4 class="form-header">鐢靛瓙鏂囦欢 </h4>
+      <el-form-item label="鏄惁鏄湰瀹跺涵璁板綍" prop="ownData">
+        <el-input  v-model="formData.ownData=== 1 ? '鏄�':'鍚�'" placeholder=" " clearable :style="{width: '100%'}" :disabled=true></el-input>
+      </el-form-item>
+
+      <h4 class="form-header">鐩稿叧鍥剧墖 </h4>
       <el-upload
         action="#"
         list-type="picture-card"
@@ -36,7 +40,8 @@
         :http-request="requestUpload"
         :file-list="fileList"
       >
-        <i slot="default" class="el-icon-plus"></i>
+        <div v-if="uploading" class="upload-status">姝e湪涓婁紶...</div>
+        <i v-if="!uploading" slot="default" class="el-icon-plus"></i>
         <div slot="file" slot-scope="{file}">
           <img
             class="el-upload-list__item-thumbnail"
@@ -48,14 +53,14 @@
           >
           <span class="el-upload-list__item-actions">
         <span
-          v-if="isShow"
+
           class="el-upload-list__item-preview"
           @click="handlePictureCardPreview(file)"
         >
           <i class="el-icon-zoom-in"></i>
         </span>
         <span
-          v-if="isShow"
+
           class="el-upload-list__item-delete"
           @click="handleDownload(file.url)"
         >
@@ -82,12 +87,12 @@
         multiple
         list-type="picture-card"
         :on-preview="handleFileCardPreview"
-        :on-remove="handleRemove"
+        :on-remove="handleRemoveFile"
         :http-request="requestUpload"
         :show-file-list="true"
       >
-
-        <i slot="default" class="el-icon-plus"></i>
+        <div v-if="uploading" class="upload-status">姝e湪涓婁紶...</div>
+        <i v-if="!uploading" slot="default" class="el-icon-plus"></i>
         <div slot="file" slot-scope="{file}">
           <img
             class="el-upload-list__item-thumbnail"
@@ -98,20 +103,19 @@
           >
           <span class="el-upload-list__item-actions">
                 <span
-                  v-if="isShow"
+
                   class="el-upload-list__item-preview"
                   @click="handleFileCardPreview(file)"
                 >
                   <i class="el-icon-zoom-in"></i>
                 </span>
                 <span
-                  v-if="isShow"
-                  @click="handleRemove(file)"
-                  class="el-upload-list__item-delete"
 
+                  class="el-upload-list__item-delete"
+                  @click="handleDownload(file.url)"
                 >
-                  <i class="el-icon-download"></i>
-                </span>
+                 <i class="el-icon-download"></i>
+                 </span>
                 <span
                   v-if="isShow"
                   class="el-upload-list__item-delete"
@@ -133,7 +137,7 @@
     </el-form>
 
     <el-dialog  :visible.sync="dialogVisible">
-      <img w-full :src="dialogImageUrl" alt="Preview Image" />
+      <img w-full :src="dialogImageUrl"    style="width: 700px; height: 700px" alt="Preview Image" />
     </el-dialog>
   </div>
 </template>
@@ -161,7 +165,7 @@
       dsb:true,
       btn:false,
       isShow:true,
-
+      uploading: false,
       doctorList: [],
 
       formData: {
@@ -221,8 +225,8 @@
       this.$route.meta.title = "淇敼澶т簨璁拌缁嗕俊鎭�";//鍒楄〃鐨勫悕绉�
     }
     else{
-      document.title = "鏌ョ湅澶т簨璁拌缁嗕俊鎭�";
-      this.$route.meta.title = "鏌ョ湅澶т簨璁拌缁嗕俊鎭�";//鍒楄〃鐨勫悕绉�
+      document.title = "瀹跺ぇ浜嬭璇︾粏淇℃伅";
+      this.$route.meta.title = "瀹跺ぇ浜嬭璇︾粏淇℃伅";//鍒楄〃鐨勫悕绉�
       this.isShow=false
     }
 
@@ -348,10 +352,11 @@
       var formData = new FormData();
       formData.append('uploadFile', file);
       let _this = this
-
+      this.uploading = true;
       uploadPic(formData).then(response => {
         let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length)
-
+        this.uploading = false;
+        this.$modal.msgSuccess("涓婁紶鎴愬姛");
         if(_this.fot.includes(pth) === true)
         {
           _this.fileList.push({name:response.data.fileName, "url":response.data.url})

--
Gitblit v1.9.1