From 0423f8e5894d810a4c4edbb9fefe7f033f79090a Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 8 Apr 2022 17:14:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E8=A7=86=E5=8C=96=E4=B8=96=E7=95=8C?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/screen/list/index.vue | 23 ++++++++++++++--------- src/setting.js | 2 +- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/pages/screen/list/index.vue b/src/pages/screen/list/index.vue index 269bd3e..d360a33 100644 --- a/src/pages/screen/list/index.vue +++ b/src/pages/screen/list/index.vue @@ -1038,15 +1038,20 @@ export default { }, // 生成世界地图 async renderMap() { - // 获取利率全部表id和name - const res = await this.$post(`${this.api.getIdQueryTable}?categoryId=19&pageNum=1&pageSize=20&updateTime=&showName=`) - const param = [] - res.pageList.records.map(e => { - param.push({ - tableId: e.id, - tableName: e.name - }) - }) + // 利率全部表id和name + const param = [ + {tableId: 2, tableName: 'll_yh_usa'}, + {tableId: 3, tableName: 'll_yh_euro'}, + {tableId: 4, tableName: 'll_yh_newzealand'}, + {tableId: 5, tableName: 'll_yh_china'}, + {tableId: 6, tableName: 'll_yh_switzerland'}, + {tableId: 7, tableName: 'll_yh_english'}, + {tableId: 8, tableName: 'll_yh_australia'}, + {tableId: 9, tableName: 'll_yh_japan'}, + {tableId: 10, tableName: 'll_yh_russia'}, + {tableId: 11, tableName: 'll_yh_india'}, + {tableId: 12, tableName: 'll_yh_brazil'} + ] this.$post(this.api.multipleTablePreview, param).then(res => { // 每个国家的央行利率,因为国家名称无法直接取数据库里的,所以这里固定好 const data = [ diff --git a/src/setting.js b/src/setting.js index b55efa9..5a35237 100644 --- a/src/setting.js +++ b/src/setting.js @@ -25,7 +25,7 @@ const Setting = { * 正式:http://www.dataforward.cn:9000 * */ // apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://39.108.250.202:9000', - apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : `${location.origin}:9000`, + apiBaseURL: env === 'development' ? 'http://39.108.250.202:9000' : `${location.origin}:9000`, // 加密货币接口地址 cryptoBaseURL: `http://159.138.53.111/`, // 接口请求返回错误时,弹窗的持续时间,单位:秒