剧本动作触发条件调整
This commit is contained in:
parent
636757ddbe
commit
192ca67257
@ -140,12 +140,13 @@ export default {
|
|||||||
methods:{
|
methods:{
|
||||||
doShow(actionInfo) {
|
doShow(actionInfo) {
|
||||||
this.tableData = [];
|
this.tableData = [];
|
||||||
this.tableData = (actionInfo.condition || {}).trainStatuses || [];
|
this.delay = 0;
|
||||||
this.delay = ((actionInfo.condition || {}).delay || 0) / 1000;
|
|
||||||
this.actionId = actionInfo.id;
|
this.actionId = actionInfo.id;
|
||||||
getActionCondition(this.$route.query.group, this.actionId).then(resp => {
|
getActionCondition(this.$route.query.group, this.actionId).then(resp => {
|
||||||
this.tableData = resp.data.trainStatuses;
|
if (resp.data) {
|
||||||
this.delay = (resp.data.delay || 0) / 1000;
|
this.tableData = resp.data.trainStatuses;
|
||||||
|
this.delay = (resp.data.delay || 0) / 1000;
|
||||||
|
}
|
||||||
}).catch(()=> {
|
}).catch(()=> {
|
||||||
this.$message.error('获取条件失败');
|
this.$message.error('获取条件失败');
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user