|
@@ -42,7 +42,48 @@ const getList = (type) => {
|
|
|
proxy
|
|
|
.post("/accountManagement/page", req.value)
|
|
|
.then((res) => {
|
|
|
- listData.value = type === "refresh" ? res.data.rows : listData.value.concat(res.data.rows);
|
|
|
+ listData.value =
|
|
|
+ type === "refresh"
|
|
|
+ ? res.data.rows.map((item) => {
|
|
|
+ if (item.accountRemainderList && item.accountRemainderList.length > 0) {
|
|
|
+ let accountRemainder = "";
|
|
|
+ if (item.accountRemainderList.length === 1) {
|
|
|
+ accountRemainder = item.accountRemainderList[0].currency + " " + item.accountRemainderList[0].remainder;
|
|
|
+ } else {
|
|
|
+ accountRemainder = proxy.t("account.accountRemainderMsg");
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ accountRemainder: accountRemainder,
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ accountRemainder: "",
|
|
|
+ };
|
|
|
+ }
|
|
|
+ })
|
|
|
+ : listData.value.concat(
|
|
|
+ res.data.rows.map((item) => {
|
|
|
+ if (item.accountRemainderList && item.accountRemainderList.length > 0) {
|
|
|
+ let accountRemainder = "";
|
|
|
+ if (item.accountRemainderList.length === 1) {
|
|
|
+ accountRemainder = item.accountRemainderList[0].currency + " " + item.accountRemainderList[0].remainder;
|
|
|
+ } else {
|
|
|
+ accountRemainder = proxy.t("account.accountRemainderMsg");
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ accountRemainder: accountRemainder,
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ accountRemainder: "",
|
|
|
+ };
|
|
|
+ }
|
|
|
+ })
|
|
|
+ );
|
|
|
if (req.value.pageNum * 10 >= res.data.total) {
|
|
|
finished.value = true;
|
|
|
}
|
|
@@ -75,6 +116,10 @@ const listConfig = ref([
|
|
|
label: proxy.t("account.accountOpening"),
|
|
|
prop: "accountOpening",
|
|
|
},
|
|
|
+ {
|
|
|
+ label: proxy.t("account.accountRemainder"),
|
|
|
+ prop: "accountRemainder",
|
|
|
+ },
|
|
|
]);
|
|
|
</script>
|
|
|
|