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

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

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