|
@@ -378,8 +378,18 @@ const changeExchangeRate = (row) => {
|
|
|
loadingDialog.value = true;
|
|
|
openChange.value = true;
|
|
|
if (row.currencyRateJson) {
|
|
|
- // let currencyRateJson = JSON.parse(row.currencyRateJson)
|
|
|
-
|
|
|
+ let currencyRateJson = JSON.parse(row.currencyRateJson);
|
|
|
+ formChangeData.data.list = formChangeData.data.list.map((item) => {
|
|
|
+ for (let i = 0; i < currencyRateJson.length; i++) {
|
|
|
+ if (item.type === currencyRateJson[i].type) {
|
|
|
+ item.rate = currencyRateJson[i].rate;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ };
|
|
|
+ });
|
|
|
} else {
|
|
|
proxy.post("/currencyRate/list", {}).then(
|
|
|
(res) => {
|