62d407e263f0f970746ff2bb3d539edfcf628091.svn-base 21 KB

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