| | |
| | | ></My-bread> |
| | | <el-divider /> |
| | | <div class="verSionContent"> |
| | | <div class="verSion_leftTree"> |
| | | <div |
| | | class="verSion_leftTree subpage_Div" |
| | | style="border: 1px solid #dcdfe6" |
| | | > |
| | | <el-form :inline="true" class="demo-form-inline"> |
| | | <el-form-item> |
| | | <el-input |
| | | size="small" |
| | | v-model="filterInput" |
| | | style="width: 200px" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueprojectName')" |
| | | suffix-icon="el-icon-search" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | v-if="btnStatus.insert" |
| | | icon="el-icon-plus" |
| | | @click="insertProject" |
| | | :disabled="count1 != 0 ? true : false" |
| | | type="success" |
| | | size="small" |
| | | >{{ $t("common.increase") }}</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-tree |
| | | ref="tree" |
| | | :props="defaultProps" |
| | |
| | | :default-expand-all="false" |
| | | draggable |
| | | @node-click="handleNodeClick" |
| | | :filter-node-method="filterNode" |
| | | > |
| | | </el-tree> |
| | | </div> |
| | | <div class="verSion_rightContent"> |
| | | <el-form :inline="true" class="demo-form-inline"> |
| | | <el-form-item> |
| | | <el-button |
| | | v-if="btnStatus.insert" |
| | | icon="el-icon-plus" |
| | | @click="insertProject" |
| | | :disabled="count1 != 0 ? true : false" |
| | | type="success" |
| | | >{{ $t('common.append') }}</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-divider class="eldivider" /> |
| | | <div style="height: 82%; padding: 1%; overflow: auto"> |
| | | <div class="verSion_rightContent subpage_Div"> |
| | | <!-- |
| | | <!-- <el-divider class="eldivider" /> --> |
| | | <!-- <div class="dividing-line"></div> --> |
| | | <div class="table_box" style="height: 100%"> |
| | | <el-table |
| | | ref="filterTable" |
| | | :data="dbTableData" |
| | | height="90%" |
| | | height="100%" |
| | | border |
| | | style="width: 100%" |
| | | > |
| | |
| | | prop="geom" |
| | | :label="$t('dataManage.projectObj.location')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | prop="province" |
| | | :label="$t('dataManage.projectObj.province')" |
| | | min-width="120" |
| | | prop="corpname" |
| | | :label="$t('dataManage.projectObj.corpname')" |
| | | /> |
| | | <el-table-column |
| | | prop="country" |
| | | :label="$t('dataManage.projectObj.country')" |
| | | /> |
| | | <el-table-column |
| | | prop="corpname" |
| | | :label="$t('dataManage.projectObj.corpname')" |
| | | prop="province" |
| | | :label="$t('dataManage.projectObj.province')" |
| | | /> |
| | | <el-table-column |
| | | prop="location" |
| | | :label="$t('dataManage.projectObj.county')" |
| | | /> |
| | | <el-table-column |
| | | prop="department" |
| | |
| | | <el-button |
| | | v-if="btnStatus.delete" |
| | | @click="deleteProject(scope.row)" |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | size="small" |
| | | plain |
| | | type="danger" |
| | | >{{ $t('common.delete') }}</el-button |
| | | >{{ $t("common.delete") }}</el-button |
| | | > |
| | | <el-button |
| | | v-if="btnStatus.update" |
| | | @click="EditProject(scope.row)" |
| | | icon="el-icon-edit" |
| | | type="info" |
| | | size="mini" |
| | | >{{ $t('common.update') }}</el-button |
| | | type="warning" |
| | | plain |
| | | size="small" |
| | | >{{ $t("common.update") }}</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="margin-top: 10px" class="pagination_box"> |
| | | <!-- <el-pagination |
| | | @size-change="handleLoaderSizeChange" |
| | | @current-change="handleLoaderCurrentChange" |
| | | :current-page="listLoader.pageIndex" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-size="listLoader.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count1" |
| | | > |
| | | </el-pagination> --> |
| | | </div> |
| | | <!-- <el-form |
| | | class="projFrom" |
| | | ref="form" |
| | | :model="projectFrom" |
| | | label-width="200px" |
| | | > |
| | | <el-form-item :label="$t('dataManage.projectObj.projname')"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="projectFrom.projname" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.projtype')"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="projectFrom.projtype" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.location')"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="projectFrom.location" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.province')"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="projectFrom.province" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.country')"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="projectFrom.country" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.corpname')"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="projectFrom.corpname" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.department')"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="projectFrom.department" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.conperiod')"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="projectFrom.conperiod" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.contents')"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="projectFrom.contents" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.projstate')"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="projectFrom.projstate" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.remarks')"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="projectFrom.remarks" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> --> |
| | | <!-- <div class="pagination_box"></div> --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-dialog |
| | | top="2vh" |
| | | :title=" |
| | | behavior == '新增项目' |
| | | ? `${$t('dataManage.projectObj.newProj')}` |
| | | : `${$t('dataManage.projectObj.editProj')}` |
| | | ? `${$t('dataManage.projectObj.lable1')}` |
| | | : `${$t('dataManage.projectObj.lable1')}` |
| | | " |
| | | :visible.sync="outerVisible" |
| | | :before-close="outerClose" |
| | |
| | | width="60%" |
| | | :title="$t('dataManage.projectObj.location')" |
| | | :visible.sync="innerVisible" |
| | | append-to-body |
| | | :modal="false" |
| | | :before-close="innerClose" |
| | | > |
| | | <div style="height: 540px"> |
| | | <project-ol v-if="showMap"></project-ol> |
| | | </div> |
| | | </el-dialog> |
| | | <div style="height: 540px; overflow: auto; padding: 1%"> |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | | class="editFrom1" |
| | | ref="form" |
| | | :model="editFrom" |
| | | label-width="200px" |
| | | label-position="top" |
| | | > |
| | | <el-form-item :label="$t('dataManage.projectObj.projname')"> |
| | | <el-input v-model="editFrom.projname"></el-input> |
| | | <el-input |
| | | v-model="editFrom.projname" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueprojectName')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.projtype')"> |
| | | <el-input v-model="editFrom.projtype"></el-input> |
| | | <el-input |
| | | v-model="editFrom.projtype" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueprojectType')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.location')"> |
| | | <el-input :disabled="true" v-model="editFrom.geom"></el-input> |
| | | <el-link |
| | | @click="ShowInner" |
| | | style="color: white; margin-left: 20px" |
| | | icon="el-icon-plus" |
| | | > |
| | | </el-link> |
| | | <el-form-item :label="$t('dataManage.projectObj.location')+'('+$t('shuJuGuanLi.shuJuJianSuo.geographicPosition')+')'"> |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="editFrom.geom" |
| | | style="width: 100%" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.geographicPosition') |
| | | " |
| | | ></el-input> |
| | | </div> |
| | | <div> |
| | | <el-button |
| | | @click="ShowInner" |
| | | style="margin-left: 6px" |
| | | icon="el-icon-plus" |
| | | type="primary" |
| | | size="small" |
| | | > |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | | <el-form-item :label="$t('dataManage.projectObj.country')"> |
| | | <el-input v-model="editFrom.country" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.country')"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.province')"> |
| | | <el-input v-model="editFrom.province"></el-input> |
| | | <el-input v-model="editFrom.province" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.province')"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.country')"> |
| | | <el-input v-model="editFrom.country"></el-input> |
| | | <el-form-item :label="$t('dataManage.projectObj.county')"> |
| | | <el-input v-model="editFrom.location" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.city')"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.corpname')"> |
| | | <el-input v-model="editFrom.corpname"></el-input> |
| | | <el-input v-model="editFrom.corpname" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.construction')"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.department')"> |
| | | <el-input v-model="editFrom.department"></el-input> |
| | | <el-input |
| | | v-model="editFrom.department" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.department')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.conperiod')"> |
| | | <el-input v-model="editFrom.conperiod"></el-input> |
| | | <el-input |
| | | v-model="editFrom.conperiod" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.constructionperiod')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.contents')"> |
| | | <el-input v-model="editFrom.contents"></el-input> |
| | | <el-input v-model="editFrom.contents" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.projectContent')"></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.projstate')"> |
| | | <el-input v-model="editFrom.projstate"></el-input> |
| | | <el-input |
| | | v-model="editFrom.projstate" |
| | | style="width: 85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.projectStatus')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.projectObj.remarks')"> |
| | | <el-input v-model="editFrom.remarks"></el-input> |
| | | <el-input v-model="editFrom.remarks" style="width: 85%" :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueRemarks')"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | :disabled="behavior != '新增项目' ? true : false" |
| | | @click="setRestEditFrom" |
| | | >{{ $t('common.reset') }}</el-button |
| | | >{{ $t("common.reset") }}</el-button |
| | | > |
| | | <el-button class="primary" @click="insertEditFrom">{{ |
| | | $t('common.confirm') |
| | | <el-button size="small" type="primary" @click="insertEditFrom">{{ |
| | | $t("common.confirm") |
| | | }}</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | project_insert, |
| | | project_delete, |
| | | project_update, |
| | | } from '../../api/api'; |
| | | import ProjectOl from '../../components/ProjectOl.vue'; |
| | | import MyBread from '../../components/MyBread.vue'; |
| | | import moment from 'moment'; |
| | | project_selectLocation, |
| | | } from "../../api/api"; |
| | | import ProjectOl from "../../components/ProjectOl.vue"; |
| | | import MyBread from "../../components/MyBread.vue"; |
| | | import moment from "moment"; |
| | | |
| | | export default { |
| | | name: 'versionManage', |
| | | name: "versionManage", |
| | | components: { MyBread, ProjectOl }, |
| | | data() { |
| | | return { |
| | | filterInput: "", |
| | | behavior: null, |
| | | outerVisible: false, |
| | | innerVisible: false, |
| | | showMap: false, |
| | | count: null, |
| | | projectFrom: {}, |
| | | editFrom: { geom: ' ' }, |
| | | editFrom: { geom: " ", projname: "" }, |
| | | dirId: null, |
| | | elProject: [], |
| | | dirList: [], //el树数据 |
| | | defaultProps: { |
| | | children: 'children', |
| | | label: 'name', |
| | | children: "children", |
| | | label: "name", |
| | | }, |
| | | dbTableData: [], |
| | | btnStatus: { |
| | |
| | | pageSize: 10, |
| | | }, |
| | | count1: 0, |
| | | title: null, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | computed: {}, |
| | | |
| | | methods: { |
| | | filterNode(value, data) { |
| | | if (!value) return true; |
| | | |
| | | return data.name.indexOf(value) !== -1; |
| | | }, |
| | | showPermsBtn() { |
| | | let currentPerms = this.$store.state.currentPerms; |
| | | let permsEntity = this.$store.state.permsEntity; |
| | |
| | | this.showMap = true; |
| | | }, |
| | | outerClose(done) { |
| | | this.$confirm('确认关闭?') |
| | | this.$confirm("确认关闭?") |
| | | .then((_) => { |
| | | this.setRestEditFrom(); |
| | | this.getSelectProject(); |
| | |
| | | }) |
| | | .catch((_) => {}); |
| | | }, |
| | | innerClose() { |
| | | async innerClose() { |
| | | this.showMap = false; |
| | | this.innerVisible = false; |
| | | debugger; |
| | | |
| | | var wkt = this.$wkt.parse(this.$store.state.projeOl); |
| | | |
| | | const data = await project_selectLocation({ |
| | | x: wkt.coordinates[0], |
| | | y: wkt.coordinates[1], |
| | | }); |
| | | |
| | | if (data.code == 200) { |
| | | for (var i in data.result) { |
| | | var key = data.result[i].key; |
| | | var val = data.result[i].value; |
| | | if (key == "国") { |
| | | this.editFrom.country = val; |
| | | } else if (key == "省") { |
| | | this.editFrom.province = val; |
| | | } else if (key == "市") { |
| | | this.editFrom.location = val; |
| | | } |
| | | } |
| | | } |
| | | this.editFrom.geom = this.$store.state.projeOl; |
| | | }, |
| | | async insertEditFrom() { |
| | | if (this.behavior == '新增项目') { |
| | | if (this.behavior == "新增项目") { |
| | | this.editFrom.dirid = this.dirId; |
| | | const data = await project_insert(this.editFrom); |
| | | if (data.code != 200) { |
| | | this.$message.error('项目新增失败'); |
| | | this.$message.error("项目新增失败"); |
| | | return; |
| | | } |
| | | this.outerVisible = false; |
| | | } else { |
| | | const data = await project_update(this.editFrom); |
| | | if (data.code != 200) { |
| | | this.$message.error('项目修改失败'); |
| | | this.$message.error("项目修改失败"); |
| | | return; |
| | | } |
| | | this.outerVisible = false; |
| | |
| | | this.setRestEditFrom(); |
| | | }, |
| | | setRestEditFrom() { |
| | | this.editFrom = { geom: ' ' }; |
| | | this.editFrom = { geom: " " }; |
| | | this.$store.state.projeOl = null; |
| | | }, |
| | | |
| | | //删除项目 |
| | | async deleteProject(row) { |
| | | const data = await project_delete({ gid: row.gid }); |
| | | if (data.code != 200) { |
| | | this.$message.error('项目删除失败'); |
| | | return; |
| | | } |
| | | this.getSelectProject(); |
| | | this.$confirm("此操作将永久删除该项目, 是否继续?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(async () => { |
| | | const data = await project_delete({ gid: row.gid }); |
| | | if (data.code == 200) { |
| | | this.$message({ |
| | | message: "删除成功!", |
| | | type: "success", |
| | | }); |
| | | this.getRoleTabelData(); |
| | | } else { |
| | | this.$message({ |
| | | message: "删除失败!", |
| | | type: "warning", |
| | | }); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | this.$message({ |
| | | type: "info", |
| | | message: "已取消删除", |
| | | }); |
| | | }); |
| | | }, |
| | | //修改项目 |
| | | EditProject(row) { |
| | | this.behavior = '修改项目'; |
| | | this.behavior = "修改项目"; |
| | | this.outerVisible = true; |
| | | this.editFrom = row; |
| | | this.$store.state.projeOl = row.geom; |
| | |
| | | //新增项目 |
| | | insertProject() { |
| | | if (this.dirId == null) { |
| | | this.$message.error('请选择需要新增的目录'); |
| | | this.$message.error("请选择需要添加的项目"); |
| | | return; |
| | | } |
| | | this.behavior = '新增项目'; |
| | | this.behavior = "新增项目"; |
| | | this.outerVisible = true; |
| | | this.editFrom.projname = this.title; |
| | | }, |
| | | //目录树点击事件 |
| | | handleNodeClick(data) { |
| | | //获取目录ID |
| | | this.dirId = data.id; |
| | | // this.dirId = data.id; |
| | | this.title = data.name; |
| | | this.dirId = data.code; |
| | | this.getSelectProject(); |
| | | }, |
| | | |
| | |
| | | this.listLoader.dirid = this.dirId; |
| | | const data = await project_selectByDirid(this.listLoader); |
| | | if (data.code != 200) { |
| | | this.$message.error('列表获取失败'); |
| | | this.$message.error("列表获取失败"); |
| | | return; |
| | | } |
| | | |
| | | // this.count = data.result; |
| | | this.count1 = data.count; |
| | | this.dbTableData = data.result; |
| | |
| | | async getSelectdirTab() { |
| | | const res = await project_selectDirAll(); |
| | | if (res.code != 200) { |
| | | this.$message.error('目录列表获取失败'); |
| | | this.$message.error("目录列表获取失败"); |
| | | return; |
| | | } |
| | | this.dirList = this.treeData(res.result); |
| | |
| | | return cloneData.filter((father) => { |
| | | // 循环所有项 |
| | | let branchArr = cloneData.filter((child) => father.id == child.pid); // 对比ID,分别上下级菜单,并返回数据 |
| | | branchArr.length > 0 ? (father.children = branchArr) : ''; // 给父级添加一个children属性,并赋值 |
| | | branchArr.length > 0 ? (father.children = branchArr) : ""; // 给父级添加一个children属性,并赋值 |
| | | return father.pid == 0; // 返回一级菜单 |
| | | }); |
| | | }, |
| | | }, |
| | | watch: {}, |
| | | watch: { |
| | | filterInput(val) { |
| | | this.$refs.tree.filter(val); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang="less" scoped> |
| | | //@import url(); 引入公共css类 |
| | | .verSionBox { |
| | | height: 81%; |
| | | width: 97%; |
| | | position: absolute; |
| | | box-sizing: border-box; |
| | | height: 98%; |
| | | width: 98%; |
| | | padding: 1%; |
| | | .verSionContent { |
| | | padding-top: 10px; |
| | | width: 100%; |
| | | height: 92%; |
| | | height: calc(100% - 75px); |
| | | display: flex; |
| | | justify-content: space-between; |
| | | justify-content: space-around; |
| | | .verSion_leftTree { |
| | | width: 15%; |
| | | height: 95%; |
| | | border: 1px solid white; |
| | | width: calc(23% - 0px); |
| | | height: 100%; |
| | | padding: 10px; |
| | | border-radius: 5px; |
| | | padding: 1%; |
| | | max-height: 670px; |
| | | box-sizing: border-box; |
| | | overflow-y: auto; |
| | | } |
| | | .verSion_rightContent { |
| | | width: 80%; |
| | | height: 95%; |
| | | border: 1px solid white; |
| | | width: 75%; |
| | | height: 100%; |
| | | border-radius: 5px; |
| | | padding: 1%; |
| | | overflow-y: auto; |
| | | } |
| | | .projectli { |
| | | height: 46px; |
| | | padding: 12px 12px; |
| | | font-size: 14px; |
| | | color: white; |
| | | border-bottom: 1px solid white; |
| | | line-height: 46px; |
| | | } |
| | | } |
| | | .eldivider { |
| | | margin-top: 0px; |
| | | } |
| | | .projFrom { |
| | | .el-input { |
| | | width: 800px; |
| | | } |
| | | } |
| | | .editFrom1 { |
| | | .el-input { |
| | | width: 600px; |
| | | } |
| | | } |
| | | .primary { |
| | | background: #409eff; |
| | | border: #409eff; |
| | | color: white; |
| | | } |
| | | /deep/ .el-select .el-input__inner { |
| | | border-color: #fff !important; |
| | | } |
| | | .pagination_box { |
| | | margin-top: 20px; |
| | | /deep/.el-input__inner { |
| | | background-color: transparent !important; |
| | | border: 1px solid; |
| | | color: white; |
| | | } |
| | | /deep/.el-pagination__total { |
| | | color: white; |
| | | } |
| | | /deep/.el-pagination__jump { |
| | | color: white; |
| | | } |
| | | /deep/.el-pager li.active { |
| | | color: #409eff; |
| | | } |
| | | /deep/.el-pager li { |
| | | color: white; |
| | | background: transparent; |
| | | } |
| | | /deep/.el-pager li { |
| | | color: white; |
| | | } |
| | | /deep/.btn-prev { |
| | | background: transparent; |
| | | } |
| | | /deep/.btn-next { |
| | | background: transparent; |
| | | } |
| | | /deep/.btn-next i { |
| | | color: white; |
| | | } |
| | | /deep/.btn-prev i { |
| | | color: white; |
| | | } |
| | | } |
| | | |
| | | /deep/.el-form-item__label { |
| | | color: white; |
| | | } |
| | | // 设置输入框的背景色、字体颜色、边框属性设置; |
| | | /deep/.el-input__inner { |
| | | background-color: transparent !important ; |
| | | color: #fff; |
| | | border: 1px solid; |
| | | } |
| | | /*修改table 表体的背景颜色和文字颜色*/ |
| | | /deep/ .el-table { |
| | | background-color: transparent; |
| | | |
| | | th, |
| | | td { |
| | | background-color: transparent; |
| | | } |
| | | .el-table__expanded-cell { |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | | // 表头背景色 |
| | | th.el-table__cell { |
| | | background-color: #303030; |
| | | color: #fff; |
| | | } |
| | | tr > td { |
| | | background-color: #303030; |
| | | color: #fff; |
| | | } |
| | | |
| | | // hover效果 |
| | | tr:hover > td { |
| | | background-color: rgba(255, 255, 255, 0.3) !important; |
| | | } |
| | | |
| | | tbody tr:hover { |
| | | background-color: rgba(255, 255, 255, 0.3) !important; |
| | | // text-align: center; |
| | | } |
| | | |
| | | // 滚动条宽高 |
| | | .el-table__body-wrapper::-webkit-scrollbar { |
| | | width: 5px; |
| | | height: 5px; |
| | | } |
| | | |
| | | .el-table__body-wrapper::-webkit-scrollbar { |
| | | width: 5px; |
| | | /*滚动条宽度*/ |
| | | height: 5px; |
| | | /*滚动条高度*/ |
| | | } |
| | | /*定义滚动条轨道 内阴影+圆角*/ |
| | | .el-table__body-wrapper::-webkit-scrollbar-track { |
| | | box-shadow: 0px 1px 3px #216fe6 inset; |
| | | /*滚动条的背景区域的内阴影*/ |
| | | border-radius: 10px; |
| | | } |
| | | |
| | | /*定义滑块 内阴影+圆角*/ |
| | | .el-table__body-wrapper::-webkit-scrollbar-thumb { |
| | | box-shadow: 0px 1px 3px #216fe6 inset; |
| | | border-radius: 6px; |
| | | background-color: #216fe6; |
| | | padding: 10px; |
| | | // padding-bottom: 0; |
| | | box-sizing: border-box; |
| | | border: 1px solid #dcdfe6; |
| | | } |
| | | } |
| | | } |
| | | /deep/ .el-dialog { |
| | | background: #303030; |
| | | } |
| | | /deep/.el-range-editor.is-active, |
| | | .el-range-editor.is-active:hover, |
| | | .el-select .el-input.is-focus .el-input__inner { |
| | | border: 1px solid; |
| | | } |
| | | /deep/.el-dialog__title { |
| | | color: white; |
| | | } |
| | | /deep/ .el-select .el-input__inner { |
| | | border-color: #fff !important; |
| | | } |
| | | /deep/.el-cascader .el-input__inner { |
| | | border-color: #fff !important; |
| | | .demo-form-inline { |
| | | //padding: 8px; |
| | | // margin-top: 10px; |
| | | border-radius: 5px; |
| | | //border: 1px solid #dcdfe6; |
| | | //margin-bottom: 20px; |
| | | // text-align: right; |
| | | .el-form-item { |
| | | margin: 5px; |
| | | } |
| | | } |
| | | </style> |
| | | <style scoped></style> |
| | | |