You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

776 lines
23 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <script setup>
  2. // 这是退款明细页面
  3. import {computed, onMounted, ref} from 'vue'
  4. import {ElMessage} from 'element-plus'
  5. import moment from 'moment'
  6. import API from '@/util/http.js'
  7. import request from '@/util/http.js'
  8. import {reverseMarketMapping} from "@/utils/marketMap.js";
  9. import dayjs from "dayjs";
  10. const defaultTime = [
  11. new Date(2000, 1, 1, 0, 0, 0),
  12. new Date(2000, 2, 1,23 , 59, 59),
  13. ]
  14. // 精网号去空格
  15. const trimJwCode = () => {
  16. if (refundUser.value.jwcode) {
  17. // 去除所有空格,并尝试转换为整数
  18. const trimmed = refundUser.value.jwcode.toString().replace(/\s/g, '');
  19. const numeric = Number(trimmed);
  20. // 如果转换为数字成功,保存为数字,否则提示错误
  21. if (!isNaN(numeric)) {
  22. refundUser.value.jwcode = numeric;
  23. } else {
  24. ElMessage.error("精网号格式不正确,请输入数字");
  25. }
  26. }
  27. }
  28. // 变量
  29. //这是获取用户信息的接口
  30. // 标记当前激活的时间范围按钮
  31. const activeTimeRange = ref('')
  32. // 日期选择器变化时清除按钮激活状态
  33. const handleDatePickerChange = () => {
  34. activeTimeRange.value = ''
  35. }
  36. const adminData = ref({})
  37. const getAdminData = async function () {
  38. try {
  39. const result = await API({url: '/admin/userinfo', data: {}})
  40. adminData.value = result
  41. console.log('请求成功', result)
  42. console.log('用户信息', adminData.value)
  43. } catch (error) {
  44. console.log('请求失败', error)
  45. }
  46. }
  47. // 充值明细表格
  48. const tableData = ref([])
  49. // 搜索======================================
  50. // 搜索detail
  51. const refundUser = ref({
  52. market:""
  53. })
  54. // 搜索对象
  55. const getObj = ref({
  56. pageNum: 1,
  57. pageSize: 50
  58. })
  59. //分页总条目
  60. const total = ref(100)
  61. // 搜索对象时间
  62. const getTime = ref([])
  63. // 搜索地区列表
  64. const market = ref([])
  65. // 定义响应式变量存储金币合计数
  66. const permanentGolds = ref(0)
  67. const freeGolds = ref(0)
  68. const taskGolds = ref(0)
  69. // 计算总金币数
  70. const sumGolds = computed(() => permanentGolds.value + freeGolds.value + taskGolds.value)
  71. // 退款类型
  72. const refundType = ref([])
  73. //时间格式化
  74. const formatTime = (val) => val ? moment(val).format('YYYY-MM-DD HH:mm:ss') : ''
  75. // 获取退款类型
  76. const getRefundTypes = async function () {
  77. try {
  78. // 发送请求获取退款类型
  79. const result = await API({
  80. url: '/refund/refundType', //这里应该写上一个退款类型的接口
  81. data: {}
  82. })
  83. console.log('退款类型请求成功', result)
  84. // 检查返回的数据是否为数组
  85. if (Array.isArray(result.data)) {
  86. // 将字符串数组转换为 { value, label } 格式
  87. refundType.value = result.data.map(item => ({value: item, label: item}));
  88. } else {
  89. console.error('退款类型数据格式错误', result)
  90. ElMessage.error('退款类型数据格式错误,请联系管理员')
  91. }
  92. console.log('退款类型', refundType.value)
  93. } catch (error) {
  94. console.log('退款类型请求失败', error)
  95. }
  96. }
  97. // 搜索==============================================================
  98. // 搜索方法
  99. const getSelectBy = async function (val) {
  100. try {
  101. // 搜索参数页码赋值
  102. if (typeof val === 'number') {
  103. getObj.value.pageNum = val
  104. }
  105. // 搜索参数时间赋值
  106. if (getTime.value != null) {
  107. if (getTime.value.startTime != '' && getTime.value.endTime != '') {
  108. refundUser.value.startTime = formatTime(getTime.value[0])
  109. refundUser.value.endTime = formatTime(getTime.value[1])
  110. }
  111. } else {
  112. refundUser.value.startTime = ''
  113. refundUser.value.endTime = ''
  114. }
  115. // 添加排序字段和排序方式到请求参数
  116. refundUser.value.sortField = sortField.value
  117. refundUser.value.sortOrder = sortOrder.value
  118. console.log('搜索参数', getObj.value)
  119. // 发送POST请求
  120. if (refundUser.value.market === '9' || refundUser.value.market === '9999') {
  121. refundUser.value.market = '';
  122. }
  123. if (refundUser.value.jwcode) {
  124. // 纯数字
  125. const numberRegex = /^\d{1,9}$/;
  126. // 检查是否不是数字
  127. if (!numberRegex.test(refundUser.value.jwcode)) {
  128. ElMessage.error('请检查精网号格式')
  129. // 上面提示过了
  130. return
  131. }
  132. }
  133. const result = await API({
  134. url: '/refund/selectBy',
  135. data: {
  136. ...getObj.value,
  137. refundUser: {...refundUser.value}
  138. }
  139. })
  140. // 复制一份 refundUser.value 并移除排序字段和排序方式
  141. const detailWithoutSort = {...refundUser.value}
  142. delete detailWithoutSort.sortField
  143. delete detailWithoutSort.sortOrder
  144. const resultTotalGold = await API({
  145. url: '/refund/statsGold',
  146. data: {
  147. ...detailWithoutSort
  148. }
  149. })
  150. // 将响应结果存储到响应式数据中
  151. console.log('resultTotalGold请求成功', resultTotalGold)
  152. // 检查响应的 code 是否为 200 且 data 存在
  153. if (resultTotalGold.code === 200 && resultTotalGold.data) {
  154. const data = resultTotalGold.data
  155. console.log('获取到的金币数据:', data)
  156. permanentGolds.value = (Number(data.permanentGolds) || 0)
  157. freeGolds.value = (Number(data.freeGolds) || 0)
  158. taskGolds.value = (Number(data.taskGolds) || 0)
  159. }
  160. // 存储表格数据
  161. tableData.value = result.data.list
  162. // 对表格中的金币数据除以 100
  163. tableData.value = tableData.value.map(item => ({
  164. ...item,
  165. sumGold: (Number(item.sumGold) || 0) / 100,
  166. permanentGold: (Number(item.permanentGold) || 0) / 100,
  167. freeGold: (Number(item.freeGold) || 0) / 100,
  168. taskGold: (Number(item.taskGold) || 0) / 100
  169. }))
  170. console.log('tableData', tableData.value)
  171. // 存储分页总数
  172. total.value = result.data.total
  173. console.log('total', total.value)
  174. // 调用分类的方法
  175. handleClick()
  176. } catch (error) {
  177. console.log('请求失败', error)
  178. // 在这里可以处理错误逻辑,比如显示错误提示等
  179. }
  180. }
  181. // 搜索
  182. const search = function () {
  183. trimJwCode()
  184. getObj.value.pageNum = 1
  185. getSelectBy()
  186. }
  187. // 重置
  188. const reset = function () {
  189. refundUser.value = {market: ""}
  190. sortField.value = ''
  191. sortOrder.value = ''
  192. getTime.value = {}
  193. activeTimeRange.value = '' // 清除激活状态
  194. selectedMarketPath.value = []
  195. getSelectBy()
  196. }
  197. // 今天
  198. const getToday = function () {
  199. const today = dayjs()
  200. const startTime = today.startOf('day').format('YYYY-MM-DD HH:mm:ss')
  201. const endTime =today.endOf('day').format('YYYY-MM-DD HH:mm:ss')
  202. getTime.value = [startTime, endTime]
  203. console.log('getTime', getTime.value)
  204. activeTimeRange.value = 'today' // 标记当前激活状态
  205. getSelectBy()
  206. }
  207. // 昨天
  208. const getYesterday = function () {
  209. const today = dayjs()
  210. const startTime = today.subtract(1, 'day').startOf('day').format('YYYY-MM-DD HH:mm:ss')
  211. const endTime = today.subtract(1, 'day').endOf('day').format('YYYY-MM-DD HH:mm:ss')
  212. getTime.value = [startTime, endTime]
  213. console.log('getTime', getTime.value)
  214. activeTimeRange.value = 'yesterday' // 标记当前激活状态
  215. getSelectBy()
  216. }
  217. // 近7天
  218. const get7Days = function () {
  219. const today = dayjs()
  220. const startTime = today.subtract(6, 'day').startOf('day').format('YYYY-MM-DD HH:mm:ss')
  221. const endTime = today.add(1, 'day').endOf('day').format('YYYY-MM-DD HH:mm:ss')
  222. getTime.value = [startTime, endTime]
  223. console.log('getTime', getTime.value)
  224. activeTimeRange.value = '7days' // 标记当前激活状态
  225. getSelectBy()
  226. }
  227. //点击标签页
  228. // 设置tab.props.name默认为all
  229. const tabName = ref('all')
  230. const handleClick = function (tab, event) {
  231. if (tab.props.name === 'all') {
  232. adminAll()
  233. } else if (tab.props.name === 'wait') {
  234. adminWait()
  235. } else if (tab.props.name === 'pass') {
  236. adminPass()
  237. } else if (tab.props.name === 'reject') {
  238. adminReject()
  239. }
  240. }
  241. const delObj = ref({})
  242. const del = function (row) {
  243. delObj.value.detailId = row.detailId
  244. console.log('delObj', delObj.value)
  245. }
  246. // 删除按钮的气泡弹出框确认按钮
  247. const delConfirm = async function () {
  248. try {
  249. console.log('delObj', delObj.value)
  250. // 发送POST请求
  251. const result = await API({
  252. url: '/refund/softDelete?detailId=' + delObj.value.detailId,
  253. data: {}
  254. })
  255. // 将响应结果存储到响应式数据中
  256. console.log('请求成功', result)
  257. // 刷新表格数据
  258. getSelectBy()
  259. } catch (error) {
  260. console.log('请求失败', error)
  261. // 在这里可以处理错误逻辑,比如显示错误提示等
  262. }
  263. }
  264. // 查询商品的接口
  265. const goods = ref([])
  266. const getGoods = async function () {
  267. try {
  268. // 发送POST请求
  269. const result = await request({
  270. url: '/general/goods',
  271. data: {}
  272. })
  273. // 将响应结果存储到响应式数据中
  274. console.log('请求成功product', result)
  275. if (Array.isArray(result.data)) {
  276. // 过滤掉空字符串和 null 值
  277. const validGoods = result.data.filter(item => item && item.trim() !== '');
  278. // 直接使用后端返回的字符串作为 value 和 label
  279. goods.value = validGoods.map(item => ({
  280. value: item,
  281. label: item
  282. }));
  283. }
  284. } catch (error) {
  285. console.log('请求失败', error)
  286. // 在这里可以处理错误逻辑,比如显示错误提示等
  287. }
  288. }
  289. // 挂载
  290. onMounted(async function () {
  291. await getAdminData()
  292. await getSelectBy()
  293. await getMarket()
  294. await getRefundTypes()
  295. await getGoods()
  296. })
  297. // 新增排序字段和排序方式
  298. const sortField = ref('')
  299. const sortOrder = ref('')
  300. // 处理排序事件
  301. const handleSortChange = (column) => {
  302. console.log('排序字段:', column.prop)
  303. console.log('排序方式:', column.order)
  304. if (column.prop === 'permanentGold') {
  305. sortField.value = 'permanentGold'
  306. } else if (column.prop === 'taskGold') {
  307. sortField.value = 'taskGold'
  308. } else if (column.prop === 'freeGold') {
  309. sortField.value = 'freeGold'
  310. } else if (column.prop === 'createTime') {
  311. sortField.value = 'createTime'
  312. } else if (column.prop === 'auditTime') {
  313. sortField.value = 'auditTime'
  314. } else if (column.prop === 'sumGold') {
  315. sortField.value = 'sumGold'
  316. }
  317. sortOrder.value = column.order === 'ascending' ? 'ASC' : 'DESC'
  318. getSelectBy()
  319. }
  320. const handlePageSizeChange = function (val) {
  321. getObj.value.pageSize = val
  322. getSelectBy()
  323. }
  324. const handleCurrentChange = function (val) {
  325. getObj.value.pageNum = val
  326. getSelectBy()
  327. }
  328. const exportExcel = async function () {
  329. const params = {
  330. refundUser: {
  331. jwcode: refundUser.value.jwcode || '',
  332. refundModel: refundUser.value.refundModel || '',
  333. market: refundUser.value.market || "",
  334. startTime: refundUser.value.startTime || '',
  335. endTime: refundUser.value.endTime || '',
  336. goodsName: refundUser.value.goodsName || '',
  337. },
  338. page: getObj.pageNum,
  339. size: total.value
  340. }
  341. try {
  342. const res = await API({url: '/export/exportRefund', data: params})
  343. if (res.code === 200) {
  344. ElMessage.success('导出成功')
  345. } else {
  346. ElMessage.error(res.message || '导出失败,请稍后重试')
  347. }
  348. } catch (error) {
  349. console.log('请求失败', error)
  350. ElMessage.error('导出失败,请稍后重试')
  351. }
  352. }
  353. const exportListVisible = ref(false)
  354. // 打开导出列表弹窗
  355. const openExportList = () => {
  356. getExportList()
  357. exportListVisible.value = true
  358. }
  359. // 导出列表数据
  360. const exportList = ref([])
  361. // 导出列表加载状态
  362. const exportListLoading = ref(false)
  363. // 获取导出列表
  364. const getExportList = async () => {
  365. exportListLoading.value = true
  366. try {
  367. const result = await API({url: '/export/export'})
  368. if (result.code === 200) {
  369. const filteredData = result.data.filter(item => {
  370. return item.type === 3; //3表示金币退款列表
  371. });
  372. exportList.value = filteredData
  373. } else {
  374. ElMessage.error(result.msg || '获取导出列表失败')
  375. }
  376. } catch (error) {
  377. console.error('获取导出列表出错:', error)
  378. ElMessage.error('获取导出列表失败,请稍后重试')
  379. } finally {
  380. exportListLoading.value = false
  381. }
  382. }
  383. // 下载导出文件
  384. const downloadExportFile = (item) => {
  385. if (item.state === 2) {
  386. const link = document.createElement('a')
  387. link.href = item.url
  388. link.download = item.fileName
  389. link.click()
  390. } else {
  391. ElMessage.warning('文件还在导出中,请稍后再试')
  392. }
  393. }
  394. //根据状态返回对应的标签类型
  395. const getTagType = (state) => {
  396. switch (state) {
  397. case 0:
  398. return 'info';
  399. case 1:
  400. return 'primary';
  401. case 2:
  402. return 'success';
  403. case 3:
  404. return 'danger';
  405. default:
  406. return 'info';
  407. }
  408. }
  409. //根据状态返回对应的标签文案
  410. const getTagText = (state) => {
  411. switch (state) {
  412. case 0:
  413. return '待执行';
  414. case 1:
  415. return '执行中';
  416. case 2:
  417. return '执行完成';
  418. case 3:
  419. return '执行出错';
  420. default:
  421. return '未知状态';
  422. }
  423. }
  424. // 存储地区选择变化
  425. const selectedMarketPath = ref("")
  426. const handleMarketChange = (value) => {
  427. if (value && value.length > 0) {
  428. const lastValue = value[value.length - 1]
  429. refundUser.value.market = reverseMarketMapping[lastValue]
  430. } else {
  431. refundUser.value.market = ''
  432. }
  433. }
  434. // 获取地区,修改为级联下拉框
  435. const getMarket = async function () {
  436. try {
  437. // 发送POST请求
  438. const result = await API({
  439. url: '/market/selectMarket',
  440. });
  441. // 将响应结果存储到响应式数据中
  442. console.log('请求成功', result)
  443. // 递归转换树形结构为级联选择器需要的格式(跳过第一级节点)
  444. const transformTree = (nodes) => {
  445. // 直接处理第一级节点的子节点
  446. const allChildren = nodes.flatMap(node => node.children || []);
  447. return allChildren.map(child => {
  448. const grandchildren = child.children && child.children.length
  449. ? transformTree([child]) // 递归处理子节点
  450. : null;
  451. return {
  452. value: child.name,
  453. label: child.name,
  454. children: grandchildren
  455. };
  456. });
  457. };
  458. // 存储地区信息
  459. market.value = transformTree(result.data)
  460. console.log('转换后的地区树==============', market.value)
  461. } catch (error) {
  462. console.log('请求失败', error)
  463. }
  464. }
  465. </script>
  466. <template>
  467. <el-row>
  468. <el-col>
  469. <el-card style="margin-bottom: 20px;margin-top:10px">
  470. <el-row style="margin-bottom: 10px">
  471. <el-col :span="5">
  472. <div class="head-card-element">
  473. <el-text class="mx-1">精网号</el-text>
  474. <el-input
  475. v-model="refundUser.jwcode"
  476. placeholder="请输入精网号"
  477. style="width: 150px"
  478. clearable
  479. />
  480. </div>
  481. </el-col>
  482. <el-col :span="6">
  483. <div class="head-card-element">
  484. <el-text class="mx-1">商品名称</el-text>
  485. <el-select
  486. v-model="refundUser.goodsName"
  487. placeholder="请选择商品名称"
  488. style="width: 180px"
  489. clearable
  490. >
  491. <el-option
  492. v-for="item in goods"
  493. :key="item.value"
  494. :label="item.label"
  495. :value="item.value"
  496. />
  497. </el-select>
  498. </div>
  499. </el-col>
  500. <el-col :span="6">
  501. <el-text class="mx-1" size="large">所属地区</el-text>
  502. <el-cascader
  503. v-model="selectedMarketPath"
  504. :options="market"
  505. placeholder="请选择所属地区"
  506. clearable
  507. style="width:180px"
  508. @change="handleMarketChange"
  509. />
  510. </el-col>
  511. <el-col :span="6">
  512. <div class="head-card-element">
  513. <el-text class="mx-1">退款类型</el-text>
  514. <el-select
  515. v-model="refundUser.refundType"
  516. placeholder="请选择退款类型"
  517. style="width: 180px"
  518. clearable
  519. >
  520. <!-- todo 这需要改-->
  521. <el-option
  522. v-for="item in refundType"
  523. :key="item.value"
  524. :label="item.label"
  525. :value="item.value"
  526. />
  527. </el-select>
  528. </div>
  529. </el-col>
  530. </el-row>
  531. <el-row>
  532. <el-col :span="24">
  533. <div class="head-card-element">
  534. <el-text class="mx-1">退款时间</el-text>
  535. <el-date-picker v-model="getTime" type="datetimerange" range-separator="" start-placeholder="起始时间"
  536. end-placeholder="结束时间" style="width: 400px" @change="handleDatePickerChange" :default-time="defaultTime"/>
  537. <el-button @click="getToday()" style="margin-left: 10px"
  538. :type="activeTimeRange === 'today' ? 'primary' : ''">
  539. </el-button>
  540. <el-button @click="getYesterday()" style="margin-left: 10px"
  541. :type="activeTimeRange === 'yesterday' ? 'primary' : ''">
  542. </el-button>
  543. <el-button @click="get7Days()" style="margin-left: 10px"
  544. :type="activeTimeRange === '7days' ? 'primary' : ''"> 近7天
  545. </el-button>
  546. <el-button type="success" @click="reset()">重置</el-button>
  547. <el-button type="primary" @click="search()">查询</el-button>
  548. <el-button type="primary" @click="exportExcel">导出Excel</el-button>
  549. <el-button type="primary" @click="openExportList">查看导出列表</el-button>
  550. </div>
  551. </el-col>
  552. </el-row>
  553. </el-card>
  554. </el-col>
  555. </el-row>
  556. <el-row>
  557. <el-col>
  558. <el-card>
  559. <div>
  560. 退款金币总数{{ Math.abs(sumGolds) / 100 }}永久金币{{
  561. Math.abs(permanentGolds) / 100
  562. }}免费金币{{ Math.abs(freeGolds) / 100 }}任务金币{{
  563. Math.abs(taskGolds) / 100
  564. }}
  565. </div>
  566. <!-- 设置表格容器的高度和滚动样式 -->
  567. <div style="height: 520px; overflow-y: auto;margin-top:10px">
  568. <el-table
  569. :data="tableData"
  570. style="width: 100%"
  571. @sort-change="handleSortChange"
  572. height="520px"
  573. >
  574. <el-table-column
  575. type="index"
  576. label="序号"
  577. width="80px"
  578. fixed="left"
  579. >
  580. <template #default="scope">
  581. <span>{{
  582. scope.$index + 1 + (getObj.pageNum - 1) * getObj.pageSize
  583. }}</span>
  584. </template>
  585. </el-table-column>
  586. <el-table-column
  587. prop="name"
  588. label="姓名"
  589. fixed="left"
  590. width="130px"
  591. />
  592. <el-table-column
  593. prop="jwcode"
  594. label="精网号"
  595. fixed="left"
  596. width="110px"
  597. />
  598. <el-table-column prop="market" label="所属地区" width="110px"/>
  599. <el-table-column prop="goodsName" label="商品名称" width="110px" show-overflow-tooltip/>
  600. <el-table-column prop="refundType" label="退款类型" width="100px"/>
  601. <!-- <el-table-column label="金额总数" width="110px">
  602. <template #default="scope">
  603. {{
  604. scope.row.sumGold
  605. }}
  606. </template>
  607. </el-table-column> -->
  608. <el-table-column
  609. prop="sumGold"
  610. label="金额总数"
  611. width="110px"
  612. sortable="custom"
  613. />
  614. <el-table-column prop="refundModel" label="退款方式" width="110px">
  615. <template #default="scope">
  616. {{ scope.row.refundModel === 0 ? '全部退款' : scope.row.refundModel === 1 ? '部分退款' : '' }}
  617. </template>
  618. </el-table-column>
  619. <el-table-column
  620. prop="permanentGold"
  621. label="永久金币"
  622. width="110px"
  623. sortable="custom"
  624. />
  625. <el-table-column
  626. prop="freeGold"
  627. sortable="custom"
  628. label="免费金币"
  629. width="110px"
  630. />
  631. <el-table-column
  632. prop="taskGold"
  633. sortable="custom"
  634. label="任务金币"
  635. width="110px"
  636. />
  637. <!-- 修改prop为taskGold -->
  638. <el-table-column
  639. prop="remark"
  640. label="退款原因"
  641. width="160px"
  642. show-overflow-tooltip
  643. />
  644. <el-table-column prop="adminName" label="提交人" width="100px"/>
  645. <el-table-column
  646. prop="createTime"
  647. sortable="custom"
  648. label="提交时间"
  649. width="180px"
  650. >
  651. <template #default="scope">
  652. {{ moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') }}
  653. </template>
  654. </el-table-column>
  655. </el-table>
  656. </div>
  657. <!-- 分页 -->
  658. <div class="pagination" style="margin-top: 20px">
  659. <el-pagination
  660. background
  661. :page-size="getObj.pageSize"
  662. :page-sizes="[5, 10, 20, 50, 100]"
  663. layout="total, sizes, prev, pager, next, jumper"
  664. :total="total"
  665. @size-change="handlePageSizeChange"
  666. @current-change="handleCurrentChange"
  667. @jump="checkPageNumber"
  668. ></el-pagination>
  669. </div>
  670. </el-card>
  671. </el-col>
  672. </el-row>
  673. <!-- 导出弹窗 -->
  674. <el-dialog v-model="exportListVisible" title="导出列表" width="80%">
  675. <el-table :data="exportList" style="width: 100% ;height: 60vh;" :loading="exportListLoading">
  676. <el-table-column prop="fileName" label="文件名"/>
  677. <el-table-column prop="state" label="状态">
  678. <template #default="scope">
  679. <el-tag :type="getTagType(scope.row.state)"
  680. :effect="scope.row.state === 3 ? 'light' : 'plain'">
  681. {{ getTagText(scope.row.state) }}
  682. </el-tag>
  683. </template>
  684. </el-table-column>
  685. <el-table-column prop="createTime" label="创建时间">
  686. <template #default="scope">
  687. {{ moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') }}
  688. </template>
  689. </el-table-column>
  690. <el-table-column label="操作">
  691. <template #default="scope">
  692. <el-button type="primary" size="small" @click="downloadExportFile(scope.row)"
  693. :disabled="scope.row.state !== 2">
  694. 下载
  695. </el-button>
  696. </template>
  697. </el-table-column>
  698. </el-table>
  699. <template #footer>
  700. <div class="dialog-footer">
  701. <el-button text @click="exportListVisible = false">关闭</el-button>
  702. </div>
  703. </template>
  704. </el-dialog>
  705. </template>
  706. <style scoped>
  707. .status {
  708. display: flex;
  709. }
  710. .head-card {
  711. display: flex;
  712. }
  713. .head-card-element {
  714. margin-right: 20px;
  715. }
  716. .head-card-btn {
  717. margin-left: auto;
  718. }
  719. .pagination {
  720. display: flex;
  721. margin-top: 20px;
  722. }
  723. </style>