提交 0c2b6550 编写于 作者: guangjun.yang's avatar guangjun.yang

机构校验文案

上级 9e1dcf8f
...@@ -443,14 +443,14 @@ export default { ...@@ -443,14 +443,14 @@ export default {
let nameList = this.formData.organizationNameList; let nameList = this.formData.organizationNameList;
for(let i = 0; i < nameList.length; i ++) { for(let i = 0; i < nameList.length; i ++) {
if(!nameList[i]) { if(!nameList[i]) {
this.$message.error('发起机构列表中不能为空'); this.$message.error('发起机构名称不可以为空');
return false; return false;
} }
} }
for(let i = 0; i < nameList.length - 1; i ++) { for(let i = 0; i < nameList.length - 1; i ++) {
for(let j = i + 1; j < nameList.length; j ++) { for(let j = i + 1; j < nameList.length; j ++) {
if(nameList[i] == nameList[j]) { if(nameList[i] == nameList[j]) {
this.$message.error('发起机构列表中不能重复'); this.$message.error('发起机构名称不能重复');
return false; return false;
} }
} }
......
...@@ -1449,14 +1449,14 @@ export default { ...@@ -1449,14 +1449,14 @@ export default {
let nameList = this.formData.organizationNameList; let nameList = this.formData.organizationNameList;
for(let i = 0; i < nameList.length; i ++) { for(let i = 0; i < nameList.length; i ++) {
if(!nameList[i]) { if(!nameList[i]) {
this.$message.error('发起机构列表中不能为空'); this.$message.error('发起机构名称不可以为空');
return false; return false;
} }
} }
for(let i = 0; i < nameList.length - 1; i ++) { for(let i = 0; i < nameList.length - 1; i ++) {
for(let j = i + 1; j < nameList.length; j ++) { for(let j = i + 1; j < nameList.length; j ++) {
if(nameList[i] == nameList[j]) { if(nameList[i] == nameList[j]) {
this.$message.error('发起机构列表中不能重复'); this.$message.error('发起机构名称不能重复');
return false; return false;
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册