index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910
  1. <template>
  2. <div class="energy-monitoring card-mode">
  3. <el-card shadow="never" class="monitoring-card card-mode">
  4. <!-- 主内容区 -->
  5. <ele-split-layout
  6. width="220px"
  7. allow-collapse
  8. :right-style="{ overflow: 'hidden' }"
  9. >
  10. <!-- 左侧树形菜单 -->
  11. <div class="left-sidebar card-mode">
  12. <el-tabs
  13. v-model="activeTab"
  14. type="border-card"
  15. @tab-click="activeTabChange"
  16. >
  17. <el-tab-pane label="设备类型" name="org">
  18. <el-tree
  19. :data="orgTreeData"
  20. :props="treeProps"
  21. node-key="id"
  22. highlight-current
  23. @node-click="handleNodeClick"
  24. style="height: calc(100vh - 180px)"
  25. ref="treeRef"
  26. ></el-tree>
  27. </el-tab-pane>
  28. <el-tab-pane label="用能分区" name="energy">
  29. <el-tree
  30. :data="treeData"
  31. :props="treeProps"
  32. node-key="id"
  33. default-expand-all
  34. ref="treeRef1"
  35. highlight-current
  36. @node-click="handleNodeClick"
  37. ></el-tree>
  38. </el-tab-pane>
  39. </el-tabs>
  40. </div>
  41. <!-- 右侧内容区 -->
  42. <template v-slot:content>
  43. <div class="right-content card-mode">
  44. <!-- 搜索区域 -->
  45. <div class="search-area card-mode">
  46. <!-- 设备状态标签 -->
  47. <!-- <div class="status-tabs">
  48. <el-radio-group
  49. v-model="statusFilter"
  50. size="small"
  51. @change="handleStatusChange"
  52. >
  53. <el-radio-button label="all">全部</el-radio-button>
  54. <el-radio-button label="online">在线</el-radio-button>
  55. <el-radio-button label="offline">离线</el-radio-button>
  56. <el-radio-button label="fault">故障</el-radio-button>
  57. </el-radio-group>
  58. </div> -->
  59. <!-- 搜索框 -->
  60. <div class="search-input-wrapper">
  61. <el-input
  62. v-model="keyWord"
  63. placeholder="编码、名称、固资编码"
  64. prefix-icon="el-icon-search"
  65. clearable
  66. @keyup.enter.native="handleSearch"
  67. style="width: 280px"
  68. >
  69. </el-input>
  70. <el-button type="primary" @click="handleSearch">搜索</el-button>
  71. <el-button @click="handleReset">重置</el-button>
  72. </div>
  73. </div>
  74. <!-- 更新时间 -->
  75. <div class="update-time">更新时间:{{ updateTime }}</div>
  76. <!-- 卡片视图 -->
  77. <div class="card-view">
  78. <el-row :gutter="10">
  79. <el-col
  80. v-for="item in deviceData"
  81. :key="item.id"
  82. :xs="24"
  83. :sm="12"
  84. :md="8"
  85. :lg="6"
  86. >
  87. <div
  88. class="device-card"
  89. :class="{
  90. 'is-fault': item.status == '3' || item.status == '2'
  91. }"
  92. @click="details(item)"
  93. >
  94. <div class="card-header">
  95. <div class="device-name">{{ item.name }}</div>
  96. <div class="card-actions">
  97. <el-tag
  98. :type="getStatusType(item.status, 1)"
  99. size="small"
  100. effect="dark"
  101. class="status-tag"
  102. >
  103. {{
  104. businessStatus.filter(
  105. (row) => row.code == item.status
  106. )[0]?.label
  107. }}
  108. </el-tag>
  109. </div>
  110. </div>
  111. <div class="card-body">
  112. <el-tag
  113. :type="getStatusType(item.networkStatus)"
  114. size="small"
  115. effect="dark"
  116. class="status-tag"
  117. >
  118. {{ getStatusText(item.networkStatus) }}
  119. </el-tag>
  120. <div class="info-grid">
  121. <div class="info-row" v-for="iotItem in item.iotList">
  122. <span class="info-label">{{ iotItem.name }}</span>
  123. <span class="info-value">{{
  124. iotItem.dataType.type == 'enum' ||
  125. iotItem.dataType.type == 'bool'
  126. ? iotItem.dataType.specs[iotItem.value]
  127. : iotItem.value +
  128. ' ' +
  129. ((iotItem.unit && iotItem.unit) || '')
  130. }}</span>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </el-col>
  136. </el-row>
  137. </div>
  138. <!-- 分页 -->
  139. <div class="pagination-area">
  140. <el-pagination
  141. @size-change="handleSizeChange"
  142. @current-change="handleCurrentChange"
  143. :current-page="pageNum"
  144. :page-sizes="[10, 20, 50, 100]"
  145. :page-size="pageSize"
  146. layout="total, sizes, prev, pager, next, jumper"
  147. :total="total"
  148. ></el-pagination>
  149. </div>
  150. </div>
  151. </template>
  152. </ele-split-layout>
  153. </el-card>
  154. </div>
  155. </template>
  156. <script>
  157. import dictMixins from '@/mixins/dictMixins';
  158. import tableColumnsMixin from '@/mixins/tableColumnsMixin';
  159. import dayjs from 'dayjs';
  160. import { querySubstanceRunningMonitor } from '@/api/ledgerAssets';
  161. import { getTreeByPid } from '@/api/classifyManage';
  162. import { basicAreaPageAPI } from '@/api/factoryModel';
  163. import { businessStatus } from '@/utils/dict/warehouse';
  164. import { data } from 'ele-admin/lib/ele-pro-table';
  165. import d from 'highlight.js/lib/languages/d';
  166. export default {
  167. mixins: [dictMixins, tableColumnsMixin],
  168. data() {
  169. return {
  170. // 搜索表单
  171. searchForm: {
  172. energyType: '',
  173. keyword: '',
  174. deviceStatus: ''
  175. },
  176. businessStatus,
  177. // 当前激活的标签页
  178. activeTab: 'org',
  179. // 更新时间
  180. updateTime: dayjs().format('YYYY-M-D HH:mm:ss'),
  181. // 搜索关键词
  182. keyWord: '',
  183. // 树形数据
  184. treeData: [],
  185. orgTreeData: [],
  186. treeProps: {
  187. children: 'children',
  188. label: 'name'
  189. },
  190. // 分页参数
  191. pageNum: 1,
  192. pageSize: 10,
  193. total: 0,
  194. areaId: '',
  195. cacheKeyUrl: 'ems-energy-monitoring-list',
  196. deviceData: [],
  197. categoryLevelId: '',
  198. rootCategoryLevelId: ''
  199. };
  200. },
  201. computed: {},
  202. created() {
  203. getTreeByPid(0).then((res) => {
  204. this.orgTreeData = res.data.filter((item) =>
  205. [
  206. '4',
  207. '14',
  208. '1812765052571865089',
  209. '5',
  210. '8',
  211. '7',
  212. '26',
  213. '18',
  214. '15',
  215. '6',
  216. '11',
  217. '16'
  218. ].includes(item.id)
  219. );
  220. if (this.orgTreeData.length) {
  221. this.handleNodeClick(this.orgTreeData[0]);
  222. this.$nextTick(() => {
  223. console.log(this.orgTreeData[0].id, 'this.orgTreeData[0].id');
  224. this.$refs.treeRef.setCurrentKey(this.orgTreeData[0].id);
  225. });
  226. }
  227. });
  228. /* 获取区域集合 */
  229. basicAreaPageAPI({
  230. pageNum: 1,
  231. size: 9999
  232. }).then((res) => {
  233. this.treeData = this.$util.toTreeData({
  234. data: res,
  235. idField: 'id',
  236. parentIdField: 'parentId'
  237. });
  238. });
  239. },
  240. methods: {
  241. activeTabChange() {
  242. let data = null;
  243. this.pageNum = 1;
  244. if (this.activeTab == 'org') {
  245. data = this.orgTreeData[0];
  246. this.$nextTick(() => {
  247. this.$refs.treeRef.setCurrentKey(this.orgTreeData[0].id);
  248. });
  249. } else {
  250. data = this.treeData[0] || {};
  251. this.$nextTick(() => {
  252. this.$refs.treeRef1.setCurrentKey(this.treeData[0].id);
  253. });
  254. }
  255. if (data) {
  256. this.handleNodeClick(data);
  257. } else {
  258. this.total = 0;
  259. this.deviceData = [];
  260. }
  261. },
  262. // 加载设备数据(模拟)
  263. loadDeviceData() {
  264. querySubstanceRunningMonitor({
  265. pageNum: this.pageNum,
  266. size: this.pageSize,
  267. categoryLevelId: this.categoryLevelId,
  268. rootCategoryLevelId: this.rootCategoryLevelId,
  269. areaId: this.areaId,
  270. keyWord: this.keyWord
  271. }).then((res) => {
  272. this.updateTime = dayjs().format('YYYY-M-D HH:mm:ss');
  273. this.deviceData = res.list.map((item) => {
  274. let iotList = [];
  275. if (item.iotPointDataList) {
  276. item.iotPointDataList.forEach((element) => {
  277. let data = item.iotModel.properties.find(
  278. (iotModel) => iotModel.identifier == element.identifier
  279. );
  280. if (data) {
  281. iotList.push({
  282. ...element,
  283. dataType: data.dataType
  284. });
  285. }
  286. });
  287. }
  288. item['iotList'] = item.iotDashboardPoint.length
  289. ? iotList.filter((iotListItem) =>
  290. item.iotDashboardPoint.find(
  291. (Point) =>
  292. Point.identifier == iotListItem.identifier &&
  293. Point.checked1
  294. )
  295. )
  296. : iotList.filter((iotListItem, index) => index < 4);
  297. return item;
  298. });
  299. this.total = res.count;
  300. console.log(res);
  301. });
  302. },
  303. // // 获取设备图标
  304. // getDeviceIcon(type) {
  305. // const iconMap = {
  306. // water: 'el-icon-water-cup',
  307. // electric: 'el-icon-lightning',
  308. // gas: 'el-icon-stopwatch'
  309. // };
  310. // return iconMap[type] || 'el-icon-odometer';
  311. // },
  312. // 获取状态类型
  313. getStatusType(status, type) {
  314. const typeMap = !type
  315. ? {
  316. 1: 'success',
  317. 0: 'info',
  318. fault: 'danger'
  319. }
  320. : {
  321. // { code: 0, label: '空闲' },
  322. // { code: 1, label: '占用' },
  323. // { code: 2, label: '故障' },
  324. // { code: 3, label: '维修' },
  325. // { code: 4, label: '保养' },
  326. // { code: 5, label: '巡点检' }
  327. 0: 'success',
  328. 1: 'success',
  329. 4: 'success',
  330. 5: 'warning',
  331. 2: 'danger',
  332. 3: 'danger'
  333. };
  334. return typeMap[status];
  335. },
  336. // 获取状态文本
  337. getStatusText(status) {
  338. const textMap = {
  339. 1: '在线',
  340. 0: '离线',
  341. fault: '故障'
  342. };
  343. return textMap[status] || status;
  344. },
  345. // 搜索
  346. handleSearch() {
  347. this.pageNum = 1;
  348. this.loadDeviceData();
  349. },
  350. // 重置
  351. handleReset() {
  352. this.name = '';
  353. this.pageNum = 1;
  354. this.loadDeviceData();
  355. },
  356. // 树节点点击
  357. handleNodeClick(data) {
  358. this.categoryLevelId = '';
  359. this.rootCategoryLevelId = '';
  360. this.areaId = '';
  361. if (this.activeTab == 'org') {
  362. this.categoryLevelId = data.id;
  363. this.rootCategoryLevelId = data.rootCategoryLevelId;
  364. } else {
  365. this.areaId = data.id;
  366. }
  367. this.loadDeviceData();
  368. },
  369. // 卡片点击
  370. // 跳转到详情页
  371. details({ id, code, name }) {
  372. this.$router.push({
  373. path: '/ledgerAssets/equipment/detail',
  374. query: {
  375. id,
  376. code,
  377. name,
  378. activeComp: 'internet'
  379. }
  380. });
  381. },
  382. // 分页大小变化
  383. handleSizeChange(val) {
  384. this.pageSize = val;
  385. this.loadDeviceData();
  386. },
  387. // 页码变化
  388. handleCurrentChange(val) {
  389. this.pageNum = val;
  390. this.loadDeviceData();
  391. }
  392. }
  393. };
  394. </script>
  395. <style lang="scss" scoped>
  396. .energy-monitoring {
  397. min-height: calc(100vh - 96px);
  398. // padding: 15px;
  399. .monitoring-card {
  400. height: calc(100vh - 96px);
  401. ::v-deep .el-card__body {
  402. height: 100%;
  403. padding: 15px;
  404. }
  405. &.card-mode {
  406. background: linear-gradient(
  407. 135deg,
  408. #1a1c2e 0%,
  409. #161825 100%
  410. ) !important;
  411. border-color: rgba(255, 255, 255, 0.1) !important;
  412. ::v-deep .el-card__body {
  413. background: transparent;
  414. }
  415. }
  416. }
  417. ::v-deep .ele-split-layout {
  418. .ele-split-layout-left {
  419. padding: 0;
  420. background: transparent;
  421. border: none;
  422. }
  423. .ele-split-layout-right {
  424. padding: 0;
  425. }
  426. .ele-split-layout-trigger {
  427. width: 8px;
  428. background: #f0f0f0;
  429. border-left: 1px solid #e0e0e0;
  430. border-right: 1px solid #e0e0e0;
  431. &:hover {
  432. background: #d0d0d0;
  433. }
  434. .ele-split-layout-trigger-icon {
  435. color: #909399;
  436. }
  437. }
  438. }
  439. .left-sidebar {
  440. height: 100%;
  441. ::v-deep .el-tabs--border-card {
  442. box-shadow: none;
  443. border: 1px solid #ebeef5;
  444. height: 100%;
  445. .el-tabs__header {
  446. background-color: #f5f7fa;
  447. border-bottom: 1px solid #ebeef5;
  448. margin: 0;
  449. .el-tabs__nav {
  450. width: 100%;
  451. display: flex;
  452. }
  453. .el-tabs__item {
  454. flex: 1;
  455. height: 39px;
  456. line-height: 39px;
  457. font-size: 13px;
  458. padding: 0;
  459. text-align: center;
  460. &.is-active {
  461. background-color: #fff;
  462. border-bottom-color: #fff;
  463. }
  464. }
  465. }
  466. .el-tabs__content {
  467. padding: 10px;
  468. height: calc(100% - 40px);
  469. overflow-y: auto;
  470. }
  471. }
  472. ::v-deep .el-tree {
  473. padding: 0;
  474. }
  475. &.card-mode {
  476. ::v-deep .el-tabs--border-card {
  477. background: linear-gradient(135deg, #151825 0%, #1a1c2e 100%);
  478. border: 1px solid rgba(255, 255, 255, 0.08);
  479. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  480. .el-tabs__header {
  481. background: rgba(255, 255, 255, 0.05);
  482. border-bottom-color: rgba(255, 255, 255, 0.1);
  483. .el-tabs__item {
  484. color: rgba(255, 255, 255, 0.6);
  485. border-right-color: rgba(255, 255, 255, 0.1);
  486. &.is-active {
  487. background: rgba(255, 255, 255, 0.1);
  488. color: #409eff;
  489. border-bottom-color: transparent;
  490. }
  491. &:hover {
  492. color: rgba(255, 255, 255, 0.8);
  493. }
  494. }
  495. }
  496. .el-tabs__content {
  497. background: transparent;
  498. }
  499. }
  500. ::v-deep .el-tree {
  501. color: rgba(255, 255, 255, 0.8);
  502. .el-tree-node__content {
  503. background: transparent;
  504. color: rgba(255, 255, 255, 0.8);
  505. &:hover {
  506. background: rgba(64, 158, 255, 0.1);
  507. }
  508. }
  509. .el-tree-node__label {
  510. color: rgba(255, 255, 255, 0.8);
  511. }
  512. .is-current > .el-tree-node__content {
  513. background: rgba(64, 158, 255, 0.2);
  514. color: #409eff;
  515. }
  516. }
  517. }
  518. }
  519. .right-content {
  520. flex: 1;
  521. min-width: 0;
  522. padding-left: 15px;
  523. &.card-mode {
  524. background: transparent;
  525. }
  526. .search-area {
  527. display: flex;
  528. justify-content: space-between;
  529. align-items: center;
  530. margin-bottom: 10px;
  531. padding-bottom: 10px;
  532. border-bottom: 1px solid #ebeef5;
  533. .status-tabs {
  534. flex-shrink: 0;
  535. }
  536. .search-input-wrapper {
  537. display: flex;
  538. align-items: center;
  539. gap: 10px;
  540. }
  541. .view-switch {
  542. margin-left: 20px;
  543. flex-shrink: 0;
  544. }
  545. &.card-mode {
  546. background: linear-gradient(135deg, #151825 0%, #1a1c2e 100%);
  547. border-radius: 12px;
  548. padding: 15px;
  549. margin-bottom: 10px;
  550. border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  551. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  552. border: 1px solid rgba(255, 255, 255, 0.08);
  553. ::v-deep .el-radio-button__inner {
  554. background: rgba(255, 255, 255, 0.08) !important;
  555. border-color: rgba(255, 255, 255, 0.2) !important;
  556. color: rgba(255, 255, 255, 0.8) !important;
  557. &:hover {
  558. color: #409eff;
  559. }
  560. }
  561. ::v-deep
  562. .el-radio-button__orig-radio:checked
  563. + .el-radio-button__inner {
  564. background-color: #409eff !important;
  565. border-color: #409eff !important;
  566. color: #fff !important;
  567. box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
  568. }
  569. ::v-deep .el-input__inner {
  570. background: rgba(255, 255, 255, 0.08) !important;
  571. border-color: rgba(255, 255, 255, 0.2) !important;
  572. color: rgba(255, 255, 255, 0.8) !important;
  573. &::-webkit-input-placeholder {
  574. color: rgba(255, 255, 255, 0.4);
  575. }
  576. }
  577. ::v-deep .el-input__icon {
  578. color: rgba(255, 255, 255, 0.5);
  579. }
  580. ::v-deep .el-button--default {
  581. background: rgba(255, 255, 255, 0.08);
  582. border-color: rgba(255, 255, 255, 0.2);
  583. color: rgba(255, 255, 255, 0.8);
  584. &:hover {
  585. background: rgba(255, 255, 255, 0.15);
  586. color: #409eff;
  587. border-color: rgba(64, 158, 255, 0.4);
  588. }
  589. }
  590. ::v-deep .el-button--primary {
  591. background: #409eff;
  592. border-color: #409eff;
  593. &:hover {
  594. background: #66b1ff;
  595. border-color: #66b1ff;
  596. }
  597. }
  598. }
  599. }
  600. .update-time {
  601. background: linear-gradient(135deg, #151825 0%, #1a1c2e 100%);
  602. border-radius: 12px;
  603. padding: 12px 15px;
  604. color: rgba(255, 255, 255, 0.6);
  605. border: 1px solid rgba(255, 255, 255, 0.08);
  606. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  607. margin-bottom: 10px;
  608. }
  609. .card-view {
  610. background: transparent;
  611. border-radius: 12px;
  612. padding: 15px;
  613. height: calc(100vh - 320px);
  614. overflow-y: auto;
  615. padding-right: 10px;
  616. .device-card {
  617. height: 160px;
  618. background: linear-gradient(
  619. 145deg,
  620. rgba(30, 34, 50, 0.9) 0%,
  621. rgba(20, 23, 35, 0.95) 100%
  622. );
  623. border: 1px solid rgba(255, 255, 255, 0.12);
  624. border-radius: 12px;
  625. padding: 20px;
  626. margin-bottom: 20px;
  627. cursor: pointer;
  628. transition: all 0.3s;
  629. box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
  630. inset 0 1px 0 rgba(255, 255, 255, 0.05);
  631. &:hover {
  632. box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5),
  633. 0 0 0 1px rgba(64, 158, 255, 0.3);
  634. transform: translateY(-4px);
  635. border-color: rgba(64, 158, 255, 0.5);
  636. background: linear-gradient(
  637. 145deg,
  638. rgba(35, 40, 55, 0.95) 0%,
  639. rgba(25, 28, 40, 0.98) 100%
  640. );
  641. }
  642. &.is-fault {
  643. background: linear-gradient(
  644. 145deg,
  645. rgba(255, 107, 107, 0.15) 0%,
  646. rgba(255, 107, 107, 0.08) 100%
  647. );
  648. border-color: rgba(255, 107, 107, 0.6);
  649. }
  650. .card-header {
  651. display: flex;
  652. justify-content: space-between;
  653. align-items: center;
  654. margin-bottom: 12px;
  655. padding-bottom: 12px;
  656. border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  657. .device-name {
  658. font-size: 14px;
  659. font-weight: 500;
  660. color: rgba(255, 255, 255, 0.9);
  661. flex: 1;
  662. overflow: hidden;
  663. text-overflow: ellipsis;
  664. white-space: nowrap;
  665. }
  666. .card-actions {
  667. .alarm-icon {
  668. font-size: 18px;
  669. color: rgba(255, 255, 255, 0.4);
  670. &.has-alarm {
  671. color: #ff6b6b;
  672. animation: bellshake 2s infinite;
  673. }
  674. }
  675. }
  676. }
  677. .card-body {
  678. .status-tag {
  679. margin-bottom: 12px;
  680. }
  681. .info-grid {
  682. display: grid;
  683. grid-template-columns: 1fr 1fr;
  684. gap: 8px;
  685. .info-row {
  686. display: flex;
  687. align-items: center;
  688. margin-bottom: 0;
  689. .info-label {
  690. font-size: 12px;
  691. color: rgba(255, 255, 255, 0.5);
  692. min-width: 60px;
  693. }
  694. .info-value {
  695. font-size: 12px;
  696. color: rgba(255, 255, 255, 0.7);
  697. flex: 1;
  698. overflow: hidden;
  699. text-overflow: ellipsis;
  700. white-space: nowrap;
  701. margin-left: 5px;
  702. }
  703. }
  704. }
  705. }
  706. }
  707. }
  708. .pagination-area {
  709. margin-top: 15px;
  710. padding: 15px 0;
  711. ::v-deep .el-pagination {
  712. justify-content: flex-end;
  713. .el-pagination__total {
  714. margin-right: 16px;
  715. color: rgba(255, 255, 255, 0.6);
  716. }
  717. .el-pagination__sizes {
  718. margin-right: 16px;
  719. .el-select .el-input .el-input__inner {
  720. background: rgba(255, 255, 255, 0.1);
  721. border-color: rgba(255, 255, 255, 0.2);
  722. color: rgba(255, 255, 255, 0.8);
  723. &::-webkit-input-placeholder {
  724. color: rgba(255, 255, 255, 0.4);
  725. }
  726. }
  727. .el-select-dropdown {
  728. background: #1a1c2e;
  729. border-color: rgba(255, 255, 255, 0.2);
  730. .el-select-dropdown__item {
  731. color: rgba(255, 255, 255, 0.8);
  732. &:hover,
  733. &.selected {
  734. background: rgba(64, 158, 255, 0.2);
  735. color: #fff;
  736. }
  737. }
  738. }
  739. }
  740. .el-pager {
  741. margin: 0 4px;
  742. li {
  743. margin: 0 4px;
  744. border-radius: 50%;
  745. min-width: 28px;
  746. height: 28px;
  747. line-height: 28px;
  748. background: rgba(255, 255, 255, 0.05);
  749. color: rgba(255, 255, 255, 0.6);
  750. &.active {
  751. background-color: #409eff;
  752. color: #fff !important;
  753. border-radius: 50%;
  754. }
  755. &:hover {
  756. color: #409eff;
  757. background: rgba(255, 255, 255, 0.1);
  758. }
  759. }
  760. }
  761. .btn-prev,
  762. .btn-next {
  763. border-radius: 50%;
  764. min-width: 28px;
  765. height: 28px;
  766. line-height: 28px;
  767. padding: 0;
  768. background: rgba(255, 255, 255, 0.05);
  769. color: rgba(255, 255, 255, 0.6);
  770. &:hover {
  771. color: #409eff;
  772. background: rgba(255, 255, 255, 0.1);
  773. }
  774. &.disabled {
  775. background: rgba(255, 255, 255, 0.02);
  776. color: rgba(255, 255, 255, 0.2);
  777. }
  778. }
  779. .el-pagination__jump {
  780. margin-left: 16px;
  781. color: rgba(255, 255, 255, 0.6);
  782. input {
  783. background: rgba(255, 255, 255, 0.1);
  784. border-color: rgba(255, 255, 255, 0.2);
  785. color: rgba(255, 255, 255, 0.8);
  786. &::-webkit-input-placeholder {
  787. color: rgba(255, 255, 255, 0.4);
  788. }
  789. }
  790. }
  791. }
  792. }
  793. ::v-deep .el-pagination {
  794. justify-content: flex-end;
  795. }
  796. }
  797. }
  798. @keyframes bellshake {
  799. 0%,
  800. 100% {
  801. transform: rotate(0deg);
  802. }
  803. 10%,
  804. 30%,
  805. 50%,
  806. 70%,
  807. 90% {
  808. transform: rotate(-10deg);
  809. }
  810. 20%,
  811. 40%,
  812. 60%,
  813. 80% {
  814. transform: rotate(10deg);
  815. }
  816. }
  817. </style>