|
@@ -14,7 +14,7 @@
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- <el-button type="primary" @click="$router.push(routePath=='hongze'?'/addActivity':'/addPurchaserActivity')">添加活动</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="$router.push(!isResearch?'/addActivity':'/addPurchaserActivity')">添加活动</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
</el-card>
|
|
@@ -24,7 +24,7 @@
|
|
<div class="screen-box">
|
|
<div class="screen-box">
|
|
<div>
|
|
<div>
|
|
<el-select placeholder="行业" clearable v-model="industry" @change="conditionChange" style="margin-bottom: 20px"
|
|
<el-select placeholder="行业" clearable v-model="industry" @change="conditionChange" style="margin-bottom: 20px"
|
|
- v-if="routePath=='hongze'">
|
|
|
|
|
|
+ v-if="!isResearch">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in chartPermissionList"
|
|
v-for="item in chartPermissionList"
|
|
:label="item.PermissionName"
|
|
:label="item.PermissionName"
|
|
@@ -34,11 +34,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
<el-select placeholder="活动类型" clearable v-model="cactivityTypeVal" @change="conditionChange">
|
|
<el-select placeholder="活动类型" clearable v-model="cactivityTypeVal" @change="conditionChange">
|
|
<el-option
|
|
<el-option
|
|
- v-for="item in routePath=='hongze'?cactivityTypeList:
|
|
|
|
- [{ActivityTypeId:11,ActivityTypeName:'专家电话会'},
|
|
|
|
- {ActivityTypeId:21,ActivityTypeName:'专家线下沙龙'},
|
|
|
|
- {ActivityTypeId:31,ActivityTypeName:'公司调研电话会'},
|
|
|
|
- {ActivityTypeId:41,ActivityTypeName:'买方线下交流'}]"
|
|
|
|
|
|
+ v-for="item in cactivityTypeList"
|
|
:label="item.ActivityTypeName"
|
|
:label="item.ActivityTypeName"
|
|
:key="item.ActivityTypeId"
|
|
:key="item.ActivityTypeId"
|
|
:value="item.ActivityTypeId"
|
|
:value="item.ActivityTypeId"
|
|
@@ -177,10 +173,10 @@ export default {
|
|
sta() {
|
|
sta() {
|
|
return this.status >= 0 && typeof this.status == "number" ? this.status : 2;
|
|
return this.status >= 0 && typeof this.status == "number" ? this.status : 2;
|
|
},
|
|
},
|
|
- // 弘则 研选
|
|
|
|
- routePath(){
|
|
|
|
- return this.$route.path.indexOf("purchaser")!=-1?'purchaser':'hongze'
|
|
|
|
- },
|
|
|
|
|
|
+ // 弘则 研选 是否是研选
|
|
|
|
+ isResearch(){
|
|
|
|
+ return this.$route.path.indexOf("purchaser")!=-1?true:false
|
|
|
|
+ }
|
|
},
|
|
},
|
|
created() {},
|
|
created() {},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -196,7 +192,8 @@ export default {
|
|
this.activityLabel = initialize.activityLabel;
|
|
this.activityLabel = initialize.activityLabel;
|
|
this.publishDate = initialize.publishDate;
|
|
this.publishDate = initialize.publishDate;
|
|
}
|
|
}
|
|
- this.chartPermission();
|
|
|
|
|
|
+ // 研选下 没有行业的搜索框
|
|
|
|
+ !this.isResearch && this.chartPermission();
|
|
this.activityType();
|
|
this.activityType();
|
|
this.getsummaryManageList();
|
|
this.getsummaryManageList();
|
|
},
|
|
},
|
|
@@ -263,7 +260,7 @@ export default {
|
|
//编辑
|
|
//编辑
|
|
editBtn(id, show) {
|
|
editBtn(id, show) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- path: this.routePath=='hongze'?'/editActivity':'/editPurchaserActivity',
|
|
|
|
|
|
+ path: !this.isResearch?'/editActivity':'/editPurchaserActivity',
|
|
query: {
|
|
query: {
|
|
id: id,
|
|
id: id,
|
|
isShow: show,
|
|
isShow: show,
|
|
@@ -285,7 +282,7 @@ export default {
|
|
},
|
|
},
|
|
//活动类型
|
|
//活动类型
|
|
activityType() {
|
|
activityType() {
|
|
- raiInterface.getActivityType().then((res) => {
|
|
|
|
|
|
+ raiInterface.getActivityType({IsResearch:this.isResearch}).then((res) => {
|
|
if (res.Ret === 200) {
|
|
if (res.Ret === 200) {
|
|
this.cactivityTypeList = res.Data.List;
|
|
this.cactivityTypeList = res.Data.List;
|
|
}
|
|
}
|
|
@@ -298,7 +295,7 @@ export default {
|
|
CurrentIndex: this.page_no,
|
|
CurrentIndex: this.page_no,
|
|
PageSize: this.PageSize,
|
|
PageSize: this.PageSize,
|
|
PublishStatus: this.sta - 0,
|
|
PublishStatus: this.sta - 0,
|
|
- ChartPermissionId: this.routePath=="purchaser"?31:this.industry,
|
|
|
|
|
|
+ ChartPermissionId: this.industry,
|
|
StartDate: this.issueTime[0],
|
|
StartDate: this.issueTime[0],
|
|
EndDate: this.issueTime[1],
|
|
EndDate: this.issueTime[1],
|
|
KeyWord: this.titleValue,
|
|
KeyWord: this.titleValue,
|
|
@@ -306,6 +303,7 @@ export default {
|
|
ActiveState: this.activeStateId,
|
|
ActiveState: this.activeStateId,
|
|
ActivityLabel: this.activityLabel,
|
|
ActivityLabel: this.activityLabel,
|
|
PublishStartDate: this.publishDate,
|
|
PublishStartDate: this.publishDate,
|
|
|
|
+ IsResearch:this.isResearch
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res.Ret !== 200) return;
|
|
if (res.Ret !== 200) return;
|