This commit is contained in:
熊成强 2020-10-27 14:57:51 +08:00
parent 9d2cd6b956
commit 926fa4e1df
3 changed files with 14 additions and 4 deletions

View File

@ -29,6 +29,10 @@ export default {
mounted () {}, mounted () {},
methods: { methods: {
handleBack () { handleBack () {
const name = this.$route.query.name
if (name) {
return this.$router.replace({name})
}
this.$router.go(-1) this.$router.go(-1)
} }
}, },

View File

@ -164,7 +164,7 @@ export default {
this.handleGetData(Object.assign({}, this.form, this.params)) this.handleGetData(Object.assign({}, this.form, this.params))
}, },
handlePush (id) { handlePush (id) {
this.$router.push({name: 'assessment-stepList', query: {id}}) this.$router.push({name: 'assessment-stepList', query: {id: 10, name: 'workbench-home'}})
}, },
async handleGetData (parmas = this.params) { async handleGetData (parmas = this.params) {
try { try {

View File

@ -22,8 +22,8 @@
<div class="step-content-center-item commonFont" v-for="(i,index) in titleList" :key="i.id"> <div class="step-content-center-item commonFont" v-for="(i,index) in titleList" :key="i.id">
<span class="hover" style="cursor: pointer;">{{i.name}}({{i.number}})</span> <span class="hover" style="cursor: pointer;">{{i.name}}({{i.number}})</span>
<div v-if="index<titleList.length-1" class="step-content-center-item-img"> <div v-if="index<titleList.length-1" class="step-content-center-item-img">
<img v-if="titleList.length>2 && index===0" src="./img/shu.jpg" alt=""> <div v-if="titleList.length>2 && index===0" class='shuxian'></div>
<img v-else src="./img/right.jpg" alt=""> <i v-else class="el-icon-arrow-right"></i>
</div> </div>
</div> </div>
</div> </div>
@ -163,8 +163,13 @@ export default {
align-items: center; align-items: center;
} }
} }
.shuxian{
width: 1px;
height: 16px;
background: #52575b;
}
&-center{ &-center{
margin: 30px 0; margin: 30px 0 10px 0;
padding: 0 40px; padding: 0 40px;
min-height: 40px; min-height: 40px;
background: #f6f6f6; background: #f6f6f6;
@ -180,6 +185,7 @@ export default {
} }
.center(); .center();
&-img{ &-img{
.center();
height: 20px; height: 20px;
margin: 0 56px; margin: 0 56px;
img{ img{