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

树部件逻辑调整 --fix1

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