Commit ee4ed27f authored by 高滢's avatar 高滢

Merge branch 'develop' of http://gitlab.91isoft.com:90/car-test/web into gaoying

parents ccd0dbda 03b9be21
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
.standard-result { .standard-result {
color: #303133; color: #303133;
font-weight: bold; font-weight: bold;
width: 120px; width: 160px;
} }
} }
.i-icon { .i-icon {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
}" }"
> >
<logo v-if="showLogo" :collapse="isCollapse" /> <logo v-if="showLogo" :collapse="isCollapse" />
<el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper"> <el-scrollbar :class="settings.sideTheme" style="padding-bottom: 30px;" wrap-class="scrollbar-wrapper">
<el-menu <el-menu
:default-active="activeMenu" :default-active="activeMenu"
:collapse="isCollapse" :collapse="isCollapse"
......
...@@ -168,13 +168,13 @@ ...@@ -168,13 +168,13 @@
>车型审查原始记录</el-button >车型审查原始记录</el-button
> >
<el-button <el-button
v-if="item.carReviewTaskId" v-if="item.modelTestTaskId"
type="primary" type="primary"
plain plain
size="mini" size="mini"
@click=" @click="
goNext( goNext(
'/processing/carReview/source-record?id=' + '/processing/carTest/source-record?id=' +
item.modelTestTaskId item.modelTestTaskId
) )
" "
......
...@@ -215,7 +215,8 @@ ...@@ -215,7 +215,8 @@
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
<div v-if="reviewDetail.result.fileList"> <div v-if="reviewDetail.result.fileList">
<template v-for="i in reviewDetail.result.fileList"> <template v-for="i in reviewDetail.result.fileList">
{{ i.fileName }}{{ i.catalogue }} {{ i.fileName ? `《${i.fileName}》` : '__' }}
{{ i.catalogue }}
</template> </template>
</div> </div>
<div v-if="reviewDetail.result.comment"> <div v-if="reviewDetail.result.comment">
......
...@@ -102,7 +102,8 @@ ...@@ -102,7 +102,8 @@
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
<div v-if="reviewDetail.result.fileList"> <div v-if="reviewDetail.result.fileList">
<template v-for="i in reviewDetail.result.fileList"> <template v-for="i in reviewDetail.result.fileList">
{{ i.fileName }}{{ i.catalogue }} {{ i.fileName ? `《${i.fileName}》` : '__' }}
{{ i.catalogue }}
</template> </template>
</div> </div>
<div v-if="reviewDetail.result.comment"> <div v-if="reviewDetail.result.comment">
......
...@@ -127,13 +127,15 @@ ...@@ -127,13 +127,15 @@
:rules="rules" :rules="rules"
> >
<el-form-item class="right-content-item" label="标准章节"> <el-form-item class="right-content-item" label="标准章节">
<span>{{ taskModel.chapter }}</span> <div style="display: flex">{{ taskModel.chapter }}</div>
</el-form-item> </el-form-item>
<el-form-item class="right-content-item" label="标准要求"> <el-form-item class="right-content-item" label="标准要求">
<span>{{ taskModel.standardText }}</span> <div style="display: flex">{{ taskModel.standardText }}</div>
</el-form-item> </el-form-item>
<el-form-item class="right-content-item" label="审查要点"> <el-form-item class="right-content-item" label="审查要点">
<span>{{ taskModel.reviewKeypointText }}</span> <div style="display: flex">
{{ taskModel.reviewKeypointText }}
</div>
</el-form-item> </el-form-item>
<el-form-item class="right-content-item" label="审查细则"> <el-form-item class="right-content-item" label="审查细则">
<div class="scene-content"> <div class="scene-content">
...@@ -749,20 +751,24 @@ export default { ...@@ -749,20 +751,24 @@ export default {
*确认车型审查 *确认车型审查
*/ */
submitFrom() { submitFrom() {
this.$modal this.$refs.form.validate(valid => {
.confirm('是否确认提交表单,提交后不可修改', { if (valid) {
type: 'warning', this.$modal
title: '提示', .confirm('是否确认提交表单,提交后不可修改', {
closeOnClickModal: false type: 'warning',
}) title: '提示',
.then(async () => { closeOnClickModal: false
carReviewTaskConfirm({ })
taskId: this.taskId .then(async () => {
}).then(res => { carReviewTaskConfirm({
this.$router.go(-1) taskId: this.taskId
}) }).then(res => {
}) this.$router.go(-1)
.catch(() => {}) })
})
.catch(() => {})
}
})
}, },
/** /**
*确认细则内容变更 *确认细则内容变更
......
<template>
<el-drawer
title="实验方案"
:visible.sync="dialogManger.dialogVisible"
direction="rtl"
size="80%"
:before-close="handleClose"
:wrapper-closable="false"
>
<template slot="title">
<div class="custom_title">实验方案</div>
</template>
<div class="main-content-style">
<!--card统计值-->
<div class="message-list">
<div class="message-box" style="background-color: #2eba3c">
<div class="message-detail">
<div class="detail-title">审查细则(条)</div>
<div class="detail-num mt10">
<!-- {{ model.systemReviewTask.details }} -->
</div>
</div>
<svg-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_shechaxize"
></svg-icon>
</div>
<div class="message-box" style="background-color: #477bba">
<div class="message-detail">
<div class="detail-title">审查细则符合率(%)</div>
<div class="detail-num mt10">
<!-- {{ model.systemReviewTask.detailsPass }}% -->
</div>
</div>
<svg-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_fuhelv"
></svg-icon>
</div>
<div class="message-box" style="background-color: #eca740">
<div class="message-detail">
<div class="detail-title">标准条款(条)</div>
<div class="detail-num mt10">
<!-- {{ model.systemReviewTask.standards }} -->
</div>
</div>
<svg-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_biaozhuntiaokuan"
></svg-icon>
</div>
<div class="message-box" style="background-color: #47baba">
<div class="message-detail">
<div class="detail-title">标准条款通过率(%)</div>
<div class="detail-num mt10">
<!-- {{ model.systemReviewTask.standardsPass }}% -->
</div>
</div>
<svg-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_biaozhuntiaokuan"
></svg-icon>
</div>
<div class="message-box" style="background-color: #6c47ba">
<div class="message-detail">
<div class="detail-title">参与审查人数(人)</div>
<div class="detail-num mt10">
<!-- {{ model.systemReviewTask.person }} -->
</div>
</div>
<svg-icon
class="message-icon"
icon-class="tag_shenehrenshu"
width="64px"
height="64px"
></svg-icon>
</div>
</div>
<!--审查表单概要-->
<div class="form-review-questionnaire">
<div class="title-display">
<span class="title-i"></span>
<span class="title-content">审查表单概要</span>
<div class="control-btns">
<div class="control-btn" @click="openAll()">
<icon-park
type="down-c"
theme="outline"
size="16"
style="margin-right: 5px"
fill="#303133"
/>
全部展开
</div>
<div class="control-btn" @click="closeAll()">
<icon-park
type="up-c"
theme="outline"
size="16"
style="margin-right: 5px"
fill="#303133"
/>
全部收起
</div>
</div>
</div>
<!--审查表单概要-->
<collapse v-model="activeNames" class="mt10">
<collapse-item
v-for="(item, key) in model"
:key="key"
:name="item.chapter"
>
<span slot="title" style="width: 100%">
<div class="standard-box">
<div class="standard-left">
<div class="standard">标准要求:</div>
<div class="standard-title">
{{ item.chapter + item.text }}
</div>
</div>
<!-- <div class="standard-result">
审查结果:
<span v-if="item.passed == 1" class="green">符合</span>
<span v-else class="orange">不符合</span>
</div> -->
</div>
</span>
<table class="table">
<tr>
<th>测试场景</th>
<th>测试方法</th>
<th>用例编号</th>
<th>用例名称</th>
<th>对应输入</th>
<th class="investigate-result">测试结果</th>
</tr>
<template v-for="(v, k) in item.testCaseList">
<tr :key="k">
<td>
{{ v.testScenario }}
</td>
<td>
{{ v.testScenario }}
</td>
<td>
{{ v.usecaseNo }}
</td>
<td>
{{ v.testScenario }}
</td>
<td></td>
<td align="center" class="investigate-result">
<!-- <el-tag
v-if="reviewDetail.result.passed === 1"
size="medium"
type="success"
>通过</el-tag
> -->
<el-tag size="medium" type="warning">不通过</el-tag>
</td>
</tr>
</template>
</table>
</collapse-item>
</collapse>
</div>
</div>
<div class="dialog-button">
<el-button size="mini" @click="dialogManger.dialogVisible = false"
>关 闭</el-button
>
</div>
</el-drawer>
</template>
<script>
import { testDetail } from '@/api/task/test'
import collapse from '@/components/Collapse/collapse'
import collapseItem from '@/components/Collapse/collapse-item'
export default {
components: {
collapse: collapse,
'collapse-item': collapseItem
},
props: {
dialogManger: {
type: Object,
default: () => {
return {
dialogVisible: false,
source: {},
dialogEditId: undefined
}
}
}
},
data() {
return {
loading: true,
model: [],
activeNames: []
}
},
watch: {
async 'dialogManger.dialogVisible'(newValue) {
if (newValue) {
await this.getTestDetail(this.dialogManger.dialogEditId)
this.openAll()
}
}
},
methods: {
/** 关闭抽屉 */
handleClose() {
this.dialogManger.dialogVisible = false
},
/** 获取任务详情 */
async getTestDetail(id) {
this.loading = true
const res = await testDetail({ taskId: id })
this.model = res.data
this.loading = false
},
/** 全部展开 */
openAll() {
this.activeNames = this.model.map(i => {
return i.chapter
})
},
/** 全部收起 */
closeAll() {
this.activeNames = []
}
}
}
</script>
<style lang="scss" scoped>
.dialog-button {
position: fixed;
bottom: 0px;
background: #ffffff;
right: 0;
padding: 20px;
text-align: end;
}
.form-review-questionnaire {
padding: 0 38px;
}
.el-table {
width: auto;
}
::v-deep .el-drawer__header {
margin-bottom: 0px !important;
}
.custom_title {
color: #303133 !important;
font-size: 18px;
font-weight: 400;
}
</style>
<!-- 测试用例详情 --> <!-- 测试用例详情 -->
<template> <template>
<task-standard> <task-standard>
<div slot="header-right">
<header-button icon="preview-open" type="default" @click="handlePreview">
查看实验方案
</header-button>
<header-button
icon="arrow-left"
class="back-btn"
type="no-line"
@click="goBack"
>
返回
</header-button>
</div>
<div class="web-page"> <div class="web-page">
<iframe <iframe
:src="url" :src="url"
frameborder="0" frameborder="0"
style="width: 100%; height: 100%" style="width: 100%; height: 100%"
></iframe> ></iframe>
<scheme-view :dialog-manger="dialogManger"></scheme-view>
</div> </div>
</task-standard> </task-standard>
</template> </template>
<script> <script>
import { NewFileTestProject } from '@/api/graphql/client.graphql' import SchemeView from './components/SchemeView.vue'
import routerMixins from '@/mixins/router'
export default { export default {
name: 'Index', name: 'Scheme',
components: {
SchemeView: SchemeView
},
mixins: [routerMixins],
data() { data() {
return { return {
id: this.$route.query, url: '',
url: '' dialogManger: {
dialogVisible: false,
dialogEditId: null
}
} }
}, },
mounted() { mounted() {
const id = this.$route.query.id const id = this.$route.query.id
this.dialogManger.dialogEditId = this.$route.query.taskid
this.url = `https://10.12.48.78:8090/car/complianceTestingCenter/projectOverView/${id}` this.url = `https://10.12.48.78:8090/car/complianceTestingCenter/projectOverView/${id}`
}, },
methods: {} methods: {
handlePreview() {
this.dialogManger.dialogVisible = true
}
}
} }
</script> </script>
......
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
sortable sortable
min-width="210" min-width="210"
prop="enterpriseName" prop="enterpriseName"
show-overflow-tooltip
align="left" align="left"
> >
</el-table-column> </el-table-column>
...@@ -82,6 +83,7 @@ ...@@ -82,6 +83,7 @@
prop="fileName" prop="fileName"
label="文件名称" label="文件名称"
min-width="220" min-width="220"
show-overflow-tooltip
align="left" align="left"
> >
</el-table-column> </el-table-column>
...@@ -89,6 +91,7 @@ ...@@ -89,6 +91,7 @@
prop="version" prop="version"
label="文件版本" label="文件版本"
min-width="100" min-width="100"
show-overflow-tooltip
align="left" align="left"
> >
</el-table-column> </el-table-column>
...@@ -121,6 +124,7 @@ ...@@ -121,6 +124,7 @@
prop="storage" prop="storage"
label="存储位置" label="存储位置"
min-width="210" min-width="210"
show-overflow-tooltip
align="left" align="left"
> >
</el-table-column> </el-table-column>
...@@ -128,6 +132,7 @@ ...@@ -128,6 +132,7 @@
prop="identifyNumber" prop="identifyNumber"
label="文件识别号" label="文件识别号"
min-width="170" min-width="170"
show-overflow-tooltip
align="left" align="left"
> >
</el-table-column> </el-table-column>
...@@ -139,11 +144,13 @@ ...@@ -139,11 +144,13 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-image <el-image
v-if="scope.row.photo"
style="width: 36px; height: 36px" style="width: 36px; height: 36px"
:src="baseUrl + scope.row.photo" :src="baseUrl + scope.row.photo"
:preview-src-list="[baseUrl + scope.row.photo]" :preview-src-list="[baseUrl + scope.row.photo]"
> >
</el-image> </el-image>
<div v-else>__</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
......
...@@ -146,11 +146,13 @@ ...@@ -146,11 +146,13 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-image <el-image
v-if="scope.row.photo"
style="width: 36px; height: 36px" style="width: 36px; height: 36px"
:src="baseUrl + scope.row.photo" :src="baseUrl + scope.row.photo"
:preview-src-list="[baseUrl + scope.row.photo]" :preview-src-list="[baseUrl + scope.row.photo]"
> >
</el-image> </el-image>
<div v-else>__</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
......
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
size="mini" size="mini"
@click=" @click="
goNext( goNext(
'/processing/carReview/source-record?id=' + '/processing/carTest/source-record?id=' +
item.modelTestTaskId item.modelTestTaskId
) )
" "
......
...@@ -220,7 +220,8 @@ ...@@ -220,7 +220,8 @@
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
<div v-if="reviewDetail.result.fileList"> <div v-if="reviewDetail.result.fileList">
<template v-for="i in reviewDetail.result.fileList"> <template v-for="i in reviewDetail.result.fileList">
{{ i.fileName }}{{ i.catalogue }} {{ i.fileName ? `《${i.fileName}》` : '__' }}
{{ i.catalogue }}
</template> </template>
</div> </div>
<div v-if="reviewDetail.result.comment"> <div v-if="reviewDetail.result.comment">
......
...@@ -102,7 +102,8 @@ ...@@ -102,7 +102,8 @@
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
<div v-if="reviewDetail.result.fileList"> <div v-if="reviewDetail.result.fileList">
<template v-for="i in reviewDetail.result.fileList"> <template v-for="i in reviewDetail.result.fileList">
{{ i.fileName }}{{ i.catalogue }} {{ i.fileName ? `《${i.fileName}》` : '__' }}
{{ i.catalogue }}
</template> </template>
</div> </div>
<div v-if="reviewDetail.result.comment"> <div v-if="reviewDetail.result.comment">
......
...@@ -783,23 +783,24 @@ export default { ...@@ -783,23 +783,24 @@ export default {
*确认体系审查 *确认体系审查
*/ */
submitFrom() { submitFrom() {
this.$modal this.$refs.form.validate(valid => {
.confirm('是否确认提交表单,提交后不可修改', { if (valid) {
type: 'warning', this.$modal
title: '提示', .confirm('是否确认提交表单,提交后不可修改', {
closeOnClickModal: false type: 'warning',
}) title: '提示',
.then(async () => { closeOnClickModal: false
reviewTaskConfirm({
taskId: this.taskId
}).then(res => {
this.$modal.msgSuccess('确认提交成功')
this.$router.push({
path: '/processing/unprocessed-review'
}) })
}) .then(async () => {
}) reviewTaskConfirm({
.catch(() => {}) taskId: this.taskId
}).then(res => {
this.$router.go(-1)
})
})
.catch(() => {})
}
})
}, },
confirmDetailChange() { confirmDetailChange() {
reviewDetailsConfirm({ reviewDetailsConfirm({
......
...@@ -594,7 +594,7 @@ export default { ...@@ -594,7 +594,7 @@ export default {
// 执行试验方案 // 执行试验方案
case 'PENDING': case 'PENDING':
this.$router.push({ this.$router.push({
path: `/processing/carTest/execution-test-plan?id=${testSchemeId}` path: `/processing/carTest/execution-test-plan?taskid=${id}&id=${testSchemeId}`
}) })
break break
// 确认测试结果 // 确认测试结果
......
...@@ -442,7 +442,7 @@ ...@@ -442,7 +442,7 @@
size="mini" size="mini"
@click=" @click="
goNext( goNext(
'/processing/carReview/source-record?id=' + '/processing/carTest/source-record?id=' +
item.modelTestTaskId item.modelTestTaskId
) )
" "
......
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