代码调整
This commit is contained in:
parent
27d4c66c8c
commit
dc930dae12
@ -182,6 +182,8 @@ export default {
|
|||||||
this.formModel.disposalProcesses = row.disposalProcesses;
|
this.formModel.disposalProcesses = row.disposalProcesses;
|
||||||
this.formModel.operationScore = row.operationScore;
|
this.formModel.operationScore = row.operationScore;
|
||||||
this.formModel.scriptId = row.scriptId;
|
this.formModel.scriptId = row.scriptId;
|
||||||
|
getScriptByIdNew(row.scriptId).then(res=>{
|
||||||
|
this.actionList = res.data.actionList;
|
||||||
getCompetitionPracticalSceneById(row.id).then(response=>{
|
getCompetitionPracticalSceneById(row.id).then(response=>{
|
||||||
const commandEvaluationRuleVOs = {};
|
const commandEvaluationRuleVOs = {};
|
||||||
response.data.commandEvaluationRuleVOs.forEach(data=>{
|
response.data.commandEvaluationRuleVOs.forEach(data=>{
|
||||||
@ -190,14 +192,14 @@ export default {
|
|||||||
const stepVOs = {};
|
const stepVOs = {};
|
||||||
response.data.stepVOs.forEach(data=>{
|
response.data.stepVOs.forEach(data=>{
|
||||||
stepVOs[data.startActionId] = data;
|
stepVOs[data.startActionId] = data;
|
||||||
this.startArray.push(data.startActionId);
|
const dataIndex = this.actionList.findIndex((value, index, arr)=>{ return value.id == data.startActionId; });
|
||||||
this.endArray.push(data.endActionId);
|
const dataIndex1 = this.actionList.findIndex((value, index, arr)=>{ return value.id == data.endActionId; });
|
||||||
|
this.startArray.push(dataIndex);
|
||||||
|
this.endArray.push(dataIndex1);
|
||||||
});
|
});
|
||||||
this.commandEvaluationRuleVOs = commandEvaluationRuleVOs;
|
this.commandEvaluationRuleVOs = commandEvaluationRuleVOs;
|
||||||
this.stepVOs = stepVOs;
|
this.stepVOs = stepVOs;
|
||||||
});
|
});
|
||||||
getScriptByIdNew(row.scriptId).then(res=>{
|
|
||||||
this.actionList = res.data.actionList;
|
|
||||||
// 加载地图数据
|
// 加载地图数据
|
||||||
getPublishMapDetailById(res.data.mapId).then(resp => {
|
getPublishMapDetailById(res.data.mapId).then(resp => {
|
||||||
this.$store.dispatch('map/setMapData', resp.data);
|
this.$store.dispatch('map/setMapData', resp.data);
|
||||||
|
Loading…
Reference in New Issue
Block a user