From 74a135c4f8b46d48a4997ac0e40ac86055b4a1a4 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 17 四月 2024 16:57:25 +0800
Subject: [PATCH] 优化标准库

---
 src/components/view/index-index.vue |   67 +++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 1 deletions(-)

diff --git a/src/components/view/index-index.vue b/src/components/view/index-index.vue
index 57b55ee..4743c4e 100644
--- a/src/components/view/index-index.vue
+++ b/src/components/view/index-index.vue
@@ -220,6 +220,18 @@
     display: flex;
     flex-direction: column;
   }
+  .search_thing {
+		height: 50px;
+    margin-bottom: 26px;
+	}
+
+	.search_label {
+		width: 120px;
+		font-size: 14px;
+		text-align: left;
+    margin-bottom: 10px;
+	}
+
 </style>
 
 <template>
@@ -298,7 +310,7 @@
           <div class="right-2-title">
             <span style="color: #333333;font-size: 16px;">鎴戠殑鏃ョ▼</span>
             <span style="cursor: pointer;font-size: 12px;
-color: #3A7BFA;">娣诲姞鎴戠殑鏃ョ▼</span>
+color: #3A7BFA;" @click="dialogVisible=true">娣诲姞鎴戠殑鏃ョ▼</span>
           </div>
           <div class="right-2-body">
             <div class="calendar" style="width: 49%;">
@@ -349,6 +361,36 @@
         </div>
       </el-col>
     </el-row>
+    <el-dialog title="鏃ョ▼娣诲姞" :visible.sync="dialogVisible" width="400px">
+			<div class="body" style="max-height: 60vh;">
+				<el-row>
+					<el-col class="search_thing" :span="22">
+						<div class="search_label">鏃堕棿锛�</div>
+						<div class="search_input">
+							<el-date-picker
+                v-model="query.time"
+                type="datetime"
+                placeholder="閫夋嫨鏃ユ湡鏃堕棿"
+                size="small"
+                style="width:100%">
+              </el-date-picker>
+						</div>
+					</el-col>
+          <el-col class="search_thing" :span="22">
+						<div class="search_label">鍐呭锛�</div>
+						<div class="search_input">
+							<el-input v-model="query.content" size="small" placeholder="璇疯緭鍏ュ唴瀹�"></el-input>
+						</div>
+					</el-col>
+				</el-row>
+			</div>
+			<span slot="footer" class="dialog-footer">
+				<el-row>
+					<el-button @click="handleCancel">鍙� 娑�</el-button>
+					<el-button type="primary" @click="submit" :loading="loading">纭� 瀹�</el-button>
+				</el-row>
+			</span>
+		</el-dialog>
 	</div>
 </template>
 
@@ -360,6 +402,12 @@
 				now: null,
         calendarValue: new Date(),
         currentIndex:0,
+        dialogVisible:false,
+        query:{
+          time:'',
+          content:''
+        },
+        loading:false
 			}
 		},
 		mounted() {
@@ -458,6 +506,23 @@
         // 灏嗗緱鍒扮殑骞存湀鏃ユ牸寮忚浆鎹负鏍囧噯鏃堕棿锛屼笌楗夸簡涔堟椂闂存牸寮忕浉鍚屾墠鑳借仈鍔�
         this.calendarValue = new Date(prevtime);
       },
+      handleCancel(){
+        this.dialogVisible = false;
+        this.query = {
+          time:'',
+          content:''
+        }
+      },
+      submit(){
+        if(!this.query.time){
+          this.$message.error('鏃堕棿鏈~鍐�')
+          return
+        }
+        if(!this.query.content){
+          this.$message.error('鍐呭鏈~鍐�')
+          return
+        }
+      }
 		}
 	}
 </script>

--
Gitblit v1.9.3