Commit ac6c9d5a authored by 高滢's avatar 高滢

Merge remote-tracking branch 'origin/develop' into develop

parents 2f9ea143 fcfaba08
...@@ -5,7 +5,7 @@ VUE_APP_TITLE = 周期性检测平台 ...@@ -5,7 +5,7 @@ VUE_APP_TITLE = 周期性检测平台
ENV = 'production' ENV = 'production'
# 中汽研安全检测平台管理系统/生产环境 # 中汽研安全检测平台管理系统/生产环境
VUE_APP_BASE_API = 'http://10.12.48.79:22032' VUE_APP_BASE_API = '/prod-api'
# 图片服务器地址 # 图片服务器地址
VUE_APP_IMAGE_API = http://10.12.48.79:22038 VUE_APP_IMAGE_API =''
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
保存当前条目 保存当前条目
</footer-button> </footer-button>
<footer-button type="primary" icon="check" @click="submitFrom()" <footer-button type="primary" icon="check" @click="submitFrom()"
>提交表</footer-button >提交表</footer-button
> >
</div> </div>
</div> </div>
...@@ -620,7 +620,7 @@ export default { ...@@ -620,7 +620,7 @@ export default {
this.handleCircle(0) this.handleCircle(0)
} }
this.oldForm = this.form this.oldForm = this.form
this.$modal.msgSuccess('提交表成功') this.$modal.msgSuccess('提交表成功')
} else { } else {
this.$modal.msgError(res.msg) this.$modal.msgError(res.msg)
} }
......
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
保存当前条目 保存当前条目
</footer-button> </footer-button>
<footer-button type="primary" icon="check" @click="submitFrom()" <footer-button type="primary" icon="check" @click="submitFrom()"
>提交表</footer-button >提交表</footer-button
> >
</div> </div>
</div> </div>
...@@ -630,7 +630,7 @@ export default { ...@@ -630,7 +630,7 @@ export default {
this.handleCircle(0) this.handleCircle(0)
} }
this.oldForm = this.form this.oldForm = this.form
this.$modal.msgSuccess('提交表成功') this.$modal.msgSuccess('提交表成功')
} else { } else {
this.$modal.msgError(res.msg) this.$modal.msgError(res.msg)
} }
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="邮编" label="企业邮编"
prop="postcode" prop="postcode"
min-width="200" min-width="200"
align="left" align="left"
...@@ -215,7 +215,10 @@ export default { ...@@ -215,7 +215,10 @@ export default {
methods: { methods: {
handleDelete(id) { handleDelete(id) {
this.$modal this.$modal
.confirm('是否确定删除该条数据?', {
title: '操作确认',
closeOnClickModal: false
})
.then(() => { .then(() => {
this.model.uuid = id this.model.uuid = id
this.model.destroy(() => { this.model.destroy(() => {
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
</div> </div>
<div class="tip-navigation"> <div class="tip-navigation">
<div class="tip"></div> <div class="tip"></div>
<div class="tip-title">小组信息</div> <div class="tip-title">检验小组</div>
</div> </div>
<div class="global-left-margin"> <div class="global-left-margin">
<el-table <el-table
...@@ -197,10 +197,16 @@ ...@@ -197,10 +197,16 @@
<el-table-column label="所属部门" align="left" prop="dept"> <el-table-column label="所属部门" align="left" prop="dept">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span v-if="row.userId === ''">-</span> <span v-if="row.userId === ''">-</span>
<span v-else>{{ row.dept.deptName }}</span> <span v-else-if="row.dept === null"> - </span>
<span v-else>{{ row.dept.deptName || '-' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="orderIndex" label="排序"> <el-table-column
prop="orderIndex"
label="排序"
width="160"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.userId !== ''" class="sortable-handle"> <div v-if="scope.row.userId !== ''" class="sortable-handle">
<icon-park type="sort-three" size="14" fill="#F9A221" /> <icon-park type="sort-three" size="14" fill="#F9A221" />
...@@ -213,7 +219,7 @@ ...@@ -213,7 +219,7 @@
<el-table-column <el-table-column
width="160" width="160"
label="操作" label="操作"
align="left" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
> >
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -274,7 +280,7 @@ ...@@ -274,7 +280,7 @@
<!-- 零件样品信息 --> <!-- 零件样品信息 -->
<div class="tip-navigation"> <div class="tip-navigation">
<div class="tip"></div> <div class="tip"></div>
<div class="tip-title">零件样品信息</div> <div class="tip-title">件样品信息</div>
</div> </div>
<PartInfo <PartInfo
v-model="partInfoArr" v-model="partInfoArr"
...@@ -420,12 +426,12 @@ export default { ...@@ -420,12 +426,12 @@ export default {
// { value: 2, label: '汽车信息安全技术要求', check: false } // { value: 2, label: '汽车信息安全技术要求', check: false }
], ],
testScenarioList: [ testScenarioList: [
{ value: 1, label: 'TBOX-蜂窝以太网接口', check: false }, { value: 0, label: 'TBOX-蜂窝以太网接口', check: false },
{ value: 2, label: 'WiFi AP接口', check: false }, { value: 1, label: 'WiFi AP接口', check: false },
{ value: 3, label: 'WiFi Client接口', check: false }, { value: 2, label: 'WiFi Client接口', check: false },
{ value: 4, label: '充电以太网接口', check: false }, { value: 3, label: '充电以太网接口', check: false },
{ value: 5, label: 'CAN 诊断接口(OBD)', check: false }, { value: 4, label: 'CAN 诊断接口(OBD)', check: false },
{ value: 6, label: '以太网诊断接口(OBD)', check: false }, { value: 5, label: '以太网诊断接口(OBD)', check: false },
{ value: 6, label: '车载摄像头以太网接口(无线)', check: false }, { value: 6, label: '车载摄像头以太网接口(无线)', check: false },
{ value: 7, label: '第三方应用软件', check: false }, { value: 7, label: '第三方应用软件', check: false },
{ value: 8, label: '远程控车应用', check: false }, { value: 8, label: '远程控车应用', check: false },
...@@ -439,8 +445,8 @@ export default { ...@@ -439,8 +445,8 @@ export default {
{ value: 16, label: 'BLE', check: false }, { value: 16, label: 'BLE', check: false },
{ value: 17, label: 'NFC', check: false }, { value: 17, label: 'NFC', check: false },
{ value: 18, label: '射频钥匙', check: false }, { value: 18, label: '射频钥匙', check: false },
{ value: 20, label: '软件升级', check: false }, { value: 19, label: '软件升级', check: false },
{ value: 21, label: 'ECU固件', check: false } { value: 20, label: 'ECU固件', check: false }
], ],
rules: { rules: {
testScenarioList: [ testScenarioList: [
...@@ -1081,7 +1087,11 @@ export default { ...@@ -1081,7 +1087,11 @@ export default {
} }
this.taskCreateRequest.taskList = this.model.inspectionItemList this.taskCreateRequest.taskList = this.model.inspectionItemList
this.tableData.forEach(item => { this.tableData.forEach(item => {
if (item.dept !== null) {
item.deptName = item.dept.deptName item.deptName = item.dept.deptName
} else {
item.deptName = ''
}
item.name = item.nickName item.name = item.nickName
}) })
this.taskCreateRequest.auditors = this.tableData this.taskCreateRequest.auditors = this.tableData
...@@ -1223,6 +1233,7 @@ export default { ...@@ -1223,6 +1233,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.add-number { .add-number {
width: 100%; width: 100%;
margin-bottom: 18px;
} }
.global-left-margin { .global-left-margin {
padding-left: 18px; padding-left: 18px;
...@@ -1243,7 +1254,9 @@ export default { ...@@ -1243,7 +1254,9 @@ export default {
color: #1a6fd7; color: #1a6fd7;
} }
} }
.sortable-handle {
cursor: move;
}
.test-scenario-container { .test-scenario-container {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
......
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
<el-table-column label="所属部门" align="left" prop="dept"> <el-table-column label="所属部门" align="left" prop="dept">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span v-if="row.userId === ''">-</span> <span v-if="row.userId === ''">-</span>
<span v-else>{{ row.deptName }}</span> <span v-else>{{ row.deptName || '-' }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -353,13 +353,13 @@ export default { ...@@ -353,13 +353,13 @@ export default {
// { value: 2, label: '汽车信息安全技术要求', check: false } // { value: 2, label: '汽车信息安全技术要求', check: false }
], ],
testScenarioList: [ testScenarioList: [
{ value: 0, label: '文档审核', check: false }, { value: 0, label: 'TBOX-蜂窝以太网接口', check: false },
{ value: 1, label: 'TBOX-蜂窝以太网接口', check: false }, { value: 1, label: 'WiFi AP接口', check: false },
{ value: 2, label: 'WiFi AP接口', check: false }, { value: 2, label: 'WiFi Client接口', check: false },
{ value: 3, label: 'WiFi Client接口', check: false }, { value: 3, label: '充电以太网接口', check: false },
{ value: 4, label: '充电以太网接口', check: false }, { value: 4, label: 'CAN 诊断接口(OBD)', check: false },
{ value: 5, label: 'CAN 诊断接口(OBD)', check: false }, { value: 5, label: '以太网诊断接口(OBD)', check: false },
{ value: 6, label: '以太网诊断接口(OBD)', check: false }, { value: 6, label: '车载摄像头以太网接口(无线)', check: false },
{ value: 7, label: '第三方应用软件', check: false }, { value: 7, label: '第三方应用软件', check: false },
{ value: 8, label: '远程控车应用', check: false }, { value: 8, label: '远程控车应用', check: false },
{ value: 9, label: 'USB接口', check: false }, { value: 9, label: 'USB接口', check: false },
...@@ -372,9 +372,8 @@ export default { ...@@ -372,9 +372,8 @@ export default {
{ value: 16, label: 'BLE', check: false }, { value: 16, label: 'BLE', check: false },
{ value: 17, label: 'NFC', check: false }, { value: 17, label: 'NFC', check: false },
{ value: 18, label: '射频钥匙', check: false }, { value: 18, label: '射频钥匙', check: false },
{ value: 19, label: '远程控车', check: false }, { value: 19, label: '软件升级', check: false },
{ value: 20, label: '软件升级', check: false }, { value: 20, label: 'ECU固件', check: false }
{ value: 21, label: 'ECU固件', check: false }
], ],
rules: { rules: {
testScenarioList: [ testScenarioList: [
...@@ -581,21 +580,22 @@ export default { ...@@ -581,21 +580,22 @@ export default {
// 小组信息 // 小组信息
this.tableData = this.taskDetail.auditors this.tableData = this.taskDetail.auditors
// 整车样品信息 // 整车样品信息
if (this.taskDetail.completeVehicleSample !== null) {
this.carInfoArr = this.taskDetail.completeVehicleSample this.carInfoArr = this.taskDetail.completeVehicleSample
if (this.carInfoArr.length > 0) {
this.carInfoArr.forEach(item => { this.carInfoArr.forEach(item => {
item.sampleId = item.id item.sampleId = item.id
item.flag = 0 item.flag = 0
}) })
} }
// 零件样品信息 // 零件样品信息
if (this.taskDetail.partVehicleSample !== null) {
this.partInfoArr = this.taskDetail.partVehicleSample this.partInfoArr = this.taskDetail.partVehicleSample
if (this.partInfoArr.length > 0) {
this.partInfoArr.forEach(item => { this.partInfoArr.forEach(item => {
item.sampleId = item.id item.sampleId = item.id
item.flag = 1 item.flag = 1
}) })
} }
if ( if (
this.taskDetail.taskList.split(',').length === 1 && this.taskDetail.taskList.split(',').length === 1 &&
this.taskDetail.taskList.split(',').includes('trfis') this.taskDetail.taskList.split(',').includes('trfis')
......
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