This commit is contained in:
wang_yp 2025-02-27 21:50:13 +08:00
parent 09812c56f0
commit f70e8d163f
6 changed files with 11 additions and 19 deletions

View File

@ -8,10 +8,7 @@ const OrgChartSelf = (props: Store) => {
const { depStore } = props; const { depStore } = props;
const [detail, setDetail] = useState(false); const [detail, setDetail] = useState(false);
useEffect(() => { useEffect(() => {
depStore.getOrg().then((res) => { depStore.getOrg();
// setOrgData(res.data.record)
// setOrgData(orgData);
});
}, [depStore]); }, [depStore]);
const getArrayDepth = (arr) => { const getArrayDepth = (arr) => {
@ -113,7 +110,7 @@ const OrgChartSelf = (props: Store) => {
backgroundColor: "#fff", backgroundColor: "#fff",
}} }}
width={50} width={50}
src="https://pic.aigexing.net/uploads/5/1253/3721116011/92968290915/8785297.jpg" src={v.head_img}
alt="" alt=""
/> />
<span className="userNmae">{v1.user_name}</span> <span className="userNmae">{v1.user_name}</span>

View File

@ -31,7 +31,7 @@ const Orgin = (props: Store) => {
}}> }}>
<span>{homeStore.ogMap?.count ?? 0}</span> <span>{homeStore.ogMap?.count ?? 0}</span>
<img src={origin} alt="" /> <img src={origin} alt="" />
<p></p> <p></p>
</div> </div>
<div className="po" onClick={()=>{ <div className="po" onClick={()=>{
setIsSelf(false) setIsSelf(false)
@ -39,7 +39,7 @@ const Orgin = (props: Store) => {
}}> }}>
<span>{homeStore.ogMap?.member_count ?? 0}</span> <span>{homeStore.ogMap?.member_count ?? 0}</span>
<img src={origin2} alt="" /> <img src={origin2} alt="" />
<p></p> <p></p>
</div> </div>
</div> </div>
<Modal <Modal

View File

@ -251,7 +251,7 @@ const Turn = (props: Store) => {
</div> </div>
</div> </div>
</Col> </Col>
<Col span={16}> <Col span={18}>
<div <div
style={{ style={{
color: "#fff", color: "#fff",

View File

@ -68,20 +68,19 @@ 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
}) })
return data return data
} catch (error) { } catch (error) {
console.log(error)
return false return false
} }
} }
// 通道列表 // 通道列表
async getChannerUrlList(deviceId) { async getChannerUrlList(deviceId) {
try { try {
let data = await baseHttp.gets(Config.videoApi+HomeConfig.channerList, { let data = await baseHttp.gets(HomeConfig.channerList, {
start: 0, start: 0,
limit: 30, limit: 30,
device: deviceId device: deviceId
@ -94,7 +93,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(HomeConfig.channelstream, {
device: deviceId, device: deviceId,
channel: channel, channel: channel,
protocol: "fmp4" protocol: "fmp4"
@ -138,7 +137,6 @@ class HomeStore extends BaseStore<TagDataType> {
} }
showVideoHandler(status) { showVideoHandler(status) {
this.showVideo = status this.showVideo = status
console.log("homeStore.showVideo",this.showVideo,status)
} }
ogMap!: Object; ogMap!: Object;
showVideo!: boolean; showVideo!: boolean;

View File

@ -4,7 +4,6 @@ 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 = "/v1/anth/login/pc" static LOGINURI: string = "/v1/anth/login/pc"
static LIST: string = "/v1/user/list" static LIST: string = "/v1/user/list"
@ -19,10 +18,6 @@ class UserConfig {
static videoLogin: string = "/api/v1/login" static videoLogin: string = "/api/v1/login"
static siteList: string = "/v1/user/site" static siteList: string = "/v1/user/site"
static reSetPwd: string = "/v1/user/reSetPwd" static reSetPwd: string = "/v1/user/reSetPwd"
} }
class UserStore extends BaseStore<UserDataType> { class UserStore extends BaseStore<UserDataType> {
_userinfo: UserInfos = {}; // 用户信息 _userinfo: UserInfos = {}; // 用户信息
@ -114,7 +109,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",
}) })

View File

@ -1,6 +1,8 @@
class Config { class Config {
static baseUrl = "https://www.hswzct.cn:12016/"; static baseUrl = "https://www.hswzct.cn:12016/";
// static baseUrl = "http://47.108.78.174:12214/";
static ws = "wss://www.hswzct.cn:12016/wsadmin?id=admin"; static ws = "wss://www.hswzct.cn:12016/wsadmin?id=admin";
// static ws = "wss://rw.quwanya.cn/wsadmin?id=admin";
static userStatic = "https://www.hswzct.cn:12016/api/uploads/user/"; static userStatic = "https://www.hswzct.cn:12016/api/uploads/user/";
static videoApi = "https://sprh.hswzct.cn:4443"; // static videoApi = "https://sprh.hswzct.cn:4443"; //
static videoApis = "https://sprh.hswzct.cn:4443"; // static videoApis = "https://sprh.hswzct.cn:4443"; //