|
@@ -155,6 +155,11 @@
|
|
|
</template>
|
|
|
<!-- 提交/查看参会名单 按钮由后端控制 -->
|
|
|
<template v-if="default_tab===2">
|
|
|
+ <span
|
|
|
+ class="editsty"
|
|
|
+ v-if="row.EditButton"
|
|
|
+ @click="editActivityHandle(row)"
|
|
|
+ >修改</span>
|
|
|
<span
|
|
|
class="deletesty"
|
|
|
v-if="row.SubmitButton"
|
|
@@ -230,6 +235,7 @@
|
|
|
:edit_rs_id="edit_rs_id"
|
|
|
@ensureCallback="refreshData"
|
|
|
ref="addActivityCellDia"
|
|
|
+ :isEditType='isRaiEditType'
|
|
|
/>
|
|
|
|
|
|
|
|
@@ -409,6 +415,7 @@ export default {
|
|
|
},
|
|
|
isReasonDiaShow:false,
|
|
|
currentResearcherId:0,
|
|
|
+ isRaiEditType:''
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -573,7 +580,9 @@ export default {
|
|
|
|
|
|
/* 编辑活动 或事项 */
|
|
|
editActivityHandle(row) {
|
|
|
-
|
|
|
+ this.isRaiEditType ='RaiEdit'
|
|
|
+ this.raiEditMatterHandle(row)
|
|
|
+ return
|
|
|
const { RsCalendarId,RsCalendarResearcherId,RsMattersId,MatterContent,StartDate,StartTime,EndTime,EndDate } = row;
|
|
|
//编辑活动
|
|
|
if(!RsMattersId) {
|
|
@@ -676,39 +685,42 @@ export default {
|
|
|
/* 日历入口 编辑活动时 回显内容 */
|
|
|
editCallback({ ActivityType,RoadshowType,RoadshowPlatform,City,Province,CompanyId,CompanyName,ResearcherId,RsCalendarResearcherId,Theme,CooperationName,ActivityCategory,StartDate,EndDate,RsCalendarId,RsMattersId,StartTime,EndTime,MatterContent,EnglishCompany}) {
|
|
|
if(RsCalendarId) { // 编辑活动
|
|
|
- this.sonData = {
|
|
|
- activityType: ActivityType, // 活动类型
|
|
|
- roadshowType: RoadshowType, // 路演形式
|
|
|
- roadshowPlatform: RoadshowPlatform, // 路演平台
|
|
|
- roadshowCity: Province ? [Province,City] : [], // 路演城市
|
|
|
- companyId: CompanyId, // 客户id
|
|
|
- companyName: CompanyName, // 客户名称
|
|
|
- englishCompany:EnglishCompany,// 是否是海外客户
|
|
|
- meetingType: RoadshowType, // 会议形式
|
|
|
- meetingPlatform: RoadshowPlatform, // 会议平台
|
|
|
- meetingCity: Province ? [Province,City] : [], // 会议城市
|
|
|
- meetingTheme: Theme, // 会议主题
|
|
|
- partnersName: CooperationName, // 合作方名称
|
|
|
- activityClass: ActivityCategory, // 活动类别
|
|
|
- selectResearchers: [
|
|
|
- // 选择的研究员
|
|
|
- {
|
|
|
- researcherId: Number(ResearcherId),
|
|
|
- startDate: new Date(StartDate),
|
|
|
- startTime: new Date(`${StartDate} ${StartTime}`),
|
|
|
- endDate: new Date(EndDate),
|
|
|
- endTime: new Date(`${EndDate} ${EndTime}`),
|
|
|
- },
|
|
|
- ],
|
|
|
- };
|
|
|
- this.edit_id = RsCalendarId;
|
|
|
- this.edit_rs_id = RsCalendarResearcherId;
|
|
|
- this.isActivityCellDiaShow = true;
|
|
|
+ this.raiEditMatterHandle({ActivityType,RoadshowType,RoadshowPlatform,City,Province,CompanyId,CompanyName,ResearcherId,RsCalendarResearcherId,Theme,CooperationName,ActivityCategory,StartDate,EndDate,RsCalendarId,RsMattersId,StartTime,EndTime,MatterContent,EnglishCompany})
|
|
|
}else { //编辑事项
|
|
|
this.editMatterHandle({ RsMattersId,StartDate,StartTime,EndDate,EndTime,MatterContent });
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ raiEditMatterHandle({ ActivityType,RoadshowType,RoadshowPlatform,City,Province,CompanyId,CompanyName,ResearcherId,RsCalendarResearcherId,Theme,CooperationName,ActivityCategory,StartDate,EndDate,RsCalendarId,RsMattersId,StartTime,EndTime,MatterContent,EnglishCompany}){
|
|
|
+ this.sonData = {
|
|
|
+ activityType: ActivityType, // 活动类型
|
|
|
+ roadshowType: RoadshowType, // 路演形式
|
|
|
+ roadshowPlatform: RoadshowPlatform, // 路演平台
|
|
|
+ roadshowCity: Province ? [Province,City] : [], // 路演城市
|
|
|
+ companyId: CompanyId, // 客户id
|
|
|
+ companyName: CompanyName, // 客户名称
|
|
|
+ englishCompany:EnglishCompany,// 是否是海外客户
|
|
|
+ meetingType: RoadshowType, // 会议形式
|
|
|
+ meetingPlatform: RoadshowPlatform, // 会议平台
|
|
|
+ meetingCity: Province ? [Province,City] : [], // 会议城市
|
|
|
+ meetingTheme: Theme, // 会议主题
|
|
|
+ partnersName: CooperationName, // 合作方名称
|
|
|
+ activityClass: ActivityCategory, // 活动类别
|
|
|
+ selectResearchers: [
|
|
|
+ // 选择的研究员
|
|
|
+ {
|
|
|
+ researcherId: Number(ResearcherId),
|
|
|
+ startDate: new Date(StartDate),
|
|
|
+ startTime: new Date(`${StartDate} ${StartTime}`),
|
|
|
+ endDate: new Date(EndDate),
|
|
|
+ endTime: new Date(`${EndDate} ${EndTime}`),
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ this.edit_id = RsCalendarId;
|
|
|
+ this.edit_rs_id = RsCalendarResearcherId;
|
|
|
+ this.isActivityCellDiaShow = true;
|
|
|
+ },
|
|
|
/* 编辑事项 */
|
|
|
editMatterHandle({ RsMattersId,StartDate,StartTime,EndDate,EndTime,MatterContent }) {
|
|
|
this.edit_matter_id = RsMattersId;
|