|
@@ -18,6 +18,10 @@
|
|
|
<el-select placeholder="请选择活动类型" :disabled="!isShowSelect" clearable v-model="cactivityType" @change="activityTypeDetail" style="width: 360px">
|
|
|
<el-option v-for="item in cactivityTypeList" :label="item.ActivityTypeName" :key="item.ActivityTypeId" :value="item.ActivityTypeId"></el-option>
|
|
|
</el-select>
|
|
|
+ <template v-if="isResearch">
|
|
|
+ <el-radio style="margin-left: 30px" v-model="areaType" :label="1">国内</el-radio>
|
|
|
+ <el-radio v-model="areaType" :label="2">海外</el-radio>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button v-if="isShowSelect" type="primary" @click="templateBtn">活动内容输入模板</el-button>
|
|
@@ -355,15 +359,16 @@ export default {
|
|
|
isShowAddIcon: true, //主题标签的添加的iocn 是否显示
|
|
|
modifyImgVisible: false,
|
|
|
defaultImage: "",
|
|
|
- shareImg:'',
|
|
|
+ shareImg: "",
|
|
|
videoAndVoiceList: [],
|
|
|
+ areaType: 1,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
// 弘则 研选 是否是研选
|
|
|
- isResearch(){
|
|
|
- return this.$route.path.indexOf("Purchaser")!=-1?true:false
|
|
|
- }
|
|
|
+ isResearch() {
|
|
|
+ return this.$route.path.indexOf("Purchaser") != -1 ? true : false;
|
|
|
+ },
|
|
|
},
|
|
|
mixins: [richTextMixins],
|
|
|
watch: {
|
|
@@ -393,19 +398,19 @@ export default {
|
|
|
this.isCheckAllType(newval === 4 ? true : false);
|
|
|
},
|
|
|
},
|
|
|
- '$route.path':{
|
|
|
- handler(value){
|
|
|
- console.log(value,'value');
|
|
|
+ "$route.path": {
|
|
|
+ handler(value) {
|
|
|
+ console.log(value, "value");
|
|
|
},
|
|
|
- immediate:true
|
|
|
- }
|
|
|
+ immediate: true,
|
|
|
+ },
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() {
|
|
|
- if(!this.isResearch){
|
|
|
+ if (!this.isResearch) {
|
|
|
this.chartPermission();
|
|
|
- }else{
|
|
|
- this.optionFormregion="买方研选"
|
|
|
+ } else {
|
|
|
+ this.optionFormregion = "买方研选";
|
|
|
}
|
|
|
this.getActivityType();
|
|
|
this.customerTypelist();
|
|
@@ -507,8 +512,8 @@ export default {
|
|
|
raiInterface.activityDetail({ ActivityId: Number(this.$route.query.id) }).then((res) => {
|
|
|
if (res.Ret !== 200) return;
|
|
|
const { Data } = res;
|
|
|
- this.defaultImage = Data.BackgroundImg
|
|
|
- this.shareImg = Data.ShareImg
|
|
|
+ this.defaultImage = Data.BackgroundImg;
|
|
|
+ this.shareImg = Data.ShareImg;
|
|
|
this.activeIsState = Data.ActiveState;
|
|
|
this.cactivityType = Data.ActivityTypeId;
|
|
|
this.optionFormregion = Data.ChartPermissionName;
|
|
@@ -526,6 +531,7 @@ export default {
|
|
|
this.isMark = Data.IsShowSubjectName == 1 ? true : false;
|
|
|
this.valTemporary = Data.TemporaryLabel;
|
|
|
this.radioTemporary = this.valTemporary ? true : false;
|
|
|
+ this.areaType = Data.AreaType;
|
|
|
// 复选框模块
|
|
|
this.$nextTick(() => {
|
|
|
let RefPage = this.$refs.researchSelect;
|
|
@@ -539,7 +545,7 @@ export default {
|
|
|
RefPage.SiginupDeadline = Data.SiginupDeadline;
|
|
|
RefPage.PointsSet = Data.PointsSet;
|
|
|
RefPage.institutionName = Data.PointsSet.CompanyName;
|
|
|
- RefPage.isShowHz = !!Data.IsShowHz
|
|
|
+ RefPage.isShowHz = !!Data.IsShowHz;
|
|
|
});
|
|
|
this.addEditVideo = Data.VideoDetail
|
|
|
? [Data.VideoDetail].map((item) => {
|
|
@@ -667,10 +673,11 @@ export default {
|
|
|
IsBClass: RefPage.isBClass ? 1 : 0,
|
|
|
SiginupDeadline: RefPage.SiginupDeadline,
|
|
|
PointsSet,
|
|
|
- BackgroundImg:this.defaultImage,
|
|
|
- ShareImg:this.shareImg,
|
|
|
- IsResearch:this.optionFormregion.includes('研选')?true:false,
|
|
|
- IsShowHz:RefPage.isShowHz?1:0
|
|
|
+ BackgroundImg: this.defaultImage,
|
|
|
+ ShareImg: this.shareImg,
|
|
|
+ IsResearch: this.optionFormregion.includes("研选") ? true : false,
|
|
|
+ IsShowHz: RefPage.isShowHz ? 1 : 0,
|
|
|
+ AreaType: this.areaType,
|
|
|
});
|
|
|
|
|
|
if (res.Ret !== 200) return;
|
|
@@ -679,7 +686,7 @@ export default {
|
|
|
},
|
|
|
//获取行业
|
|
|
chartPermission() {
|
|
|
- raiInterface.chartPermissionList({IsHideResearch:!this.isResearch}).then((res) => {
|
|
|
+ raiInterface.chartPermissionList({ IsHideResearch: !this.isResearch }).then((res) => {
|
|
|
if (res.Ret === 200) {
|
|
|
this.chartPermissionList = res.Data.List;
|
|
|
}
|
|
@@ -687,7 +694,7 @@ export default {
|
|
|
},
|
|
|
//获取活动类型
|
|
|
getActivityType() {
|
|
|
- raiInterface.getActivityType({IsResearch:this.isResearch}).then((res) => {
|
|
|
+ raiInterface.getActivityType({ IsResearch: this.isResearch }).then((res) => {
|
|
|
if (res.Ret === 200) {
|
|
|
this.isShowAddIcon = res.Data.IsShowAddIcon;
|
|
|
this.cactivityTypeList = res.Data.List;
|