From 0dc1e26569ab570259fef29cd5cde70cb96d7f2c Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期二, 09 一月 2024 11:08:44 +0800
Subject: [PATCH] 修订版本3.0

---
 src/components/view/data-comparison.vue |   58 ++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 32 insertions(+), 26 deletions(-)

diff --git a/src/components/view/data-comparison.vue b/src/components/view/data-comparison.vue
index 45b69a3..dfe4142 100644
--- a/src/components/view/data-comparison.vue
+++ b/src/components/view/data-comparison.vue
@@ -45,19 +45,20 @@
 		</div>
 		<div class="search">
 			<div class="search_thing">
-				<div class="search_label">璐︽埛鍚嶇О锛�</div>
-				<div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="componentData.entity.name"
-					></el-input></div>
+				<div class="search_label">涓昏处鎴峰悕绉帮細</div>
+				<div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable
+						v-model="componentData.entity.name"></el-input></div>
 			</div>
-            <div class="search_thing">
-				<div class="search_label">瀵规瘮鐨勮处鎴峰悕绉帮細</div>
-				<div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="componentData.entity.comparisonName"
-					></el-input></div>
+			<div class="search_thing">
+				<div class="search_label">瀛愯处鎴峰悕绉帮細</div>
+				<div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable
+						v-model="componentData.entity.comparisonName"></el-input></div>
 			</div>
-            <div class="search_thing">
+			<div class="search_thing">
 				<div class="search_label">鐧昏鏃ユ湡锛�</div>
 				<div class="search_input">
-					<el-date-picker size="small" v-model="componentData.entity.createTime" type="date" placeholder="閫夋嫨鏃ユ湡" value-format="yyyy-MM-dd" clearable></el-date-picker>
+					<el-date-picker size="small" v-model="componentData.entity.createTime" type="date" placeholder="閫夋嫨鏃ユ湡"
+						value-format="yyyy-MM-dd" clearable></el-date-picker>
 				</div>
 			</div>
 			<div class="search_thing" style="padding-left: 30px;">
@@ -66,7 +67,8 @@
 			</div>
 		</div>
 		<div class="table">
-			<ValueTable ref="ValueTable" :url="$api.dataReporting.selectDataComparisonDtoPageList" :componentData="componentData" :key="upIndex"/>
+			<ValueTable ref="ValueTable" :url="$api.dataReporting.selectDataComparisonDtoPageList"
+				:componentData="componentData" :key="upIndex" />
 		</div>
 	</div>
 </template>
@@ -82,8 +84,8 @@
 				componentData: {
 					entity: {
 						name: null,
-                        comparisonName:null,
-                        createTime: null,
+						comparisonName: null,
+						createTime: null,
 						orderBy: {
 							field: 'createTime',
 							order: 'desc'
@@ -102,7 +104,7 @@
 				outPower: true
 			}
 		},
-        created() {
+		created() {
 			var today = new Date();
 			var yesterday = new Date(today);
 			yesterday.setDate(today.getDate() - 1);
@@ -119,28 +121,32 @@
 		},
 		mounted() {
 			this.entityCopy = this.HaveJson(this.componentData.entity)
-			this.selectDataComparisonDtoPageList()
+			// this.selectDataComparisonDtoPageList()
 		},
 		methods: {
 			refreshTable() {
-                if(this.componentData.entity.name == null || this.componentData.entity.name == '') {
-                    this.$message.error('璐︽埛鍚嶇О鏄繀濉」')
-                }else if(this.componentData.entity.comparisonName == null || this.componentData.entity.comparisonName == '') {
-                    this.$message.error('瀵规瘮鐨勮处鎴峰悕绉版槸蹇呭~椤�')
-                }else if(this.componentData.entity.createTime == null) {
-                    this.$message.error('鐧昏鏃堕棿鏄繀濉」')
-                }else if(this.componentData.entity.name === this.componentData.entity.comparisonName) {
-                    this.$message.error('瀵规瘮鐨勮处鎴蜂笉鑳介噸澶�')
-                }else {
-                    this.$refs['ValueTable'].selectList()
-                }
+				if (this.componentData.entity.name == null || this.componentData.entity.name == '') {
+					this.$message.error('璐︽埛鍚嶇О鏄繀濉」')
+				} else if (this.componentData.entity.comparisonName == null || this.componentData.entity.comparisonName == '') {
+					this.$message.error('瀵规瘮鐨勮处鎴峰悕绉版槸蹇呭~椤�')
+				} else if (this.componentData.entity.createTime == null) {
+					this.$message.error('鐧昏鏃堕棿鏄繀濉」')
+				} else if (this.componentData.entity.name === this.componentData.entity.comparisonName) {
+					this.$message.error('瀵规瘮鐨勮处鎴蜂笉鑳介噸澶�')
+				} else {
+					this.$refs['ValueTable'].selectList()
+				}
 			},
 			refresh() {
 				this.componentData.entity = this.HaveJson(this.entityCopy)
 				this.upIndex++
 			},
 			selectDataComparisonDtoPageList() {
-				this.$axios.get(this.$api.dataReporting.selectDataComparisonDtoPageList).then(res => {
+				this.$axios.post(this.$api.dataReporting.selectDataComparisonDtoPageList, {
+					headers: {
+						'Content-Type': 'application/json'
+					}
+				}).then(res => {
 					res.data.forEach(a => {
 						a.isClick = false
 						a.look = false

--
Gitblit v1.9.3