diff --git a/src/views/modules/yieldReport/com_switch_operator.vue b/src/views/modules/yieldReport/com_switch_operator.vue index 558e189..1bfec7d 100644 --- a/src/views/modules/yieldReport/com_switch_operator.vue +++ b/src/views/modules/yieldReport/com_switch_operator.vue @@ -80,26 +80,27 @@ export default { if(!data.row){ this.$message.error('账号有误!'); return false; + }else{ + let status = data.row.status; + this.operatorData.operatorName = data.row.operatorName; + //重置操作员信息状态 + this.operatorData.status = status; + //判断是否验证通过 + if (status == 'N') { + this.operatorFlag = false; + } else { + this.operatorFlag = true; + } + if (!this.operatorFlag) { + this.$message.error('操作员信息不可用!'); + } + //校验没有问题 关闭弹窗 + this.closeDialog(); + //调用初始化的方法 + this.$emit('initOperatorData', this.operatorData) } - let status = data.row.status; - this.operatorData.operatorName = data.row.operatorName; - //重置操作员信息状态 - this.operatorData.status = status; - //判断是否验证通过 - if (status == 'N') { - this.operatorFlag = false; - } else { - this.operatorFlag = true; - } - if (!this.operatorFlag) { - this.$message.error('操作员信息不可用!'); - } + }) - //检查是否通过 不通过报错 通过继续 - .then(() => { - this.visibleFlag = false; - this.$emit('initOperatorData', this.operatorData) - }); }, }, created() {