File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 135
135
</div >
136
136
</template >
137
137
</el-table-column >
138
- <el-table-column align =" center" label =" 订单金额" prop =" refundPrice" >
138
+ <el-table-column align =" center" label =" 订单金额" prop =" refundPrice" min-width = " 120 " >
139
139
<template #default =" scope " >
140
140
<span >{{ fenToYuan(scope.row.refundPrice) }} 元</span >
141
141
</template >
@@ -206,6 +206,7 @@ const queryParams = reactive({
206
206
way: null ,
207
207
type: null
208
208
})
209
+
209
210
/** 查询列表 */
210
211
const getList = async () => {
211
212
loading .value = true
@@ -216,23 +217,26 @@ const getList = async () => {
216
217
delete data .status
217
218
}
218
219
// 执行查询
219
- const res = ( await AfterSaleApi .getAfterSalePage (data )) as AfterSaleApi . TradeAfterSaleVO []
220
- list .value = res .list
220
+ const res = await AfterSaleApi .getAfterSalePage (data )
221
+ list .value = res .list as AfterSaleApi . TradeAfterSaleVO []
221
222
total .value = res .total
222
223
} finally {
223
224
loading .value = false
224
225
}
225
226
}
227
+
226
228
/** 搜索按钮操作 */
227
229
const handleQuery = async () => {
228
230
queryParams .pageNo = 1
229
231
await getList ()
230
232
}
233
+
231
234
/** 重置按钮操作 */
232
235
const resetQuery = () => {
233
236
queryFormRef .value ?.resetFields ()
234
237
handleQuery ()
235
238
}
239
+
236
240
/** tab 切换 */
237
241
const tabClick = async (tab : TabsPaneContext ) => {
238
242
queryParams .status = tab .paneName
Original file line number Diff line number Diff line change 133
133
</div >
134
134
</template >
135
135
</el-table-column >
136
- <el-table-column align =" center" label =" 订单金额" prop =" refundPrice" >
136
+ <el-table-column align =" center" label =" 订单金额" prop =" refundPrice" min-width = " 120 " >
137
137
<template #default =" scope " >
138
138
<span >{{ fenToYuan(scope.row.refundPrice) }} 元</span >
139
139
</template >
140
140
</el-table-column >
141
- <el-table-column align =" center" label =" 买家" prop =" user.nickname" />
142
141
<el-table-column align =" center" label =" 申请时间" prop =" createTime" width =" 180" >
143
142
<template #default =" scope " >
144
143
<span >{{ formatDate(scope.row.createTime) }}</span >
@@ -207,6 +206,7 @@ const queryParams = ref({
207
206
way: null ,
208
207
type: null
209
208
})
209
+
210
210
/** 查询列表 */
211
211
const getList = async () => {
212
212
loading .value = true
@@ -218,24 +218,27 @@ const getList = async () => {
218
218
}
219
219
// 执行查询
220
220
// TODO @芋艿:接口需要通过userId进行筛选返回值
221
- const res = ( await AfterSaleApi .getAfterSalePage (data )) as AfterSaleApi . TradeAfterSaleVO []
222
- list .value = res .list
221
+ const res = await AfterSaleApi .getAfterSalePage (data )
222
+ list .value = res .list as AfterSaleApi . TradeAfterSaleVO []
223
223
total .value = res .total
224
224
} finally {
225
225
loading .value = false
226
226
}
227
227
}
228
+
228
229
/** 搜索按钮操作 */
229
230
const handleQuery = async () => {
230
231
queryParams .value .pageNo = 1
231
232
await getList ()
232
233
}
234
+
233
235
/** 重置按钮操作 */
234
236
const resetQuery = () => {
235
237
queryFormRef .value ?.resetFields ()
236
238
queryParams .value .userId = userId
237
239
handleQuery ()
238
240
}
241
+
239
242
/** tab 切换 */
240
243
const tabClick = async (tab : TabsPaneContext ) => {
241
244
queryParams .value .status = tab .paneName
You can’t perform that action at this time.
0 commit comments