Commit 78e23eaf authored by zhang's avatar zhang

(检测内容/实施细则): 测试用例库并入实施细则,逻辑更新。

parent 2f0a1d41
import request from '@/utils/request'
import { method } from 'lodash'
//获取标准库分页
export function getStandardList(data) {
......@@ -16,3 +17,10 @@ export function getReviewStandardList(data){
data
})
}
export function getStandardListNew(){
return request({
url:'/standard/getStandardListNew',
method: 'post'
})
}
\ No newline at end of file
This diff is collapsed.
import standard from "./modules/standard"
const getters = {
sidebar: state => state.app.sidebar,
size: state => state.app.size,
......@@ -21,6 +23,8 @@ const getters = {
standard_type: state => state.standard.standard_type,
standard_chapter: state => state.standard.standard_chapter,
standard_name: state => state.standard.standard_name,
standardObj: state=>state.standard.standardObj,
initStandard: state=>state.standard.initStandard,
standardList: state => state.standard.standardList,
testScenarioList: state => state.testScenario.testScenarioList,
dept: state => state.user.dept
......
......@@ -6,6 +6,17 @@ const standard = {
standard_name: '',
standard_type:'',
standard_chapter:'',
standardObj:{
id:'',
name: '',
type:'',
chapter:'',
standardNo: ''
},
initStandard:{
id:'',
type:'',
},
standardList: []
},
......@@ -24,6 +35,12 @@ const standard = {
},
SET_STANDARDCHAPTER: (state,chapter) => {
state.standard_chapter = chapter
},
SET_STANDARD_OBJ: (state,standardObj)=>{
state.standardObj = standardObj
},
SET_INITSTANDARD: (state,initStandard)=>{
state.initStandard = initStandard
}
},
......@@ -34,6 +51,12 @@ const standard = {
commit('SET_STANDARDTYPE', standard.type)
commit('SET_STANDARDCHAPTER', standard.chapter)
},
setStandardObj({commit},standardObj){
commit('SET_STANDARD_OBJ',standardObj)
},
setInitStandard({commit},initStandard){
commit('SET_INITSTANDARD',initStandard)
},
setStandardList({ commit }, name) {
getStandardList({
keyWord: name ? name : '',
......
......@@ -275,7 +275,6 @@
downPdf(row,name) {
console.log('row', row)
if(name=='name'){
console.log(process.env.VUE_APP_IMAGE_API + row.file)
window.open(process.env.VUE_APP_IMAGE_API + row.file)
}else if(name=='keypointname'){
window.open(process.env.VUE_APP_IMAGE_API + row.keypointFile)
......
<template>
<el-dialog title="检验内容" :visible.sync="dialogManger.dialogVisible" width="60%">
<el-dialog
title="检验内容"
:visible.sync="dialogManger.dialogVisible"
width="60%"
>
<el-form class="form" :model="dialogManger" :inline="true">
<el-form-item class="title">
<span style="width: 500px;">标准信息</span>
<span style="width: 500px">标准信息</span>
</el-form-item>
<el-form-item label="标准号" :label-width="formLabelWidth">
<el-input class="input" disabled v-model="dialogManger.source.standard.standard.standardNo" autocomplete="off" :title="dialogManger.source.standard.standard.standardNo"></el-input>
<el-input
class="input"
disabled
v-model="dialogManger.source.standard.standardNo"
autocomplete="off"
></el-input>
</el-form-item>
<el-form-item label="标准名称" :label-width="formLabelWidth">
<el-input class="input" disabled v-model="dialogManger.source.standard.standard.name" autocomplete="off" :title="dialogManger.source.standard.standard.name"></el-input>
<el-input
class="input"
disabled
v-model="dialogManger.source.standard.name"
autocomplete="off"
></el-input>
</el-form-item>
<el-form-item label="标准章节" :label-width="formLabelWidth">
<el-input class="input" disabled v-model="dialogManger.source.standard.chapter" autocomplete="off" :title="dialogManger.source.standard.chapter"></el-input>
<el-input
class="input"
disabled
v-model="dialogManger.source.standard.chapter"
autocomplete="off"
></el-input>
</el-form-item>
<el-form-item label="审查类型" :label-width="formLabelWidth">
<el-input class="input" disabled v-model="dialogManger.source.standard.type" autocomplete="off" :title="dialogManger.source.standard.type"></el-input>
<el-input
class="input"
disabled
v-model="dialogManger.source.standard.type"
autocomplete="off"
></el-input>
</el-form-item>
<el-form-item label="标准要求" :label-width="formLabelWidth">
<el-input
class="textarea"
disabled
resize="none"
:autosize="{minRows:4,maxRows:6}"
:autosize="{ minRows: 4, maxRows: 6 }"
type="textarea"
v-model="dialogManger.source.standard.text"
:title="dialogManger.source.standard.text"
autocomplete="off"></el-input>
autocomplete="off"
></el-input>
</el-form-item>
</el-form>
<el-form class="form" :model="dialogManger" title="'审查信息'" style="margin-top: 10px;">
<el-form
class="form"
:model="dialogManger"
title="'审查信息'"
style="margin-top: 10px"
>
<el-form-item class="title">
<span style="width: 500px;">审查信息</span>
<span style="width: 500px">审查信息</span>
</el-form-item>
<el-form-item label="审查要点" :label-width="formLabelWidth">
<el-input class="textarea"
<el-input
class="textarea"
disabled
resize="none"
:autosize="{minRows:1,maxRows:6}"
:autosize="{ minRows: 1, maxRows: 6 }"
type="textarea"
v-model="dialogManger.source.judge.content"
autocomplete="off"
:title="dialogManger.source.judge.content">
>
</el-input>
</el-form-item>
<div v-for="(item,index) in dialogManger.source.judge.reviewDetailsList" >
<div v-for="(item, index) in dialogManger.source.judge.reviewDetailsList">
<el-form-item label="审查细则" :label-width="formLabelWidth">
<el-input
class="textarea"
disabled
resize="none"
:autosize="{minRows:1,maxRows:6}"
:autosize="{ minRows: 1, maxRows: 6 }"
type="textarea"
v-model="item.text"
autocomplete="off"
:title="item.text">
>
</el-input>
</el-form-item>
<el-form-item label="关联场景" :label-width="formLabelWidth">
......@@ -63,30 +92,31 @@
class="textarea"
disabled
resize="none"
:autosize="{minRows:4,maxRows:6}"
:autosize="{ minRows: 4, maxRows: 6 }"
type="textarea"
v-model="item.reviewSceneList"
:title="item.reviewSceneList"
autocomplete="off"></el-input>
autocomplete="off"
></el-input>
</el-form-item>
</div>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogManger.dialogVisible = false">确 定</el-button>
<el-button type="primary" @click="dialogManger.dialogVisible = false"
>确 定</el-button
>
</div>
</el-dialog>
</el-dialog>
</template>
<script>
export default {
name:'',
data(){
name: '',
data() {
return {
titleWidth:'500px',
titleWidth: '500px',
formLabelWidth: '120px'
}
},
},
props: {
dialogManger: {
type: Object,
......@@ -94,23 +124,33 @@ data(){
return {
dialogVisible: false,
refreshList: false,
source: {},
source: {
standard: {
name: '',
standardNo:'',
chapter: '',
type:'',
text:'',
},
judge:{
content:'',
reviewDetailsList:[]
}
},
dialogEditId: undefined
}
}
}
},
methods:{
cancel(){
methods: {
cancel() {
this.dialogManger.dialogVisible = false
}
}
}
</script>
<style lang="scss" scoped>
.form .title{
.form .title {
width: 600px;
margin-right: 50px;
color: blue;
......@@ -118,18 +158,18 @@ data(){
border-left: blue solid 6px;
padding-left: 10px;
}
.form .input{
.form .input {
width: 250px;
}
.form .textarea{
.form .textarea {
width: 630px;
}
::v-deep .el-dialog__body{
::v-deep .el-dialog__body {
height: 70vh;
overflow: auto;
}
.input ::v-deep .el-input__inner {
}
.input ::v-deep .el-input__inner {
color: black;
}
.textarea ::v-deep .el-textarea__inner {
......
This diff is collapsed.
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