ouindex-view-appmenu-service.ts 985 字节
Newer Older
ibizdev's avatar
ibizdev committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import OUIndexViewModel from './ouindex-view-appmenu-model';


/**
 * OUIndexView 部件服务对象
 *
 * @export
 * @class OUIndexViewService
 */
export default class OUIndexViewService extends ControlService {

    /**
     * 设置从数据模式
     *
     * @type {boolean}
     * @memberof OUIndexViewService
     */
    public setTempMode(){
        this.isTempMode = false;
    }

    /**
     * Creates an instance of OUIndexViewService.
     * 
     * @param {*} [opts={}]
     * @memberof OUIndexViewService
     */
    constructor(opts: any = {}) {
        super(opts);
        this.model = new OUIndexViewModel();
    }

    /**
     * 获取数据
     *
     * @returns {Promise<any>}
     * @memberof OUIndexView
     */
    @Errorlog
    public get(params: any = {}): Promise<any> {
        return Http.getInstance().get('v7/ouindex-viewappmenu', params);
    }

}