Commit eb7599d2 authored by zhang's avatar zhang

feat --更新评审管理查看评审界面

parent ab7b7a12
......@@ -5,6 +5,7 @@
<!-- <div class="title-style">-->
<!-- <div class="title-content-style">我的待审</div>-->
<!-- </div>-->
<div class="content-display">
<el-form
v-show="showSearch"
......
......@@ -336,7 +336,7 @@ export default {
{ required: true, message: '请选择条款分类', trigger: 'change' }
],
// jianyanleixing: [
// { required: true, message: '请选择标准条款', trigger: 'blur' }
// { required: true, message: '请选择标准要求', trigger: 'blur' }
// ],
// yonglibianhao: [
// { required: true, message: '请输入用例编号', trigger: 'blur' }
......
......@@ -22,9 +22,9 @@
/>
</el-select>
</el-form-item>
<el-form-item label="标准条款" prop="biaozhuntiuaokuan">
<el-form-item label="标准要求" prop="biaozhuntiuaokuan">
<el-button type="success" plain @click="handleReSelect"
>重新选择标准条款</el-button
>重新选择标准要求</el-button
>
<div style="display: flex">
<div>标准要求:</div>
......@@ -139,7 +139,7 @@ export default {
{ required: true, message: '请选择条款分类', trigger: 'blur' }
],
biaozhuntiuaokuan: [
{ required: true, message: '请选择标准条款', trigger: 'blur' }
{ required: true, message: '请选择标准要求', trigger: 'blur' }
],
shenchayaodian: [
{ required: true, message: '请输入审查要点', trigger: 'blur' }
......@@ -160,7 +160,7 @@ export default {
})
},
methods: {
// 按钮-重新选择标准条款
// 按钮-重新选择标准要求
handleReSelect() {},
// 按钮-确认发起
handleConfirm() {
......
......@@ -603,7 +603,6 @@ export default {
this.formModel.biaozhunyaoqiu = useCase.serialNumber + useCase.requirements
this.formModel.yonglibianhao = this.selectedUseCase.customizedID
this.formModel.yonglimiaoshu = this.selectedUseCase.description
console.log(this.formModel)
})
},
......
......@@ -91,11 +91,33 @@
</span>
</div>
<div style="display: flex; width: 100%; margin-top: 20px">
<span style="width: 15%">标准条款</span>
<span style="width: 15%">标准要求</span>
<span style="width: 90%">
{{ pageData.chapter }} {{ pageData.standard }}
</span>
</div>
<div
v-if="pageData.operationSort == 'ADD_DETAILS'
|| pageData.operationSort == 'DELETE_DETAILS'
|| pageData.operationSort == 'ADD_SCENE'
|| pageData.operationSort == 'DELETE_SCENE'"
style="display: flex; width: 100%; margin-top: 20px"
>
<span style="width: 15%">审查要点:</span>
<span style="width: 90%">
{{ pageData.keypoint }}
</span>
</div>
<div
v-if=" pageData.operationSort == 'ADD_SCENE'
|| pageData.operationSort == 'DELETE_SCENE' "
style="display: flex; width: 100%; margin-top: 20px"
>
<span style="width: 15%">审查细则:</span>
<span style="width: 90%">
{{ pageData.details }}
</span>
</div>
<div
v-if="pageData.operationSort == 'ADD_KEYPOINT'"
style="display: flex; width: 100%; margin-top: 20px"
......
......@@ -7,7 +7,7 @@
<el-form-item label="条款分类" prop="type">
{{ typeList.find(item => item.dictValue === resData.type).dictLabel }}
</el-form-item>
<el-form-item label="标准条款" prop="chapter standard">
<el-form-item label="标准要求" prop="chapter standard">
{{ resData.chapter }} {{ resData.standard }}
</el-form-item>
<el-form-item label="审查要点" prop="keypoint">
......
......@@ -22,7 +22,7 @@
{{ formatType(pageData.type) }}
</el-form-item>
<el-form-item label="标准条款" prop="chapter standard">
<el-form-item label="标准要求" prop="chapter standard">
{{ pageData.chapter }} {{ pageData.standard }}
</el-form-item>
<el-form-item label="审查要点" prop="keypoint">
......
<template>
<page-standard>
<div style="background-color: white; padding-bottom: 100px;">
<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="margin-right: 150px;font-size: 13px;">参与评审人员: {{ this.pageData.reviewer }}</span>
</div>
<div style="padding: 0 20px;">
<div class="title">
<span
>检验标准: {{ this.pageData.inspectStandardNo }}
......@@ -24,7 +43,7 @@
</span>
</div>
<div style="display: flex; width: 100%; margin-top: 20px">
<span style="width: 15%">标准条款</span>
<span style="width: 15%">标准要求</span>
<span style="width: 90%">
{{ pageData.chapter }} {{ pageData.standard }}
</span>
......@@ -315,6 +334,8 @@
</el-row>
</el-col>
</el-row>
</div>
</div>
</page-standard>
</template>
......@@ -455,6 +476,30 @@ export default {
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 '未知类型'
}
}
}
}
......
<template>
<page-standard class="view-review">
<div style="background-color: white; padding-bottom: 100px;">
<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="margin-right: 150px;font-size: 13px;">参与评审人员: {{ this.pageData.reviewer }}</span>
</div>
<div style="padding: 0 20px;">
<div class="title">
<span
>检验标准: {{ this.pageData.inspectStandardNo }}
......@@ -24,11 +42,33 @@
</span>
</div>
<div style="display: flex; width: 100%; margin-top: 20px">
<span style="width: 15%">标准条款</span>
<span style="width: 15%">标准要求</span>
<span style="width: 90%">
{{ pageData.chapter }} {{ pageData.standard }}
</span>
</div>
<div
v-if="pageData.operationSort == 'ADD_DETAILS'
|| pageData.operationSort == 'DELETE_DETAILS'
|| pageData.operationSort == 'ADD_SCENE'
|| pageData.operationSort == 'DELETE_SCENE'"
style="display: flex; width: 100%; margin-top: 20px"
>
<span style="width: 15%">审查要点:</span>
<span style="width: 90%">
{{ pageData.keypoint }}
</span>
</div>
<div
v-if=" pageData.operationSort == 'ADD_SCENE'
|| pageData.operationSort == 'DELETE_SCENE' "
style="display: flex; width: 100%; margin-top: 20px"
>
<span style="width: 15%">审查细则:</span>
<span style="width: 90%">
{{ pageData.details }}
</span>
</div>
<div
v-if="pageData.operationSort == 'ADD_KEYPOINT'"
style="display: flex; width: 100%; margin-top: 20px"
......@@ -273,6 +313,8 @@
<message-item></message-item>
</el-col>
</el-row> -->
</div>
</div>
</page-standard>
</template>
......@@ -366,8 +408,34 @@ export default {
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 '未知类型'
}
},
},
}
</script>
......
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