删除没有用的接口
This commit is contained in:
parent
7a25c0b536
commit
3da6d9c538
@ -174,14 +174,6 @@ export function getUserRoles(group) {
|
||||
});
|
||||
}
|
||||
|
||||
// 返回房间
|
||||
export function putJointTrainingState() {
|
||||
return request({
|
||||
url: `/api/jointTraining/room/back`,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
// 踢出用户
|
||||
export function putJointTrainingUserkicked(userId, group) {
|
||||
return request({
|
||||
|
@ -7,13 +7,6 @@ export function getRpListByUserMapId(mapId) {
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
export function getMapList(cityCode) {
|
||||
/** 根据cityCode获取地图列表 */
|
||||
return request({
|
||||
url: `/api/mapSystem/queryMapByCityCode/${cityCode}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/** 获取用户自己的运行图详情*/
|
||||
export function getRpDetailByUserMapId(planId) {
|
||||
@ -31,14 +24,6 @@ export function getUserMapDetailByMapId(mapId) {
|
||||
});
|
||||
}
|
||||
|
||||
/** 用户自己的运行图仿真测试*/
|
||||
export function runUserPlanNotify({ planId }) {
|
||||
return request({
|
||||
url: `/api/draftMap/runPlan/simulationCheck/${planId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/** 管理员获取需审核的课程列表 */
|
||||
export function reviewLessonList(params) {
|
||||
return request({
|
||||
|
@ -127,14 +127,6 @@ export function getUserRolesNew(group) {
|
||||
});
|
||||
}
|
||||
|
||||
// 返回房间
|
||||
export function putJointTrainingStateNew() {
|
||||
return request({
|
||||
url: `/api/v1/jointTraining/room/back`,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
// 踢出用户
|
||||
export function putJointTrainingUserkickedNew(userId, group) {
|
||||
return request({
|
||||
|
@ -1,74 +0,0 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
/** 分页查找个人录制的仿真任务*/
|
||||
export function getQuestPageList(mapId, params) {
|
||||
return request({
|
||||
url: `/api/script/draft/${mapId}/list`,
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
}
|
||||
/** 创建任务 */
|
||||
export function createQuest(data) {
|
||||
return request({
|
||||
url: `/api/script/draft`,
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
/** 根据任务id删除任务 */
|
||||
export function deleteQuest(id) {
|
||||
return request({
|
||||
url: `/api/script/draft/${id}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
/** 根据id查询任务基础信息 */
|
||||
export function getQuestById(id) {
|
||||
return request({
|
||||
url: `/api/script/draft/${id}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
/** 根据id查询任务详情信息 */
|
||||
export function getQuestByIdList(id) {
|
||||
return request({
|
||||
url: `/api/script/draft/${id}/detail`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
/** 更新任务基本信息 */
|
||||
export function updateQuest(id, data) {
|
||||
return request({
|
||||
url: `/api/script/draft/${id}`,
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 分页查找上线的仿真任务*/
|
||||
export function getQuestPageListOnline(params) {
|
||||
return request({
|
||||
url: `/api/quest/paging/online`,
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
}
|
||||
|
||||
/** 剧本发布 */
|
||||
export function publishQuest(id, data) {
|
||||
return request({
|
||||
url: `/api/script/draft/${id}/publish`,
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 剧本撤销发布 */
|
||||
export function retractQuest(id, data) {
|
||||
return request({
|
||||
url: `/api/script/draft/${id}/retract`,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
@ -24,3 +24,63 @@ export function getDraftScriptByGroup(group) {
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/** 剧本撤销发布 */
|
||||
export function retractScript(id, data) {
|
||||
return request({
|
||||
url: `/api/script/draft/${id}/retract`,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
/** 剧本发布 */
|
||||
export function publishScript(id, data) {
|
||||
return request({
|
||||
url: `/api/script/draft/${id}/publish`,
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 更新剧本基本信息 */
|
||||
export function updateScript(id, data) {
|
||||
return request({
|
||||
url: `/api/script/draft/${id}`,
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 根据剧本id删除剧本 */
|
||||
export function deleteScript(id) {
|
||||
return request({
|
||||
url: `/api/script/draft/${id}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/** 分页查找个人录制的仿真剧本*/
|
||||
export function getScriptPageList(mapId, params) {
|
||||
return request({
|
||||
url: `/api/script/draft/${mapId}/list`,
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
}
|
||||
|
||||
/** 创建剧本 */
|
||||
export function createScript(data) {
|
||||
return request({
|
||||
url: `/api/script/draft`,
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 根据id查询任务基础信息 */
|
||||
export function getScriptByIdBasic(id) {
|
||||
return request({
|
||||
url: `/api/script/draft/${id}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
@ -9,14 +9,6 @@ export function getTrainingSystemList(cityCode, params) {
|
||||
});
|
||||
}
|
||||
|
||||
export function getTrainingSystemListByMapId(mapId) {
|
||||
/** 根据mapId去获取其子系统 */
|
||||
return request({
|
||||
url: `/api/mapSystem/${mapId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
export function generateMapSystem(mapId) {
|
||||
/** 根据mapId生成地图子系统 */
|
||||
return request({
|
||||
|
@ -9,7 +9,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getQuestById} from '@/api/quest';
|
||||
import { getScriptByIdBasic} from '@/api/script';
|
||||
|
||||
export default {
|
||||
name: 'ScriptDraft',
|
||||
@ -77,7 +77,7 @@ export default {
|
||||
},
|
||||
doShow(questid) {
|
||||
if (questid) {
|
||||
getQuestById(questid).then(resp=>{
|
||||
getScriptByIdBasic(questid).then(resp=>{
|
||||
const data = {'name':resp.data.name, 'description':resp.data.description, 'mapId':resp.data.mapId};
|
||||
this.formModel = data;
|
||||
this.formModel.id = questid;
|
||||
|
@ -16,7 +16,7 @@ import Cookies from 'js-cookie';
|
||||
import ConstConfig from '@/scripts/ConstConfig';
|
||||
import { UrlConfig } from '@/scripts/ConstDic';
|
||||
import { admin, superAdmin} from '@/router/index_APP_TARGET';
|
||||
import { getQuestPageList, createQuest, deleteQuest, updateQuest, publishQuest, retractQuest} from '@/api/quest';
|
||||
import {retractScript, publishScript, updateScript, deleteScript, getScriptPageList, createScript} from '@/api/script';
|
||||
import { launchFullscreen } from '@/utils/screen';
|
||||
import { scriptDraftRecordNotify, scriptRecordNotify, scriptRecordNotifyNew } from '@/api/simulation';
|
||||
import CreateScript from './create';
|
||||
@ -117,7 +117,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
queryFunction(params) {
|
||||
return getQuestPageList(this.$route.params.mapId, params);
|
||||
return getScriptPageList(this.$route.params.mapId, params);
|
||||
},
|
||||
reloadTable() {
|
||||
if (this.queryList && this.queryList.reload) {
|
||||
@ -151,7 +151,7 @@ export default {
|
||||
cancelButtonText: this.$t('global.cancel'),
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
deleteQuest(row.id).then(response => {
|
||||
deleteScript(row.id).then(response => {
|
||||
this.$message.success(this.$t('scriptRecord.deleteScriptSucess'));
|
||||
this.reloadTable();
|
||||
}).catch(() => {
|
||||
@ -166,7 +166,7 @@ export default {
|
||||
} else {
|
||||
data.lang = 'zh';
|
||||
}
|
||||
createQuest(data).then(resp => {
|
||||
createScript(data).then(resp => {
|
||||
this.reloadTable();
|
||||
this.$message.success(this.$t('scriptRecord.createScriptSuccess'));
|
||||
}).catch(error => {
|
||||
@ -184,7 +184,7 @@ export default {
|
||||
} else {
|
||||
data.lang = 'zh';
|
||||
}
|
||||
updateQuest(data.id, data).then(resp => {
|
||||
updateScript(data.id, data).then(resp => {
|
||||
this.reloadTable();
|
||||
this.$message.success(this.$t('scriptRecord.modifyScriptSuccess'));
|
||||
}).catch(error => {
|
||||
@ -216,7 +216,7 @@ export default {
|
||||
return lastData.status;
|
||||
},
|
||||
handleConfirmPublish(data) {
|
||||
publishQuest(data.id, {'scriptName':data.scriptName}).then(resp => {
|
||||
publishScript(data.id, {'scriptName':data.scriptName}).then(resp => {
|
||||
this.reloadTable();
|
||||
this.$message.success(this.$t('scriptRecord.publishScriptSuccess'));
|
||||
}).catch(error => {
|
||||
@ -232,7 +232,7 @@ export default {
|
||||
cancelButtonText: this.$t('global.cancel'),
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
publishQuest(row.id, {name:''}).then(resp => {
|
||||
publishScript(row.id, {name:''}).then(resp => {
|
||||
this.reloadTable();
|
||||
this.$message.success(this.$t('scriptRecord.releaseScriptSuccess'));
|
||||
}).catch(error => {
|
||||
@ -255,7 +255,7 @@ export default {
|
||||
cancelButtonText: this.$t('global.cancel'),
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
retractQuest(row.id).then(resp => {
|
||||
retractScript(row.id).then(resp => {
|
||||
this.reloadTable();
|
||||
this.$message.success(this.$t('approval.revokeScriptSuccess'));
|
||||
}).catch(error => {
|
||||
|
Loading…
Reference in New Issue
Block a user