fix(lauange)

This commit is contained in:
wang_yp 2025-06-28 17:45:34 +08:00
parent d36b600624
commit 9e51070215
10 changed files with 27 additions and 51 deletions

View File

@ -68,7 +68,7 @@ const AliUpload = (props: UploadFileProps) => {
<Upload
listType="picture-card"
fileList={files}
action={`${Config.baseUrl}/v1/public/fts/upload`}
action={`http://127.0.0.1:12216/v1/public/fts/upload`}
onPreview={handlePreview}
maxCount={props.maxCount ?? 4}
onChange={handleChange}

View File

@ -28,7 +28,7 @@ export const FormTreeSelect = (v: FormDatas) => {
value: "identity",
children: "children"
}}
treeCheckable={v.treeCheckbox}
multiple
showSearch
style={{ width: '100%' }}
placeholder="请选择"

View File

@ -8,9 +8,9 @@ export const items = [
},
{
key: "/user",
label: `用户管理`,
label: `员工管理`,
icon: <UserSwitchOutlined />,
children: [{ key: "/user/list", label: `用户管理` }],
children: [{ key: "/user/list", label: `员工管理` }],
},
{
key: "/source",
@ -26,7 +26,7 @@ export const items = [
label: `权限管理`,
icon: <PaperClipOutlined />,
children: [
{ label: `企业管理`, key: "/permi/company" },
{ label: `单位管理`, key: "/permi/company" },
{ label: `部门管理`, key: "/permi/dep" },
{ label: `角色管理`, key: "/permi/role" },
{ label: `菜单管理`, key: "/permi/menu" },

View File

@ -1,33 +0,0 @@
// import { TreeSelect, TreeSelectProps } from "antd";
// import { useEffect, useState } from "react";
const VideoSelect = (props) => {
// const { changes } = props;
// const [value, setValue] = useState<string>();
// useEffect(() => {}, []);
// const onLoadData: TreeSelectProps["loadData"] = async ({ id }) => {};
// const onChange = (newValue: string) => {
// if (newValue.length > 4) return;
// setValue(newValue);
// changes(newValue);
// };
// return (
// <div>
// <TreeSelect
// treeDataSimpleMode
// multiple
// treeCheckable
// style={{ width: "100%" }}
// value={value}
// dropdownStyle={{ maxHeight: 400, overflow: "auto" }}
// placeholder="Please select"
// onChange={onChange}
// loadData={onLoadData}
// />
// </div>
// );
};
export default VideoSelect;

View File

@ -71,6 +71,7 @@ const Source = (props: Store) => {
};
const getContent = (list, index) => {
setLoading(true);
console.log(index)
sourceStore.geContent(list, index, 20).then((res) => {
res.forEach((element) => {
element.key = element.identity;
@ -181,6 +182,7 @@ const Source = (props: Store) => {
const onChange: PaginationProps["onChange"] = (page) => {
setPage(page);
console.log(page)
getContent(selectKey, page);
cancel();
};

View File

@ -1,12 +1,11 @@
import Config from "@/util/config";
import { Button, message, Upload, UploadProps } from "antd";
const Uploads = () => {
const props: UploadProps = {
name: "file",
action: `${Config.baseUrl}/public/fts/uploadthree`,
action: `http://127.0.0.1:12216/v1/public/fts/uploadFore`,
headers: {
authorization: "authorization-text",
authorization: window.localStorage.getItem("token")??''
},
onChange(info: any) {
if (info.file.status === "done" && info.file.response.code !== 200) {

View File

@ -110,15 +110,20 @@ export const columns: ColumnsType<UserDataType> = [
dataIndex: "tel",
},
{
title: "所属部门",
dataIndex: "",
title: "所属部门",
render: (render) => (
<span>{render.dep[0]?.dep_name}</span>
),
},
{
title: "所属单位",
dataIndex: "",
title: "所属单位",
render: (render) => (
<span>{render.company[0]?.name}</span>
),
},
{
title: "角色",
title: "角色",
dataIndex: "",
}
];

View File

@ -90,6 +90,7 @@ class BaseStore<B> implements BaseStoreInterface<B> {
if (!res?.data?.record) {
runInAction(() => {
this.list = data;
this.total = res.data.count
})
this.listStatus = false;
return;

View File

@ -1,4 +1,4 @@
import { action, makeObservable, observable } from "mobx";
import { action, makeObservable, observable, runInAction } from "mobx";
import BaseStore from "./baseStore";
import { UserDataType } from "@/model/userModel";
import SourceConfig from "@/service/source_config";
@ -38,8 +38,8 @@ class SourceStore extends BaseStore<UserDataType> {
}
}
let res = await base.put(SourceConfig.EDIT, {
list:list,
id_card:idcard,
list: list,
id_card: idcard,
})
if (res.code !== 200) {
message.error(res.msg)
@ -54,7 +54,10 @@ class SourceStore extends BaseStore<UserDataType> {
message.error(res.msg)
return false
}
this.total = res.data.count;
runInAction(() => {
this.total = res.data.count;
})
return res.data.record;
}
}

View File

@ -4,7 +4,6 @@ import BaseStore from "./baseStore";
import { UserDataType, UserInfos } from "@/model/userModel";
import { message } from "antd";
import { UserConfig } from "@/service/user_config";
import { json } from "stream/consumers";
class UserStore extends BaseStore<UserDataType> {
_userinfo: UserInfos = {}; // 用户信息