Commit 4a7f0271 authored by mzx's avatar mzx

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

 Conflicts:
	src/views/setting/scene/index.vue
parents d75cf362 9ea884d9
...@@ -412,6 +412,7 @@ ...@@ -412,6 +412,7 @@
.table { .table {
border-collapse: collapse; border-collapse: collapse;
width: 100%; width: 100%;
table-layout: fixed;
thead { thead {
background-color: #e7e6e6; background-color: #e7e6e6;
} }
...@@ -421,7 +422,7 @@ ...@@ -421,7 +422,7 @@
border: 1px solid #ebebeb; border: 1px solid #ebebeb;
padding: 8px; padding: 8px;
text-align: left; text-align: left;
width: 300px; width: 40%;
height: 100%; height: 100%;
} }
} }
...@@ -692,3 +693,18 @@ ...@@ -692,3 +693,18 @@
margin: 0 10px; margin: 0 10px;
} }
} }
.label-required::before {
content: '*';
color: #db4747;
margin-right: 4px;
}
.investigate-result {
width: 90px !important;
text-align: center !important;
}
.written-by
{
width: 120px !important;
// text-align: center !important;
}
...@@ -38,6 +38,17 @@ const permission = { ...@@ -38,6 +38,17 @@ const permission = {
const rdata = JSON.parse(JSON.stringify(res.data)) const rdata = JSON.parse(JSON.stringify(res.data))
const sidebarRoutes = filterAsyncRouter(sdata) const sidebarRoutes = filterAsyncRouter(sdata)
const rewriteRoutes = filterAsyncRouter(rdata, false, true) const rewriteRoutes = filterAsyncRouter(rdata, false, true)
rewriteRoutes.forEach(item => {
if (item.children && item.children.length > 0){
for (let i = 0; i < item.children.length; i++) {
// 将parentName字段放入meta中
if (item.children[i].secondaryMenuName) {
item.children[i].meta['secondaryMenuName'] = item.children[i].secondaryMenuName
// item.children[i - 1].meta['activeMenu'] = `${item.path === '/' ? '' : item.path}/${item.children[i].path}`
}
}
}
})
const asyncRoutes = filterDynamicRoutes(dynamicRoutes) const asyncRoutes = filterDynamicRoutes(dynamicRoutes)
rewriteRoutes.push({ path: '*', redirect: '/404', hidden: true }) rewriteRoutes.push({ path: '*', redirect: '/404', hidden: true })
router.addRoutes(asyncRoutes) router.addRoutes(asyncRoutes)
......
...@@ -88,8 +88,8 @@ ...@@ -88,8 +88,8 @@
<tr> <tr>
<th>审查要点</th> <th>审查要点</th>
<th>审查细则</th> <th>审查细则</th>
<th>审查结果</th> <th class="investigate-result">审查结果</th>
<th>填写人</th> <th class="written-by">填写人</th>
</tr> </tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList"> <template v-for="(keyPoint, keyPointKey) in item.keyPointList">
<tr :key="keyPointKey"> <tr :key="keyPointKey">
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
> >
<tr :key="reviewDetailKey"> <tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td> <td align="center">{{ reviewDetail.text }}</td>
<td align="center"> <td align="center" class="investigate-result">
{{ {{
reviewDetail.result reviewDetail.result
? reviewDetail.result.passed === null ? reviewDetail.result.passed === null
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
: '__' : '__'
}} }}
</td> </td>
<td align="center"> <td align="center" class="written-by">
{{ {{
reviewDetail.result reviewDetail.result
? reviewDetail.result.userName ? reviewDetail.result.userName
......
...@@ -169,9 +169,9 @@ ...@@ -169,9 +169,9 @@
<tr> <tr>
<th>审查要点</th> <th>审查要点</th>
<th>审查细则</th> <th>审查细则</th>
<th>审查结果</th> <th class="investigate-result">审查结果</th>
<th>记录</th> <th>记录</th>
<th>填写人</th> <th class="written-by">填写人</th>
</tr> </tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList"> <template v-for="(keyPoint, keyPointKey) in item.keyPointList">
<tr :key="keyPointKey"> <tr :key="keyPointKey">
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
> >
<tr :key="reviewDetailKey"> <tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td> <td align="center">{{ reviewDetail.text }}</td>
<td align="center"> <td align="center" class="investigate-result">
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
<el-tag <el-tag
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
</div> </div>
<div v-else>__</div> <div v-else>__</div>
</td> </td>
<td align="center"> <td align="center" class="written-by">
{{ {{
reviewDetail.result reviewDetail.result
? reviewDetail.result.userName ? reviewDetail.result.userName
...@@ -300,7 +300,7 @@ export default { ...@@ -300,7 +300,7 @@ export default {
auditRequirement: 0, auditRequirement: 0,
testScenarioList: [ testScenarioList: [
{ value: 0, label: 'TBOX-蜂窝以太网接口', check: false }, { value: 0, label: 'TBOX-蜂窝以太网接口', check: false },
{ value: 1, label: 'WiFi API接口', check: false }, { value: 1, label: 'WiFi AP接口', check: false },
{ value: 2, label: 'WiFi Client接口', check: false }, { value: 2, label: 'WiFi Client接口', check: false },
{ value: 3, label: '充电以太网接口', check: false }, { value: 3, label: '充电以太网接口', check: false },
{ value: 4, label: 'CAN 诊断接口(OBD)', check: false }, { value: 4, label: 'CAN 诊断接口(OBD)', check: false },
...@@ -396,21 +396,6 @@ export default { ...@@ -396,21 +396,6 @@ export default {
if (result.code === 200) { if (result.code === 200) {
this.task = result.data this.task = result.data
} }
},
handleTestScenario(item) {
// 查看item.value在this.checkTestScenarioList里面存不存在
// 存在则删除
if (this.checkTestScenarioList.includes(item.value)) {
this.checkTestScenarioList.splice(
this.checkTestScenarioList.indexOf(item.label),
1
)
item.check = false
} else {
item.check = true
this.checkTestScenarioList.push(item.value)
}
console.log('李斯特', this.checkTestScenarioList)
} }
} }
} }
......
...@@ -169,8 +169,8 @@ ...@@ -169,8 +169,8 @@
<tr> <tr>
<th>审查要点</th> <th>审查要点</th>
<th>审查细则</th> <th>审查细则</th>
<th>审查结果</th> <th class="investigate-result">审查结果</th>
<th>填写人</th> <th class="written-by">填写人</th>
</tr> </tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList"> <template v-for="(keyPoint, keyPointKey) in item.keyPointList">
<tr :key="keyPointKey"> <tr :key="keyPointKey">
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
> >
<tr :key="reviewDetailKey"> <tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td> <td align="center">{{ reviewDetail.text }}</td>
<td align="center"> <td align="center" class="investigate-result">
<el-tag <el-tag
v-if="reviewDetail.result.passed === 1" v-if="reviewDetail.result.passed === 1"
size="medium" size="medium"
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
>不符合</el-tag >不符合</el-tag
> >
</td> </td>
<td align="center"> <td align="center" class="written-by">
{{ {{
reviewDetail.result reviewDetail.result
? reviewDetail.result.userName ? reviewDetail.result.userName
...@@ -221,13 +221,9 @@ ...@@ -221,13 +221,9 @@
<span class="title-i"></span> <span class="title-i"></span>
<span class="title-content">确定车型试验范围</span> <span class="title-content">确定车型试验范围</span>
</div> </div>
<div class="img-item">
<!-- <div class="el-form-item el-form-item--medium"> <div class="img-label" style="margin-top: 20px">选择测试场景</div>
<label for="inspectionLeader" class="el-form-item__label" </div>
>选择测试场景</label
>
<div class="el-form-item__content">
</div> -->
<!-- 测试场景 --> <!-- 测试场景 -->
<div class="test-scenario-container"> <div class="test-scenario-container">
<div <div
...@@ -253,7 +249,7 @@ ...@@ -253,7 +249,7 @@
<div class="img-display"> <div class="img-display">
<div class="img-item"> <div class="img-item">
<div class="img-label">车企负责人</div> <div class="img-label label-required">车企负责人</div>
<img <img
v-if="ruleForm.enterpriseLeader" v-if="ruleForm.enterpriseLeader"
class="img" class="img"
...@@ -265,7 +261,7 @@ ...@@ -265,7 +261,7 @@
</div> </div>
</div> </div>
<div class="img-item"> <div class="img-item">
<div class="img-label">检验负责人</div> <div class="img-label label-required">检验负责人</div>
<img <img
v-if="ruleForm.inspectionLeader" v-if="ruleForm.inspectionLeader"
class="img" class="img"
...@@ -317,7 +313,7 @@ export default { ...@@ -317,7 +313,7 @@ export default {
auditRequirement: 0, auditRequirement: 0,
testScenarioList: [ testScenarioList: [
{ value: 0, label: 'TBOX-蜂窝以太网接口', check: false }, { value: 0, label: 'TBOX-蜂窝以太网接口', check: false },
{ value: 1, label: 'WiFi API接口', check: false }, { value: 1, label: 'WiFi AP接口', check: false },
{ value: 2, label: 'WiFi Client接口', check: false }, { value: 2, label: 'WiFi Client接口', check: false },
{ value: 3, label: '充电以太网接口', check: false }, { value: 3, label: '充电以太网接口', check: false },
{ value: 4, label: 'CAN 诊断接口(OBD)', check: false }, { value: 4, label: 'CAN 诊断接口(OBD)', check: false },
...@@ -409,14 +405,14 @@ export default { ...@@ -409,14 +405,14 @@ export default {
}, },
/* 返回跳转*/ /* 返回跳转*/
goToProcessedReview() { goToProcessedReview() {
if (!this.ruleForm.enterpriseLeader) { // if (!this.ruleForm.enterpriseLeader) {
this.$message.error('请车企负责人签字') // this.$message.error('请车企负责人签字')
return // return
} // }
if (!this.ruleForm.inspectionLeader) { // if (!this.ruleForm.inspectionLeader) {
this.$message.error('请检验负责人签字') // this.$message.error('请检验负责人签字')
return // return
} // }
this.ruleForm.taskId = this.taskId this.ruleForm.taskId = this.taskId
const formData = { const formData = {
imagesUrl: [ imagesUrl: [
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<th>审查细则</th> <th>审查细则</th>
<th>审查结果</th> <th>审查结果</th>
<th>记录</th> <th>记录</th>
<th>填写人</th> <th class="written-by">填写人</th>
</tr> </tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList"> <template v-for="(keyPoint, keyPointKey) in item.keyPointList">
<tr :key="keyPointKey"> <tr :key="keyPointKey">
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
> >
<tr :key="reviewDetailKey"> <tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td> <td align="center">{{ reviewDetail.text }}</td>
<td align="center"> <td align="center" class="investigate-result">
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
<el-tag <el-tag
v-if="reviewDetail.result.passed === 1" v-if="reviewDetail.result.passed === 1"
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
</div> </div>
<div v-else>__</div> <div v-else>__</div>
</td> </td>
<td align="center"> <td align="center" class="written-by">
{{ {{
reviewDetail.result reviewDetail.result
? reviewDetail.result.userName ? reviewDetail.result.userName
......
...@@ -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)
} }
...@@ -638,9 +638,7 @@ export default { ...@@ -638,9 +638,7 @@ export default {
carReviewTaskConfirm({ carReviewTaskConfirm({
taskId: this.taskId taskId: this.taskId
}).then(res => { }).then(res => {
this.$router.push({ this.$router.go(-1)
path: '/processing/carReview/vehicle-type?id' + this.taskId
})
}) })
}, },
confirmDetailChange() { confirmDetailChange() {
......
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="所属车企" label="所属车企"
sortable
min-width="210" min-width="210"
prop="enterpriseName" prop="enterpriseName"
align="left" align="left"
...@@ -162,7 +163,6 @@ ...@@ -162,7 +163,6 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<page-button <page-button
v-hasPermi="['setting:standard:update']"
style="margin: 0 auto" style="margin: 0 auto"
icon="edit" icon="edit"
title="修改" title="修改"
......
...@@ -169,8 +169,8 @@ ...@@ -169,8 +169,8 @@
<tr> <tr>
<th>审查要点</th> <th>审查要点</th>
<th>审查细则</th> <th>审查细则</th>
<th>审查结果</th> <th class="investigate-result">审查结果</th>
<th>填写人</th> <th class="written-by">填写人</th>
</tr> </tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList"> <template v-for="(keyPoint, keyPointKey) in item.keyPointList">
<tr :key="keyPointKey"> <tr :key="keyPointKey">
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
> >
<tr :key="reviewDetailKey"> <tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td> <td align="center">{{ reviewDetail.text }}</td>
<td align="center"> <td align="center" class="investigate-result">
<el-tag <el-tag
v-if="reviewDetail.result.passed === 1" v-if="reviewDetail.result.passed === 1"
size="medium" size="medium"
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
>不符合</el-tag >不符合</el-tag
> >
</td> </td>
<td align="center"> <td align="center" class="written-by">
{{ {{
reviewDetail.result reviewDetail.result
? reviewDetail.result.userName ? reviewDetail.result.userName
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
<div class="img-display"> <div class="img-display">
<div class="img-item"> <div class="img-item">
<div class="img-label">车企负责人</div> <div class="img-label label-required">车企负责人</div>
<img <img
v-if="ruleForm.enterpriseLeader" v-if="ruleForm.enterpriseLeader"
class="img" class="img"
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
<div class="img-text">暂无签字</div> <div class="img-text">暂无签字</div>
</div> </div>
</div> </div>
<div class="img-item"> <div class="img-item label-required">
<div class="img-label">检验负责人</div> <div class="img-label">检验负责人</div>
<img <img
v-if="ruleForm.inspectionLeader" v-if="ruleForm.inspectionLeader"
...@@ -348,14 +348,14 @@ export default { ...@@ -348,14 +348,14 @@ export default {
}, },
/* 返回跳转*/ /* 返回跳转*/
goToProcessedReview() { goToProcessedReview() {
if (!this.ruleForm.enterpriseLeader) { // if (!this.ruleForm.enterpriseLeader) {
this.$message.error('请车企负责人签字') // this.$message.error('请车企负责人签字')
return // return
} // }
if (!this.ruleForm.inspectionLeader) { // if (!this.ruleForm.inspectionLeader) {
this.$message.error('请检验负责人签字') // this.$message.error('请检验负责人签字')
return // return
} // }
this.ruleForm.taskId = this.taskId this.ruleForm.taskId = this.taskId
const formData = { const formData = {
imagesUrl: [ imagesUrl: [
......
...@@ -87,8 +87,8 @@ ...@@ -87,8 +87,8 @@
<tr> <tr>
<th>审查要点</th> <th>审查要点</th>
<th>审查细则</th> <th>审查细则</th>
<th>审查结果</th> <th class="investigate-result">审查结果</th>
<th>填写人</th> <th class="written-by">填写人</th>
</tr> </tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList"> <template v-for="(keyPoint, keyPointKey) in item.keyPointList">
<tr :key="keyPointKey"> <tr :key="keyPointKey">
...@@ -103,18 +103,21 @@ ...@@ -103,18 +103,21 @@
> >
<tr :key="reviewDetailKey"> <tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td> <td align="center">{{ reviewDetail.text }}</td>
<td align="center"> <td align="center" class="investigate-result">
{{ <el-tag
reviewDetail.result v-if="reviewDetail.result.passed === 1"
? reviewDetail.result.passed === null size="medium"
? '__' type="success"
: reviewDetail.result.passed === 0 >符合</el-tag
? '不通过' >
: '通过' <el-tag
: '__' v-if="reviewDetail.result.passed === 0"
}} size="medium"
type="danger"
>不符合</el-tag
>
</td> </td>
<td align="center"> <td align="center" class="written-by">
{{ {{
reviewDetail.result reviewDetail.result
? reviewDetail.result.userName ? reviewDetail.result.userName
......
...@@ -169,9 +169,9 @@ ...@@ -169,9 +169,9 @@
<tr> <tr>
<th>审查要点</th> <th>审查要点</th>
<th>审查细则</th> <th>审查细则</th>
<th>审查结果</th> <th class="investigate-result">审查结果</th>
<th>记录</th> <th>记录</th>
<th>填写人</th> <th class="written-by">填写人</th>
</tr> </tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList"> <template v-for="(keyPoint, keyPointKey) in item.keyPointList">
<tr :key="keyPointKey"> <tr :key="keyPointKey">
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
> >
<tr :key="reviewDetailKey"> <tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td> <td align="center">{{ reviewDetail.text }}</td>
<td align="center"> <td align="center" class="investigate-result">
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
<el-tag <el-tag
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
</div> </div>
<div v-else>__</div> <div v-else>__</div>
</td> </td>
<td align="center"> <td align="center" class="written-by">
{{ {{
reviewDetail.result reviewDetail.result
? reviewDetail.result.userName ? reviewDetail.result.userName
......
...@@ -58,9 +58,9 @@ ...@@ -58,9 +58,9 @@
<tr> <tr>
<th>审查要点</th> <th>审查要点</th>
<th>审查细则</th> <th>审查细则</th>
<th>审查结果</th> <th class="investigate-result">审查结果</th>
<th>记录</th> <th>记录</th>
<th>填写人</th> <th class="written-by">填写人</th>
</tr> </tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList"> <template v-for="(keyPoint, keyPointKey) in item.keyPointList">
<tr :key="keyPointKey"> <tr :key="keyPointKey">
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
> >
<tr :key="reviewDetailKey"> <tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td> <td align="center">{{ reviewDetail.text }}</td>
<td align="center"> <td align="center" class="investigate-result">
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
<el-tag <el-tag
v-if="reviewDetail.result.passed === 1" v-if="reviewDetail.result.passed === 1"
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
</div> </div>
<div v-else>__</div> <div v-else>__</div>
</td> </td>
<td align="center"> <td align="center" class="written-by">
{{ {{
reviewDetail.result reviewDetail.result
? reviewDetail.result.userName ? reviewDetail.result.userName
......
...@@ -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)
} }
......
...@@ -216,7 +216,8 @@ export default { ...@@ -216,7 +216,8 @@ export default {
handleDelete(id) { handleDelete(id) {
this.$modal this.$modal
.confirm('是否确定删除该条数据?', { .confirm('是否确定删除该条数据?', {
title: '操作确认', type: 'warning',
title: '删除',
closeOnClickModal: false closeOnClickModal: false
}) })
.then(() => { .then(() => {
......
...@@ -363,7 +363,8 @@ export default { ...@@ -363,7 +363,8 @@ export default {
// console.log(node, data) // console.log(node, data)
this.$modal this.$modal
.confirm('是否确定删除该条数据?', { .confirm('是否确定删除该条数据?', {
title: '操作确认', type: 'warning',
title: '删除',
closeOnClickModal: false closeOnClickModal: false
}) })
.then(() => { .then(() => {
......
...@@ -186,7 +186,8 @@ export default { ...@@ -186,7 +186,8 @@ export default {
handleDelete(row) { handleDelete(row) {
this.$modal this.$modal
.confirm('是否确定删除该条数据?', { .confirm('是否确定删除该条数据?', {
title: '操作确认', type: 'warning',
title: '删除',
closeOnClickModal: false closeOnClickModal: false
}) })
.then(() => { .then(() => {
......
...@@ -550,7 +550,8 @@ export default { ...@@ -550,7 +550,8 @@ export default {
handleDelete(row) { handleDelete(row) {
this.$modal this.$modal
.confirm('是否确定删除该条数据?', { .confirm('是否确定删除该条数据?', {
title: '操作确认', type: 'warning',
title: '删除',
closeOnClickModal: false closeOnClickModal: false
}) })
.then(function () { .then(function () {
......
...@@ -114,8 +114,8 @@ ...@@ -114,8 +114,8 @@
<th>审查要点</th> <th>审查要点</th>
<th>审查细则</th> <th>审查细则</th>
<th>符合场景</th> <th>符合场景</th>
<th>审查结果</th> <th class="investigate-result">审查结果</th>
<th>填写人</th> <th class="written-by">填写人</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
......
...@@ -224,7 +224,6 @@ ...@@ -224,7 +224,6 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="actions-container"> <div class="actions-container">
<span v-show="scope.row.userId === ''">-</span>
<page-button <page-button
v-show="scope.row.userId !== ''" v-show="scope.row.userId !== ''"
icon="edit" icon="edit"
...@@ -240,6 +239,13 @@ ...@@ -240,6 +239,13 @@
class="button-item" class="button-item"
@click.native="handleDelete(scope.row)" @click.native="handleDelete(scope.row)"
></page-button> ></page-button>
<page-button
v-show="scope.row.userId === ''"
icon="delete"
title="取消"
class="button-item"
@click.native="handleCancelPeople()"
></page-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -224,7 +224,6 @@ ...@@ -224,7 +224,6 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="actions-container"> <div class="actions-container">
<span v-show="scope.row.userId === ''">-</span>
<!-- <page-button--> <!-- <page-button-->
<!-- v-show="scope.row.userId === ''"--> <!-- v-show="scope.row.userId === ''"-->
<!-- icon="hard-disk-one"--> <!-- icon="hard-disk-one"-->
...@@ -247,13 +246,13 @@ ...@@ -247,13 +246,13 @@
class="button-item" class="button-item"
@click.native="handleDelete(scope.row)" @click.native="handleDelete(scope.row)"
></page-button> ></page-button>
<!-- <page-button--> <page-button
<!-- v-show="scope.row.userId === ''"--> v-show="scope.row.userId === ''"
<!-- icon="delete"--> icon="delete"
<!-- title="取消"--> title="取消"
<!-- class="button-item"--> class="button-item"
<!-- @click.native="handleCancelPeople()"--> @click.native="handleCancelPeople()"
<!-- ></page-button>--> ></page-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
......
<template> <template>
<page-standard> <page-standard>
<div slot="tab">
<el-tabs v-model="queryParams.taskStatus" @tab-click="loadData">
<el-tab-pane
v-for="(dict, key) in reviewTypeList"
:key="key"
:label="dict.label"
:name="dict.value"
>
</el-tab-pane>
</el-tabs>
</div>
<el-form ref="queryForm" :model="queryParams" size="small" :inline="true"> <el-form ref="queryForm" :model="queryParams" size="small" :inline="true">
<template v-if="showSearch"> <template v-if="showSearch">
<el-form-item label="检验依据"> <el-form-item label="检验依据">
...@@ -139,18 +150,13 @@ ...@@ -139,18 +150,13 @@
:underline="false" :underline="false"
@click=" @click="
handleSystemReviewTestContent( handleSystemReviewTestContent(
item.reviewStatus, 'NEW',
item.systemReviewTaskId, item.systemReviewTaskId,
item.id item.id
) )
" "
> >
{{ {{ getDictData(dict.type.system_review_test_btn, 'NEW') }}
getDictData(
dict.type.system_review_test_btn,
item.reviewStatus
)
}}
</el-link> </el-link>
<br /> <br />
</div> </div>
...@@ -163,18 +169,13 @@ ...@@ -163,18 +169,13 @@
:underline="false" :underline="false"
@click=" @click="
handleCarTypeReviewTaskContent( handleCarTypeReviewTaskContent(
item.carReviewStatus, 'NEW',
item.carReviewTaskId, item.carReviewTaskId,
item.id item.id
) )
" "
> >
{{ {{ getDictData(dict.type.test_cartype_type_btn, 'NEW') }}
getDictData(
dict.type.test_cartype_type_btn,
item.carReviewStatus
)
}}
</el-link> </el-link>
</div> </div>
<div <div
...@@ -184,16 +185,9 @@ ...@@ -184,16 +185,9 @@
<el-link <el-link
type="primary" type="primary"
:underline="false" :underline="false"
@click=" @click="handleCarTypeTestTaskContent('NEW', item.id)"
handleCarTypeTestTaskContent(item.carTestStatus, item.id)
"
> >
{{ {{ getDictData(dict.type.test_cartype_task_btn, 'NEW') }}
getDictData(
dict.type.test_cartype_task_btn,
item.carTestStatus
)
}}
</el-link> </el-link>
</div> </div>
</div> </div>
...@@ -509,6 +503,24 @@ export default { ...@@ -509,6 +503,24 @@ export default {
mixins: [page], mixins: [page],
data() { data() {
return { return {
reviewTypeList: [
{
label: '全部',
value: ''
},
{
label: '未开始',
value: 'NEW'
},
{
label: '进行中',
value: 'PENDING'
},
{
label: '已完成',
value: 'FINISH'
}
],
// 子任务内容跳转文字map // 子任务内容跳转文字map
dialogVisible: false, dialogVisible: false,
listUrl: '/task/findCreate', listUrl: '/task/findCreate',
...@@ -604,7 +616,8 @@ export default { ...@@ -604,7 +616,8 @@ export default {
teakDelete(id) { teakDelete(id) {
this.$modal this.$modal
.confirm('是否确定删除该条数据?', { .confirm('是否确定删除该条数据?', {
title: '操作确认', type: 'warning',
title: '删除',
closeOnClickModal: false closeOnClickModal: false
}) })
.then(() => { .then(() => {
......
...@@ -70,7 +70,6 @@ ...@@ -70,7 +70,6 @@
'test-scenario': item.check === false, 'test-scenario': item.check === false,
'check-test-scenario': item.check === true 'check-test-scenario': item.check === true
}" }"
@click="handleTestScenario(item)"
> >
<div>{{ item.label }}</div> <div>{{ item.label }}</div>
</div> </div>
......
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