提交 b48f7d66 编写于 作者: KK's avatar KK

load动态代码表调整

上级 451866ca
......@@ -99,8 +99,8 @@ export default class AppMobRadio extends Vue {
private async loadItems(): Promise<any> {
if (Object.is(this.type, 'dynamic')) {
const response: any = await this.codeListService.getItems(this.tag);
if (response && response.status === 200) {
this.options = response.data;
if (response) {
this.options = response;
} else {
this.options = [];
}
......
......@@ -193,9 +193,7 @@ export default class AppSelect extends Vue {
if (Object.is(this.codeListType, "STATIC")) {
return;
}
if (!this.isCached) {
Loading.show(this.$t('app.loadding'));
}
// 处理导航参数、上下文参数
let param: any = {};
const bcancel: boolean =this.handleOtherParam(param);
......@@ -203,12 +201,9 @@ export default class AppSelect extends Vue {
return
}
let response: any = await this.codeListService.getItems(this.tag, this.isCache, param.context, param.param);
if (!this.isCached) {
Loading.hidden();
}
if (response && response.status === 200) {
if (response) {
this.overload = true;
this.options = response.data;
this.options = response
if (this.isCache) {
this.isCached = true;
}
......
......@@ -151,8 +151,8 @@ export default class AppSpan extends Vue {
if (!this.isCached) {
// Loading.hidden();
}
if (response && response.status === 200) {
this.items = response.data;
if (response) {
this.items = response;
this.setText();
if (this.isCache) {
this.isCached = true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册