|
|
@@ -388,7 +388,7 @@ export default {
|
|
|
let randomCode = this.randomCode || ""; // 随机码(可为空)
|
|
|
let randomCode2 = this.randomCode2 || ""; // 随机码(可为空)
|
|
|
let uLogin = this.radio; // 获取复选框选中的值(1 或 2)
|
|
|
- if (randomCode2.length && randomCode2.length != 4) return this.$message.error("随机码须4位数");
|
|
|
+ if (randomCode2 && randomCode2.length && randomCode2.length != 4) return this.$message.error("随机码须4位数");
|
|
|
|
|
|
// 验证组织名称不能为空
|
|
|
if (!orgName) {
|
|
|
@@ -467,7 +467,7 @@ export default {
|
|
|
console.log(row);
|
|
|
},
|
|
|
updateOrgan() {
|
|
|
- if (this.randomCode2.length && this.randomCode2.length != 4) return this.$message.error("随机码须4位数");
|
|
|
+ if (this.randomCode2 &&this.randomCode2.length && this.randomCode2.length != 4) return this.$message.error("随机码须4位数");
|
|
|
let params = [
|
|
|
{
|
|
|
functionName: "updateOrgan2N",
|