|
|
|
@ -127,9 +127,18 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" prop="userId" class-name="table-operation" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span class="look-info" @click="goInfo(1, scope.row)" style="color: #192A92;cursor: pointer;">查看</span>
|
|
|
|
|
<span class="look-info" @click="goInfo(2, scope.row)" style="color: #192A92;cursor: pointer;"
|
|
|
|
|
v-if="$route.query.pageType == 'info'">审核</span>
|
|
|
|
|
<div style="display: flex;align-items: center;justify-content: center;">
|
|
|
|
|
<div style="display: flex;align-items: center;cursor: pointer;" @click="goInfo(1,scope.row)">
|
|
|
|
|
<img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;">
|
|
|
|
|
<span class="look-info"
|
|
|
|
|
style="color: #1485EF;margin-right: 15px;">查看</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: flex;align-items: center;cursor: pointer;" @click="goInfo(1,scope.row)" v-if="$route.query.pageType == 'info' || $route.meta.pageType == 'info'">
|
|
|
|
|
<img src="@/assets/images/icon-shenhe@2x.png" alt="" style="width: 20px;margin-right: 5px;">
|
|
|
|
|
<span class="look-info"
|
|
|
|
|
style="color: #1485EF;margin-right: 15px;">审核</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -157,7 +166,7 @@
|
|
|
|
|
@pagination="getPagination" :current-page.sync="pagination.current"></my-pagination>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-right" v-if="$route.query.pageType == 'look'">
|
|
|
|
|
<div class="info-right" v-if="$route.query.pageType == 'look' || $route.meta.pageType == 'look'">
|
|
|
|
|
<div class="info-title">任务流程节点</div>
|
|
|
|
|
<div class="timeline">
|
|
|
|
|
<div class="timeline-items" v-for="(item,index) in timeLineData">
|
|
|
|
@ -295,8 +304,8 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
titleInfo() {
|
|
|
|
|
console.log(this.$route.query);
|
|
|
|
|
getassetTaskid(this.$route.query.id).then(res => {
|
|
|
|
|
// console.log(this.$route.query);
|
|
|
|
|
getassetTaskid(this.$route.query.id || this.$route.meta.id).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.titleInfoObj = res.data
|
|
|
|
|
}
|
|
|
|
@ -388,6 +397,18 @@ export default {
|
|
|
|
|
this.tabHeader = elementHeight - headerHeight - paginationtHeight - tabHeight - 120;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
beforeRouteEnter(to,from,next){
|
|
|
|
|
if(to.query.pageType == 'info') {
|
|
|
|
|
to.meta.title = '任务审核'
|
|
|
|
|
to.meta.pageType = to.query.pageType
|
|
|
|
|
to.meta.id = to.query.id
|
|
|
|
|
} else if(to.query.pageType == 'look') {
|
|
|
|
|
to.meta.title = '任务详情'
|
|
|
|
|
to.meta.pageType = to.query.pageType
|
|
|
|
|
to.meta.id = to.query.id
|
|
|
|
|
}
|
|
|
|
|
next();
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|