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

汇率日志修改

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