b7b2bf4dec115a06f5d6b0808afaa3c7020ed5d8.svn-base 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. <template>
  2. <div class="dashboard-wrapper">
  3. <el-card v-if="title !=='3'" body-style="padding:0;" style="margin-bottom: 20px;" class="panel-header">
  4. <div slot="header" style="display: flex; justify-content:space-between;">
  5. <span>
  6. <span class="back-button" @click="$router.push({ name: 'BoardEchartManagement', params: { tab: 'first' } })">
  7. <i class="el-icon-back" />
  8. <span>返回</span>
  9. </span>
  10. <span v-if="mode == 'view'">查看仪表盘</span>
  11. <span v-if="mode == 'edit'">编辑仪表盘</span>
  12. <span v-if="mode == 'create'">新增仪表盘</span>
  13. </span>
  14. </div>
  15. </el-card>
  16. <div class="tool-bar">
  17. <div>
  18. <span class="db-name">{{ dashboard.name }}</span>
  19. <span>{{ dashboard.desc }}</span>
  20. </div>
  21. <div v-show="mode === 'edit' || mode === 'create' ">
  22. <!-- <el-button type="primary" size="mini" @click="handleShare">
  23. {{ $t('common.share') }}
  24. </el-button> -->
  25. <el-button class="successBorder" style="margin-top: 9px;" @click="handleLinkChart">
  26. 添加图表
  27. </el-button>
  28. </div>
  29. </div>
  30. <grid-layout
  31. v-if="charts.length!==0"
  32. v-loading="loading"
  33. :layout="layout || []"
  34. :col-num="24"
  35. :row-height="30"
  36. :is-draggable="mode === 'edit' || mode === 'create' "
  37. :is-resizable="mode === 'edit' || mode === 'create' "
  38. :is-mirrored="false"
  39. :vertical-compact="true"
  40. :pane-container="false"
  41. :margin="[10, 10]"
  42. :use-css-transforms="true"
  43. style="min-height: 500px;"
  44. @layout-updated="handleLayoutChange"
  45. >
  46. <grid-item v-for="item in layout || []" :key="item.index" :x="item.x" :y="item.y" :w="item.w" :h="item.h" :i="item.i" @resized="handleResize">
  47. <el-card v-loading="chartLoading[item.i]" class="visualize-card" body-style="padding: 10px;">
  48. <div slot="header" class="operation-bar">
  49. <div>
  50. <span>{{ getChartItem(item.i).chart_name }}</span>
  51. </div>
  52. <div>
  53. <i v-show="mode === 'edit' || mode === 'create' " class="el-icon-edit" @click="handleEdit(getChartItem(item.i))" />
  54. <i v-show="mode === 'edit' || mode === 'create' " class="el-icon-delete" @click="handleDelete(getChartItem(item.i))" />
  55. <el-tooltip :content="getChartItem(item.i).desc" class="item" effect="dark" placement="top-end">
  56. <i class="el-icon-info" style="color:#009C69;cursor:pointer;" />
  57. </el-tooltip>
  58. </div>
  59. </div>
  60. <visualize-panel :key="item.index" :ref="`chartInstance${item.i}`" :data="results[item.i]" :schema="getChartItem(item.i).content.allSelected" :chart-type.sync="getChartItem(item.i).content.chartType" :is-edit-mode="false" :chart-style="{height: `${item.h*30 + 10 * (item.h-1) - 60}px`}" />
  61. </el-card>
  62. </grid-item>
  63. </grid-layout>
  64. <div v-if="charts.length === 0 && mode === 'edit' || mode === 'create' && charts.length === 0" v-loading="loading" class="welcome-container">
  65. <el-button type="primary" size="mini" @click="handleLinkChart">
  66. {{ $t('dashboard.addChart') }}
  67. </el-button>
  68. <div>
  69. <el-link type="info" :underline="false">
  70. <router-link to="/chartpanel/create">
  71. {{ $t('dashboard.emptyDashboardTip') }}
  72. </router-link>
  73. </el-link>
  74. </div>
  75. </div>
  76. <el-dialog :title="$t('chart.myChart')" :visible.sync="showChartList">
  77. <!-- <el-button type="primary" size="mini" @click="$router.push({ name: 'ChartPanel', params: { id: 'create' , isEdit: 'edit'}})">
  78. 创建新的图表
  79. </el-button> -->
  80. <el-button type="primary" size="mini" @click="jumpCreate()">
  81. 创建新的图表
  82. </el-button>
  83. <el-table :data="myChartList">
  84. <el-table-column :label="$t('common.name')" width="200" prop="chart_name" />
  85. <el-table-column :label="$t('common.desc')" prop="desc" />
  86. <el-table-column :label="$t('common.operation')" align="center">
  87. <template slot-scope="scope">
  88. <el-button size="mini" type="primary" :disabled="isExisted(scope.row)" @click="linkChart(scope.row)">添加</el-button>
  89. <el-button size="mini" type="warning" @click="jumpEdit2(scope.row)">
  90. 编辑
  91. </el-button>
  92. </template>
  93. </el-table-column>
  94. </el-table>
  95. <span slot="footer" class="dialog-footer">
  96. <el-button type="primary" size="small" @click="showChartList = false">关闭</el-button>
  97. </span>
  98. </el-dialog>
  99. </div>
  100. </template>
  101. <script>
  102. import { GridLayout } from 'vue-grid-layout'
  103. import { GridItem } from 'vue-grid-layout'
  104. import visualizePanel from '../ChartPanel/components/visualizePanel'
  105. import exeSql from '@/api/exeSql'
  106. import { chartByDashboard, updateDashboard, addChartToDB, unMapChartDb } from '@/api/dashboard'
  107. import { GetDataByName, ExeSqlJiade, PostDataByName, dashboardListJiade, updateDashboardJiade } from '@/api/common'
  108. import { chartList } from '@/api/chart'
  109. import Cookies from 'js-cookie'
  110. import { buildSqlSentence, buildFilterSentence } from '@/utils/buildSentence'
  111. function isLineOverLap(line1, line2) {
  112. const start1 = {
  113. x: line1[0][0],
  114. y: line1[0][1]
  115. }
  116. const end1 = {
  117. x: line1[1][0],
  118. y: line1[1][1]
  119. }
  120. const start2 = {
  121. x: line2[0][0],
  122. y: line2[0][1]
  123. }
  124. const end2 = {
  125. x: line2[1][0],
  126. y: line2[1][1]
  127. }
  128. if (start1.y === start2.y && end1.y === end2.y) {
  129. if (start1.x >= start2.x && start1.x <= end2.x) {
  130. return true
  131. } else {
  132. return false
  133. }
  134. } else {
  135. return false
  136. }
  137. }
  138. export default {
  139. inject: ['reload'],
  140. components: { GridLayout, GridItem, visualizePanel },
  141. props: {
  142. dashboard: {
  143. required: false,
  144. type: Object,
  145. default: () => {
  146. return {}
  147. }
  148. },
  149. mode: {
  150. required: false,
  151. type: String,
  152. default: 'edit'
  153. },
  154. title: {
  155. required: false,
  156. type: String,
  157. default: '2'
  158. }
  159. },
  160. data() {
  161. return {
  162. charts: [],
  163. results: {},
  164. loading: false,
  165. layout: [],
  166. myChartList: [],
  167. showChartList: false,
  168. chartLoading: {}
  169. }
  170. },
  171. watch: {
  172. 'dashboard.dashboard_id': {
  173. immediate: true,
  174. handler(value) {
  175. console.log('watch的:', value)
  176. if (!value) return
  177. this.getList(value)
  178. }
  179. }
  180. },
  181. methods: {
  182. // getList() {
  183. // this.charts = []
  184. // this.layout = []
  185. // this.loading = true
  186. // chartByDashboard(this.dashboard.dashboard_id).then(resp => {
  187. // this.loading = false
  188. // this.charts = resp.data || []
  189. // let filterStrs = []
  190. // console.log(this.dashboard.content)
  191. // const layout = (this.dashboard.content && this.dashboard.content.layout) || []
  192. // this.charts.forEach((chart, index) => {
  193. // this.$set(this.results, chart.chart_id, [])
  194. // this.$set(this.chartLoading, chart.chart_id, false)
  195. // chart.content = JSON.parse(chart.content)
  196. // chart.content.allSelected = []
  197. // chart.content.allSelected = chart.content.allSelected.concat(chart.content.selectedCalcul).concat(chart.content.selectedDimension)
  198. // if (chart.content.filters) {
  199. // filterStrs = chart.content.filters.map(buildFilterSentence)
  200. // }
  201. // const sqlSentence = buildSqlSentence({
  202. // dataSrc: chart.content.dataSrc,
  203. // selectedCalcul: chart.content.selectedCalcul,
  204. // selectedDimension: chart.content.selectedDimension,
  205. // orderByStrs: chart.content.orderByStrs,
  206. // filterStr: filterStrs.join(' and '),
  207. // limit: chart.content.limit
  208. // })
  209. // this.exeSql(sqlSentence, chart, index)
  210. // console.log(layout.find(layoutItem => layoutItem.id === chart.chart_id))
  211. // if (!layout.find(layoutItem => layoutItem.id === chart.chart_id)) {
  212. // this.generatePosition(chart, layout, index)
  213. // }
  214. // })
  215. // this.layout = layout.filter(item => {
  216. // return this.charts.find(chart => chart.chart_id === item.id)
  217. // })
  218. // this.handleLayoutChange()
  219. // })
  220. // },
  221. getList() {
  222. console.log('进入页面组件=================')
  223. this.charts = []
  224. this.layout = []
  225. this.loading = true
  226. var send_data = {
  227. name: 'getdashboard_chart',
  228. parammaps: {
  229. pastureid: Cookies.get('pastureid'),
  230. did: this.dashboard.dashboard_id,
  231. empid: Cookies.get('employeid')
  232. }
  233. }
  234. GetDataByName(send_data).then(resp => {
  235. console.log('图表数据', resp)
  236. this.loading = false
  237. this.charts = resp.data.list || []
  238. let filterStrs = []
  239. console.log('this.dashboard', this.dashboard)
  240. const layout = (this.dashboard.content && this.dashboard.content.layout) || []
  241. console.log('layout', layout)
  242. console.log('this.charts', this.charts)
  243. this.charts.forEach((chart, index) => {
  244. this.$set(this.results, chart.chart_id, [])
  245. this.$set(this.chartLoading, chart.chart_id, false)
  246. chart.content = JSON.parse(chart.content)
  247. chart.content.allSelected = []
  248. chart.content.allSelected = chart.content.allSelected.concat(chart.content.selectedDimension).concat(chart.content.selectedCalcul).concat(chart.content.selectedCalcul2)
  249. console.log('chart.content.filters', chart.content.filters)
  250. if (chart.content.filters) {
  251. filterStrs = chart.content.filters.map(buildFilterSentence)
  252. }
  253. // const sqlSentence = buildSqlSentence({
  254. // dataSrc: chart.content.dataSrc,
  255. // selectedCalcul: chart.content.selectedCalcul,
  256. // selectedDimension: chart.content.selectedDimension,
  257. // orderByStrs: chart.content.orderByStrs,
  258. // filterStr: filterStrs.join(' and '),
  259. // limit: chart.content.limit
  260. // })
  261. this.exeSqlJia2(chart.content, chart, index)
  262. console.log(layout.find(layoutItem => layoutItem.id === chart.chart_id))
  263. })
  264. this.layout = layout.filter(item => {
  265. return this.charts.find(chart => chart.chart_id === item.id)
  266. })
  267. console.log('layout:', this.layout)
  268. this.handleLayoutChange()
  269. })
  270. },
  271. jumpCreate() {
  272. this.$router.push({ name: 'ChartPanel', params: { id: 'create', isEdit: 'edit' }})
  273. localStorage.setItem('ChartPanelIsEditId', 'create')
  274. },
  275. jumpEdit2(row) {
  276. // $router.push({ name: 'ChartPanel', params: { id: scope.row.id , isEdit: 'edit'}})
  277. console.log('点击了编辑', row)
  278. this.$router.push({ name: 'ChartPanel', params: { id: row.id, isEdit: 'edit' }})
  279. Cookies.set('ChartPanelIsEdit', 'edit')
  280. Cookies.set('ChartPanelIsEditId', row.id)
  281. localStorage.setItem('ChartPanelIsEditId', row.id)
  282. },
  283. exeSqlJia2(content, item, index) {
  284. this.$set(this.chartLoading, item.chart_id, true)
  285. if (!content) {
  286. this.$message.warning(this.$t('dashboard.chartQueryException', item.chart_name))
  287. this.$set(this.chartLoading, item.chart_id, false)
  288. return
  289. }
  290. // exeSql().fetch({ source_id: item.source_id, sql: sqlSentence }).then(resp => {
  291. // this.$set(this.chartLoading, item.chart_id, false)
  292. // this.$set(this.results, item.chart_id, resp.data)
  293. // }).catch(() => {
  294. // this.$set(this.chartLoading, item.chart_id, false)
  295. // })
  296. var send_data = { source_id: item.source_id, content: content, pastureid: Cookies.get('pastureid') }
  297. ExeSqlJiade(send_data).then(resp => {
  298. console.log('图的数据', resp.data.list)
  299. this.$set(this.chartLoading, item.chart_id, false)
  300. this.$set(this.results, item.chart_id, resp.data)
  301. }).catch(() => {
  302. this.$set(this.chartLoading, item.chart_id, false)
  303. })
  304. },
  305. getChartItem(id) {
  306. return this.charts.find(chart => chart.chart_id === id)
  307. },
  308. handleCaculPos(layout) {
  309. // const layout = JSON.parse(JSON.stringify(layout))
  310. const bottomItems = []
  311. layout.forEach(i => {
  312. i.yOffSet = i.y + i.h
  313. i.xOffSet = i.x + i.w
  314. i.bottomLine = [[i.x, i.yOffSet], [i.xOffSet, i.yOffSet]]
  315. i.topLine = [[i.x, i.y], [i.xOffSet, i.y]]
  316. })
  317. layout.forEach(i => {
  318. const flag = layout.every(j => {
  319. return !isLineOverLap(i.bottomLine, j.topLine)
  320. })
  321. if (flag) {
  322. bottomItems.push(i)
  323. }
  324. })
  325. return bottomItems
  326. },
  327. generatePosition(chart, layout, index) {
  328. let posObj
  329. if (layout.length === 0) {
  330. posObj = {
  331. id: chart.chart_id,
  332. x: 0,
  333. y: 0,
  334. w: 12,
  335. h: 9,
  336. i: chart.chart_id
  337. }
  338. } else {
  339. const bottomItems = this.handleCaculPos(layout)
  340. const highestItem = bottomItems.reduce((result, item) => {
  341. if (result.bottomLine[0][1] > item.bottomLine[0][1]) {
  342. result = item
  343. }
  344. return result
  345. }, bottomItems[0])
  346. posObj = {
  347. id: chart.chart_id,
  348. x: highestItem.x,
  349. y: highestItem.yOffSet,
  350. w: highestItem.w,
  351. h: 9,
  352. i: chart.chart_id
  353. }
  354. }
  355. layout.push(posObj)
  356. },
  357. handleShare() {
  358. const h = this.$createElement
  359. const link = `http://${location.host}/#/fullscreendb/${this.dashboard.dashboard_id}`
  360. this.$msgbox({
  361. title: this.$t('dashboard.shareLink'),
  362. message: h('p', null, [
  363. h('a', { style: 'color: #205cd8', attrs: { href: link, target: '_blank' }}, link)
  364. ])
  365. })
  366. },
  367. // handleLinkChart() {
  368. // chartList().then(resp => {
  369. // this.myChartList = resp.data
  370. // this.showChartList = true
  371. // })
  372. // },
  373. handleLinkChart() {
  374. var send_data = {
  375. name: 'getChartListV2',
  376. page: 1,
  377. offset: 1,
  378. pagecount: 10,
  379. returntype: 'Map',
  380. parammaps: {
  381. pastureid: Cookies.get('pastureid'),
  382. empid: Cookies.get('employeid')
  383. }
  384. }
  385. GetDataByName(send_data).then(response => {
  386. console.log('table数据', response.data.list)
  387. if (response.data.list !== null) {
  388. this.myChartList = response.data.list
  389. this.showChartList = true
  390. } else {
  391. this.myChartList = []
  392. this.showChartList = true
  393. }
  394. })
  395. },
  396. // linkChart(chart) {
  397. // const data = {
  398. // chart_id: chart.chart_id,
  399. // dashboard_id: this.dashboard.dashboard_id
  400. // }
  401. // addChartToDB(data).then(resp => {
  402. // this.showChartList = false
  403. // this.getList()
  404. // this.$message({
  405. // type: 'success',
  406. // message: this.$t('common.saveSuccess')
  407. // })
  408. // })
  409. // },
  410. linkChart(chart) {
  411. const data = {
  412. name: 'insertdashboard_chart',
  413. parammaps: {
  414. cid: chart.chart_id,
  415. did: this.dashboard.dashboard_id,
  416. pastureid: Cookies.get('pastureid')
  417. }
  418. }
  419. PostDataByName(data).then(response => {
  420. console.log('新增保存发送参数', data)
  421. this.showChartList = false
  422. if (data.msg == 'fail') {
  423. this.$message({
  424. type: 'fail',
  425. message: '添加失败!'
  426. })
  427. } else {
  428. this.$message({
  429. type: 'success',
  430. message: this.$t('common.saveSuccess')
  431. })
  432. }
  433. this.$router.push({ name: 'Addboard', params: { id: '~' + this.dashboard.dashboard_id }})
  434. console.log('Addboard~' + this.dashboard.dashboard_id)
  435. this.getList()
  436. this.$emit('fatherMethod')
  437. // 重新刷新页面
  438. this.reload()
  439. })
  440. },
  441. isExisted(chart) {
  442. return this.charts.findIndex(item => item.chart_id === chart.chart_id) >= 0
  443. },
  444. // handleEdit(chart) {
  445. // this.$router.push(`/chartpanel/${chart.chart_id}`)
  446. // },
  447. handleEdit(chart) {
  448. this.$router.push({ name: 'ChartPanel', params: { id: chart.chart_id, isEdit: 'edit' }})
  449. localStorage.setItem('ChartPanelIsEditId', chart.chart_id)
  450. },
  451. // handleDelete(chart) {
  452. // this.$confirm(this.$t('dashboard.removeChartConfirm'), this.$t('common.confirm'), {
  453. // type: 'warning'
  454. // }).then(() => {
  455. // // deleteChart(index)
  456. // const deleteChartIndex = this.layout.findIndex(item => item.id === chart.chart_id)
  457. // const layout = JSON.parse(JSON.stringify(this.layout))
  458. // layout.splice(deleteChartIndex, 1)
  459. // this.dashboard.content.layout = layout
  460. // const data = {
  461. // chart_id: chart.chart_id,
  462. // dashboard_id: this.dashboard.dashboard_id
  463. // }
  464. // Promise.all([updateDashboard(this.dashboard), unMapChartDb(data)]).then(resp => {
  465. // this.getList()
  466. // this.$message({
  467. // type: 'success',
  468. // message: this.$t('common.deleteSuccess')
  469. // })
  470. // })
  471. // })
  472. // },
  473. handleDelete(chart) {
  474. this.$confirm(this.$t('dashboard.removeChartConfirm'), this.$t('common.confirm'), {
  475. type: 'warning'
  476. }).then(() => {
  477. // deleteChart(index)
  478. const deleteChartIndex = this.layout.findIndex(item => item.id === chart.chart_id)
  479. const layout = JSON.parse(JSON.stringify(this.layout))
  480. layout.splice(deleteChartIndex, 1)
  481. this.dashboard.content.layout = layout
  482. const data = {
  483. name: 'deletedashboard_chart',
  484. parammaps: {
  485. cid: chart.chart_id,
  486. did: this.dashboard.dashboard_id,
  487. pastureid: Cookies.get('pastureid')
  488. }
  489. }
  490. PostDataByName(data).then(response => {
  491. console.log('删除发送参数', data)
  492. this.$message({
  493. type: 'success',
  494. message: this.$t('common.deleteSuccess')
  495. })
  496. this.getList()
  497. })
  498. })
  499. },
  500. // 拖拽
  501. // handleLayoutChange() {
  502. // if (this.mode === 'view') return
  503. // this.dashboard.content = this.dashboard.content || {}
  504. // this.dashboard.content.layout = this.layout
  505. // // updateDashboard(this.dashboard)
  506. // },
  507. handleLayoutChange() {
  508. console.log('this.mode:', this.mode)
  509. if (this.mode === 'view') return
  510. console.log('this.dashboard1', this.dashboard)
  511. this.dashboard.content = this.dashboard.content || {}
  512. this.dashboard.content.layout = this.layout
  513. console.log('this.dashboard2', this.dashboard)
  514. var send_data = { dashboard_id: this.dashboard.dashboard_id, content: this.dashboard.content, pastureid: Cookies.get('pastureid') }
  515. updateDashboardJiade(send_data).then(response => {
  516. console.log('拖拽位置的数据', response.data.list)
  517. // if (response.data !== null) {
  518. // this.loading = false
  519. // this.result = response.data
  520. // } else {
  521. // this.loading = false
  522. // this.result = []
  523. // }
  524. })
  525. },
  526. handleResize(i, newH, newW, newHPx, newWPx) {
  527. this.$refs[`chartInstance${i}`][0].$children[0].$emit('resized')
  528. },
  529. exeSql(sqlSentence, item, index) {
  530. this.$set(this.chartLoading, item.chart_id, true)
  531. if (!sqlSentence) {
  532. this.$message.warning(this.$t('dashboard.chartQueryException', item.chart_name))
  533. this.$set(this.chartLoading, item.chart_id, false)
  534. return
  535. }
  536. exeSql().fetch({ source_id: item.source_id, sql: sqlSentence }).then(resp => {
  537. this.$set(this.chartLoading, item.chart_id, false)
  538. this.$set(this.results, item.chart_id, resp.data)
  539. }).catch(() => {
  540. this.$set(this.chartLoading, item.chart_id, false)
  541. })
  542. }
  543. }
  544. }
  545. </script>
  546. <style lang="scss" scoped>
  547. .back-button {
  548. display: inline-block;
  549. padding-right: 10px;
  550. margin-right: 10px;
  551. border-right: 1px solid #909090;
  552. cursor: pointer;
  553. span {
  554. padding: 5px;
  555. font-size: 14px;
  556. }
  557. }
  558. .tool-bar {
  559. display: flex;
  560. justify-content: space-between;
  561. border-top: none;
  562. height: 45px;
  563. line-height: 45px;
  564. color: #303133;
  565. padding: 0 10px;
  566. position: relative;
  567. .db-name {
  568. font-size: 1.2em;
  569. font-weight: 600;
  570. color: #909399;
  571. margin-left: 0;
  572. }
  573. span {
  574. color: #c0c4cc;
  575. font-size: 0.8em;
  576. margin-left: 10px;
  577. }
  578. }
  579. .visualize-card {
  580. /deep/ .el-card__header {
  581. padding: 0;
  582. .operation-bar {
  583. font-size: 14px;
  584. display: flex;
  585. justify-content: space-between;
  586. height: 35px;
  587. padding: 0 10px;
  588. line-height: 35px;
  589. z-index: 9;
  590. i {
  591. margin-right: 10px;
  592. color: #409eff;
  593. cursor: pointer;
  594. }
  595. }
  596. }
  597. }
  598. .welcome-container {
  599. text-align: center;
  600. height: 500px;
  601. color: #c0c4cc;
  602. /deep/ .el-button {
  603. margin-top: 200px;
  604. margin-bottom: 25px;
  605. }
  606. }
  607. </style>