1
This commit is contained in:
@@ -396,7 +396,6 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.loadERPAccounts();
|
||||
// 不自动加载列表,等用户选择账号后再加载
|
||||
},
|
||||
methods: {
|
||||
/** 查询闲鱼商品列表 */
|
||||
@@ -420,6 +419,11 @@ export default {
|
||||
loadERPAccounts() {
|
||||
getERPAccounts().then(response => {
|
||||
this.erpAccountList = response.data || [];
|
||||
// 自动将第一个ERP账号作为参数并调用列表数据
|
||||
if (this.erpAccountList.length > 0 && !this.queryParams.appid) {
|
||||
this.queryParams.appid = this.erpAccountList[0].value;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 加载会员名列表 */
|
||||
|
||||
Reference in New Issue
Block a user