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

参数调整

上级 bf95a87c
...@@ -184,8 +184,8 @@ export default class AppMobMpicker extends Vue { ...@@ -184,8 +184,8 @@ export default class AppMobMpicker extends Vue {
* @param {*} data * @param {*} data
* @memberof AppMobMpicker * @memberof AppMobMpicker
*/ */
private openDrawer(view: any, context: any, param: any): void { private async openDrawer(view: any, context: any, param: any): Promise<any> {
let container: Subject<any> = this.$appdrawer.openDrawer( let container: Subject<any> = await this.$appdrawer.openDrawer(
view, view,
context, context,
param param
......
...@@ -458,8 +458,8 @@ export default class AppSelectDropDown extends Vue { ...@@ -458,8 +458,8 @@ export default class AppSelectDropDown extends Vue {
* @param {*} data * @param {*} data
* @memberof AppSelectDropDown * @memberof AppSelectDropDown
*/ */
private openDrawer(view: any, context: any, param: any): void { private async openDrawer(view: any, context: any, param: any): Promise<any> {
let container: Subject<any> = this.$appdrawer.openDrawer(view, context, param); let container: Subject<any> = await this.$appdrawer.openDrawer(view, context, param);
container.subscribe((result: any) => { container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) { if (!result || !Object.is(result.ret, 'OK')) {
return; return;
......
...@@ -135,14 +135,7 @@ export class ViewOpenService { ...@@ -135,14 +135,7 @@ export class ViewOpenService {
* @memberof ViewOpenService * @memberof ViewOpenService
*/ */
public async openDrawer(view: any, context: any, param: any): Promise<any> { public async openDrawer(view: any, context: any, param: any): Promise<any> {
return new Promise((resolve, reject) => { return await AppDrawer.getInstance().openDrawer(view, context, param);
AppDrawer.getInstance().openDrawer(view, context, param).subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
resolve(result.datas);
});
});
} }
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册