|
|
@@ -111,9 +111,10 @@ export default {
|
|
|
name: "费用中心",
|
|
|
data() {
|
|
|
return {
|
|
|
+ firstPage: false,
|
|
|
form: {},
|
|
|
query: {},
|
|
|
- loading: true,
|
|
|
+ loading: false,
|
|
|
page: {
|
|
|
pageSize: 20,
|
|
|
currentPage: 1,
|
|
|
@@ -340,7 +341,7 @@ export default {
|
|
|
},
|
|
|
data: [],
|
|
|
corpCnNameList: [],
|
|
|
- saberUserInfo:{}
|
|
|
+ saberUserInfo: {}
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -477,6 +478,7 @@ export default {
|
|
|
},
|
|
|
searchChange(params, done) {
|
|
|
console.log(params);
|
|
|
+ this.firstPage = true;
|
|
|
this.query = params;
|
|
|
this.page.currentPage = 1;
|
|
|
this.onLoad(this.page, params);
|
|
|
@@ -499,23 +501,25 @@ export default {
|
|
|
this.onLoad(this.page, this.query);
|
|
|
},
|
|
|
onLoad(page, params = {}) {
|
|
|
- this.loading = true;
|
|
|
- feecenterList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
|
|
- const data = res.data.data;
|
|
|
- this.page.total = data.total;
|
|
|
- this.data = data.records;
|
|
|
- for (let item of this.data) {
|
|
|
- if (item.curCode == "CNY") {
|
|
|
- this.$set(item, "rmbAmount", item.amount);
|
|
|
- this.$set(item, "usdAmount", "");
|
|
|
- } else {
|
|
|
- this.$set(item, "usdAmount", item.amount);
|
|
|
- this.$set(item, "rmbAmount", "");
|
|
|
+ if (this.firstPage) {
|
|
|
+ this.loading = true;
|
|
|
+ feecenterList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
|
|
+ const data = res.data.data;
|
|
|
+ this.page.total = data.total;
|
|
|
+ this.data = data.records;
|
|
|
+ for (let item of this.data) {
|
|
|
+ if (item.curCode == "CNY") {
|
|
|
+ this.$set(item, "rmbAmount", item.amount);
|
|
|
+ this.$set(item, "usdAmount", "");
|
|
|
+ } else {
|
|
|
+ this.$set(item, "usdAmount", item.amount);
|
|
|
+ this.$set(item, "rmbAmount", "");
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- this.loading = false;
|
|
|
- this.selectionClear();
|
|
|
- });
|
|
|
+ this.loading = false;
|
|
|
+ this.selectionClear();
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
//自定义列保存
|
|
|
async saveColumnTwo(ref, option, optionBack, code) {
|