Commit 6a3f1577 by wusiyi

fix: 修改扣费明细为交易明细

parent 845722aa
......@@ -176,7 +176,7 @@
style="cursor: pointer; color: #1565c0"></i>
<i
class="el-icon-money"
title="扣费明细"
title="交易明细"
@click="handleChargerLog(scope.row)"
style="cursor: pointer; color: #e6b800"></i>
</div>
......@@ -356,7 +356,11 @@
</span>
</el-dialog>
<!-- 操作日志 弹窗 -->
<el-dialog title="操作日志" :visible.sync="logVisible" width="900px">
<el-dialog
title="操作日志"
:visible.sync="logVisible"
width="900px"
class="logDialog">
<ul style="color: #333; font-size: 14px; height: 600px; overflow: auto">
<li
v-for="(item, index) in logList"
......@@ -383,9 +387,9 @@
@current-change="onLogCurrentChange" />
</div>
</el-dialog>
<!-- 扣费明细 弹窗 -->
<!-- 交易明细 弹窗 -->
<el-dialog
title="扣费明细"
title="交易明细"
:visible.sync="recordsVisible"
width="100%"
class="recordsDialog">
......@@ -452,6 +456,7 @@
</el-form>
</div>
<el-table
v-loading="loading"
ref="recordsTable"
:data="chargerRecordsList"
border
......@@ -792,10 +797,14 @@ export default {
// 查看操作日志
handleLog(row) {
this.currentRow = row
this.totalLog = 0
this.logPageSize = 50
this.currentLogPage = 1
this.getLogs()
},
async getLogs() {
try {
this.loading = true
const res = await getLogListApi({
customerBalanceId: this.currentRow.id,
pageSize: this.logPageSize,
......@@ -810,10 +819,15 @@ export default {
}
} catch (e) {
console.log(e)
} finally {
this.loading = false
}
},
handleChargerLog(row) {
this.currentRow = row
this.totalRecords = 0
this.currentRecordsPage = 1
this.recordsPageSize = 50
this.getChargerLog()
},
getChargeTypeText(type) {
......@@ -822,6 +836,8 @@ export default {
// 分页查看扣费明细
async getChargerLog() {
try {
this.loading = true
const data = {
pageSize: this.recordsPageSize,
currentPage: this.currentRecordsPage,
......@@ -850,6 +866,8 @@ export default {
}
} catch (e) {
console.log(e)
} finally {
this.loading = false
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment