From 0ae83a895e80a4b9777a27f613d721a7e5e2ac18 Mon Sep 17 00:00:00 2001 From: ali <ali9696@163.com> Date: 星期二, 03 九月 2024 10:18:27 +0800 Subject: [PATCH] 整体样式修改 --- energy_management_ui/src/views/energyExamine/assessmentResults/assessmentResults.vue | 246 +++++++++++++++++++++++++----------------------- 1 files changed, 129 insertions(+), 117 deletions(-) diff --git a/energy_management_ui/src/views/energyExamine/assessmentResults/assessmentResults.vue b/energy_management_ui/src/views/energyExamine/assessmentResults/assessmentResults.vue index 7cbfa77..7c8f3cf 100644 --- a/energy_management_ui/src/views/energyExamine/assessmentResults/assessmentResults.vue +++ b/energy_management_ui/src/views/energyExamine/assessmentResults/assessmentResults.vue @@ -1,6 +1,11 @@ <template> <div class="app-container"> - <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px"> + <el-form + :model="queryParams" + ref="queryForm" + :inline="true" + label-width="68px" + > <el-form-item> <el-radio v-model="radio" label="1">褰撳墠鍗曞厓</el-radio> <el-radio v-model="radio" label="2">鍖呭惈涓嬩竴绾�</el-radio> @@ -10,7 +15,8 @@ type="daterange" range-separator="鑷�" start-placeholder="寮�濮嬫棩鏈�" - end-placeholder="缁撴潫鏃ユ湡"> + end-placeholder="缁撴潫鏃ユ湡" + > </el-date-picker> </el-form-item> <el-form-item label="鑰冩牳渚濇嵁"> @@ -22,40 +28,45 @@ </el-checkbox-group> </el-form-item> <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini">鎼滅储</el-button> + <el-button type="primary" icon="el-icon-search" size="mini" + >鎼滅储</el-button + > <el-button icon="el-icon-download" size="mini">瀵煎嚭</el-button> </el-form-item> </el-form> - <div style="margin: 20px;text-align: center;font-weight: 600;"> + <div style="margin: 20px;text-align: center;font-weight: 600;color:#fff"> <span style="float: left;">缁熻鑼冨洿锛氬叏鍘�</span> <span>鑳芥晥鑰冩牳缁撴灉</span> - <span style="float: right;">缁熻鍖洪棿锛歿{times}}</span> + <span style="float: right;">缁熻鍖洪棿锛歿{ times }}</span> </div> - <el-table :data="energyEenchmarkingList" @selection-change="handleSelectionChange"> - <el-table-column label="鏃ユ湡" align="center" prop="time"/> + <el-table + :data="energyEenchmarkingList" + @selection-change="handleSelectionChange" + > + <el-table-column label="鏃ユ湡" align="center" prop="time" /> <el-table-column label="鐢佃�楅噺" align="center"> - <el-table-column label="瀹為檯閲�" align="center" prop="dsjl"/> - <el-table-column label="鑳借�楄鍒�" align="center" prop="dnhjh"/> + <el-table-column label="瀹為檯閲�" align="center" prop="dsjl" /> + <el-table-column label="鑳借�楄鍒�" align="center" prop="dnhjh" /> </el-table-column> <el-table-column label="澶╃劧姘旇�楅噺" align="center"> - <el-table-column label="瀹為檯閲�" align="center" prop="tsjl"/> - <el-table-column label="鑳借�楄鍒�" align="center" prop="tnhjh"/> + <el-table-column label="瀹為檯閲�" align="center" prop="tsjl" /> + <el-table-column label="鑳借�楄鍒�" align="center" prop="tnhjh" /> </el-table-column> <el-table-column label="姘磋�楅噺" align="center"> - <el-table-column label="瀹為檯閲�" align="center" prop="ssjl"/> - <el-table-column label="鑳借�楄鍒�" align="center" prop="snhjh"/> + <el-table-column label="瀹為檯閲�" align="center" prop="ssjl" /> + <el-table-column label="鑳借�楄鍒�" align="center" prop="snhjh" /> </el-table-column> <el-table-column label="鐒︾偔鑰楅噺" align="center"> - <el-table-column label="瀹為檯閲�" align="center" prop="jsjl"/> - <el-table-column label="鑳借�楄鍒�" align="center" prop="jnhjh"/> + <el-table-column label="瀹為檯閲�" align="center" prop="jsjl" /> + <el-table-column label="鑳借�楄鍒�" align="center" prop="jnhjh" /> </el-table-column> <el-table-column label="娌硅�楅噺" align="center"> - <el-table-column label="瀹為檯閲�" align="center" prop="ysjl"/> - <el-table-column label="鑳借�楄鍒�" align="center" prop="ynhjh"/> + <el-table-column label="瀹為檯閲�" align="center" prop="ysjl" /> + <el-table-column label="鑳借�楄鍒�" align="center" prop="ynhjh" /> </el-table-column> <el-table-column label="缁煎悎鑰楅噺" align="center"> - <el-table-column label="瀹為檯閲�" align="center" prop="zsjl"/> - <el-table-column label="鑳借�楄鍒�" align="center" prop="znhjh"/> + <el-table-column label="瀹為檯閲�" align="center" prop="zsjl" /> + <el-table-column label="鑳借�楄鍒�" align="center" prop="znhjh" /> </el-table-column> </el-table> </div> @@ -75,89 +86,91 @@ multiple: true, // 鎬绘潯鏁� total: 0, - radio: '1', - checkList: ['鑳借�楄鍒�'], + radio: "1", + checkList: ["鑳借�楄鍒�"], // energy_benchmarking琛ㄦ牸鏁版嵁 - energyEenchmarkingList:[{ - "time": "2019-02-01", - "dsjl":"-", - "dnhjh":"-", - "tsjl":"244.42", - "tnhjh":"-", - "ssjl":"343.42", - "snhjh":"-", - "jsjl":"196.12", - "jnhjh":"-", - "ysjl":"358.44", - "ynhjh":"-", - "zsjl":"1716.39", - "znhjh":"-", - "createBy": null, - "createTime": "", - "updateBy": null, - "updateTime": null, - "remark": "", - }, - { - "time": "2019-02-02", - "dsjl":"-", - "dnhjh":"-", - "tsjl":"392.13", - "tnhjh":"-", - "ssjl":"382.95", - "snhjh":"-", - "jsjl":"164.3", - "jnhjh":"-", - "ysjl":"278.17", - "ynhjh":"-", - "zsjl":"1813.69", - "znhjh":"-", - "createBy": null, - "createTime": "", - "updateBy": null, - "updateTime": null, - "remark": "", - }, - { - "time": "2019-02-03", - "dsjl":"-", - "dnhjh":"-", - "tsjl":"213.91", - "tnhjh":"-", - "ssjl":"263.23", - "snhjh":"-", - "jsjl":"308.81", - "jnhjh":"-", - "ysjl":"327.49", - "ynhjh":"-", - "zsjl":"1698.82", - "znhjh":"-", - "createBy": null, - "createTime": "", - "updateBy": null, - "updateTime": null, - "remark": "", - }, - { - "time": "2019-02-04", - "dsjl":"-", - "dnhjh":"-", - "tsjl":"355.44", - "tnhjh":"-", - "ssjl":"260.75", - "snhjh":"-", - "jsjl":"232.01", - "jnhjh":"-", - "ysjl":"253.9", - "ynhjh":"-", - "zsjl":"1486.82", - "znhjh":"-", - "createBy": null, - "createTime": "", - "updateBy": null, - "updateTime": null, - "remark": "", - }], + energyEenchmarkingList: [ + { + time: "2019-02-01", + dsjl: "-", + dnhjh: "-", + tsjl: "244.42", + tnhjh: "-", + ssjl: "343.42", + snhjh: "-", + jsjl: "196.12", + jnhjh: "-", + ysjl: "358.44", + ynhjh: "-", + zsjl: "1716.39", + znhjh: "-", + createBy: null, + createTime: "", + updateBy: null, + updateTime: null, + remark: "" + }, + { + time: "2019-02-02", + dsjl: "-", + dnhjh: "-", + tsjl: "392.13", + tnhjh: "-", + ssjl: "382.95", + snhjh: "-", + jsjl: "164.3", + jnhjh: "-", + ysjl: "278.17", + ynhjh: "-", + zsjl: "1813.69", + znhjh: "-", + createBy: null, + createTime: "", + updateBy: null, + updateTime: null, + remark: "" + }, + { + time: "2019-02-03", + dsjl: "-", + dnhjh: "-", + tsjl: "213.91", + tnhjh: "-", + ssjl: "263.23", + snhjh: "-", + jsjl: "308.81", + jnhjh: "-", + ysjl: "327.49", + ynhjh: "-", + zsjl: "1698.82", + znhjh: "-", + createBy: null, + createTime: "", + updateBy: null, + updateTime: null, + remark: "" + }, + { + time: "2019-02-04", + dsjl: "-", + dnhjh: "-", + tsjl: "355.44", + tnhjh: "-", + ssjl: "260.75", + snhjh: "-", + jsjl: "232.01", + jnhjh: "-", + ysjl: "253.9", + ynhjh: "-", + zsjl: "1486.82", + znhjh: "-", + createBy: null, + createTime: "", + updateBy: null, + updateTime: null, + remark: "" + } + ], // 鏌ヨ鍙傛暟 queryParams: { pageNum: 1, @@ -169,13 +182,12 @@ type: undefined, value: undefined, termValidity: undefined, - modelNode:"", + modelNode: "" }, - times:"", + times: "" }; }, - created() { - }, + created() {}, methods: { // 鍙栨秷鎸夐挳 cancel() { @@ -208,19 +220,19 @@ }, // 澶氶�夋閫変腑鏁版嵁 handleSelectionChange(selection) { - this.ids = selection.map(item => item.id) - this.single = selection.length!=1 - this.multiple = !selection.length + this.ids = selection.map(item => item.id); + this.single = selection.length != 1; + this.multiple = !selection.length; }, - getTime(){ - var date = new Date() - var year = date.getFullYear() - var month = date.getMonth() + 1 - var date = date.getDate() - month = month < 10 ? '0' + month : month - date = date < 10 ? '0' + date : date - this.times = year + '-' + month + '-' + date - }, + getTime() { + var date = new Date(); + var year = date.getFullYear(); + var month = date.getMonth() + 1; + var date = date.getDate(); + month = month < 10 ? "0" + month : month; + date = date < 10 ? "0" + date : date; + this.times = year + "-" + month + "-" + date; + } } }; </script> -- Gitblit v1.9.3