|
@@ -28,7 +28,7 @@
|
|
</div>
|
|
</div>
|
|
<div id="main" >
|
|
<div id="main" >
|
|
<el-steps v-for="(s ,index) in stages" :key="index" finish-status="process " simple style="margin-top: 10px">
|
|
<el-steps v-for="(s ,index) in stages" :key="index" finish-status="process " simple style="margin-top: 10px">
|
|
- <el-tag class="tag">{{ s[0].itemName }}</el-tag>
|
|
|
|
|
|
+ <el-tag class="tag" @click.native="toItemPage(s[0].itemName)">{{ s[0].itemName }}</el-tag>
|
|
<div class="sta" v-for="(ss,index) in s" :key="index" :style="bgColor(ss.state)">
|
|
<div class="sta" v-for="(ss,index) in s" :key="index" :style="bgColor(ss.state)">
|
|
{{ss.name}}
|
|
{{ss.name}}
|
|
</div>
|
|
</div>
|
|
@@ -55,6 +55,9 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ toItemPage(itemName){
|
|
|
|
+ this.$router.push(`/item/list?name=${itemName}`);
|
|
|
|
+ },
|
|
getStageList(state){
|
|
getStageList(state){
|
|
this.state = state;
|
|
this.state = state;
|
|
this.$api.itemStage.stageList({"state":state}).then(res => {
|
|
this.$api.itemStage.stageList({"state":state}).then(res => {
|
|
@@ -140,5 +143,6 @@
|
|
}
|
|
}
|
|
.tag{
|
|
.tag{
|
|
margin-right: 50px;
|
|
margin-right: 50px;
|
|
|
|
+ cursor:pointer;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|