diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index 5355d49b4..08adba748 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -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('请选中需要添加到 清单条目 的(标准号/政策编号)') diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue index 1ebf4635e..09c194e31 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue @@ -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('请选中需要添加到 清单条目 的(标准号/政策编号)')