diff --git a/src/views/SpecialAnalizeBoard/index.vue b/src/views/SpecialAnalizeBoard/index.vue index d99c137..743efe7 100644 --- a/src/views/SpecialAnalizeBoard/index.vue +++ b/src/views/SpecialAnalizeBoard/index.vue @@ -178,7 +178,7 @@ export default { }, methods: { goback() { - this.$router.go(-1); + this.$router.push('/specialAnalize') }, getData() { getCountAndaffections(this.form).then(res => { diff --git a/src/views/SpecialAnalizeChoose/index.vue b/src/views/SpecialAnalizeChoose/index.vue index ae1c743..3b1917c 100644 --- a/src/views/SpecialAnalizeChoose/index.vue +++ b/src/views/SpecialAnalizeChoose/index.vue @@ -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} + }) + }) } }) },