提交 932b0827 编写于 作者: ibizdev's avatar ibizdev

ShineKOT 发布系统代码 [后台服务,演示应用]

上级 c18b1a00
......@@ -23,6 +23,11 @@
:showBusyIndicator="true"
name="treegridex"
ref='treegridex'
@selectionchange="treegridex_selectionchange($event)"
@beforeload="treegridex_beforeload($event)"
@rowdblclick="treegridex_rowdblclick($event)"
@remove="treegridex_remove($event)"
@load="treegridex_load($event)"
@closeview="closeView($event)">
</view_treegridex>
</div>
......@@ -40,6 +45,7 @@ import { Subject,Subscription } from 'rxjs';
import IBIZBOOKService from '@/service/ibizbook/ibizbook-service';
import IBIZBOOKAuthService from '@/authservice/ibizbook/ibizbook-auth-service';
import TreeGridExViewEngine from '@engine/view/tree-grid-ex-view-engine';
import IBIZBOOKUIService from '@/uiservice/ibizbook/ibizbook-ui-service';
......@@ -249,6 +255,14 @@ export default class IBIZBOOKTreeGridExViewBase extends Vue {
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZBOOKTreeGridExViewBase
*/
public engine: TreeGridExViewEngine = new TreeGridExViewEngine();
/**
* 引擎初始化
......@@ -257,6 +271,13 @@ export default class IBIZBOOKTreeGridExViewBase extends Vue {
* @memberof IBIZBOOKTreeGridExViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
treegridex: this.$refs.treegridex,
keyPSDEField: 'ibizbook',
majorPSDEField: 'ibizbookname',
isLoadDefault: true,
});
}
/**
......@@ -552,6 +573,66 @@ export default class IBIZBOOKTreeGridExViewBase extends Vue {
}
/**
* treegridex 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKTreeGridExViewBase
*/
public treegridex_selectionchange($event: any, $event2?: any) {
this.engine.onCtrlEvent('treegridex', 'selectionchange', $event);
}
/**
* treegridex 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKTreeGridExViewBase
*/
public treegridex_beforeload($event: any, $event2?: any) {
this.engine.onCtrlEvent('treegridex', 'beforeload', $event);
}
/**
* treegridex 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKTreeGridExViewBase
*/
public treegridex_rowdblclick($event: any, $event2?: any) {
this.engine.onCtrlEvent('treegridex', 'rowdblclick', $event);
}
/**
* treegridex 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKTreeGridExViewBase
*/
public treegridex_remove($event: any, $event2?: any) {
this.engine.onCtrlEvent('treegridex', 'remove', $event);
}
/**
* treegridex 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKTreeGridExViewBase
*/
public treegridex_load($event: any, $event2?: any) {
this.engine.onCtrlEvent('treegridex', 'load', $event);
}
/**
......
......@@ -364,7 +364,7 @@ export default class ViewChartBase extends Vue implements ControlInterface {
{
gridIndex:0,
position:"bottom",
type:'value',
type:'category',
name:'视图类型',
......@@ -393,7 +393,7 @@ export default class ViewChartBase extends Vue implements ControlInterface {
yAxisIndex:0,
datasetIndex:0,
encode: {
x: ['amount'],
x: ['ibizappviewtype'],
y: ['amount']
}}
]
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册