Commit 93782b31 authored by jiaxu.yan's avatar jiaxu.yan

feat: 签字校验增加

parent 7521dc01
......@@ -37,7 +37,7 @@ export default {
// 3.配置数据
const option = {
title: {
text: '用例测试方法概览',
text: '用例测试类型概览',
left: 'left',
textStyle: {
color: '#606266',
......@@ -70,7 +70,7 @@ export default {
},
series: [
{
name: '用例测试方法概览',
name: '用例测试类型概览',
type: 'bar',
barWidth: '20',
data: [
......
......@@ -399,14 +399,14 @@ export default {
},
/* 返回跳转*/
goToProcessedReview() {
// if (!this.ruleForm.enterpriseLeader) {
// this.$message.error('请车企负责人签字')
// return
// }
// if (!this.ruleForm.inspectionLeader) {
// this.$message.error('请检验负责人签字')
// return
// }
if (!this.ruleForm.enterpriseLeader) {
this.$message.error('请车企负责人签字')
return
}
if (!this.ruleForm.inspectionLeader) {
this.$message.error('请检验负责人签字')
return
}
this.ruleForm.taskId = this.taskId
const formData = {
imagesUrl: [
......
......@@ -393,14 +393,14 @@ export default {
},
/* 返回跳转*/
goToProcessedReview() {
// if (!this.ruleForm.enterpriseLeader) {
// this.$message.error('请车企负责人签字')
// return
// }
// if (!this.ruleForm.inspectionLeader) {
// this.$message.error('请检验负责人签字')
// return
// }
if (!this.ruleForm.enterpriseLeader) {
this.$message.error('请车企负责人签字')
return
}
if (!this.ruleForm.inspectionLeader) {
this.$message.error('请检验负责人签字')
return
}
this.ruleForm.taskId = this.taskId
const formData = {
imagesUrl: [
......
......@@ -137,7 +137,6 @@ export default {
},
getScenario() {
getScenarioList({}).then(res => {
console.log(res)
this.testScenarioList = res.data.map((i, k) => {
return {
label: i,
......@@ -148,15 +147,15 @@ export default {
})
},
handleTestScenario(item) {
if (this.model.scenarioNameList.includes(item.name)) {
if (this.model.scenarioNameList.includes(item.label)) {
this.model.scenarioNameList.splice(
this.model.scenarioNameList.indexOf(item.name),
this.model.scenarioNameList.indexOf(item.label),
1
)
item.check = false
} else {
item.check = true
this.model.scenarioNameList.push(item.name)
this.model.scenarioNameList.push(item.label)
}
},
// 全选
......@@ -165,7 +164,7 @@ export default {
obj.check = true
})
this.model.scenarioNameList = this.testScenarioList.map(obj => {
return obj.name
return obj.label
})
}
}
......
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