Commit f484bcb3 authored by 邓春圆's avatar 邓春圆

分页调整

parent a931e984
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-hasPermi="['ecw:exchange-rate:update']" size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">{{$t('修改')}}</el-button> <el-button v-hasPermi="['ecw:exchange-rate:update']" size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">{{$t('修改')}}</el-button>
<el-button v-hasPermi="['ecw:exchange-rate:delete']" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">{{$t('删除')}}</el-button> <el-button v-hasPermi="['ecw:exchange-rate:delete']" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">{{$t('删除')}}</el-button>
<el-button v-hasPermi="['ecw:exchange-rate:log']" size="mini" type="text" @click="handleLog(scope.row)">{{$t('日志')}}</el-button> <el-button v-hasPermi="['ecw:exchange-rate:log']" size="mini" type="text" @click="formLog.rows = 10;formLog.page=1; handleLog(scope.row)">{{$t('日志')}}</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -140,8 +140,8 @@ ...@@ -140,8 +140,8 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination v-show="totalLog > 0" :total="totalLog" :page.sync="formLog.page" :limit.sync="form.rows" <pagination v-show="totalLog > 0" :total="totalLog" :page.sync="formLog.page" :limit.sync="formLog.rows"
@pagination="handleLog"/> @pagination="getListLog"/>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -223,11 +223,16 @@ export default { ...@@ -223,11 +223,16 @@ export default {
}, },
handleLog(row){ handleLog(row){
this.openLog = true; this.openLog = true;
getExchangeRateLogList({rateId:row.id,...this.formLog}).then(r => { this.formLog.rateId = row.id
this.getListLog()
},
getListLog(){
getExchangeRateLogList(this.formLog).then(r => {
this.listLog = r.data.list; this.listLog = r.data.list;
this.totalLog = r.data.total; this.totalLog = r.data.total;
}) })
}, },
getOperator(val){ getOperator(val){
if (val){ if (val){
let n = this.allSimplList.find(i => i.id == val) let n = this.allSimplList.find(i => i.id == val)
......
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