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

load动态代码表调整

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