index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. <template>
  2. <div class="data-table" :style="{ marginTop: marginTop }">
  3. <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">
  4. <div v-if="isBtn" class="data-table-btn flex-end">
  5. <el-button size="small" @click="handleAdd" plain type="primary">新增</el-button>
  6. </div>
  7. <template v-if="tableData.length">
  8. <div>
  9. <el-table v-el-table-infinite-scroll="load" :data="filteredTableData" :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">
  10. <el-table-column
  11. v-if="selectionEnable"
  12. type="selection"
  13. width="35"
  14. />
  15. <el-table-column v-for="(item, index) in tableColsCopy" :sortable="item.needSort ? true : false" :key="index" :prop="item.columnName" :label="item.columnLabel" :show-overflow-tooltip="showOverflowTooltip">
  16. <template #header>
  17. <span class="colTips">
  18. <el-tooltip :content="item.columnDescribe" placement="top">
  19. <span>{{ item.columnLabel }}</span>
  20. </el-tooltip>
  21. </span>
  22. <span v-if="item.needFilters">
  23. <el-popover placement="bottom" trigger="click" @show="popoverShowHandler(item.columnName)" @hide="popoverHideHandler">
  24. <i slot="reference" :class="[
  25. 'filter-arrow',
  26. 'el-icon-arrow-down',
  27. arrowClass(item.columnName),
  28. ]" />
  29. <el-form>
  30. <el-form-item :label="item.columnLabel">
  31. <el-select v-model="filterValues[item.columnName]" size="small" placeholder="筛选" default-first-option filterable clearable>
  32. <el-option v-for="(option, optionIndex) in tableDataFilters[
  33. item.columnName
  34. ]" :key="option.value + optionIndex" :value="option.value" :label="option.text" />
  35. </el-select>
  36. </el-form-item>
  37. </el-form>
  38. </el-popover>
  39. </span>
  40. </template>
  41. </el-table-column>
  42. <el-table-column fixed="right" label="操作" width="180">
  43. <template slot-scope="scope">
  44. <div class="hd-td">
  45. <div class="hd-tr">
  46. <!-- <el-button class="hrefBtn" type="text" @click="handleHerf(scope.row)" size="small">跳转</el-button> -->
  47. <el-button type="text" @click="handleEdit(scope.row)" size="small" class="rmScs">编辑</el-button>
  48. <el-button class="rmSc" type="text" @click="handleRemove(scope.row)" size="small">删除</el-button>
  49. <el-button class="rmScs" v-if="withColumnSet" type="text" size="small" @click="handleColumnSet(scope.row)">列设置</el-button>
  50. <el-button class="rmScs" v-if="withItemSet" type="text" size="small" @click="handleItemSet(scope.row)">数据项</el-button>
  51. </div>
  52. </div>
  53. </template>
  54. </el-table-column>
  55. </el-table>
  56. <!-- <p v-if="noMore" style="text-align: center">没有更多了</p> -->
  57. </div>
  58. </template>
  59. <template v-else>
  60. <NoData image-width="auto" image-height="100%" />
  61. </template>
  62. </div>
  63. <div class="data-table-dialog">
  64. <!--新增/编辑-->
  65. <Dialog :width="width" :flag="flag">
  66. <div class="dialog-content">
  67. <div class="title">{{ tableTitle }}</div>
  68. <div class="content">
  69. <el-form ref="ruleForm" :model="tableForm" :label-width="labelWidth">
  70. <el-row :gutter="20">
  71. <el-col v-for="(item, index) in tableColsCopy" :key="index" :span="rows">
  72. <el-form-item :label="item.columnLabel">
  73. <template v-if="
  74. item.listqueryTemplateID ||
  75. item.listqueryTemplateID == 0
  76. ">
  77. <el-select size="small" clearable style="width: 100%" v-model="tableForm[item.columnName]" @change="changeSelect(item.columnName)" placeholder="请选择">
  78. <el-option v-for="item in tableOptions[item.columnName]" :key="item.v" :label="item.k" :value="item.v">
  79. </el-option>
  80. </el-select>
  81. </template>
  82. <!-- <template v-else-if="item.dataType == 'longtext'">
  83. <el-input size="small" :rows="1" type="textarea" v-model="tableForm[item.columnName]"></el-input>
  84. </template> -->
  85. <template v-else>
  86. <el-input size="small" v-model="tableForm[item.columnName]"></el-input>
  87. </template>
  88. </el-form-item>
  89. </el-col>
  90. </el-row>
  91. </el-form>
  92. </div>
  93. <div class="foot right t30">
  94. <el-button size="medium" @click="handleOk" class="r24" type="primary">确定</el-button>
  95. <el-button @click="flag = false" size="medium">取消</el-button>
  96. </div>
  97. </div>
  98. </Dialog>
  99. <Dialog :flag="rmFlag">
  100. <div class="airportInfoDialog">
  101. <div class="title del-title">删除</div>
  102. <div class="content del-content">
  103. <span class="el-icon-error error r10"></span>您是否确认删除<span class="error l10">{{ rmTitle }}</span>
  104. </div>
  105. <div class="foot right Delfoot t30">
  106. <el-button size="medium" class="r24" @click="tableRemove" type="danger">删除</el-button>
  107. <el-button size="medium" @click="rmFlag = false">取消</el-button>
  108. </div>
  109. </div>
  110. </Dialog>
  111. </div>
  112. </div>
  113. </template>
  114. <script>
  115. import { setTableFilters } from "@/utils/table";
  116. import Dialog from "@/layout/components/Dialog/index.vue";
  117. import NoData from "@/components/nodata";
  118. import { Query, GeneralDataReception } from "@/api/dataIntegration";
  119. export default {
  120. name: "DataTable",
  121. props: {
  122. isDialog: {
  123. type: Boolean,
  124. default: true
  125. },
  126. //接口ID
  127. dataId: {
  128. type: [String, Number],
  129. default: ''
  130. },
  131. editId: {
  132. type: [String, Number],
  133. default: ''
  134. },
  135. dataContent: {
  136. type: Object,
  137. default: () => ({})
  138. },
  139. //弹框宽度
  140. width: {
  141. type: String,
  142. default: "560px",
  143. },
  144. //弹框表单-行数
  145. rows: {
  146. type: Number,
  147. default: 3,
  148. },
  149. //弹框-表单文字宽度
  150. labelWidth: {
  151. type: String,
  152. default: "80px",
  153. },
  154. //表格高度
  155. tableHeight: {
  156. type: [String, Number],
  157. default: 0
  158. },
  159. minHeight: {
  160. type: Number,
  161. default: 65,
  162. },
  163. //是否显示新增按钮
  164. isBtn: {
  165. type: Boolean,
  166. default: true,
  167. },
  168. // 是否显示合计行
  169. showSummary: {
  170. type: Boolean,
  171. default: false
  172. },
  173. marginTop: {
  174. type: String,
  175. default: '20px'
  176. },
  177. // 是否可选中行
  178. selectionEnable: {
  179. type: Boolean,
  180. default: false
  181. },
  182. // 懒加载
  183. withLazyLoad: {
  184. type: Boolean,
  185. default: false
  186. },
  187. // 不换行,溢出隐藏
  188. showOverflowTooltip: {
  189. type: Boolean,
  190. default: false
  191. },
  192. // 表格-操作-列设置按钮显示
  193. withColumnSet: {
  194. type: Boolean,
  195. default: false
  196. },
  197. // 表格-操作-项设置按钮显示
  198. withItemSet: {
  199. type: Boolean,
  200. default: false
  201. }
  202. },
  203. components: { Dialog, NoData },
  204. data () {
  205. return {
  206. loading: false,
  207. flag: false,
  208. serviceId: null,
  209. rmFlag: false,
  210. rowTitle: '',
  211. tableCols: [], //表头数据
  212. tableData: [], //表格数据
  213. tableColsCopy: [], //表头数据缓存
  214. tableDataFilters: {}, //表头-下拉数据
  215. filterValues: {}, //表头-下拉-选中数据
  216. tableDataCopy: [], //缓存table数据
  217. tableGroups: [], //表格分组数据
  218. colShowFilter: "", //表头-下拉-箭头
  219. spanArr: [], //表格分组数据缓存
  220. pos: 0, //表格分组计数
  221. tableTitle: "新增", //弹框标题
  222. tableType: "add", //弹框类型=新增/编辑
  223. tableForm: {}, //弹框表单
  224. rmTitle: "", //弹框-删除-标题
  225. tableObj: {}, //增/删/改数据缓存
  226. tableOptions: {}, //弹框-下来数据缓存
  227. tableArrs: [], //重组table-表头下拉
  228. proAll: false //重组时-所有请求是否都完成
  229. };
  230. },
  231. computed: {
  232. dataTableContentStyle() {
  233. const style = {}
  234. if (this.minHeight) {
  235. style['min-height'] = this.minHeight
  236. }
  237. if (this.tableHeight) {
  238. style['height'] = this.tableHeight
  239. }
  240. return style
  241. },
  242. //设置表头-下拉-箭头样式
  243. arrowClass () {
  244. return function (prop) {
  245. let classString = "";
  246. if (this.colShowFilter === prop) {
  247. return "arrow-active";
  248. }
  249. if (
  250. Object.entries(this.tableDataFilters).find(
  251. ([key, arr]) => this.filterValues[prop]
  252. )
  253. ) {
  254. classString += "arrow-blue";
  255. }
  256. return classString;
  257. };
  258. },
  259. //设置表头-下拉-选中数据
  260. filteredTableData () {
  261. return this.tableData.filter((item) => {
  262. let flag = true;
  263. Object.entries(this.filterValues).forEach(([key, value]) => {
  264. if (value !== "" && item[key] !== value) {
  265. flag = false;
  266. }
  267. });
  268. return flag;
  269. });
  270. },
  271. },
  272. // watch: {
  273. // proAll: {
  274. // handler (val) {
  275. // if (val) {
  276. // setTimeout(() => {
  277. // this.setTable()
  278. // }, 200);
  279. // }
  280. // },
  281. // deep: true
  282. // }
  283. // },
  284. mounted () {
  285. this.getQuery();
  286. },
  287. updated() {
  288. this.$refs['table']?.doLayout()
  289. },
  290. methods: {
  291. load(){
  292. console.log('分页')
  293. },
  294. changeSelect(data){
  295. this.tableForm[this.tableOptions[data][0].setvalue] = this.tableForm[data];
  296. // console.log(this.tableForm)
  297. },
  298. //获取表格数据
  299. async getQuery () {
  300. try {
  301. this.loading = true;
  302. const { code, returnData } = await Query({
  303. id: this.dataId,
  304. dataContent: Object.values(this.dataContent),
  305. });
  306. if (code == 0) {
  307. const titleColumn = returnData.columnSet.find(item => item.needShow === 1)
  308. if (titleColumn) {
  309. this.rowTitle = titleColumn.columnName
  310. }
  311. this.tableData = returnData.listValues;
  312. this.tableCols = returnData.columnSet;
  313. this.serviceId = returnData.submitID;
  314. setTimeout(() => {
  315. this.initTableData();
  316. this.loading = false;
  317. }, 100);
  318. } else {
  319. this.loading = false;
  320. this.$message.error("获取表格数据失败");
  321. }
  322. } catch (error) {
  323. this.loading = false;
  324. console.log(error);
  325. }
  326. },
  327. //表格-增/删/改
  328. async generalDataReception (data) {
  329. try {
  330. data = {
  331. ...data,
  332. ...this.dataContent
  333. }
  334. const { code, message } = await GeneralDataReception({
  335. serviceId: this.serviceId,
  336. dataContent: JSON.stringify(data),
  337. });
  338. if (code == 0) {
  339. this.$message.success("操作成功");
  340. this.getQuery();
  341. this.flag = false;
  342. this.rmFlag = false;
  343. this.tableObj = {};
  344. this.tableForm = {};
  345. } else {
  346. this.$message.error("操作失败");
  347. this.flag = false;
  348. this.rmFlag = false;
  349. this.tableObj = {};
  350. this.tableForm = {};
  351. }
  352. } catch (error) {
  353. console.log(error);
  354. this.flag = false;
  355. this.rmFlag = false;
  356. this.tableObj = {};
  357. this.tableForm = {};
  358. }
  359. },
  360. // 表格勾选
  361. toggleRowSelection(row, isSelected) {
  362. this.$refs['table'].toggleRowSelection(row, isSelected)
  363. },
  364. // 表格初始勾选
  365. selectTableRows(tableData, selectFlagName) {
  366. tableData.forEach(row => {
  367. this.$refs['table'].toggleRowSelection(row, !!row[selectFlagName])
  368. })
  369. },
  370. //初始化表格
  371. initTableData () {
  372. this.tableColsCopy = this.tableCols.filter((item) => item.needShow);
  373. // console.log(this.tableColsCopy)
  374. this.tableDataCopy = _.cloneDeep(this.tableData);
  375. const datas = _.cloneDeep(this.tableColsCopy);
  376. const reqUts = []
  377. datas.forEach(async (item) => {
  378. this.tableDataFilters[item.columnName] = [];
  379. if (item.needGroup) {
  380. this.tableGroups.push(item.columnName);
  381. }
  382. if (item.listqueryTemplateID || item.listqueryTemplateID == 0) {
  383. this.tableArrs.push(item.columnName)
  384. // const reqUt = this.getSelectData(item.listqueryTemplateID)
  385. // reqUts.push(reqUt)
  386. this.tableOptions[item.columnName] = await this.getSelectData(item.listqueryTemplateID)
  387. // console.log(this.tableOptions[item.columnName])
  388. }
  389. // this.filterValues[item.columnName] = ''
  390. });
  391. setTableFilters(this.tableData, this.tableDataFilters);
  392. this.tableGroup(this.tableData);
  393. this.selectTableRows(this.tableData, 'DeployID')
  394. // this.getSelectDataAll(reqUts)
  395. },
  396. //获取所有获取弹框-下拉数据-请求状态
  397. getSelectDataAll (reqUts) {
  398. Promise.all(reqUts).then(res => {
  399. this.proAll = true
  400. }).catch(err => {
  401. this.proAll = false
  402. })
  403. },
  404. //获取弹框-下拉数据
  405. async getSelectData (id) {
  406. const { code, returnData } = await Query({
  407. id,
  408. dataContent: [],
  409. });
  410. if (code == 0) {
  411. return returnData.listValues;
  412. } else {
  413. return [];
  414. }
  415. },
  416. //重组table-显示名称
  417. setTable () {
  418. this.tableArrs.forEach(item => {
  419. this.tableOptions[item].forEach(p => {
  420. this.tableDataCopy.forEach(msg => {
  421. if (msg[item] == p.v) {
  422. msg[item] = p.k
  423. }
  424. })
  425. this.tableDataFilters[item].forEach(cap => {
  426. if (cap.value == p.v) {
  427. cap.text = p.k
  428. cap.value = p.k
  429. }
  430. })
  431. })
  432. })
  433. this.tableData = this.tableDataCopy
  434. },
  435. //分组
  436. tableGroup (tableData) {
  437. const spanArr = [];
  438. let pos = 0;
  439. let ifYj = this.tableGroups[0];
  440. for (let i = 0; i < tableData.length; i++) {
  441. if (i === 0) {
  442. spanArr.push(1);
  443. } else {
  444. if (tableData[i][ifYj] === tableData[i - 1][ifYj]) {
  445. spanArr[pos] += 1;
  446. spanArr.push(0);
  447. } else {
  448. spanArr.push(1);
  449. pos = i;
  450. }
  451. }
  452. }
  453. this.spanArr = spanArr;
  454. this.pos = pos;
  455. },
  456. popoverShowHandler (prop) {
  457. this.colShowFilter = prop;
  458. },
  459. popoverHideHandler () {
  460. this.colShowFilter = "";
  461. },
  462. //分组
  463. tableSpanMethod ({ row, column, rowIndex, columnIndex }) {
  464. if (this.tableGroups.includes(column["property"])) {
  465. const _row = this.spanArr[rowIndex];
  466. const _col = _row > 0 ? 1 : 0;
  467. return {
  468. rowspan: _row,
  469. colspan: _col,
  470. };
  471. }
  472. },
  473. //合计
  474. getSummaries (param) {
  475. const { columns, data } = param;
  476. const sums = [];
  477. columns.forEach((column, index) => {
  478. this.tableColsCopy.forEach((p) => {
  479. if (column.property == p.columnName && p.needCount) {
  480. const values = data.map((item) => Number(item[column.property]));
  481. if (!values.every((value) => isNaN(value))) {
  482. sums[index] = values.reduce((prev, curr) => {
  483. const value = Number(curr);
  484. if (!isNaN(value)) {
  485. return prev + curr;
  486. } else {
  487. return prev;
  488. }
  489. }, 0);
  490. sums[index] += "";
  491. }
  492. }
  493. });
  494. });
  495. return sums;
  496. },
  497. //弹框-确定
  498. handleOk () {
  499. this.submitClickHandler();
  500. },
  501. //滚动
  502. tableLoad () {
  503. console.log("d");
  504. },
  505. //表格-新增
  506. handleAdd () {
  507. // this.flag = true;
  508. // this.tableType = "add";
  509. // this.tableTitle = "新增";
  510. // this.tableForm = {};
  511. if(this.isDialog ){
  512. this.flag = true;
  513. this.tableType = "add";
  514. this.tableTitle = "新增";
  515. this.tableForm = {};
  516. }
  517. else{
  518. this.$emit("handleAdd");
  519. }
  520. // console.log(this.tableOptions);
  521. },
  522. //表格-编辑
  523. async handleEdit (row) {
  524. if(this.isDialog) {
  525. if (this.editId) {
  526. let data = await this.queryOriginRow(this.editId, row.queryTemplateColumnSetID)
  527. this.tableForm = JSON.parse(JSON.stringify(data))
  528. // this.tableForm =this.tableForm;
  529. // Object.entries(tableForm).forEach(([key, value]) => {
  530. // this.tableForm[key] = value
  531. // })
  532. } else {
  533. this.tableForm = JSON.parse(JSON.stringify(row));
  534. }
  535. this.flag = true;
  536. this.tableType = "edit";
  537. this.tableTitle = "编辑";
  538. } else{
  539. this.$emit("handleEdit",row);
  540. }
  541. },
  542. async queryOriginRow(editId, queryTemplateColumnSetID) {
  543. try {
  544. const { code, returnData } = await Query({
  545. id: editId,
  546. dataContent: [queryTemplateColumnSetID]
  547. })
  548. if (Number(code) === 0) {
  549. return returnData.listValues[0]
  550. } else {
  551. this.$message.error("失败")
  552. }
  553. } catch (error) {
  554. console.log(error)
  555. }
  556. },
  557. //表格-跳转
  558. handleHerf(row){
  559. alert('跳转')
  560. },
  561. // 新增/编辑-确认
  562. submitClickHandler () {
  563. this.$refs["ruleForm"].validate((valid) => {
  564. if (valid) {
  565. if (this.tableType == "add") {
  566. this.tableForm.event = 1;
  567. } else {
  568. this.tableForm.event = 2;
  569. }
  570. this.generalDataReception(this.tableForm);
  571. } else {
  572. return false;
  573. }
  574. });
  575. },
  576. //表格-删除
  577. handleRemove (row) {
  578. this.rmFlag = true;
  579. // this.rmTitle = row.className || row.username || row.serviceName || row.queryTemplateName;
  580. this.rmTitle = row[this.rowTitle]
  581. this.tableObj = row;
  582. },
  583. //表格-删除-确认
  584. tableRemove () {
  585. this.tableObj.event = 3;
  586. this.generalDataReception(this.tableObj);
  587. },
  588. // 表格-跳转列设置页
  589. handleColumnSet(row) {
  590. this.$router.push({
  591. path: '/systemSettings/queryTemplateChild',
  592. query: {
  593. queryTemplateID: row.queryTemplateID
  594. }
  595. })
  596. },
  597. // 表格-跳转数据项设置页
  598. handleItemSet(row) {
  599. this.$router.push({
  600. path: '/systemSettings/datastructureChild',
  601. query: {
  602. dataStructureID: row.dataStructureID
  603. }
  604. })
  605. },
  606. // 表格-选中行
  607. selectHandler(selection, row) {
  608. this.$emit('selection-change', selection, row)
  609. }
  610. },
  611. };
  612. </script>
  613. <style lang="scss" scoped>
  614. .data-table {
  615. width: 100%;
  616. background-color: #fff;
  617. padding: 20px;
  618. ::v-deep .table {
  619. width: 100%;
  620. .cell {
  621. padding: 0;
  622. text-align: center;
  623. font-size: 14px;
  624. font-family: Helvetica, "Microsoft YaHei";
  625. letter-spacing: 0;
  626. }
  627. .cell-click {
  628. cursor: pointer;
  629. color: #2d7cff;
  630. &.cell-clicked {
  631. color: purple;
  632. }
  633. }
  634. .el-table__header-wrapper {
  635. .cell {
  636. font-weight: bold;
  637. color: #101116;
  638. > .el-checkbox {
  639. display: none;
  640. }
  641. }
  642. .has-gutter {
  643. tr {
  644. .bgl-huang {
  645. background: #fcf0b1;
  646. }
  647. }
  648. }
  649. }
  650. .el-table__body-wrapper {
  651. tr.bgl-hui {
  652. background: #d2d6df;
  653. td {
  654. background: #d2d6df;
  655. }
  656. &.redBorder {
  657. position: relative;
  658. &::after {
  659. content: "";
  660. position: absolute;
  661. left: 0;
  662. bottom: 0;
  663. width: 100%;
  664. height: 2px;
  665. background: #e83f82;
  666. }
  667. }
  668. }
  669. }
  670. .rmScs {
  671. width: 48px;
  672. height: 24px;
  673. border-color: #9ebbf7;
  674. box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.06);
  675. border-radius: 4px;
  676. display: flex;
  677. align-items: center;
  678. justify-content: center;
  679. float: left;
  680. span {
  681. color: #2d67e3;
  682. }
  683. }
  684. .rmSc {
  685. width: 48px;
  686. height: 24px;
  687. background: #eb2f3b;
  688. box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.06);
  689. border-radius: 4px;
  690. display: flex;
  691. align-items: center;
  692. justify-content: center;
  693. span {
  694. color: #ffffff;
  695. }
  696. }
  697. .hrefBtn {
  698. width: 48px;
  699. height: 24px;
  700. background: #6F81BC;
  701. box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.06);
  702. border-radius: 4px;
  703. display: flex;
  704. align-items: center;
  705. justify-content: center;
  706. span {
  707. color: #ffffff;
  708. }
  709. }
  710. .el-table__fixed-right {
  711. thead {
  712. div {
  713. color: #101116;
  714. }
  715. }
  716. }
  717. .hd-td {
  718. .hd-tr{
  719. display: flex;
  720. justify-content: center;
  721. flex-direction: row;
  722. padding: 0 8px;
  723. }
  724. }
  725. }
  726. .data-table-btn {
  727. margin-bottom: 20px;
  728. }
  729. }
  730. .filter-arrow {
  731. cursor: pointer;
  732. transition: 0.3s transform;
  733. &.arrow-active {
  734. transform: rotate(-180deg);
  735. }
  736. &.arrow-blue {
  737. color: #2d7cff;
  738. font-weight: bold;
  739. }
  740. }
  741. .el-select-dropdown__item.hover {
  742. background: #d2d6df;
  743. }
  744. </style>