From c269a8b24a2591af045722a1328ebf0f690c555e Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期二, 01 八月 2023 23:58:26 +0800
Subject: [PATCH] 日期减一问题已解决

---
 ruoyi-ui/src/views/travel/index.vue      |    4 +-
 ruoyi-ui/src/views/bignote/index.vue     |    4 +-
 ruoyi-ui/src/views/economy/index.vue     |    4 +-
 ruoyi-ui/src/views/pet/index.vue         |    4 +-
 ruoyi-ui/src/views/secret/index.vue      |    8 ++--
 ruoyi-ui/src/views/wish/index.vue        |    4 +-
 ruoyi-ui/src/views/collection/index.vue  |    2 
 ruoyi-ui/src/views/healthy/index.vue     |    4 +-
 ruoyi-ui/src/views/doctor/index.vue      |   52 +++++++++++++++++---------
 ruoyi-ui/src/views/device/index.vue      |    4 +-
 ruoyi-ui/src/views/clean/index.vue       |    6 +-
 ruoyi-ui/src/views/selfeconomy/index.vue |    2 
 ruoyi-ui/src/views/note/index.vue        |    4 +-
 13 files changed, 59 insertions(+), 43 deletions(-)

diff --git a/ruoyi-ui/src/views/bignote/index.vue b/ruoyi-ui/src/views/bignote/index.vue
index 2220cec..21f178f 100644
--- a/ruoyi-ui/src/views/bignote/index.vue
+++ b/ruoyi-ui/src/views/bignote/index.vue
@@ -234,11 +234,11 @@
         </el-form-item>
 
         <el-form-item label="鍙戠敓鏃堕棿" prop="happenTime">
-          <el-date-picker
+          <el-input
             v-model='formDat.happenTime'
             type='date'
             placeholder='閫夋嫨鏃ユ湡'
-          ></el-date-picker>
+          ></el-input>
         </el-form-item>
         <el-form-item label="澶囨敞" prop="remark">
           <el-input v-model="formDat.remark" placeholder="璇疯緭鍏ュ娉�" clearable :style="{width: '100%'}" ></el-input>
diff --git a/ruoyi-ui/src/views/clean/index.vue b/ruoyi-ui/src/views/clean/index.vue
index cede9aa..a329503 100644
--- a/ruoyi-ui/src/views/clean/index.vue
+++ b/ruoyi-ui/src/views/clean/index.vue
@@ -205,10 +205,10 @@
             </el-input>
           </el-form-item>
           <el-form-item label="鏃堕棿" prop="happenTime">
-           <el-date-picker
+           <el-input
             v-model='formDat.happenTime'
-            type='createDate'
-            placeholder='閫夋嫨鏃ユ湡'></el-date-picker>
+            type='date'
+            placeholder='閫夋嫨鏃ユ湡'></el-input>
           </el-form-item>
           <el-form-item label="淇濇磥鏂规硶" prop="method">
             <el-input v-model="formDat.method" placeholder="璇疯緭鍏ヤ繚娲佹柟娉�" clearable :style="{width: '100%'}" >
diff --git a/ruoyi-ui/src/views/collection/index.vue b/ruoyi-ui/src/views/collection/index.vue
index 17b8402..65b2420 100644
--- a/ruoyi-ui/src/views/collection/index.vue
+++ b/ruoyi-ui/src/views/collection/index.vue
@@ -290,7 +290,7 @@
 <!--          <el-input v-model="formDat.happenTime" placeholder="璇疯緭鍏ヨ幏寰楁椂闂�" clearable :style="{width: '100%'}" ></el-input>-->
 <!--        </el-form-item>-->
         <el-form-item label="鑾峰緱鏃堕棿" prop="happenTime">
-          <el-date-picker v-model='formDat.happenTime' type='date' placeholder='閫夋嫨鏃ユ湡'></el-date-picker>
+          <el-input v-model='formDat.happenTime' type='date' clearable placeholder='閫夋嫨鏃ユ湡'></el-input>
         </el-form-item>
         <el-form-item label="绫诲埆" prop="type">
           <el-select v-model="formDat.type" placeholder="璇烽�夋嫨绫诲埆" clearable :style="{width: '100%'}"  >
