Переглянути джерело

1.新增原始数据样式;2.总貌图改样式

mw_666 3 роки тому
батько
коміт
c73644a6d8

+ 81 - 4
src/views/Others/gzCgd.vue

@@ -46,18 +46,69 @@
 				</div>
 			</el-row>
 		</el-dialog>
+		
+		<!-- 原始数据start -->
+		<el-dialog title="原始数据" v-model="yssjDialog" width="70%" top="15vh" custom-class="modal"
+			:close-on-click-modal="false" :before-close="yssjDialogClose">
+			
+			<div class="query mg-b-8">
+				<div class="query-items">
+					<div class="query-item">
+						<div class="lable">时间:</div>
+						<div class="search-input">
+							<el-date-picker v-model="value3" type="datetimerange" range-separator="至"
+								start-placeholder="开始日期" end-placeholder="结束日期">
+							</el-date-picker>
+						</div>
+					</div>
+					<div class="query-item">
+						<div class="lable">等间隔:</div>
+						<div class="search-input">
+							<el-select v-model="value2" multiple placeholder="请选择" popper-class="select">
+								<el-option v-for="item in TingJiLeiXing" :key="item.value" :value="item.value"
+									:label="item.label">
+								</el-option>
+							</el-select>
+						</div>
+					</div>
+					<div class="query-actions">
+						<button class="btn" @click="query()">查询</button>
+					</div>
+				</div>
+			</div>
+			<tab :data="tabData" @select="select" />
+			<el-row type="flex" v-if="currTab == 1">
+				<el-col :span="24">
+					<ComTable :data="tableData" :pageSize="pageSize" @onPagging="onChangePage" height="84vh"
+						v-loading="tableLoading" element-loading-text="拼命加载中"
+						element-loading-background="rgba(0, 0, 0, 0.8)"></ComTable>
+				</el-col>
+			</el-row>
+			<el-row type="flex" v-if="currTab == 2">
+				<el-col :span="24">
+					<double-line-chart :height="'200px'" />
+				</el-col>
+			</el-row>
+		</el-dialog>
+		<!-- 原始数据end -->
 	</div>
 </template>
 
 <script>
 	import ComTable from "@/components/coms/table/table.vue";
+	import DoubleLineChart from "@/components/chart/line/double-line-chart.vue";
+	import Tab from "@/components/coms/tabs/tab.vue";
 	export default {
 		components: {
-			ComTable
+			ComTable,DoubleLineChart,Tab
 		},
 		data() {
 			const that = this;
 			return {
+				currTab:1,
+				tabData:[{ id: "1", text: "表格"}, { id: "2", text: "图表", }],
+				value2: '',
+				value3: [],
 				pageIndex: 1,
 				pageSize: 20,
 				myInput1: "",
@@ -65,6 +116,7 @@
 				myInput3: "",
 				myInput4: "",
 				isvisiable: false,
+				yssjDialog:false,
 				isvisiableType: 1, //新增为1,编辑为2
 				tableData: {
 					column: [{
@@ -136,6 +188,10 @@
 			},
 		},
 		methods: {
+			select(data) {
+			  // console.log(data);
+			  this.currTab = parseInt(data.id);
+			},
 			getTable() {
 				let that = this;
 				this.tableLoading = true;
@@ -224,14 +280,17 @@
 					});
 					that.isvisiable = true;
 				}
-				if ("config" == e.target.getAttribute("value")) { //传感点
-					that.gzCgd = 2;
+				if ("config" == e.target.getAttribute("value")) { //原始数据
+					that.yssjDialog=true;
 				}
 			},
 			onClickDialogClose() { // 弹窗右上角关闭按钮
 				this.isvisiable = false;
 				this.isvisiableType = 1;
 			},
+			yssjDialogClose(){//原始数据
+				this.yssjDialog = false;
+			},
 			dialogSave() {
 				console.log(this.myInput1)
 				// myInput1: "",
@@ -241,7 +300,25 @@
 			},
 			back() {
 				this.$emit('gzCgdClick', 1);
-			}
+			},
+			query() {
+				var that = this;
+				console.log(that.value2)
+				console.log(that.value3)
+				if(that.value3){
+					that.value3[0].valueOf()//开始时间
+					that.value3[1].valueOf()//结束时间
+				}
+				
+				// that.API.requestData({
+				// 	method: "GET",
+				// 	baseURL: "http://10.155.32.4:9001/",
+				// 	subUrl: "benchmarking/wplist",
+				// 	success(res) {
+				// 		that.ChangZhan = res.data;
+				// 	},
+				// });
+			},
 		},
 		created() {
 			// console.log(this.data)//上个页面的参数

+ 3 - 2
src/views/WindSite/components/generalappearance/dwk.vue

@@ -1768,7 +1768,8 @@
 	}
 
 	.svg {
-		width: 100%;
-		height: 100%;
+		margin-left: 5%;
+		width: 90%;
+		height: 90%;
 	}
 </style>

+ 3 - 2
src/views/WindSite/components/generalappearance/mch.vue

@@ -1571,7 +1571,8 @@
 	}
 
 	.svg {
-		width: 100%;
-		height: 100%;
+		margin-left: 5%;
+		width: 90%;
+		height: 90%;
 	}
 </style>

