12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043 |
- <template>
- <div class="data-table" :style="{ marginTop: marginTop }">
- <div :style="dataTableContentStyle" v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8)" class="data-table-content">
- <div class="flex">
- <div :class="dataId ? 'bcTitle': 'manageTitle'">{{ dataTitle }}</div>
- <el-button size="small" :class="dataId ? 'bcButton':''" :disabled="!dataContent.service_id" @click="handleAdd" plain type="primary">新增</el-button>
- </div>
- <template v-if="tableData.length">
- <div style="height:100%">
- <el-table v-el-table-infinite-scroll="load" :data="dealedTableData" :summary-method="getSummaries" :span-method="tableSpanMethod" stripe :show-summary="showSummary" border ref="table" :height="tableHeight ? tableHeight : minHeight - 8 + 'vh'" class="table infinite-list" style="width: 100%; overflow: auto" @select="selectHandler">
- <el-table-column v-for="(item, index) in tableColsCopy" :key="index" :prop="item.columnName" :label="item.columnLabel" :show-overflow-tooltip="showOverflowTooltip" :formatter="formatter">
- <template #header>
- <el-tooltip :content="item.columnDescribe || item.columnLabel" placement="top">
- <TableHeaderCell :label="item.columnLabel" :filter-options="tableDataFilters[item.columnName]" :filter-values.sync="filterValues[item.columnName]" :sortable="item.needSort" :sort-rule.sync="tableDataSortRules[item.columnName]" />
- </el-tooltip>
- </template>
- </el-table-column>
- <el-table-column fixed="right" label="操作" :width="fixedWidth">
- <template slot-scope="scope">
- <div class="hd-td">
- <el-button type="text" size="small" class="rmScs">测试</el-button>
- <el-button type="text" @click="handleEdit(scope.row)" size="small" class="rmScs">编辑</el-button>
- <el-button class="rmSc" type="text" @click="handleRemove(scope.row)" size="small">删除</el-button>
- </div>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </template>
- <template v-else>
- <el-empty description="暂无数据"></el-empty>
- </template>
- </div>
- <div class="data-table-dialog">
-
- <Dialog :width="width" :isBody="isBody" :flag="flag">
- <div class="dialog-content">
- <div class="title">{{ tableTitle }}</div>
- <div style="max-height:580px;overflow-y: scroll;" class="contents">
- <el-form ref="ruleForm" :model="form" :label-width="labelWidth">
- <div class="flex-wrap">
- <el-form-item class="flex1 r40" label="算法排序">
- <el-input size="small" placeholder="请输入算法排序" clearable v-model="form.library_sort"></el-input>
- </el-form-item>
- <el-form-item class="flex1" label="算法名称">
- <el-input size="small" placeholder="请输入算法名称" clearable v-model="form.library_name"></el-input>
- </el-form-item>
- </div>
- <el-form-item class="flex1" label="前置条件">
- <el-input size="small" type="textarea" rows="3" placeholder="请输入前置条件" clearable v-model="form.is_exec"></el-input>
- </el-form-item>
- <div class="flex-wrap">
- <el-form-item class="flex1 r40" label="参数位置">
- <el-input size="small" placeholder="请输入参数位置" clearable v-model="form.parmIndex"></el-input>
- </el-form-item>
- <el-form-item class="flex1" label="算法类型">
- <el-select size="small" v-model="form.library_type" placeholder="请选择算法类型">
- <el-option label="java" :value="1"></el-option>
- <el-option label="js脚本" :value="2"></el-option>
- <el-option label="数据库" :value="3"></el-option>
- </el-select>
- </el-form-item>
- </div>
- <div class="flex-wrap">
- <el-form-item class="flex1 r40" label="数据源名称">
- <el-select size="small" v-model="form.datasource_id" placeholder="请选择数据源">
- <el-option v-for="(item,index) in dataSourceArrs" :key="index" :label="item.dataSourceName" :value="item.dataSourceID"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item class="flex1" label="目标数据对象">
- <el-input size="small" placeholder="请输入目标数据对象" clearable v-model="form.sourceObjectName"></el-input>
- </el-form-item>
- </div>
- <el-form-item label="是否动态表">
- <el-radio-group v-model="form.isActiveTable">
- <el-radio :label="true">是</el-radio>
- <el-radio :label="false">否</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item label="数据表达式">
- <el-input size="small" type="textarea" rows="3" placeholder="请输入数据表达式" clearable v-model="form.computing_expression"></el-input>
- </el-form-item>
- </el-form>
- </div>
- <div class="foot right">
- <el-button size="medium" @click="handleOk" class="r24 bcButton" type="primary">提交</el-button>
- <el-button @click="eledite" size="medium">取消</el-button>
- </div>
- </div>
- </Dialog>
- <Dialog :isBody="isBody" :flag="rmFlag">
- <div class="airportInfoDialog">
- <div class="title del-title">删除</div>
- <div class="content del-content">
- <span class="el-icon-error error r10"></span>您是否确认删除<span class="error l10">{{ rmTitle }}</span>
- ?
- </div>
- <div class="foot right Delfoot">
- <el-button size="medium" class="r24" @click="tableRemove" type="danger">删除</el-button>
- <el-button size="medium" @click="rmFlag = false">取消</el-button>
- </div>
- </div>
- </Dialog>
- </div>
- </div>
- </template>
- <script>
- import { setTableFilters } from "@/utils/table";
- import Dialog from "@/layout/components/Dialog/index.vue";
- import NoData from "@/components/nodata";
- import { translateDataToTreeAllTreeMsg } from "@/utils/validate";
- import { Query, newData, modifyData, moveData } from "@/api/webApi";
- import pf from '@/layout/mixin/publicFunc'
- import TableHeaderCell from '@/components/TableHeaderCell/index.vue'
- export default {
- name: "DataTable",
- mixins: [pf],
- props: {
- dataContent: {
- type: Object,
- default: () => ({}),
- },
-
- width: {
- type: String,
- default: "630px",
- },
-
- isBody: {
- type: Boolean,
- default: false,
- },
-
- rows: {
- type: Number,
- default: 24,
- },
-
- labelWidth: {
- type: String,
- default: "100px",
- },
-
- tableHeight: {
- type: [String, Number],
- default: 0,
- },
- minHeight: {
- type: Number,
- default: 89,
- },
-
- showSummary: {
- type: Boolean,
- default: false,
- },
- marginTop: {
- type: String,
- default: "0px",
- },
-
- showOverflowTooltip: {
- type: Boolean,
- default: false,
- },
-
- fixedWidth: {
- type: String,
- default: "180px",
- },
- dataId: {
- type: Number
- },
- dataTitle: {
- type: String,
- default: "",
- },
- },
- components: { Dialog, NoData, TableHeaderCell },
- data () {
- return {
- pageTitle: '',
- asShow: true,
- loading: false,
- flag: false,
- serviceId: null,
- rmFlag: false,
- rowTitle: "",
- page: 0,
- pageSize: 10,
- noMore: false,
- tableCols: [],
- tableData: [],
- tableColsCopy: [],
- tableDataFilters: {},
- filterValues: {},
- tableDataCopy: [],
- tableGroups: [],
- colShowFilter: "",
- spanArr: [],
- pos: 0,
- tableTitle: "新增",
- tableType: "add",
- tableForm: {},
- rmTitle: "",
- tableObj: {},
- tableOptions: {},
- tableArrs: [],
- proAll: false,
- roles: JSON.parse(sessionStorage.getItem("userAuthList")) ?? [],
- tableOptionscp: {},
- tabledatacopy: {},
- queryId: '',
- form: {
- computing_expression: null,
- is_exec: null,
- isActiveTable: null,
- library_name: null,
- library_sort: null,
- library_type: null,
- parmIndex: null,
- sourceObjectName: null,
- datasource_id: null
- },
- datasource_id: 4,
- dataSourceArrs: [],
- tableDataSortRules: {},
- };
- },
- watch: {
- dataContent: {
- handler (val) {
- if (val.service_id) {
- this.queryId = val.service_id
- this.resetTable();
- this.getColumnData(val.service_id)
-
- } else {
- this.resetTable();
- }
- },
- deep: true
- }
- },
- computed: {
- dataTableContentStyle () {
- const style = {};
- if (this.minHeight) {
- style["min-height"] = this.minHeight;
- }
- if (this.tableHeight) {
- style["height"] = this.tableHeight;
- }
- return style;
- },
-
- arrowClass () {
- return function (prop) {
- let classString = "";
- if (this.colShowFilter === prop) {
- return "arrow-active";
- }
- if (
- Object.entries(this.tableDataFilters).find(
- ([key, arr]) => this.filterValues[prop]
- )
- ) {
- classString += "arrow-blue";
- }
- return classString;
- };
- },
-
- fromDataType () {
- return function (type) {
- if (type) {
- return type.replace(/\([^\)]*\)/g, '')
- }
- }
- },
-
- dealedTableData () {
- const filtered = this.tableData.filter(item => {
- let flag = true
- Object.entries(this.filterValues).forEach(([key, arr]) => {
- if (arr.length && !arr.includes(String(item[key]))) {
- flag = false
- }
- })
- return flag
- })
- const sortRules = Object.entries(this.tableDataSortRules).reduce(
- (pre, [key, value]) => {
- if (value) {
- pre[0].push(key)
- value = value === 'ascending' ? 'asc' : 'desc'
- pre[1].push(value)
- }
- return pre
- },
- [[], []]
- )
- return this._.orderBy(filtered, sortRules[0], sortRules[1])
- },
- },
- mounted () {
- this.getDataSourceId(SERVICE_ID.serTableDataId)
- },
- updated () {
- this.$refs["table"]?.doLayout();
- },
- methods: {
-
- async getColumnData (id) {
- try {
- const { code, returnData } = await this.getQueryList(SERVICE_ID.getTableColumnId, { serviceOutPutId: SERVICE_ID.serTableId });
- if (code == 0) {
- if (returnData && returnData.length) {
- const titleColumn = returnData.find(
- (item) => item.needShow === 1
- );
- if (titleColumn) {
- this.rowTitle = titleColumn.columnName;
- }
- this.tableCols = returnData;
- this.getQuery(id);
- this.setTableCols();
- }
- } else {
- this.$message.error("获取表头数据失败");
- }
- } catch (error) {
- console.log(error)
- }
- },
- eledite () {
- this.flag = false;
- const arrbegin = _.cloneDeep(this.tableOptionscp);
- this.tableOptions = arrbegin;
- },
- setTableCols () {
- this.tableCols.forEach(({ columnName, needFilters, needSort }) => {
- if (needFilters) {
- this.$set(this.tableDataFilters, columnName, [])
- this.$set(this.filterValues, columnName, [])
- }
- if (needSort) {
- this.$set(this.tableDataSortRules, columnName, '')
- }
- })
- },
- load () {
-
- if (!this.isTree) {
- if (this.noMore || this.loading) {
- return;
- }
- this.getQuery(this.queryId);
- }
- },
- resetTable () {
- this.page = 0;
- this.noMore = false;
- this.tableData = [];
- },
- changeSelect (data, name) {
- if (this.tableForm[data] === "") {
- this.tableForm[data] = null;
- }
- this.tableForm[this.tableOptions[data][0].setvalue] =
- this.tableForm[data];
- const arrbegin = _.cloneDeep(this.tabledatacopy);
- if (this.tableForm.beginNode) {
- this.tableOptions.beginPosition = arrbegin.beginPosition.filter(
- (i) => i.nodeCode === this.tableForm.beginNode
- );
- arrbegin.beginPosition.forEach((element) => {
- if (element.v === this.tableForm.beginPosition) {
- if (element.nodeCode !== this.tableForm.beginNode) {
- this.tableForm.beginPosition = "";
- }
- }
- });
-
-
-
-
-
-
-
-
-
-
- this.asShow = false;
- this.asShow = true;
- }
- if (this.tableForm.beginPosition && !this.tableForm.beginNode) {
- arrbegin.beginPosition.forEach((element) => {
- if (this.tableForm.beginPosition === element.v) {
- this.tableForm.beginNode = element.nodeCode;
- }
- });
- }
- if (this.tableForm.endNode) {
- this.tableOptions.endPosition = arrbegin.endPosition.filter(
- (i) => i.nodeCode === this.tableForm.endNode
- );
- arrbegin.endPosition.forEach((element) => {
- if (element.v === this.tableForm.endPosition) {
- if (element.nodeCode !== this.tableForm.endNode) {
- this.tableForm.endPosition = "";
- }
- }
- });
- this.asShow = false;
- this.asShow = true;
- }
- if (this.tableForm.endPosition && !this.tableForm.endNode) {
- arrbegin.endPosition.forEach((element) => {
- if (this.tableForm.endPosition === element.v) {
- this.tableForm.endNode = element.nodeCode;
- }
- });
- }
- },
- inputChangeHandler (data) {
- if (this.tableForm[data] === "") {
- this.tableForm[data] = null;
- }
- },
-
- async getQuery (id) {
- try {
- this.loading = true;
- const { code, returnData } = await this.getQueryList(this.dataId, { service_id: id }, ++this.page, this.pageSize);
- if (code == 0) {
- if (returnData.length === 0) {
- this.page--;
- this.noMore = true;
- this.loading = false;
- } else {
- this.tableData.push(...returnData);
-
- setTimeout(() => {
- this.initTableData();
- this.loading = false;
- }, 100);
- }
- } else {
- this.page--;
- this.loading = false;
- this.$message.error("获取表格数据失败");
- }
- } catch (error) {
- console.log(error)
- this.page--;
- this.loading = false;
- }
- },
-
- async generalDataReception (event, data) {
- try {
- const params = {
- serviceId: this.dataId,
- dataContent: data,
- event: `${event}`,
- };
- const { code } =
- event == 1
- ? await newData(params)
- : event == 2
- ? await modifyData(params)
- : await moveData(params);
- if (code == 0) {
- this.$message.success("操作成功");
- this.resetTable();
- this.getQuery(this.queryId);
- this.flag = false;
- this.rmFlag = false;
- this.tableObj = {};
- this.form = {};
-
- } else {
- this.$message.error("操作失败");
- this.flag = false;
- this.rmFlag = false;
- this.tableObj = {};
- this.form = {};
- }
- } catch (error) {
- this.flag = false;
- this.rmFlag = false;
- this.tableObj = {};
- this.form = {};
- }
- },
-
- toggleRowSelection (row, isSelected) {
- this.$refs["table"].toggleRowSelection(row, isSelected);
- },
-
- selectTableRows (tableData, selectFlagName) {
- tableData.forEach((row) => {
- this.$refs["table"].toggleRowSelection(row, !!row[selectFlagName]);
- });
- this.$emit("selectionAll", this.$refs.table.selection);
- },
-
- initTableData () {
- this.tableColsCopy = this.tableCols.filter((item) => item.needShow);
- this.tableColsCopy = _.orderBy(this.tableColsCopy, ['orderNumber'], ['asc']);
- this.tableDataCopy = _.cloneDeep(this.tableData);
- const datas = _.cloneDeep(this.tableColsCopy);
-
- datas.forEach(async (item) => {
- this.tableDataFilters[item.columnName] = [];
- if (item.needGroup) {
- this.tableGroups.push(item.columnName);
- }
- if (item.listqueryTemplateID || item.listqueryTemplateID == 0) {
- this.tableArrs.push(item.columnName);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
-
- });
- setTableFilters(this.tableData, this.tableDataFilters);
- this.tableGroup(this.tableData);
-
- this.tableOptionscp = _.cloneDeep(this.tableOptions);
- const arrbegin = _.cloneDeep(this.tableOptions);
- if (arrbegin) {
- setTimeout(() => {
- this.tableData.forEach((element) => {
- if (this.tableOptions.beginNode) {
- arrbegin.beginNode.forEach((res) => {
- if (res.v === element.beginNode) {
- element.beginNode = res.k;
- }
- });
- arrbegin.endNode.forEach((res) => {
- if (res.v == element.endNode) {
- element.endNode = res.k;
- }
- });
- arrbegin.calculationBasis.forEach((res) => {
- if (res.v == element.calculationBasis) {
- element.calculationBasis = res.k;
- }
- });
-
- this.tabledatacopy.beginPosition.forEach((res) => {
- if (res.v == element.beginPosition) {
- element.beginPosition = res.k;
- }
- });
- this.tabledatacopy.endPosition.forEach((res) => {
- if (res.v == element.endPosition) {
- element.endPosition = res.k;
- }
- });
- }
- });
- }, 100);
- }
-
- },
-
- getSelectDataAll (reqUts) {
- Promise.all(reqUts)
- .then((res) => {
- this.proAll = true;
- })
- .catch((err) => {
- this.proAll = false;
- });
- },
-
- async getSelectData (id, name) {
-
- const { code, returnData } = await Query({
- id,
- dataContent: name ? [name] : name === null ? [null] : [],
- });
- if (code == 0) {
- return returnData.listValues;
- } else {
- return [];
- }
- },
-
- setTable () {
- this.tableArrs.forEach((item) => {
- this.tableOptions[item].forEach((p) => {
- this.tableDataCopy.forEach((msg) => {
- if (msg[item] == p.v) {
- msg[item] = p.k;
- }
- });
- this.tableDataFilters[item].forEach((cap) => {
- if (cap.value == p.v) {
- cap.text = p.k;
- cap.value = p.k;
- }
- });
- });
- });
- this.tableData = this.tableDataCopy;
- },
-
- tableGroup (tableData) {
- const spanArr = [];
- let pos = 0;
- let ifYj = this.tableGroups[0];
- for (let i = 0; i < tableData.length; i++) {
- if (i === 0) {
- spanArr.push(1);
- } else {
- if (tableData[i][ifYj] === tableData[i - 1][ifYj]) {
- spanArr[pos] += 1;
- spanArr.push(0);
- } else {
- spanArr.push(1);
- pos = i;
- }
- }
- }
- this.spanArr = spanArr;
- this.pos = pos;
- },
- popoverShowHandler (prop) {
- this.colShowFilter = prop;
- },
- popoverHideHandler () {
- this.colShowFilter = "";
- },
- formatter (row, column, cellValue, index) {
- const sameColumn = this.tableCols.find(
- col => col.columnName === column.property
- )
- if (sameColumn && this.fromDataType(sameColumn.dataType) === 'datetime') {
- return (cellValue ?? '').replace('T', ' ')
- }
- return cellValue
- },
-
- tableSpanMethod ({ row, column, rowIndex, columnIndex }) {
- if (this.tableGroups.includes(column["property"])) {
- const _row = this.spanArr[rowIndex];
- const _col = _row > 0 ? 1 : 0;
- return {
- rowspan: _row,
- colspan: _col,
- };
- }
- },
-
- getSummaries (param) {
- const { columns, data } = param;
- const sums = [];
- columns.forEach((column, index) => {
- this.tableColsCopy.forEach((p) => {
- if (column.property == p.columnName && p.needCount) {
- const values = data.map((item) => Number(item[column.property]));
- if (!values.every((value) => isNaN(value))) {
- sums[index] = values.reduce((prev, curr) => {
- const value = Number(curr);
- if (!isNaN(value)) {
- return prev + curr;
- } else {
- return prev;
- }
- }, 0);
- sums[index] += "";
- }
- }
- });
- });
- return sums;
- },
-
- handleOk () {
- this.submitClickHandler();
- },
-
- tableLoad () { },
-
- handleAdd () {
- this.flag = true;
- this.tableType = "add";
- this.tableTitle = "新增算法配置";
- for (const key in this.form) {
- if (Object.hasOwnProperty.call(this.form, key)) {
- this.form[key] = null
- }
- }
- },
- async getDataSourceId (id) {
- const { code, returnData } = await this.getQueryList(id, this.dataContent);
- if (code == 0) {
- this.dataSourceArrs = returnData
- }
- },
-
- handleEdit (row) {
- this.flag = true;
- this.tableType = "edit";
- this.tableTitle = "编辑算法配置";
- this.form = JSON.parse(JSON.stringify(row));
- this.form.isActiveTable = row.isActiveTable == '1' ? true : false
- },
- successData () {
- this.$message.success("操作成功");
- this.resetTable();
- this.getQuery(this.queryId);
- this.flag = false;
- this.rmFlag = false;
- this.tableObj = {};
- this.form = {};
- },
-
- submitClickHandler () {
- this.$refs["ruleForm"].validate(async (valid) => {
- if (valid) {
- this.form = Object.assign(this.form, this.dataContent)
- if (this.tableType == "add") {
- const { code } = await this.getChangeList(this.dataId, this.form, 1)
- if (code == 0) {
- this.successData()
- }
- } else {
- const { code } = await this.getChangeList(this.dataId, this.form, 2, 'library_id')
- if (code == 0) {
- this.successData()
- }
- }
- } else {
- return false;
- }
- });
- },
-
- handleRemove (row) {
- this.rmFlag = true;
-
- this.rmTitle = row[this.rowTitle];
- this.tableObj = row;
- },
-
- async tableRemove () {
- const { code } = await this.getChangeList(this.dataId, this.tableObj, 3)
- if (code == 0) {
- this.successData()
- }
- },
-
- selectHandler (selection, row) {
- this.$emit("selection-change", selection, row);
- },
-
- handlePreview (row) {
- this.$emit("preview", row);
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .data-table {
- width: 100%;
- // background-color: #fff;
- padding: 20px;
- .data-table-content {
- height: 100%;
- .nodata {
- margin-top: 25px;
- }
- }
- .bcButton {
- background: #2579a0;
- border-radius: 4px;
- border-color: #2579a0;
- color: #ffffff;
- }
- .bcButton.is-disabled {
- color: #8cc5ff;
- background-color: #ecf5ff;
- border-color: #d9ecff;
- }
- .bcTitle {
- font-size: 20px;
- font-family: Microsoft YaHei;
- font-weight: bold;
- color: #303133;
- }
- ::v-deep .table {
- width: 100%;
- margin-top: 25px;
- .cell {
- padding: 0;
- text-align: center;
- font-size: 14px;
- font-family: Helvetica, "Microsoft YaHei";
- letter-spacing: 0;
- }
- .hd-td {
- display: flex;
- justify-content: center;
- }
- .cell-click {
- cursor: pointer;
- color: #2d7cff;
- &.cell-clicked {
- color: purple;
- }
- }
- .el-table__header-wrapper {
- .cell {
- font-weight: bold;
- color: #101116;
- .el-tooltip {
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- line-height: 34px;
- }
- > .el-checkbox {
- display: none;
- }
- }
- .has-gutter {
- tr {
- .bgl-huang {
- background: #fcf0b1;
- }
- }
- }
- }
- .el-table__body-wrapper {
- tr.bgl-hui {
- background: #d2d6df;
- td {
- background: #d2d6df;
- }
- &.redBorder {
- position: relative;
- &::after {
- content: "";
- position: absolute;
- left: 0;
- bottom: 0;
- width: 100%;
- height: 2px;
- background: #e83f82;
- }
- }
- }
- }
- .rmScs {
- width: 48px;
- height: 24px;
- border-color: #b2cbde;
- box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.06);
- border-radius: 4px;
- display: flex;
- align-items: center;
- justify-content: center;
- float: left;
- span {
- color: #2579a0;
- }
- }
- .rmScser {
- width: 60px;
- height: 24px;
- border-color: #9ebbf7;
- box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.06);
- border-radius: 4px;
- display: flex;
- align-items: center;
- justify-content: center;
- float: left;
- span {
- color: #2d67e3;
- }
- }
- .rmSc {
- width: 48px;
- height: 24px;
- background: #eb2f3b;
- box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.06);
- border-radius: 4px;
- display: flex;
- align-items: center;
- justify-content: center;
- span {
- color: #ffffff;
- }
- }
- .hrefBtn {
- width: 48px;
- height: 24px;
- background: #6f81bc;
- box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.06);
- border-radius: 4px;
- display: flex;
- align-items: center;
- justify-content: center;
- span {
- color: #ffffff;
- }
- }
- .tableStatus {
- font-size: 14px;
- .icon {
- width: 14px;
- height: 14px;
- background: #2d67e3;
- border-radius: 2px;
- display: inline-block;
- vertical-align: middle;
- position: relative;
- top: -2px;
- }
- .status0 {
- position: relative;
- top: 5px;
- }
- .status1 {
- position: relative;
- top: 5px;
- .icon {
- background-color: #afb4bf;
- }
- }
- .status2 {
- position: relative;
- top: 5px;
- .icon {
- background-color: #eb2f3b;
- }
- }
- }
- .el-table__fixed-right {
- thead {
- div {
- color: #101116;
- }
- }
- }
- .hd-td {
- .hd-tr {
- display: flex;
- justify-content: center;
- flex-direction: row;
- padding: 0 8px;
- }
- }
- }
- .data-table-btn {
- margin-top: 13px;
- line-height: 32px;
- margin-bottom: 20px;
- }
- }
- .filter-arrow {
- cursor: pointer;
- transition: 0.3s transform;
- &.arrow-active {
- transform: rotate(-180deg);
- }
- &.arrow-blue {
- color: #2d7cff;
- font-weight: bold;
- }
- }
- .el-select-dropdown__item.hover {
- background: #d2d6df;
- }
- .data-table-dialog {
- ::v-deep .dialog-content {
- .title {
- background-color: #2579a0;
- }
- .bcButton {
- background-color: #2579a0;
- }
- .contents {
- padding: 24px;
- .el-form {
- padding-right: 0;
- }
- .el-select {
- width: 100%;
- }
- .r40 {
- margin-right: 60px;
- }
- }
- .datetimes {
- width: 100%;
- }
- .el-form-item__content {
- line-height: 41px;
- }
- }
- }
- </style>
|