标准法规清单-国家/地区清单中的 每个国家或者地区只能建立一次清单,需做限制
This commit is contained in:
@@ -1302,11 +1302,39 @@ export default {
|
||||
}, res => {
|
||||
if (this.sarAccessInfoList.length !== 0) {
|
||||
if (res.ok) {
|
||||
this.$message.success('新增成功')
|
||||
this.isNext = true
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations'
|
||||
})
|
||||
if (res.data === "数据库为空,添加成功"){
|
||||
this.$message.success('新增成功')
|
||||
this.isNext = true
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations'
|
||||
})
|
||||
}
|
||||
else if (res.data === "其他清单添加成功"){
|
||||
this.$message.success('新增成功')
|
||||
this.isNext = true
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations'
|
||||
})
|
||||
}
|
||||
else if (res.data === "车型类别清单添加成功"){
|
||||
this.$message.success('新增成功')
|
||||
this.isNext = true
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations'
|
||||
})
|
||||
}else if(res.data === "车型类别清单添加失败"){
|
||||
this.$message.error('已存在此车型类别清单,新增失败')
|
||||
}
|
||||
else if (res.data === "国家/地区清单添加成功"){
|
||||
this.$message.success('新增成功')
|
||||
this.isNext = true
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations'
|
||||
})
|
||||
}else if(res.data === "国家/地区清单添加失败"){
|
||||
this.$message.error('已存在此国家/地区清单,新增失败')
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)')
|
||||
|
||||
+9
-5
@@ -1250,11 +1250,15 @@ export default {
|
||||
}, res => {
|
||||
if (this.sarAccessInfoList.length !== 0) {
|
||||
if (res.ok) {
|
||||
this.$message.success('新增成功')
|
||||
this.isNext = true
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations'
|
||||
})
|
||||
if (res.data === "车型类别清单添加成功") {
|
||||
this.$message.success('新增成功')
|
||||
this.isNext = true
|
||||
this.$router.push({
|
||||
name: 'AccessStandardsAndRegulations'
|
||||
})
|
||||
}else{
|
||||
this.$message.error('已存在此车型类别清单,新增失败')
|
||||
}
|
||||
}
|
||||
}else {
|
||||
this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)')
|
||||
|
||||
Reference in New Issue
Block a user