Commit 622d1b1a authored by shaoan123's avatar shaoan123

对接方案配置接口

parent 2bc8f01a
Pipeline #31087 skipped with stages
......@@ -20,7 +20,6 @@ const MapScope = props => {
el: el.current,
});
viewer = pdViewer.viewer;
console.log('viewer', viewer);
pdViewer.viewer.camera.flyTo({
destination: Cesium.Cartesian3.fromDegrees(114.31, 30.52, 15000.0), //武汉
});
......@@ -142,7 +141,7 @@ const MapScope = props => {
confirmModal && confirmModal(mapSettings)
}
else {
message.info("未选择视角,请先选择区域,再点击获取视角按钮获取视角")
message.info("未选择视角,请先选择区域")
}
}
......
import React, { useState, useEffect } from 'react';
import { Form, Modal, Input, Select, AutoComplete, Button, notification } from 'antd';
import {
SetServiceConfig
SetServiceConfig,AddWebSchema
} from '@/services/webConfig/api';
......@@ -17,15 +17,12 @@ const AddModal = props => {
if (validate) {
setLoading(true);
let obj = form.getFieldsValue();
SetServiceConfig({
schemename: obj.schemename,
terminalType: type === 'add' ? 'web' : 'phone',
isBaseMap: 'false',
jsonCfg: type === 'add' ? JSON.stringify({ type: 'dynamic' }) : JSON.stringify({ isDefault: false })
AddWebSchema({
schemename: obj.schemename
})
.then(res => {
setLoading(false);
if (res.msg === "Ok") {
if (res.msg === "") {
form.resetFields();
callBackSubmit();
notification.success({
......@@ -38,7 +35,7 @@ const AddModal = props => {
notification.error({
message: '提示',
duration: 3,
description: '新增失败',
description:res.msg,
});
}
})
......
......@@ -282,6 +282,27 @@ export const AddSchemaBaseMap = (query) =>
export const DeleteSchemaBaseMap = (query) =>
get(`${PUBLISH_SERVICE}/Maplayer/DeleteSchemaBaseMap`, query);
//设置底图激活
//设置底图激活
export const SchemaSettingIsActive = (query) =>
get(`${PUBLISH_SERVICE}/Maplayer/SchemaSettingIsActive`, query);
\ No newline at end of file
get(`${PUBLISH_SERVICE}/Maplayer/SchemaSettingIsActive`, query);
//获取Web方案配置列表
export const GetWebSchemaList = (query) =>
get(`${PUBLISH_SERVICE}/Maplayer/GetWebSchemaList`, query);
//添加Web方案
export const AddWebSchema = (query) =>
post(`${PUBLISH_SERVICE}/Maplayer/AddWebSchema`, query);
//删除Web方案
export const DeleteWebSchema = (schemaname) =>
get(`${PUBLISH_SERVICE}/Maplayer/DeleteWebSchema?schemaname=${schemaname }`);
//设置web方案是否默认
export const IsActionWebSchema = (query) =>
get(`${PUBLISH_SERVICE}/Maplayer/IsActionWebSchema`, query);
//根据方案名称设置角色
export const SettingRoleWebSchema = (query) =>
get(`${PUBLISH_SERVICE}/Maplayer/SettingRoleWebSchema`, query);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment