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.

656 lines
21 KiB

2 months ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months 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 month ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
  1. <template>
  2. <el-row>
  3. <el-col>
  4. <div>
  5. <el-card style="margin-bottom: 5px">
  6. <el-row style="margin-bottom: 5px">
  7. <el-col :span="6">
  8. <el-text size="large">精网号</el-text>
  9. <el-input v-model="searchForm.jwcode" placeholder="请输入精网号" style="width: 240px" clearable/>
  10. </el-col>
  11. <el-col :span="6">
  12. <el-text size="large">商品名</el-text>
  13. <el-select v-model="searchForm.goodsName" placeholder="请输入商品名" style="width: 240px" clearable>
  14. <el-option v-for="item in refundGoodsOptions" :key="item" :label="item" :value="item"></el-option>
  15. </el-select>
  16. </el-col>
  17. <el-col :span="6">
  18. <el-text size="large">退款方式</el-text>
  19. <el-select v-model="searchForm.refundModel" placeholder="请选择" style="width: 240px" clearable>
  20. <el-option label="全部退款" value="0"/>
  21. <el-option label="部分退款" value="1"/>
  22. </el-select>
  23. </el-col>
  24. <el-col :span="6">
  25. <el-text class="mx-1" size="large">所属地区</el-text>
  26. <el-cascader
  27. v-model="selectedMarketPath"
  28. :options="markets"
  29. placeholder="请选择所属地区"
  30. clearable
  31. collapse-tags
  32. collapse-tags-tooltip
  33. style="width:180px"
  34. @change="handleMarketChange"
  35. :props="props"
  36. />
  37. </el-col>
  38. </el-row>
  39. <el-row>
  40. <el-col :span="15">
  41. <div class="time-controls">
  42. <div class="time-group">
  43. <el-text size="large" style="width: 80px">提交时间</el-text>
  44. <el-date-picker v-model="dateRange" type="datetimerange" range-separator=""
  45. start-placeholder="开始时间"
  46. end-placeholder="结束时间" style="width: 400px" @change="handleDatePickerChange"/>
  47. <el-button @click="getToday()" style="margin-left: 10px"
  48. :type="activeTimeRange === 'today' ? 'primary' : ''">
  49. </el-button>
  50. <el-button @click="getYesterday()" style="margin-left: 10px"
  51. :type="activeTimeRange === 'yesterday' ? 'primary' : ''">
  52. </el-button>
  53. <el-button @click="get7Days()" style="margin-left: 10px"
  54. :type="activeTimeRange === '7days' ? 'primary' : ''"> 近7天
  55. </el-button>
  56. <el-button type="success" @click="resetSearch">重置</el-button>
  57. <el-button type="primary" @click="handleSearch">查询</el-button>
  58. </div>
  59. </div>
  60. </el-col>
  61. </el-row>
  62. </el-card>
  63. </div>
  64. </el-col>
  65. </el-row>
  66. <el-card>
  67. <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
  68. <el-tab-pane label="待审核" name="wait"></el-tab-pane>
  69. <el-tab-pane label="已通过" name="pass"></el-tab-pane>
  70. <el-tab-pane label="已驳回" name="reject"></el-tab-pane>
  71. </el-tabs>
  72. <div>
  73. 总条数{{ stats.totalNum }}&nbsp;&nbsp;&nbsp;&nbsp;
  74. 退款总金币数{{ (stats.permanentGolds + stats.freeGolds + stats.taskGolds).toFixed(2) }}金币&nbsp;&nbsp;&nbsp;&nbsp;
  75. 永久金币{{ stats.permanentGolds.toFixed(2) }}金币&nbsp;&nbsp;&nbsp;&nbsp;
  76. 免费金币{{ stats.freeGolds.toFixed(2) }}金币&nbsp;&nbsp;&nbsp;&nbsp;
  77. 任务金币{{ stats.taskGolds.toFixed(2) }}金币
  78. </div>
  79. <el-table :data="tableData" height="540px" @sort-change="handleSortChange">
  80. <el-table-column type="index" label="序号" width="60"/>
  81. <el-table-column prop="name" label="姓名" width="120"/>
  82. <el-table-column prop="jwcode" label="精网号" width="120"/>
  83. <el-table-column prop="market" label="所属地区" width="120">
  84. <template #default="scope">
  85. {{ marketMapping[scope.row.market] || scope.row.market }}
  86. </template>
  87. </el-table-column>
  88. <el-table-column prop="refundType" label="退款类型" width="120"/>
  89. <el-table-column prop="refundModel" label="退款方式" width="120">
  90. <template #default="{ row }">
  91. {{ row.refundModel === 0 ? '全部退款' : '部分退款' }}
  92. </template>
  93. </el-table-column>
  94. <el-table-column prop="goodsName" label="退款商品" width="120" show-overflow-tooltip/>
  95. <el-table-column prop="sumGold" label="退款金额" width="120" sortable="custom">
  96. <template #default="{ row }">
  97. {{ row.sumGold / 100 }}
  98. </template>
  99. </el-table-column>
  100. <el-table-column prop="permanentGold" label="永久金币" width="120" sortable="custom">
  101. <template #default="{ row }">
  102. {{ row.permanentGold / 100 }}
  103. </template>
  104. </el-table-column>
  105. <el-table-column prop="freeGold" label="免费金币" width="120" sortable="custom">
  106. <template #default="{ row }">
  107. {{ (row.freeJune + row.freeDecember) / 100 }}
  108. </template>
  109. </el-table-column>
  110. <el-table-column prop="taskGold" label="任务金币" width="120" sortable="custom">
  111. <template #default="{ row }">
  112. {{ row.taskGold / 100 }}
  113. </template>
  114. </el-table-column>
  115. <el-table-column prop="remark" label="备注" width="150" show-overflow-tooltip/><!-- 当内容过长被隐藏时显示 tooltip -->
  116. <el-table-column prop="adminName" label="提交人" width="120"/>
  117. <el-table-column v-if="checkTab === 'reject'" prop="rejectReason" label="驳回理由" width="150"
  118. show-overflow-tooltip/>
  119. <el-table-column v-if="checkTab !== 'pending'" prop="auditName" label="审核人" width="120"/>
  120. <el-table-column prop="createTime" label="提交时间" width="180" sortable="custom">
  121. <template #default="{ row }">
  122. {{ moment(row.createTime).format('YYYY-MM-DD HH:mm:ss') }}
  123. </template>
  124. </el-table-column>
  125. <el-table-column v-if="checkTab !== 'pending'" prop="auditTime" label="审核时间" width="180" sortable="custom">
  126. <template #default="{ row }">
  127. {{ row.auditTime ? moment(row.auditTime).format('YYYY-MM-DD HH:mm:ss') : '--' }}
  128. </template>
  129. </el-table-column>
  130. <el-table-column v-if="checkTab === 'pending'" fixed="right" prop="operation" label="操作" width="150px">
  131. <template #default="scope">
  132. <div class="operation">
  133. <el-popconfirm title="确定要通过此条记录吗?" @confirm="handleApprove(scope.row)">
  134. <template #reference>
  135. <el-button :disabled="scope.row.auditStatus === 1 || scope.row.auditStatus === 2" type="primary" text>
  136. 通过
  137. </el-button>
  138. </template>
  139. </el-popconfirm>
  140. <el-button :disabled="scope.row.auditStatus === 1 || scope.row.auditStatus === 2" type="primary" text
  141. @click="showRejectDialog(scope.row)">
  142. 驳回
  143. </el-button>
  144. </div>
  145. </template>
  146. </el-table-column>
  147. </el-table>
  148. <el-pagination class="pagination" v-model:current-page="pagination.pageNum" v-model:page-size="pagination.pageSize"
  149. layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
  150. @size-change="handlePageSizeChange"
  151. @current-change="handleCurrentChange"></el-pagination>
  152. </el-card>
  153. <el-dialog v-model="rejectDialogVisible" title="驳回理由" width="500px">
  154. <el-form>
  155. <el-form-item label="驳回理由" required>
  156. <el-input v-model="rejectReason" type="textarea" :rows="4" placeholder="请输入驳回理由" maxlength="200"
  157. show-word-limit/>
  158. </el-form-item>
  159. </el-form>
  160. <template #footer>
  161. <span class="dialog-footer">
  162. <el-button @click="rejectDialogVisible = false">取消</el-button>
  163. <el-button type="primary" @click="handleReject">确定</el-button>
  164. </span>
  165. </template>
  166. </el-dialog>
  167. </template>
  168. <script setup>
  169. import {onMounted, reactive, ref} from 'vue'
  170. import {ElMessage} from 'element-plus'
  171. import API from '@/util/http'
  172. import moment from 'moment'
  173. import {marketMapping, reverseMarketMapping} from "@/utils/marketMap.js";
  174. // 标记当前激活的时间范围按钮
  175. const activeTimeRange = ref('')
  176. // 日期选择器变化时清除按钮激活状态
  177. const handleDatePickerChange = () => {
  178. activeTimeRange.value = ''
  179. }
  180. const scopeValue = ref(null) // 当前行
  181. const rejectDialogVisible = ref(false) // 驳回对话框显示状态
  182. const rejectReason = ref('') // 驳回理由
  183. // 状态常量
  184. const STATUS = {
  185. PENDING: 0, // 待审核
  186. APPROVED: 1, // 通过
  187. REJECTED: 2 // 驳回
  188. }
  189. // 搜索表单数据
  190. const searchForm = ref({
  191. jwcode: '',
  192. refundModel: '',
  193. goodsName: '',
  194. markets: [],
  195. startTime: '',
  196. endTime: '',
  197. auditStatus: '0'
  198. })
  199. const checkTab = ref('pending') // 能否不用STATUS常量,0是待审批,1是已通过,2是驳回,参数status需要Integer
  200. // 时间
  201. const dateRange = ref([])
  202. const pagination = ref({
  203. pageNum: 1,
  204. pageSize: 50,
  205. total: 0
  206. })
  207. const tableData = ref([])
  208. const marketOptions = ref([])
  209. const refundGoodsOptions = ref([])
  210. const adminInfo = ref({})
  211. // 统计合计数
  212. const stats = ref({
  213. totalNum: 0,
  214. totalCoins: 0,
  215. permanentGolds: 0,
  216. freeGolds: 0,
  217. taskGolds: 0
  218. })
  219. // 驳回弹出框
  220. const rejectVisible = ref(false)
  221. // 驳回对象
  222. const rejectObj = ref({})
  223. // 通过对象
  224. const passObj = ref({})
  225. // 标签页默认是待审批
  226. const activeName = ref('wait')
  227. // 表单验证ref
  228. const Ref = ref(null)
  229. // 新增排序字段和排序方式
  230. const sortField = ref('')
  231. const sortOrder = ref('')
  232. // 表单验证
  233. const rules = reactive({
  234. reason: [{required: true, message: '请输入驳回理由', trigger: 'blur'}]
  235. })
  236. const getAdminData = async function () {
  237. try {
  238. const result = await API({url: '/admin/userinfo', data: {}})
  239. adminInfo.value = result
  240. console.log('请求成功', result)
  241. console.log('用户信息', adminInfo.value)
  242. } catch (error) {
  243. console.log('请求失败', error)
  244. }
  245. }
  246. const handlePageSizeChange = function (val) {
  247. pagination.value.pageSize = val
  248. get()
  249. console.log('aaaaaaaaaaaaaaaaaa这是pageSize改变调用')
  250. }
  251. const handleCurrentChange = function (val) {
  252. pagination.value.pageNum = val
  253. get()
  254. console.log('aaaaaaaaaaaaaaa这是pageNum改变调用')
  255. }
  256. // 处理排序事件
  257. const handleSortChange = (column) => {
  258. if (column.prop === 'sumGold') {
  259. sortField.value = 'sum_gold'
  260. } else if (column.prop === 'permanentGold') {
  261. sortField.value = 'permanent_gold'
  262. } else if (column.prop === 'freeGold') {
  263. sortField.value = 'freeGold'
  264. } else if (column.prop === 'taskGold') {
  265. sortField.value = 'task_gold'
  266. } else if (column.prop === 'createTime') {
  267. sortField.value = 'create_time'
  268. } else if (column.prop === 'auditTime') {
  269. sortField.value = 'audit_time'
  270. } else {
  271. sortField.value = ''
  272. }
  273. sortOrder.value = column.order === 'ascending' ? 'asc' : 'desc'
  274. console.log('排序字段:', sortField.value)
  275. console.log('排序方式:', sortOrder.value)
  276. get()
  277. }
  278. // 显示驳回对话框
  279. const showRejectDialog = (row) => {
  280. scopeValue.value = row
  281. rejectReason.value = ''
  282. rejectDialogVisible.value = true
  283. }
  284. // 查地区
  285. const markets = ref([])
  286. // 查商品名
  287. const getRefundGoods = async () => {
  288. try {
  289. const res = await API({url: '/general/goods'})
  290. refundGoodsOptions.value = res.data || []
  291. } catch (error) {
  292. console.error('获取商品列表失败', error)
  293. }
  294. }
  295. // 搜索方法
  296. const get = async function (val) {
  297. try {
  298. if (typeof val === 'number') {
  299. pagination.value.pageNum = val
  300. }
  301. if (dateRange.value && dateRange.value.length === 2) {
  302. searchForm.value.startTime = moment(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss')
  303. searchForm.value.endTime = moment(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss')
  304. } else {
  305. searchForm.value.startTime = ''
  306. searchForm.value.endTime = ''
  307. }
  308. const params = {
  309. pageNum: pagination.value.pageNum,
  310. pageSize: pagination.value.pageSize,
  311. refundAudit: {
  312. ...searchForm.value,
  313. sortField: sortField.value,
  314. sortOrder: sortOrder.value
  315. }
  316. }
  317. console.log('看看传给后端的参数:', params)
  318. const res = await API({url: '/audit/selectRefund', data: params})
  319. tableData.value = res.list || []
  320. pagination.value.total = res.total || 0
  321. console.log('查全部的total', pagination.value.total, res.total)
  322. } catch (error) {
  323. console.error('获取数据失败', error)
  324. }
  325. }
  326. // 通过
  327. const handleApprove = async (row) => {
  328. try {
  329. const params = {
  330. orderCode: row.orderCode,
  331. auditId: adminInfo.value.id,
  332. action: 1,// action的1是通过,2是驳回
  333. rejectReason: ''
  334. }
  335. await API({url: '/audit/audit', data: params})// 试一下能不能发
  336. ElMessage.success('审核通过成功')
  337. get()
  338. getStats()
  339. console.log('aaaaaaaaaa这是通过调用')
  340. } catch (error) {
  341. console.error('审核通过失败', error)
  342. ElMessage.error('操作失败')
  343. }
  344. }
  345. // 处理驳回操作
  346. const handleReject = async () => {
  347. if (!rejectReason.value.trim()) {
  348. ElMessage.warning('请输入驳回理由')
  349. return
  350. }
  351. try {
  352. const params = {
  353. orderCode: scopeValue.value.orderCode,
  354. auditId: adminInfo.value.id,
  355. action: 2,
  356. rejectReason: rejectReason.value
  357. }
  358. await API({url: '/audit/audit', data: params})
  359. ElMessage.success('驳回成功')
  360. rejectDialogVisible.value = false
  361. get()
  362. getStats()
  363. console.log('aaaaaaaaaa这是驳回调用', params)
  364. } catch (error) {
  365. console.error('驳回失败', error)
  366. ElMessage.error('操作失败')
  367. }
  368. }
  369. const getStats = async () => {
  370. try {
  371. const params = {
  372. pageNum: pagination.value.pageNum,
  373. pageSize: pagination.value.pageSize,
  374. refundAudit: {
  375. ...searchForm.value
  376. }
  377. }
  378. const res = await API({
  379. url: '/audit/sumRefundGold',
  380. data: params
  381. })
  382. stats.value.totalNum = res.totalNum
  383. stats.value.permanentGolds = res.permanentGolds / 100
  384. stats.value.freeGolds = res.freeGolds / 100
  385. stats.value.taskGolds = res.taskGolds / 100
  386. console.log('see see stats和搜索对象', stats.value, params)
  387. } catch (error) {
  388. console.log('请求失败', error)
  389. }
  390. }
  391. // 搜索
  392. const handleSearch = function () {
  393. // pagination.value.pageNum = 1
  394. get()
  395. getStats()
  396. console.log('aaaaaaaaaa这是搜索按钮调用')
  397. }
  398. // 重置
  399. const resetSearch = function () {
  400. const auditStatus = searchForm.value.auditStatus;
  401. searchForm.value = {
  402. jwcode: '',
  403. refundType: '',
  404. goodsName: '',
  405. markets: [],
  406. startTime: '',
  407. endTime: '',
  408. sortField: '',
  409. sortOrder: '',
  410. auditStatus: auditStatus
  411. }
  412. dateRange.value = []
  413. activeTimeRange.value = '' // 清除激活状态
  414. selectedMarketPath.value = []
  415. get()
  416. getStats()
  417. }
  418. // 今天
  419. const getToday = function () {
  420. const today = new Date()
  421. const startTime = new Date(today.getFullYear(), today.getMonth(), today.getDate())
  422. const endTime = new Date(today.getFullYear(), today.getMonth(), today.getDate() + 1)
  423. dateRange.value = [startTime, endTime]
  424. console.log('dateRange', dateRange.value)
  425. activeTimeRange.value = 'today' // 标记当前激活状态
  426. get()
  427. getStats()
  428. console.log('aaaaaaaaaa这是今天调用')
  429. }
  430. // 昨天
  431. const getYesterday = function () {
  432. const yesterday = new Date()
  433. yesterday.setDate(yesterday.getDate() - 1)
  434. const startTime = new Date(yesterday.getFullYear(), yesterday.getMonth(), yesterday.getDate())
  435. const endTime = new Date(yesterday.getFullYear(), yesterday.getMonth(), yesterday.getDate() + 1)
  436. dateRange.value = [startTime, endTime]
  437. console.log('dateRange', dateRange.value)
  438. activeTimeRange.value = 'yesterday' // 标记当前激活状态
  439. get()
  440. getStats()
  441. console.log('aaaaaaaaaa这是昨天调用')
  442. }
  443. // 近7天
  444. const get7Days = function () {
  445. const today = new Date()
  446. const startTime = new Date(today.getFullYear(), today.getMonth(), today.getDate() - 6)
  447. const endTime = new Date(today.getFullYear(), today.getMonth(), today.getDate() + 1)
  448. dateRange.value = [startTime, endTime]
  449. console.log('dateRange', dateRange.value)
  450. activeTimeRange.value = '7days' // 标记当前激活状态
  451. get()
  452. getStats()
  453. console.log('aaaaaaaaaa这是近七天调用')
  454. }
  455. // 切换标签页
  456. const handleClick = function (tab, event) {
  457. activeName.value = tab.props.name
  458. if (tab.props.name === 'wait') {
  459. adminWait()
  460. } else if (tab.props.name === 'pass') {
  461. adminPass()
  462. } else if (tab.props.name === 'reject') {
  463. adminReject()
  464. }
  465. }
  466. // 当前状态
  467. const getCurrentStatus = () => {
  468. switch (activeName.value) {
  469. case 'wait':
  470. return STATUS.PENDING
  471. case 'pass':
  472. return STATUS.APPROVED
  473. case 'reject':
  474. return STATUS.REJECTED
  475. default:
  476. return ''
  477. }
  478. }
  479. // 待审核充值明细
  480. const adminWait = async function () {
  481. checkTab.value = 'pending'
  482. searchForm.value.auditStatus = STATUS.PENDING
  483. // pagination.value.pageNum = 1
  484. await get()
  485. await getStats()
  486. console.log('aaaaaaaaaaaaaaaaa看看checkTab,这是点击待审核调用', checkTab.value)
  487. }
  488. // 已通过充值明细
  489. const adminPass = async function () {
  490. checkTab.value = 'pass'
  491. searchForm.value.auditStatus = STATUS.APPROVED
  492. // pagination.value.pageNum = 1
  493. await get()
  494. await getStats()
  495. console.log('aaaaaaaaaaaaaaaaaaaaa看看checkTab,这是点击已通过调用', checkTab.value)
  496. }
  497. // 已驳回充值明细
  498. const adminReject = async function () {
  499. checkTab.value = 'reject'
  500. searchForm.value.auditStatus = STATUS.REJECTED
  501. // pagination.value.pageNum = 1
  502. await get()
  503. await getStats()
  504. console.log('aaaaaaaaaaaaaaaaaa看看checkTab,这是点击已驳回调用', checkTab.value)
  505. }
  506. // 存储地区选择变化
  507. const selectedMarketPath = ref([])
  508. //处理地区选择变化
  509. const handleMarketChange = (value) => {
  510. if (Array.isArray(value) && value.length > 0) {
  511. const ids = new Set();
  512. value.forEach(path => {
  513. const lastName = path[path.length - 1];
  514. const id = reverseMarketMapping[lastName];
  515. if (id) ids.add(Number(id));
  516. });
  517. // 添加额外处理:如果一个父节点下所有子节点都被选中,则把父节点也加入
  518. const getAllLeafNames = (nodes) => {
  519. const leafNames = [];
  520. const traverse = (node, parentName = null) => {
  521. if (!node.children || node.children.length === 0) {
  522. leafNames.push({name: node.label, parent: parentName});
  523. } else {
  524. node.children.forEach(child => traverse(child, node.label));
  525. }
  526. };
  527. nodes.forEach(node => traverse(node));
  528. return leafNames;
  529. };
  530. const leafNameMap = getAllLeafNames(markets.value); // 所有叶子节点和对应父级名称
  531. // 列表构建
  532. const parentToChildren = {};
  533. leafNameMap.forEach(({name, parent}) => {
  534. if (!parentToChildren[parent]) parentToChildren[parent] = [];
  535. parentToChildren[parent].push(name);
  536. });
  537. // 构建当前被选中的叶子节点
  538. const selectedLeafNames = value.map(path => path[path.length - 1]);
  539. // 如果 parent 下所有子节点都选中了,就把 parent 加进来
  540. Object.entries(parentToChildren).forEach(([parent, children]) => {
  541. const allChildrenSelected = children.every(child => selectedLeafNames.includes(child));
  542. if (allChildrenSelected && reverseMarketMapping[parent]) {
  543. ids.add(Number(reverseMarketMapping[parent]));
  544. }
  545. });
  546. searchForm.value.markets = Array.from(ids);
  547. } else {
  548. searchForm.value.markets = [];
  549. }
  550. console.log('最终映射后的 market IDs:', searchForm.value.markets);
  551. };
  552. const props = {multiple: true}
  553. // 获取地区,修改为级联下拉框
  554. const getMarket = async function () {
  555. try {
  556. // 发送POST请求
  557. const result = await API({
  558. url: '/market/selectMarket',
  559. });
  560. // 将响应结果存储到响应式数据中
  561. console.log('请求成功', result)
  562. // 递归转换树形结构为级联选择器需要的格式(跳过第一级节点)
  563. const transformTree = (nodes) => {
  564. // 直接处理第一级节点的子节点
  565. const allChildren = nodes.flatMap(node => node.children || []);
  566. return allChildren.map(child => {
  567. const grandchildren = child.children && child.children.length
  568. ? transformTree([child]) // 递归处理子节点
  569. : null;
  570. return {
  571. value: child.name,
  572. label: child.name,
  573. children: grandchildren
  574. };
  575. });
  576. };
  577. // 存储地区信息
  578. markets.value = transformTree(result.data)
  579. console.log('转换后的地区树==============', markets.value)
  580. } catch (error) {
  581. console.log('请求失败', error)
  582. }
  583. }
  584. onMounted(async () => {
  585. await getAdminData()
  586. getRefundGoods()
  587. await getMarket()
  588. await get()
  589. await getStats()
  590. console.log('aaaaaaaaaa这是挂载后调用')
  591. })
  592. </script>
  593. <style scoped>
  594. .pagination {
  595. display: flex;
  596. }
  597. .operation {
  598. display: flex;
  599. }
  600. .time-controls {
  601. display: flex;
  602. align-items: center;
  603. }
  604. .time-group {
  605. display: flex;
  606. align-items: center;
  607. gap: 10px;
  608. }
  609. </style>