diff --git a/ruoyi-ui/src/views/device/index.vue b/ruoyi-ui/src/views/device/index.vue
index 8ea514e..ee7bd1c 100644
--- a/ruoyi-ui/src/views/device/index.vue
+++ b/ruoyi-ui/src/views/device/index.vue
@@ -210,11 +210,11 @@
         </el-form-item>
 
         <el-form-item label="鍙戠敓鏃堕棿" prop="happenTime">
-          <el-date-picker
+          <el-input
             v-model='formDat.happenTime'
             type='date'
             placeholder='閫夋嫨鏃ユ湡'
-          ></el-date-picker>
+          ></el-input>
         </el-form-item>
 
 
diff --git a/ruoyi-ui/src/views/doctor/index.vue b/ruoyi-ui/src/views/doctor/index.vue
index 5ca2704..0a287ce 100644
--- a/ruoyi-ui/src/views/doctor/index.vue
+++ b/ruoyi-ui/src/views/doctor/index.vue
@@ -195,8 +195,8 @@
       <el-table-column type="selection" :reserve-selection="true" width="25"  align="center" />
       <el-table-column fixed label="搴忓彿" sortable type="index" align="center" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/>
       <el-table-column label="绫诲瀷" prop="type" sortable width="80" align="center">
-        <template slot-scope="scope">{{ getSrc(scope.row.type) }}</template>
-<!--        <template slot-scope="scope">{{scope.row.type? scope.row.type: '鈥斺�斺�斺��'}}</template>-->
+<!--        <template slot-scope="scope">{{ getSrc(scope.row.type) }}</template>-->
+        <template slot-scope="scope">{{scope.row.type? scope.row.type: '鈥斺�斺�斺��'}}</template>
       </el-table-column>
       <el-table-column label="鐥囩姸" prop="symptom" sortable :show-overflow-tooltip="true" width="120" align="center" >
         <template slot-scope="scope">{{scope.row.symptom? scope.row.symptom: '鈥斺�斺�斺��'}}</template>
@@ -290,6 +290,7 @@
             <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value"
             ></el-option>
           </el-select>
+          <el-input v-model="newOption" v-if="showInput" placeholder="鑻ユ湭鍦ㄤ笂杩伴�夐」涓壘鍒板搴旂被鍒紝璇峰湪姝よ緭鍏ユ柊鐨勭被鍒�" @change="addNewOption"></el-input>
         </el-form-item>
 
         <el-form-item label="鐥囩姸" prop="symptom">
@@ -439,11 +440,8 @@
       dateRange: [],
       // 鏁版嵁鑼冨洿閫夐」
       fot:[".jpg",".jif"],
-      fileList:[
-      ],
-      fileListOther:[
-
-      ],
+      fileList:[],
+      fileListOther:[],
       dsb:true,
       btn:false,
       fit:['fill'],
@@ -489,7 +487,7 @@
       rules: {
 
         type: [{
-          required: true,
+          // required: true,
           message: '璇疯緭鍏ョ被鍨�',
           trigger: 'blur'
         }],
@@ -540,6 +538,8 @@
         value:'鍐呯',
         label:'鍐呯'
       }],
+      newOption: undefined,
+      showInput: true
     };
   },
   created() {
@@ -564,6 +564,13 @@
         return "statistics-warning-row";
       }
     },
+    //绫诲埆
+    addNewOption() {
+      const newOption = this.newOption.trim();
+      if (newOption && !this.typeOptions.includes(newOption)) {
+        this.typeOptions.push(newOption);
+      }
+    },
     /** 鏌ヨ璁板綍鍒楄〃 */
     getList() {
       this.loading = true;
@@ -580,16 +587,16 @@
       );
     },
     /** 鏌ヨ绫诲埆淇℃伅 */
-    getCateInfor()
-    {
-      let _this = this
-      getCategory().then(response=>{
-
-        response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{
-          _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]})
-        })
-      })
-    },
+    // getCateInfor()
+    // {
+    //   let _this = this
+    //   getCategory().then(response=>{
+    //
+    //     response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{
+    //       _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]})
+    //     })
+    //   })
+    // },
 //绫诲埆閫夋嫨
     getSrc(type) {
       if (type === '绁炵粡绉�'){
@@ -802,6 +809,15 @@
     }).catch(() => { Message({ message: "瀵煎叆澶辫触", type: 'error' })});
 
     }
