|
|
|
@ -92,7 +92,11 @@ export default {
|
|
|
|
|
} else {
|
|
|
|
|
this.direction = 1;
|
|
|
|
|
this.chosenSeriesList = (res.data.seriesname).split(',');
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
this.form.Name = res.data.Name;
|
|
|
|
|
this.form.StartTime = res.data.StartTime;
|
|
|
|
|
this.form.EndTime = res.data.EndTime;
|
|
|
|
|
this.selTime = [res.data.StartTime, res.data.EndTime]
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -125,14 +129,27 @@ export default {
|
|
|
|
|
token: this.token,
|
|
|
|
|
DataJson: str
|
|
|
|
|
}
|
|
|
|
|
setSchemeDataSpecial(o).then(res => {
|
|
|
|
|
if(res.msg) {
|
|
|
|
|
setSchemeDataSpecial(o).then(r => {
|
|
|
|
|
if(r.msg) {
|
|
|
|
|
if(this.$route.query.sSpecialGuid) {
|
|
|
|
|
this.$message.success('修改成功');
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.success('添加成功');
|
|
|
|
|
}
|
|
|
|
|
this.$router.push('/specialAnalize')
|
|
|
|
|
getSchemeDataToBrandOrSeries({token: this.token, sGuids: r.msg}).then(res =>{
|
|
|
|
|
this.form.Classify = res.data.classify;
|
|
|
|
|
if(res.data.classify == 1) {
|
|
|
|
|
this.direction = 0;
|
|
|
|
|
this.chosenBrandList = (res.data.brand).split(',');
|
|
|
|
|
} else {
|
|
|
|
|
this.direction = 1;
|
|
|
|
|
this.chosenSeriesList = (res.data.seriesname).split(',');
|
|
|
|
|
}
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: '/specialAnalizeBoard',
|
|
|
|
|
query: {sSpecialGuid: r.msg,name: res.Name, Classify: res.data.classify}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|