index.vue 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307
  1. <template>
  2. <div class="main-content" :style='{"width":"100%","padding":"20px 30px","fontSize":"15px"}'>
  3. <!-- 列表页 -->
  4. <template v-if="showFlag">
  5. <el-form class="center-form-pv" :style='{"border":"0px solid #fff","padding":"10px","margin":"0","flexWrap":"wrap","background":"#ffffff","display":"flex","width":"100%"}' :inline="true" :model="searchForm">
  6. <el-row :style='{"padding":"10px","alignItems":"center","flexWrap":"wrap","background":"none","display":"flex"}' >
  7. <div :style='{"alignItems":"center","margin":"0 10px 0 0","display":"flex"}'>
  8. <label :style='{"margin":"0 10px 0 0","whiteSpace":"nowrap","color":"#666","display":"inline-block","lineHeight":"40px","fontSize":"inherit","fontWeight":"500","height":"40px"}' class="item-label">日期</label>
  9. <el-date-picker v-model="searchForm.record_date_start" type="date" value-format="yyyy-MM-dd" format="yyyy-MM-dd" placeholder="日期起始"></el-date-picker>
  10. <el-date-picker v-model="searchForm.record_date_end" type="date" value-format="yyyy-MM-dd" format="yyyy-MM-dd" placeholder="日期结束"></el-date-picker>
  11. </div>
  12. <div :style='{"alignItems":"center","margin":"0 10px 0 0","display":"flex"}'>
  13. <label :style='{"margin":"0 10px 0 0","whiteSpace":"nowrap","color":"#666","display":"inline-block","lineHeight":"40px","fontSize":"inherit","fontWeight":"500","height":"40px"}' class="item-label">地区</label>
  14. <el-select style="width: 100%" v-model="searchForm.region" placeholder="归属地区" @keydown.enter.native="search()" clearable>
  15. <el-option v-for="item in regionList" :key="item.value" :label="item.label" :value="item.label" />
  16. </el-select>
  17. <!-- <el-input v-model="searchForm.city" placeholder="地区" @keydown.enter.native="search()" clearable></el-input>
  18. --> </div>
  19. <div :style='{"alignItems":"center","margin":"0 10px 0 0","display":"flex"}'>
  20. <label :style='{"margin":"0 10px 0 0","whiteSpace":"nowrap","color":"#666","display":"inline-block","lineHeight":"40px","fontSize":"inherit","fontWeight":"500","height":"40px"}' class="item-label">变电站</label>
  21. <el-input v-model="searchForm.substation" placeholder="变电站" clearable></el-input>
  22. </div>
  23. <el-button class="search" type="success" @click="search()">
  24. <span class="icon iconfont icon-fangdajing07" :style='{"margin":"0 2px","fontSize":"16px","color":"#fff","display":"none","height":"40px"}'></span>
  25. 搜索
  26. </el-button>
  27. </el-row>
  28. <el-row class="actions" :style='{"padding":"10px","margin":"0px 0","flexWrap":"wrap","background":"none","display":"flex"}'>
  29. <el-button class="add" type="success" @click="addOrUpdateHandler()">
  30. <span class="icon iconfont icon-xihuan" :style='{"margin":"0 2px","fontSize":"14px","color":"#fff","display":"none","height":"34px"}'></span>
  31. 添加
  32. </el-button>
  33. <el-button class="del" :disabled="dataListSelections.length?false:true" type="danger" @click="deleteHandler()">
  34. <span class="icon iconfont icon-xihuan" :style='{"margin":"0 2px","fontSize":"14px","color":"#fff","display":"none","height":"34px"}'></span>
  35. 删除
  36. </el-button>
  37. <el-button class="btn18" type="success" @click="importHandler()">
  38. <span class="icon iconfont icon-xihuan" :style='{"margin":"0 2px","fontSize":"14px","color":"#fff","display":"none","height":"34px"}'></span>
  39. 导入
  40. </el-button>
  41. <el-button class="btn18" type="success" @click="downloadTemplate()">
  42. <span class="icon iconfont icon-xihuan" :style='{"margin":"0 2px","fontSize":"14px","color":"#fff","display":"none","height":"34px"}'></span>
  43. 下载模板
  44. </el-button>
  45. </el-row>
  46. </el-form>
  47. <div :style='{"border":"0px solid #fff","width":"100%","padding":"0 20px 20px","fontSize":"14px","color":"#000","background":"#fff"}'>
  48. <el-table class="tables"
  49. :stripe='false'
  50. :style='{"padding":"0px 0","borderColor":"#f0f0f0","borderRadius":"0","borderWidth":"0px 0 0 1px","background":"#fff","width":"100%","fontSize":"inherit","borderStyle":"solid"}'
  51. :border='true'
  52. :data="dataList"
  53. v-loading="dataListLoading"
  54. @selection-change="selectionChangeHandler">
  55. <el-table-column :resizable='true' type="selection" align="center" width="50"></el-table-column>
  56. <el-table-column :resizable='true' :sortable='true' label="序号" type="index" width="50" />
  57. <el-table-column :resizable='true' :sortable='true'
  58. prop="recordDate"
  59. label="日期">
  60. <template slot-scope="scope">
  61. {{scope.row.recordDate}}
  62. </template>
  63. </el-table-column>
  64. <el-table-column :resizable='true' :sortable='true'
  65. prop="region"
  66. label="地区">
  67. <template slot-scope="scope">
  68. {{scope.row.region}}
  69. </template>
  70. </el-table-column>
  71. <el-table-column :resizable='true' :sortable='true'
  72. prop="substation"
  73. label="变电站">
  74. <template slot-scope="scope">
  75. {{scope.row.substation}}
  76. </template>
  77. </el-table-column>
  78. <el-table-column :resizable='true' :sortable='true'
  79. prop="voltageLevel"
  80. label="电压等级">
  81. <template slot-scope="scope">
  82. {{scope.row.voltageLevel}}
  83. </template>
  84. </el-table-column>
  85. <el-table-column :resizable='true' :sortable='true'
  86. prop="mainNum"
  87. label="主变台数">
  88. <template slot-scope="scope">
  89. {{scope.row.mainNum}}
  90. </template>
  91. </el-table-column>
  92. <el-table-column :resizable='true' :sortable='true' width="180"
  93. prop="capacity"
  94. label="主变容量(MVA)">
  95. <template slot-scope="scope">
  96. {{scope.row.capacity}}
  97. </template>
  98. </el-table-column>
  99. <el-table-column :resizable='true' :sortable='true' width="180"
  100. prop="peakLoad"
  101. label="最大负荷(MW)">
  102. <template slot-scope="scope">
  103. {{scope.row.peakLoad}}
  104. </template>
  105. </el-table-column>
  106. <el-table-column :resizable='true' :sortable='true'
  107. prop="loadRate"
  108. label="负荷率(%)">
  109. <template slot-scope="scope">
  110. {{scope.row.loadRate}}
  111. </template>
  112. </el-table-column>
  113. <el-table-column width="300" label="操作">
  114. <template slot-scope="scope">
  115. <el-button class="view" type="success" @click="addOrUpdateHandler(scope.row.id,'info')">
  116. <span class="icon iconfont icon-xihuan" :style='{"margin":"0 2px","fontSize":"14px","color":"#fff","display":"none","height":"40px"}'></span>
  117. 查看
  118. </el-button>
  119. <el-button class="edit" type="success" @click="addOrUpdateHandler(scope.row.id)">
  120. <span class="icon iconfont icon-xihuan" :style='{"margin":"0 2px","fontSize":"14px","color":"#fff","display":"none","height":"40px"}'></span>
  121. 修改
  122. </el-button>
  123. <el-button class="del" type="primary" @click="deleteHandler(scope.row.id )">
  124. <span class="icon iconfont icon-xihuan" :style='{"margin":"0 2px","fontSize":"14px","color":"#fff","display":"none","height":"40px"}'></span>
  125. 删除
  126. </el-button>
  127. </template>
  128. </el-table-column>
  129. </el-table>
  130. </div>
  131. <el-pagination
  132. @size-change="sizeChangeHandle"
  133. @current-change="currentChangeHandle"
  134. :current-page="pageIndex"
  135. background
  136. :page-sizes="[10, 50, 100, 200]"
  137. :page-size="pageSize"
  138. :layout="layouts.join()"
  139. :total="totalPage"
  140. prev-text="< "
  141. next-text="> "
  142. :hide-on-single-page="false"
  143. :style='{"padding":"0 20px 20px","margin":"0px auto","whiteSpace":"nowrap","color":"#333","textAlign":"left","background":"#fff","width":"100%","fontSize":"inherit","position":"relative","fontWeight":"500"}'
  144. ></el-pagination>
  145. </template>
  146. <!-- 添加/修改页面 将父组件的search方法传递给子组件-->
  147. <add-or-update v-if="addOrUpdateFlag" :parent="this" ref="addOrUpdate"></add-or-update>
  148. <el-dialog title="导入" :visible.sync="importVisiable" width="50%">
  149. <el-form ref="form" :model="form" label-width="80px">
  150. <el-form-item class="upload" label="文件" prop="excelFile">
  151. <excel-file-upload
  152. tip="点击上传直接导入excel文件"
  153. action="voltageLoad/importExcel"
  154. :limit="1"
  155. :fileUrls="importUrl"
  156. @change="importChange"
  157. ></excel-file-upload>
  158. </el-form-item>
  159. </el-form>
  160. <span slot="footer" class="dialog-footer">
  161. <el-button @click="importHandler()">关 闭</el-button>
  162. </span>
  163. </el-dialog>
  164. <el-dialog title="上传模板" :visible.sync="importVis" width="50%">
  165. <el-form ref="form" :model="importForm" label-width="80px">
  166. <el-form-item class="upload" label="文件" prop="excelFile">
  167. <el-upload class="upload-demo" drag :action="$base.url + 'file/upload?type=rainfalldata_template'"
  168. :show-file-list="false" :on-success="importSuccess">
  169. <i class="el-icon-upload"></i>
  170. <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
  171. </el-upload>
  172. </el-form-item>
  173. </el-form>
  174. <span slot="footer" class="dialog-footer">
  175. <el-button @click="importVis=false">关 闭</el-button>
  176. </span>
  177. </el-dialog>
  178. <el-dialog
  179. :visible.sync="chartVisiable1"
  180. width="800">
  181. <div id="accumulatedrainfallChart1" style="width:100%;height:600px;"></div>
  182. <span slot="footer" class="dialog-footer">
  183. <el-button @click="chartDialog1">返回</el-button>
  184. </span>
  185. </el-dialog>
  186. <el-dialog
  187. :visible.sync="chartVisiable2"
  188. width="800">
  189. <div id="dailyrainfallChart2" style="width:100%;height:600px;"></div>
  190. <span slot="footer" class="dialog-footer">
  191. <el-button @click="chartDialog2">返回</el-button>
  192. </span>
  193. </el-dialog>
  194. <el-dialog
  195. :visible.sync="chartVisiable3"
  196. width="800">
  197. <div id="terraintypeChart3" style="width:100%;height:600px;"></div>
  198. <span slot="footer" class="dialog-footer">
  199. <el-button @click="chartDialog3">返回</el-button>
  200. </span>
  201. </el-dialog>
  202. <el-dialog
  203. :visible.sync="chartVisiable4"
  204. width="800">
  205. <div id="cityChart4" style="width:100%;height:600px;"></div>
  206. <span slot="footer" class="dialog-footer">
  207. <el-button @click="chartDialog4">返回</el-button>
  208. </span>
  209. </el-dialog>
  210. <el-dialog
  211. :visible.sync="chartVisiable5"
  212. width="800">
  213. <div id="temperatureChart5" style="width:100%;height:600px;"></div>
  214. <span slot="footer" class="dialog-footer">
  215. <el-button @click="chartDialog5">返回</el-button>
  216. </span>
  217. </el-dialog>
  218. <el-dialog
  219. :visible.sync="chartVisiable6"
  220. width="800">
  221. <div id="dailyrainfallChart6" style="width:100%;height:600px;"></div>
  222. <span slot="footer" class="dialog-footer">
  223. <el-button @click="chartDialog6">返回</el-button>
  224. </span>
  225. </el-dialog>
  226. </div>
  227. </template>
  228. <script>
  229. import * as echarts from 'echarts'
  230. import chinaJson from "@/components/echarts/china.json";
  231. import axios from 'axios';
  232. import AddOrUpdate from "./add-or-update";
  233. import {
  234. Loading
  235. } from 'element-ui';
  236. export default {
  237. data() {
  238. return {
  239. indexQueryCondition: '',
  240. searchForm: {
  241. key: ""
  242. },
  243. form:{},
  244. regionList: [],
  245. dataList: [],
  246. pageIndex: 1,
  247. pageSize: 10,
  248. totalPage: 0,
  249. dataListLoading: false,
  250. dataListSelections: [],
  251. showFlag: true,
  252. importVisiable: false,
  253. importVis: false,
  254. importForm: {},
  255. importUrl: '',
  256. chartVisiable1: false,
  257. line: {"backgroundColor":"transparent","yAxis":{"axisLabel":{"borderType":"solid","rotate":0,"padding":0,"shadowOffsetX":0,"margin":15,"backgroundColor":"transparent","borderColor":"#000","shadowOffsetY":0,"color":"#333","shadowBlur":0,"show":true,"inside":false,"ellipsis":"...","overflow":"none","borderRadius":0,"borderWidth":0,"width":"","fontSize":12,"lineHeight":24,"shadowColor":"transparent","fontWeight":"normal","height":""},"axisTick":{"show":true,"length":5,"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#333","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"inside":false},"splitLine":{"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#666","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"show":true},"axisLine":{"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#333","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"show":true},"splitArea":{"show":false,"areaStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"color":"rgba(25,25,25,0.3)","opacity":1,"shadowBlur":10,"shadowColor":"rgba(0,0,0,.5)"}}},"xAxis":{"axisLabel":{"borderType":"solid","rotate":0,"padding":0,"shadowOffsetX":0,"margin":4,"backgroundColor":"transparent","borderColor":"#000","shadowOffsetY":0,"color":"#333","shadowBlur":0,"show":true,"inside":false,"ellipsis":"...","overflow":"none","borderRadius":0,"borderWidth":0,"width":"","fontSize":12,"lineHeight":24,"shadowColor":"transparent","fontWeight":"normal","height":""},"axisTick":{"show":true,"length":5,"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#333","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"inside":false},"splitLine":{"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#333","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"show":false},"axisLine":{"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#333","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"show":true},"splitArea":{"show":false,"areaStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"color":"rgba(25,25,25,.3)","opacity":1,"shadowBlur":10,"shadowColor":"rgba(0,0,0,.5)"}}},"color":["#0977fd","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],"legend":{"padding":0,"itemGap":10,"shadowOffsetX":0,"backgroundColor":"transparent","borderColor":"#666","shadowOffsetY":0,"orient":"horizontal","shadowBlur":0,"bottom":"auto","itemHeight":14,"show":true,"icon":"roundRect","itemStyle":{"borderType":"solid","shadowOffsetX":0,"borderColor":"inherit","shadowOffsetY":0,"color":"#333","shadowBlur":0,"borderWidth":0,"opacity":1,"shadowColor":"transparent"},"right":"auto","top":"auto","borderRadius":0,"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"color":"inherit","shadowBlur":0,"width":"auto","type":"inherit","opacity":1,"shadowColor":"transparent"},"left":"right","borderWidth":0,"width":"80%","itemWidth":20,"textStyle":{"textBorderWidth":0,"color":"#333","textShadowColor":"transparent","ellipsis":"...","overflow":"none","fontSize":12,"lineHeight":24,"textShadowOffsetX":0,"textShadowOffsetY":0,"textBorderType":"solid","fontWeight":500,"textBorderColor":"transparent","textShadowBlur":0},"shadowColor":"rgba(0,0,0,.3)","height":"auto"},"series":{"showSymbol":true,"symbol":"emptyCircle","symbolSize":4},"tooltip":{"backgroundColor":"#123","textStyle":{"color":"#fff"}},"title":{"borderType":"solid","padding":0,"shadowOffsetX":0,"backgroundColor":"transparent","borderColor":"#666","shadowOffsetY":0,"shadowBlur":0,"bottom":"auto","show":true,"right":"auto","top":"auto","borderRadius":0,"left":"left","borderWidth":0,"textStyle":{"textBorderWidth":0,"color":"#333","textShadowColor":"transparent","fontSize":14,"lineHeight":24,"textShadowOffsetX":0,"textShadowOffsetY":0,"textBorderType":"solid","fontWeight":600,"textBorderColor":"#666","textShadowBlur":0},"shadowColor":"transparent"}},
  258. bar: {"backgroundColor":"transparent","yAxis":{"axisLabel":{"borderType":"solid","rotate":0,"padding":0,"shadowOffsetX":0,"margin":12,"backgroundColor":"transparent","borderColor":"#666","shadowOffsetY":0,"color":"#333","shadowBlur":0,"show":true,"inside":false,"ellipsis":"...","overflow":"none","borderRadius":0,"borderWidth":0,"width":"","fontSize":12,"lineHeight":24,"shadowColor":"transparent","fontWeight":"normal","height":""},"axisTick":{"show":true,"length":5,"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#333","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"inside":false},"splitLine":{"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#666","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"show":true},"axisLine":{"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#333","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"show":true},"splitArea":{"show":false,"areaStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"color":"rgba(25,25,25,0.3)","opacity":1,"shadowBlur":10,"shadowColor":"rgba(0,0,0,.5)"}}},"xAxis":{"axisLabel":{"borderType":"solid","rotate":0,"padding":0,"shadowOffsetX":0,"margin":4,"backgroundColor":"transparent","borderColor":"#000","shadowOffsetY":0,"color":"#333","shadowBlur":0,"show":true,"inside":false,"ellipsis":"...","overflow":"none","borderRadius":0,"borderWidth":0,"width":"","fontSize":12,"lineHeight":24,"shadowColor":"transparent","fontWeight":"normal","height":""},"axisTick":{"show":true,"length":5,"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#333","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"inside":false},"splitLine":{"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#333","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"show":false},"axisLine":{"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"cap":"butt","color":"#333","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"rgba(0,0,0,.5)"},"show":true},"splitArea":{"show":false,"areaStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"color":"rgba(25,25,25,.3)","opacity":1,"shadowBlur":10,"shadowColor":"rgba(0,0,0,.5)"}}},"color":["#507afc","#93beff","#fac858"],"grid":{"x":"25%","y":"15%","y2":"15%","x2":"5%"},"legend":{"padding":0,"itemGap":10,"shadowOffsetX":0,"backgroundColor":"transparent","borderColor":"#666","shadowOffsetY":0,"orient":"horizontal","shadowBlur":0,"bottom":"auto","itemHeight":14,"show":true,"icon":"roundRect","itemStyle":{"borderType":"solid","shadowOffsetX":0,"borderColor":"inherit","shadowOffsetY":0,"color":"#333","shadowBlur":0,"borderWidth":0,"opacity":1,"shadowColor":"transparent"},"right":"auto","top":"auto","borderRadius":0,"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"color":"inherit","shadowBlur":0,"width":"auto","type":"inherit","opacity":1,"shadowColor":"transparent"},"left":"right","borderWidth":0,"width":"80%","itemWidth":20,"textStyle":{"textBorderWidth":0,"color":"inherit","textShadowColor":"transparent","ellipsis":"...","overflow":"none","fontSize":12,"lineHeight":12,"textShadowOffsetX":0,"textShadowOffsetY":0,"textBorderType":"solid","fontWeight":500,"textBorderColor":"transparent","textShadowBlur":0},"shadowColor":"rgba(0,0,0,.3)","height":"auto"},"series":{"barWidth":"auto","itemStyle":{"borderType":"solid","shadowOffsetX":0,"borderColor":"#666","shadowOffsetY":0,"color":"","shadowBlur":0,"borderWidth":0,"opacity":1,"shadowColor":"#000"},"colorBy":"data","barCategoryGap":"20%"},"tooltip":{"backgroundColor":"#123","textStyle":{"color":"#fff"}},"title":{"borderType":"solid","padding":0,"shadowOffsetX":0,"backgroundColor":"transparent","borderColor":"#666","shadowOffsetY":0,"shadowBlur":0,"bottom":"auto","show":true,"right":"auto","top":"auto","borderRadius":0,"left":"left","borderWidth":0,"textStyle":{"textBorderWidth":0,"color":"#333","textShadowColor":"transparent","fontSize":14,"lineHeight":24,"textShadowOffsetX":0,"textShadowOffsetY":0,"textBorderType":"solid","fontWeight":600,"textBorderColor":"#666","textShadowBlur":0},"shadowColor":"transparent"},"base":{"animate":false,"interval":2000}},
  259. pie: {"tooltip":{"backgroundColor":"#123","textStyle":{"color":"#fff"}},"backgroundColor":"transparent","color":["#0977fd","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],"title":{"borderType":"solid","padding":[5,0,0,0],"shadowOffsetX":0,"backgroundColor":"transparent","borderColor":"#666","shadowOffsetY":0,"shadowBlur":0,"bottom":"auto","show":true,"right":"auto","top":"auto","borderRadius":0,"left":"left","borderWidth":0,"textStyle":{"textBorderWidth":0,"color":"#333","textShadowColor":"transparent","fontSize":14,"lineHeight":14,"textShadowOffsetX":0,"textShadowOffsetY":0,"textBorderType":"solid","fontWeight":600,"textBorderColor":"#666","textShadowBlur":0},"shadowColor":"transparent"},"legend":{"padding":[5,0,0,0],"itemGap":10,"shadowOffsetX":0,"backgroundColor":"transparent","borderColor":"#666","shadowOffsetY":0,"orient":"horizontal","shadowBlur":0,"bottom":"auto","itemHeight":2,"show":true,"icon":"roundRect","itemStyle":{"borderType":"solid","shadowOffsetX":0,"borderColor":"inherit","shadowOffsetY":0,"color":"inherit","shadowBlur":0,"borderWidth":0,"opacity":1,"shadowColor":"transparent"},"right":0,"top":"auto","borderRadius":0,"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"color":"inherit","shadowBlur":0,"width":"auto","type":"inherit","opacity":1,"shadowColor":"transparent"},"left":"right","borderWidth":0,"width":"90%","itemWidth":2,"textStyle":{"textBorderWidth":0,"color":"inherit","textShadowColor":"transparent","ellipsis":"...","overflow":"none","fontSize":12,"lineHeight":12,"textShadowOffsetX":0,"textShadowOffsetY":0,"textBorderType":"solid","fontWeight":500,"textBorderColor":"transparent","textShadowBlur":0},"shadowColor":"rgba(0,0,0,.3)","height":"auto"},"series":{"itemStyle":{"borderType":"solid","shadowOffsetX":0,"borderColor":"#666","shadowOffsetY":0,"color":"","shadowBlur":0,"borderWidth":0,"opacity":1,"shadowColor":"#000"},"label":{"borderType":"solid","rotate":0,"padding":0,"textBorderWidth":0,"backgroundColor":"transparent","borderColor":"#666","color":"inherit","show":true,"textShadowColor":"transparent","distanceToLabelLine":5,"ellipsis":"...","overflow":"none","borderRadius":0,"borderWidth":0,"fontSize":12,"lineHeight":18,"textShadowOffsetX":0,"position":"outside","textShadowOffsetY":0,"textBorderType":"solid","textBorderColor":"#666","textShadowBlur":0},"labelLine":{"show":true,"length":10,"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"color":"#666","shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"#000"},"length2":14,"smooth":false}}},
  260. funnel: {"tooltip":{"backgroundColor":"#123","textStyle":{"color":"#fff"}},"backgroundColor":"transparent","color":["#0977fd","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],"title":{"borderType":"solid","padding":2,"shadowOffsetX":0,"backgroundColor":"transparent","borderColor":"#ccc","shadowOffsetY":0,"shadowBlur":0,"bottom":"auto","show":true,"right":"auto","top":"auto","borderRadius":0,"left":"center","borderWidth":0,"textStyle":{"textBorderWidth":0,"color":"#666","textShadowColor":"transparent","fontSize":14,"lineHeight":12,"textShadowOffsetX":0,"textShadowOffsetY":0,"textBorderType":"solid","fontWeight":500,"textBorderColor":"#ccc","textShadowBlur":0},"shadowColor":"transparent"},"legend":{"padding":5,"itemGap":10,"shadowOffsetX":0,"backgroundColor":"transparent","borderColor":"#ccc","shadowOffsetY":0,"orient":"vertical","shadowBlur":0,"bottom":"auto","itemHeight":2,"show":true,"icon":"roundRect","itemStyle":{"borderType":"solid","shadowOffsetX":0,"borderColor":"inherit","shadowOffsetY":0,"color":"inherit","shadowBlur":0,"borderWidth":0,"opacity":1,"shadowColor":"transparent"},"top":"auto","borderRadius":0,"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"color":"inherit","shadowBlur":0,"width":"auto","type":"inherit","opacity":1,"shadowColor":"transparent"},"left":"left","borderWidth":0,"width":"auto","itemWidth":2,"textStyle":{"textBorderWidth":0,"color":"inherit","textShadowColor":"transparent","ellipsis":"...","overflow":"none","fontSize":12,"lineHeight":20,"textShadowOffsetX":0,"textShadowOffsetY":0,"textBorderType":"solid","fontWeight":500,"textBorderColor":"transparent","textShadowBlur":0},"shadowColor":"rgba(0,0,0,.3)","height":"auto"},"series":{"itemStyle":{"borderType":"solid","shadowOffsetX":0,"borderColor":"#000","shadowOffsetY":0,"color":"","shadowBlur":0,"borderWidth":0,"opacity":1,"shadowColor":"#000"},"label":{"borderType":"solid","rotate":0,"padding":0,"textBorderWidth":0,"backgroundColor":"transparent","borderColor":"#fff","color":"","show":true,"textShadowColor":"transparent","distanceToLabelLine":5,"ellipsis":"...","overflow":"none","borderRadius":0,"borderWidth":0,"fontSize":12,"lineHeight":18,"textShadowOffsetX":0,"position":"outside","textShadowOffsetY":0,"textBorderType":"solid","textBorderColor":"#fff","textShadowBlur":0},"labelLine":{"show":true,"length":10,"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"shadowBlur":0,"width":1,"type":"solid","opacity":1,"shadowColor":"#000"},"length2":14,"smooth":false}}},
  261. boardBase: {"funnelNum":8,"lineNum":12,"gaugeNum":8,"barNum":12,"pieNum":8},
  262. gauge: {"tooltip":{"backgroundColor":"#123","textStyle":{"color":"#fff"}},"backgroundColor":"transparent","color":["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],"title":{"top":"top","left":"left","textStyle":{"fontSize":14,"lineHeight":24,"color":"#333","fontWeight":600}},"series":{"pointer":{"offsetCenter":[0,"10%"],"icon":"path://M2.9,0.7L2.9,0.7c1.4,0,2.6,1.2,2.6,2.6v115c0,1.4-1.2,2.6-2.6,2.6l0,0c-1.4,0-2.6-1.2-2.6-2.6V3.3C0.3,1.9,1.4,0.7,2.9,0.7z","width":8,"length":"80%"},"axisLine":{"lineStyle":{"shadowOffsetX":0,"shadowOffsetY":0,"opacity":0.5,"shadowBlur":1,"shadowColor":"#000"},"roundCap":true},"anchor":{"show":true,"itemStyle":{"color":"inherit"},"size":18,"showAbove":true},"emphasis":{"disabled":false},"progress":{"show":true,"roundCap":true,"overlap":true},"splitNumber":25,"detail":{"formatter":"{value}","backgroundColor":"inherit","color":"#fff","borderRadius":3,"width":20,"fontSize":12,"height":10},"title":{"fontSize":14},"animation":true}},
  263. chartVisiable2: false,
  264. chartVisiable3: false,
  265. chartVisiable4: false,
  266. chartVisiable5: false,
  267. chartVisiable6: false,
  268. addOrUpdateFlag:false,
  269. layouts: ["prev","pager","next","sizes"],
  270. //导出excel
  271. json_fields: {
  272. "日期": "date", //常规字段
  273. "城市": "city", //常规字段
  274. "温度": "temperature", //常规字段
  275. "气压": "airpressure", //常规字段
  276. "湿度": "humidity", //常规字段
  277. "风速": "windspeed", //常规字段
  278. "风向": "winddirection", //常规字段
  279. "露点温度": "dewpointtemperature", //常规字段
  280. "云量": "cloudcover", //常规字段
  281. "当日降雨量": "dailyrainfall", //常规字段
  282. "累计降雨量": "accumulatedrainfall", //常规字段
  283. "降雨持续时间": "rainfallduration", //常规字段
  284. "降雨强度": "rainfallintensity", //常规字段
  285. "纬度": "latitude", //常规字段
  286. "经度": "longitude", //常规字段
  287. "海拔高度": "altitude", //常规字段
  288. "地形类型": "terraintype", //常规字段
  289. },
  290. json_meta: [
  291. [
  292. {
  293. " key ": " charset ",
  294. " value ": " utf- 8 "
  295. }
  296. ]
  297. ],
  298. };
  299. },
  300. created() {
  301. this.init();
  302. this.getDataList();
  303. this.contentStyleChange();
  304. this.getRegionList();
  305. },
  306. mounted() {
  307. },
  308. filters: {
  309. htmlfilter: function (val) {
  310. return val.replace(/<[^>]*>/g).replace(/undefined/g,'');
  311. }
  312. },
  313. computed: {
  314. tablename(){
  315. return this.$storage.get('sessionTable')
  316. },
  317. },
  318. components: {
  319. AddOrUpdate,
  320. },
  321. methods: {
  322. // 获取公司列表
  323. async getRegionList() {
  324. this.regionList = [];
  325. const { data } = await this.$http({
  326. url: `/company/lists`,
  327. method: 'get',
  328. });
  329. if (data && data.code === 0) {
  330. this.regionList = data.data.map(item => ({
  331. label: item.compName,
  332. value: String(item.id),
  333. }));
  334. }
  335. },
  336. contentStyleChange() {
  337. this.contentPageStyleChange()
  338. },
  339. // 分页
  340. contentPageStyleChange(){
  341. let arr = []
  342. // if(this.contents.pageTotal) arr.push('total')
  343. // if(this.contents.pageSizes) arr.push('sizes')
  344. // if(this.contents.pagePrevNext){
  345. // arr.push('prev')
  346. // if(this.contents.pagePager) arr.push('pager')
  347. // arr.push('next')
  348. // }
  349. // if(this.contents.pageJumper) arr.push('jumper')
  350. // this.layouts = arr.join()
  351. // this.contents.pageEachNum = 10
  352. },
  353. downloadTemplate() {
  354. const link = document.createElement('a');
  355. link.href = './voltageLoad_template.xlsx';
  356. link.download = 'voltageLoad_template.xlsx';
  357. document.body.appendChild(link);
  358. link.click();
  359. document.body.removeChild(link);
  360. },
  361. // 统计接口
  362. chartDialog5() {
  363. this.chartVisiable5 = !this.chartVisiable5;
  364. this.$nextTick(()=>{
  365. var temperatureChart5 = echarts.init(document.getElementById("temperatureChart5"),'carp');
  366. this.$http({
  367. url: "voltageLoad/sectionStat/temperature",
  368. method: "get",
  369. }).then(({ data }) => {
  370. if (data && data.code === 0) {
  371. let res = data.data;
  372. let xAxis = [];
  373. let yAxis = [];
  374. let pArray = []
  375. for(let i=0;i<res.length;i++){
  376. if(this.boardBase&&i==this.boardBase.barNum){
  377. break;
  378. }
  379. xAxis.push(res[i].temperature);
  380. yAxis.push(parseFloat((res[i].total)));
  381. pArray.push({
  382. value: parseFloat((res[i].total)),
  383. name: res[i].temperature
  384. })
  385. }
  386. var option = {};
  387. let titleObj = this.bar.title
  388. titleObj.text = '温度统计'
  389. const legendObj = this.bar.legend
  390. let tooltipObj = {trigger: 'item',formatter: '{b} : {c}'}
  391. tooltipObj = Object.assign(tooltipObj , this.bar.tooltip?this.bar.tooltip:{})
  392. let xAxisObj = this.bar.xAxis
  393. xAxisObj.type = 'category'
  394. xAxisObj.data = xAxis
  395. let yAxisObj = this.bar.yAxis
  396. yAxisObj.type = 'value'
  397. let seriesObj = {
  398. data: yAxis,
  399. type: 'bar',
  400. }
  401. seriesObj = Object.assign(seriesObj , this.bar.series)
  402. const gridObj = this.bar.grid
  403. option = {
  404. backgroundColor: this.bar.backgroundColor,
  405. color: this.bar.color,
  406. title: titleObj,
  407. legend: legendObj,
  408. tooltip: tooltipObj,
  409. xAxis: xAxisObj,
  410. yAxis: yAxisObj,
  411. series: [seriesObj],
  412. grid: gridObj
  413. };
  414. // 使用刚指定的配置项和数据显示图表。
  415. temperatureChart5.setOption(option);
  416. //根据窗口的大小变动图表
  417. window.onresize = function() {
  418. temperatureChart5.resize();
  419. };
  420. }else{
  421. this.$message({
  422. message: data.msg,
  423. type: "warning",
  424. duration: 1500,
  425. })
  426. }
  427. });
  428. })
  429. },
  430. init () {
  431. },
  432. search() {
  433. this.pageIndex = 1;
  434. this.getDataList();
  435. },
  436. // 获取数据列表
  437. getDataList() {
  438. this.dataListLoading = true;
  439. let params = {
  440. page: this.pageIndex,
  441. limit: this.pageSize,
  442. sort: 'id',
  443. order: 'desc',
  444. }
  445. //alert(this.searchForm.substation);
  446. if(this.searchForm.substation!='' && this.searchForm.substation!=undefined){
  447. params['substation'] ='%' + this.searchForm.substation + '%'
  448. }
  449. if(this.searchForm.record_date_start!='' && this.searchForm.record_date_start!=undefined ){
  450. params['record_date_start'] = this.searchForm.record_date_start
  451. }
  452. if(this.searchForm.record_date_end!='' && this.searchForm.record_date_end!=undefined){
  453. params['record_date_end'] = this.searchForm.record_date_end
  454. }
  455. if(this.searchForm.region!='' && this.searchForm.region!=undefined){
  456. params['region'] = '%' + this.searchForm.region + '%'
  457. }
  458. params['sort'] = 'record_date';
  459. params['order'] = 'desc';
  460. let user = JSON.parse(this.$storage.getObj('userForm'))
  461. this.$http({
  462. url: "voltageLoad/page",
  463. method: "get",
  464. params: params
  465. }).then(({ data }) => {
  466. if (data && data.code === 0) {
  467. this.dataList = data.data.list;
  468. this.totalPage = data.data.total;
  469. } else {
  470. this.dataList = [];
  471. this.totalPage = 0;
  472. }
  473. this.dataListLoading = false;
  474. });
  475. },
  476. // 每页数
  477. sizeChangeHandle(val) {
  478. this.pageSize = val;
  479. this.pageIndex = 1;
  480. this.getDataList();
  481. },
  482. // 当前页
  483. currentChangeHandle(val) {
  484. this.pageIndex = val;
  485. this.getDataList();
  486. },
  487. // 多选
  488. selectionChangeHandler(val) {
  489. this.dataListSelections = val;
  490. },
  491. // 添加/修改
  492. addOrUpdateHandler(id,type) {
  493. this.showFlag = false;
  494. this.addOrUpdateFlag = true;
  495. this.crossAddOrUpdateFlag = false;
  496. if(type!='info'&&type!='msg'){
  497. type = 'else';
  498. }
  499. this.$nextTick(() => {
  500. this.$refs.addOrUpdate.init(id,type);
  501. });
  502. },
  503. importChange(){
  504. this.importHandler()
  505. this.getDataList()
  506. },
  507. importClcik() {
  508. this.importVis = true
  509. },
  510. importSuccess(e) {
  511. if(e.code==0){
  512. this.$message.success('上传成功');
  513. this.importVis = false
  514. }
  515. },
  516. importHandler() {
  517. this.importUrl = ''
  518. this.importVisiable = !this.importVisiable;
  519. },
  520. // 下载
  521. download(file){
  522. let arr = file.replace(new RegExp('upload/', "g"), "")
  523. axios.get(this.$base.url + 'file/download?fileName=' + arr, {
  524. headers: {
  525. token: this.$storage.get('Token')
  526. },
  527. responseType: "blob"
  528. }).then(({
  529. data
  530. }) => {
  531. const binaryData = [];
  532. binaryData.push(data);
  533. const objectUrl = window.URL.createObjectURL(new Blob(binaryData, {
  534. type: 'application/vnd.ms-excel;chartset=UTF-8'
  535. }))
  536. const a = document.createElement('a')
  537. a.href = objectUrl
  538. a.download = arr
  539. // a.click()
  540. // 下面这个写法兼容火狐
  541. a.dispatchEvent(new MouseEvent('click', {
  542. bubbles: true,
  543. cancelable: true,
  544. view: window
  545. }))
  546. window.URL.revokeObjectURL(data)
  547. },err=>{
  548. axios.get((location.href.split(this.$base.name).length>1 ? location.href.split(this.$base.name)[0] :'') + this.$base.name + '/file/download?fileName=' + arr, {
  549. headers: {
  550. token: this.$storage.get('Token')
  551. },
  552. responseType: "blob"
  553. }).then(({
  554. data
  555. }) => {
  556. const binaryData = [];
  557. binaryData.push(data);
  558. const objectUrl = window.URL.createObjectURL(new Blob(binaryData, {
  559. type: 'application/vnd.ms-excel;chartset=UTF-8'
  560. }))
  561. const a = document.createElement('a')
  562. a.href = objectUrl
  563. a.download = arr
  564. // a.click()
  565. // 下面这个写法兼容火狐
  566. a.dispatchEvent(new MouseEvent('click', {
  567. bubbles: true,
  568. cancelable: true,
  569. view: window
  570. }))
  571. window.URL.revokeObjectURL(data)
  572. })
  573. })
  574. },
  575. // 删除
  576. async deleteHandler(id ) {
  577. var ids = id? [Number(id)]: this.dataListSelections.map(item => {
  578. return Number(item.id);
  579. });
  580. await this.$confirm(`确定进行[${id ? "删除" : "批量删除"}]操作?`, "提示", {
  581. confirmButtonText: "确定",
  582. cancelButtonText: "取消",
  583. type: "warning"
  584. }).then(async () => {
  585. await this.$http({
  586. url: "voltageLoad/delete",
  587. method: "post",
  588. data: ids
  589. }).then(async ({ data }) => {
  590. if (data && data.code === 0) {
  591. this.$message({
  592. message: "操作成功",
  593. type: "success",
  594. duration: 1500,
  595. onClose: () => {
  596. this.search();
  597. }
  598. });
  599. } else {
  600. this.$message.error(data.msg);
  601. }
  602. });
  603. });
  604. },
  605. }
  606. };
  607. </script>
  608. <style lang="scss" scoped>
  609. //导出excel
  610. .export-excel-wrapper{
  611. display: inline-block;
  612. }
  613. .center-form-pv {
  614. .el-date-editor.el-input {
  615. width: auto;
  616. }
  617. }
  618. .el-input {
  619. width: auto;
  620. }
  621. // form
  622. .center-form-pv .el-input {
  623. width: auto;
  624. }
  625. .center-form-pv .el-input ::v-deep .el-input__inner {
  626. border: 1px solid #ddd;
  627. border-radius: 0px;
  628. padding: 0 12px;
  629. color: #666;
  630. width: 150px;
  631. font-size: 15px;
  632. height: 40px;
  633. }
  634. .center-form-pv .el-select {
  635. width: auto;
  636. }
  637. .center-form-pv .el-select ::v-deep .el-input__inner {
  638. border: 1px solid #ddd;
  639. border-radius: 0px;
  640. padding: 0 10px;
  641. color: #666;
  642. width: 150px;
  643. font-size: 15px;
  644. height: 40px;
  645. }
  646. .center-form-pv .el-date-editor {
  647. width: auto;
  648. }
  649. .center-form-pv .el-date-editor ::v-deep .el-input__inner {
  650. border: 1px solid #ddd;
  651. border-radius: 0px;
  652. padding: 0 10px 0 30px;
  653. color: #666;
  654. width: 150px;
  655. font-size: 15px;
  656. height: 40px;
  657. }
  658. .center-form-pv .search {
  659. border: 0;
  660. cursor: pointer;
  661. border-radius: 0px;
  662. padding: 0 20px;
  663. color: #fff;
  664. background: #0977fd;
  665. width: auto;
  666. font-size: 16px;
  667. min-width: 90px;
  668. height: 40px;
  669. }
  670. .center-form-pv .search:hover {
  671. opacity: 0.8;
  672. }
  673. .center-form-pv .actions .add {
  674. border: 1px solid #0977fd60;
  675. cursor: pointer;
  676. border-radius: 0px;
  677. padding: 0 10px;
  678. margin: 4px;
  679. color: #0977fd;
  680. background: #fff;
  681. width: auto;
  682. font-size: inherit;
  683. height: 34px;
  684. }
  685. .center-form-pv .actions .add:hover {
  686. opacity: 0.8;
  687. }
  688. .center-form-pv .actions .del {
  689. border: 1px solid #cc000060;
  690. cursor: pointer;
  691. border-radius: 0px;
  692. padding: 0 10px;
  693. margin: 4px;
  694. color: #c00;
  695. background: #fff;
  696. width: auto;
  697. font-size: inherit;
  698. height: 34px;
  699. }
  700. .center-form-pv .actions .del:hover {
  701. opacity: 0.8;
  702. }
  703. .center-form-pv .actions .statis {
  704. border: 1px solid #e0970460;
  705. cursor: pointer;
  706. border-radius: 0px;
  707. padding: 0 20px;
  708. margin: 4px;
  709. color: #e09704;
  710. background: #fff;
  711. width: auto;
  712. font-size: inherit;
  713. height: 34px;
  714. }
  715. .center-form-pv .actions .statis:hover {
  716. opacity: 0.8;
  717. }
  718. .center-form-pv .actions .btn18 {
  719. border: 1px solid #ed9a0d60;
  720. cursor: pointer;
  721. border-radius: 0px;
  722. padding: 0 10px;
  723. margin: 4px;
  724. color: #ed9a0d;
  725. background: #fff;
  726. width: auto;
  727. font-size: inherit;
  728. height: 34px;
  729. }
  730. .center-form-pv .actions .btn18:hover {
  731. opacity: 0.8;
  732. }
  733. // table
  734. .el-table ::v-deep .el-table__header-wrapper thead {
  735. color: #999;
  736. background: #fff;
  737. font-weight: 500;
  738. width: 100%;
  739. }
  740. .el-table ::v-deep .el-table__header-wrapper thead tr {
  741. background: #cae2ff;
  742. }
  743. .el-table ::v-deep .el-table__header-wrapper thead tr th {
  744. padding: 8px 0;
  745. background: none;
  746. border-color: #f6f6f6;
  747. border-width: 0 0px 0px 0;
  748. border-style: solid;
  749. text-align: left;
  750. }
  751. .el-table ::v-deep .el-table__header-wrapper thead tr th .cell {
  752. padding: 0 0 0 5px;
  753. word-wrap: normal;
  754. color: #0977fd;
  755. white-space: normal;
  756. font-weight: bold;
  757. display: flex;
  758. vertical-align: middle;
  759. font-size: 14px;
  760. line-height: 24px;
  761. text-overflow: ellipsis;
  762. word-break: break-all;
  763. width: 100%;
  764. align-items: center;
  765. position: relative;
  766. min-width: 110px;
  767. }
  768. .el-table ::v-deep .el-table__body-wrapper {
  769. position: relative;
  770. }
  771. .el-table ::v-deep .el-table__body-wrapper tbody {
  772. width: 100%;
  773. }
  774. .el-table ::v-deep .el-table__body-wrapper tbody tr {
  775. background: #fff;
  776. }
  777. .el-table ::v-deep .el-table__body-wrapper tbody tr td {
  778. padding: 4px 0;
  779. color: #333;
  780. background: #fff;
  781. font-size: inherit;
  782. border-color: #0977fd30;
  783. border-width: 0 0px 1px 0;
  784. border-style: solid;
  785. text-align: left;
  786. }
  787. .el-table ::v-deep .el-table__body-wrapper tbody tr:hover td {
  788. padding: 4px 0;
  789. color: #333;
  790. background: #f4f9ff;
  791. border-color: #0977fd30;
  792. border-width: 0 0px 1px 0;
  793. border-style: solid;
  794. text-align: left;
  795. }
  796. .el-table ::v-deep .el-table__body-wrapper tbody tr td {
  797. padding: 4px 0;
  798. color: #333;
  799. background: #fff;
  800. font-size: inherit;
  801. border-color: #0977fd30;
  802. border-width: 0 0px 1px 0;
  803. border-style: solid;
  804. text-align: left;
  805. }
  806. .el-table ::v-deep .el-table__body-wrapper tbody tr td .cell {
  807. padding: 0 0 0 5px;
  808. overflow: hidden;
  809. word-break: break-all;
  810. white-space: normal;
  811. font-size: inherit;
  812. line-height: 24px;
  813. text-overflow: ellipsis;
  814. }
  815. .el-table ::v-deep .el-table__body-wrapper tbody tr td .view {
  816. border: 1px solid #0977fd60;
  817. cursor: pointer;
  818. border-radius: 0px;
  819. padding: 0 10px;
  820. margin: 0 5px 5px 0;
  821. color: #0977fd;
  822. background: #fff;
  823. width: auto;
  824. font-size: 14px;
  825. height: 32px;
  826. }
  827. .el-table ::v-deep .el-table__body-wrapper tbody tr td .view:hover {
  828. opacity: 0.8;
  829. }
  830. .el-table ::v-deep .el-table__body-wrapper tbody tr td .add {
  831. }
  832. .el-table ::v-deep .el-table__body-wrapper tbody tr td .add:hover {
  833. }
  834. .el-table ::v-deep .el-table__body-wrapper tbody tr td .edit {
  835. border: 1px solid #21c79260;
  836. cursor: pointer;
  837. border-radius: 0px;
  838. padding: 0 10px;
  839. margin: 0 5px 5px 0;
  840. color: #21c792;
  841. background: #fff;
  842. width: auto;
  843. font-size: 14px;
  844. height: 32px;
  845. }
  846. .el-table ::v-deep .el-table__body-wrapper tbody tr td .edit:hover {
  847. opacity: 0.8;
  848. }
  849. .el-table ::v-deep .el-table__body-wrapper tbody tr td .del {
  850. border: 1px solid #cc000060;
  851. cursor: pointer;
  852. border-radius: 0px;
  853. padding: 0 10px;
  854. margin: 0 5px 5px 0;
  855. color: #c00;
  856. background: #fff;
  857. width: auto;
  858. font-size: 14px;
  859. height: 32px;
  860. }
  861. .el-table ::v-deep .el-table__body-wrapper tbody tr td .del:hover {
  862. opacity: 0.8;
  863. }
  864. .el-table ::v-deep .el-table__body-wrapper tbody tr td .btn8 {
  865. border: 1px solid #ed9a0d60;
  866. cursor: pointer;
  867. border-radius: 0px;
  868. padding: 0 10px;
  869. margin: 0 5px 5px 0;
  870. color: #ed9a0d;
  871. background: #fff;
  872. width: auto;
  873. font-size: 14px;
  874. height: 32px;
  875. }
  876. .el-table ::v-deep .el-table__body-wrapper tbody tr td .btn8:hover {
  877. opacity: 0.8;
  878. }
  879. // pagination
  880. .main-content .el-pagination ::v-deep .el-pagination__total {
  881. margin: 0 10px 0 0;
  882. color: #666;
  883. font-weight: 400;
  884. display: inline-block;
  885. vertical-align: top;
  886. font-size: inherit;
  887. line-height: 28px;
  888. height: 28px;
  889. }
  890. .main-content .el-pagination ::v-deep .btn-prev {
  891. border: none;
  892. border-radius: 100px;
  893. padding: 0;
  894. margin: 0 5px;
  895. color: #fff;
  896. background: #000;
  897. display: inline-block;
  898. vertical-align: top;
  899. width: 28px;
  900. font-size: 16px;
  901. line-height: auto;
  902. height: 28px;
  903. }
  904. .main-content .el-pagination ::v-deep .btn-next {
  905. border: none;
  906. border-radius: 100%;
  907. padding: 0;
  908. margin: 0 5px;
  909. color: #fff;
  910. background: #000;
  911. display: inline-block;
  912. vertical-align: top;
  913. width: 28px;
  914. font-size: 16px;
  915. line-height: auto;
  916. height: 28px;
  917. }
  918. .main-content .el-pagination ::v-deep .btn-prev:disabled {
  919. border: none;
  920. cursor: not-allowed;
  921. padding: 0;
  922. margin: 0 5px;
  923. color: #666;
  924. display: inline-block;
  925. vertical-align: top;
  926. font-size: 16px;
  927. line-height: auto;
  928. border-radius: 100px;
  929. background: #ccc;
  930. width: 28px;
  931. height: 28px;
  932. }
  933. .main-content .el-pagination ::v-deep .btn-next:disabled {
  934. border: none;
  935. cursor: not-allowed;
  936. padding: 0;
  937. margin: 0 5px;
  938. color: #666;
  939. display: inline-block;
  940. vertical-align: top;
  941. font-size: 16px;
  942. line-height: auto;
  943. border-radius: 100px;
  944. background: #ccc;
  945. width: 28px;
  946. height: 28px;
  947. }
  948. .main-content .el-pagination ::v-deep .el-pager {
  949. padding: 0;
  950. margin: 0;
  951. display: inline-block;
  952. vertical-align: top;
  953. }
  954. .main-content .el-pagination ::v-deep .el-pager .number {
  955. cursor: pointer;
  956. border-radius: 100%;
  957. padding: 0 10px;
  958. margin: 0 2px;
  959. color: #fff;
  960. background: #b9b9b9;
  961. display: inline-block;
  962. vertical-align: top;
  963. font-size: 16px;
  964. line-height: 28px;
  965. text-align: center;
  966. height: 28px;
  967. }
  968. .main-content .el-pagination ::v-deep .el-pager .number:hover {
  969. cursor: pointer;
  970. border-radius: 100%;
  971. padding: 0 10px;
  972. margin: 0 2px;
  973. color: #fff;
  974. background: #0977fd;
  975. display: inline-block;
  976. vertical-align: top;
  977. font-size: 16px;
  978. line-height: 28px;
  979. text-align: center;
  980. height: 28px;
  981. }
  982. .main-content .el-pagination ::v-deep .el-pager .number.active {
  983. cursor: default;
  984. border-radius: 100%;
  985. padding: 0 10px;
  986. margin: 0 2px;
  987. color: #fff;
  988. background: #0977fd;
  989. display: inline-block;
  990. vertical-align: top;
  991. font-size: 16px;
  992. line-height: 28px;
  993. text-align: center;
  994. height: 28px;
  995. }
  996. .main-content .el-pagination ::v-deep .el-pagination__sizes {
  997. display: inline-block;
  998. vertical-align: top;
  999. font-size: 15px;
  1000. line-height: 28px;
  1001. height: 28px;
  1002. }
  1003. .main-content .el-pagination ::v-deep .el-pagination__sizes .el-input {
  1004. margin: 0 5px;
  1005. width: 100px;
  1006. position: relative;
  1007. }
  1008. .main-content .el-pagination ::v-deep .el-pagination__sizes .el-input .el-input__inner {
  1009. border: 1px solid #DCDFE6;
  1010. cursor: pointer;
  1011. padding: 0 25px 0 8px;
  1012. color: #606266;
  1013. display: inline-block;
  1014. font-size: 15px;
  1015. line-height: 28px;
  1016. border-radius: 10px;
  1017. outline: 0;
  1018. background: #FFF;
  1019. width: 100%;
  1020. text-align: center;
  1021. height: 28px;
  1022. }
  1023. .main-content .el-pagination ::v-deep .el-pagination__sizes .el-input span.el-input__suffix {
  1024. top: 0;
  1025. position: absolute;
  1026. right: 0;
  1027. height: 100%;
  1028. }
  1029. .main-content .el-pagination ::v-deep .el-pagination__sizes .el-input .el-input__suffix .el-select__caret {
  1030. cursor: pointer;
  1031. color: #C0C4CC;
  1032. width: 25px;
  1033. font-size: 14px;
  1034. line-height: 28px;
  1035. text-align: center;
  1036. }
  1037. .main-content .el-pagination ::v-deep .el-pagination__jump {
  1038. margin: 0 0 0 24px;
  1039. color: #606266;
  1040. display: inline-block;
  1041. vertical-align: top;
  1042. font-size: 15px;
  1043. line-height: 28px;
  1044. height: 28px;
  1045. }
  1046. .main-content .el-pagination ::v-deep .el-pagination__jump .el-input {
  1047. border-radius: 3px;
  1048. padding: 0 2px;
  1049. margin: 0 2px;
  1050. display: inline-block;
  1051. width: 50px;
  1052. font-size: 15px;
  1053. line-height: 18px;
  1054. position: relative;
  1055. text-align: center;
  1056. height: 28px;
  1057. }
  1058. .main-content .el-pagination ::v-deep .el-pagination__jump .el-input .el-input__inner {
  1059. border: 1px solid #DCDFE6;
  1060. cursor: pointer;
  1061. padding: 0 3px;
  1062. color: #606266;
  1063. display: inline-block;
  1064. font-size: 15px;
  1065. line-height: 28px;
  1066. border-radius: 3px;
  1067. outline: 0;
  1068. background: #FFF;
  1069. width: 100%;
  1070. text-align: center;
  1071. height: 28px;
  1072. }
  1073. // list one
  1074. .one .list1-view {
  1075. border: 0;
  1076. cursor: pointer;
  1077. border-radius: 4px;
  1078. padding: 0 15px;
  1079. margin: 0 5px 5px 0;
  1080. outline: none;
  1081. color: #fff;
  1082. background: #157ed2;
  1083. width: auto;
  1084. font-size: 14px;
  1085. height: 32px;
  1086. }
  1087. .one .list1-view:hover {
  1088. opacity: 0.8;
  1089. }
  1090. .one .list1-edit {
  1091. border: 0;
  1092. cursor: pointer;
  1093. border-radius: 4px;
  1094. padding: 0 15px;
  1095. margin: 0 5px 5px 0;
  1096. outline: none;
  1097. color: #fff;
  1098. background: #409eff;
  1099. width: auto;
  1100. font-size: 14px;
  1101. height: 32px;
  1102. }
  1103. .one .list1-edit:hover {
  1104. opacity: 0.8;
  1105. }
  1106. .one .list1-del {
  1107. border: 0;
  1108. cursor: pointer;
  1109. border-radius: 4px;
  1110. padding: 0 15px;
  1111. margin: 0 5px 5px 0;
  1112. outline: none;
  1113. color: #fff;
  1114. background: rgba(255, 0, 0, 1);
  1115. width: auto;
  1116. font-size: 14px;
  1117. height: 32px;
  1118. }
  1119. .one .list1-del:hover {
  1120. opacity: 0.8;
  1121. }
  1122. .one .list1-btn8 {
  1123. border: 0;
  1124. cursor: pointer;
  1125. border-radius: 4px;
  1126. padding: 0 24px;
  1127. margin: 0 5px 5px 0;
  1128. outline: none;
  1129. color: #fff;
  1130. background: rgba(255, 128, 0, 1);
  1131. width: auto;
  1132. font-size: 14px;
  1133. height: 32px;
  1134. }
  1135. .one .list1-btn8:hover {
  1136. opacity: 0.8;
  1137. }
  1138. .main-content .el-table .el-switch {
  1139. display: inline-flex;
  1140. vertical-align: middle;
  1141. line-height: 30px;
  1142. position: relative;
  1143. align-items: center;
  1144. height: 30px;
  1145. }
  1146. .main-content .el-table .el-switch ::v-deep .el-switch__label--left {
  1147. cursor: pointer;
  1148. margin: 0 10px 0 0;
  1149. color: #333;
  1150. font-weight: 500;
  1151. display: inline-block;
  1152. vertical-align: middle;
  1153. font-size: 16px;
  1154. transition: .2s;
  1155. height: 30px;
  1156. }
  1157. .main-content .el-table .el-switch ::v-deep .el-switch__label--right {
  1158. cursor: pointer;
  1159. margin: 0 0 0 10px;
  1160. color: #333;
  1161. font-weight: 500;
  1162. display: inline-block;
  1163. vertical-align: middle;
  1164. font-size: 16px;
  1165. transition: .2s;
  1166. height: 30px;
  1167. }
  1168. .main-content .el-table .el-switch ::v-deep .el-switch__core {
  1169. border: 1px solid #75c0d6;
  1170. cursor: pointer;
  1171. border-radius: 15px;
  1172. margin: 0;
  1173. background: #75c0d6;
  1174. display: inline-block;
  1175. width: 42px;
  1176. box-sizing: border-box;
  1177. transition: border-color .3s,background-color .3s;
  1178. height: 20px;
  1179. }
  1180. .main-content .el-table .el-switch ::v-deep .el-switch__core::after {
  1181. border-radius: 100%;
  1182. top: 1px;
  1183. left: 1px;
  1184. background: #fff;
  1185. width: 16px;
  1186. position: absolute;
  1187. transition: all .3s;
  1188. height: 16px;
  1189. }
  1190. .main-content .el-table .el-switch.is-checked ::v-deep .el-switch__core::after {
  1191. margin: 0 0 0 -18px;
  1192. left: 100%;
  1193. }
  1194. .main-content .el-table .el-rate ::v-deep .el-rate__item {
  1195. cursor: pointer;
  1196. display: inline-block;
  1197. vertical-align: middle;
  1198. font-size: 0;
  1199. position: relative;
  1200. }
  1201. .main-content .el-table .el-rate ::v-deep .el-rate__item .el-rate__icon {
  1202. margin: 0 3px;
  1203. display: inline-block;
  1204. font-size: 18px;
  1205. position: relative;
  1206. transition: .3s;
  1207. }
  1208. </style>