VIEW-BASE.vue.ftl 1.7 KB
Newer Older
1
<#assign view_base_name>PickupTreeViewBase</#assign>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<#ibizinclude>
../@MACRO/LAYOUTPANEL_VIEW.template.ftl
</#ibizinclude>

<#ibizinclude>
../@MACRO/VIEW_HEADER-BASE.vue.ftl
</#ibizinclude>

<#ibizinclude>
../@MACRO/VIEW_CONTENT-BASE.vue.ftl
</#ibizinclude>
    /**
     * 选中数据字符串
     *
     * @type {string}
17
     * @memberof ${srfclassname('${view.name}')}Base
18
     */
tony001's avatar
tony001 committed
19
    @Prop() public selectedData?: string;
20 21 22 23 24

    /**
     * 是否单选
     *
     * @type {boolean}
25
     * @memberof ${srfclassname('${view.name}')}Base
26
     */
tony001's avatar
tony001 committed
27
    @Prop() public isSingleSelect?: boolean;
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

    /**
     * 是否显示按钮
     *
     * @type {boolean}
     * @memberof ${srfclassname('${view.name}')}Base
     */
    @Prop({default: true}) public isShowButton!: boolean;

    /**
     * 节点过滤值
     *
     * @type {string}
     * @memberof ${srfclassname('${view.name}')}Base
     */
    public srfnodefilter: string = '';

    /**
     * 快速搜索
     *
     * @returns {void}
     * @memberof ${srfclassname('${view.name}')}Base
     */
    public onSearch(): void {
        if (!this.viewState) {
            return;
        }
        <#if view.hasPSControl('tree')>
        this.viewState.next({ tag: '${view.getPSControl('tree').name}', action: 'filter', data: { srfnodefilter: this.srfnodefilter } });
        </#if>
    }

tony001's avatar
tony001 committed
60 61 62 63 64 65 66 67 68 69 70
    /**
     * tree 部件 nodedblclick 事件
     *
     * @param {*} [args={}]
     * @param {*} $event
     * @memberof ${srfclassname('${view.name}')}Base
     */
    public tree_nodedblclick($event: any, $event2?: any) {
        this.engine.onCtrlEvent('tree', 'nodedblclick', $event);
    }

71 72 73 74 75 76 77
<#ibizinclude>
../@MACRO/VIEW_BOTTOM-BASE.vue.ftl
</#ibizinclude>

<#ibizinclude>
../@MACRO/VIEW-BASE.style.ftl
</#ibizinclude>