From 192ca672578389e019df9a473b7e9c0c1e60ca6b Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 5 Nov 2020 09:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E5=8A=A8=E4=BD=9C=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E6=9D=A1=E4=BB=B6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/scriptManage/conditionManage.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/scriptManage/conditionManage.vue b/src/views/scriptManage/conditionManage.vue index 6ce89986d..b0b879917 100644 --- a/src/views/scriptManage/conditionManage.vue +++ b/src/views/scriptManage/conditionManage.vue @@ -140,12 +140,13 @@ export default { methods:{ doShow(actionInfo) { this.tableData = []; - this.tableData = (actionInfo.condition || {}).trainStatuses || []; - this.delay = ((actionInfo.condition || {}).delay || 0) / 1000; + this.delay = 0; this.actionId = actionInfo.id; getActionCondition(this.$route.query.group, this.actionId).then(resp => { - this.tableData = resp.data.trainStatuses; - this.delay = (resp.data.delay || 0) / 1000; + if (resp.data) { + this.tableData = resp.data.trainStatuses; + this.delay = (resp.data.delay || 0) / 1000; + } }).catch(()=> { this.$message.error('获取条件失败'); });