剧本动作触发条件调整

This commit is contained in:
fan 2020-11-05 09:38:50 +08:00
parent 636757ddbe
commit 192ca67257

View File

@ -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('获取条件失败');
});