diff --git a/src/api/quest.js b/src/api/quest.js
index 34290433a..4f86e1d66 100644
--- a/src/api/quest.js
+++ b/src/api/quest.js
@@ -1,6 +1,6 @@
import request from '@/utils/request';
-/** 分页查找仿真任务*/
+/** 分页查找个人录制的仿真任务*/
export function getQuestPageList(params) {
return request({
url: `/api/quest/paging`,
@@ -53,3 +53,12 @@ export function updateMapLocation(id, data) {
data
});
}
+
+/** 分页查找上线的仿真任务*/
+export function getQuestPageListOnline(params) {
+ return request({
+ url: `/api/quest/paging/online`,
+ method: 'get',
+ params: params
+ });
+}
diff --git a/src/api/simulation.js b/src/api/simulation.js
index c996d166f..ae46daa7d 100644
--- a/src/api/simulation.js
+++ b/src/api/simulation.js
@@ -337,11 +337,11 @@ export function getQuestRecord(group) {
}
/** 加载任务*/
-export function loadQuest(questId, group) {
- return request({
- url: `/api/simulation/${group}/quest/${questId}`,
- method: 'post'
- });
+export function loadQuest(questId, memberId, group) {
+ return request({
+ url: `/api/simulation/${group}/quest/${questId}?memberId=${memberId}`,
+ method: 'post'
+ });
}
/** 退出任务*/
diff --git a/src/utils/Export2Excel.js b/src/utils/Export2Excel.js
index ef6998882..8422abaf8 100644
--- a/src/utils/Export2Excel.js
+++ b/src/utils/Export2Excel.js
@@ -1,6 +1,6 @@
/* eslint-disable */
require('script-loader!file-saver');
-require('script-loader!@/utils/Blob');
+require('@/utils/Blob');
import XLSX from 'xlsx';
import { translate } from '@/scripts/translate';
diff --git a/src/views/display/demon/addQuest.vue b/src/views/display/demon/addQuest.vue
index 3e1ff47c3..346ae91b6 100644
--- a/src/views/display/demon/addQuest.vue
+++ b/src/views/display/demon/addQuest.vue
@@ -1,223 +1,188 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/display/index.vue b/src/views/display/index.vue
index e27e9fc3d..0fc8103e6 100644
--- a/src/views/display/index.vue
+++ b/src/views/display/index.vue
@@ -449,14 +449,14 @@ export default {
this.$refs.addQuest.doShow();
},
// 选择脚本
- async selectQuest(row, role) {
- const res = await loadQuest(row.id, this.group);
+ async selectQuest(row, id) {
+ let res = await loadQuest(row.id, id, this.group);
if (res && res.code == 200) {
this.questId = parseInt(row.id);
- if(res.data && res.data.mapLocation) {
- let mapLocation={"offsetX":res.data.mapLocation.x,"offsetY":res.data.mapLocation.y,"scaleRate":res.data.mapLocation.scale};
- Vue.prototype.$jlmap.setOptions(mapLocation)
- }
+ if(res.data && res.data.mapLocation) {
+ let mapLocation={"offsetX":res.data.mapLocation.x,"offsetY":res.data.mapLocation.y,"scaleRate":res.data.mapLocation.scale};
+ Vue.prototype.$jlmap.setOptions(mapLocation)
+ }
}
if (this.$refs.menuDemon) {