| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149 |
- <template>
- <div
- class="main-content"
- :style="{ width: '100%', padding: '20px 30px', fontSize: '15px' }"
- >
- <!-- 列表页 -->
- <template>
- <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"
- >
- <el-row
- :style="{
- padding: '10px',
- alignItems: 'center',
- flexWrap: 'wrap',
- background: 'none',
- display: 'flex',
- }"
- >
- <div
- :style="{
- alignItems: 'center',
- margin: '0 10px 0 0',
- display: 'flex',
- }"
- >
- <label
- :style="{
- margin: '0 10px 0 0',
- whiteSpace: 'nowrap',
- color: '#666',
- display: 'inline-block',
- lineHeight: '40px',
- fontSize: 'inherit',
- fontWeight: '500',
- height: '40px',
- }"
- class="item-label"
- >变电站名称</label
- >
- <el-input
- v-model="searchForm.subName"
- placeholder="变电站名称"
- @keydown.enter.native="search()"
- clearable
- ></el-input>
- </div>
- <el-button class="search" type="success" @click="search()">
- <span
- class="icon iconfont icon-fangdajing07"
- :style="{
- margin: '0 2px',
- fontSize: '16px',
- color: '#fff',
- display: 'none',
- height: '40px',
- }"
- ></span>
- 搜索
- </el-button>
- </el-row>
- <el-row
- class="actions"
- :style="{
- padding: '10px',
- margin: '0px 0',
- flexWrap: 'wrap',
- background: 'none',
- display: 'flex',
- }"
- >
- <el-button
- class="add"
- type="success"
- @click="addOrUpdateHandler(null, 'add')"
- >
- <span
- class="icon iconfont icon-xihuan"
- :style="{
- margin: '0 2px',
- fontSize: '14px',
- color: '#fff',
- display: 'none',
- height: '34px',
- }"
- ></span>
- 添加
- </el-button>
- <el-button
- class="del"
- :disabled="dataListSelections.length ? false : true"
- type="danger"
- @click="deleteHandler()"
- >
- <span
- class="icon iconfont icon-xihuan"
- :style="{
- margin: '0 2px',
- fontSize: '14px',
- color: '#fff',
- display: 'none',
- height: '34px',
- }"
- ></span>
- 批量删除
- </el-button>
- </el-row>
- </el-form>
- <div
- :style="{
- border: '0px solid #fff',
- width: '100%',
- padding: '0 20px 20px',
- fontSize: '14px',
- color: '#000',
- background: '#fff',
- }"
- >
- <el-table
- class="tables"
- :stripe="false"
- :style="{
- padding: '0px 0',
- borderColor: '#f0f0f0',
- borderRadius: '0',
- borderWidth: '0px 0 0 1px',
- background: '#fff',
- width: '100%',
- fontSize: 'inherit',
- borderStyle: 'solid',
- }"
- :border="true"
- :data="dataList"
- v-loading="dataListLoading"
- @selection-change="selectionChangeHandler"
- >
- <el-table-column
- :resizable="true"
- type="selection"
- align="center"
- width="50"
- ></el-table-column>
- <el-table-column
- :resizable="true"
- :sortable="true"
- label="序号"
- type="index"
- width="50"
- />
- <el-table-column
- :resizable="true"
- :sortable="true"
- prop="subName"
- label="变电站名称"
- >
- <template slot-scope="scope">
- {{ scope.row.subName }}
- </template>
- </el-table-column>
- <el-table-column
- :resizable="true"
- :sortable="true"
- prop="voltageLevel"
- label="电压等级"
- >
- <template slot-scope="scope">
- {{ scope.row.voltageLevel }}
- </template>
- </el-table-column>
- <el-table-column
- :resizable="true"
- :sortable="true"
- prop="mainNum"
- label="主变台数"
- >
- <template slot-scope="scope">
- {{ scope.row.mainNum }}
- </template>
- </el-table-column>
- <el-table-column
- :resizable="true"
- :sortable="true"
- prop="mainCapacity"
- label="主变容量(MVA)"
- >
- <template slot-scope="scope">
- {{ scope.row.mainCapacity }}
- </template>
- </el-table-column>
- <el-table-column
- :resizable="true"
- :sortable="true"
- prop="alarmThreshold"
- label="负荷报警阀值"
- >
- <template slot-scope="scope">
- {{ scope.row.alarmThreshold }}
- </template>
- </el-table-column>
- <el-table-column
- :resizable="true"
- :sortable="true"
- prop="cityName"
- label="归属市名称"
- >
- <template slot-scope="scope">
- {{ scope.row.cityName }}
- </template>
- </el-table-column>
- <el-table-column
- :resizable="true"
- :sortable="true"
- prop="compName"
- label="归属旗县"
- >
- <template slot-scope="scope">
- {{ scope.row.compName }}
- </template>
- </el-table-column>
- <el-table-column
- :resizable="true"
- :sortable="true"
- prop="remark"
- label="备注"
- >
- <template slot-scope="scope">
- {{ scope.row.remark }}
- </template>
- </el-table-column>
- <el-table-column width="260" label="操作">
- <template slot-scope="scope">
- <el-button
- class="view"
- type="success"
- @click="addOrUpdateHandler(scope.row.id, 'view')"
- >
- <span
- class="icon iconfont icon-xihuan"
- :style="{
- margin: '0 2px',
- fontSize: '14px',
- color: '#fff',
- display: 'none',
- height: '40px',
- }"
- ></span>
- 查看
- </el-button>
- <el-button
- class="edit"
- type="success"
- @click="addOrUpdateHandler(scope.row.id, 'edit')"
- >
- <span
- class="icon iconfont icon-xihuan"
- :style="{
- margin: '0 2px',
- fontSize: '14px',
- color: '#fff',
- display: 'none',
- height: '40px',
- }"
- ></span>
- 修改
- </el-button>
- <el-button
- class="del"
- type="primary"
- @click="deleteHandler(scope.row.id)"
- >
- <span
- class="icon iconfont icon-xihuan"
- :style="{
- margin: '0 2px',
- fontSize: '14px',
- color: '#fff',
- display: 'none',
- height: '40px',
- }"
- ></span>
- 删除
- </el-button>
- <el-button
- class="view"
- type="primary"
- @click="lineHandler(scope.row)"
- >
- <span
- class="icon iconfont icon-xihuan"
- :style="{
- margin: '0 2px',
- fontSize: '14px',
- color: '#fff',
- display: 'none',
- height: '40px',
- }"
- ></span>
- 线路
- </el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <el-pagination
- @size-change="sizeChangeHandle"
- @current-change="currentChangeHandle"
- :current-page="pageIndex"
- background
- :page-sizes="[10, 50, 100, 200]"
- :page-size="pageSize"
- :layout="layouts.join()"
- :total="totalPage"
- prev-text="< "
- next-text="> "
- :hide-on-single-page="false"
- :style="{
- padding: '0 20px 20px',
- margin: '0px auto',
- whiteSpace: 'nowrap',
- color: '#333',
- textAlign: 'left',
- background: '#fff',
- width: '100%',
- fontSize: 'inherit',
- position: 'relative',
- fontWeight: '500',
- }"
- ></el-pagination>
- </template>
- <!-- 添加/修改页面 将父组件的search方法传递给子组件-->
- <add-or-update :parent="this" ref="addOrUpdate"></add-or-update>
- <!-- 线路页面 -->
- <line-list :parent="this" ref="line"></line-list>
- </div>
- </template>
- <script>
- import AddOrUpdate from "./components/add-or-update";
- import LineList from "./components/line-list";
- export default {
- data() {
- return {
- searchForm: {
- subName: "",
- },
- form: {},
- dataList: [],
- pageIndex: 1,
- pageSize: 10,
- totalPage: 0,
- dataListLoading: false,
- dataListSelections: [],
- layouts: ["prev", "pager", "next", "sizes"],
- };
- },
- created() {
- this.getDataList();
- },
- mounted() {},
- computed: {},
- components: {
- AddOrUpdate,
- LineList,
- },
- methods: {
- search() {
- this.pageIndex = 1;
- this.getDataList();
- },
- lineHandler(info) {
- this.$refs.line.openDrawer(info);
- },
- // 获取数据列表
- getDataList() {
- this.dataListLoading = true;
- let params = {
- page: this.pageIndex,
- limit: this.pageSize,
- sort: "id",
- order: "desc",
- };
- if (
- this.searchForm.subName != "" &&
- this.searchForm.subName != undefined
- ) {
- params["subName"] = "%" + this.searchForm.subName + "%";
- }
- this.$http({
- url: "/sub/page",
- method: "get",
- params: params,
- }).then(({ data }) => {
- if (data && data.code === 0) {
- this.dataList = data.data.list;
- this.totalPage = data.data.total;
- } else {
- this.dataList = [];
- this.totalPage = 0;
- }
- this.dataListLoading = false;
- });
- },
- // 每页数
- sizeChangeHandle(val) {
- this.pageSize = val;
- this.pageIndex = 1;
- this.getDataList();
- },
- // 当前页
- currentChangeHandle(val) {
- this.pageIndex = val;
- this.getDataList();
- },
- // 多选
- selectionChangeHandler(val) {
- this.dataListSelections = val;
- },
- // 添加/修改
- addOrUpdateHandler(id, type) {
- this.$refs.addOrUpdate.openDialog(id, type);
- },
- // 删除
- async deleteHandler(id) {
- var ids = id
- ? [Number(id)]
- : this.dataListSelections.map((item) => {
- return Number(item.id);
- });
- await this.$confirm(
- `确定进行[${id ? "删除" : "批量删除"}]操作?`,
- "提示",
- {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- }
- ).then(async () => {
- await this.$http({
- url: "sub/delete",
- method: "post",
- data: ids,
- }).then(async ({ data }) => {
- if (data && data.code === 0) {
- this.$message({
- message: "操作成功",
- type: "success",
- });
- this.search();
- } else {
- this.$message.error(data.msg);
- }
- });
- });
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .center-form-pv {
- .el-date-editor.el-input {
- width: auto;
- }
- }
- .el-input {
- width: auto;
- }
- // form
- .center-form-pv .el-input {
- width: auto;
- }
- .center-form-pv .el-input ::v-deep .el-input__inner {
- border: 1px solid #ddd;
- border-radius: 0px;
- padding: 0 12px;
- color: #666;
- width: 150px;
- font-size: 15px;
- height: 40px;
- }
- .center-form-pv .el-select {
- width: auto;
- }
- .center-form-pv .el-select ::v-deep .el-input__inner {
- border: 1px solid #ddd;
- border-radius: 0px;
- padding: 0 10px;
- color: #666;
- width: 150px;
- font-size: 15px;
- height: 40px;
- }
- .center-form-pv .el-date-editor {
- width: auto;
- }
- .center-form-pv .el-date-editor ::v-deep .el-input__inner {
- border: 1px solid #ddd;
- border-radius: 0px;
- padding: 0 10px 0 30px;
- color: #666;
- width: 150px;
- font-size: 15px;
- height: 40px;
- }
- .center-form-pv .search {
- border: 0;
- cursor: pointer;
- border-radius: 0px;
- padding: 0 20px;
- color: #fff;
- background: #0977fd;
- width: auto;
- font-size: 16px;
- min-width: 90px;
- height: 40px;
- }
- .center-form-pv .search:hover {
- opacity: 0.8;
- }
- .center-form-pv .actions .add {
- border: 1px solid #0977fd60;
- cursor: pointer;
- border-radius: 0px;
- padding: 0 10px;
- margin: 4px;
- color: #0977fd;
- background: #fff;
- width: auto;
- font-size: inherit;
- height: 34px;
- }
- .center-form-pv .actions .add:hover {
- opacity: 0.8;
- }
- .center-form-pv .actions .del {
- border: 1px solid #cc000060;
- cursor: pointer;
- border-radius: 0px;
- padding: 0 10px;
- margin: 4px;
- color: #c00;
- background: #fff;
- width: auto;
- font-size: inherit;
- height: 34px;
- }
- .center-form-pv .actions .del:hover {
- opacity: 0.8;
- }
- .center-form-pv .actions .statis {
- border: 1px solid #e0970460;
- cursor: pointer;
- border-radius: 0px;
- padding: 0 20px;
- margin: 4px;
- color: #e09704;
- background: #fff;
- width: auto;
- font-size: inherit;
- height: 34px;
- }
- .center-form-pv .actions .statis:hover {
- opacity: 0.8;
- }
- .center-form-pv .actions .btn18 {
- border: 1px solid #ed9a0d60;
- cursor: pointer;
- border-radius: 0px;
- padding: 0 10px;
- margin: 4px;
- color: #ed9a0d;
- background: #fff;
- width: auto;
- font-size: inherit;
- height: 34px;
- }
- .center-form-pv .actions .btn18:hover {
- opacity: 0.8;
- }
- // table
- .el-table ::v-deep .el-table__header-wrapper thead {
- color: #999;
- background: #fff;
- font-weight: 500;
- width: 100%;
- }
- .el-table ::v-deep .el-table__header-wrapper thead tr {
- background: #cae2ff;
- }
- .el-table ::v-deep .el-table__header-wrapper thead tr th {
- padding: 8px 0;
- background: none;
- border-color: #f6f6f6;
- border-width: 0 0px 0px 0;
- border-style: solid;
- text-align: left;
- }
- .el-table ::v-deep .el-table__header-wrapper thead tr th .cell {
- padding: 0 0 0 5px;
- word-wrap: normal;
- color: #0977fd;
- white-space: normal;
- font-weight: bold;
- display: flex;
- vertical-align: middle;
- font-size: 14px;
- line-height: 24px;
- text-overflow: ellipsis;
- word-break: break-all;
- width: 100%;
- align-items: center;
- position: relative;
- min-width: 110px;
- }
- .el-table ::v-deep .el-table__body-wrapper {
- position: relative;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody {
- width: 100%;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr {
- background: #fff;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td {
- padding: 4px 0;
- color: #333;
- background: #fff;
- font-size: inherit;
- border-color: #0977fd30;
- border-width: 0 0px 1px 0;
- border-style: solid;
- text-align: left;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr:hover td {
- padding: 4px 0;
- color: #333;
- background: #f4f9ff;
- border-color: #0977fd30;
- border-width: 0 0px 1px 0;
- border-style: solid;
- text-align: left;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td {
- padding: 4px 0;
- color: #333;
- background: #fff;
- font-size: inherit;
- border-color: #0977fd30;
- border-width: 0 0px 1px 0;
- border-style: solid;
- text-align: left;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td .cell {
- padding: 0 0 0 5px;
- overflow: hidden;
- word-break: break-all;
- white-space: normal;
- font-size: inherit;
- line-height: 24px;
- text-overflow: ellipsis;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td .view {
- border: 1px solid #0977fd60;
- cursor: pointer;
- border-radius: 0px;
- padding: 0 10px;
- margin: 0 5px 5px 0;
- color: #0977fd;
- background: #fff;
- width: auto;
- font-size: 14px;
- height: 32px;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td .view:hover {
- opacity: 0.8;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td .add {
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td .add:hover {
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td .edit {
- border: 1px solid #21c79260;
- cursor: pointer;
- border-radius: 0px;
- padding: 0 10px;
- margin: 0 5px 5px 0;
- color: #21c792;
- background: #fff;
- width: auto;
- font-size: 14px;
- height: 32px;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td .edit:hover {
- opacity: 0.8;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td .del {
- border: 1px solid #cc000060;
- cursor: pointer;
- border-radius: 0px;
- padding: 0 10px;
- margin: 0 5px 5px 0;
- color: #c00;
- background: #fff;
- width: auto;
- font-size: 14px;
- height: 32px;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td .del:hover {
- opacity: 0.8;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td .btn8 {
- border: 1px solid #ed9a0d60;
- cursor: pointer;
- border-radius: 0px;
- padding: 0 10px;
- margin: 0 5px 5px 0;
- color: #ed9a0d;
- background: #fff;
- width: auto;
- font-size: 14px;
- height: 32px;
- }
- .el-table ::v-deep .el-table__body-wrapper tbody tr td .btn8:hover {
- opacity: 0.8;
- }
- // pagination
- .main-content .el-pagination ::v-deep .el-pagination__total {
- margin: 0 10px 0 0;
- color: #666;
- font-weight: 400;
- display: inline-block;
- vertical-align: top;
- font-size: inherit;
- line-height: 28px;
- height: 28px;
- }
- .main-content .el-pagination ::v-deep .btn-prev {
- border: none;
- border-radius: 100px;
- padding: 0;
- margin: 0 5px;
- color: #fff;
- background: #000;
- display: inline-block;
- vertical-align: top;
- width: 28px;
- font-size: 16px;
- line-height: auto;
- height: 28px;
- }
- .main-content .el-pagination ::v-deep .btn-next {
- border: none;
- border-radius: 100%;
- padding: 0;
- margin: 0 5px;
- color: #fff;
- background: #000;
- display: inline-block;
- vertical-align: top;
- width: 28px;
- font-size: 16px;
- line-height: auto;
- height: 28px;
- }
- .main-content .el-pagination ::v-deep .btn-prev:disabled {
- border: none;
- cursor: not-allowed;
- padding: 0;
- margin: 0 5px;
- color: #666;
- display: inline-block;
- vertical-align: top;
- font-size: 16px;
- line-height: auto;
- border-radius: 100px;
- background: #ccc;
- width: 28px;
- height: 28px;
- }
- .main-content .el-pagination ::v-deep .btn-next:disabled {
- border: none;
- cursor: not-allowed;
- padding: 0;
- margin: 0 5px;
- color: #666;
- display: inline-block;
- vertical-align: top;
- font-size: 16px;
- line-height: auto;
- border-radius: 100px;
- background: #ccc;
- width: 28px;
- height: 28px;
- }
- .main-content .el-pagination ::v-deep .el-pager {
- padding: 0;
- margin: 0;
- display: inline-block;
- vertical-align: top;
- }
- .main-content .el-pagination ::v-deep .el-pager .number {
- cursor: pointer;
- border-radius: 100%;
- padding: 0 10px;
- margin: 0 2px;
- color: #fff;
- background: #b9b9b9;
- display: inline-block;
- vertical-align: top;
- font-size: 16px;
- line-height: 28px;
- text-align: center;
- height: 28px;
- }
- .main-content .el-pagination ::v-deep .el-pager .number:hover {
- cursor: pointer;
- border-radius: 100%;
- padding: 0 10px;
- margin: 0 2px;
- color: #fff;
- background: #0977fd;
- display: inline-block;
- vertical-align: top;
- font-size: 16px;
- line-height: 28px;
- text-align: center;
- height: 28px;
- }
- .main-content .el-pagination ::v-deep .el-pager .number.active {
- cursor: default;
- border-radius: 100%;
- padding: 0 10px;
- margin: 0 2px;
- color: #fff;
- background: #0977fd;
- display: inline-block;
- vertical-align: top;
- font-size: 16px;
- line-height: 28px;
- text-align: center;
- height: 28px;
- }
- .main-content .el-pagination ::v-deep .el-pagination__sizes {
- display: inline-block;
- vertical-align: top;
- font-size: 15px;
- line-height: 28px;
- height: 28px;
- }
- .main-content .el-pagination ::v-deep .el-pagination__sizes .el-input {
- margin: 0 5px;
- width: 100px;
- position: relative;
- }
- .main-content
- .el-pagination
- ::v-deep
- .el-pagination__sizes
- .el-input
- .el-input__inner {
- border: 1px solid #dcdfe6;
- cursor: pointer;
- padding: 0 25px 0 8px;
- color: #606266;
- display: inline-block;
- font-size: 15px;
- line-height: 28px;
- border-radius: 10px;
- outline: 0;
- background: #fff;
- width: 100%;
- text-align: center;
- height: 28px;
- }
- .main-content
- .el-pagination
- ::v-deep
- .el-pagination__sizes
- .el-input
- span.el-input__suffix {
- top: 0;
- position: absolute;
- right: 0;
- height: 100%;
- }
- .main-content
- .el-pagination
- ::v-deep
- .el-pagination__sizes
- .el-input
- .el-input__suffix
- .el-select__caret {
- cursor: pointer;
- color: #c0c4cc;
- width: 25px;
- font-size: 14px;
- line-height: 28px;
- text-align: center;
- }
- .main-content .el-pagination ::v-deep .el-pagination__jump {
- margin: 0 0 0 24px;
- color: #606266;
- display: inline-block;
- vertical-align: top;
- font-size: 15px;
- line-height: 28px;
- height: 28px;
- }
- .main-content .el-pagination ::v-deep .el-pagination__jump .el-input {
- border-radius: 3px;
- padding: 0 2px;
- margin: 0 2px;
- display: inline-block;
- width: 50px;
- font-size: 15px;
- line-height: 18px;
- position: relative;
- text-align: center;
- height: 28px;
- }
- .main-content
- .el-pagination
- ::v-deep
- .el-pagination__jump
- .el-input
- .el-input__inner {
- border: 1px solid #dcdfe6;
- cursor: pointer;
- padding: 0 3px;
- color: #606266;
- display: inline-block;
- font-size: 15px;
- line-height: 28px;
- border-radius: 3px;
- outline: 0;
- background: #fff;
- width: 100%;
- text-align: center;
- height: 28px;
- }
- // list one
- .one .list1-view {
- border: 0;
- cursor: pointer;
- border-radius: 4px;
- padding: 0 15px;
- margin: 0 5px 5px 0;
- outline: none;
- color: #fff;
- background: #157ed2;
- width: auto;
- font-size: 14px;
- height: 32px;
- }
- .one .list1-view:hover {
- opacity: 0.8;
- }
- .one .list1-edit {
- border: 0;
- cursor: pointer;
- border-radius: 4px;
- padding: 0 15px;
- margin: 0 5px 5px 0;
- outline: none;
- color: #fff;
- background: #409eff;
- width: auto;
- font-size: 14px;
- height: 32px;
- }
- .one .list1-edit:hover {
- opacity: 0.8;
- }
- .one .list1-del {
- border: 0;
- cursor: pointer;
- border-radius: 4px;
- padding: 0 15px;
- margin: 0 5px 5px 0;
- outline: none;
- color: #fff;
- background: rgba(255, 0, 0, 1);
- width: auto;
- font-size: 14px;
- height: 32px;
- }
- .one .list1-del:hover {
- opacity: 0.8;
- }
- .one .list1-btn8 {
- border: 0;
- cursor: pointer;
- border-radius: 4px;
- padding: 0 24px;
- margin: 0 5px 5px 0;
- outline: none;
- color: #fff;
- background: rgba(255, 128, 0, 1);
- width: auto;
- font-size: 14px;
- height: 32px;
- }
- .one .list1-btn8:hover {
- opacity: 0.8;
- }
- .main-content .el-table .el-switch {
- display: inline-flex;
- vertical-align: middle;
- line-height: 30px;
- position: relative;
- align-items: center;
- height: 30px;
- }
- .main-content .el-table .el-switch ::v-deep .el-switch__label--left {
- cursor: pointer;
- margin: 0 10px 0 0;
- color: #333;
- font-weight: 500;
- display: inline-block;
- vertical-align: middle;
- font-size: 16px;
- transition: 0.2s;
- height: 30px;
- }
- .main-content .el-table .el-switch ::v-deep .el-switch__label--right {
- cursor: pointer;
- margin: 0 0 0 10px;
- color: #333;
- font-weight: 500;
- display: inline-block;
- vertical-align: middle;
- font-size: 16px;
- transition: 0.2s;
- height: 30px;
- }
- .main-content .el-table .el-switch ::v-deep .el-switch__core {
- border: 1px solid #75c0d6;
- cursor: pointer;
- border-radius: 15px;
- margin: 0;
- background: #75c0d6;
- display: inline-block;
- width: 42px;
- box-sizing: border-box;
- transition: border-color 0.3s, background-color 0.3s;
- height: 20px;
- }
- .main-content .el-table .el-switch ::v-deep .el-switch__core::after {
- border-radius: 100%;
- top: 1px;
- left: 1px;
- background: #fff;
- width: 16px;
- position: absolute;
- transition: all 0.3s;
- height: 16px;
- }
- .main-content .el-table .el-switch.is-checked ::v-deep .el-switch__core::after {
- margin: 0 0 0 -18px;
- left: 100%;
- }
- .main-content .el-table .el-rate ::v-deep .el-rate__item {
- cursor: pointer;
- display: inline-block;
- vertical-align: middle;
- font-size: 0;
- position: relative;
- }
- .main-content .el-table .el-rate ::v-deep .el-rate__item .el-rate__icon {
- margin: 0 3px;
- display: inline-block;
- font-size: 18px;
- position: relative;
- transition: 0.3s;
- }
- </style>
|