123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959 |
- <template>
- <div class="flex-box">
- <!-- v-show="lable.name === 'first'" -->
- <div class="flex-header" :span="24">
- <Tabs :tabList="tabList" @status="clickTabTops" />
- <el-button type="primary" @click="clickNewTag" v-show="lableTable.name === 'first'">+新建</el-button>
- </div>
- <div class="flex-count">
- <Table @clickDemand="clickDemand" :list="lableTable" ref="TableList" @changeNum="changeNum">
- </Table>
- </div>
- <el-dialog v-if="dialogStatus" :before-close="clickClose" :title="dialogTitle + '需求'" :visible.sync="dialogStatus"
- width="100%" :modal="false" style="display: flex; flex-direction: column">
- <!-- 后期维护 -->
- <div style="">
- <el-button type="primary" v-if="saveStatus" @click="clickSave">保存</el-button>
- <el-button type="primary" v-if="startStatus" @click="clickHandles">处理</el-button>
- <el-button type="primary" v-if="closeStatus" @click="clickClose">关闭</el-button>
- </div>
- <FormTable :list="fromList" :disabled="disabled" class="flex-form" ref="formTable" />
- <div>
- <div class="table-title">流程追踪</div>
- <div v-if="abc == true">
- <Tables :list="lables"></Tables>
- </div>
- </div>
- </el-dialog>
- <div v-if="destroy">
- <el-dialog title="处理操作" width="100%" :visible.sync="handleStatus" :before-close="handleCloses" :modal="false"
- v-if="handleStatus" :destroy-on-close="true">
- <Workflow ref="workflow" :list="fromList" v-if="isWorkflowStatus == true" @updateForm="beforeClose"
- :requestForm="requestForm" :adminResourceId="adminResourceId" :request_formTitle="request_form.title"/>
- <WorkflowEntrance :list="fromList" v-else :lastManList="lastManList" @beforeClose="beforeClose"
- :requestForm="requestForm" :request_formTitle="request_form.title"/>
- </el-dialog>
- </div>
- </div>
- </template>
- <script>
- import Workflow from "../../../components/workflowBase";
- import WorkflowEntrance from "../../../components/workflowEntrance";
- import Tabs from "../../../components/el-tabs.vue";
- import Table from "../../../components/el-form.vue";
- import Tables from "../../../components/el-forms.vue";
- import getConfig from '../../../config/dev.js'
- import FormTable from "./formTables.vue";
- import { updateBase } from "../../../http/api.js";
- import {
- getTodoBase,
- getDoneBase,
- getInitiateBase,
- } from "../../../http/api.js";
- import { log } from "console";
- export default {
- components: {
- Tabs,
- Table,
- Tables,
- FormTable,
- Workflow,
- WorkflowEntrance
- },
- created() {
- let status = JSON.stringify(this.$route.query) == "{}";
- if (status) {
- this.lableTable = this.firstTable
- this.getQueryList()
- this.usernumber()
- } else {
- let { id, type } = this.$route.query;
- let list = {
- taskId: id,
- tableName: this.request_form.processDefinitionKey
- };
- this.usernumber()
- this.lableTable = this.firstTable
- this.getQueryList(list, 0);//代办
- }
- },
- data() {
- return {
- lableTable: {},
- abc: false,
- handleClose: false,
- isWorkflowStatus: true, //默认展示模式组件,为true时展示多人处理组件
- buttonStatus: true,
- copyStatus: false,
- dialogTitle: "",
- disabled: true,
- destroy: false,
- //分页数据
- totalPage: "1", //默认第一页
- currentPage: "1", //当前页数
- pageSize: "10", //每页显示十条
- currentPageList: ["1", "2"],
- startStatus: true,
- closeStatus: true, //关闭按钮状态
- forwardStatus: false, //转需求管理平台状态
- exportBtnStatus: false, //导出按钮状态
- saveStatus: true, //保存按钮状态
- fromList: {}, //表单数据
- rejectStatus: true,
- taskId: "", //工单taskID
- request_form: {
- userId: "",
- userName: "",
- path: this.$router.currentRoute.name,
- userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
- // path:this.$roter.options.routers,
- // nextDealMan:'',
- title: "title",
- businessKey: "288",
- processDefinitionKey: "op_process",
- },
- requestForm: {
- // fresourceId: "b79206a9-b258-11ed-886f-d6cd97160e00", // 本地环境
- // fresourceId: "1245d300-b25a-11ed-be6b-00505687dcd3", //测试环境
- // fresourceId:'6b9e1cb2-d918-11ed-8255-e00084564cce',//生产环境
- fresourceId: getConfig().opcode,
- processDefinitionKey: "op_process",
- },
- treeList: [], //候选人列表
- treeCopyList: [], //抄送人列表
- editStatus: false,
- querryList: [], //已选人员名单
- commonlyList: [
- //常用意见列表页
- ],
- textarea: "未填写意见",
- num: 0,
- dialogStatus: false, //新建dialog显示
- handleStatus: false, //处理按钮状态
- tabList: [
- {
- index: "first",
- label: "我的待办",
- number: 0,
- name: "prosss_key",
- },
- {
- index: "two",
- label: "我的已办",
- number: 0,
- },
- {
- index: "three",
- label: "我发起的",
- number: 0,
- },
- ],
- firstTable: {
- name: "first",
- height: 500,
- titledata: [
- {
- label: "工单标题",
- prop: "need_name",
- width: 300,
- color: "#0682CD",
- },
- {
- label: "申请人",
- prop: "predealman",
- width: 300,
- },
- {
- label: "申请时间",
- prop: "proposer_time",
- width: 400,
- },
- {
- label: "当前环节",
- prop: "taskName",
- width: 400,
- },
- ], //表格头
- data: [], //内容数据
- loading: true,
- pageData: {
- total: 100, // 总条数
- pageSize: 10, // 每页数量
- pageNum: 1, // 页码
- },
- isSelection: false, // 表格有多选时设置
- isOperation: false, // 表格有操作列时设置
- isIndex: false, // 列表序号
- operation: {
- // 表格有操作列时设置
- label: "操作", // 列名
- width: "50", // 根据实际情况给宽度
- data: [
- {
- label: "操作", // 操作名称
- type: "", //按钮类型
- handleRow: (e, r, o) => {
- }, // 自定义事件
- },
- ],
- },
- },
- twoTable: {
- name: "two",
- disabled: true,
- titledata: [
- {
- label: "工单标题",
- prop: "need_name",
- width: 300,
- color: "#0682CD",
- },
- {
- label: "申请人",
- prop: "applicant",
- width: 300,
- },
- {
- label: "申请时间",
- prop: "proposer_time",
- width: 400,
- },
- {
- label: "当前环节",
- prop: "taskName",
- width: 400,
- },
- ], //表格头
- data: [], //内容数据
- loading: true,
- pageData: {
- total: 100, // 总条数
- pageSize: 10, // 每页数量
- pageNum: 1, // 页码
- },
- isSelection: false, // 表格有多选时设置
- isOperation: false, // 表格有操作列时设置
- isIndex: false, // 列表序号
- operation: {
- // 表格有操作列时设置
- label: "操作", // 列名
- width: "50", // 根据实际情况给宽度
- data: [
- {
- label: "操作", // 操作名称
- type: "", //按钮类型
- handleRow: function () { }, // 自定义事件
- },
- ],
- },
- },
- threeTable: {
- name: "three",
- titledata: [
- {
- label: "标题",
- prop: "need_name",
- width: 300,
- color: "#0682CD",
- },
- {
- label: "申请人",
- prop: "applicant",
- width: 300,
- },
- {
- label: "申请时间",
- prop: "proposer_time",
- width: 400,
- },
- {
- label: "当前环节",
- prop: "taskName",
- width: 400,
- },
- {
- label: "当前处理人",
- prop: "currentMan",
- width: 200,
- },
- ], //表格头
- data: [], //内容数据
- loading: true,
- pageData: {
- total: 100, // 总条数
- pageSize: 10, // 每页数量
- pageNum: 1, // 页码
- },
- isSelection: false, // 表格有多选时设置
- isOperation: false, // 表格有操作列时设置
- isIndex: false, // 列表序号
- operation: {
- // 表格有操作列时设置
- label: "支撑状态", // 列名
- width: "100", // 根据实际情况给宽度
- data: [
- {
- label: "查看", // 操作名称
- type: "", //按钮类型
- handleRow: (e, r, o) => {
- }, // 自定义事件
- },
- ],
- },
- },
- lable: {},
- lables: {
- height: "400",
- titledata: [
- {
- id: 1,
- label: "环节名称",
- prop: "taskName",
- width: 300,
- },
- {
- id: 2,
- label: "处理人",
- prop: "assignee",
- width: 300,
- },
- {
- id: 3,
- label: "到达时间",
- prop: "startTime",
- width: 300,
- },
- {
- id: 4,
- label: "处理时间",
- prop: "endTime",
- width: 300,
- },
- {
- id: 5,
- label: "回复意见",
- prop: "content",
- width: 300,
- },
- ], //表格头
- data: [], //内容数据
- loading: true,
- pageData: {
- total: 0, // 总条数
- pageSize: 10, // 每页数量
- pageNum: 1, // 页码
- },
- isSelection: false, // 表格有多选时设置
- isOperation: false, // 表格有操作列时设置
- isIndex: true, // 列表序号
- operation: {
- // 表格有操作列时设置
- label: "操作", // 列名
- width: "50", // 根据实际情况给宽度
- data: [
- {
- label: "操作", // 操作名称
- type: "", //按钮类型
- handleRow: function () { }, // 自定义事件
- },
- ],
- },
- },
- clickTagName: "first",
- };
- },
- methods: {
- clickTabTops(e) {
- console.log(e);
- this.$refs.TableList.page = 1;
- this.totalPage = "1";
- this.clickTagName = e;
- const options = {
- first: {
- setTable: function () {
- this.lableTable = this.firstTable;
- this.getQueryList();
- }.bind(this)
- },
- two: {
- setTable: function () {
- this.lableTable = this.twoTable;
- this.getQueryDone();
- }.bind(this)
- },
- three: {
- setTable: function () {
- this.lableTable = this.threeTable;
- this.getMeLaunch();
- }.bind(this)
- }
- };
- options[e]?.setTable?.();
- },
- //处理按钮,开始工作流接口
- clickHandles() {
- this.getNextPath(this.fromList.resourceId || "");
- this.request_form.title = '[IT工作台]-Op_Code-' + this.$refs.formTable.form.needName;
- },
- getNextPath(e) {
- let list = {
- fresourceId: this.requestForm.fresourceId, // 本地环境
- processId: this.requestForm.processDefinitionKey,
- };
- if (e) {
- list.resourceId = e;
- }
- this.$http({
- url: "/market/waf/queryPath",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: list,
- }).then((res) => {
- if (res.data.body.nextShapes[0].multi) {
- if (res.data.body.nextShapes[0].multi.multi === "true") {
- this.getLastName();
- } else {
- this.adminResourceId = "";
- }
- } else {
- this.adminResourceId = "";
- // this.destroy = true;
- // this.handleStatus = true;
- }
- console.log(this.fromList);
- if (this.fromList.processId || this.fromList.taskId) {
- this.destroy = true;
- this.handleStatus = true;
- } else {
- this.$message.error("请先点击保存按钮");
- }
- });
- },
- usernumber() {
- getInitiateBase(this.totalPage, "", { tableName: this.request_form.processDefinitionKey, }).then((res) => {
- this.tabList[2].number = res.data.totalRecord
- });
- getDoneBase(this.totalPage, "", { tableName: this.request_form.processDefinitionKey, }).then((res) => {
- this.tabList[1].number = res.data.totalRecord;
- });
- getTodoBase(this.totalPage, "", { tableName: this.request_form.processDefinitionKey, }).then((res) => {
- this.tabList[0].number = res.data.totalRecord
- });
- },
- getQueryList(e, status) {
- let list = {
- tableName: this.request_form.processDefinitionKey,
- };
- getTodoBase(this.totalPage, "", e || list).then((res) => {
- if (status === 0) {
- this.clickDemand("工单标题", res.data.data[0]);
- }
- console.log(res);
- this.lableTable.data = res.data.data;
- this.tabList[0].number = res.data.totalRecord;
- this.lableTable.pageData.total = res.data.totalRecord;
- this.loading = false;
- });
- },
- getQueryDone() {
- let list = {
- tableName: this.request_form.processDefinitionKey,
- };
- getDoneBase(this.totalPage, "", list).then((res) => {
- this.lableTable.data = res.data.data;
- this.lableTable.pageData.total = res.data.totalRecord;
- this.tabList[1].number = res.data.totalRecord;
- this.total = res.data.totalRecord;
- this.loading = false;
- });
- },
- getMeLaunch() {
- let list = {
- tableName: this.request_form.processDefinitionKey,
- };
- getInitiateBase(this.totalPage, "", list).then((res) => {
- this.lableTable.data = res.data.data;
- this.lableTable.pageData.total = res.data.totalRecord;
- this.tabList[2].number = res.data.totalRecord;
- this.total = res.data.totalRecord;
- this.loading = false;
- });
- },
- //新建按钮
- async clickNewTag() {
- this.dialogTitle = "新建";
- this.fromList = {}
- this.lables.data = [];
- this.disabled = false;
- this.saveStatus = true
- await this.getOrderNumber();
- },
- getOrderNumber() {
- this.$http({
- url: "/market/opProcess/getOrderNumber",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {}
- }).then((res) => {
- this.fromList.orderNumber = res.data.body
- this.fromList.taskName = '填写申请单'
- this.dialogStatus = true;
- });
- },
- //获取用户部门名称
- getDepartmentName() {
- this.$http({
- url: "/market/waf/queryDept",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: {},
- }).then((res) => {
- });
- },
- clickDemand(e, res) {
- if (e === "工单状态" || e === "标题" || e === "工单标题") {
- if (this.clickTagName === "first") {
- this.dialogTitle = "查看";
- if (res.taskName === "填写申请单") {
- this.disabled = false;
- this.saveStatus = true;
- } else {
- this.disabled = true;
- this.saveStatus = false;
- }
- // this.clickForm(res);
- // this.getFromQuery(res);
- // setTimeout(() => {
- // this.getBtnStatus(res);
- // }, 500);
- }
- if (this.clickTagName === "two") {
- this.disabled = true;
- this.startStatus = false;
- this.saveStatus = false;
- }
- if (this.clickTagName === "three") {
- if (res.taskName === "填写申请单") {
- this.startStatus = true;
- this.disabled = false;
- this.saveStatus = true;
- } else {
- this.startStatus = false;
- this.disabled = true;
- this.saveStatus = false;
- }
- }
- this.fromList = res;
- this.clickForm(res);
- this.getFromQuery(res);
- }
- },
- //查询form表单数据
- getFromQuery(e) {
- this.$http({
- url: "/market/opProcess/query",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: { id: e.id },
- }).then((res) => {
- console.log(e);
- let list = this.convertObjKeys(e)
- this.fromList = { ...res.data, ...list }
- this.dialogStatus = true;
- });
- },
- async clickForm(e) {
- let list = {
- processInstanceId: e.process_id,
- // taskId:e.taskId
- };
- let _this = this;
- let obj = {
- url: this.$url.formList.getCommentsByProcessId, //流程追踪接口
- data: list,
- headers: {
- "Content-Type": "application/json",
- },
- };
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- console.log("[ 接口返回值第一曾 ] >", data);
- let list = [];
- list = data.data.data;
- if (data.data.lastmandata.length != 0) {
- data.data.lastmandata.map((item, index) => {
- item.id = index + 22;
- });
- }
- list.map((item, index) => {
- item.startTime = _this.$util.datetimeFormat(item.startTime);
- item.endTime = _this.$util.datetimeFormat(item.endTime);
- item.id = index + 1;
- item.children = [];
- if (data.data.lastmandata.length != 0) {
- let indexs = data.data.lastmandata.findIndex((items) => {
- if (items.taskId == item.taskId) {
- item.children.push(items);
- }
- });
- }
- });
- _this.lables.data = list;
- _this.abc = true;
- }
- },
- //获取页码
- changeNum(e) {
- let _this = this
- this.totalPage = e;
- const methodMapping = {
- first: (timeList) => {
- _this.firstTable.pageData.pageNum = e;
- if (timeList) {
- _this.getQueryList(timeList);
- } else {
- _this.getQueryList();
- }
- },
- two: () => {
- _this.twoTable.pageData.pageNum = e;
- _this.getQueryDone();
- },
- three: (searchLists) => {
- _this.threeTable.pageData.pageNum = e;
- if (searchLists) {
- _this.getMeLaunch(searchLists);
- } else {
- _this.getMeLaunch();
- }
- },
- }
- const methodToExecute = methodMapping[this.clickTagName];
- if (methodToExecute) {
- methodToExecute(this.timeList || this.searchLists);
- }
- // this.totalPage = e;
- },
- clickSave() {
- this.$refs.formTable.$refs.form.validate((valid) => {
- if (valid) {
- if (this.fromList.id) {
- this.setUpdateCopy(this.$refs.formTable.form)
- } else {
- this.getUserIds();
- }
- } else {
- this.$message.error("请完善表单信息");
- return false;
- }
- });
- // if (this.fromList.id) {
- // this.setUpdateCopy(this.$refs.formTable.form)
- // } else {
- // this.getUserIds();
- // this.setForm();
- // }
- },
- getUserIds() {
- this.$http({
- url: "/market/api/user/info/queryNodePers?params=" + JSON.parse(window.sessionStorage.userInfo).loginNo,
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- }).then((res) => {
- this.request_form.userName = res.data[0].children[0].loginNameStr;
- this.request_form.userId = res.data[0].children[0].loginNoStr;
- this.setForm();
- console.log(this.request_form)
- });
- },
- setForm(e) {
- this.request_form.title = '[IT工作台]-Op_Code-' + this.$refs.formTable.form.needName;
- this.$http({
- url: "/market/opProcess/add",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: this.$refs.formTable.form,
- }).then((res) => {
- this.request_form.businessKey = res.data.body;
- this.clickHandle(res.data.body);
- });
- },
- async clickHandle(e) {
- let _this = this;
- let obj = {
- url: this.$url.formList.startWork, //开始工作流接口
- data: _this.request_form,
- status: "form",
- headers: {
- "Content-Type": "application/x-www-form-urlencoded",
- },
- };
- let res = await this.common.httpPost(obj, success);
- function success(data) {
- console.log(data);
- // _this.fromList.processId = data.data;
- // _this.taskId = data.data;
- let list = {
- id: e,
- // taskId:_this.formId,
- tableName: _this.request_form.processDefinitionKey,
- processId: data.data,
- // resourceId: _this.nextPath.currentShape[0].resourceId,
- };
- _this.setUpdate(list);
- }
- },
- convertObjKeys(obj) {
- // 检查传入参数是否为对象
- if (typeof obj !== "object" || obj === null) {
- return obj;
- }
- // 对象遍历,使用 Object.keys() 获取所有属性名称
- return Object.keys(obj).reduce((result, key) => {
- // 下划线转驼峰命名
- const newKey = key.replace(/_(\w)/g, (match, p1) => p1.toUpperCase());
- // 将原有属性赋值到新属性中
- result[newKey] = obj[key];
- return result;
- }, {});
- },
- async setUpdate(e) {
- await updateBase(e).then((res) => {
- let list = this.convertObjKeys(res.data.body[0])
- console.log(list);
- // console.log(res.data.body);
- this.fromList = list
- // console.log(this.formList);
- // this.fromList.taskId = res.data.body[0].taskId;
- // this.fromList.taskId = '1111111111';
- // this.fromList.taskName = res.data.body[0].taskName;
- // this.fromList = concat;
- });
- },
- setUpdateCopy(e) {
- this.request_form.title = '[IT工作台]-Op_Code-' + this.$refs.formTable.form.needName;
- this.$http({
- url: "/market/opProcess/update",
- method: "post",
- headers: {
- "Content-Type": "application/json",
- },
- data: e
- }).then((res) => {
- console.log(res);
- this.$message.success(res.data.desc)
- });
- },
- clickClose() {
- // this.$refs.formTable.form = {}
- this.fromList = {}
- this.dialogStatus = false;
- this.treeList = [];
- this.textarea = "";
- this.handleStatus = false;
- this.handleStatus = false;
- this.destroy = false;
- this.dialogStatus = false;
- this.saveStatus = false;
- this.startStatus = true;
- this.usernumber()
- },
- handleCloses() {
- this.beforeClose()
- },
- beforeClose(e) {
- console.log(e);
- this.dialogStatus = false;
- this.handleStatus = false;
- this.usernumber()
- // this.handleCloses();
- this.getQueryList();
- // this.getMeLaunch();
- // this.getQueryDone();
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .copyClass {
- display: flex;
- }
- .flex-header-text-tree {
- width: 50%;
- text-align: center;
- }
- .active {
- background-color: #f3faff;
- }
- .flex-common {
- padding: 10px 5%;
- font-size: 18px;
- }
- .flex-buttons {
- background-color: #cde4f6;
- border-color: #cde4f6;
- color: #606266;
- }
- .flex-button {
- margin-top: 10px;
- margin-bottom: 10px;
- ::v-deep .el-button--primary {
- width: 222px;
- }
- }
- .flex-left-header-text {
- height: 40px;
- line-height: 40px;
- color: black;
- padding-left: 10px;
- background-color: #cde4f6;
- font-size: 18px;
- font-weight: bold;
- }
- .flex-right-text {
- margin-right: 20px;
- width: 50%;
- }
- .flex-handle {
- width: 100%;
- padding: 30px;
- display: flex;
- .flex-right {
- width: 50%;
- border: 1px solid #e1e1e1;
- margin-left: 20px;
- }
- .flex-left {
- width: 50%;
- display: flex;
- flex-direction: column;
- .flex-left-header {
- display: flex;
- justify-content: space-around;
- }
- }
- }
- .table-title {
- height: 50px;
- line-height: 50px;
- background-color: #f3faff;
- font-size: 18px;
- font-weight: bold;
- }
- ::v-deep .el-dialog {
- margin-top: 0 !important;
- }
- // ::v-deep .el-table__fixed-body-wrapper {
- // top: 50px !important;
- // }
- .flex-box {
- display: flex;
- // overflow: auto;
- overflow-y: auto;
- overflow-x: hidden;
- width: calc(100% - 40px);
- border-radius: 20px;
- background-color: #fff;
- margin: 0 auto;
- margin-top: 20px;
- position: relative;
- flex-direction: column;
- // height: 100%;
- .flex-header {
- display: flex;
- width: 100%;
- position: relative;
- height: 60px;
- margin: 1%;
- border-bottom: 1px solid #e1e1e1;
- justify-content: space-between;
- .el-button {
- width: 150px;
- float: right;
- height: 40px !important;
- margin-right: 30px;
- }
- }
- }
- //设置子组件样式
- ::v-deep .el-tabs__item {
- padding: 0;
- margin-right: 20px;
- width: 166px;
- text-align: center;
- background-color: #d8eaf6;
- color: black;
- }
- ::v-deep .is-active {
- color: #fff;
- background-color: #0583cd;
- }
- ::v-deep .el-tabs__active-bar {
- display: none;
- }
- ::v-deep .el-tabs__nav-wrap::after {
- display: none !important;
- }
- .flex-form {
- margin-top: 50px;
- }
- .flex-footer-botton {
- display: flex;
- justify-content: space-evenly;
- }
- </style>
|