Commit ab7b7a12 authored by zhang's avatar zhang

fix -修复评审管理逻辑bug

parent f1a416ed
......@@ -165,8 +165,8 @@
sortable
min-width="200"
align="left"
prop="decision"
:formatter="formatDecision"
prop="taskStatus"
:formatter="formatTaskStatus"
></el-table-column>
<el-table-column
label="操作"
......@@ -191,8 +191,8 @@
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.page"
:limit.sync="queryParams.size"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
>
</pagination>
......@@ -449,6 +449,15 @@ export default {
} else if (row.decision === 'REJECT') {
return '不通过'
}
},
formatTaskStatus(row, column) {
if (row.taskStatus === 'PENDING') {
return '评审中'
} else if (row.taskStatus === 'FINISH') {
return '已完成'
}else if(row.taskStatus === 'CLOSE'){
return '已取消'
}
}
},
/* 重置*/
......
......@@ -40,7 +40,11 @@
<el-col :span="3"><p></p></el-col>
<el-col :span="18">
<el-form-item label="标准要求" prop="biaozhunyaoqiu" v-model="formModel.biaozhunyaoqiu">
<el-button type="primary" plain @click="handleReSelectRequirements"
<el-button
:disabled="!formModel.jianyanleixing"
type="primary"
plain
@click="handleReSelectRequirements"
>选择标准要求</el-button
><span>
......@@ -97,7 +101,11 @@
<el-col :span="3"><p></p></el-col>
<el-col :span="18">
<el-form-item label="审查要点" prop="shenchayaodian" v-model="formModel.shenchayaodian">
<el-button type="primary" plain @click="handleReSelectKeypoints"
<el-button
:disabled="!formModel.jianyanleixing || !formModel.biaozhunyaoqiu"
type="primary"
plain
@click="handleReSelectKeypoints"
>选择审查要点</el-button
><span>{{ selectedKeyPoints.text }}</span>
<div>
......@@ -145,7 +153,11 @@
<el-col :span="3"><p></p></el-col>
<el-col :span="18">
<el-form-item label="审查细则" prop="shenchaxize" v-model="formModel.shenchaxize">
<el-button type="primary" plain @click="handleReSelectDetails"
<el-button
:disabled="!formModel.shenchayaodian || !formModel.biaozhunyaoqiu || !formModel.jianyanleixing"
type="primary"
plain
@click="handleReSelectDetails"
>选择审查细则</el-button
><span>{{ selectedDetails.text }}</span>
<!-- <el-input
......@@ -436,6 +448,13 @@ export default {
const selectedItem = this.dict.type.sys_scene_type.find(
item => item.value === selected
)
this.formModel.biaozhunyaoqiu = ''
this.formModel.shenchayaodian = ''
this.formModel.shenchaxize = ''
this.selectedRequirement.chapter = ''
this.selectedRequirement.text = ''
this.selectedKeyPoints.text = ''
this.selectedDetails.text = ''
if (selectedItem) {
// 将 item.type 赋值给 this.newResData.type
this.newResData.type = selectedItem.value
......@@ -530,7 +549,7 @@ export default {
},
// 按钮-选择审查细则
handleReSelectDetails() {
testDetails({ keypointId: this.newResDataAdd.keypointId })
testDetails({ keypointId: this.selectedKeyPointsSave.id })
.then(response => {
this.receivedDetails = response
......@@ -612,6 +631,11 @@ export default {
selectedRequirement(newVal) {
// 当 selectedRequirement 改变时,将值赋给 selectedRequirementSave
this.selectedRequirementSave = newVal
this.formModel.biaozhunyaoqiu = newVal
this.formModel.shenchayaodian = ''
this.selectedKeyPoints.text = ''
this.formModel.shenchaxize = ''
this.selectedDetails.text = ''
console.log(
'selectedRequirementSave 的新值:',
this.selectedRequirementSave
......@@ -623,12 +647,16 @@ export default {
selectedKeyPoints(newVal) {
// 当 selectedKeyPoints 改变时,将值赋给 selectedKeyPointsSave
this.selectedKeyPointsSave = newVal
this.formModel.shenchayaodian = newVal
this.formModel.shenchaxize = ''
this.selectedDetails.text = ''
console.log('selectedKeyPointsSave 的新值:', this.selectedKeyPointsSave)
this.newResDataAdd.keypointId = this.selectedKeyPointsSave.id
},
selectedDetails(newVal) {
// 当 selectedDetails 改变时,将值赋给 selectedDetailsSave
this.selectedDetailsSave = newVal
this.formModel.shenchaxize = newVal
console.log('selectedDetailsSave 的新值:', this.selectedDetailsSave)
this.newResDataAdd.detailsId = this.selectedDetailsSave.id
}
......
......@@ -41,7 +41,11 @@
<el-col :span="3"><p></p></el-col>
<el-col :span="18">
<el-form-item label="标准要求" prop="biaozhunyaoqiu" v-model="formModel.biaozhunyaoqiu">
<el-button type="primary" plain @click="handleReSelectRequirements"
<el-button
:disabled="!formModel.jianyanleixing"
type="primary"
plain
@click="handleReSelectRequirements"
>选择标准要求</el-button
><span>
{{ selectedRequirement.chapter }}
......@@ -97,7 +101,11 @@
<el-col :span="3"><p></p></el-col>
<el-col :span="18">
<el-form-item label="审查要点" prop="shenchayaodian" v-model="formModel.shenchayaodian">
<el-button type="primary" plain @click="handleReSelectKeypoints"
<el-button
:disabled="!formModel.jianyanleixing || !formModel.biaozhunyaoqiu"
type="primary"
plain
@click="handleReSelectKeypoints"
>选择审查要点</el-button
><span>{{ selectedKeyPoints.text }}</span>
<div>
......@@ -381,6 +389,11 @@ export default {
const selectedItem = this.dict.type.sys_scene_type.find(
item => item.value === selected
)
this.formModel.biaozhunyaoqiu = ''
this.formModel.shenchayaodian = ''
this.selectedRequirement.chapter = ''
this.selectedRequirement.text = ''
this.selectedKeyPoints.text = ''
if (selectedItem) {
// 将 item.type 赋值给 this.newResData.type
this.newResData.type = selectedItem.value
......@@ -570,6 +583,9 @@ export default {
selectedRequirement(newVal) {
// 当 selectedRequirement 改变时,将值赋给 selectedRequirementSave
this.selectedRequirementSave = newVal
this.formModel.biaozhunyaoqiu = newVal
this.formModel.shenchayaodian = ''
this.selectedKeyPoints.text = ''
console.log(
'selectedRequirementSave 的新值:',
this.selectedRequirementSave
......@@ -581,6 +597,7 @@ export default {
selectedKeyPoints(newVal) {
// 当 selectedKeyPoints 改变时,将值赋给 selectedKeyPointsSave
this.selectedKeyPointsSave = newVal
this.formModel.shenchayaodian = newVal
console.log('selectedKeyPointsSave 的新值:', this.selectedKeyPointsSave)
this.newResDataAdd.keypointId = this.selectedKeyPointsSave.id
this.newResDataAdd.keypoint = this.selectedKeyPoints.text
......
......@@ -48,7 +48,11 @@
prop="biaozhunyaoqiu"
v-model="formModel.biaozhunyaoqiu"
>
<el-button type="primary" plain @click="handleReSelectRequirements"
<el-button
:disabled="!formModel.jianyanleixing"
type="primary"
plain
@click="handleReSelectRequirements"
>选择标准要求</el-button
><span>
{{ selectedRequirement.chapter }}
......@@ -108,7 +112,11 @@
prop="shenchayaodian"
v-model="formModel.shenchayaodian"
>
<el-button type="primary" plain @click="handleReSelectKeypoints"
<el-button
:disabled="!formModel.biaozhunyaoqiu || !formModel.jianyanleixing"
type="primary"
plain
@click="handleReSelectKeypoints"
>选择审查要点</el-button
><span>{{ selectedKeyPoints.text }}</span>
<div>
......@@ -161,7 +169,11 @@
prop="shenchaxize"
v-model="formModel.shenchaxize"
>
<el-button type="primary" plain @click="handleReSelectDetails"
<el-button
:disabled="!formModel.shenchayaodian || !formModel.biaozhunyaoqiu || !formModel.jianyanleixing"
type="primary"
plain
@click="handleReSelectDetails"
>选择审查细则</el-button
><span>{{ selectedDetails.text }}</span>
<!-- <el-input
......@@ -222,7 +234,11 @@
prop="shenchachangjing"
v-model="formModel.shenchachangjing"
>
<el-button type="primary" plain @click="handleReSelectScene"
<el-button
:disabled="!formModel.shenchaxize ||!formModel.shenchayaodian || !formModel.biaozhunyaoqiu || !formModel.jianyanleixing"
type="primary"
plain
@click="handleReSelectScene"
>选择审查场景</el-button
><span>{{ selectedScene.text }}</span>
<!-- <el-input
......@@ -244,12 +260,7 @@
>
<!-- 表格 -->
<el-table :data="this.receivedScene.data" style="width: 100%">
<el-table-column prop="id" label="场景编号" width="100">
</el-table-column>
<el-table-column prop="text" label="场景描述">
</el-table-column>
<el-table-column label="选择">
<el-table-column label="选择" width="100">
<template slot-scope="scope">
<el-radio-group v-model="selectedScene">
<el-radio
......@@ -259,6 +270,11 @@
</el-radio-group>
</template>
</el-table-column>
<el-table-column prop="id" label="场景编号">
</el-table-column>
<el-table-column prop="text" label="场景描述">
</el-table-column>
</el-table>
<!-- 弹窗底部 -->
......@@ -515,6 +531,15 @@ export default {
const selectedItem = this.dict.type.sys_scene_type.find(
item => item.value === selected
)
this.formModel.biaozhunyaoqiu = ''
this.formModel.shenchayaodian = ''
this.formModel.shenchaxize = ''
this.formModel.shenchachangjing = ''
this.selectedRequirement.chapter = ''
this.selectedRequirement.text = ''
this.selectedKeyPoints.text = ''
this.selectedDetails.text = ''
this.selectedScene.text = ''
if (selectedItem) {
// 将 item.type 赋值给 this.newResData.type
this.newResData.type = selectedItem.value
......@@ -566,7 +591,6 @@ export default {
testType(this.newResData)
.then(response => {
this.receivedRequirements = response
this.newResDataAdd.inspectStandardId = this.pageIndexSec.id
this.newResDataAdd.inspectStandardNo = this.pageIndexSec.standardNo
this.newResDataAdd.operationSort = this.pageIndexSec.operationSort
......@@ -609,7 +633,7 @@ export default {
},
// 按钮-选择审查细则
handleReSelectDetails() {
testDetails({ keypointId: this.newResDataAdd.keypointId })
testDetails({ keypointId: this.selectedKeyPointsSave.id })
.then(response => {
this.receivedDetails = response
......@@ -628,7 +652,7 @@ export default {
},
// 按钮-选择审查场景
handleReSelectScene() {
testScene({ detailsId: this.newResDataAdd.detailsId })
testScene({ detailsId: this.selectedDetailsSave.id })
.then(response => {
this.receivedScene = response
this.newResDataAdd.newText = this.receivedScene.scene
......@@ -639,6 +663,18 @@ export default {
console.log('testReSelectScene方法出错', error)
})
},
// handleCloseDialog(item,openSwitch){
// console.log(item)
// if(item.id!== ''){
// console.log(openSwitch)
// openSwitch = false
// }else{
// this.$message({
// message: '请选择一项',
// type: 'warning'
// });
// }
// },
// 按钮-确认发起
handleConfirm() {
console.log('this.value = ', this.formModel)
......@@ -706,6 +742,13 @@ export default {
selectedRequirement(newVal) {
// 当 selectedRequirement 改变时,将值赋给 selectedRequirementSave
this.selectedRequirementSave = newVal
this.formModel.biaozhunyaoqiu = newVal
this.formModel.shenchayaodian = ''
this.selectedKeyPoints.text = ''
this.formModel.shenchaxize = ''
this.selectedDetails.text = ''
this.formModel.shenchachangjing = ''
this.selectedScene.text = ''
console.log(
'selectedRequirementSave 的新值:',
this.selectedRequirementSave
......@@ -715,22 +758,33 @@ export default {
},
//
selectedKeyPoints(newVal) {
console.log(newVal)
// 当 selectedKeyPoints 改变时,将值赋给 selectedKeyPointsSave
this.selectedKeyPointsSave = newVal
this.formModel.shenchayaodian = newVal
this.formModel.shenchaxize = ''
this.selectedDetails.text = ''
this.formModel.shenchachangjing = ''
this.selectedScene.text = ''
console.log('selectedKeyPointsSave 的新值:', this.selectedKeyPointsSave)
this.newResDataAdd.keypointId = this.selectedKeyPointsSave.id
},
selectedDetails(newVal) {
// 当 selectedDetails 改变时,将值赋给 selectedDetailsSave
this.selectedDetailsSave = newVal
this.formModel.shenchaxize = newVal
this.formModel.shenchachangjing = ''
this.selectedScene.text = ''
console.log('selectedDetailsSave 的新值:', this.selectedDetailsSave)
this.newResDataAdd.detailsId = this.selectedDetailsSave.id
},
selectedScene(newVal) {
this.selectedSceneSave = newVal
this.formModel.shenchachangjing = newVal
console.log('selectedSceneSave的新值', this.selectedSceneSave)
// this.newResDataAdd.oldText = this.selectedSceneSave.text
}
},
}
}
</script>
......
......@@ -420,10 +420,6 @@ export default {
this.selected = this.standardList[0].id
this.pageIndexSec.inspectStandardId = this.standardList[0].id
this.pageIndexSec.standardNo = this.standardList[0].standardNo
// console.log(response, '1111')
})
.catch(error => {
......
......@@ -40,7 +40,11 @@
<el-col :span="3"><p></p></el-col>
<el-col :span="18">
<el-form-item label="标准要求" prop="biaozhunyaoqiu" v-model="formModel.biaozhunyaoqiu">
<el-button type="primary" plain @click="handleReSelectRequirements"
<el-button
:disabled="!formModel.jianyanleixing"
type="primary"
plain
@click="handleReSelectRequirements"
>选择标准要求</el-button
><span>
{{ selectedRequirement.chapter }}
......@@ -96,7 +100,11 @@
<el-col :span="3"><p></p></el-col>
<el-col :span="18">
<el-form-item label="审查要点" prop="shenchayaodian">
<el-button type="primary" plain @click="handleReSelectKeypoints"
<el-button
:disabled="!formModel.jianyanleixing || !formModel.biaozhunyaoqiu"
type="primary"
plain
@click="handleReSelectKeypoints"
>选择审查要点</el-button
><span>{{ selectedKeyPoints.text }}</span>
<div>
......@@ -375,6 +383,7 @@
mounted() {
console.log('selected vif3 this.pageIndexSec = ', this.pageIndexSec)
this.newResDataAdd.chapter = this.pageIndexSec
testReviewer()
.then(res => {
this.receivedReviewer = res.data
......@@ -392,6 +401,12 @@
const selectedItem = this.dict.type.sys_scene_type.find(
item => item.value === selected
)
this.formModel.biaozhunyaoqiu = ''
this.formModel.shenchayaodian = ''
this.selectedRequirement.chapter = ''
this.selectedRequirement.text = ''
this.selectedKeyPoints.text = ''
this.selectedDetails.text = ''
if (selectedItem) {
// 将 item.type 赋值给 this.newResData.type
this.newResData.type = selectedItem.value
......@@ -443,7 +458,6 @@
testType(this.newResData)
.then(response => {
this.receivedRequirements = response
this.newResDataAdd.inspectStandardId = this.pageIndexSec.id
this.newResDataAdd.inspectStandardNo = this.pageIndexSec.standardNo
this.newResDataAdd.operationSort = this.pageIndexSec.operationSort
......@@ -564,6 +578,9 @@
selectedRequirement(newVal) {
// 当 selectedRequirement 改变时,将值赋给 selectedRequirementSave
this.selectedRequirementSave = newVal
this.formModel.biaozhunyaoqiu = newVal
this.formModel.shenchayaodian = ''
this.selectedKeyPoints.text = ''
console.log(
'selectedRequirementSave 的新值:',
this.selectedRequirementSave
......@@ -575,6 +592,7 @@
selectedKeyPoints(newVal) {
// 当 selectedKeyPoints 改变时,将值赋给 selectedKeyPointsSave
this.selectedKeyPointsSave = newVal
this.formModel.shenchayaodian = newVal
console.log('selectedKeyPointsSave 的新值:', this.selectedKeyPointsSave)
this.newResDataAdd.keypointId = this.selectedKeyPointsSave.id
},
......
......@@ -40,7 +40,11 @@
<el-col :span="3"><p></p></el-col>
<el-col :span="18">
<el-form-item label="标准要求" prop="biaozhunyaoqiu" v-model="formModel.biaozhunyaoqiu">
<el-button type="primary" plain @click="handleReSelectRequirements"
<el-button
:disabled="!formModel.jianyanleixing"
type="primary"
plain
@click="handleReSelectRequirements"
>选择标准要求</el-button
><span>
{{ selectedRequirement.chapter }}
......@@ -348,6 +352,7 @@ export default {
this.newResData.standardNo = this.pageIndexSec.standardNo
this.newResData.standardId = this.pageIndexSec.id
this.newResData.name = this.pageIndexSec.name
//this.formModel.jianyanleixing = this.dict.type.sys_scene_type[0].value
},
methods: {
// 表单提交验证
......@@ -362,6 +367,9 @@ export default {
const selectedItem = this.dict.type.sys_scene_type.find(
item => item.value === selected
)
this.formModel.biaozhunyaoqiu = ' '
this.selectedRequirement.chapter = ''
this.selectedRequirement.text = ''
if (selectedItem) {
// 将 item.type 赋值给 this.newResData.type
this.newResData.type = selectedItem.value
......
......@@ -40,7 +40,11 @@
<el-col :span="3"><p></p></el-col>
<el-col :span="18">
<el-form-item label="标准要求" prop="biaozhunyaoqiu" v-model="formModel.biaozhunyaoqiu">
<el-button type="primary" plain @click="handleReSelectRequirements"
<el-button
:disabled="!formModel.jianyanleixing"
type="primary"
plain
@click="handleReSelectRequirements"
>选择标准要求</el-button
><span>
{{ selectedRequirement.chapter }}
......@@ -96,7 +100,11 @@
<el-col :span="3"><p></p></el-col>
<el-col :span="18">
<el-form-item label="审查要点" prop="shenchayaodian" v-model="formModel.shenchayaodian">
<el-button type="primary" plain @click="handleReSelectKeypoints"
<el-button
:disabled="!formModel.jianyanleixing || !formModel.biaozhunyaoqiu "
type="primary"
plain
@click="handleReSelectKeypoints"
>选择审查要点</el-button
><span>{{ selectedKeyPoints.text }}</span>
<div>
......@@ -144,7 +152,11 @@
<el-col :span="3"><p></p></el-col>
<el-col :span="18">
<el-form-item label="审查细则" prop="shenchaxize" v-model="formModel.shenchaxize">
<el-button type="primary" plain @click="handleReSelectDetails"
<el-button
:disabled="!formModel.shenchayaodian || !formModel.biaozhunyaoqiu || !formModel.jianyanleixing"
type="primary"
plain
@click="handleReSelectDetails"
>选择审查细则</el-button
><span>{{ selectedDetails.text }}</span>
<!-- <el-input
......@@ -446,6 +458,12 @@ export default {
const selectedItem = this.dict.type.sys_scene_type.find(
item => item.value === selected
)
this.formModel.biaozhunyaoqiu = ''
this.formModel.shenchayaodian = ''
this.selectedRequirement.chapter = ''
this.selectedRequirement.text = ''
this.selectedKeyPoints.text = ''
this.selectedDetails.text = ''
if (selectedItem) {
// 将 item.type 赋值给 this.newResData.type
this.newResData.type = selectedItem.value
......@@ -540,7 +558,7 @@ export default {
},
// 按钮-选择审查细则
handleReSelectDetails() {
testDetails({ keypointId: this.newResDataAdd.keypointId })
testDetails({ keypointId: this.selectedKeyPointsSave.id })
.then(response => {
this.receivedDetails = response
......@@ -615,6 +633,12 @@ export default {
selectedRequirement(newVal) {
// 当 selectedRequirement 改变时,将值赋给 selectedRequirementSave
this.selectedRequirementSave = newVal
this.formModel.biaozhunyaoqiu = newVal
this.selectedRequirementSave = newVal
this.formModel.shenchayaodian = ''
this.selectedKeyPoints.text = ''
this.formModel.shenchaxize = ''
this.selectedDetails.text = ''
console.log(
'selectedRequirementSave 的新值:',
this.selectedRequirementSave
......@@ -626,12 +650,16 @@ export default {
selectedKeyPoints(newVal) {
// 当 selectedKeyPoints 改变时,将值赋给 selectedKeyPointsSave
this.selectedKeyPointsSave = newVal
this.formModel.shenchayaodian = newVal
this.formModel.shenchaxize = ''
this.selectedDetails.text = ''
console.log('selectedKeyPointsSave 的新值:', this.selectedKeyPointsSave)
this.newResDataAdd.keypointId = this.selectedKeyPointsSave.id
},
selectedDetails(newVal) {
// 当 selectedDetails 改变时,将值赋给 selectedDetailsSave
this.selectedDetailsSave = newVal
this.formModel.shenchaxize = newVal
console.log('selectedDetailsSave 的新值:', this.selectedDetailsSave)
this.newResDataAdd.detailsId = this.selectedDetailsSave.id
}
......
......@@ -344,10 +344,9 @@ export default {
case 'REJECT':
return '不通过';
case null:
return '评审中';
return '--';
default:
return cellValue
}
},
formatTaskStatus(row, column, cellValue){
......
<template>
<page-standard class="view-review">
<div class="title">
<div style="background-color: white; padding-bottom: 100px;">
<el-image
v-if="pageData.taskStatus == 'CLOSE'"
style="
width: 150px;
height: 150px;
position: absolute;
right: 200px;
top: 100px;
"
:src="require('@/assets/images/review/yiquxiao@2x.png')"
></el-image>
<el-image
v-else-if="pageData.taskResult == 'PASS'"
style="
width: 150px;
height: 150px;
position: absolute;
right: 200px;
top: 100px;
"
:src="require('@/assets/images/review/yitongguo@3x.png')"
></el-image>
<el-image
v-else-if="pageData.taskResult == 'REJECT'"
style="
width: 150px;
height: 150px;
position: absolute;
right: 200px;
top: 100px;
"
:src="require('@/assets/images/review/weitongguo_1@3x.png')"
></el-image>
<el-image
v-else
style="
width: 150px;
height: 150px;
position: absolute;
right: 200px;
top: 100px;
"
:src="require('@/assets/images/review/pingshenzhong@3x.png')"
></el-image>
<div
style="
display: flex;
width: 100%;
padding: 5px 10px;
font-size: 15px;
background-color: #d1d5db;
align-items: center;
justify-content: space-between;
"
>
<span style=" font-weight: bold;">查看评审(+ {{ formatAction(this.pageData) }}</span>
<span style="align-items: center;">
<span style="margin-right: 150px;font-size: 13px;">参与评审人员: {{ this.pageData.reviewer }}</span>
<el-button type="text" style="font-size: 15px;" @click="handleBack"> <- 返回 </el-button>
</span>
</div>
<div style="padding: 0 20px;">
<div class="title" style="justify-content: space-between">
<span
>检验标准: {{ this.pageData.inspectStandardNo }}
{{ this.pageData.standard }}</span
>
</div>
<div class="subtitle">评审对象</div>
<el-row
:gutter="20"
justify="center"
type="flex"
style="margin-bottom: 30px"
style="margin-bottom: 30px;"
>
<el-col :span="20">
<div>
......@@ -273,6 +340,8 @@
<message-item></message-item>
</el-col>
</el-row> -->
</div>
</div>
</page-standard>
</template>
......@@ -281,8 +350,6 @@ import MessageItem from '@/components/MessageItem'
import { alreadyReviewer } from '@/api/reviewer/reviewer.js'
import { getDicts } from '@/api/system/dict/data'
import request from '@/utils/request'
import { method } from 'lodash'
import { comment } from 'postcss'
export default {
name: 'Index',
dicts: ['sys_scene_type', 'review_status'],
......@@ -308,7 +375,7 @@ export default {
alreadyReviewer({ id: this.id })
.then(response => {
this.pageData = response.data || {} // 确保数据存在
console.log(this.pageData)
console.log(this.pageData.taskStatus == 'CLOSE')
})
.catch(error => {
console.error('Error loading review data:', error)
......@@ -359,13 +426,44 @@ export default {
// return type ? type.dictLabel : ''
// }
formatDecison(decision) {
return decision == 'PASS'? '通过': decision == 'REJECT'? '拒绝' : '暂未评审'
return decision == 'PASS'
? '通过'
: decision == 'REJECT'
? '拒绝'
: '暂未评审'
},
formatType(type) {
const foundType = this.dict.type.sys_scene_type.find(
item => item.value === type
)
return foundType ? foundType.label : '未知分类'
},
formatAction(action) {
switch (action.operationSort) {
case 'ADD_KEYPOINT':
return '新增审查要点'
case 'DELETE_KEYPOINT':
return '删除审查要点'
case 'ADD_DETAILS':
return '新增审查细则'
case 'DELETE_DETAILS':
return '删除审查细则'
case 'ADD_SCENE':
return '新增审查场景'
case 'DELETE_SCENE':
return '删除审查场景'
case 'ADD_USECASE':
return '新增测试用例'
case 'UPDATE_USECASE':
return '修改测试用例'
case 'DELETE_USECASE':
return '删除测试用例'
default:
return '未知类型'
}
},
handleBack(){
this.$router.push({ path: '/review/initiatedReview' })
}
}
}
......
......@@ -90,7 +90,7 @@
:default-sort="{ prop: 'createTime', order: 'descending' }"
:data="tableData"
>
<el-table-column type="index" width="155" label="序号" align="center" >
<el-table-column type="index" width="55" label="序号" align="center" >
<template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span>
</template>
......@@ -125,7 +125,7 @@
<el-table-column
label="评审内容"
sortable
min-width="200"
width="360"
align="left"
prop="newText"
>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment