优化名称

This commit is contained in:
zyn
2023-04-19 10:49:28 +08:00
parent 4332ebc633
commit a589bd401a
4 changed files with 24 additions and 4 deletions
@@ -52,9 +52,15 @@ export default {
watch: {}, watch: {},
mounted() {this.queryProcess()}, mounted() {this.queryProcess()},
methods: { methods: {
getPrcNameFilter(row){ getPrcNameFilter(row){
if(row && row.prcType === '25' && row.taskInfo === '技术标准起草'){
let _index = row.prcName.lastIndexOf('-')
return row.prcName.slice(0 , _index + 1) + '企标制修订'
}else {
return row.prcName return row.prcName
}, }
},
togo () { togo () {
this.$router.push('/processCenter') this.$router.push('/processCenter')
}, },
@@ -84,7 +84,7 @@
width="180" width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getPrcName(scope.row.prcType) }}</span> <span>{{ getPrcName(scope.row.prcType,scope.row.taskInfo) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -94,6 +94,9 @@
align="center" align="center"
min-width="250" min-width="250"
> >
<template slot-scope="scope">
<span>{{ getPrcNameFilter(scope.row) }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="creatUserName" prop="creatUserName"
@@ -84,7 +84,9 @@
width="180" width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getPrcName(scope.row.prcType) }}</span> <template slot-scope="scope">
<span>{{ getPrcName(scope.row.prcType,scope.row.taskInfo) }}</span>
</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -94,6 +96,9 @@
align="center" align="center"
min-width="250" min-width="250"
> >
<template slot-scope="scope">
<span>{{ getPrcNameFilter(scope.row) }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="creatUserName" prop="creatUserName"
@@ -83,6 +83,9 @@
align="center" align="center"
width="180" width="180"
> >
<template slot-scope="scope">
<span>{{ getPrcName(scope.row.prcType,scope.row.taskInfo) }}</span>
</template>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getPrcName(scope.row.prcType) }}</span> <span>{{ getPrcName(scope.row.prcType) }}</span>
</template> </template>
@@ -94,6 +97,9 @@
align="center" align="center"
min-width="250" min-width="250"
> >
<template slot-scope="scope">
<span>{{ getPrcNameFilter(scope.row) }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="creatUserName" prop="creatUserName"