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

fix: 70670 70667 70667

parent 1ce23e25
......@@ -21,12 +21,14 @@ const standard = {
},
setStandardList({ commit }, name) {
getStandardList({
keyword: name ? name : '',
keyWord: name ? name : '',
pageNum: 1,
pageSize: 9999
}).then(res => {
if (res.code === 200) {
standard.state.standard = res.rows[0].id
if (res.rows.length) {
standard.state.standard = res.rows[0].id
}
commit('SET_STANDARD_LIST', res.rows)
}
})
......
......@@ -230,9 +230,12 @@
<div class="img-label" style="margin-top: 20px">选择测试场景</div>
</div>
<!-- 测试场景 -->
<div class="test-scenario-container">
<div
v-if="model.testScenarioList.length > 0"
class="test-scenario-container"
>
<div
v-for="(item, index) in testScenarioList"
v-for="(item, index) in model.testScenarioList"
:key="index"
:class="{
'test-scenario': item.check === false,
......@@ -242,7 +245,6 @@
>
<div>{{ item.label }}</div>
</div>
<!-- </div> -->
</div>
</div>
<!--签字确认-->
......@@ -319,36 +321,13 @@ export default {
return {
isShow: true,
task: {},
auditRequirement: 0,
testScenarioList: [
{ value: 0, label: 'TBOX-蜂窝以太网接口', check: false },
{ value: 1, label: 'WiFi AP接口', check: false },
{ value: 2, label: 'WiFi Client接口', check: false },
{ value: 3, label: '充电以太网接口', check: false },
{ value: 4, label: 'CAN 诊断接口(OBD)', check: false },
{ value: 5, label: '以太网诊断接口(OBD)', check: false },
{ value: 6, label: '车载摄像头以太网接口(无线)', check: false },
{ value: 7, label: '第三方应用软件', check: false },
{ value: 8, label: '远程控车应用', check: false },
{ value: 9, label: 'USB接口', check: false },
{ value: 10, label: 'XCB标定', check: false },
{ value: 11, label: 'CCP标定', check: false },
{ value: 12, label: '安全启动', check: false },
{ value: 13, label: '远程控车', check: false },
{ value: 14, label: 'V2X', check: false },
{ value: 15, label: 'BT', check: false },
{ value: 16, label: 'BLE', check: false },
{ value: 17, label: 'NFC', check: false },
{ value: 18, label: '射频钥匙', check: false },
{ value: 19, label: '软件升级', check: false },
{ value: 20, label: 'ECU固体', check: false }
],
checkTestScenarioList: [],
model: {
carReviewTask: {},
reviewSceneChangeTasks: {},
detailsList: []
detailsList: [],
testScenarioList: []
},
selectedScenario: [],
columns: [],
ruleForm: {
enterpriseLeader: '',
......@@ -400,6 +379,16 @@ export default {
? process.env.VUE_APP_IMAGE_API + imgs[1]
: ''
}
if (this.model.testScenarioList.length > 0) {
this.model.testScenarioList = this.model.testScenarioList.map(
({ id, testScenario, ...rest }) => ({
label: testScenario,
value: parseInt(id),
check: false,
...rest
})
)
}
} else {
this.$modal.msgError(res.msg)
}
......@@ -433,6 +422,7 @@ export default {
],
taskId: this.taskId
}
formData.testScenarioList = this.selectedScenario
carTaskSubmit(formData).then(res => {
if (res.code === 200) {
this.$modal.msgSuccess('确认提交成功')
......@@ -444,21 +434,17 @@ export default {
}
})
},
handleTestScenario(item) {
// 查看item.value在this.checkTestScenarioList里面存不存在
// 存在则删除
if (this.checkTestScenarioList.includes(item.value)) {
this.checkTestScenarioList.splice(
this.checkTestScenarioList.indexOf(item.label),
if (this.selectedScenario.includes(item.value)) {
this.selectedScenario.splice(
this.selectedScenario.indexOf(item.value),
1
)
item.check = false
} else {
item.check = true
this.checkTestScenarioList.push(item.value)
this.selectedScenario.push(item.value)
}
console.log('李斯特', this.checkTestScenarioList)
},
openAll() {
this.activeNames = this.model.carReviewTask.standard.map(i => {
......
......@@ -214,7 +214,14 @@
/>
<!-- 添加或修改参数配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-dialog
:title="title"
:visible.sync="open"
width="500px"
:close-on-click-modal="false"
:close-on-press-escape="false"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="参数名称" prop="configName">
<el-input v-model="form.configName" placeholder="请输入参数名称" />
......
......@@ -145,7 +145,14 @@
</el-table>
<!-- 添加或修改部门对话框 -->
<el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
<el-dialog
:title="title"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="open"
width="600px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-row>
<el-col v-if="form.parentId !== 0" :span="24">
......
......@@ -204,7 +204,14 @@
/>
<!-- 添加或修改参数配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-dialog
:title="title"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="open"
width="500px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="字典类型">
<el-input v-model="form.dictType" :disabled="true" />
......
......@@ -217,7 +217,14 @@
/>
<!-- 添加或修改参数配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-dialog
:title="title"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="open"
width="500px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="字典名称" prop="dictName">
<el-input v-model="form.dictName" placeholder="请输入字典名称" />
......
......@@ -157,7 +157,14 @@
</el-table>
<!-- 添加或修改菜单对话框 -->
<el-dialog :title="title" :visible.sync="open" width="680px" append-to-body>
<el-dialog
:title="title"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="open"
width="680px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-row>
<el-col :span="24">
......
......@@ -183,7 +183,14 @@
/>
<!-- 添加或修改公告对话框 -->
<el-dialog :title="title" :visible.sync="open" width="780px" append-to-body>
<el-dialog
:title="title"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="open"
width="780px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-row>
<el-col :span="12">
......
......@@ -169,7 +169,14 @@
/>
<!-- 添加或修改岗位对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-dialog
:title="title"
:visible.sync="open"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="500px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="岗位名称" prop="postName">
<el-input v-model="form.postName" placeholder="请输入岗位名称" />
......
......@@ -224,7 +224,14 @@
/>
<!-- 添加或修改角色配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-dialog
:title="title"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="open"
width="500px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="角色名称" prop="roleName">
<el-input v-model="form.roleName" placeholder="请输入角色名称" />
......@@ -303,6 +310,8 @@
<el-dialog
:title="title"
:visible.sync="openDataScope"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="500px"
append-to-body
>
......
......@@ -3,6 +3,8 @@
<el-dialog
title="选择用户"
:visible.sync="visible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="800px"
top="5vh"
append-to-body
......
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