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

update

上级 46b8a37f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
../../@MACRO/LANG_FUN.ftl ../../@MACRO/LANG_FUN.ftl
</#ibizinclude> </#ibizinclude>
<template> <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> </gantt-elastic>
</template> </template>
<#assign import_block> <#assign import_block>
...@@ -239,18 +239,6 @@ ganttElasticHeader, ...@@ -239,18 +239,6 @@ ganttElasticHeader,
return view; 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, ...@@ -301,6 +289,16 @@ ganttElasticHeader,
this.searchEvents(); this.searchEvents();
} }
/**
* 点击事件
*
* @returns
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public taskClick($event: any) {
console.log($event);
}
<#ibizinclude> <#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl ../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude> </#ibizinclude>
......
...@@ -102,8 +102,8 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi ...@@ -102,8 +102,8 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
stroke: _this.eventsConfig[resIndex].color stroke: _this.eventsConfig[resIndex].color
} }
}; };
_response.data[index].itemType = _this.eventsConfig[resIndex].itemType;
}); });
;
_this.handleResponse(action, _response,false,_this.eventsConfig[resIndex].itemType); _this.handleResponse(action, _response,false,_this.eventsConfig[resIndex].itemType);
_data.push(..._response.data); _data.push(..._response.data);
}); });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册