index.vue 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107
  1. /**
  2. *@author:Guoxiaohuan
  3. *@date:2020.06.08
  4. *@info 机房信息主页
  5. */
  6. <template>
  7. <div class='compute-box'>
  8. <el-dialog :title='`${systemName}`||"机房"' :visible.sync='visible' :fullscreen='true'>
  9. <div class='compute-span'></div>
  10. <el-tooltip class='item' effect='dark' :content='content' placement='top' v-if='smsxtArr.length>0'>
  11. <div class='compute-zf' @click='jumpFloor'></div>
  12. </el-tooltip>
  13. <div class='compute-tab'>
  14. <el-tabs v-model='activeName' @tab-click='handleClick' ref='elTabs'>
  15. <el-tab-pane label='机房布置图' name='1' v-if='tableImg.length>0'>
  16. <room-table1 v-if='tableImg.length>=0' :tableImg='tableImg'></room-table1>
  17. </el-tab-pane>
  18. <el-tab-pane label='配电室低压柜及出线明细表' name='2' v-if='systemName=="配电室机房"'>
  19. <div class='compute-center'>
  20. <Select
  21. width='200'
  22. @change='Index1'
  23. v-model='floor2'
  24. tipPlace='top'
  25. caption='楼层:'
  26. :selectdata='floorSelect'
  27. :placeholder='"请选择"'
  28. style='margin-right:12px'
  29. ></Select>
  30. <el-input
  31. clearable
  32. @change='Index1'
  33. v-model='ctbhInput'
  34. placeholder='搜索抽屉编号'
  35. size='small'
  36. prefix-icon='el-icon-search'
  37. style='width:200px;margin-right:12px'
  38. ></el-input>
  39. <el-input
  40. clearable
  41. @change='Index1'
  42. v-model='cxggInput'
  43. placeholder='搜索出线规格'
  44. size='small'
  45. prefix-icon='el-icon-search'
  46. style='width:200px;margin-right:12px'
  47. ></el-input>
  48. <el-input
  49. clearable
  50. @change='Index1'
  51. v-model='djbhInput'
  52. placeholder='搜索电井编号'
  53. size='small'
  54. prefix-icon='el-icon-search'
  55. style='width:200px;margin-right:12px'
  56. ></el-input>
  57. <el-input
  58. clearable
  59. @change='Index1'
  60. v-model='kzhlInput'
  61. placeholder='搜索控制回路'
  62. size='small'
  63. prefix-icon='el-icon-search'
  64. style='width:200px;margin-right:12px'
  65. ></el-input>
  66. </div>
  67. <room-table2
  68. v-if='table2.length>=0'
  69. :table2='table2'
  70. :loading='loading1'
  71. :page='page1'
  72. :total='total1'
  73. :size='size1'
  74. @Index1Emit='Index1Emit'
  75. ></room-table2>
  76. </el-tab-pane>
  77. <el-tab-pane label='机房内核心设备' name='3'>
  78. <div class='compute-center'>
  79. <el-input
  80. clearable
  81. placeholder='搜索设备简称'
  82. size='small'
  83. prefix-icon='el-icon-search'
  84. v-model='sbjcInput'
  85. @change='Index2'
  86. style='width:200px;margin-right:12px'
  87. ></el-input>
  88. <el-input
  89. clearable
  90. @change='Index2'
  91. placeholder='搜索品牌、型号'
  92. size='small'
  93. prefix-icon='el-icon-search'
  94. v-model='ppxhInput'
  95. style='width:200px;margin-right:12px'
  96. ></el-input>
  97. <Select
  98. width='200'
  99. @change='Index2'
  100. tipPlace='top'
  101. v-model='floorChange'
  102. caption='楼层:'
  103. :selectdata='floorSelect'
  104. :placeholder='"请选择"'
  105. style='margin-right:12px'
  106. ></Select>
  107. <el-input
  108. clearable
  109. @change='Index2'
  110. placeholder='搜索生产厂商'
  111. size='small'
  112. prefix-icon='el-icon-search'
  113. v-model='sccsInput'
  114. style='width:200px;margin-right:12px'
  115. ></el-input>
  116. </div>
  117. <room-table3
  118. v-if='table3.length>=0'
  119. :table3='table3'
  120. :loading='loading2'
  121. :page='page2'
  122. :total='total2'
  123. :size='size2'
  124. :floorChange='floorChange'
  125. @Index2Emit='Index2Emit'
  126. ></room-table3>
  127. </el-tab-pane>
  128. <el-tab-pane label='维修记录' name='4'>
  129. <div class='compute-center'>
  130. <el-input
  131. clearable
  132. @change='Index3'
  133. placeholder='搜索设备名称、编号'
  134. size='small'
  135. prefix-icon='el-icon-search'
  136. v-model='sbmcInput4'
  137. style='width:200px;margin-right:12px'
  138. ></el-input>
  139. <el-input
  140. clearable
  141. @change='Index3'
  142. placeholder='搜索重要事项记录、描述'
  143. size='small'
  144. prefix-icon='el-icon-search'
  145. v-model='zysxInput4'
  146. style='width:200px;margin-right:12px'
  147. ></el-input>
  148. <Select
  149. @change='Index3'
  150. width='200'
  151. tipPlace='top'
  152. caption='是否更换:'
  153. v-model='sfghSelect'
  154. :selectdata='isReplaceData'
  155. :placeholder='"请选择"'
  156. style='margin-right:12px'
  157. ></Select>
  158. <el-input
  159. clearable
  160. @change='Index3'
  161. placeholder='搜索工单编号'
  162. size='small'
  163. prefix-icon='el-icon-search'
  164. v-model='gdbhInput4'
  165. style='width:200px;margin-right:12px'
  166. ></el-input>
  167. <div class='picker-box'>
  168. <span class='picker-span'>填报日期:</span>
  169. <el-date-picker
  170. style='width:190px'
  171. v-model='tbsjDate'
  172. value-format='yyyyMMdd'
  173. type='daterange'
  174. @change='Index3'
  175. size='mini'
  176. range-separator='-'
  177. start-placeholder
  178. end-placeholder
  179. ></el-date-picker>
  180. </div>
  181. <!-- <p class='input-dialog-p'>填报日期</p>
  182. <p class='input-dialog-p2'>
  183. <el-date-picker
  184. clearable
  185. v-model='tbsjDate'
  186. value-format='yyyyMMdd'
  187. type='daterange'
  188. size='mini'
  189. style='margin-right:12px;width:200px'
  190. range-separator='-'
  191. start-placeholder
  192. end-placeholder
  193. ></el-date-picker>
  194. </p>-->
  195. </div>
  196. <div class='dialog-none'>
  197. <div class='input-dialog'>
  198. <div class='input-dialog-top' @click='show'>
  199. <img src='@/assets/imgs/select.png' />
  200. 筛选
  201. </div>
  202. <div class='input-dialog-form' v-if='dialogFormVisible'>
  203. <p class='input-dialog-p'>验收日期</p>
  204. <p class='input-dialog-p2'>
  205. <el-date-picker
  206. clearable
  207. v-model='yssjDate'
  208. value-format='yyyyMMdd'
  209. type='daterange'
  210. size='mini'
  211. style='margin-right:12px;width:200px'
  212. range-separator='-'
  213. start-placeholder
  214. end-placeholder
  215. ></el-date-picker>
  216. </p>
  217. <!-- <p class='input-dialog-p'>工单编号</p>
  218. <p class='input-dialog-p2'>
  219. <el-input
  220. clearable
  221. placeholder
  222. style='width:200px;'
  223. size='mini'
  224. prefix-icon='el-icon-search'
  225. v-model='gdbhInput4'
  226. ></el-input>
  227. </p>-->
  228. <p class='input-dialog-foot'>
  229. <el-button @click='dialogFormVisible = false' size='mini'>取 消</el-button>
  230. <el-button type='primary' @click='confirm
  231. ' size='mini'>确 定</el-button>
  232. </p>
  233. </div>
  234. </div>
  235. </div>
  236. <room-table4
  237. v-if='table4.length>=0'
  238. :table4='table4'
  239. :loading='loading3'
  240. :page='page3'
  241. :total='total3'
  242. :size='size3'
  243. @Index3Emit='Index3Emit'
  244. ></room-table4>
  245. </el-tab-pane>
  246. <el-tab-pane label='维保记录' name='5'>
  247. <div class='compute-center'>
  248. <el-input
  249. @change='Index4'
  250. clearable
  251. placeholder='搜索设备名称、编号'
  252. size='small'
  253. prefix-icon='el-icon-search'
  254. v-model='sbmcInput5'
  255. style='margin-right:12px;width:220px;'
  256. ></el-input>
  257. <el-input
  258. @change='Index4'
  259. clearable
  260. placeholder='搜索核心维保事项记录描述'
  261. size='small'
  262. prefix-icon='el-icon-search'
  263. v-model='wbsxjlInput5'
  264. style='margin-right:12px;width:220px;'
  265. ></el-input>
  266. <el-input
  267. @change='Index4'
  268. clearable
  269. placeholder='搜索任务编号'
  270. size='small'
  271. prefix-icon='el-icon-search'
  272. v-model='rwbhInput5'
  273. style='margin-right:12px;width:220px;'
  274. ></el-input>
  275. <Select
  276. @change='Index4'
  277. width='220'
  278. tipPlace='top'
  279. v-model='statuSelect5'
  280. caption='任务状态:'
  281. v-if='status.length>0'
  282. :selectdata='status'
  283. :placeholder='"请选择"'
  284. style='margin-right:12px'
  285. ></Select>
  286. <Select
  287. width='220'
  288. tipPlace='top'
  289. v-model='iszcSelect5'
  290. caption='是否正常:'
  291. v-if='zt.length>0'
  292. :selectdata='zt'
  293. :placeholder='"请选择"'
  294. style='margin-right:12px'
  295. ></Select>
  296. </div>
  297. <div class='dialog-none'>
  298. <div class='input-dialog'>
  299. <div class='input-dialog-top' @click='show'>
  300. <img src='@/assets/imgs/select.png' />
  301. 筛选
  302. </div>
  303. <div class='input-dialog-form' v-if='dialogFormVisible'>
  304. <p class='input-dialog-p'>任务开始日期</p>
  305. <p class='input-dialog-p2'>
  306. <el-date-picker
  307. clearable
  308. value-format='yyyyMMdd'
  309. type='daterange'
  310. size='mini'
  311. v-model='rwksrq'
  312. style='width:200px'
  313. range-separator='-'
  314. start-placeholder
  315. end-placeholder
  316. ></el-date-picker>
  317. </p>
  318. <p class='input-dialog-p'>任务完成日期</p>
  319. <p class='input-dialog-p2'>
  320. <el-date-picker
  321. clearable
  322. value-format='yyyyMMdd'
  323. type='daterange'
  324. size='mini'
  325. v-model='rwwcrq'
  326. style='width:200px'
  327. range-separator='-'
  328. start-placeholder
  329. end-placeholder
  330. ></el-date-picker>
  331. </p>
  332. <!-- <el-input
  333. @change='Index4'
  334. clearable
  335. placeholder='异常工单编号'
  336. size='small'
  337. prefix-icon='el-icon-search'
  338. v-model='ycgdbhInput5'
  339. style='margin-right:12px;width:220px;'
  340. ></el-input>-->
  341. <p class='input-dialog-p'>异常工单编号</p>
  342. <p class='input-dialog-p2'>
  343. <el-input
  344. clearable
  345. placeholder='异常工单编号'
  346. size='small'
  347. prefix-icon='el-icon-search'
  348. v-model='ycgdbhInput5'
  349. style='width:200px;'
  350. ></el-input>
  351. </p>
  352. <p class='input-dialog-p'>异常工单填报日期</p>
  353. <p class='input-dialog-p2'>
  354. <el-date-picker
  355. clearable
  356. value-format='yyyyMMdd'
  357. type='daterange'
  358. size='mini'
  359. v-model='ycgdtbsj'
  360. style='width:200px'
  361. range-separator='-'
  362. start-placeholder
  363. end-placeholder
  364. ></el-date-picker>
  365. </p>
  366. <p class='input-dialog-p'>异常工单验收日期</p>
  367. <p class='input-dialog-p2'>
  368. <el-date-picker
  369. clearable
  370. value-format='yyyyMMdd'
  371. type='daterange'
  372. size='mini'
  373. style='width:200px'
  374. range-separator='-'
  375. start-placeholder
  376. end-placeholder
  377. v-model='ycgdyssj'
  378. ></el-date-picker>
  379. </p>
  380. <p class='input-dialog-foot'>
  381. <el-button @click='dialogFormVisible = false' size='mini'>取 消</el-button>
  382. <el-button type='primary' @click='confirm2' size='mini'>确 定</el-button>
  383. </p>
  384. </div>
  385. </div>
  386. </div>
  387. <room-table5
  388. v-if='table5.length>=0'
  389. :table5='table5'
  390. :loading='loading4'
  391. :page='page4'
  392. :total='total4'
  393. :size='size4'
  394. @Index4Emit='Index4Emit'
  395. ></room-table5>
  396. </el-tab-pane>
  397. </el-tabs>
  398. </div>
  399. </el-dialog>
  400. </div>
  401. </template>
  402. <script>
  403. import { queryEquipmentList } from '@/api/equipmentList.js'
  404. import { queryDygjcxline, queryHxsb, queryWxjf, queryWb, querySystem } from '@/api/room.js'
  405. import roomTable1 from './room1'
  406. import roomTable2 from './room2'
  407. import roomTable3 from './room3'
  408. import roomTable4 from './room4'
  409. import roomTable5 from './room5'
  410. import { mapGetters } from 'vuex'
  411. import { querySelect, queryPic } from '@/api/public.js'
  412. import { Select } from 'meri-design'
  413. export default {
  414. data() {
  415. return {
  416. content: '',
  417. activeName: '1',
  418. location: '',
  419. visible: false,
  420. dialogFormVisible: false,
  421. systemName: '',
  422. loading: true,
  423. loading1: true,
  424. loading2: true,
  425. loading3: true,
  426. loading4: true,
  427. table2: [],
  428. table3: [],
  429. table4: [],
  430. table5: [],
  431. //
  432. total: 0,
  433. page: 1,
  434. size: 10,
  435. picFloor: '',
  436. tableImg: [],
  437. //
  438. total1: 0,
  439. page1: 1,
  440. size1: 10,
  441. floor2: '',
  442. ctbhInput: '',
  443. cxggInput: '',
  444. djbhInput: '',
  445. kzhlInput: '',
  446. //
  447. total2: 0,
  448. page2: 1,
  449. size2: 10,
  450. sccsInput: '',
  451. ppxhInput: '',
  452. sbjcInput: '',
  453. floorChange: '',
  454. //
  455. total3: 0,
  456. page3: 1,
  457. size3: 11,
  458. tbsjDate: '',
  459. yssjDate: '',
  460. // 是否更换配件
  461. isReplaceData: [
  462. { id: '1', name: '是' },
  463. { id: '0', name: '否' }
  464. ],
  465. sfghSelect: '',
  466. sbmcInput4: '',
  467. sbbhInput4: '',
  468. zysxInput4: '',
  469. msInput4: '',
  470. gdbhInput4: '',
  471. type1: 'wx',
  472. //
  473. total4: 0,
  474. page4: 1,
  475. size4: 11,
  476. searVal: '',
  477. status: [],
  478. zt: [],
  479. sbmcInput5: '',
  480. sbbhInput5: '',
  481. wbsxjlInput5: '',
  482. rwbhInput5: '',
  483. ycgdbhInput5: '',
  484. ssmsInput5: '',
  485. iszcSelect5: '',
  486. statuSelect5: '',
  487. rwksrq: '',
  488. rwwcrq: '',
  489. ycgdtbsj: '',
  490. ycgdyssj: '',
  491. smsxtArr: { smsx: '1001', smsxtname: '供电系统' }
  492. }
  493. },
  494. components: {
  495. roomTable1,
  496. roomTable2,
  497. roomTable3,
  498. roomTable4,
  499. roomTable5
  500. },
  501. computed: {
  502. ...mapGetters(['floorSelect', 'plazaId'])
  503. },
  504. methods: {
  505. handleClick(tab) {
  506. if (tab.label == '机房布置图') {
  507. this.Index(this.smsxtArr.smsxt)
  508. } else if (tab.label == '配电室低压柜及出线明细表') {
  509. this.Index1()
  510. } else if (tab.label == '机房内核心设备') {
  511. this.Index2()
  512. } else if (tab.label == '维修记录') {
  513. this.Index3()
  514. } else if (tab.label == '维保记录') {
  515. this.Index4()
  516. this.changeSelect()
  517. }
  518. },
  519. // 右上角的筛选点击按钮
  520. show() {
  521. this.dialogFormVisible = !this.dialogFormVisible
  522. },
  523. Index(system) {
  524. this.picFloor = this.$cookie.get('floorNow')
  525. let getParams = {
  526. typename: '位置布置图',
  527. location: this.location,
  528. module: '1002',
  529. // system: system,
  530. plazaId: this.plazaId
  531. }
  532. if (system) {
  533. getParams.system = system
  534. }
  535. queryPic({ getParams }).then(res => {
  536. //console.log('机房布置图', res)
  537. this.tableImg = res.data ? res.data : []
  538. //判断有没有图片,有图片默认显示按钮是第一个tab,没有图片显示的是第二个tab
  539. if (this.tableImg.length > 0) {
  540. this.activeName = '1'
  541. } else if (this.systemName == '配电室机房') {
  542. this.activeName = '2'
  543. this.Index1()
  544. } else {
  545. this.activeName = '3'
  546. this.Index2()
  547. }
  548. })
  549. },
  550. // 明细表
  551. Index1() {
  552. let getParams = {
  553. location: this.location,
  554. plazaId: this.plazaId,
  555. page: this.page1,
  556. size: this.size1
  557. }
  558. if (this.floor2) {
  559. getParams.floor = this.floor2
  560. }
  561. if (this.ctbhInput) {
  562. if (getParams.keyword) {
  563. getParams.keyword = `${getParams.keyword + ';' + this.ctbhInput}:drawernum`
  564. } else {
  565. getParams.keyword = `${this.ctbhInput}:drawernum`
  566. }
  567. }
  568. if (this.cxggInput) {
  569. if (getParams.keyword) {
  570. getParams.keyword = `${getParams.keyword + ';' + this.cxggInput}:outspec`
  571. } else {
  572. getParams.keyword = `${this.cxggInput}:outspec`
  573. }
  574. }
  575. if (this.djbhInput) {
  576. if (getParams.keyword) {
  577. getParams.keyword = `${getParams.keyword + ';' + this.djbhInput}:wellnum`
  578. } else {
  579. getParams.keyword = `${this.djbhInput}:wellnum`
  580. }
  581. }
  582. if (this.kzhlInput) {
  583. if (getParams.keyword) {
  584. getParams.keyword = `${getParams.keyword + ';' + this.kzhlInput}:control`
  585. } else {
  586. getParams.keyword = `${this.kzhlInput}:control`
  587. }
  588. }
  589. queryDygjcxline({ getParams }).then(res => {
  590. if (res.result == 'success') {
  591. this.loading1 = false
  592. this.total1 = res.count
  593. this.table2 = res.data ? res.data : []
  594. //console.log('明细表', res)
  595. if (this.table2.length == 0) {
  596. }
  597. }
  598. })
  599. },
  600. // 核心设备
  601. Index2() {
  602. let postParams = {}
  603. let data = {
  604. location: this.location,
  605. plazaId: this.plazaId,
  606. page: this.page2,
  607. size: this.size2
  608. }
  609. if (this.sbjcInput) {
  610. if (data.keyword) {
  611. data.keyword = `${data.keyword + ';' + this.sbjcInput}:sbjc`
  612. } else {
  613. data.keyword = `${this.sbjcInput}:sbjc`
  614. }
  615. }
  616. if (this.ppxhInput) {
  617. if (data.keyword) {
  618. data.keyword = `${data.keyword + ';' + this.ppxhInput}:brand,sbxh`
  619. } else {
  620. data.keyword = `${this.ppxhInput}:brand,sbxh`
  621. }
  622. }
  623. if (this.sccsInput) {
  624. if (data.keyword) {
  625. data.keyword = `${data.keyword + ';' + this.sccsInput}:manufacturer`
  626. } else {
  627. data.keyword = `${this.sccsInput}:manufacturer`
  628. }
  629. }
  630. if (this.floorChange) {
  631. postParams.gname = this.floorChange
  632. }
  633. queryHxsb({ data, postParams }).then(res => {
  634. this.loading2 = false
  635. this.total2 = res.data.count
  636. this.table3 = res.data.data ? res.data.data : []
  637. })
  638. },
  639. Index1Emit(val) {
  640. this.page1 = val
  641. this.Index1()
  642. },
  643. Index2Emit(val) {
  644. this.page2 = val
  645. this.Index2()
  646. },
  647. Index3Emit(val) {
  648. this.page3 = val
  649. this.Index3()
  650. },
  651. Index4Emit(val) {
  652. this.page4 = val
  653. this.Index4()
  654. },
  655. // 机房维修记录
  656. Index3() {
  657. let getParams = {
  658. location: this.location,
  659. plazaId: this.plazaId,
  660. page: this.page3,
  661. size: this.size3,
  662. orderBy: 'sjjssj,0;location,1'
  663. }
  664. if (this.sfghSelect) {
  665. getParams.ismodel = this.sfghSelect
  666. }
  667. // 设备名称、编号
  668. if (this.sbmcInput4) {
  669. if (getParams.keyword) {
  670. getParams.keyword = `${getParams.keyword + ';' + this.sbmcInput4}:sbmc`
  671. } else {
  672. getParams.keyword = `${this.sbmcInput4}:sbmc,location`
  673. }
  674. }
  675. // 重要事项记录、描述
  676. if (this.zysxInput4) {
  677. if (getParams.keyword) {
  678. getParams.keyword = `${getParams.keyword + ';' + this.zysxInput4}:matters`
  679. } else {
  680. getParams.keyword = `${this.zysxInput4}:matters,manufacturer`
  681. }
  682. }
  683. // 填报时间
  684. if (this.tbsjDate) {
  685. getParams.reportedbyStartDate = this.tbsjDate[0] + '000000'
  686. getParams.reportedbyEndDate = this.tbsjDate[1] + '000000'
  687. }
  688. // 验收时间
  689. if (this.yssjDate) {
  690. getParams.sjjssjStartDate = this.yssjDate[0] + '000000'
  691. getParams.sjjssjEndDate = this.yssjDate[1] + '000000'
  692. }
  693. queryWxjf({ getParams }).then(res => {
  694. //console.log('维修', res)
  695. if (res.result == 'success') {
  696. this.loading3 = false
  697. this.total3 = res.count
  698. this.table4 = res.data ? res.data : []
  699. }
  700. })
  701. },
  702. // 机房维保记录
  703. Index4() {
  704. let postParams = {}
  705. let data = {
  706. location: this.location,
  707. plazaId: this.plazaId,
  708. page: this.page4,
  709. size: this.size4,
  710. orderBy: 'wb_gzglid,0;assetnum,1;reportedby,0;'
  711. }
  712. //
  713. // 任务开始日期
  714. if (this.rwksrq) {
  715. data.sjkssjStartDate = this.rwksrq[0] + '000000'
  716. data.sjkssjEndDate = this.rwksrq[1] + '000000'
  717. }
  718. // 任务完成日期
  719. if (this.rwwcrq) {
  720. data.sjwcsjStartDate = this.rwwcrq[0] + '000000'
  721. data.sjwcsjEndDate = this.rwwcrq[1] + '000000'
  722. }
  723. // 异常工单填报时间
  724. if (this.ycgdtbsj) {
  725. data.reportdateStartDate = this.ycgdtbsj[0] + '000000'
  726. data.reportdateEndDate = this.ycgdtbsj[1] + '000000'
  727. }
  728. // 异常工单验收时间
  729. if (this.ycgdyssj) {
  730. data.sjjssjStartDate = this.ycgdyssj[0] + '000000'
  731. data.sjjssjEndDate = this.ycgdyssj[1] + '000000'
  732. }
  733. //
  734. // 是否正常
  735. if (this.iszcSelect5) {
  736. data.zt = this.iszcSelect5
  737. }
  738. // 任务状态
  739. if (this.statuSelect5) {
  740. data.status = this.statuSelect5
  741. }
  742. if (this.sbmcInput5) {
  743. if (data.keyword) {
  744. data.keyword = `${data.keyword + ';' + this.sbmcInput5}:sbmc,assetnum`
  745. } else {
  746. data.keyword = `${this.sbmcInput5}:sbmc,assetnum`
  747. }
  748. }
  749. if (this.wbsxjlInput5) {
  750. if (data.keyword) {
  751. data.keyword = `${data.keyword + ';' + this.wbsxjlInput5}:matters`
  752. } else {
  753. data.keyword = `${this.wbsxjlInput5}:matters,description`
  754. }
  755. }
  756. if (this.rwbhInput5) {
  757. if (data.keyword) {
  758. data.keyword = `${data.keyword + ';' + this.rwbhInput5}:wb_gzglid`
  759. } else {
  760. data.keyword = `${this.rwbhInput5}:wb_gzglid`
  761. }
  762. }
  763. if (this.ycgdbhInput5) {
  764. if (data.keyword) {
  765. data.keyword = `${data.keyword + ';' + this.ycgdbhInput5}:wonum`
  766. } else {
  767. data.keyword = `${this.ycgdbhInput5}:wonum`
  768. }
  769. }
  770. queryWb({ data, postParams }).then(res => {
  771. //console.log('维保', res)
  772. this.loading4 = false
  773. this.total4 = res.data.count
  774. this.table5 = res.data.data ? res.data.data : []
  775. })
  776. },
  777. confirm() {
  778. this.Index3()
  779. },
  780. confirm2() {
  781. this.Index4()
  782. },
  783. // 下拉框数据
  784. changeSelect() {
  785. this.department = []
  786. let postParams = [
  787. {
  788. columnName: { status: 'status', zt: 'zt' },
  789. tableName: 'v_glsms_wbzy'
  790. }
  791. ]
  792. let data = {
  793. plazaId: this.plazaId
  794. }
  795. querySelect({ data, postParams }).then(res => {
  796. //console.log('下拉框', res)
  797. let status = [],
  798. zt = []
  799. status = res.data.data.v_glsms_wbzy.status ? res.data.data.v_glsms_wbzy.status : []
  800. zt = res.data.data.v_glsms_wbzy.zt ? res.data.data.v_glsms_wbzy.zt : []
  801. if (status.length > 0) {
  802. status.forEach(el => {
  803. let obj = {
  804. id: el.key,
  805. name: el.value
  806. }
  807. this.status.push(obj)
  808. })
  809. }
  810. if (zt.length > 0) {
  811. zt.forEach(el => {
  812. let obj = {
  813. id: el.key,
  814. name: el.value == '正常' ? '是' : '否'
  815. }
  816. this.zt.push(obj)
  817. })
  818. }
  819. })
  820. },
  821. // 查询楼层功能下的机房属于哪类设备
  822. init() {
  823. this.smsxtArr = []
  824. let params = {
  825. getParams: {
  826. locationid: this.location,
  827. plazaId: this.plazaId
  828. }
  829. }
  830. querySystem(params).then(res => {
  831. this.smsxtArr = res.data ? res.data[0] : {}
  832. this.Index(this.smsxtArr.smsxt)
  833. this.content = `查看${this.$cookie.get('floorNow')}层${this.smsxtArr.smsxtname}分布图`
  834. })
  835. },
  836. // 打开机房弹框
  837. open(name) {
  838. this.visible = true
  839. this.systemName = name.name
  840. this.location = name.location
  841. if (name.type == 'floor') {
  842. this.init()
  843. } else if (name.type == 'system') {
  844. let floor = this.$cookie.get('floorNow')
  845. this.content = `查看${floor}层楼层功能图`
  846. this.Index(null)
  847. }
  848. },
  849. // 机房右上角的跳转 如果是在楼层功能打开的机房则要跳转到设备设施对应的系统\楼层 反之亦然
  850. jumpFloor() {
  851. // if (this.smsxtArr.smsxt) {
  852. if (location.pathname.split('/')[3] == 'equipment') {
  853. this.$router.push({ path: '/home/floorFunc' })
  854. } else {
  855. this.$router.push({ path: '/home/equipment', query: { smsxt: this.smsxtArr.smsxt } })
  856. }
  857. // }
  858. }
  859. },
  860. mounted() {}
  861. }
  862. </script>
  863. <style lang="less" scoped>
  864. .compute-box {
  865. .compute-zf {
  866. width: 15px;
  867. height: 13px;
  868. background: url('../../assets/imgs/zffx.png');
  869. background-repeat: no-repeat;
  870. background-size: 100% 100%;
  871. position: absolute;
  872. right: 74px;
  873. top: 25px;
  874. cursor: pointer;
  875. &::after {
  876. content: '';
  877. position: absolute;
  878. right: -16px;
  879. width: 1px;
  880. height: 16px;
  881. background: rgba(216, 216, 216, 1);
  882. }
  883. }
  884. .picker-box {
  885. display: flex;
  886. align-items: center;
  887. background: #fff;
  888. padding: 0 6px;
  889. border: 1px solid #dcdfe6;
  890. border-radius: 4px;
  891. height: 32px;
  892. box-sizing: border-box;
  893. margin-right: 12px;
  894. .picker-span {
  895. margin-right: 6px;
  896. color: rgba(0, 0, 0, 0.65);
  897. }
  898. }
  899. .compute-span {
  900. width: 100%;
  901. height: 1px;
  902. background: rgba(0, 0, 0, 0.06);
  903. margin-bottom: 20px;
  904. }
  905. .compute-center {
  906. display: flex;
  907. align-items: center;
  908. margin-bottom: 12px;
  909. }
  910. //
  911. .dialog-none {
  912. width: 100px;
  913. position: absolute;
  914. right: 0;
  915. .input-dialog {
  916. .input-dialog-top {
  917. color: #c3c7cb;
  918. cursor: pointer;
  919. position: absolute;
  920. top: -45px;
  921. right: 0px;
  922. }
  923. .input-dialog-form {
  924. padding: 20px 24px;
  925. background: rgba(255, 255, 255, 1);
  926. border-radius: 4px;
  927. border: 1px solid rgba(195, 199, 203, 1);
  928. z-index: 99999;
  929. position: absolute;
  930. top: -20px;
  931. right: 0px;
  932. }
  933. .input-dialog-p {
  934. margin-bottom: 8px;
  935. font-size: 14px;
  936. font-family: MicrosoftYaHei;
  937. color: rgba(100, 108, 115, 1);
  938. line-height: 22px;
  939. }
  940. .input-dialog-p2 {
  941. margin-bottom: 16px;
  942. }
  943. }
  944. .input-dialog-foot {
  945. // margin-bottom: 16px;
  946. display: flex;
  947. justify-content: flex-end;
  948. }
  949. }
  950. .compute-tab {
  951. margin-top: 16px;
  952. padding: 0 24px;
  953. }
  954. }
  955. </style>
  956. <style lang="less">
  957. .compute-box {
  958. .el-dialog {
  959. padding: 16px 20px 20px;
  960. overflow: hidden;
  961. .el-dialog__header {
  962. padding: 0;
  963. font-size: 16px;
  964. font-family: PingFangSC-Medium, PingFang SC;
  965. font-weight: 500;
  966. color: rgba(0, 0, 0, 0.85);
  967. line-height: 24px;
  968. padding-bottom: 16px;
  969. }
  970. }
  971. .compute-tab {
  972. .el-dialog__title {
  973. font-size: 16px;
  974. font-family: PingFangSC-Medium, PingFang SC;
  975. font-weight: 500;
  976. color: rgba(0, 0, 0, 0.85);
  977. line-height: 24px;
  978. }
  979. .el-dialog__body {
  980. padding: 0 24px;
  981. }
  982. .el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),
  983. .el-tabs--bottom .el-tabs__item.is-top:nth-child(2),
  984. .el-tabs--top .el-tabs__item.is-bottom:nth-child(2),
  985. .el-tabs--top .el-tabs__item.is-top:nth-child(2) {
  986. padding-left: 16px;
  987. }
  988. .el-tabs--bottom .el-tabs__item.is-bottom:last-child,
  989. .el-tabs--bottom .el-tabs__item.is-top:last-child,
  990. .el-tabs--top .el-tabs__item.is-bottom:last-child,
  991. .el-tabs--top .el-tabs__item.is-top:last-child {
  992. padding-right: 16px;
  993. }
  994. .el-tabs__nav-wrap::after {
  995. height: 0;
  996. }
  997. .el-tabs__item {
  998. padding: 5px 16px;
  999. height: 30px;
  1000. line-height: 22px;
  1001. font-size: 14px;
  1002. font-family: MicrosoftYaHei;
  1003. color: rgba(31, 36, 41, 1);
  1004. border: 1px solid rgba(195, 199, 203, 1);
  1005. }
  1006. /deep/ .el-tabs__item:last-child {
  1007. border-radius: 0px 4px 4px 0px;
  1008. }
  1009. /deep/ .el-tabs__item:nth-child(2) {
  1010. border-radius: 4px 0px 0px 4px;
  1011. }
  1012. .el-tabs,
  1013. .el-tabs__content {
  1014. height: 800px;
  1015. }
  1016. .el-tabs__active-bar {
  1017. background-color: transparent !important;
  1018. }
  1019. .is-active {
  1020. color: #025baa;
  1021. border-color: #025baa;
  1022. }
  1023. .compute-table {
  1024. .el-table td,
  1025. .el-table th {
  1026. padding: 8px 0;
  1027. }
  1028. }
  1029. }
  1030. .el-input--suffix .el-input__inner {
  1031. padding-right: 20px;
  1032. }
  1033. .el-dialog__wrapper {
  1034. transition-duration: 0.3s;
  1035. }
  1036. .dialog-fade-enter-active {
  1037. animation: none !important;
  1038. }
  1039. .dialog-fade-leave-active {
  1040. transition-duration: 0.15s !important;
  1041. animation: none !important;
  1042. }
  1043. .dialog-fade-enter-active .el-dialog,
  1044. .dialog-fade-leave-active .el-dialog {
  1045. animation-fill-mode: forwards;
  1046. }
  1047. .dialog-fade-enter-active .el-dialog {
  1048. animation-duration: 0.3s;
  1049. animation-name: anim-open;
  1050. animation-timing-function: cubic-bezier(0.6, 0, 0.4, 1);
  1051. }
  1052. .dialog-fade-leave-active .el-dialog {
  1053. animation-duration: 0.3s;
  1054. animation-name: anim-close;
  1055. }
  1056. @keyframes anim-open {
  1057. 0% {
  1058. opacity: 0;
  1059. transform: scale3d(0, 0, 1);
  1060. }
  1061. 100% {
  1062. opacity: 1;
  1063. transform: scale3d(1, 1, 1);
  1064. }
  1065. }
  1066. @keyframes anim-close {
  1067. 0% {
  1068. opacity: 1;
  1069. }
  1070. 100% {
  1071. opacity: 0;
  1072. transform: scale3d(0.5, 0.5, 1);
  1073. }
  1074. }
  1075. .picker-box {
  1076. .el-input__inner {
  1077. border: none;
  1078. }
  1079. .el-range-editor.el-input__inner {
  1080. padding: 3px 0px;
  1081. }
  1082. .el-icon-date {
  1083. display: none;
  1084. }
  1085. .el-range__close-icon {
  1086. position: absolute;
  1087. right: 0px;
  1088. top: 2px;
  1089. }
  1090. .el-range-editor--mini .el-range-input {
  1091. font-size: 14px;
  1092. color: rgb(31, 36, 41);
  1093. }
  1094. }
  1095. }
  1096. </style>