qa-prevention-xgf-app/safetyEnvirSubPackages/pages/initiate/steps.vue

40 lines
944 B
Vue

<template>
<view class="content">
<view class="card">
<u-steps :current="current" activeIcon="checkmark" inactiveIcon="arrow-right" direction="column">
<u-steps-item v-for="(item,index) in steps" :key="index" :title="item.title" :desc="item.desc"></u-steps-item>
</u-steps>
</view>
</view>
</template>
<script>
import SeeksRelationGraph from 'relation-graph'
import { getHotWorkGoEdit, setSafetyenvironmentalFlow } from "../../api";
import pagination from '@/components/pagination/index.vue' // 通过 el-pagination二次打包
export default {
data() {
return {
current:0,
steps: [],
ID:''
}
},
onLoad(event) {
this.ID = event.ID
this.getDate()
},
methods: {
async getDate(){
let resData = await setSafetyenvironmentalFlow({ ID:this.ID });
this.current = resData.active
this.steps = resData.varList
}
}
}
</script>
<style scoped>
</style>