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

树部件逻辑调整 --fix1

上级 3a291501
<#ibizinclude>
./CONTROL-BASE.template.ftl
</#ibizinclude>
<#assign import_block>
import { Util } from '@ibiz-core/utils'
</#assign>
<#ibizinclude>
../@MACRO/CONTROL/CONTROL_HEADER-BASE.vue.ftl
</#ibizinclude>
......@@ -400,7 +402,7 @@
Object.assign(params,{viewparams:tempViewParams});
this.service.getNodes(tempContext,params).then((response: any) => {
if (!response || response.status !== 200) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.info });
this.$notice.error(response.info);
resolve([]);
return;
}
......@@ -420,7 +422,7 @@
if (response && response.status === 401) {
return;
}
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.info });
this.$notice.error(response.info);
});
}
......@@ -484,7 +486,7 @@
const get: Promise<any> = this.service.getNodes(JSON.parse(JSON.stringify(this.context)),arg);
get.then((response: any) => {
if (!response || response.status !== 200) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.info });
this.$notice.error(response.info);
return;
}
const _items = [...response.data];
......@@ -499,7 +501,7 @@
if (response && response.status === 401) {
return;
}
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.info });
this.$notice.error(response.info);
});
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册