list.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149
  1. <template>
  2. <div
  3. class="main-content"
  4. :style="{ width: '100%', padding: '20px 30px', fontSize: '15px' }"
  5. >
  6. <!-- 列表页 -->
  7. <template>
  8. <el-form
  9. class="center-form-pv"
  10. :style="{
  11. border: '0px solid #fff',
  12. padding: '10px',
  13. margin: '0',
  14. flexWrap: 'wrap',
  15. background: '#ffffff',
  16. display: 'flex',
  17. width: '100%',
  18. }"
  19. :inline="true"
  20. :model="searchForm"
  21. >
  22. <el-row
  23. :style="{
  24. padding: '10px',
  25. alignItems: 'center',
  26. flexWrap: 'wrap',
  27. background: 'none',
  28. display: 'flex',
  29. }"
  30. >
  31. <div
  32. :style="{
  33. alignItems: 'center',
  34. margin: '0 10px 0 0',
  35. display: 'flex',
  36. }"
  37. >
  38. <label
  39. :style="{
  40. margin: '0 10px 0 0',
  41. whiteSpace: 'nowrap',
  42. color: '#666',
  43. display: 'inline-block',
  44. lineHeight: '40px',
  45. fontSize: 'inherit',
  46. fontWeight: '500',
  47. height: '40px',
  48. }"
  49. class="item-label"
  50. >变电站名称</label
  51. >
  52. <el-input
  53. v-model="searchForm.subName"
  54. placeholder="变电站名称"
  55. @keydown.enter.native="search()"
  56. clearable
  57. ></el-input>
  58. </div>
  59. <el-button class="search" type="success" @click="search()">
  60. <span
  61. class="icon iconfont icon-fangdajing07"
  62. :style="{
  63. margin: '0 2px',
  64. fontSize: '16px',
  65. color: '#fff',
  66. display: 'none',
  67. height: '40px',
  68. }"
  69. ></span>
  70. 搜索
  71. </el-button>
  72. </el-row>
  73. <el-row
  74. class="actions"
  75. :style="{
  76. padding: '10px',
  77. margin: '0px 0',
  78. flexWrap: 'wrap',
  79. background: 'none',
  80. display: 'flex',
  81. }"
  82. >
  83. <el-button
  84. class="add"
  85. type="success"
  86. @click="addOrUpdateHandler(null, 'add')"
  87. >
  88. <span
  89. class="icon iconfont icon-xihuan"
  90. :style="{
  91. margin: '0 2px',
  92. fontSize: '14px',
  93. color: '#fff',
  94. display: 'none',
  95. height: '34px',
  96. }"
  97. ></span>
  98. 添加
  99. </el-button>
  100. <el-button
  101. class="del"
  102. :disabled="dataListSelections.length ? false : true"
  103. type="danger"
  104. @click="deleteHandler()"
  105. >
  106. <span
  107. class="icon iconfont icon-xihuan"
  108. :style="{
  109. margin: '0 2px',
  110. fontSize: '14px',
  111. color: '#fff',
  112. display: 'none',
  113. height: '34px',
  114. }"
  115. ></span>
  116. 批量删除
  117. </el-button>
  118. </el-row>
  119. </el-form>
  120. <div
  121. :style="{
  122. border: '0px solid #fff',
  123. width: '100%',
  124. padding: '0 20px 20px',
  125. fontSize: '14px',
  126. color: '#000',
  127. background: '#fff',
  128. }"
  129. >
  130. <el-table
  131. class="tables"
  132. :stripe="false"
  133. :style="{
  134. padding: '0px 0',
  135. borderColor: '#f0f0f0',
  136. borderRadius: '0',
  137. borderWidth: '0px 0 0 1px',
  138. background: '#fff',
  139. width: '100%',
  140. fontSize: 'inherit',
  141. borderStyle: 'solid',
  142. }"
  143. :border="true"
  144. :data="dataList"
  145. v-loading="dataListLoading"
  146. @selection-change="selectionChangeHandler"
  147. >
  148. <el-table-column
  149. :resizable="true"
  150. type="selection"
  151. align="center"
  152. width="50"
  153. ></el-table-column>
  154. <el-table-column
  155. :resizable="true"
  156. :sortable="true"
  157. label="序号"
  158. type="index"
  159. width="50"
  160. />
  161. <el-table-column
  162. :resizable="true"
  163. :sortable="true"
  164. prop="subName"
  165. label="变电站名称"
  166. >
  167. <template slot-scope="scope">
  168. {{ scope.row.subName }}
  169. </template>
  170. </el-table-column>
  171. <el-table-column
  172. :resizable="true"
  173. :sortable="true"
  174. prop="voltageLevel"
  175. label="电压等级"
  176. >
  177. <template slot-scope="scope">
  178. {{ scope.row.voltageLevel }}
  179. </template>
  180. </el-table-column>
  181. <el-table-column
  182. :resizable="true"
  183. :sortable="true"
  184. prop="mainNum"
  185. label="主变台数"
  186. >
  187. <template slot-scope="scope">
  188. {{ scope.row.mainNum }}
  189. </template>
  190. </el-table-column>
  191. <el-table-column
  192. :resizable="true"
  193. :sortable="true"
  194. prop="mainCapacity"
  195. label="主变容量(MVA)"
  196. >
  197. <template slot-scope="scope">
  198. {{ scope.row.mainCapacity }}
  199. </template>
  200. </el-table-column>
  201. <el-table-column
  202. :resizable="true"
  203. :sortable="true"
  204. prop="alarmThreshold"
  205. label="负荷报警阀值"
  206. >
  207. <template slot-scope="scope">
  208. {{ scope.row.alarmThreshold }}
  209. </template>
  210. </el-table-column>
  211. <el-table-column
  212. :resizable="true"
  213. :sortable="true"
  214. prop="cityName"
  215. label="归属市名称"
  216. >
  217. <template slot-scope="scope">
  218. {{ scope.row.cityName }}
  219. </template>
  220. </el-table-column>
  221. <el-table-column
  222. :resizable="true"
  223. :sortable="true"
  224. prop="compName"
  225. label="归属旗县"
  226. >
  227. <template slot-scope="scope">
  228. {{ scope.row.compName }}
  229. </template>
  230. </el-table-column>
  231. <el-table-column
  232. :resizable="true"
  233. :sortable="true"
  234. prop="remark"
  235. label="备注"
  236. >
  237. <template slot-scope="scope">
  238. {{ scope.row.remark }}
  239. </template>
  240. </el-table-column>
  241. <el-table-column width="260" label="操作">
  242. <template slot-scope="scope">
  243. <el-button
  244. class="view"
  245. type="success"
  246. @click="addOrUpdateHandler(scope.row.id, 'view')"
  247. >
  248. <span
  249. class="icon iconfont icon-xihuan"
  250. :style="{
  251. margin: '0 2px',
  252. fontSize: '14px',
  253. color: '#fff',
  254. display: 'none',
  255. height: '40px',
  256. }"
  257. ></span>
  258. 查看
  259. </el-button>
  260. <el-button
  261. class="edit"
  262. type="success"
  263. @click="addOrUpdateHandler(scope.row.id, 'edit')"
  264. >
  265. <span
  266. class="icon iconfont icon-xihuan"
  267. :style="{
  268. margin: '0 2px',
  269. fontSize: '14px',
  270. color: '#fff',
  271. display: 'none',
  272. height: '40px',
  273. }"
  274. ></span>
  275. 修改
  276. </el-button>
  277. <el-button
  278. class="del"
  279. type="primary"
  280. @click="deleteHandler(scope.row.id)"
  281. >
  282. <span
  283. class="icon iconfont icon-xihuan"
  284. :style="{
  285. margin: '0 2px',
  286. fontSize: '14px',
  287. color: '#fff',
  288. display: 'none',
  289. height: '40px',
  290. }"
  291. ></span>
  292. 删除
  293. </el-button>
  294. <el-button
  295. class="view"
  296. type="primary"
  297. @click="lineHandler(scope.row)"
  298. >
  299. <span
  300. class="icon iconfont icon-xihuan"
  301. :style="{
  302. margin: '0 2px',
  303. fontSize: '14px',
  304. color: '#fff',
  305. display: 'none',
  306. height: '40px',
  307. }"
  308. ></span>
  309. 线路
  310. </el-button>
  311. </template>
  312. </el-table-column>
  313. </el-table>
  314. </div>
  315. <el-pagination
  316. @size-change="sizeChangeHandle"
  317. @current-change="currentChangeHandle"
  318. :current-page="pageIndex"
  319. background
  320. :page-sizes="[10, 50, 100, 200]"
  321. :page-size="pageSize"
  322. :layout="layouts.join()"
  323. :total="totalPage"
  324. prev-text="< "
  325. next-text="> "
  326. :hide-on-single-page="false"
  327. :style="{
  328. padding: '0 20px 20px',
  329. margin: '0px auto',
  330. whiteSpace: 'nowrap',
  331. color: '#333',
  332. textAlign: 'left',
  333. background: '#fff',
  334. width: '100%',
  335. fontSize: 'inherit',
  336. position: 'relative',
  337. fontWeight: '500',
  338. }"
  339. ></el-pagination>
  340. </template>
  341. <!-- 添加/修改页面 将父组件的search方法传递给子组件-->
  342. <add-or-update :parent="this" ref="addOrUpdate"></add-or-update>
  343. <!-- 线路页面 -->
  344. <line-list :parent="this" ref="line"></line-list>
  345. </div>
  346. </template>
  347. <script>
  348. import AddOrUpdate from "./components/add-or-update";
  349. import LineList from "./components/line-list";
  350. export default {
  351. data() {
  352. return {
  353. searchForm: {
  354. subName: "",
  355. },
  356. form: {},
  357. dataList: [],
  358. pageIndex: 1,
  359. pageSize: 10,
  360. totalPage: 0,
  361. dataListLoading: false,
  362. dataListSelections: [],
  363. layouts: ["prev", "pager", "next", "sizes"],
  364. };
  365. },
  366. created() {
  367. this.getDataList();
  368. },
  369. mounted() {},
  370. computed: {},
  371. components: {
  372. AddOrUpdate,
  373. LineList,
  374. },
  375. methods: {
  376. search() {
  377. this.pageIndex = 1;
  378. this.getDataList();
  379. },
  380. lineHandler(info) {
  381. this.$refs.line.openDrawer(info);
  382. },
  383. // 获取数据列表
  384. getDataList() {
  385. this.dataListLoading = true;
  386. let params = {
  387. page: this.pageIndex,
  388. limit: this.pageSize,
  389. sort: "id",
  390. order: "desc",
  391. };
  392. if (
  393. this.searchForm.subName != "" &&
  394. this.searchForm.subName != undefined
  395. ) {
  396. params["subName"] = "%" + this.searchForm.subName + "%";
  397. }
  398. this.$http({
  399. url: "/sub/page",
  400. method: "get",
  401. params: params,
  402. }).then(({ data }) => {
  403. if (data && data.code === 0) {
  404. this.dataList = data.data.list;
  405. this.totalPage = data.data.total;
  406. } else {
  407. this.dataList = [];
  408. this.totalPage = 0;
  409. }
  410. this.dataListLoading = false;
  411. });
  412. },
  413. // 每页数
  414. sizeChangeHandle(val) {
  415. this.pageSize = val;
  416. this.pageIndex = 1;
  417. this.getDataList();
  418. },
  419. // 当前页
  420. currentChangeHandle(val) {
  421. this.pageIndex = val;
  422. this.getDataList();
  423. },
  424. // 多选
  425. selectionChangeHandler(val) {
  426. this.dataListSelections = val;
  427. },
  428. // 添加/修改
  429. addOrUpdateHandler(id, type) {
  430. this.$refs.addOrUpdate.openDialog(id, type);
  431. },
  432. // 删除
  433. async deleteHandler(id) {
  434. var ids = id
  435. ? [Number(id)]
  436. : this.dataListSelections.map((item) => {
  437. return Number(item.id);
  438. });
  439. await this.$confirm(
  440. `确定进行[${id ? "删除" : "批量删除"}]操作?`,
  441. "提示",
  442. {
  443. confirmButtonText: "确定",
  444. cancelButtonText: "取消",
  445. type: "warning",
  446. }
  447. ).then(async () => {
  448. await this.$http({
  449. url: "sub/delete",
  450. method: "post",
  451. data: ids,
  452. }).then(async ({ data }) => {
  453. if (data && data.code === 0) {
  454. this.$message({
  455. message: "操作成功",
  456. type: "success",
  457. });
  458. this.search();
  459. } else {
  460. this.$message.error(data.msg);
  461. }
  462. });
  463. });
  464. },
  465. },
  466. };
  467. </script>
  468. <style lang="scss" scoped>
  469. .center-form-pv {
  470. .el-date-editor.el-input {
  471. width: auto;
  472. }
  473. }
  474. .el-input {
  475. width: auto;
  476. }
  477. // form
  478. .center-form-pv .el-input {
  479. width: auto;
  480. }
  481. .center-form-pv .el-input ::v-deep .el-input__inner {
  482. border: 1px solid #ddd;
  483. border-radius: 0px;
  484. padding: 0 12px;
  485. color: #666;
  486. width: 150px;
  487. font-size: 15px;
  488. height: 40px;
  489. }
  490. .center-form-pv .el-select {
  491. width: auto;
  492. }
  493. .center-form-pv .el-select ::v-deep .el-input__inner {
  494. border: 1px solid #ddd;
  495. border-radius: 0px;
  496. padding: 0 10px;
  497. color: #666;
  498. width: 150px;
  499. font-size: 15px;
  500. height: 40px;
  501. }
  502. .center-form-pv .el-date-editor {
  503. width: auto;
  504. }
  505. .center-form-pv .el-date-editor ::v-deep .el-input__inner {
  506. border: 1px solid #ddd;
  507. border-radius: 0px;
  508. padding: 0 10px 0 30px;
  509. color: #666;
  510. width: 150px;
  511. font-size: 15px;
  512. height: 40px;
  513. }
  514. .center-form-pv .search {
  515. border: 0;
  516. cursor: pointer;
  517. border-radius: 0px;
  518. padding: 0 20px;
  519. color: #fff;
  520. background: #0977fd;
  521. width: auto;
  522. font-size: 16px;
  523. min-width: 90px;
  524. height: 40px;
  525. }
  526. .center-form-pv .search:hover {
  527. opacity: 0.8;
  528. }
  529. .center-form-pv .actions .add {
  530. border: 1px solid #0977fd60;
  531. cursor: pointer;
  532. border-radius: 0px;
  533. padding: 0 10px;
  534. margin: 4px;
  535. color: #0977fd;
  536. background: #fff;
  537. width: auto;
  538. font-size: inherit;
  539. height: 34px;
  540. }
  541. .center-form-pv .actions .add:hover {
  542. opacity: 0.8;
  543. }
  544. .center-form-pv .actions .del {
  545. border: 1px solid #cc000060;
  546. cursor: pointer;
  547. border-radius: 0px;
  548. padding: 0 10px;
  549. margin: 4px;
  550. color: #c00;
  551. background: #fff;
  552. width: auto;
  553. font-size: inherit;
  554. height: 34px;
  555. }
  556. .center-form-pv .actions .del:hover {
  557. opacity: 0.8;
  558. }
  559. .center-form-pv .actions .statis {
  560. border: 1px solid #e0970460;
  561. cursor: pointer;
  562. border-radius: 0px;
  563. padding: 0 20px;
  564. margin: 4px;
  565. color: #e09704;
  566. background: #fff;
  567. width: auto;
  568. font-size: inherit;
  569. height: 34px;
  570. }
  571. .center-form-pv .actions .statis:hover {
  572. opacity: 0.8;
  573. }
  574. .center-form-pv .actions .btn18 {
  575. border: 1px solid #ed9a0d60;
  576. cursor: pointer;
  577. border-radius: 0px;
  578. padding: 0 10px;
  579. margin: 4px;
  580. color: #ed9a0d;
  581. background: #fff;
  582. width: auto;
  583. font-size: inherit;
  584. height: 34px;
  585. }
  586. .center-form-pv .actions .btn18:hover {
  587. opacity: 0.8;
  588. }
  589. // table
  590. .el-table ::v-deep .el-table__header-wrapper thead {
  591. color: #999;
  592. background: #fff;
  593. font-weight: 500;
  594. width: 100%;
  595. }
  596. .el-table ::v-deep .el-table__header-wrapper thead tr {
  597. background: #cae2ff;
  598. }
  599. .el-table ::v-deep .el-table__header-wrapper thead tr th {
  600. padding: 8px 0;
  601. background: none;
  602. border-color: #f6f6f6;
  603. border-width: 0 0px 0px 0;
  604. border-style: solid;
  605. text-align: left;
  606. }
  607. .el-table ::v-deep .el-table__header-wrapper thead tr th .cell {
  608. padding: 0 0 0 5px;
  609. word-wrap: normal;
  610. color: #0977fd;
  611. white-space: normal;
  612. font-weight: bold;
  613. display: flex;
  614. vertical-align: middle;
  615. font-size: 14px;
  616. line-height: 24px;
  617. text-overflow: ellipsis;
  618. word-break: break-all;
  619. width: 100%;
  620. align-items: center;
  621. position: relative;
  622. min-width: 110px;
  623. }
  624. .el-table ::v-deep .el-table__body-wrapper {
  625. position: relative;
  626. }
  627. .el-table ::v-deep .el-table__body-wrapper tbody {
  628. width: 100%;
  629. }
  630. .el-table ::v-deep .el-table__body-wrapper tbody tr {
  631. background: #fff;
  632. }
  633. .el-table ::v-deep .el-table__body-wrapper tbody tr td {
  634. padding: 4px 0;
  635. color: #333;
  636. background: #fff;
  637. font-size: inherit;
  638. border-color: #0977fd30;
  639. border-width: 0 0px 1px 0;
  640. border-style: solid;
  641. text-align: left;
  642. }
  643. .el-table ::v-deep .el-table__body-wrapper tbody tr:hover td {
  644. padding: 4px 0;
  645. color: #333;
  646. background: #f4f9ff;
  647. border-color: #0977fd30;
  648. border-width: 0 0px 1px 0;
  649. border-style: solid;
  650. text-align: left;
  651. }
  652. .el-table ::v-deep .el-table__body-wrapper tbody tr td {
  653. padding: 4px 0;
  654. color: #333;
  655. background: #fff;
  656. font-size: inherit;
  657. border-color: #0977fd30;
  658. border-width: 0 0px 1px 0;
  659. border-style: solid;
  660. text-align: left;
  661. }
  662. .el-table ::v-deep .el-table__body-wrapper tbody tr td .cell {
  663. padding: 0 0 0 5px;
  664. overflow: hidden;
  665. word-break: break-all;
  666. white-space: normal;
  667. font-size: inherit;
  668. line-height: 24px;
  669. text-overflow: ellipsis;
  670. }
  671. .el-table ::v-deep .el-table__body-wrapper tbody tr td .view {
  672. border: 1px solid #0977fd60;
  673. cursor: pointer;
  674. border-radius: 0px;
  675. padding: 0 10px;
  676. margin: 0 5px 5px 0;
  677. color: #0977fd;
  678. background: #fff;
  679. width: auto;
  680. font-size: 14px;
  681. height: 32px;
  682. }
  683. .el-table ::v-deep .el-table__body-wrapper tbody tr td .view:hover {
  684. opacity: 0.8;
  685. }
  686. .el-table ::v-deep .el-table__body-wrapper tbody tr td .add {
  687. }
  688. .el-table ::v-deep .el-table__body-wrapper tbody tr td .add:hover {
  689. }
  690. .el-table ::v-deep .el-table__body-wrapper tbody tr td .edit {
  691. border: 1px solid #21c79260;
  692. cursor: pointer;
  693. border-radius: 0px;
  694. padding: 0 10px;
  695. margin: 0 5px 5px 0;
  696. color: #21c792;
  697. background: #fff;
  698. width: auto;
  699. font-size: 14px;
  700. height: 32px;
  701. }
  702. .el-table ::v-deep .el-table__body-wrapper tbody tr td .edit:hover {
  703. opacity: 0.8;
  704. }
  705. .el-table ::v-deep .el-table__body-wrapper tbody tr td .del {
  706. border: 1px solid #cc000060;
  707. cursor: pointer;
  708. border-radius: 0px;
  709. padding: 0 10px;
  710. margin: 0 5px 5px 0;
  711. color: #c00;
  712. background: #fff;
  713. width: auto;
  714. font-size: 14px;
  715. height: 32px;
  716. }
  717. .el-table ::v-deep .el-table__body-wrapper tbody tr td .del:hover {
  718. opacity: 0.8;
  719. }
  720. .el-table ::v-deep .el-table__body-wrapper tbody tr td .btn8 {
  721. border: 1px solid #ed9a0d60;
  722. cursor: pointer;
  723. border-radius: 0px;
  724. padding: 0 10px;
  725. margin: 0 5px 5px 0;
  726. color: #ed9a0d;
  727. background: #fff;
  728. width: auto;
  729. font-size: 14px;
  730. height: 32px;
  731. }
  732. .el-table ::v-deep .el-table__body-wrapper tbody tr td .btn8:hover {
  733. opacity: 0.8;
  734. }
  735. // pagination
  736. .main-content .el-pagination ::v-deep .el-pagination__total {
  737. margin: 0 10px 0 0;
  738. color: #666;
  739. font-weight: 400;
  740. display: inline-block;
  741. vertical-align: top;
  742. font-size: inherit;
  743. line-height: 28px;
  744. height: 28px;
  745. }
  746. .main-content .el-pagination ::v-deep .btn-prev {
  747. border: none;
  748. border-radius: 100px;
  749. padding: 0;
  750. margin: 0 5px;
  751. color: #fff;
  752. background: #000;
  753. display: inline-block;
  754. vertical-align: top;
  755. width: 28px;
  756. font-size: 16px;
  757. line-height: auto;
  758. height: 28px;
  759. }
  760. .main-content .el-pagination ::v-deep .btn-next {
  761. border: none;
  762. border-radius: 100%;
  763. padding: 0;
  764. margin: 0 5px;
  765. color: #fff;
  766. background: #000;
  767. display: inline-block;
  768. vertical-align: top;
  769. width: 28px;
  770. font-size: 16px;
  771. line-height: auto;
  772. height: 28px;
  773. }
  774. .main-content .el-pagination ::v-deep .btn-prev:disabled {
  775. border: none;
  776. cursor: not-allowed;
  777. padding: 0;
  778. margin: 0 5px;
  779. color: #666;
  780. display: inline-block;
  781. vertical-align: top;
  782. font-size: 16px;
  783. line-height: auto;
  784. border-radius: 100px;
  785. background: #ccc;
  786. width: 28px;
  787. height: 28px;
  788. }
  789. .main-content .el-pagination ::v-deep .btn-next:disabled {
  790. border: none;
  791. cursor: not-allowed;
  792. padding: 0;
  793. margin: 0 5px;
  794. color: #666;
  795. display: inline-block;
  796. vertical-align: top;
  797. font-size: 16px;
  798. line-height: auto;
  799. border-radius: 100px;
  800. background: #ccc;
  801. width: 28px;
  802. height: 28px;
  803. }
  804. .main-content .el-pagination ::v-deep .el-pager {
  805. padding: 0;
  806. margin: 0;
  807. display: inline-block;
  808. vertical-align: top;
  809. }
  810. .main-content .el-pagination ::v-deep .el-pager .number {
  811. cursor: pointer;
  812. border-radius: 100%;
  813. padding: 0 10px;
  814. margin: 0 2px;
  815. color: #fff;
  816. background: #b9b9b9;
  817. display: inline-block;
  818. vertical-align: top;
  819. font-size: 16px;
  820. line-height: 28px;
  821. text-align: center;
  822. height: 28px;
  823. }
  824. .main-content .el-pagination ::v-deep .el-pager .number:hover {
  825. cursor: pointer;
  826. border-radius: 100%;
  827. padding: 0 10px;
  828. margin: 0 2px;
  829. color: #fff;
  830. background: #0977fd;
  831. display: inline-block;
  832. vertical-align: top;
  833. font-size: 16px;
  834. line-height: 28px;
  835. text-align: center;
  836. height: 28px;
  837. }
  838. .main-content .el-pagination ::v-deep .el-pager .number.active {
  839. cursor: default;
  840. border-radius: 100%;
  841. padding: 0 10px;
  842. margin: 0 2px;
  843. color: #fff;
  844. background: #0977fd;
  845. display: inline-block;
  846. vertical-align: top;
  847. font-size: 16px;
  848. line-height: 28px;
  849. text-align: center;
  850. height: 28px;
  851. }
  852. .main-content .el-pagination ::v-deep .el-pagination__sizes {
  853. display: inline-block;
  854. vertical-align: top;
  855. font-size: 15px;
  856. line-height: 28px;
  857. height: 28px;
  858. }
  859. .main-content .el-pagination ::v-deep .el-pagination__sizes .el-input {
  860. margin: 0 5px;
  861. width: 100px;
  862. position: relative;
  863. }
  864. .main-content
  865. .el-pagination
  866. ::v-deep
  867. .el-pagination__sizes
  868. .el-input
  869. .el-input__inner {
  870. border: 1px solid #dcdfe6;
  871. cursor: pointer;
  872. padding: 0 25px 0 8px;
  873. color: #606266;
  874. display: inline-block;
  875. font-size: 15px;
  876. line-height: 28px;
  877. border-radius: 10px;
  878. outline: 0;
  879. background: #fff;
  880. width: 100%;
  881. text-align: center;
  882. height: 28px;
  883. }
  884. .main-content
  885. .el-pagination
  886. ::v-deep
  887. .el-pagination__sizes
  888. .el-input
  889. span.el-input__suffix {
  890. top: 0;
  891. position: absolute;
  892. right: 0;
  893. height: 100%;
  894. }
  895. .main-content
  896. .el-pagination
  897. ::v-deep
  898. .el-pagination__sizes
  899. .el-input
  900. .el-input__suffix
  901. .el-select__caret {
  902. cursor: pointer;
  903. color: #c0c4cc;
  904. width: 25px;
  905. font-size: 14px;
  906. line-height: 28px;
  907. text-align: center;
  908. }
  909. .main-content .el-pagination ::v-deep .el-pagination__jump {
  910. margin: 0 0 0 24px;
  911. color: #606266;
  912. display: inline-block;
  913. vertical-align: top;
  914. font-size: 15px;
  915. line-height: 28px;
  916. height: 28px;
  917. }
  918. .main-content .el-pagination ::v-deep .el-pagination__jump .el-input {
  919. border-radius: 3px;
  920. padding: 0 2px;
  921. margin: 0 2px;
  922. display: inline-block;
  923. width: 50px;
  924. font-size: 15px;
  925. line-height: 18px;
  926. position: relative;
  927. text-align: center;
  928. height: 28px;
  929. }
  930. .main-content
  931. .el-pagination
  932. ::v-deep
  933. .el-pagination__jump
  934. .el-input
  935. .el-input__inner {
  936. border: 1px solid #dcdfe6;
  937. cursor: pointer;
  938. padding: 0 3px;
  939. color: #606266;
  940. display: inline-block;
  941. font-size: 15px;
  942. line-height: 28px;
  943. border-radius: 3px;
  944. outline: 0;
  945. background: #fff;
  946. width: 100%;
  947. text-align: center;
  948. height: 28px;
  949. }
  950. // list one
  951. .one .list1-view {
  952. border: 0;
  953. cursor: pointer;
  954. border-radius: 4px;
  955. padding: 0 15px;
  956. margin: 0 5px 5px 0;
  957. outline: none;
  958. color: #fff;
  959. background: #157ed2;
  960. width: auto;
  961. font-size: 14px;
  962. height: 32px;
  963. }
  964. .one .list1-view:hover {
  965. opacity: 0.8;
  966. }
  967. .one .list1-edit {
  968. border: 0;
  969. cursor: pointer;
  970. border-radius: 4px;
  971. padding: 0 15px;
  972. margin: 0 5px 5px 0;
  973. outline: none;
  974. color: #fff;
  975. background: #409eff;
  976. width: auto;
  977. font-size: 14px;
  978. height: 32px;
  979. }
  980. .one .list1-edit:hover {
  981. opacity: 0.8;
  982. }
  983. .one .list1-del {
  984. border: 0;
  985. cursor: pointer;
  986. border-radius: 4px;
  987. padding: 0 15px;
  988. margin: 0 5px 5px 0;
  989. outline: none;
  990. color: #fff;
  991. background: rgba(255, 0, 0, 1);
  992. width: auto;
  993. font-size: 14px;
  994. height: 32px;
  995. }
  996. .one .list1-del:hover {
  997. opacity: 0.8;
  998. }
  999. .one .list1-btn8 {
  1000. border: 0;
  1001. cursor: pointer;
  1002. border-radius: 4px;
  1003. padding: 0 24px;
  1004. margin: 0 5px 5px 0;
  1005. outline: none;
  1006. color: #fff;
  1007. background: rgba(255, 128, 0, 1);
  1008. width: auto;
  1009. font-size: 14px;
  1010. height: 32px;
  1011. }
  1012. .one .list1-btn8:hover {
  1013. opacity: 0.8;
  1014. }
  1015. .main-content .el-table .el-switch {
  1016. display: inline-flex;
  1017. vertical-align: middle;
  1018. line-height: 30px;
  1019. position: relative;
  1020. align-items: center;
  1021. height: 30px;
  1022. }
  1023. .main-content .el-table .el-switch ::v-deep .el-switch__label--left {
  1024. cursor: pointer;
  1025. margin: 0 10px 0 0;
  1026. color: #333;
  1027. font-weight: 500;
  1028. display: inline-block;
  1029. vertical-align: middle;
  1030. font-size: 16px;
  1031. transition: 0.2s;
  1032. height: 30px;
  1033. }
  1034. .main-content .el-table .el-switch ::v-deep .el-switch__label--right {
  1035. cursor: pointer;
  1036. margin: 0 0 0 10px;
  1037. color: #333;
  1038. font-weight: 500;
  1039. display: inline-block;
  1040. vertical-align: middle;
  1041. font-size: 16px;
  1042. transition: 0.2s;
  1043. height: 30px;
  1044. }
  1045. .main-content .el-table .el-switch ::v-deep .el-switch__core {
  1046. border: 1px solid #75c0d6;
  1047. cursor: pointer;
  1048. border-radius: 15px;
  1049. margin: 0;
  1050. background: #75c0d6;
  1051. display: inline-block;
  1052. width: 42px;
  1053. box-sizing: border-box;
  1054. transition: border-color 0.3s, background-color 0.3s;
  1055. height: 20px;
  1056. }
  1057. .main-content .el-table .el-switch ::v-deep .el-switch__core::after {
  1058. border-radius: 100%;
  1059. top: 1px;
  1060. left: 1px;
  1061. background: #fff;
  1062. width: 16px;
  1063. position: absolute;
  1064. transition: all 0.3s;
  1065. height: 16px;
  1066. }
  1067. .main-content .el-table .el-switch.is-checked ::v-deep .el-switch__core::after {
  1068. margin: 0 0 0 -18px;
  1069. left: 100%;
  1070. }
  1071. .main-content .el-table .el-rate ::v-deep .el-rate__item {
  1072. cursor: pointer;
  1073. display: inline-block;
  1074. vertical-align: middle;
  1075. font-size: 0;
  1076. position: relative;
  1077. }
  1078. .main-content .el-table .el-rate ::v-deep .el-rate__item .el-rate__icon {
  1079. margin: 0 3px;
  1080. display: inline-block;
  1081. font-size: 18px;
  1082. position: relative;
  1083. transition: 0.3s;
  1084. }
  1085. </style>