index.vue 21 KB

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