提交 2b124bb2 编写于 作者: JunZai's avatar JunZai

update

上级 7c13c8ef
...@@ -267,7 +267,20 @@ FilterTree, ...@@ -267,7 +267,20 @@ FilterTree,
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onSave() { public onSave() {
console.log(this.filterItems) let param: any = {};
Object.assign(param, {
model: this.filterItems,
appdeName: this.appdeName,
modelid: this.modelId,
utilServiceName: this.utilServiceName,
...this.viewparams
});
let post = this.service.saveModel(this.utilServiceName, this.context, param);
post.then((response: any) => {
this.$emit("save", response.data);
}).catch((response: any) => {
console.log(response);
});
} }
/** /**
...@@ -298,7 +311,10 @@ FilterTree, ...@@ -298,7 +311,10 @@ FilterTree,
let post = this.service.loadModel(this.utilServiceName, this.context, param); let post = this.service.loadModel(this.utilServiceName, this.context, param);
post.then((response: any) => { post.then((response: any) => {
if(response.status == 200) { if(response.status == 200) {
this.filterItems = response.data;
this.$nextTick(() => {
this.onSearch();
})
} }
}).catch((response: any) => { }).catch((response: any) => {
console.log(response); console.log(response);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册