first commit
This commit is contained in:
parent
41f434c354
commit
7bc72d4981
|
@ -147,7 +147,7 @@ const Emergency = (props: Store) => {
|
||||||
};
|
};
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
emergencyStore.getlist();
|
emergencyStore.getlist();
|
||||||
baseHttp.get("/team/list", null).then((res) => {
|
baseHttp.get("/v1/team/list", null).then((res) => {
|
||||||
let data = res.data?.record ?? [];
|
let data = res.data?.record ?? [];
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
item.label = item.name;
|
item.label = item.name;
|
||||||
|
@ -160,7 +160,7 @@ const Emergency = (props: Store) => {
|
||||||
const onFinishFailed = () => {};
|
const onFinishFailed = () => {};
|
||||||
const handleSearch = (newValue: string) => {
|
const handleSearch = (newValue: string) => {
|
||||||
if (newValue === "") return;
|
if (newValue === "") return;
|
||||||
baseHttp.get("/supplies/list/serch", { name: newValue }).then((res) => {
|
baseHttp.get("/v1/supplies/list/serch", { name: newValue }).then((res) => {
|
||||||
let data = res.data?.record ?? [];
|
let data = res.data?.record ?? [];
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
item.text = item.name;
|
item.text = item.name;
|
||||||
|
|
|
@ -51,7 +51,7 @@ const Dispath = (props: Store) => {
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
baseHttp.get("/team/list", null).then((res) => {
|
baseHttp.get("/v1/team/list", null).then((res) => {
|
||||||
let data = res.data?.record ?? [];
|
let data = res.data?.record ?? [];
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
item.label = item.name;
|
item.label = item.name;
|
||||||
|
|
|
@ -50,7 +50,7 @@ const Emr = (props: Store) => {
|
||||||
};
|
};
|
||||||
const handleSearch = (newValue: string) => {
|
const handleSearch = (newValue: string) => {
|
||||||
if (newValue === "") return;
|
if (newValue === "") return;
|
||||||
baseHttp.get("/supplies/list/serch", { name: newValue }).then((res) => {
|
baseHttp.get("/v1/supplies/list/serch", { name: newValue }).then((res) => {
|
||||||
let data = res.data?.record ?? [];
|
let data = res.data?.record ?? [];
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
item.text = item.name;
|
item.text = item.name;
|
||||||
|
@ -61,7 +61,7 @@ const Emr = (props: Store) => {
|
||||||
};
|
};
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
emergencyStore.getlist();
|
emergencyStore.getlist();
|
||||||
baseHttp.get("/team/list", null).then((res) => {
|
baseHttp.get("/v1/team/list", null).then((res) => {
|
||||||
let data = res.data?.record ?? [];
|
let data = res.data?.record ?? [];
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
item.label = item.name;
|
item.label = item.name;
|
||||||
|
|
|
@ -22,8 +22,8 @@ const Patrol = (props: Store) => {
|
||||||
const formRef = React.useRef<FormInstance>(null);
|
const formRef = React.useRef<FormInstance>(null);
|
||||||
const [record, setRecord] = useState<any>(null);
|
const [record, setRecord] = useState<any>(null);
|
||||||
const [tagId, setId] = useState<Number | null>(null);
|
const [tagId, setId] = useState<Number | null>(null);
|
||||||
const [userList, setUserList] = useState<Array<any>>([]);
|
const [, setUserList] = useState<Array<any>>([]);
|
||||||
const [value, setValue] = useState<UserValue[]>([]);
|
const [value] = useState<UserValue[]>([]);
|
||||||
|
|
||||||
const columns: ColumnsType<UserDataType> = [
|
const columns: ColumnsType<UserDataType> = [
|
||||||
{ title: "任务标题", dataIndex: "title" },
|
{ title: "任务标题", dataIndex: "title" },
|
||||||
|
@ -109,7 +109,7 @@ const Patrol = (props: Store) => {
|
||||||
};
|
};
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
patrolStore.getlist();
|
patrolStore.getlist();
|
||||||
baseHttp.get("/user/list", null).then((res) => {
|
baseHttp.get("/v1/user/list", null).then((res) => {
|
||||||
let data = res.data?.record ?? [];
|
let data = res.data?.record ?? [];
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
item.label = item.user_name;
|
item.label = item.user_name;
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { useEffect, useState } from "react";
|
||||||
const ErCode = () => {
|
const ErCode = () => {
|
||||||
const [url, setUrl] = useState("");
|
const [url, setUrl] = useState("");
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
base.gets("/sys/version", {}).then((res) => {
|
base.gets("/v1/sys/version", {}).then((res) => {
|
||||||
setUrl(res.data.record.url);
|
setUrl(res.data.record.url);
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
|
@ -159,7 +159,7 @@ const Trainings = (props: Store) => {
|
||||||
trainingCatStore.getlist().then(() => {
|
trainingCatStore.getlist().then(() => {
|
||||||
setStash(trainingCatStore.list);
|
setStash(trainingCatStore.list);
|
||||||
});
|
});
|
||||||
baseHttp.get("/team/list", null).then((res) => {
|
baseHttp.get("/v1/team/list", null).then((res) => {
|
||||||
let data = res.data?.record ?? [];
|
let data = res.data?.record ?? [];
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
item.label = item.name;
|
item.label = item.name;
|
||||||
|
@ -205,7 +205,7 @@ const Trainings = (props: Store) => {
|
||||||
};
|
};
|
||||||
const handleSearch = (newValue: string) => {
|
const handleSearch = (newValue: string) => {
|
||||||
if (newValue === "") return;
|
if (newValue === "") return;
|
||||||
baseHttp.get("/supplies/list/serch", { name: newValue }).then((res) => {
|
baseHttp.get("/v1/supplies/list/serch", { name: newValue }).then((res) => {
|
||||||
let data = res.data?.record ?? [];
|
let data = res.data?.record ?? [];
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
item.text = item.name;
|
item.text = item.name;
|
||||||
|
|
|
@ -5,7 +5,7 @@ import axios, { AxiosResponse } from "axios";
|
||||||
axios.defaults.headers.common["Content-Type"] = "application/json; charset=utf8";
|
axios.defaults.headers.common["Content-Type"] = "application/json; charset=utf8";
|
||||||
axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
|
axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
|
||||||
axios.interceptors.request.use((config) => {
|
axios.interceptors.request.use((config) => {
|
||||||
config.baseURL = `${Config.baseUrl}v1/`;
|
config.baseURL = `${Config.baseUrl}`;
|
||||||
config.timeout = 50000;
|
config.timeout = 50000;
|
||||||
let token = window.localStorage.getItem("token")
|
let token = window.localStorage.getItem("token")
|
||||||
config.headers.Authorization = token ?? "1"
|
config.headers.Authorization = token ?? "1"
|
||||||
|
|
|
@ -5,10 +5,10 @@ import { TagDataType } from "@/model/userModel";
|
||||||
import baseHttp from "@/service/base";
|
import baseHttp from "@/service/base";
|
||||||
|
|
||||||
class ArchivesConfig {
|
class ArchivesConfig {
|
||||||
static LIST: string = "archives/list"
|
static LIST: string = "/v1/archives/list"
|
||||||
static ADD: string = "archives"
|
static ADD: string = "/v1/archives"
|
||||||
static DELETE: string = "archives"
|
static DELETE: string = "/v1/archives"
|
||||||
static EDIT: string = "archives"
|
static EDIT: string = "/v1/archives"
|
||||||
}
|
}
|
||||||
class ArchivesStore extends BaseStore<TagDataType> {
|
class ArchivesStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -3,10 +3,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class ArchivesCategoryConfig {
|
class ArchivesCategoryConfig {
|
||||||
static LIST: string = "archives/category/list"
|
static LIST: string = "/v1/archives/category/list"
|
||||||
static ADD: string = "archives/category"
|
static ADD: string = "/v1/archives/category"
|
||||||
static DELETE: string = "archives/category"
|
static DELETE: string = "/v1/archives/category"
|
||||||
static EDIT: string = "archives/category"
|
static EDIT: string = "/v1/archives/category"
|
||||||
}
|
}
|
||||||
class ArchivesCategoryStore extends BaseStore<TagDataType> {
|
class ArchivesCategoryStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
// 社区
|
// 社区
|
||||||
class CommunityConfig {
|
class CommunityConfig {
|
||||||
static LIST: string = "community/list"
|
static LIST: string = "/v1/community/list"
|
||||||
static ADD: string = "community"
|
static ADD: string = "/v1/community"
|
||||||
static DELETE: string = "community"
|
static DELETE: string = "/v1/community"
|
||||||
static EDIT: string = "community"
|
static EDIT: string = "/v1/community"
|
||||||
}
|
}
|
||||||
class CommunityStore extends BaseStore<TagDataType> {
|
class CommunityStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -5,11 +5,11 @@ import { TagDataType } from "@/model/userModel";
|
||||||
import baseHttp from '@/service/base';
|
import baseHttp from '@/service/base';
|
||||||
|
|
||||||
class DepConfig {
|
class DepConfig {
|
||||||
static LIST: string = "dep/list"
|
static LIST: string = "/v1/dep/list"
|
||||||
static ADD: string = "dep"
|
static ADD: string = "/v1/dep"
|
||||||
static DELETE: string = "dep"
|
static DELETE: string = "/v1/dep"
|
||||||
static EDIT: string = "dep"
|
static EDIT: string = "/v1/dep"
|
||||||
static ORG: string = "dep/org"
|
static ORG: string = "/v1/dep/org"
|
||||||
}
|
}
|
||||||
class DepStore extends BaseStore<TagDataType> {
|
class DepStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -6,13 +6,13 @@ import baseHttp from "@/service/base";
|
||||||
|
|
||||||
|
|
||||||
class EmergencyConfig {
|
class EmergencyConfig {
|
||||||
static LIST: string = "emerg/list"
|
static LIST: string = "/v1/emerg/list"
|
||||||
static ADD: string = "emerg"
|
static ADD: string = "/v1/emerg"
|
||||||
static DELETE: string = "emerg"
|
static DELETE: string = "/v1/emerg"
|
||||||
static EDIT: string = "emerg"
|
static EDIT: string = "/v1/emerg"
|
||||||
static ACCESS: string = "emerg/accept"
|
static ACCESS: string = "/v1/emerg/accept"
|
||||||
static fish: string = "emerg/fish"
|
static fish: string = "/v1/emerg/fish"
|
||||||
static USERLIST: string = "emerg/user"
|
static USERLIST: string = "/v1/emerg/user"
|
||||||
|
|
||||||
}
|
}
|
||||||
class EmergencyStore extends BaseStore<TagDataType> {
|
class EmergencyStore extends BaseStore<TagDataType> {
|
||||||
|
|
|
@ -5,11 +5,11 @@ import { TagDataType } from "@/model/userModel";
|
||||||
import baseHttp from "@/service/base";
|
import baseHttp from "@/service/base";
|
||||||
|
|
||||||
class ExceCompetConfig {
|
class ExceCompetConfig {
|
||||||
static LIST: string = "exceCompet/list"
|
static LIST: string = "/v1/exceCompet/list"
|
||||||
static ADD: string = "exceCompet"
|
static ADD: string = "/v1/exceCompet"
|
||||||
static DELETE: string = "exceCompet"
|
static DELETE: string = "/v1/exceCompet"
|
||||||
static EDIT: string = "exceCompet"
|
static EDIT: string = "/v1/exceCompet"
|
||||||
static Audit: string = "exceCompet/audit"
|
static Audit: string = "/v1/exceCompet/audit"
|
||||||
}
|
}
|
||||||
class ExceCompetStore extends BaseStore<TagDataType> {
|
class ExceCompetStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -5,11 +5,11 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class FolderConfig {
|
class FolderConfig {
|
||||||
static LIST: string = "archives/folder/list"
|
static LIST: string = "/v1/archives/folder/list"
|
||||||
static ADD: string = "archives/folder"
|
static ADD: string = "/v1/archives/folder"
|
||||||
static DELETE: string = "archives/folder"
|
static DELETE: string = "/v1/archives/folder"
|
||||||
static EDIT: string = "archives/folder"
|
static EDIT: string = "/v1/archives/folder"
|
||||||
static AList: string = "archives/list"
|
static AList: string = "/v1/archives/list"
|
||||||
}
|
}
|
||||||
class FolderStore extends BaseStore<TagDataType> {
|
class FolderStore extends BaseStore<TagDataType> {
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@ import { makeObservable } from "mobx";
|
||||||
import BaseStore from "./baseStore";
|
import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
class GpConfig {
|
class GpConfig {
|
||||||
static LIST: string = "gplaque/list"
|
static LIST: string = "/v1/gplaque/list"
|
||||||
static ADD: string = "gplaque"
|
static ADD: string = "/v1/gplaque"
|
||||||
static DELETE: string = "gplaque"
|
static DELETE: string = "/v1/gplaque"
|
||||||
static EDIT: string = "gplaque"
|
static EDIT: string = "/v1/gplaque"
|
||||||
}
|
}
|
||||||
class GpStore extends BaseStore<TagDataType> {
|
class GpStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class GridConfig {
|
class GridConfig {
|
||||||
static LIST: string = "grid/list"
|
static LIST: string = "/v1/grid/list"
|
||||||
static ADD: string = "grid"
|
static ADD: string = "/v1/grid"
|
||||||
static DELETE: string = "grid"
|
static DELETE: string = "/v1/grid"
|
||||||
static EDIT: string = "grid"
|
static EDIT: string = "/v1/grid"
|
||||||
}
|
}
|
||||||
class GridStore extends BaseStore<TagDataType> {
|
class GridStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -7,17 +7,17 @@ import MapUtl from "@/components/map/mapUtil";
|
||||||
import Config from "@/util/config";
|
import Config from "@/util/config";
|
||||||
|
|
||||||
class HomeConfig {
|
class HomeConfig {
|
||||||
static os: string = "public/os"
|
static os: string = "/v1/public/os"
|
||||||
static tr: string = "public/tr"
|
static tr: string = "/v1/public/tr"
|
||||||
static af: string = "public/af"
|
static af: string = "/v1/public/af"
|
||||||
static mm: string = "public/mm"
|
static mm: string = "/v1/public/mm"
|
||||||
static rm: string = "public/rm"
|
static rm: string = "/v1/public/rm"
|
||||||
static ae: string = "public/ae"
|
static ae: string = "/v1/public/ae"
|
||||||
static newTask: string = "user/newTask"
|
static newTask: string = "/v1/user/newTask"
|
||||||
static taskulist: string = "public/taskInUser"
|
static taskulist: string = "/v1/public/taskInUser"
|
||||||
static deviceList: string = "api/v1/devicesconfig" //设备列表
|
static deviceList: string = "/api/v1/devicesconfig" //设备列表
|
||||||
static channerList: string = "api/v1/channelsconfig" //设备列表
|
static channerList: string = "/api/v1/channelsconfig" //设备列表
|
||||||
static channelstream: string = "api/v1/devices/channelstream" //设备包活
|
static channelstream: string = "/api/v1/devices/channelstream" //设备包活
|
||||||
|
|
||||||
}
|
}
|
||||||
class HomeStore extends BaseStore<TagDataType> {
|
class HomeStore extends BaseStore<TagDataType> {
|
||||||
|
@ -58,7 +58,7 @@ class HomeStore extends BaseStore<TagDataType> {
|
||||||
// 获取视频推流连接
|
// 获取视频推流连接
|
||||||
async getVideoUrlList() {
|
async getVideoUrlList() {
|
||||||
try {
|
try {
|
||||||
let data = await baseHttp.gets(Config.videoApi + HomeConfig.deviceList, {
|
let data = await baseHttp.gets(HomeConfig.deviceList, {
|
||||||
start: 0,
|
start: 0,
|
||||||
limit: 30
|
limit: 30
|
||||||
})
|
})
|
||||||
|
@ -71,7 +71,7 @@ class HomeStore extends BaseStore<TagDataType> {
|
||||||
// 通道列表
|
// 通道列表
|
||||||
async getChannerUrlList(deviceId) {
|
async getChannerUrlList(deviceId) {
|
||||||
try {
|
try {
|
||||||
let data = await baseHttp.gets(Config.videoApi + HomeConfig.channerList, {
|
let data = await baseHttp.gets(Config.baseUrl+HomeConfig.channerList, {
|
||||||
start: 0,
|
start: 0,
|
||||||
limit: 30,
|
limit: 30,
|
||||||
device: deviceId
|
device: deviceId
|
||||||
|
@ -85,7 +85,7 @@ class HomeStore extends BaseStore<TagDataType> {
|
||||||
// 获取通道流
|
// 获取通道流
|
||||||
async getChannerStrem(deviceId, channel) {
|
async getChannerStrem(deviceId, channel) {
|
||||||
try {
|
try {
|
||||||
let data = await baseHttp.gets(Config.videoApi + HomeConfig.channelstream, {
|
let data = await baseHttp.gets(Config.baseUrl+HomeConfig.channelstream, {
|
||||||
device: deviceId,
|
device: deviceId,
|
||||||
channel: channel,
|
channel: channel,
|
||||||
protocol: "HLS"
|
protocol: "HLS"
|
||||||
|
|
|
@ -6,11 +6,11 @@ import baseHttp from "@/service/base";
|
||||||
|
|
||||||
|
|
||||||
class LeaveConfig {
|
class LeaveConfig {
|
||||||
static LIST: string = "leave/list"
|
static LIST: string = "/v1/leave/list"
|
||||||
static ADD: string = "leave"
|
static ADD: string = "/v1/leave"
|
||||||
static DELETE: string = "leave"
|
static DELETE: string = "/v1/leave"
|
||||||
static EDIT: string = "leave"
|
static EDIT: string = "/v1/leave"
|
||||||
static ACCESS: string = "leave/access"
|
static ACCESS: string = "/v1/leave/access"
|
||||||
}
|
}
|
||||||
class LeaveStore extends BaseStore<TagDataType> {
|
class LeaveStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -5,10 +5,10 @@ import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
|
|
||||||
class LeaveCategoryConfig {
|
class LeaveCategoryConfig {
|
||||||
static LIST: string = "leave/category/list"
|
static LIST: string = "/v1/leave/category/list"
|
||||||
static ADD: string = "leave/category"
|
static ADD: string = "/v1/leave/category"
|
||||||
static DELETE: string = "leave/category"
|
static DELETE: string = "/v1/leave/category"
|
||||||
static EDIT: string = "leave/category"
|
static EDIT: string = "/v1/leave/category"
|
||||||
}
|
}
|
||||||
class LeaveCategoryStore extends BaseStore<TagDataType> {
|
class LeaveCategoryStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class MaterialCatConfig {
|
class MaterialCatConfig {
|
||||||
static LIST: string = "suppliesCat/list"
|
static LIST: string = "/v1/suppliesCat/list"
|
||||||
static ADD: string = "suppliesCat"
|
static ADD: string = "/v1/suppliesCat"
|
||||||
static DELETE: string = "suppliesCat"
|
static DELETE: string = "/v1/suppliesCat"
|
||||||
static EDIT: string = "suppliesCat"
|
static EDIT: string = "/v1/suppliesCat"
|
||||||
}
|
}
|
||||||
class MaterialCatStore extends BaseStore<TagDataType> {
|
class MaterialCatStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class MaterialConfig {
|
class MaterialConfig {
|
||||||
static LIST: string = "supplies/list"
|
static LIST: string = "/v1/supplies/list"
|
||||||
static ADD: string = "supplies"
|
static ADD: string = "/v1/supplies"
|
||||||
static DELETE: string = "supplies"
|
static DELETE: string = "/v1/supplies"
|
||||||
static EDIT: string = "supplies"
|
static EDIT: string = "/v1/supplies"
|
||||||
}
|
}
|
||||||
class MaterialStore extends BaseStore<TagDataType> {
|
class MaterialStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -6,11 +6,11 @@ import baseHttp from "@/service/base";
|
||||||
|
|
||||||
|
|
||||||
class PatrolConfig {
|
class PatrolConfig {
|
||||||
static LIST: string = "patrol/list"
|
static LIST: string = "/v1/patrol/list"
|
||||||
static ADD: string = "patrol"
|
static ADD: string = "/v1/patrol"
|
||||||
static DELETE: string = "patrol"
|
static DELETE: string = "/v1/patrol"
|
||||||
static EDIT: string = "patrol"
|
static EDIT: string = "/v1/patrol"
|
||||||
static ACCESS: string = "patrol/accept"
|
static ACCESS: string = "/v1/patrol/accept"
|
||||||
}
|
}
|
||||||
class PatrolStore extends BaseStore<TagDataType> {
|
class PatrolStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class PatrolBrigadeConfig {
|
class PatrolBrigadeConfig {
|
||||||
static LIST: string = "user/getPatrol"
|
static LIST: string = "/v1/user/getPatrol"
|
||||||
static ADD: string = "user/setPatrol"
|
static ADD: string = "/v1/user/setPatrol"
|
||||||
}
|
}
|
||||||
class PatrolBrigadeStore extends BaseStore<TagDataType> {
|
class PatrolBrigadeStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class PersMgmtConfig {
|
class PersMgmtConfig {
|
||||||
static LIST: string = "persMgmt/list"
|
static LIST: string = "/v1/persMgmt/list"
|
||||||
static ADD: string = "persMgmt"
|
static ADD: string = "/v1/persMgmt"
|
||||||
static DELETE: string = "persMgmt"
|
static DELETE: string = "/v1/persMgmt"
|
||||||
static EDIT: string = "persMgmt"
|
static EDIT: string = "/v1/persMgmt"
|
||||||
}
|
}
|
||||||
class PersMgmtStore extends BaseStore<TagDataType> {
|
class PersMgmtStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class PoliticalStudyConfig {
|
class PoliticalStudyConfig {
|
||||||
static LIST: string = "learning/list"
|
static LIST: string = "/v1/learning/list"
|
||||||
static ADD: string = "learning/add"
|
static ADD: string = "/v1/learning/add"
|
||||||
static DELETE: string = "learning"
|
static DELETE: string = "/v1/learning"
|
||||||
static EDIT: string = "learning"
|
static EDIT: string = "/v1/learning"
|
||||||
}
|
}
|
||||||
class PoliticalStudy extends BaseStore<TagDataType> {
|
class PoliticalStudy extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class RegulationsConfig {
|
class RegulationsConfig {
|
||||||
static LIST: string = "regulations/list"
|
static LIST: string = "/v1/regulations/list"
|
||||||
static ADD: string = "regulations"
|
static ADD: string = "/v1/regulations"
|
||||||
static DELETE: string = "regulations"
|
static DELETE: string = "/v1/regulations"
|
||||||
static EDIT: string = "regulations"
|
static EDIT: string = "/v1/regulations"
|
||||||
}
|
}
|
||||||
class Regulations extends BaseStore<TagDataType> {
|
class Regulations extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class RegulationsCatConfig {
|
class RegulationsCatConfig {
|
||||||
static LIST: string = "regulations/catgory/list"
|
static LIST: string = "/v1/regulations/catgory/list"
|
||||||
static ADD: string = "regulations/catgory"
|
static ADD: string = "/v1/regulations/catgory"
|
||||||
static DELETE: string = "regulations/catgory"
|
static DELETE: string = "/v1/regulations/catgory"
|
||||||
static EDIT: string = "regulations/catgory"
|
static EDIT: string = "/v1/regulations/catgory"
|
||||||
}
|
}
|
||||||
class RegulationsCat extends BaseStore<TagDataType> {
|
class RegulationsCat extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class StashConfig {
|
class StashConfig {
|
||||||
static LIST: string = "stash/list"
|
static LIST: string = "/v1/stash/list"
|
||||||
static ADD: string = "stash"
|
static ADD: string = "/v1/stash"
|
||||||
static DELETE: string = "stash"
|
static DELETE: string = "/v1/stash"
|
||||||
static EDIT: string = "stash"
|
static EDIT: string = "/v1/stash"
|
||||||
}
|
}
|
||||||
class Stash extends BaseStore<TagDataType> {
|
class Stash extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class StoreageConfig {
|
class StoreageConfig {
|
||||||
static LIST: string = "storage/list"
|
static LIST: string = "/v1/storage/list"
|
||||||
static ADD: string = "storage"
|
static ADD: string = "/v1/storage"
|
||||||
static DELETE: string = "storage"
|
static DELETE: string = "/v1/storage"
|
||||||
static EDIT: string = "storage"
|
static EDIT: string = "/v1/storage"
|
||||||
}
|
}
|
||||||
class StorageStore extends BaseStore<TagDataType> {
|
class StorageStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -5,11 +5,11 @@ import baseHttp from "@/service/base";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class SysConfig {
|
class SysConfig {
|
||||||
static LISTBannler: string = "sys/banner"
|
static LISTBannler: string = "/v1/sys/banner"
|
||||||
static ADDBanner: string = "sys/banner"
|
static ADDBanner: string = "/v1/sys/banner"
|
||||||
static LIST: string = "sys/drop"
|
static LIST: string = "/v1/sys/drop"
|
||||||
static ADD: string = "sys/drop"
|
static ADD: string = "/v1/sys/drop"
|
||||||
static DELETE: string = "sys/drop"
|
static DELETE: string = "/v1/sys/drop"
|
||||||
}
|
}
|
||||||
class SysStore extends BaseStore<TagDataType> {
|
class SysStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class TagConfig {
|
class TagConfig {
|
||||||
static LIST: string = "tag/list"
|
static LIST: string = "/v1/tag/list"
|
||||||
static ADD: string = "tag"
|
static ADD: string = "/v1/tag"
|
||||||
static DELETE: string = "tag"
|
static DELETE: string = "/v1/tag"
|
||||||
static EDIT: string = "tag"
|
static EDIT: string = "/v1/tag"
|
||||||
}
|
}
|
||||||
class TagStore extends BaseStore<TagDataType> {
|
class TagStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,10 +4,10 @@ import BaseStore from "./baseStore";
|
||||||
import { TagDataType } from "@/model/userModel";
|
import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
class TeamConfig {
|
class TeamConfig {
|
||||||
static LIST: string = "team/list"
|
static LIST: string = "/v1/team/list"
|
||||||
static ADD: string = "team"
|
static ADD: string = "/v1/team"
|
||||||
static DELETE: string = "team"
|
static DELETE: string = "/v1/team"
|
||||||
static EDIT: string = "team"
|
static EDIT: string = "/v1/team"
|
||||||
}
|
}
|
||||||
class TeamStore extends BaseStore<TagDataType> {
|
class TeamStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -5,16 +5,16 @@ import { TagDataType } from "@/model/userModel";
|
||||||
import baseHttp from "@/service/base";
|
import baseHttp from "@/service/base";
|
||||||
|
|
||||||
class TrainingConfig {
|
class TrainingConfig {
|
||||||
static LIST: string = "training/list"
|
static LIST: string = "/v1/training/list"
|
||||||
static ADD: string = "training"
|
static ADD: string = "/v1/training"
|
||||||
static DELETE: string = "training"
|
static DELETE: string = "/v1/training"
|
||||||
static EDIT: string = "training"
|
static EDIT: string = "/v1/training"
|
||||||
static ACCESS: string = "training/accept"
|
static ACCESS: string = "/v1/training/accept"
|
||||||
static tran_user: string = "training/user"
|
static tran_user: string = "/v1/training/user"
|
||||||
static addScores: string = "scoreMgmt/scores"
|
static addScores: string = "/v1/scoreMgmt/scores"
|
||||||
static addAchives: string = "training/archives"
|
static addAchives: string = "/v1/training/archives"
|
||||||
static back: string = "supplies/suppliesBack"
|
static back: string = "/v1/supplies/suppliesBack"
|
||||||
static fish: string = "training/taskFish"
|
static fish: string = "/v1/training/taskFish"
|
||||||
}
|
}
|
||||||
class TrainingStore extends BaseStore<TagDataType> {
|
class TrainingStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -5,10 +5,10 @@ import { TagDataType } from "@/model/userModel";
|
||||||
|
|
||||||
|
|
||||||
class TrainingCatConfig {
|
class TrainingCatConfig {
|
||||||
static LIST: string = "training/category/list"
|
static LIST: string = "/v1/training/category/list"
|
||||||
static ADD: string = "training/category"
|
static ADD: string = "/v1/training/category"
|
||||||
static DELETE: string = "training/category"
|
static DELETE: string = "/v1/training/category"
|
||||||
static EDIT: string = "training/category"
|
static EDIT: string = "/v1/training/category"
|
||||||
}
|
}
|
||||||
class TrainingCatStore extends BaseStore<TagDataType> {
|
class TrainingCatStore extends BaseStore<TagDataType> {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -4,18 +4,17 @@ import baseHttp from "@/service/base";
|
||||||
import BaseStore from "./baseStore";
|
import BaseStore from "./baseStore";
|
||||||
import { UserDataType, UserInfos } from "@/model/userModel";
|
import { UserDataType, UserInfos } from "@/model/userModel";
|
||||||
import { message } from "antd";
|
import { message } from "antd";
|
||||||
import Config from "@/util/config";
|
|
||||||
class UserConfig {
|
class UserConfig {
|
||||||
static LOGINURI: string = "anth/login"
|
static LOGINURI: string = "/v1/anth/login"
|
||||||
static LIST: string = "user/list"
|
static LIST: string = "/v1/user/list"
|
||||||
static ADD: string = "user"
|
static ADD: string = "/v1/user"
|
||||||
static DELETE: string = "user"
|
static DELETE: string = "/v1/user"
|
||||||
static EDIT: string = "user"
|
static EDIT: string = "/v1/user"
|
||||||
static pover: string = "user/userPower"
|
static pover: string = "/v1/user/userPower"
|
||||||
static team: string = "team/list"
|
static team: string = "/v1/team/list"
|
||||||
static per: string = "persMgmt/list"
|
static per: string = "/v1/persMgmt/list"
|
||||||
static serch: string = "user/serch"
|
static serch: string = "/v1/user/serch"
|
||||||
static getPatrol: string = "user/getPatrol"
|
static getPatrol: string = "/v1/user/getPatrol"
|
||||||
static videoLogin: string = "api/v1/login"
|
static videoLogin: string = "api/v1/login"
|
||||||
|
|
||||||
|
|
||||||
|
@ -98,7 +97,7 @@ class UserStore extends BaseStore<UserDataType> {
|
||||||
|
|
||||||
async loginVideo() {
|
async loginVideo() {
|
||||||
try {
|
try {
|
||||||
let data = await baseHttp.get(Config.videoApi + UserConfig.videoLogin, {
|
let data = await baseHttp.get(UserConfig.videoLogin, {
|
||||||
username: "easycvr",
|
username: "easycvr",
|
||||||
password: "4092c09db0af030641a977d76044de4f",
|
password: "4092c09db0af030641a977d76044de4f",
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
class Config {
|
class Config {
|
||||||
static baseUrl = "https://rw.quwanya.cn/";
|
static baseUrl = "https://rw.quwanya.cn";
|
||||||
static ws = "wss://rw.quwanya.cn/wsadmin?id=admin";
|
static ws = "wss://rw.quwanya.cn/wsadmin?id=admin";
|
||||||
static userStatic = "https://rw.quwanya.cn/uploads/user/";
|
static userStatic = "https://rw.quwanya.cn/uploads/user/";
|
||||||
static videoApi = "https://sprh.hswzct.cn:4443/"; //
|
static videoApi = "https://sprh.hswzct.cn:4443/"; //
|
||||||
|
|
Loading…
Reference in New Issue