list.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924
  1. <template>
  2. <div class="main-content" :style='{"width":"100%","padding":"20px 30px","fontSize":"15px"}'>
  3. <!-- 列表页 -->
  4. <template v-if="showFlag">
  5. <el-form class="center-form-pv" :style='{"border":"0px solid #fff","padding":"10px","margin":"0","flexWrap":"wrap","background":"#ffffff","display":"flex","width":"100%"}' :inline="true" :model="searchForm">
  6. <el-row class="actions" :style='{"padding":"10px","margin":"0px 0","flexWrap":"wrap","background":"none","display":"flex"}'>
  7. </el-row>
  8. </el-form>
  9. <div :style='{"border":"0px solid #fff","width":"100%","padding":"0 20px 20px","fontSize":"14px","color":"#000","background":"#fff"}'>
  10. <el-table class="tables"
  11. :stripe='false'
  12. :style='{"padding":"0px 0","borderColor":"#f0f0f0","borderRadius":"0","borderWidth":"0px 0 0 1px","background":"#fff","width":"100%","fontSize":"inherit","borderStyle":"solid"}'
  13. :border='true'
  14. v-if="isAuth('config','查看')"
  15. :data="dataList"
  16. v-loading="dataListLoading"
  17. @selection-change="selectionChangeHandler">
  18. <el-table-column :resizable='true' type="selection" align="center" width="50"></el-table-column>
  19. <el-table-column :resizable='true' :sortable='true' label="序号" type="index" width="50" />
  20. <el-table-column :resizable='true' :sortable='true'
  21. prop="name"
  22. label="名称">
  23. <template slot-scope="scope">
  24. {{scope.row.name}}
  25. </template>
  26. </el-table-column>
  27. <el-table-column :resizable='true' prop="value" width="200" label="值">
  28. <template slot-scope="scope">
  29. <div v-if="scope.row.value">
  30. <img v-if="scope.row.value.substring(0,4)=='http'&&scope.row.value.split(',w').length>1" :src="scope.row.value" width="100" height="100" style="object-fit: cover" @click="imgPreView(scope.row.value)">
  31. <img v-else-if="scope.row.value.substring(0,4)=='http'" :src="scope.row.value.split(',')[0]" width="100" height="100" style="object-fit: cover" @click="imgPreView(scope.row.value.split(',')[0])">
  32. <img v-else :src="$base.url+scope.row.value.split(',')[0]" width="100" height="100" style="object-fit: cover" @click="imgPreView($base.url+scope.row.value.split(',')[0])">
  33. </div>
  34. <div v-else>无图片</div>
  35. </template>
  36. </el-table-column>
  37. <el-table-column width="300" label="操作">
  38. <template slot-scope="scope">
  39. <el-button class="view" v-if=" isAuth('config','查看')" type="success" @click="addOrUpdateHandler(scope.row.id,'info')">
  40. <span class="icon iconfont icon-xihuan" :style='{"margin":"0 2px","fontSize":"14px","color":"#fff","display":"none","height":"40px"}'></span>
  41. 查看
  42. </el-button>
  43. <el-button class="edit" v-if=" isAuth('config','修改') " type="success" @click="addOrUpdateHandler(scope.row.id)">
  44. <span class="icon iconfont icon-xihuan" :style='{"margin":"0 2px","fontSize":"14px","color":"#fff","display":"none","height":"40px"}'></span>
  45. 修改
  46. </el-button>
  47. </template>
  48. </el-table-column>
  49. </el-table>
  50. </div>
  51. <el-pagination
  52. @size-change="sizeChangeHandle"
  53. @current-change="currentChangeHandle"
  54. :current-page="pageIndex"
  55. background
  56. :page-sizes="[10, 50, 100, 200]"
  57. :page-size="pageSize"
  58. :layout="layouts.join()"
  59. :total="totalPage"
  60. prev-text="< "
  61. next-text="> "
  62. :hide-on-single-page="false"
  63. :style='{"padding":"0 20px 20px","margin":"0px auto","whiteSpace":"nowrap","color":"#333","textAlign":"left","background":"#fff","width":"100%","fontSize":"inherit","position":"relative","fontWeight":"500"}'
  64. ></el-pagination>
  65. </template>
  66. <!-- 添加/修改页面 将父组件的search方法传递给子组件-->
  67. <add-or-update v-if="addOrUpdateFlag" :parent="this" ref="addOrUpdate"></add-or-update>
  68. <el-dialog title="预览图" :visible.sync="previewVisible" width="50%">
  69. <img :src="previewImg" alt="" style="width: 100%;">
  70. </el-dialog>
  71. </div>
  72. </template>
  73. <script>
  74. import axios from 'axios';
  75. import AddOrUpdate from "./add-or-update";
  76. import {
  77. Loading
  78. } from 'element-ui';
  79. export default {
  80. data() {
  81. return {
  82. indexQueryCondition: '',
  83. searchForm: {
  84. key: ""
  85. },
  86. form:{},
  87. dataList: [],
  88. pageIndex: 1,
  89. pageSize: 10,
  90. totalPage: 0,
  91. dataListLoading: false,
  92. dataListSelections: [],
  93. showFlag: true,
  94. addOrUpdateFlag:false,
  95. layouts: ["prev","pager","next","sizes"],
  96. previewImg: '',
  97. previewVisible: false,
  98. };
  99. },
  100. created() {
  101. this.init();
  102. this.getDataList();
  103. this.contentStyleChange();
  104. },
  105. mounted() {
  106. },
  107. filters: {
  108. htmlfilter: function (val) {
  109. return val.replace(/<[^>]*>/g).replace(/undefined/g,'');
  110. }
  111. },
  112. computed: {
  113. tablename(){
  114. return this.$storage.get('sessionTable')
  115. },
  116. },
  117. components: {
  118. AddOrUpdate,
  119. },
  120. methods: {
  121. imgPreView(url){
  122. this.previewImg = url
  123. this.previewVisible = true
  124. },
  125. contentStyleChange() {
  126. this.contentPageStyleChange()
  127. },
  128. // 分页
  129. contentPageStyleChange(){
  130. let arr = []
  131. // if(this.contents.pageTotal) arr.push('total')
  132. // if(this.contents.pageSizes) arr.push('sizes')
  133. // if(this.contents.pagePrevNext){
  134. // arr.push('prev')
  135. // if(this.contents.pagePager) arr.push('pager')
  136. // arr.push('next')
  137. // }
  138. // if(this.contents.pageJumper) arr.push('jumper')
  139. // this.layouts = arr.join()
  140. // this.contents.pageEachNum = 10
  141. },
  142. init () {
  143. },
  144. search() {
  145. this.pageIndex = 1;
  146. this.getDataList();
  147. },
  148. // 获取数据列表
  149. getDataList() {
  150. this.dataListLoading = true;
  151. let params = {
  152. page: this.pageIndex,
  153. limit: this.pageSize,
  154. sort: 'id',
  155. order: 'desc',
  156. }
  157. params['name'] = '%picture%'
  158. let user = JSON.parse(this.$storage.getObj('userForm'))
  159. this.$http({
  160. url: "config/page",
  161. method: "get",
  162. params: params
  163. }).then(({ data }) => {
  164. if (data && data.code === 0) {
  165. this.dataList = data.data.list;
  166. this.totalPage = data.data.total;
  167. } else {
  168. this.dataList = [];
  169. this.totalPage = 0;
  170. }
  171. this.dataListLoading = false;
  172. });
  173. },
  174. // 每页数
  175. sizeChangeHandle(val) {
  176. this.pageSize = val;
  177. this.pageIndex = 1;
  178. this.getDataList();
  179. },
  180. // 当前页
  181. currentChangeHandle(val) {
  182. this.pageIndex = val;
  183. this.getDataList();
  184. },
  185. // 多选
  186. selectionChangeHandler(val) {
  187. this.dataListSelections = val;
  188. },
  189. // 添加/修改
  190. addOrUpdateHandler(id,type) {
  191. this.showFlag = false;
  192. this.addOrUpdateFlag = true;
  193. this.crossAddOrUpdateFlag = false;
  194. if(type!='info'&&type!='msg'){
  195. type = 'else';
  196. }
  197. this.$nextTick(() => {
  198. this.$refs.addOrUpdate.init(id,type);
  199. });
  200. },
  201. // 查看评论
  202. disscussListHandler(id,type) {
  203. this.$router.push({path:'/discussconfig',query:{refid:id}});
  204. },
  205. // 删除
  206. async deleteHandler(id ) {
  207. var ids = id? [Number(id)]: this.dataListSelections.map(item => {
  208. return Number(item.id);
  209. });
  210. await this.$confirm(`确定进行[${id ? "删除" : "批量删除"}]操作?`, "提示", {
  211. confirmButtonText: "确定",
  212. cancelButtonText: "取消",
  213. type: "warning"
  214. }).then(async () => {
  215. await this.$http({
  216. url: "config/delete",
  217. method: "post",
  218. data: ids
  219. }).then(async ({ data }) => {
  220. if (data && data.code === 0) {
  221. this.$message({
  222. message: "操作成功",
  223. type: "success",
  224. duration: 1500,
  225. onClose: () => {
  226. this.search();
  227. }
  228. });
  229. } else {
  230. this.$message.error(data.msg);
  231. }
  232. });
  233. });
  234. },
  235. }
  236. };
  237. </script>
  238. <style lang="scss" scoped>
  239. .center-form-pv {
  240. .el-date-editor.el-input {
  241. width: auto;
  242. }
  243. }
  244. .el-input {
  245. width: auto;
  246. }
  247. // form
  248. .center-form-pv .el-input {
  249. width: auto;
  250. }
  251. .center-form-pv .el-input ::v-deep .el-input__inner {
  252. border: 1px solid #ddd;
  253. border-radius: 0px;
  254. padding: 0 12px;
  255. color: #666;
  256. width: 150px;
  257. font-size: 15px;
  258. height: 40px;
  259. }
  260. .center-form-pv .el-select {
  261. width: auto;
  262. }
  263. .center-form-pv .el-select ::v-deep .el-input__inner {
  264. border: 1px solid #ddd;
  265. border-radius: 0px;
  266. padding: 0 10px;
  267. color: #666;
  268. width: 150px;
  269. font-size: 15px;
  270. height: 40px;
  271. }
  272. .center-form-pv .el-date-editor {
  273. width: auto;
  274. }
  275. .center-form-pv .el-date-editor ::v-deep .el-input__inner {
  276. border: 1px solid #ddd;
  277. border-radius: 0px;
  278. padding: 0 10px 0 30px;
  279. color: #666;
  280. width: 150px;
  281. font-size: 15px;
  282. height: 40px;
  283. }
  284. .center-form-pv .search {
  285. border: 0;
  286. cursor: pointer;
  287. border-radius: 0px;
  288. padding: 0 20px;
  289. color: #fff;
  290. background: #0977fd;
  291. width: auto;
  292. font-size: 16px;
  293. min-width: 90px;
  294. height: 40px;
  295. }
  296. .center-form-pv .search:hover {
  297. opacity: 0.8;
  298. }
  299. .center-form-pv .actions .add {
  300. border: 1px solid #0977fd60;
  301. cursor: pointer;
  302. border-radius: 0px;
  303. padding: 0 10px;
  304. margin: 4px;
  305. color: #0977fd;
  306. background: #fff;
  307. width: auto;
  308. font-size: inherit;
  309. height: 34px;
  310. }
  311. .center-form-pv .actions .add:hover {
  312. opacity: 0.8;
  313. }
  314. .center-form-pv .actions .del {
  315. border: 1px solid #cc000060;
  316. cursor: pointer;
  317. border-radius: 0px;
  318. padding: 0 10px;
  319. margin: 4px;
  320. color: #c00;
  321. background: #fff;
  322. width: auto;
  323. font-size: inherit;
  324. height: 34px;
  325. }
  326. .center-form-pv .actions .del:hover {
  327. opacity: 0.8;
  328. }
  329. .center-form-pv .actions .statis {
  330. border: 1px solid #e0970460;
  331. cursor: pointer;
  332. border-radius: 0px;
  333. padding: 0 20px;
  334. margin: 4px;
  335. color: #e09704;
  336. background: #fff;
  337. width: auto;
  338. font-size: inherit;
  339. height: 34px;
  340. }
  341. .center-form-pv .actions .statis:hover {
  342. opacity: 0.8;
  343. }
  344. .center-form-pv .actions .btn18 {
  345. border: 1px solid #ed9a0d60;
  346. cursor: pointer;
  347. border-radius: 0px;
  348. padding: 0 10px;
  349. margin: 4px;
  350. color: #ed9a0d;
  351. background: #fff;
  352. width: auto;
  353. font-size: inherit;
  354. height: 34px;
  355. }
  356. .center-form-pv .actions .btn18:hover {
  357. opacity: 0.8;
  358. }
  359. // table
  360. .el-table ::v-deep .el-table__header-wrapper thead {
  361. color: #999;
  362. background: #fff;
  363. font-weight: 500;
  364. width: 100%;
  365. }
  366. .el-table ::v-deep .el-table__header-wrapper thead tr {
  367. background: #cae2ff;
  368. }
  369. .el-table ::v-deep .el-table__header-wrapper thead tr th {
  370. padding: 8px 0;
  371. background: none;
  372. border-color: #f6f6f6;
  373. border-width: 0 0px 0px 0;
  374. border-style: solid;
  375. text-align: left;
  376. }
  377. .el-table ::v-deep .el-table__header-wrapper thead tr th .cell {
  378. padding: 0 0 0 5px;
  379. word-wrap: normal;
  380. color: #0977fd;
  381. white-space: normal;
  382. font-weight: bold;
  383. display: flex;
  384. vertical-align: middle;
  385. font-size: 14px;
  386. line-height: 24px;
  387. text-overflow: ellipsis;
  388. word-break: break-all;
  389. width: 100%;
  390. align-items: center;
  391. position: relative;
  392. min-width: 110px;
  393. }
  394. .el-table ::v-deep .el-table__body-wrapper {
  395. position: relative;
  396. }
  397. .el-table ::v-deep .el-table__body-wrapper tbody {
  398. width: 100%;
  399. }
  400. .el-table ::v-deep .el-table__body-wrapper tbody tr {
  401. background: #fff;
  402. }
  403. .el-table ::v-deep .el-table__body-wrapper tbody tr td {
  404. padding: 4px 0;
  405. color: #333;
  406. background: #fff;
  407. font-size: inherit;
  408. border-color: #0977fd30;
  409. border-width: 0 0px 1px 0;
  410. border-style: solid;
  411. text-align: left;
  412. }
  413. .el-table ::v-deep .el-table__body-wrapper tbody tr:hover td {
  414. padding: 4px 0;
  415. color: #333;
  416. background: #f4f9ff;
  417. border-color: #0977fd30;
  418. border-width: 0 0px 1px 0;
  419. border-style: solid;
  420. text-align: left;
  421. }
  422. .el-table ::v-deep .el-table__body-wrapper tbody tr td {
  423. padding: 4px 0;
  424. color: #333;
  425. background: #fff;
  426. font-size: inherit;
  427. border-color: #0977fd30;
  428. border-width: 0 0px 1px 0;
  429. border-style: solid;
  430. text-align: left;
  431. }
  432. .el-table ::v-deep .el-table__body-wrapper tbody tr td .cell {
  433. padding: 0 0 0 5px;
  434. overflow: hidden;
  435. word-break: break-all;
  436. white-space: normal;
  437. font-size: inherit;
  438. line-height: 24px;
  439. text-overflow: ellipsis;
  440. }
  441. .el-table ::v-deep .el-table__body-wrapper tbody tr td .view {
  442. border: 1px solid #0977fd60;
  443. cursor: pointer;
  444. border-radius: 0px;
  445. padding: 0 10px;
  446. margin: 0 5px 5px 0;
  447. color: #0977fd;
  448. background: #fff;
  449. width: auto;
  450. font-size: 14px;
  451. height: 32px;
  452. }
  453. .el-table ::v-deep .el-table__body-wrapper tbody tr td .view:hover {
  454. opacity: 0.8;
  455. }
  456. .el-table ::v-deep .el-table__body-wrapper tbody tr td .add {
  457. }
  458. .el-table ::v-deep .el-table__body-wrapper tbody tr td .add:hover {
  459. }
  460. .el-table ::v-deep .el-table__body-wrapper tbody tr td .edit {
  461. border: 1px solid #21c79260;
  462. cursor: pointer;
  463. border-radius: 0px;
  464. padding: 0 10px;
  465. margin: 0 5px 5px 0;
  466. color: #21c792;
  467. background: #fff;
  468. width: auto;
  469. font-size: 14px;
  470. height: 32px;
  471. }
  472. .el-table ::v-deep .el-table__body-wrapper tbody tr td .edit:hover {
  473. opacity: 0.8;
  474. }
  475. .el-table ::v-deep .el-table__body-wrapper tbody tr td .del {
  476. border: 1px solid #cc000060;
  477. cursor: pointer;
  478. border-radius: 0px;
  479. padding: 0 10px;
  480. margin: 0 5px 5px 0;
  481. color: #c00;
  482. background: #fff;
  483. width: auto;
  484. font-size: 14px;
  485. height: 32px;
  486. }
  487. .el-table ::v-deep .el-table__body-wrapper tbody tr td .del:hover {
  488. opacity: 0.8;
  489. }
  490. .el-table ::v-deep .el-table__body-wrapper tbody tr td .btn8 {
  491. border: 1px solid #ed9a0d60;
  492. cursor: pointer;
  493. border-radius: 0px;
  494. padding: 0 10px;
  495. margin: 0 5px 5px 0;
  496. color: #ed9a0d;
  497. background: #fff;
  498. width: auto;
  499. font-size: 14px;
  500. height: 32px;
  501. }
  502. .el-table ::v-deep .el-table__body-wrapper tbody tr td .btn8:hover {
  503. opacity: 0.8;
  504. }
  505. // pagination
  506. .main-content .el-pagination ::v-deep .el-pagination__total {
  507. margin: 0 10px 0 0;
  508. color: #666;
  509. font-weight: 400;
  510. display: inline-block;
  511. vertical-align: top;
  512. font-size: inherit;
  513. line-height: 28px;
  514. height: 28px;
  515. }
  516. .main-content .el-pagination ::v-deep .btn-prev {
  517. border: none;
  518. border-radius: 100px;
  519. padding: 0;
  520. margin: 0 5px;
  521. color: #fff;
  522. background: #000;
  523. display: inline-block;
  524. vertical-align: top;
  525. width: 28px;
  526. font-size: 16px;
  527. line-height: auto;
  528. height: 28px;
  529. }
  530. .main-content .el-pagination ::v-deep .btn-next {
  531. border: none;
  532. border-radius: 100%;
  533. padding: 0;
  534. margin: 0 5px;
  535. color: #fff;
  536. background: #000;
  537. display: inline-block;
  538. vertical-align: top;
  539. width: 28px;
  540. font-size: 16px;
  541. line-height: auto;
  542. height: 28px;
  543. }
  544. .main-content .el-pagination ::v-deep .btn-prev:disabled {
  545. border: none;
  546. cursor: not-allowed;
  547. padding: 0;
  548. margin: 0 5px;
  549. color: #666;
  550. display: inline-block;
  551. vertical-align: top;
  552. font-size: 16px;
  553. line-height: auto;
  554. border-radius: 100px;
  555. background: #ccc;
  556. width: 28px;
  557. height: 28px;
  558. }
  559. .main-content .el-pagination ::v-deep .btn-next:disabled {
  560. border: none;
  561. cursor: not-allowed;
  562. padding: 0;
  563. margin: 0 5px;
  564. color: #666;
  565. display: inline-block;
  566. vertical-align: top;
  567. font-size: 16px;
  568. line-height: auto;
  569. border-radius: 100px;
  570. background: #ccc;
  571. width: 28px;
  572. height: 28px;
  573. }
  574. .main-content .el-pagination ::v-deep .el-pager {
  575. padding: 0;
  576. margin: 0;
  577. display: inline-block;
  578. vertical-align: top;
  579. }
  580. .main-content .el-pagination ::v-deep .el-pager .number {
  581. cursor: pointer;
  582. border-radius: 100%;
  583. padding: 0 10px;
  584. margin: 0 2px;
  585. color: #fff;
  586. background: #b9b9b9;
  587. display: inline-block;
  588. vertical-align: top;
  589. font-size: 16px;
  590. line-height: 28px;
  591. text-align: center;
  592. height: 28px;
  593. }
  594. .main-content .el-pagination ::v-deep .el-pager .number:hover {
  595. cursor: pointer;
  596. border-radius: 100%;
  597. padding: 0 10px;
  598. margin: 0 2px;
  599. color: #fff;
  600. background: #0977fd;
  601. display: inline-block;
  602. vertical-align: top;
  603. font-size: 16px;
  604. line-height: 28px;
  605. text-align: center;
  606. height: 28px;
  607. }
  608. .main-content .el-pagination ::v-deep .el-pager .number.active {
  609. cursor: default;
  610. border-radius: 100%;
  611. padding: 0 10px;
  612. margin: 0 2px;
  613. color: #fff;
  614. background: #0977fd;
  615. display: inline-block;
  616. vertical-align: top;
  617. font-size: 16px;
  618. line-height: 28px;
  619. text-align: center;
  620. height: 28px;
  621. }
  622. .main-content .el-pagination ::v-deep .el-pagination__sizes {
  623. display: inline-block;
  624. vertical-align: top;
  625. font-size: 15px;
  626. line-height: 28px;
  627. height: 28px;
  628. }
  629. .main-content .el-pagination ::v-deep .el-pagination__sizes .el-input {
  630. margin: 0 5px;
  631. width: 100px;
  632. position: relative;
  633. }
  634. .main-content .el-pagination ::v-deep .el-pagination__sizes .el-input .el-input__inner {
  635. border: 1px solid #DCDFE6;
  636. cursor: pointer;
  637. padding: 0 25px 0 8px;
  638. color: #606266;
  639. display: inline-block;
  640. font-size: 15px;
  641. line-height: 28px;
  642. border-radius: 10px;
  643. outline: 0;
  644. background: #FFF;
  645. width: 100%;
  646. text-align: center;
  647. height: 28px;
  648. }
  649. .main-content .el-pagination ::v-deep .el-pagination__sizes .el-input span.el-input__suffix {
  650. top: 0;
  651. position: absolute;
  652. right: 0;
  653. height: 100%;
  654. }
  655. .main-content .el-pagination ::v-deep .el-pagination__sizes .el-input .el-input__suffix .el-select__caret {
  656. cursor: pointer;
  657. color: #C0C4CC;
  658. width: 25px;
  659. font-size: 14px;
  660. line-height: 28px;
  661. text-align: center;
  662. }
  663. .main-content .el-pagination ::v-deep .el-pagination__jump {
  664. margin: 0 0 0 24px;
  665. color: #606266;
  666. display: inline-block;
  667. vertical-align: top;
  668. font-size: 15px;
  669. line-height: 28px;
  670. height: 28px;
  671. }
  672. .main-content .el-pagination ::v-deep .el-pagination__jump .el-input {
  673. border-radius: 3px;
  674. padding: 0 2px;
  675. margin: 0 2px;
  676. display: inline-block;
  677. width: 50px;
  678. font-size: 15px;
  679. line-height: 18px;
  680. position: relative;
  681. text-align: center;
  682. height: 28px;
  683. }
  684. .main-content .el-pagination ::v-deep .el-pagination__jump .el-input .el-input__inner {
  685. border: 1px solid #DCDFE6;
  686. cursor: pointer;
  687. padding: 0 3px;
  688. color: #606266;
  689. display: inline-block;
  690. font-size: 15px;
  691. line-height: 28px;
  692. border-radius: 3px;
  693. outline: 0;
  694. background: #FFF;
  695. width: 100%;
  696. text-align: center;
  697. height: 28px;
  698. }
  699. // list one
  700. .one .list1-view {
  701. border: 0;
  702. cursor: pointer;
  703. border-radius: 4px;
  704. padding: 0 15px;
  705. margin: 0 5px 5px 0;
  706. outline: none;
  707. color: #fff;
  708. background: #157ed2;
  709. width: auto;
  710. font-size: 14px;
  711. height: 32px;
  712. }
  713. .one .list1-view:hover {
  714. opacity: 0.8;
  715. }
  716. .one .list1-edit {
  717. border: 0;
  718. cursor: pointer;
  719. border-radius: 4px;
  720. padding: 0 15px;
  721. margin: 0 5px 5px 0;
  722. outline: none;
  723. color: #fff;
  724. background: #409eff;
  725. width: auto;
  726. font-size: 14px;
  727. height: 32px;
  728. }
  729. .one .list1-edit:hover {
  730. opacity: 0.8;
  731. }
  732. .one .list1-del {
  733. border: 0;
  734. cursor: pointer;
  735. border-radius: 4px;
  736. padding: 0 15px;
  737. margin: 0 5px 5px 0;
  738. outline: none;
  739. color: #fff;
  740. background: rgba(255, 0, 0, 1);
  741. width: auto;
  742. font-size: 14px;
  743. height: 32px;
  744. }
  745. .one .list1-del:hover {
  746. opacity: 0.8;
  747. }
  748. .one .list1-btn8 {
  749. border: 0;
  750. cursor: pointer;
  751. border-radius: 4px;
  752. padding: 0 24px;
  753. margin: 0 5px 5px 0;
  754. outline: none;
  755. color: #fff;
  756. background: rgba(255, 128, 0, 1);
  757. width: auto;
  758. font-size: 14px;
  759. height: 32px;
  760. }
  761. .one .list1-btn8:hover {
  762. opacity: 0.8;
  763. }
  764. .main-content .el-table .el-switch {
  765. display: inline-flex;
  766. vertical-align: middle;
  767. line-height: 30px;
  768. position: relative;
  769. align-items: center;
  770. height: 30px;
  771. }
  772. .main-content .el-table .el-switch ::v-deep .el-switch__label--left {
  773. cursor: pointer;
  774. margin: 0 10px 0 0;
  775. color: #333;
  776. font-weight: 500;
  777. display: inline-block;
  778. vertical-align: middle;
  779. font-size: 16px;
  780. transition: .2s;
  781. height: 30px;
  782. }
  783. .main-content .el-table .el-switch ::v-deep .el-switch__label--right {
  784. cursor: pointer;
  785. margin: 0 0 0 10px;
  786. color: #333;
  787. font-weight: 500;
  788. display: inline-block;
  789. vertical-align: middle;
  790. font-size: 16px;
  791. transition: .2s;
  792. height: 30px;
  793. }
  794. .main-content .el-table .el-switch ::v-deep .el-switch__core {
  795. border: 1px solid #75c0d6;
  796. cursor: pointer;
  797. border-radius: 15px;
  798. margin: 0;
  799. background: #75c0d6;
  800. display: inline-block;
  801. width: 42px;
  802. box-sizing: border-box;
  803. transition: border-color .3s,background-color .3s;
  804. height: 20px;
  805. }
  806. .main-content .el-table .el-switch ::v-deep .el-switch__core::after {
  807. border-radius: 100%;
  808. top: 1px;
  809. left: 1px;
  810. background: #fff;
  811. width: 16px;
  812. position: absolute;
  813. transition: all .3s;
  814. height: 16px;
  815. }
  816. .main-content .el-table .el-switch.is-checked ::v-deep .el-switch__core::after {
  817. margin: 0 0 0 -18px;
  818. left: 100%;
  819. }
  820. .main-content .el-table .el-rate ::v-deep .el-rate__item {
  821. cursor: pointer;
  822. display: inline-block;
  823. vertical-align: middle;
  824. font-size: 0;
  825. position: relative;
  826. }
  827. .main-content .el-table .el-rate ::v-deep .el-rate__item .el-rate__icon {
  828. margin: 0 3px;
  829. display: inline-block;
  830. font-size: 18px;
  831. position: relative;
  832. transition: .3s;
  833. }
  834. </style>