+  },
+  watch: {
+    type(value) {
+      if (value === '') {
+        this.showInput = true;
+      } else {
+        this.showInput = false;
+      }
+    }
   }
 };
 </script>
diff --git a/ruoyi-ui/src/views/economy/index.vue b/ruoyi-ui/src/views/economy/index.vue
index c867b67..ea79958 100644
--- a/ruoyi-ui/src/views/economy/index.vue
+++ b/ruoyi-ui/src/views/economy/index.vue
@@ -183,11 +183,11 @@
         </el-form-item>
 
         <el-form-item label="鏃堕棿" prop="createTime">
-          <el-date-picker
+          <el-input
             v-model='formDat.createTime'
             type='date'
             placeholder='閫夋嫨鏃ユ湡'
-          ></el-date-picker>
+          ></el-input>
         </el-form-item>
         <el-form-item label="鏀跺叆/鏀嚭" prop="price">
           <el-select v-model="formDat.price" placeholder="璇烽�夋嫨鏀跺叆/鏀嚭" clearable :style="{width: '100%'}"  >
diff --git a/ruoyi-ui/src/views/healthy/index.vue b/ruoyi-ui/src/views/healthy/index.vue
index 651b513..09347da 100644
--- a/ruoyi-ui/src/views/healthy/index.vue
+++ b/ruoyi-ui/src/views/healthy/index.vue
@@ -182,11 +182,11 @@
 
 
         <el-form-item label="浣撴鏃堕棿" prop="checkTime">
-          <el-date-picker
+          <el-input
             v-model='formDat.checkTime'
             type='date'
             placeholder='閫夋嫨鏃ユ湡'
-          ></el-date-picker>
+          ></el-input>
         </el-form-item>
 
         <el-form-item label="绫诲埆" prop="type">
diff --git a/ruoyi-ui/src/views/note/index.vue b/ruoyi-ui/src/views/note/index.vue
index 32c6ee7..9e3f089 100644
--- a/ruoyi-ui/src/views/note/index.vue
+++ b/ruoyi-ui/src/views/note/index.vue
@@ -227,11 +227,11 @@
           </el-input>
         </el-form-item>
         <el-form-item label="鍙戠敓鏃堕棿" prop="happenTime">
-          <el-date-picker
+          <el-input
             v-model='formDat.happenTime'
             type='date'
             placeholder='閫夋嫨鏃ユ湡'
-          ></el-date-picker>
+          ></el-input>
         </el-form-item>
         <el-form-item label="澶囨敞" prop="remark">
           <el-input v-model="formDat.remark" placeholder="璇疯緭鍏ュ娉�" clearable :style="{width: '100%'}" ></el-input>
diff --git a/ruoyi-ui/src/views/pet/index.vue b/ruoyi-ui/src/views/pet/index.vue
index 8c1b639..94ecec1 100644
--- a/ruoyi-ui/src/views/pet/index.vue
+++ b/ruoyi-ui/src/views/pet/index.vue
@@ -190,11 +190,11 @@
           <el-input v-model="formDat.name" placeholder="璇疯緭鍏ュ悕瀛�" clearable :style="{width: '100%'}" ></el-input>
         </el-form-item>
         <el-form-item label="鍑虹敓鏃ユ湡" prop="birth">
-          <el-date-picker
+          <el-input
             v-model='formDat.birth'
             type='date'
             placeholder='閫夋嫨鏃ユ湡'
-          ></el-date-picker>
+          ></el-input>
         </el-form-item>
         <el-form-item label="鎬у埆" prop="sex">
           <el-select v-model="formDat.sex" placeholder="璇烽�夋嫨鎬у埆" clearable :style="{width: '100%'}"  >
diff --git a/ruoyi-ui/src/views/secret/index.vue b/ruoyi-ui/src/views/secret/index.vue
index 6ed191d..b5a593e 100644
--- a/ruoyi-ui/src/views/secret/index.vue
+++ b/ruoyi-ui/src/views/secret/index.vue
@@ -186,11 +186,11 @@
         <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px">
 
           <el-form-item label="鏃堕棿" prop="happenTime">
-            <el-date-picker
+            <el-input
               v-model='formDat.happenTime'
               type='date'
               placeholder='閫夋嫨鏃ユ湡'
-            ></el-date-picker>
+            ></el-input>
           </el-form-item>
             <el-form-item label="绫诲埆" prop="type">
             <el-input v-model="formDat.type" placeholder="璇疯緭鍏ョ被鍒�" clearable :style="{width: '100%'}" ></el-input>
