diff --git a/src/route/AppElectron/AppEdit.tsx b/src/route/AppElectron/AppEdit.tsx
index 2a20af7..e928bf2 100644
--- a/src/route/AppElectron/AppEdit.tsx
+++ b/src/route/AppElectron/AppEdit.tsx
@@ -2,23 +2,26 @@ import { useState, useEffect } from 'react'
import EditAppInfo from './components/EditAppInfo/EditAppInfo';
import EditAppDes from './components/EditAppDes/EditAppDes';
import EditAppFiles from './components/EditAppFiles/EditAppFiles';
-import {useParams} from 'react-router-dom'
+import EditAppFunction from './components/EditAppFunction/EditAppFunction';
+import EditBelongPeople from './components/EditBelongPeople/EditBelongPeople';
+import AppInfo from './components/AppInfo/AppInfo';
+import { useParams } from 'react-router-dom'
import './app-edit.css'
import {
RightOutlined
} from '@ant-design/icons';
export default function AppEdit() {
- const pathParams = useParams();
+ const pathParams = useParams();
// 进度
const [editProcess, setEditProcess] = useState(1);
useEffect(() => {
//获取进度
setEditProcess(1)
// 带来的id
- console.log('参数',pathParams);
+ console.log('参数', pathParams);
// 获取 信息
-
+
}, []);
const height = window.innerHeight - 180;
return (
@@ -132,7 +135,7 @@ export default function AppEdit() {
}>
{
@@ -140,6 +143,33 @@ export default function AppEdit() {
}
}>
+
+ {
+ setEditProcess(num)
+ }
+ }>
+
+
+ {
+ setEditProcess(num)
+ }
+ }>
+
+
+
{
+ setEditProcess(num)
+ }
+ }>
+
)
diff --git a/src/route/AppElectron/components/AppInfo/AppInfo.tsx b/src/route/AppElectron/components/AppInfo/AppInfo.tsx
new file mode 100644
index 0000000..802df1d
--- /dev/null
+++ b/src/route/AppElectron/components/AppInfo/AppInfo.tsx
@@ -0,0 +1,166 @@
+import './app-info.css'
+import { Button, message } from "antd"
+export default function AppInfo(props: any) {
+ const height = window.innerHeight - 460;
+ const handleSubmit = () => {
+ message.success('提交成功');
+
+ };
+ return (
+
+
+
+
+
+
软件基本信息
+
+
+
+
+
+
包名 :
+
com.zhongxinhy.communitymanage
+
+
+
运行系统 :
+
android for phone
+
+
+
APP软件分类 :
+
应用 - 生活实用
+
+
+
+
开发完成日期 :
+
2025-05-05
+
+
+
+
+
+
+
权利说明
+
+
+
+
+
其他相关文件 :
+
asdasjdadja.png
+
+
+
+
+
+
+
鉴别材料
+
+
+
源码文档 :
+
asdkaksd.png
+
+
+
软件文档 :
+
asdkaksd.png
+
+
+
+
+
+
功能特点
+
+
+
硬件环境 :
+
1GHz以上处理器,1GB以上内存,16GB以上存储空间、安卓智能移动设备
+
+
+
+
+
+
主要功能 :
+
隆盛社区APP软件主要功能有考勤打卡、房屋人口管理、工作轨迹、事件上报、事件处理、事件检查、学校管理、重点区域管理、重点场所、实有车辆、用户登录退出等功能。
+
+
+
技术特点 :
+
基于 Android Jetpack 组件构建,利用 ViewModel 和 LiveData 实现数据的高效管理与界面的实时更新,确保用户体验流畅。网络通信方面,运用 Retrofit 框架结合 OkHttp,实现安全快速的数据交互。
+
+
+
+
+
+
著作权人
+
+
+
著作权人名称 :
+
嘻嘻嘻嘻嘻嘻嘻哈哈哈哈公司
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )
+}
diff --git a/src/route/AppElectron/components/AppInfo/app-info.css b/src/route/AppElectron/components/AppInfo/app-info.css
new file mode 100644
index 0000000..520cb21
--- /dev/null
+++ b/src/route/AppElectron/components/AppInfo/app-info.css
@@ -0,0 +1,38 @@
+.appInfoBox {
+ width: 100%;
+}
+
+.appInfoTitle {
+ width: 100%;
+ border-bottom: 1px solid #e6e6e6;
+ text-align: center;
+ font-size: 18px;
+ line-height: 50px;
+}
+
+.appInfoText {
+ margin-top: 10px;
+
+}
+
+.appInfoTextItem {
+ display: flex;
+ line-height: 32px;
+ font-size: 16px;
+ /* justify-content: flex-start; */
+ margin-left:200px ;
+ color: rgb(97, 97, 97);
+
+
+}
+
+.appInfoTextItemTitle {
+ /* background-color: pink; */
+ width: 120px;
+ text-align: right;
+ margin-right: 8px;
+}
+.appInfoTextItemText{
+ max-width: 60%;
+ /* background-color: pink; */
+}
\ No newline at end of file
diff --git a/src/route/AppElectron/components/EditAppDes/EditAppDes.tsx b/src/route/AppElectron/components/EditAppDes/EditAppDes.tsx
index f0a4188..df2a8fd 100644
--- a/src/route/AppElectron/components/EditAppDes/EditAppDes.tsx
+++ b/src/route/AppElectron/components/EditAppDes/EditAppDes.tsx
@@ -1,9 +1,46 @@
-// import { useState } from 'react'
+import { useState } from 'react'
import { Button, Form, Upload, message, Select } from "antd"
import { uploadFileUrl } from '../../../../request/request'
import { UploadOutlined } from '@ant-design/icons';
export default function EditAppDes(props: any) {
+ const [upArray, setUpArray] = useState([])
+ // 是否禁用上传按钮
+ const [disabled, setDisabled] = useState(false);
+ const validateFileUpload = (_rule: any, value: any) => {
+ if (!value || value.fileList.length === 0) {
+ return Promise.reject('请选择上传文件');
+ }
+ const file = value.fileList[0];
+ if (file.status === 'uploading') {
+ // setDisabled(true)
+ return Promise.reject('文件上传中,请稍候');
+ } else if (file.status === 'error') {
+ // setDisabled(true)
+ setUpArray([])
+ return Promise.reject('文件上传失败,请删除后重新上传');
+
+ } else if (file.status !== 'done') {
+ // setDisabled(true)
+ setUpArray([])
+
+ return Promise.reject('文件上传失败,请删除后重新上传');
+ } else if (file.status === 'done') {
+ // setDisabled(true)
+ return Promise.resolve();
+ }
+ return Promise.resolve();
+ };
+ // 定义允许上传的文件格式
+ const ALLOWED_FILE_TYPES = ['.pdf', '.doc', '.docx', '.jpg', '.jpeg', '.png'];
+ const beforeUpload = (file: File) => {
+ const fileExt = file.name.slice(file.name.lastIndexOf('.')).toLowerCase();
+ if (!ALLOWED_FILE_TYPES.includes(fileExt)) {
+ message.error(`仅支持 ${ALLOWED_FILE_TYPES.join(', ')} 格式的文件`);
+ return Upload.LIST_IGNORE;
+ }
+ return true;
+ };
const token = sessionStorage.getItem('token')
const height = window.innerHeight - 460;
const [form] = Form.useForm();
@@ -15,26 +52,6 @@ export default function EditAppDes(props: any) {
};
- // // 存储文件上传成功状态
- // const [fileUploadSuccess, setFileUploadSuccess] = useState(false);
- // // 上传状态改变时的回调
- // const handleUploadChange = (info: any) => {
- // if (info.file.status === 'done') {
- // setFileUploadSuccess(true);
- // message.success('文件上传成功');
- // } else if (info.file.status === 'error') {
- // setFileUploadSuccess(false);
- // message.error('文件上传失败,请重试');
- // }
- // };
- // // 自定义验证规则,确保文件上传成功
- // const validateFileUpload = (_rule: any, _value: any, callback: (error?: string) => void) => {
- // if (fileUploadSuccess) {
- // callback();
- // } else {
- // callback('请确保文件上传成功');
- // }
- // };
const submitInfo = (values: any) => {
message.success('提交成功');
console.log(values);
@@ -57,8 +74,17 @@ export default function EditAppDes(props: any) {
}}>