Commit a7d0f9ab by chenwq

分析sop,返回按钮

1 parent 6a5129ca
......@@ -12,6 +12,7 @@
<staff-list v-if="activeName == 'staffList'"></staff-list>
</el-tab-pane>
</el-tabs>
<el-button :size="size" class="sop-back-btn" type="primary" @click="handleBack">返回</el-button>
</div>
</template>
......@@ -23,7 +24,8 @@ export default {
name: 'gitfBag',
data() {
return {
activeName: 'compleList'
activeName: 'compleList',
size: 'small'
}
},
......@@ -36,12 +38,23 @@ export default {
mounted() { },
methods: {
handleTabClick() { }
handleTabClick() { },
handleBack() {
this.$router.push({
path: '/sop/index'
})
}
}
}
</script>
<style>
.sop-analysis {
position: relative;
}
.sop-analysis .el-tabs__header {
margin-bottom: 20px;
}
.sop-analysis .el-tabs__nav-wrap:after {
opacity: 0;
}
......@@ -58,4 +71,9 @@ export default {
.sop-analysis .el-tabs__item.is-active {
color: #5f5efb;
}
.sop-analysis .sop-back-btn {
position: absolute;
top: 0;
right: 0;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!