Commit a7d0f9ab by chenwq

分析sop,返回按钮

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