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

参数调整

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