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

备注回显问题修改

parent afcca4a5
......@@ -37,7 +37,7 @@
<el-table v-loading="loading" :data="list">
<el-table-column :label="$t('序号')" align="center" >
<template v-slot="{row, $index}">
{{(queryParams.pageNo - 1) * queryParams.pageSize + ($index + 1)}}
{{(queryParams.page - 1) * queryParams.rows + ($index + 1)}}
</template>
</el-table-column>
<el-table-column :label="$t('币种1')" align="center" prop="sourceCurrencyId">
......@@ -307,7 +307,8 @@ export default {
this.reset();
const id = row.id;
getExchangeRate(id).then(response => {
this.form = response.data;
this.form = {...this.form,...response.data};
console.log( this.form,' this.form')
this.open = true;
this.title = "修改";
});
......@@ -323,11 +324,12 @@ export default {
let p = {
currencyRate: Number(this.form.currencyRate),
id: this.form.id,
note: this.form.no,
note: this.form.note,
sourceCurrencyCode: this.form.sourceCurrencyCode,
sourceCurrencyId: this.form.sourceCurrencyId ,
targetCurrencyCode: this.form.targetCurrencyCode,
targetCurrencyId: this.form.targetCurrencyId
targetCurrencyId: this.form.targetCurrencyId,
}
updateExchangeRate(p).then(response => {
this.$modal.msgSuccess(this.$t('修改成功'));
......
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