提交 ac7b0d53 编写于 作者: JunZai's avatar JunZai

update

上级 46b8a37f
......@@ -2,7 +2,7 @@
../../@MACRO/LANG_FUN.ftl
</#ibizinclude>
<template>
<gantt-elastic :class="ganttClass" :tasks="tasks" :options="getOptions(this.locale)" :dynamic-style="dynamicStyle">
<gantt-elastic :class="ganttClass" :tasks="tasks" :options="getOptions(this.locale)" :dynamic-style="dynamicStyle" @taskList-item-click="taskClick">
</gantt-elastic>
</template>
<#assign import_block>
......@@ -239,18 +239,6 @@ ganttElasticHeader,
return view;
}
/**
* 点击事件
*
* @param {*} $event calendar事件对象或event数据
* @param {*} isOriginData true:$event是原始event数据,false:是组件
* @param {*} $event timeline事件对象
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public onEventClick($event: any, isOriginData:boolean = false, $event2?: any) {
}
/**
* 刷新
*
......@@ -301,6 +289,16 @@ ganttElasticHeader,
this.searchEvents();
}
/**
* 点击事件
*
* @returns
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public taskClick($event: any) {
console.log($event);
}
<#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
......@@ -102,8 +102,8 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
stroke: _this.eventsConfig[resIndex].color
}
};
_response.data[index].itemType = _this.eventsConfig[resIndex].itemType;
});
;
_this.handleResponse(action, _response,false,_this.eventsConfig[resIndex].itemType);
_data.push(..._response.data);
});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册