From b250c7fba2c7846a6bac2a011f7629c801d1a0c3 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期一, 23 十月 2023 11:21:24 +0800
Subject: [PATCH] 1023 健康模块更改

---
 ruoyi-ui/src/views/healthy/healthyInfo.vue |   60 ++++++++++++++++++++++++++++--------------------------------
 1 files changed, 28 insertions(+), 32 deletions(-)

diff --git a/ruoyi-ui/src/views/healthy/healthyInfo.vue b/ruoyi-ui/src/views/healthy/healthyInfo.vue
index 23bcdbc..38253e0 100644
--- a/ruoyi-ui/src/views/healthy/healthyInfo.vue
+++ b/ruoyi-ui/src/views/healthy/healthyInfo.vue
@@ -14,15 +14,19 @@
 
     <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="120px">
       <el-form-item label="浣撴鏃堕棿" prop="checkTime">
-        <el-input v-model="formData.checkTime" placeholder="璇烽�夋嫨浣撴鏃堕棿" clearable :style="{width: '100%'}" :disabled="dsb"></el-input>
-      </el-form-item>
+        <el-date-picker v-model="formData.checkTime" type="date" placeholder="璇烽�夋嫨鏃ユ湡"
+                        :editable="false" :clearable="false" :style="{width: '100%'}" :disabled="dsb" value-format="yyyy-MM-dd"
+        ></el-date-picker> </el-form-item>
 
       <el-form-item label="灏辩梾鍖婚櫌" prop="hospital">
         <el-input v-model="formData.hospital" placeholder="璇烽�夋嫨灏辩梾鍖婚櫌" clearable :style="{width: '100%'}" :disabled="dsb"></el-input>
       </el-form-item>
       <el-form-item label="绫诲埆" prop="type">
-        <el-input v-model="formData.type" placeholder="璇疯緭鍏ョ被鍒�" clearable :style="{width: '100%'}" :disabled="dsb">
-        </el-input>
+        <el-select v-model="formData.type" placeholder="璇烽�夋嫨" clearable :style="{width: '100%'}" :disabled="dsb">
+          <el-option label="浣撴" value="浣撴"></el-option>
+          <el-option label="鐪嬬梾" value="鐪嬬梾"></el-option>
+
+        </el-select>
       </el-form-item>
       <el-form-item label="棰樺悕" prop="title">
         <el-input v-model="formData.title" placeholder="璇疯緭鍏ラ鍚�" clearable :style="{width: '100%'}" :disabled="dsb">
@@ -193,48 +197,33 @@
       dialogVisible: false,
       disabled: false,
       rules: {
-        password: [{
+        checkTime: [{
           required: true,
-          message: '璇疯緭鍏ュ瘑鐮�',
+          message: '璇烽�夋嫨浣撴鏃堕棿',
           trigger: 'blur'
         }],
 
-        accNo: [{
+        hospital: [{
           required: true,
-          message: '璇疯緭鍏ヨ处鍙�',
+          message: '璇疯緭鍏ュ尰闄�',
           trigger: 'blur'
         }],
         type: [{
           required: true,
-          message: '璇烽�夋嫨鍩洪噾/鍙拌处',
+          message: '璇烽�夋嫨浣撴/鐪嬬梾',
           trigger: 'change'
         }],
-        isFinger: [{
+        title: [{
           required: true,
-          message: '璇烽�夋嫨鏄惁',
-          trigger: 'change'
+          message: '璇疯緭鍏ユ爣棰�',
+          trigger: 'blur'
         }],
-        isFace: [{
+        notice: [{
           required: true,
-          message: '璇烽�夋嫨鏄惁',
-          trigger: 'change'
-        }],
-        isPrivate: [{
-          required: true,
-          message: '璇烽�夋嫨鏄惁',
-          trigger: 'change'
+          message: '璇疯緭鍏ユ敞鎰忎簨椤�',
+          trigger: 'blur'
         }],
 
-        validityDate: [{
-          // required: true,
-          message: '璇烽�夋嫨鏈夋晥鏈�',
-          trigger: 'change'
-        }],
-        happenTime: [{
-          required: true,
-          message: '璇烽�夋嫨鏈夋晥鏈�',
-          trigger: 'change'
-        }],
 
       },
       typeOptions: [{
@@ -374,9 +363,16 @@
     },
     handleFileCardPreview(file){
       this.dialogFileUrl = file.url;
+      // alert(file.url)
+      // this.dialogFileUrl = 'https://www.bendudu.com:8080/profile/upload/2023/10/18/20231018214647A011.doc'
+      // this.dialogFileUrl = 'https://47.93.189.255:8080/profile/upload/2023/03/19/test7_20230319222030A007.jpg'
+      if(this.dialogFileUrl.includes("47.93.189.255")==true)
+        this.dialogFileUrl = this.dialogFileUrl.replace("47.93.189.255","www.bendudu.com")
+      //alert(this.dialogFileUrl)
       const Base64 = require('js-base64').Base64
-      this.desurl = process.env.VUE_APP_BASE_OTHER_API+'onlinePreview?url='+encodeURIComponent(Base64.encode(this.dialogFileUrl));
-      myWindow=window.open(this.desurl,'','width=1200,height=800,top=150,left=300');
+
+      this.desurl = process.env.VUE_APP_BASE_OTHER_API+"preview/"+'onlinePreview?url='+encodeURIComponent(Base64.encode(this.dialogFileUrl));
+      let myWindow=window.open(this.desurl,'','width=1200,height=800,top=150,left=300');
     },
     handlePictureCardPreview(file) {
       this.dialogImageUrl = file.url;

--
Gitblit v1.9.1