event-analysis.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  1. <template>
  2. <div class="eventAnalysis">
  3. <div class="dialog-body">
  4. <div style="display: flex;justify-content: space-between">
  5. <div class="el-carousel-title">
  6. 事件档案:
  7. </div>
  8. <div>
  9. <el-input
  10. v-model="input"
  11. placeholder="请输入关键字、事件名称等模糊查询"
  12. style="width: 830px;height: 108px;font-size: 40px"
  13. @change="handleSearch"
  14. >
  15. <i slot="suffix" class="el-input__icon el-icon-search" />
  16. </el-input>
  17. </div>
  18. </div>
  19. <div class="title">
  20. <span class="secod_first">事件档案列表</span>
  21. </div>
  22. <div class="search-box">
  23. <div class="select-row">
  24. <div class="select-item">等级:</div>
  25. <div
  26. v-for="(item, index) in lvList"
  27. :key="item.value"
  28. :class="[
  29. 'select-box',
  30. item.isSelected ? 'select-box-active' : '',
  31. ]"
  32. @click="selectLv(index)"
  33. >
  34. {{ item.label }}
  35. </div>
  36. <div style="margin-left: 1200px;">
  37. <div style="display: flex;align-items: center">
  38. <div class="select-item">是否高发:</div>
  39. <div style="display: flex">
  40. <el-checkbox v-model="checked" label="是" size="medium" @change="changeCheck" />
  41. <el-checkbox v-model="checked2" label="否" size="medium" @change="changeCheck2" />
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="select-row">
  47. <div class="select-item">区域:</div>
  48. <div
  49. v-for="(item, index) in areaList"
  50. :key="item.value"
  51. :class="[
  52. 'select-box',
  53. item.isSelected ? 'select-box-active' : '',
  54. ]"
  55. @click="selectArea(index)"
  56. >
  57. {{ item.label }}
  58. </div>
  59. </div>
  60. <div class="select-row" style="margin-bottom: 0">
  61. <div class="select-item">类型:</div>
  62. <div
  63. v-for="(item, index) in typeList"
  64. :key="item.value"
  65. :class="[
  66. 'select-box',
  67. item.isSelected ? 'select-box-active' : '',
  68. ]"
  69. @click="selectType(index)"
  70. >
  71. {{ item.label }}
  72. </div>
  73. </div>
  74. </div>
  75. <div class="dialog-table-header">
  76. <el-row>
  77. <el-col :span="2">序号</el-col>
  78. <el-col :span="2">等级</el-col>
  79. <el-col :span="8">事件描述</el-col>
  80. <el-col :span="2">所属区域</el-col>
  81. <el-col :span="4">处置状态</el-col>
  82. <el-col :span="4">存档日期</el-col>
  83. <el-col :span="2">档案</el-col>
  84. </el-row>
  85. </div>
  86. <div style="height: 1150px;overflow-y: scroll;">
  87. <div v-for="(item,index) in infoDataList" class="dialog-table-body">
  88. <el-row>
  89. <el-col :span="2">
  90. <span class="row-center">{{ index + 1 }}</span>
  91. </el-col>
  92. <el-col :span="2">
  93. <span :class="selectClassRow1(item.row1)">{{ item.row1 }}&nbsp;</span>
  94. </el-col>
  95. <el-col :span="8">
  96. <div class="row-center" style="position: relative">
  97. <div class="row-center-text">
  98. {{ item.row2 }}
  99. </div>
  100. </div>
  101. </el-col>
  102. <el-col :span="2">
  103. <div class="area">{{ item.row3 }}</div>
  104. </el-col>
  105. <el-col :span="4">
  106. <div class="row-center">
  107. <div :class="selectClassRow4(item.row4)">{{ item.row4 }}</div>
  108. </div>
  109. </el-col>
  110. <el-col :span="4">
  111. <div class="row-center">
  112. <div>{{ item.row5 }}</div>
  113. </div>
  114. </el-col>
  115. <el-col :span="2">
  116. <div class="row-center">
  117. <span style="color: #fecd2d" @click="showDetailDangAn(item)">查看</span>
  118. </div>
  119. </el-col>
  120. </el-row>
  121. </div>
  122. </div>
  123. <!-- <el-pagination-->
  124. <!-- background-->
  125. <!-- layout="prev, pager, next"-->
  126. <!-- :total="1000"-->
  127. <!-- />-->
  128. <!-- <div class="table-page">-->
  129. <el-pagination
  130. :current-page.sync="currentPage"
  131. :page-size="pageSize"
  132. :total="allpage"
  133. background
  134. layout="total, prev, pager, next"
  135. @current-change="handleCurrentChange"
  136. />
  137. <!-- </div>-->
  138. </div>
  139. <!-- <dialogFor-->
  140. <!-- :dialog-visible="dialogVisibleDangAn"-->
  141. <!-- @closeVideo="closeItem()"-->
  142. <!-- >-->
  143. <!-- &lt;!&ndash; 事件&ndash;&gt;-->
  144. <!-- <template slot="dialogBody">-->
  145. <!-- <things v-if="dialogVisibleDangAn" :data="toData" />-->
  146. <!-- </template>-->
  147. <!-- </dialogFor>-->
  148. </div>
  149. </template>
  150. <script>
  151. import Base from '@/views/base/base'
  152. import BaseData from '@/views/base/baseData'
  153. import constant from '@/static/utils/constant'
  154. import myBus from '@/views/life-line/monitor/assets/js/myBus'
  155. // import things from '@/views/detailPages/things.vue'
  156. // import dialogFor from '@/components/my-dialog/dialogFor.vue'
  157. export default {
  158. components: {
  159. // things,
  160. // dialogFor
  161. },
  162. // name: "DraggableDialog",
  163. mixins: [Base, BaseData],
  164. props: ['faMsg'],
  165. data() {
  166. return {
  167. dialogVisibleDangAn: false,
  168. toData: {},
  169. dc_key: ['EVENT_RANK', 'DISPOSAL_STATE', 'AREA_CODE', 'EVENT_TYPE'],
  170. // 列表相关
  171. search: {
  172. scene: '',
  173. info: '',
  174. places: '',
  175. levels: '',
  176. isOften: '',
  177. types: ''
  178. },
  179. checked: false,
  180. checked2: false,
  181. input: '',
  182. infoDataList: [
  183. // {
  184. // row1: '重大',
  185. // row2: 'XXX点位燃气管网第三方施工管网交叉穿越圈占压',
  186. // row3: '滨湖区',
  187. // row4: '已处置',
  188. // row5: '2022-12-01',
  189. // row6: '2'
  190. // },
  191. // {
  192. // row1: '较大',
  193. // row2: 'XXX点位燃气管网第三方施工管网交叉穿越圈占压',
  194. // row3: '新吴区',
  195. // row4: '处置中',
  196. // row5: '2023-01-11'
  197. // },
  198. // {
  199. // row1: '较大',
  200. // row2: 'XXX点位燃气管网第三方施工管网交叉穿越圈占压',
  201. // row3: '新吴区',
  202. // row4: '处置中',
  203. // row5: '2023-01-11'
  204. // },
  205. // {
  206. // row1: '较大',
  207. // row2: 'XXX点位燃气管网第三方施工管网交叉穿越圈占压',
  208. // row3: '新吴区',
  209. // row4: '处置中',
  210. // row5: '2023-01-11'
  211. // },
  212. // {
  213. // row1: '较大',
  214. // row2: 'XXX点位燃气管网第三方施工管网交叉穿越圈占压',
  215. // row3: '新吴区',
  216. // row4: '处置中',
  217. // row5: '2023-01-11'
  218. // },
  219. // {
  220. // row1: '较大',
  221. // row2: 'XXX点位燃气管网第三方施工管网交叉穿越圈占压',
  222. // row3: '新吴区',
  223. // row4: '处置中',
  224. // row5: '2023-01-11'
  225. // }
  226. ],
  227. dialogVisible: true,
  228. dialogVisible2: false,
  229. imageUrl: '',
  230. title: '',
  231. checkList: [],
  232. typeList: [
  233. // { label: '第三方施工', value: 1, isSelected: false },
  234. // { label: '管网安全间距不足', value: 2, isSelected: false },
  235. // { label: '管网老化', value: 3, isSelected: false },
  236. // { label: '管网交叉穿越', value: 4, isSelected: false },
  237. // { label: '管网圈占压', value: 4, isSelected: false }
  238. ],
  239. lvList: [
  240. { label: '四级', value: constant.SHIJIAN_GRADE.get('四级'), isSelected: false },
  241. { label: '三级', value: constant.SHIJIAN_GRADE.get('三级'), isSelected: false },
  242. { label: '二级', value: constant.SHIJIAN_GRADE.get('二级'), isSelected: false },
  243. { label: '一级', value: constant.SHIJIAN_GRADE.get('一级'), isSelected: false }
  244. ],
  245. areaList: [
  246. { label: '梁溪区', value: 320213, isSelected: false },
  247. { label: '锡山区', value: 320205, isSelected: false },
  248. { label: '惠山区', value: 320206, isSelected: false },
  249. { label: '滨湖区', value: 320211, isSelected: false },
  250. { label: '新吴区', value: 320214, isSelected: false },
  251. { label: '经开区', value: 320299, isSelected: false },
  252. { label: '江阴市', value: 320281, isSelected: false },
  253. { label: '宜兴市', value: 320282, isSelected: false }
  254. ]
  255. }
  256. },
  257. mounted() {
  258. this.initDict(this.dc_key).then((res) => {
  259. this.typeList = []
  260. this.dc_data.EVENT_TYPE.forEach(e => {
  261. this.typeList.push({
  262. label: e.label, value: e.value, isSelected: false
  263. })
  264. })
  265. this.getData()
  266. })
  267. },
  268. methods: {
  269. closeItem() {
  270. this.dialogVisibleDangAn = false
  271. },
  272. showDetailDangAn(item) {
  273. myBus.$emit('eventList',item)
  274. // console.log('查询111详细信息', item)
  275. // this.toData = item
  276. // this.dialogVisibleDangAn = true
  277. },
  278. getData() {
  279. const _this = this
  280. try {
  281. const levelList = []
  282. this.lvList.forEach((e) => {
  283. if (e.isSelected === true) {
  284. levelList.push(e.value)
  285. }
  286. })
  287. const placesList = []
  288. this.areaList.forEach((e) => {
  289. if (e.isSelected) {
  290. placesList.push(e.value)
  291. }
  292. })
  293. const typeList = []
  294. this.typeList.forEach((e) => {
  295. if (e.isSelected) {
  296. typeList.push(e.value)
  297. }
  298. })
  299. _this.infoDataList = []
  300. this.search.pageNum = this.currentPage
  301. this.search.pageSize = this.pageSize
  302. this.search.scene = this.faMsg
  303. this.search.info = this.input
  304. this.search.places = placesList.join(',')
  305. this.search.levels = levelList.join(',')
  306. // this.search.isOften = (this.checked ? '是' : '否') + ',' + (this.checked2 ? '否' : '是')
  307. if (this.checked && !this.checked2) {
  308. this.search.isOften = '是'
  309. } else if (!this.checked && this.checked2) {
  310. this.search.isOften = '否'
  311. } else {
  312. this.search.isOften = ''
  313. }
  314. this.search.types = typeList.join(',')
  315. _this.baseRequestZt('SecuritySuperviseController/findShiJianFenXi',
  316. _this.search
  317. ).then((res) => {
  318. const data = res.data
  319. // console.log('findShiJianFenXi获取数据data:', data)
  320. // const item = data[0]
  321. if (res.data.rows) {
  322. res.data.rows.forEach(function(item) {
  323. const json = _this.getItemJson(item)
  324. _this.infoDataList.push(json)
  325. })
  326. console.log('_this.infoDataList', _this.infoDataList)
  327. _this.allpage = res.data.total
  328. }
  329. })
  330. } catch (e) {
  331. console.log(e)
  332. }
  333. },
  334. getItemJson: function(item) {
  335. item.level = item.level == '5' ? '4' : item.level
  336. item.row1 = this.dc_map.EVENT_RANK[item.level]
  337. item.row2 = item.name // this.$common.transDate(item.birthday, this.$constant.DATE_PATTERN.DATE_TIME_s_h)
  338. item.row2_1 = item.is_often === '是' ? '高发' : ''// this.$common.transDate(item.createdAt, this.$constant.DATE_PATTERN.DATE_TIME_s_h)
  339. item.row3 = this.dc_map.AREA_CODE[item.area]
  340. item.row4 = this.dc_map.DISPOSAL_STATE[item.dispose_progress]
  341. item.row5 = this.$common.transDate(item.create_time, this.$constant.DATE_PATTERN.DATE)
  342. // const time = parseInt(new Date().getTime() - item.find_time) / 1000 / 60 / 60 // 两个时间相差的秒数
  343. // item.row5_1 = (time / 24 * 100).toFixed(2) + '%'
  344. // item.row5 = time.toFixed(0)
  345. return item
  346. },
  347. handleCurrentChange: function(val) {
  348. this.currentPage = val
  349. this.getData()
  350. },
  351. baseRequestZt(opUrl, postData) {
  352. return this.$channel.globeRequest('', opUrl, postData, 'project')
  353. },
  354. consoleLog() {
  355. console.log('asnvjofqpfwvfnpnwj')
  356. },
  357. changeCheck(e) {
  358. if (e) {
  359. this.checked2 = false
  360. }
  361. this.getData()
  362. },
  363. changeCheck2(e) {
  364. if (e) {
  365. this.checked = false
  366. }
  367. this.getData()
  368. },
  369. selectClassRow1(row1) {
  370. if (row1 === '四级') {
  371. return 'danger'
  372. } else if (row1 === '三级') {
  373. return 'warn'
  374. } else if (row1 === '二级') {
  375. return 'normal'
  376. } else if (row1 === '一级') {
  377. return 'success'
  378. }
  379. },
  380. selectClassRow4(row) {
  381. if (row === '未启动') {
  382. return 'statusbox'
  383. } else if (row === '处置中') {
  384. return 'statusbox-warn'
  385. } else if (row === '已处置') {
  386. return 'statusbox-finish'
  387. }
  388. },
  389. selectClassRow5(row1) {
  390. console.log('row1', row1)
  391. row1 = row1 / 1
  392. console.log('row1', row1)
  393. if (row1 <= 3) {
  394. return 'green'
  395. } else if (row1 <= 12) {
  396. return 'yellow'
  397. } else {
  398. return 'red'
  399. }
  400. },
  401. handleSearch: function() {
  402. this.getData()
  403. },
  404. selectArea(index) {
  405. this.areaList[index].isSelected = !this.areaList[index].isSelected
  406. this.getData()
  407. },
  408. selectType(index) {
  409. this.typeList[index].isSelected = !this.typeList[index].isSelected
  410. this.getData()
  411. },
  412. selectLv(index) {
  413. this.lvList[index].isSelected = !this.lvList[index].isSelected
  414. this.getData()
  415. }
  416. // dialogClose() {
  417. // this.dialogVisible = false
  418. // }
  419. }
  420. }
  421. </script>
  422. <style lang="scss">
  423. .eventAnalysis {
  424. width: 4603px;
  425. height: 100%;
  426. overflow: hidden;
  427. position: relative;
  428. .dialog-body {
  429. .jiaobiao {
  430. //background: url(./image/jiaobiao.png);
  431. width: 64px;
  432. height: 46px;
  433. font-size: 20px;
  434. text-align: center;
  435. line-height: 46px;
  436. color: #ffffff;
  437. position: absolute;
  438. top: 0;
  439. right: 0;
  440. }
  441. .time-line {
  442. width: 80px;
  443. height: 16px;
  444. background: #f47526;
  445. border-radius: 0px 0px 0px 0px;
  446. opacity: 1;
  447. }
  448. .tiem-hour {
  449. width: 200px;
  450. color: #f47526;
  451. }
  452. .timebox {
  453. width: 160px;
  454. height: 16px;
  455. background: #ffffff;
  456. border-radius: 0px 0px 0px 0px;
  457. margin-right: 20px;
  458. }
  459. .statusbox {
  460. display: flex;
  461. align-items: center;
  462. justify-content: center;
  463. width: 232px;
  464. height: 72px;
  465. background: rgba(255, 78, 54, 0.3);
  466. border-radius: 50px 50px 50px 50px;
  467. opacity: 1;
  468. color: #ff4e36;
  469. border: 2px solid rgba(255, 78, 54, 0.5);
  470. }
  471. .statusbox-warn {
  472. display: flex;
  473. align-items: center;
  474. justify-content: center;
  475. width: 232px;
  476. height: 72px;
  477. background: rgba(255, 147, 54, 0.3);
  478. border-radius: 50px 50px 50px 50px;
  479. opacity: 1;
  480. border: 2px solid rgba(255, 147, 54, 0.5);
  481. color: #ff9336;
  482. }
  483. .statusbox-finish {
  484. display: flex;
  485. align-items: center;
  486. justify-content: center;
  487. width: 232px;
  488. height: 72px;
  489. background: rgba(0, 242, 255, 0.24);
  490. border-radius: 50px 50px 50px 50px;
  491. opacity: 1;
  492. border: 2px solid rgba(0, 242, 255, 0.24);
  493. color: rgba(0, 242, 255, 1);
  494. }
  495. .row-center {
  496. width: 100%;
  497. height: 149px;
  498. display: flex;
  499. align-items: center;
  500. justify-content: center;
  501. }
  502. .success {
  503. color: #29bb38;
  504. font-size: 54px;
  505. line-height: 149px;
  506. }
  507. .normal {
  508. color: royalblue;
  509. font-size: 54px;
  510. line-height: 149px;
  511. }
  512. .warn {
  513. color: #ff9900;
  514. font-size: 54px;
  515. line-height: 149px;
  516. }
  517. .danger {
  518. color: #fb565e;
  519. font-size: 54px;
  520. line-height: 149px;
  521. }
  522. .area {
  523. height: 149px;
  524. line-height: 149px;
  525. }
  526. .title {
  527. text-align: center;
  528. font-size: 78px;
  529. margin-top: 25px;
  530. font-family: pmzd;
  531. .title_first {
  532. color: #fec12d;
  533. }
  534. .secod_first {
  535. color: white;
  536. }
  537. }
  538. .search-box {
  539. background: rgba(16, 57, 143, 0.5);
  540. width: 100%;
  541. display: block;
  542. margin: 0 auto;
  543. margin-top: 30px;
  544. padding: 60px;
  545. }
  546. .select-row {
  547. display: flex;
  548. align-items: center;
  549. margin-bottom: 30px;
  550. }
  551. .select-item {
  552. height: 80px;
  553. line-height: 80px;
  554. font-size: 54px;
  555. color: #cccccc;
  556. }
  557. .dialog-table-header {
  558. font-size: 54px;
  559. font-weight: 400;
  560. color: rgba(255, 255, 255, 0.6);
  561. width: 100%;
  562. display: block;
  563. margin: 0 auto;
  564. margin-top: 60px;
  565. text-align: center;
  566. padding: 30px 0;
  567. }
  568. .dialog-table-body {
  569. font-size: 54px;
  570. font-weight: 400;
  571. color: #ffffff;
  572. width: 100%;
  573. height: 149px;
  574. display: block;
  575. margin: 0 auto;
  576. margin-top: 40px;
  577. background: rgba(20, 61, 147, 0.4);
  578. text-align: center;
  579. }
  580. .select-box {
  581. display: flex;
  582. align-items: center;
  583. padding: 10px 46px;
  584. height: 80px;
  585. margin: 0 20px;
  586. font-weight: 300;
  587. //line-height: 80px;
  588. font-size: 44px;
  589. text-align: center;
  590. border-radius: 4px 4px 4px 4px;
  591. background: rgba(255, 255, 255, 0.24);
  592. color: white;
  593. }
  594. .select-box-active {
  595. background: rgba(0, 242, 255, 0.24);
  596. color: #00f2ff;
  597. }
  598. .el-checkbox {
  599. margin: 0 15px;
  600. display: flex;
  601. align-items: center;
  602. }
  603. .el-checkbox-group {
  604. display: flex;
  605. }
  606. .el-checkbox__inner {
  607. width: 40px !important;
  608. height: 40px !important;
  609. display: inline-block;
  610. zoom: 1.7;
  611. background: rgba(0, 0, 0, 0);
  612. }
  613. .el-checkbox__label {
  614. font-weight: 400;
  615. color: #ffffff;
  616. font-size: 54px !important;
  617. height: 80px !important;
  618. line-height: 80px !important;
  619. }
  620. .el-dialog {
  621. pointer-events: auto;
  622. }
  623. .row-center-text {
  624. width: 100%;
  625. max-height: 60px;
  626. overflow: hidden;
  627. /* 三行显示省略号 */
  628. display: -webkit-box;
  629. -webkit-box-orient: vertical;
  630. -webkit-line-clamp: 2;
  631. }
  632. }
  633. .el-checkbox__inner::after {
  634. width: 9px;
  635. height: 21px;
  636. top: 3px !important;
  637. left: 13px !important;
  638. }
  639. .el-input__inner {
  640. height: 108px !important;
  641. border-radius: 54px !important;
  642. }
  643. .el-input__suffix {
  644. right: 85px !important;
  645. top: 37px !important;
  646. }
  647. .number {
  648. background: transparent !important;
  649. border: 3px solid rgba(204, 204, 204, 1) !important;
  650. color: rgba(204, 204, 204, 1) !important;
  651. margin: 0 30px !important;
  652. border-radius: 8px !important;
  653. &:hover {
  654. color: white;
  655. background: rgba(0, 242, 255, 0.61) !important;
  656. border: none !important;
  657. }
  658. }
  659. .el-icon-more {
  660. background: transparent !important;
  661. border: 3px solid rgba(204, 204, 204, 1) !important;
  662. color: rgba(204, 204, 204, 1) !important;
  663. border-radius: 8px !important;
  664. &:hover {
  665. color: white;
  666. background: rgba(0, 242, 255, 0.61) !important;
  667. border: none !important;
  668. }
  669. }
  670. .btn-next {
  671. background: transparent !important;
  672. border: 3px solid rgba(204, 204, 204, 1) !important;
  673. color: rgba(204, 204, 204, 1) !important;
  674. border-radius: 8px !important;
  675. &:hover {
  676. color: white;
  677. background: rgba(0, 242, 255, 0.61) !important;
  678. border: none !important;
  679. }
  680. }
  681. .btn-prev {
  682. background: transparent !important;
  683. border: 3px solid rgba(204, 204, 204, 1) !important;
  684. color: rgba(204, 204, 204, 1) !important;
  685. border-radius: 8px !important;
  686. &:hover {
  687. color: white;
  688. background: rgba(0, 242, 255, 0.6) !important;
  689. border: none !important;
  690. }
  691. }
  692. .active {
  693. background: rgba(0, 242, 255, 1) !important;
  694. color: white !important;
  695. border-radius: 8px !important;
  696. border: none !important;
  697. }
  698. }
  699. </style>
  700. <style lang="scss" scoped>
  701. /deep/ .el-dialog__header {
  702. height: 75px;
  703. width: 100%;
  704. position: absolute;
  705. }
  706. //这段样式务必加上,不然其他按钮无法点击
  707. /deep/ .el-dialog__wrapper {
  708. pointer-events: none !important;
  709. /deep/ .el-dialog {
  710. pointer-events: auto;
  711. margin: auto;
  712. top: calc(50% - 540px);
  713. margin-top: 0 !important;
  714. }
  715. }
  716. </style>