Commit eba2913d authored by jiaxu.yan's avatar jiaxu.yan

feat: 对接检验内容车型试验

parent c1aee432
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<% } %> --> <% } %> -->
<meta name="renderer" content="webkit"> <meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>collapseMenuLogo.png">
<!-- <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet"> --> <!-- <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet"> -->
<script src="https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_31435_86.9b2d26764ccec5f05296d7ffca18aa56.js"></script> <script src="https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_31435_86.9b2d26764ccec5f05296d7ffca18aa56.js"></script>
<title><%= webpackConfig.name %></title> <title><%= webpackConfig.name %></title>
......
...@@ -12,7 +12,7 @@ export function listTestScenar(data) { ...@@ -12,7 +12,7 @@ export function listTestScenar(data) {
// 获取场景类型 // 获取场景类型
export function listTestType(data) { export function listTestType(data) {
return request({ return request({
url: '/system/type/getList', url: '/system/scenario/getScenarioList',
method: 'post', method: 'post',
data: data data: data
}) })
......
import request from '@/utils/request' import request from '@/utils/request'
export function selectQuantityStatistics(data){ export function selectQuantityStatistics(data) {
return request({ return request({
url: '/home/statistics/quantityStatistics', url: '/home/statistics/quantityStatistics',
method: 'post', method: 'post',
...@@ -8,31 +8,30 @@ export function selectQuantityStatistics(data){ ...@@ -8,31 +8,30 @@ export function selectQuantityStatistics(data){
}) })
} }
export function selectStandardCategoryStatistics(){ export function selectStandardCategoryStatistics() {
return request({ return request({
url: '/home/statistics/standardCategory', url: '/home/statistics/standardCategory',
method: 'post' method: 'post'
}) })
} }
export function selectConfidentialityLevelStatistics(){ export function selectConfidentialityLevelStatistics() {
return request({ return request({
url: '/home/statistics/confidentialityLevel', url: '/home/statistics/confidentialityLevel',
method: 'post' method: 'post'
}) })
} }
export function selectAverageInspectionRate(){ export function selectAverageInspectionRate() {
return request({ return request({
url: '/home/statistics/averageInspectionRate', url: '/home/statistics/averageInspectionRate',
method: 'post' method: 'post'
}) })
} }
export function selectTaskParticipationStatistics(){ export function selectTaskParticipationStatistics() {
return request({ return request({
url: '/home/statistics/taskParticipation', url: '/home/statistics/taskParticipation',
method: 'post' method: 'post'
}) })
} }
...@@ -48,28 +48,27 @@ export function selectMaterial(data) { ...@@ -48,28 +48,27 @@ export function selectMaterial(data) {
}) })
} }
// 查看任务概览任务详情 // 查看任务概览任务详情
export function selectTaskInfo(data){ export function selectTaskInfo(data) {
return request({ return request({
url:'/task/getById', url: '/task/getById',
method:'post', method: 'post',
data: data data: data
}) })
} }
// 查看任务概览数据统计 // 查看任务概览数据统计
export function selectDataStatistics(data){ export function selectDataStatistics(data) {
return request({ return request({
url:'/task/dataStatistics', url: '/task/dataStatistics',
method: 'post', method: 'post',
data: data data: data
}) })
} }
export function componentSelect(data){ export function componentSelect(data) {
return request({ return request({
url:'/system/enterprise/list', url: '/system/enterprise/list',
method: 'post', method: 'post',
data: data data: data
}) })
......
...@@ -199,7 +199,7 @@ export function getBySubtaskId(data) { ...@@ -199,7 +199,7 @@ export function getBySubtaskId(data) {
} }
/** /**
* 下载pdf * 下载pdf
*/ */
export function pdfDownload(data) { export function pdfDownload(data) {
return request({ return request({
url: '/pdf/download', url: '/pdf/download',
...@@ -209,7 +209,7 @@ export function pdfDownload(data) { ...@@ -209,7 +209,7 @@ export function pdfDownload(data) {
} }
/** /**
*获取车型实验任务下的测试用例 *获取车型实验任务下的测试用例
*/ */
export function geTaskCase(data) { export function geTaskCase(data) {
return request({ return request({
url: '/system/testCase/getCaseIdList', url: '/system/testCase/getCaseIdList',
...@@ -218,23 +218,21 @@ export function geTaskCase(data) { ...@@ -218,23 +218,21 @@ export function geTaskCase(data) {
}) })
} }
/** /**
*提交确认表单 *提交确认表单
*/ */
export function taskImageSubmit(data) { export function taskImageSubmit(data) {
return request({ return request({
url: '/car/test/task/submit', url: '/car/test/task/submit',
method: 'post', method: 'post',
data data
}) })
} }
/** /**
* 获取试验场景 * 获取试验场景
* @param {*} data * @param {*} data
* @returns * @returns
*/ */
export function getScenarioList(data) { export function getScenarioList(data) {
return request({ return request({
...@@ -246,8 +244,8 @@ export function getScenarioList(data) { ...@@ -246,8 +244,8 @@ export function getScenarioList(data) {
/** /**
* 获取试验场景下的测试用例 * 获取试验场景下的测试用例
* @param {*} data * @param {*} data
* @returns * @returns
*/ */
export function getCaseByScenario(data) { export function getCaseByScenario(data) {
return request({ return request({
......
import request from '@/utils/request' import request from '@/utils/request'
export function testDetail(data) { export function testDetail(data) {
return request({ return request({
url: '/car/test/task/getById', url: '/car/test/task/getById',
method: 'post', method: 'post',
data data
}) })
} }
export function testConfirm(data) { export function testConfirm(data) {
return request({ return request({
url: '/car/test/task/confirm', url: '/car/test/task/confirm',
method: 'post', method: 'post',
data data
}) })
} }
\ No newline at end of file
...@@ -392,6 +392,6 @@ aside { ...@@ -392,6 +392,6 @@ aside {
.el-input__inner { .el-input__inner {
font-family: 微软雅黑; font-family: 微软雅黑;
} }
.el-tabs__item{ .el-tabs__item {
font-size: 16px; font-size: 16px;
} }
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
color: #f9a221; color: #f9a221;
} }
.taskLeader { .taskLeader {
width:120px; width: 120px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
......
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
.el-collapse-item__header { .el-collapse-item__header {
background-color: #f2f2f2 !important; background-color: #f2f2f2 !important;
height: auto; height: auto;
padding-left:13px; padding-left: 13px;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
padding: 10px; padding: 10px;
......
...@@ -43,7 +43,12 @@ ...@@ -43,7 +43,12 @@
<template v-if="fileSize"> 且不得超过{{ fileSize }}MB </template> <template v-if="fileSize"> 且不得超过{{ fileSize }}MB </template>
</div> </div>
<el-dialog :visible.sync="dialogVisible" width="800" append-to-body :close-on-click-modal="false"> <el-dialog
:visible.sync="dialogVisible"
width="800"
append-to-body
:close-on-click-modal="false"
>
<img <img
:src="dialogImageUrl" :src="dialogImageUrl"
style="display: block; max-width: 100%; margin: 0 auto" style="display: block; max-width: 100%; margin: 0 auto"
...@@ -146,7 +151,7 @@ export default { ...@@ -146,7 +151,7 @@ export default {
if (file.name.lastIndexOf('.') > -1) { if (file.name.lastIndexOf('.') > -1) {
fileExtension = file.name.slice(file.name.lastIndexOf('.') + 1) fileExtension = file.name.slice(file.name.lastIndexOf('.') + 1)
console.log('21212',fileExtension) console.log('21212', fileExtension)
} }
isImg = this.fileType.some(type => { isImg = this.fileType.some(type => {
// if (file.type.indexOf(type) > -1) return true // if (file.type.indexOf(type) > -1) return true
...@@ -160,7 +165,7 @@ export default { ...@@ -160,7 +165,7 @@ export default {
if (!isImg) { if (!isImg) {
this.$modal.msgError( this.$modal.msgError(
`文件格式不正确, 请上传${this.fileType.join('/')}图片格式文件!` `文件格式不正确, 请上传${this.fileType.join('/')}图片格式文件!`
) )
return false return false
} }
...@@ -185,7 +190,7 @@ export default { ...@@ -185,7 +190,7 @@ export default {
if (res.code === 200) { if (res.code === 200) {
// const Image = process.env.VUE_APP_IMAGE_API + res.url // const Image = process.env.VUE_APP_IMAGE_API + res.url
this.uploadList.push({ name: res.originalFilename, url: res.url }) this.uploadList.push({ name: res.originalFilename, url: res.url })
console.log(this.uploadList); console.log(this.uploadList)
this.uploadedSuccessfully() this.uploadedSuccessfully()
} else { } else {
this.number-- this.number--
......
...@@ -10,7 +10,12 @@ empty ...@@ -10,7 +10,12 @@ empty
placeholder="输入标准关键词" placeholder="输入标准关键词"
@keyup.enter.native="search()" @keyup.enter.native="search()"
> >
<i class="el-icon-search el-input__icon" @click="search()" slot="suffix"> </i> <i
class="el-icon-search el-input__icon"
@click="search()"
slot="suffix"
>
</i>
</el-input> </el-input>
<ul class="select-list"> <ul class="select-list">
<template v-for="item in standardList"> <template v-for="item in standardList">
...@@ -72,7 +77,7 @@ export default { ...@@ -72,7 +77,7 @@ export default {
methods: { methods: {
search() { search() {
this.queryParams.pageNum = 1 this.queryParams.pageNum = 1
this.$store.dispatch('standard/setStandardList',this.queryParams.name) this.$store.dispatch('standard/setStandardList', this.queryParams.name)
}, },
selectStandard(value) { selectStandard(value) {
this.$store.dispatch('standard/setStandard', value) this.$store.dispatch('standard/setStandard', value)
......
...@@ -63,11 +63,10 @@ export default { ...@@ -63,11 +63,10 @@ export default {
// MessageWaring // MessageWaring
}, },
data() { data() {
return { return {}
}
}, },
computed: { computed: {
...mapGetters(['sidebar', 'device', 'name','avatar']), ...mapGetters(['sidebar', 'device', 'name', 'avatar']),
setting: { setting: {
get() { get() {
return this.$store.state.settings.showSettings return this.$store.state.settings.showSettings
......
...@@ -9,7 +9,11 @@ ...@@ -9,7 +9,11 @@
}" }"
> >
<logo v-if="showLogo" :collapse="isCollapse" /> <logo v-if="showLogo" :collapse="isCollapse" />
<el-scrollbar :class="settings.sideTheme" style="padding-bottom: 30px;" 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"
......
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
// path: this.formPath[0] // path: this.formPath[0]
// }) // })
// } else { // } else {
this.$router.back() this.$router.back()
// } // }
} }
} }
......
import {getTestScenario} from "@/api/scenario/scenario"; import { getTestScenario } from '@/api/scenario/scenario'
const testScenario = { const testScenario = {
namespaced: true, namespaced: true,
...@@ -8,7 +8,7 @@ const testScenario = { ...@@ -8,7 +8,7 @@ const testScenario = {
mutations: { mutations: {
SET_TEST_SCENARIO_LIST: (state, testScenarioList) => { SET_TEST_SCENARIO_LIST: (state, testScenarioList) => {
state.testScenarioList = testScenarioList state.testScenarioList = testScenarioList
} }
}, },
...@@ -16,14 +16,12 @@ const testScenario = { ...@@ -16,14 +16,12 @@ const testScenario = {
setTestScenarioList({ commit }) { setTestScenarioList({ commit }) {
getTestScenario({}).then(res => { getTestScenario({}).then(res => {
if (res.code === 200) { if (res.code === 200) {
const obj = res.data.map( const obj = res.data.map(({ id, testScenario, ...rest }) => ({
({ id, testScenario, ...rest }) => ({ label: testScenario,
label: testScenario, value: parseInt(id),
value: parseInt(id), check: false,
check: false, ...rest
...rest }))
})
)
console.log('测试场景', obj) console.log('测试场景', obj)
commit('SET_TEST_SCENARIO_LIST', obj) commit('SET_TEST_SCENARIO_LIST', obj)
} }
......
import Vue from 'vue' import Vue from 'vue'
import ElementUI from 'element-ui'; import ElementUI from 'element-ui'
Vue.component('el-input', { Vue.component('el-input', {
extends: ElementUI.Input, extends: ElementUI.Input,
created() { created() {
this.$on('change', (value) => { this.$on('change', value => {
this.$emit('input', value.replace(/\s+/g,"")) this.$emit('input', value.replace(/\s+/g, ''))
}) })
} }
}) })
...@@ -16,11 +16,11 @@ export function getRows(i) { ...@@ -16,11 +16,11 @@ export function getRows(i) {
* @param {*} i 章节号 * @param {*} i 章节号
*/ */
export function getRows3(i) { export function getRows3(i) {
let n = 0 let n = 0
if (i.testCaseList) { if (i.testCaseList) {
n = i.testCaseList.length n = i.testCaseList.length
} }
return n + 1 return n + 1
} }
/** /**
......
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
}, },
methods: { methods: {
getTestScenar() { getTestScenar() {
listTestScenar({ pageNum: 1, pageSize: 999 }).then(res => { listTestScenar().then(res => {
this.testScenarList = res.rows this.testScenarList = res.rows
}) })
}, },
......
This diff is collapsed.
...@@ -528,7 +528,7 @@ export default { ...@@ -528,7 +528,7 @@ export default {
handleStatusChange(row) { handleStatusChange(row) {
const text = row.status === '0' ? '启用' : '停用' const text = row.status === '0' ? '启用' : '停用'
this.$modal this.$modal
.confirm('确认要"' + text + '""' + row.roleName + '"角色吗?' ,{ .confirm('确认要"' + text + '""' + row.roleName + '"角色吗?', {
type: 'warning', type: 'warning',
title: text, title: text,
closeOnClickModal: false closeOnClickModal: false
......
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