+ 3 - 2
src/views/WindSite/components/generalappearance/mhs.vue

@@ -1723,7 +1723,8 @@ export default {
 }
 
 .svg {
-  width: 100%;
-  height: 100%;
+  margin-left: 5%;
+  width: 90%;
+  height: 90%;
 }
 </style>

+ 4 - 3
src/views/WindSite/components/generalappearance/nss.vue

@@ -4,7 +4,7 @@
       <el-col :span="24">
         <previewPicture v-if="datas">
           <template v-slot:svg>
-            <svg class="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="图层_1" x="0px" y="0px" width="1497.576px" height="815.74px" viewBox="-60 110 1580.576 815.74" enable-background="new 0 0 1497.576 815.74" xml:space="preserve">
+            <svg class="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="图层_1" x="0px" y="0px" width="1497.576px" height="815.74px" viewBox="-60 0 1580.576 815.74" enable-background="new 0 0 1497.576 815.74" xml:space="preserve">
             <g id="other">
             	<g>
             		<text transform="matrix(1 0 0 1 36.5847 21.1748)" fill="#FFFFFF" font-family="'MicrosoftYaHeiLight'" font-size="12.3679">运</text>
@@ -3748,7 +3748,8 @@ export default {
 }
 
 .svg {
-  width: 85%;
-  height: 100%;
+  margin-left: 5%;
+  width: 90%;
+  height: 90%;
 }
 </style>

+ 3 - 2
src/views/WindSite/components/generalappearance/pl1.vue

@@ -1156,7 +1156,8 @@
 	}
 
 	.svg {
-		width: 100%;
-		height: 100%;
+		margin-left: 5%;
+		width: 90%;
+		height: 90%;
 	}
 </style>

+ 3 - 2
src/views/WindSite/components/generalappearance/pl2.vue

@@ -1966,7 +1966,8 @@
 	}
 
 	.svg {
-		width: 100%;
-		height: 100%;
+		margin-left: 5%;
+		width: 90%;
+		height: 90%;
 	}
 </style>

+ 3 - 2
src/views/WindSite/components/generalappearance/qs.vue

@@ -3502,7 +3502,8 @@ export default {
 }
 
 .svg {
-  width: 100%;
-  height: 100%;
+  margin-left: 5%;
+  width: 90%;
+  height: 90%;
 }
 </style>

+ 3 - 2
src/views/WindSite/components/generalappearance/sbq.vue

@@ -4440,7 +4440,8 @@ export default {
 }
 
 .svg {
-  width: 100%;
-  height: 100%;
+  margin-left: 5%;
+  width: 90%;
+  height: 90%;
 }
 </style>

+ 3 - 2
src/views/WindSite/components/generalappearance/xh.vue

@@ -15181,7 +15181,8 @@ YII=" transform="matrix(0.24 0 0 0.24 1183.2881 191.6758)"></image>
 	}
 
 	.svg {
-		width: 100%;
-		height: 100%;
+		margin-left: 5%;
+		width: 90%;
+		height: 90%;
 	}
 </style>

+ 3 - 2
src/views/WindSite/components/generalappearance/xs.vue

@@ -7233,7 +7233,8 @@ export default {
 }
 
 .svg {
-  width: 100%;
-  height: 100%;
+  margin-left: 5%;
+  width: 90%;
+  height: 90%;
 }
 </style>