| | |
| | | this.characterEditOldValue = row[column.property]; |
| | | if (this.editValueList.includes(row[column.property])) { |
| | | this.$message.warning('请检查字符集是否有重复!') |
| | | } else if (row[column.property] === undefined || row[column.property] === null) { |
| | | this.$message.warning('请检查字符集是否有空值!'); |
| | | } else { |
| | | this.editValueList.push(row[column.property]); |
| | | } |
| | | // else if (this.editValueList.some(value => value.trim() === '')) { |
| | | // this.$message.warning('请检查字符集是否有空值!'); |
| | | // } |
| | | }, |
| | | async getCodeRule() { |
| | | try { |
| | |
| | | this.$message.warning('请填写要添加的值!'); |
| | | return; // 判断输入值 |
| | | } |
| | | ; |
| | | if (this.editValueList.length != 0) { |
| | | this.$message.warning('请先取消已选择的值!'); |
| | | return; // 判断输入值 |
| | | } |
| | | ; |
| | | const targetObject = this.characterReleasedList.find(obj => obj.oid === this.select); |
| | | if (!targetObject) { |
| | | return; // 查找对应typeText |
| | | } |
| | | ; |
| | | const codeRuleCharacterVO = { |
| | | codeRuleId: this.select, |
| | | chartType: "charset", |