list.vue 28 KB

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