From 62dddae1e5a0addb12bf4df670573fbf5f09649a Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 4 Nov 2020 14:54:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E6=9D=A1=E4=BB=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/scriptManage/conditionManage.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/scriptManage/conditionManage.vue b/src/views/scriptManage/conditionManage.vue index bd75ca886..64d1fa771 100644 --- a/src/views/scriptManage/conditionManage.vue +++ b/src/views/scriptManage/conditionManage.vue @@ -144,7 +144,7 @@ export default { doShow(actionInfo) { this.tableData = []; this.tableData = (actionInfo.condition || {}).trainStatuses || []; - this.delay = (actionInfo.condition || {}).delay || 0; + this.delay = ((actionInfo.condition || {}).delay || 0) / 1000; this.actionId = actionInfo.id; this.dialogVisible = true; }, @@ -166,7 +166,7 @@ export default { handleDelete(index, row) { const data = [...this.tableData]; data.splice(index, 1); - updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: data, delay: this.delay}).then(resp => { + updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: data, delay: this.delay * 1000}).then(resp => { this.tableData = data; }).catch(()=>{ this.$message.error('删除条件失败'); @@ -177,7 +177,7 @@ export default { if (valid) { const data = [...this.tableData]; data[this.updateIndex] = this.formModel; - updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: data, delay: this.delay}).then(resp => { + updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: data, delay: this.delay * 1000}).then(resp => { this.tableData = data; }).catch(()=>{ this.$message.error('修改条件失败'); @@ -186,7 +186,7 @@ export default { }); }, onUpdateDelay() { - updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: this.tableData, delay: this.delay}).then(resp => { + updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: this.tableData, delay: this.delay * 1000}).then(resp => { }).catch(()=>{ this.$message.error('修改条件失败'); }); @@ -205,7 +205,7 @@ export default { if (valid) { const data = [...this.tableData]; data.push(this.formModel); - updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: data, delay: this.delay}).then(resp => { + updateActionCondition(this.$route.query.group, this.actionId, {trainStatuses: data, delay: this.delay * 1000}).then(resp => { this.tableData = data; }).catch(()=>{ this.$message.error('添加条件失败');