|
@@ -58,24 +58,21 @@ const getEventList = async () => {
|
|
|
|
|
|
/* 点击日历表格添加活动 */
|
|
|
const cellClickHandle = (date) => {
|
|
|
- console.log(date);
|
|
|
- console.log(state.selectResearcher)
|
|
|
+ // console.log(state.selectResearcher)
|
|
|
|
|
|
if (!state.selectResearcher) return Toast.fail('请先选择研究员');
|
|
|
|
|
|
- const endDate = new Date(date.getTime() + 1000 * 60 * 60);
|
|
|
- const selectResearchers = [
|
|
|
+ const endDate = new Date(date.getTime() + 1000 * 60 * 60).getTime();
|
|
|
+ const defaultResearcher = [
|
|
|
{
|
|
|
- researcherId: this.selectResearcher.ResearcherId,
|
|
|
- startDate: startDate,
|
|
|
- startTime: startDate,
|
|
|
- endDate: endDate,
|
|
|
+ researcherId: state.selectResearcher,
|
|
|
+ startTime: date.getTime(),
|
|
|
endTime: endDate,
|
|
|
}
|
|
|
- ]
|
|
|
+ ]
|
|
|
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages-roadshow/addActivity/byCell?defaultOpt=${JSON.stringify(selectResearchers)}`,
|
|
|
+ url: `/pages-roadshow/addActivity/byCell?defaultOpt=${JSON.stringify(defaultResearcher)}`,
|
|
|
});
|
|
|
};
|
|
|
|