Commit 87342d96 authored by 邓春圆's avatar 邓春圆

汇率日志修改

parent 260d00ae
......@@ -45,7 +45,7 @@ export function getExchangeRatePage(query) {
// 汇率日志查询
export function getExchangeRateLogList(params){
return request({
url:'/ecw/exchange-rate-log/list',
url:'/ecw/exchange-rate-log/page',
method:'get',
params,
})
......
......@@ -140,6 +140,8 @@
</template>
</el-table-column>
</el-table>
<pagination v-show="totalLog > 0" :total="totalLog" :page.sync="formLog.page" :limit.sync="form.rows"
@pagination="handleLog"/>
</el-dialog>
</div>
</template>
......@@ -200,7 +202,12 @@ export default {
targetCurrencyId: [{ required: true, message: this.$t('币种2不能为空'), trigger: "change" }],
targetCurrencyCode: [{ required: true, message: this.$t('目标种代码不能为空'), trigger: "blur" }],
currencyRate: [{ required: true, message: this.$t('汇率不能为空'), trigger: "blur" }],
}
},
formLog:{
rows:10,
page:1
},
totalLog: 0,
};
},
created() {
......@@ -216,8 +223,9 @@ export default {
},
handleLog(row){
this.openLog = true;
getExchangeRateLogList({ids:row.id}).then(r => {
this.listLog = r.data;
getExchangeRateLogList({rateId:row.id,...this.formLog}).then(r => {
this.listLog = r.data.list;
this.totalLog = r.data.total;
})
},
getOperator(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