@@ -200,11 +200,11 @@
           </el-form-item>
 
           <el-form-item label="鏈夋晥鏈�" prop="validityDate">
-            <el-date-picker
+            <el-input
               v-model='formDat.validityDate'
               type='date'
               placeholder='閫夋嫨鏈夋晥鏈�'
-            ></el-date-picker>
+            ></el-input>
           </el-form-item>
           <el-form-item label="瀵嗙爜" prop="password">
             <el-input v-model="formDat.password" placeholder="璇疯緭鍏ュ瘑鐮�" clearable :style="{width: '100%'}" ></el-input>
diff --git a/ruoyi-ui/src/views/selfeconomy/index.vue b/ruoyi-ui/src/views/selfeconomy/index.vue
index 15ce206..b0d90bd 100644
--- a/ruoyi-ui/src/views/selfeconomy/index.vue
+++ b/ruoyi-ui/src/views/selfeconomy/index.vue
@@ -256,7 +256,7 @@
           <!--          <el-input v-model="formDat.happenTime" placeholder="璇疯緭鍏ヨ幏寰楁椂闂�" clearable :style="{width: '100%'}" ></el-input>-->
           <!--        </el-form-item>-->
           <el-form-item label="鏃堕棿" prop="happenTime">
-            <el-date-picker v-model='formDat.happenTime' type='date' placeholder='閫夋嫨鏃ユ湡'></el-date-picker>
+            <el-input v-model='formDat.happenTime' type='date' placeholder='閫夋嫨鏃ユ湡'></el-input>
           </el-form-item>
           <el-form-item label="璐骇绫诲埆" prop="type">
             <el-input v-model="formDat.type" placeholder="璇疯緭鍏ヨ储浜х被鍒�" clearable :style="{width: '100%'}" >
diff --git a/ruoyi-ui/src/views/travel/index.vue b/ruoyi-ui/src/views/travel/index.vue
index 1575236..8dd1d80 100644
--- a/ruoyi-ui/src/views/travel/index.vue
+++ b/ruoyi-ui/src/views/travel/index.vue
@@ -186,11 +186,11 @@
         </el-form-item>
 
         <el-form-item label="鏃堕棿" prop="happenTime">
-          <el-date-picker
+          <el-input
             v-model='formDat.happenTime'
             type='date'
             placeholder='閫夋嫨鏃ユ湡'
-          ></el-date-picker>
+          ></el-input>
         </el-form-item>
         <el-form-item label="鏀跺叆/鏀嚭" prop="price">
           <el-select v-model="formDat.price" placeholder="璇烽�夋嫨鏀跺叆/鏀嚭" clearable :style="{width: '100%'}"  >
diff --git a/ruoyi-ui/src/views/wish/index.vue b/ruoyi-ui/src/views/wish/index.vue
index 1c069c0..0e707ad 100644
--- a/ruoyi-ui/src/views/wish/index.vue
+++ b/ruoyi-ui/src/views/wish/index.vue
@@ -283,7 +283,7 @@
         <!--          <el-input v-model="formDat.happenTime" placeholder="璇疯緭鍏ヨ幏寰楁椂闂�" clearable :style="{width: '100%'}" ></el-input>-->
         <!--        </el-form-item>-->
         <el-form-item label="鏃堕棿" prop="happenTime">
-          <el-date-picker v-model='formDat.happenTime' type='date' placeholder='閫夋嫨鏃ユ湡'></el-date-picker>
+          <el-input v-model="formDat.happenTime" type='date' placeholder='閫夋嫨鏃ユ湡' clearable :style="{width: '100%'}" ></el-input>
         </el-form-item>
         <el-form-item label="鐞嗘兂鏍囬/鐧惧勾蹇冩効" prop="title">
           <el-input v-model="formDat.title" placeholder="璇疯緭鍏ョ悊鎯虫爣棰�/鐧惧勾蹇冩効" clearable :style="{width: '100%'}" >
@@ -568,7 +568,7 @@
     /** 鏌ヨ璁板綍鍒楄〃 */
     getList() {
       this.loading = true;
-      console.log(this.queryParams)
+      // console.log(this.queryParams)
       this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0]
       this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1]
 

--
Gitblit v1.9.1