cutAndSpeed.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <template>
  2. <div class="box">
  3. <div class="searchBar">
  4. <el-card class="box-card">
  5. <!-- <div slot="header" class="clearfix" style="font-size:15px">
  6. <span>查询条件</span>
  7. </div> -->
  8. <el-form :inline="true" :model="formInline" class="demo-form-inline">
  9. <el-row :gutter="1">
  10. <el-form-item label="查询条件">
  11. </el-form-item>
  12. <el-form-item label="风场:">
  13. <el-select v-model="value" placeholder="请选择">
  14. <el-option
  15. v-for="item in options"
  16. :key="item.name"
  17. :label="item.name"
  18. :value="item.id">
  19. </el-option>
  20. </el-select>
  21. </el-form-item>
  22. <el-form-item label="日期:">
  23. <el-date-picker
  24. value-format="yyyy-MM-dd"
  25. v-model="time"
  26. type="date"
  27. placeholder="选择日期">
  28. </el-date-picker>
  29. </el-form-item>
  30. <el-form-item>
  31. <el-button type="primary" @click="queryApData" :plain="true"
  32. >查询</el-button
  33. >
  34. </el-form-item>
  35. <el-form-item>
  36. <el-button type="primary" @click="toExcel()">导出</el-button>
  37. </el-form-item>
  38. </el-row>
  39. </el-form>
  40. </el-card>
  41. <el-table
  42. id="callthepolicetable"
  43. :data="gridData"
  44. style="width: 100%"
  45. border
  46. :row-style="{ height: '10px' }"
  47. :cell-style="{ textAlign: 'center'}"
  48. :header-cell-style="headStyle"
  49. @sort-change="changeTableSort"
  50. >
  51. <!-- <el-table-column label="切入切出风速整合"> -->
  52. <el-table-column
  53. type="index"
  54. width="40">
  55. </el-table-column>
  56. <el-table-column
  57. prop="windturbineid"
  58. label="风机"
  59. width="150">
  60. <template slot-scope="{row}">
  61. {{ row.windturbineid || '0' }}
  62. </template>
  63. </el-table-column>
  64. <el-table-column
  65. :sortable="'custom'"
  66. prop="inputsmallratio"
  67. label="总小风切入"
  68. width="150">
  69. <template slot-scope="{row}">
  70. {{ row.inputsmallratio || '0' }}
  71. </template>
  72. </el-table-column>
  73. <el-table-column
  74. :sortable="'custom'"
  75. prop="inputbigratio"
  76. label="总大风切入"
  77. width="150">
  78. <template slot-scope="{row}">
  79. {{ row.inputbigratio || '0' }}
  80. </template>
  81. </el-table-column>
  82. <el-table-column
  83. :sortable="'custom'"
  84. prop="outputsmallratio"
  85. label="总小风切出"
  86. width="150">
  87. <template slot-scope="{row}">
  88. {{ row.outputsmallratio || '0' }}
  89. </template>
  90. </el-table-column>
  91. <el-table-column
  92. :sortable="'custom'"
  93. prop="outputbigmaxratio"
  94. label="总大风切出"
  95. width="150">
  96. <template slot-scope="{row}">
  97. {{ row.outputbigmaxratio || '0' }}
  98. </template>
  99. </el-table-column>
  100. <el-table-column
  101. :sortable="'custom'"
  102. prop="dayinputsmall"
  103. label="日小风切入"
  104. width="150">
  105. <template slot-scope="{row}">
  106. {{ row.dayinputsmall || '0' }}
  107. </template>
  108. </el-table-column>
  109. <el-table-column
  110. :sortable="'custom'"
  111. prop="dayinputsmallratio"
  112. label="日小风切入合格"
  113. width="150">
  114. <template slot-scope="{row}">
  115. {{ row.dayinputsmallratio || '0' }}
  116. </template>
  117. </el-table-column>
  118. <el-table-column
  119. :sortable="'custom'"
  120. prop="dayoutputsmall"
  121. label="日小风切出"
  122. width="150">
  123. <template slot-scope="{row}">
  124. {{ row.dayoutputsmall || '0' }}
  125. </template>
  126. </el-table-column>
  127. <el-table-column
  128. :sortable="'custom'"
  129. prop="dayoutputsmallratio"
  130. label="日小风切出合格"
  131. width="150">
  132. <template slot-scope="{row}">
  133. {{ row.dayoutputsmallratio || '0' }}
  134. </template>
  135. </el-table-column>
  136. <el-table-column
  137. :sortable="'custom'"
  138. prop="dayinputbig"
  139. label="日大风切入"
  140. width="150">
  141. <template slot-scope="{row}">
  142. {{ row.dayinputbig || '0' }}
  143. </template>
  144. </el-table-column>
  145. <el-table-column
  146. :sortable="'custom'"
  147. prop="dayinputbigratio"
  148. label="日大风切入合格"
  149. width="150">
  150. <template slot-scope="{row}">
  151. {{ row.dayinputbigratio || '0' }}
  152. </template>
  153. </el-table-column>
  154. <el-table-column
  155. :sortable="'custom'"
  156. prop="dayoutputbig"
  157. label="日大风切出"
  158. width="150">
  159. <template slot-scope="{row}">
  160. {{ row.dayoutputbig || '0' }}
  161. </template>
  162. </el-table-column>
  163. <el-table-column
  164. :sortable="'custom'"
  165. prop="dayoutputbigratio"
  166. label="日大风切出合格"
  167. width="150">
  168. <template slot-scope="{row}">
  169. {{ row.dayoutputbigratio || '0' }}
  170. </template>
  171. </el-table-column>
  172. <el-table-column
  173. :sortable="'custom'"
  174. prop="monthinputsmall"
  175. label="月小风切入"
  176. width="150">
  177. <template slot-scope="{row}">
  178. {{ row.monthinputsmall || '0' }}
  179. </template>
  180. </el-table-column>
  181. <el-table-column
  182. :sortable="'custom'"
  183. prop="monthinputsmallratio"
  184. label="月小风切入合格"
  185. width="150">
  186. <template slot-scope="{row}">
  187. {{ row.monthinputsmallratio || '0' }}
  188. </template>
  189. </el-table-column>
  190. <el-table-column
  191. :sortable="'custom'"
  192. prop="monthinputbig"
  193. label="月大风切入"
  194. width="150">
  195. <template slot-scope="{row}">
  196. {{ row.monthinputbig || '0' }}
  197. </template>
  198. </el-table-column>
  199. <el-table-column
  200. :sortable="'custom'"
  201. prop="monthinputbigratio"
  202. label="月大风切入合格"
  203. width="150">
  204. <template slot-scope="{row}">
  205. {{ row.monthinputbigratio || '0' }}
  206. </template>
  207. </el-table-column>
  208. <el-table-column
  209. :sortable="'custom'"
  210. prop="monthoutputsmall"
  211. label="月小风切出"
  212. width="150">
  213. <template slot-scope="{row}">
  214. {{ row.monthoutputsmall || '0' }}
  215. </template>
  216. </el-table-column>
  217. <el-table-column
  218. :sortable="'custom'"
  219. prop="monthoutputsmallratio"
  220. label="月小风切出合格"
  221. width="150">
  222. <template slot-scope="{row}">
  223. {{ row.monthoutputsmallratio || '0' }}
  224. </template>
  225. </el-table-column>
  226. <el-table-column
  227. :sortable="'custom'"
  228. prop="monthoutputbig"
  229. label="月大风切出"
  230. width="150">
  231. <template slot-scope="{row}">
  232. {{ row.monthoutputbig || '0' }}
  233. </template>
  234. </el-table-column>
  235. <el-table-column
  236. :sortable="'custom'"
  237. prop="monthoutputbigratio"
  238. label="月大风切出合格"
  239. width="150">
  240. <template slot-scope="{row}">
  241. {{ row.monthoutputbigratio || '0' }}
  242. </template>
  243. </el-table-column>
  244. <el-table-column
  245. :sortable="'custom'"
  246. prop="yearinputsmall"
  247. label="年小风切入"
  248. width="150">
  249. <template slot-scope="{row}">
  250. {{ row.yearinputsmall || '0' }}
  251. </template>
  252. </el-table-column>
  253. <el-table-column
  254. :sortable="'custom'"
  255. prop="yearinputsmallratio"
  256. label="年小风切入合格"
  257. width="150">
  258. <template slot-scope="{row}">
  259. {{ row.yearinputsmallratio || '0' }}
  260. </template>
  261. </el-table-column>
  262. <el-table-column
  263. :sortable="'custom'"
  264. prop="yearinputbig"
  265. label="年大风切入"
  266. width="150">
  267. <template slot-scope="{row}">
  268. {{ row.yearinputbig || '0' }}
  269. </template>
  270. </el-table-column>
  271. <el-table-column
  272. :sortable="'custom'"
  273. prop="yearinputbigratio"
  274. label="年大风切入合格"
  275. width="150">
  276. <template slot-scope="{row}">
  277. {{ row.yearinputbigratio || '0' }}
  278. </template>
  279. </el-table-column>
  280. <el-table-column
  281. :sortable="'custom'"
  282. prop="yearoutputsmall"
  283. label="年小风切出"
  284. width="150">
  285. <template slot-scope="{row}">
  286. {{ row.yearoutputsmall || '0' }}
  287. </template>
  288. </el-table-column>
  289. <el-table-column
  290. :sortable="'custom'"
  291. prop="yearoutputsmallratio"
  292. label="年小风切出合格"
  293. width="150">
  294. <template slot-scope="{row}">
  295. {{ row.yearoutputsmallratio || '0' }}
  296. </template>
  297. </el-table-column>
  298. <el-table-column
  299. :sortable="'custom'"
  300. prop="yearoutputbig"
  301. label="年大风切出"
  302. width="150">
  303. <template slot-scope="{row}">
  304. {{ row.yearoutputbig || '0' }}
  305. </template>
  306. </el-table-column>
  307. <el-table-column
  308. :sortable="'custom'"
  309. prop="yearoutputbigratio"
  310. label="年大风切出合格"
  311. width="150">
  312. <template slot-scope="{row}">
  313. {{ row.yearoutputbigratio || '0' }}
  314. </template>
  315. </el-table-column>
  316. <el-table-column
  317. fixed="right"
  318. label="操作"
  319. width="100">
  320. <template slot-scope="scope">
  321. <el-button size="mini" @click="handleEdit(scope.$index, scope.row)">历史</el-button>
  322. </template>
  323. </el-table-column>
  324. <!-- </el-table-column> -->
  325. </el-table>
  326. </div>
  327. </div>
  328. </template>
  329. <script>
  330. import cutAndSpeed from "@assets/js/performanceAnalysis/cutAndSpeed";
  331. export default cutAndSpeed;
  332. </script>
  333. <style lang="scss" scoped>
  334. @import "@assets/css/performanceAnalysis/cutAndSpeed.scss";
  335. </style>