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

feat: 签字校验增加

parent 7521dc01
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
// 3.配置数据 // 3.配置数据
const option = { const option = {
title: { title: {
text: '用例测试方法概览', text: '用例测试类型概览',
left: 'left', left: 'left',
textStyle: { textStyle: {
color: '#606266', color: '#606266',
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
}, },
series: [ series: [
{ {
name: '用例测试方法概览', name: '用例测试类型概览',
type: 'bar', type: 'bar',
barWidth: '20', barWidth: '20',
data: [ data: [
......
...@@ -399,14 +399,14 @@ export default { ...@@ -399,14 +399,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: [
......
...@@ -393,14 +393,14 @@ export default { ...@@ -393,14 +393,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: [
......
...@@ -137,7 +137,6 @@ export default { ...@@ -137,7 +137,6 @@ export default {
}, },
getScenario() { getScenario() {
getScenarioList({}).then(res => { getScenarioList({}).then(res => {
console.log(res)
this.testScenarioList = res.data.map((i, k) => { this.testScenarioList = res.data.map((i, k) => {
return { return {
label: i, label: i,
...@@ -148,15 +147,15 @@ export default { ...@@ -148,15 +147,15 @@ export default {
}) })
}, },
handleTestScenario(item) { handleTestScenario(item) {
if (this.model.scenarioNameList.includes(item.name)) { if (this.model.scenarioNameList.includes(item.label)) {
this.model.scenarioNameList.splice( this.model.scenarioNameList.splice(
this.model.scenarioNameList.indexOf(item.name), this.model.scenarioNameList.indexOf(item.label),
1 1
) )
item.check = false item.check = false
} else { } else {
item.check = true item.check = true
this.model.scenarioNameList.push(item.name) this.model.scenarioNameList.push(item.label)
} }
}, },
// 全选 // 全选
...@@ -165,7 +164,7 @@ export default { ...@@ -165,7 +164,7 @@ export default {
obj.check = true obj.check = true
}) })
this.model.scenarioNameList = this.testScenarioList.map(obj => { 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