Commit bfb9a14f authored by 高滢's avatar 高滢

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

parents aca0b4ca 92e32b67
...@@ -156,6 +156,7 @@ export default { ...@@ -156,6 +156,7 @@ export default {
fileName(newValue) { fileName(newValue) {
this.model.fileName = newValue this.model.fileName = newValue
this.model.enterpriseName = this.enterpriseName this.model.enterpriseName = this.enterpriseName
this.model.taskId = this.$route.query.taskId
}, },
'dialogManger.dialogEditId'(newValue) { 'dialogManger.dialogEditId'(newValue) {
this.model.fetch( this.model.fetch(
...@@ -166,9 +167,6 @@ export default { ...@@ -166,9 +167,6 @@ export default {
) )
} }
}, },
created() {
this.model.taskId = this.$route.query.taskId
},
methods: { methods: {
handleUpdateFile(newValue) { handleUpdateFile(newValue) {
this.$emit('fileNameUpdate', newValue) this.$emit('fileNameUpdate', newValue)
......
...@@ -354,7 +354,11 @@ export default { ...@@ -354,7 +354,11 @@ export default {
{ required: true, message: '请选择审查结果', trigger: 'blur' } { required: true, message: '请选择审查结果', trigger: 'blur' }
], ],
fileName: [ fileName: [
{ required: true, message: '请输入文件名称', trigger: 'blur' } {
required: true,
message: '请输入文件名称',
trigger: ['change']
}
], ],
catalogue: [ catalogue: [
{ {
......
<!-- 测试用例详情 -->
<template>
<page-standard>
<div class="web-page">
<iframe
:src="url"
frameborder="0"
style="width: 100%; height: 100%"
></iframe>
</div>
</page-standard>
</template>
<script>
import { NewFileTestProject } from '@/api/graphql/client.graphql'
export default {
name: 'Index',
data() {
return {
id: this.$route.query,
url: ''
}
},
mounted() {
const id = this.$route.query.id
this.url = `http://10.12.48.78:8090/car/complianceTestingCenter/projectOverView/project_items;${id}`
},
methods: {}
}
</script>
<style scoped>
.web-page {
height: 90vh;
}
</style>
...@@ -138,12 +138,12 @@ ...@@ -138,12 +138,12 @@
align="left" align="left"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<img <el-image
style="width: 36px; height: 36px"
:src="baseUrl + scope.row.photo" :src="baseUrl + scope.row.photo"
alt="文件照片" :preview-src-list="[baseUrl + scope.row.photo]"
width="36" >
height="36" </el-image>
/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
......
...@@ -156,6 +156,7 @@ export default { ...@@ -156,6 +156,7 @@ export default {
fileName(newValue) { fileName(newValue) {
this.model.fileName = newValue this.model.fileName = newValue
this.model.enterpriseName = this.enterpriseName this.model.enterpriseName = this.enterpriseName
this.model.taskId = this.$route.query.taskId
}, },
'dialogManger.dialogEditId'(newValue) { 'dialogManger.dialogEditId'(newValue) {
this.model.fetch( this.model.fetch(
...@@ -166,9 +167,6 @@ export default { ...@@ -166,9 +167,6 @@ export default {
) )
} }
}, },
created() {
this.model.taskId = this.$route.query.taskId
},
methods: { methods: {
handleUpdateFile(newValue) { handleUpdateFile(newValue) {
this.$emit('fileNameUpdate', newValue) this.$emit('fileNameUpdate', newValue)
......
...@@ -364,7 +364,11 @@ export default { ...@@ -364,7 +364,11 @@ export default {
{ required: true, message: '请选择审查结果', trigger: 'blur' } { required: true, message: '请选择审查结果', trigger: 'blur' }
], ],
fileName: [ fileName: [
{ required: true, message: '请输入文件名称', trigger: 'blur' } {
required: true,
message: '请输入文件名称',
trigger: ['change']
}
], ],
catalogue: [ catalogue: [
{ {
......
...@@ -189,7 +189,11 @@ ...@@ -189,7 +189,11 @@
type="primary" type="primary"
:underline="false" :underline="false"
@click=" @click="
handleCarTypeTestTaskContent(item.carTestStatus, item.id) handleCarTypeTestTaskContent(
item.carTestStatus,
item.carTestTaskId,
item.id
)
" "
> >
{{ {{
...@@ -534,26 +538,30 @@ export default { ...@@ -534,26 +538,30 @@ export default {
} }
}, },
// 车型测试 // 车型测试
handleCarTypeTestTaskContent(status, id) { handleCarTypeTestTaskContent(status, id, taskId) {
switch (status) { switch (status) {
// 查看试验方案 // 查看试验方案
case 'NEW': case 'NEW':
this.$router.push({ this.$router.push({
path: '/processing/review-form?type=3&id=' + id path: `/processing/carTest/review-form?id=${id}`
}) })
break break
// 执行试验方案 // 执行试验方案
case 'PENDING': case 'PENDING':
this.$router.push({ this.$router.push({
path: '/processing/vehicle-type' path: `/processing/carTest/execution-test-plan?id=${id}&taskId=${taskId}`
}) })
break break
// 确认测试结果 // 确认测试结果
case 'SIGNED': case 'SIGNED':
this.$router.push({ this.$router.push({
path: '/processing/vehicle-type' ath: `/processing/carTest/confirmation-test??id=${id}`
}) })
break break
case 'FINISH':
this.$router.push({
path: '/processing/carTest/source-record?id=' + id
})
} }
}, },
/* 跳转到问卷详情*/ /* 跳转到问卷详情*/
......
...@@ -183,7 +183,8 @@ export default { ...@@ -183,7 +183,8 @@ export default {
}, },
/** 点击跳转详情 */ /** 点击跳转详情 */
viewDetail(row) { viewDetail(row) {
this.$message(row) console.log(row)
// this.$message(row)
this.$router.push({ this.$router.push({
path: '/setting/useCaseDetails', path: '/setting/useCaseDetails',
query: { id: row } query: { id: row }
......
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
:src="url" :src="url"
frameborder="0" frameborder="0"
style="width: 100%; height: 100%" style="width: 100%; height: 100%"
></iframe ></iframe>
>Ï
<el-button @click="newFileTest">新建任务</el-button> <el-button @click="newFileTest">新建任务</el-button>
</div> </div>
</page-standard> </page-standard>
...@@ -20,12 +19,13 @@ export default { ...@@ -20,12 +19,13 @@ export default {
data() { data() {
return { return {
id: this.$route.query, id: this.$route.query,
url: 'http://10.12.48.78:8090/car/caseManage/case/casePublishDetail/case_items;375' url: ''
// http://10.12.48.80:1234/car/caseManage/case/casePublishDetail/case_items;375 // http://10.12.48.80:1234/car/caseManage/case/casePublishDetail/case_items;375
} }
}, },
mounted() { mounted() {
this.getSuiteList() const id = this.$route.query.id
this.url = `http://10.12.48.78:8090/car/caseManage/case/casePublishDetail/case_items;${id}`
}, },
methods: { methods: {
newFileTest() { newFileTest() {
......
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