修改菜单由接口返回
parent
3dc6a55529
commit
53d1961a3b
|
|
@ -39,7 +39,7 @@ const HeaderUser: React.FC<{
|
|||
|
||||
|
||||
const onFinish = async (val: any) => {
|
||||
const path = `${apiurl.systemM.userM.updatePassword}?oldPassword=${val.oldPassword}&newPassword=${val.newPassword}`;
|
||||
const path = `${apiurl.systemM.userM.updatePassword}?oldPassword=${encodeURIComponent(val.oldPassword)}&newPassword=${encodeURIComponent(val.newPassword)}`;
|
||||
createCrudService(path).userEdit().then((result) => {
|
||||
if (result?.code === 200) {
|
||||
message.success('修改成功,即将重新登录')
|
||||
|
|
@ -47,6 +47,10 @@ const HeaderUser: React.FC<{
|
|||
setTimeout(() => {
|
||||
logout()
|
||||
}, 1500);
|
||||
}else{
|
||||
if(result.msg){
|
||||
message.error(result.msg)
|
||||
}
|
||||
}
|
||||
})
|
||||
// if(val.newSecretKey!==val.secondSecretKey){
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ const FileView = ({mode, fileList, setFileList}) => {
|
|||
}
|
||||
})()
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => {
|
||||
deleteFile(file.response?.data?.fileId)
|
||||
|
|
|
|||
|
|
@ -175,441 +175,451 @@ export function loadRole(data: any) {
|
|||
export async function loadMenu(): Promise<MenuItem[]> {
|
||||
|
||||
|
||||
// await wait(200)
|
||||
// const { code, data } = await xyt_httpget2(apiurl.xytlogin.role)
|
||||
// if( code!== 200){
|
||||
// message.error('获取用户权限失败')
|
||||
// return []
|
||||
// }
|
||||
// //获取到菜单后遍历
|
||||
// const id = idgen()
|
||||
// // handelTreeData(data,id)
|
||||
// const tree = buildTree(data,0)
|
||||
// const tree2 = tree?.filter((item:any) =>(item.menuId != "1" && item.menuId != "2" && item.menuId != "3"))
|
||||
// handelTreeData(tree2,id)
|
||||
// return tree2
|
||||
|
||||
|
||||
await wait(200)
|
||||
const { code, data } = await xyt_httpget2(apiurl.xytlogin.role)
|
||||
if( code!== 200){
|
||||
message.error('获取用户权限失败')
|
||||
return []
|
||||
}
|
||||
//获取到菜单后遍历
|
||||
const id = idgen()
|
||||
return [
|
||||
{ id: id(), title: '水库一张图', path: '/mgr/home', icon: 'yzt' },
|
||||
{
|
||||
id: id(), title: '四全', redirect: '/mgr/sq/qfg/zcdjxx', icon: 'sz',
|
||||
children: [
|
||||
{
|
||||
id: id(), title: '全覆盖', redirect: '/mgr/sq/qfg/zcdjxx',
|
||||
children: [
|
||||
{ id: id(), title: '注册登记信息', path: '/mgr/sq/qfg/zcdjxx' },
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '全要素', redirect: '/mgr/sq/qys/kqys',
|
||||
children: [
|
||||
{ id: id(), title: '库区要素', path: '/mgr/sq/qys/kqys' },
|
||||
{ id: id(), title: '工程要素', path: '/mgr/sq/qys/gcys' },
|
||||
{ id: id(), title: '下游要素', path: '/mgr/sq/qys/xyys' },
|
||||
// handelTreeData(data,id)
|
||||
const tree = buildTree(data,0)
|
||||
const tree2 = tree?.filter((item:any) =>(item.menuId != "1" && item.menuId != "2" && item.menuId != "3"))
|
||||
handelTreeData(tree2,id)
|
||||
return tree2
|
||||
|
||||
]
|
||||
},
|
||||
{ id: id(), title: '全天候', redirect: '/mgr/sq/qth/sksq',
|
||||
children: [
|
||||
{ id: id(), title: '水库水情', path: '/mgr/sq/qth/sksq'},
|
||||
{ id: id(), title: '河道水情', path: '/mgr/sq/qth/hdsq'},
|
||||
{ id: id(), title: '实时雨情', path: '/mgr/sq/qth/ssyq'},
|
||||
{ id: id(), title: '土壤墒情', path: '/mgr/sq/qth/trsq'},
|
||||
{ id: id(), title: '水库溢洪', path: '/mgr/sq/qth/skyh'},
|
||||
// { id: id(), title: '大坝安全监测', path: '/mgr/sq/qth/dbaqjc'},
|
||||
{ id: id(), title: '视频监控', path: '/mgr/sq/qth/spjk'},
|
||||
]
|
||||
},
|
||||
{ id: id(), title: '全周期', redirect: '/mgr/sq/qzq/gcdsj',
|
||||
children: [
|
||||
{ id: id(), title: '工程大事记', path: '/mgr/sq/qzq/gcdsj'},
|
||||
{ id: id(), title: '全周期档案', path: '/mgr/sq/qys/qzqda'},
|
||||
]
|
||||
},
|
||||
|
||||
// const id = idgen()
|
||||
// return [
|
||||
// { id: id(), title: '水库一张图', path: '/mgr/home', icon: 'yzt' },
|
||||
// {
|
||||
// id: id(), title: '四全', redirect: '/mgr/sq/qfg/zcdjxx', icon: 'sz',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(), title: '全覆盖', redirect: '/mgr/sq/qfg/zcdjxx',
|
||||
// children: [
|
||||
// { id: id(), title: '注册登记信息', path: '/mgr/sq/qfg/zcdjxx' },
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '全要素', redirect: '/mgr/sq/qys/kqys',
|
||||
// children: [
|
||||
// { id: id(), title: '库区要素', path: '/mgr/sq/qys/kqys' },
|
||||
// { id: id(), title: '工程要素', path: '/mgr/sq/qys/gcys' },
|
||||
// { id: id(), title: '下游要素', path: '/mgr/sq/qys/xyys' },
|
||||
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '全天候', redirect: '/mgr/sq/qth/sksq', children: [
|
||||
// { id: id(), title: '水库水情', path: '/mgr/sq/qth/sksq'},
|
||||
// { id: id(), title: '河道水情', path: '/mgr/sq/qth/hdsq'},
|
||||
// { id: id(), title: '实时雨情', path: '/mgr/sq/qth/ssyq'},
|
||||
// { id: id(), title: '土壤墒情', path: '/mgr/sq/qth/trsq'},
|
||||
// { id: id(), title: '水库溢洪', path: '/mgr/sq/qth/skyh'},
|
||||
// // { id: id(), title: '大坝安全监测', path: '/mgr/sq/qth/dbaqjc'},
|
||||
// { id: id(), title: '视频监控', path: '/mgr/sq/qth/spjk'},
|
||||
// ]
|
||||
// },
|
||||
// { id: id(), title: '全周期', redirect: '/mgr/sq/qzq/gcdsj',
|
||||
// children: [
|
||||
// { id: id(), title: '工程大事记', path: '/mgr/sq/qzq/gcdsj'},
|
||||
// { id: id(), title: '全周期档案', path: '/mgr/sq/qys/qzqda'},
|
||||
// ]
|
||||
// },
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '四制', redirect: '/mgr/sz/gltx/zzjgck', icon: 'sz',
|
||||
children: [
|
||||
{
|
||||
id: id(), title: '管理体系', redirect: '/mgr/sz/gltx/zzjgck',
|
||||
children: [
|
||||
{
|
||||
id: id(), title: '组织机构查看', path: '/mgr/sz/gltx/zzjgck',
|
||||
},
|
||||
{
|
||||
id: id(), title: '责任人管理', path: '/mgr/sz/gltx/zrrgl',
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '培训管理', redirect: '/mgr/sz/pxgl/pxjhgl',
|
||||
children: [
|
||||
{
|
||||
id: id(), title: '培训计划管理', path: '/mgr/sz/pxgl/pxjhgl',
|
||||
},
|
||||
{
|
||||
id: id(), title: '培训记录管理', path: '/mgr/sz/pxgl/pxjlgl',
|
||||
},
|
||||
]
|
||||
},
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '四制', redirect: '/mgr/sz/gltx/zzjgck', icon: 'sz',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(), title: '管理体系', redirect: '/mgr/sz/gltx/zzjgck',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(), title: '组织机构查看', path: '/mgr/sz/gltx/zzjgck',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '责任人管理', path: '/mgr/sz/gltx/zrrgl',
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '培训管理', redirect: '/mgr/sz/pxgl/pxjhgl',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(), title: '培训计划管理', path: '/mgr/sz/pxgl/pxjhgl',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '培训记录管理', path: '/mgr/sz/pxgl/pxjlgl',
|
||||
// },
|
||||
// ]
|
||||
// },
|
||||
|
||||
|
||||
{
|
||||
id: id(), title: '水政执法', redirect: '/mgr/sz/szzf/ajdj',
|
||||
children: [
|
||||
{
|
||||
id: id(), title: '案件登记', path: '/mgr/sz/szzf/ajdj',
|
||||
},
|
||||
{
|
||||
id: id(), title: '案件统计', path: '/mgr/sz/szzf/ajtj',
|
||||
},
|
||||
{
|
||||
id: id(), title: '处理依据', path: '/mgr/sz/szzf/clyj',
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '监督考核', redirect: '/mgr/sz/jdkh/khtj',
|
||||
children: [
|
||||
{
|
||||
id: id(), title: '考核统计', path: '/mgr/sz/jdkh/khtj',
|
||||
},
|
||||
{
|
||||
id: id(), title: '考核任务管理', path: '/mgr/sz/jdkh/khrwgl',
|
||||
},
|
||||
{
|
||||
id: id(), title: '考核问题整改', path: '/mgr/sz/jdkh/khwtzg',
|
||||
},
|
||||
{
|
||||
id: id(), title: '考核指标管理', path: '/mgr/sz/jdkh/khzbgl',
|
||||
},
|
||||
{
|
||||
id: id(), title: '考核模板管理', path: '/mgr/sz/jdkh/khmbgl',
|
||||
}
|
||||
]
|
||||
},
|
||||
{ id: id(), title: '制度管理', path: '/mgr/sz/zdgl' },
|
||||
{ id: id(), title: '法律法规', path: '/mgr/sz/flfg' },
|
||||
{
|
||||
id: id(), title: '知识库', redirect: '/mgr/sz/zsk/ddfa',
|
||||
children: [
|
||||
{
|
||||
id: id(), title: '调度方案库', path: '/mgr/sz/zsk/ddfa',
|
||||
},
|
||||
{
|
||||
id: id(), title: '业务规则库', path: '/mgr/sz/zsk/ywgz',
|
||||
},
|
||||
{
|
||||
id: id(), title: '工程安全知识库', path: '/mgr/sz/zsk/gcaq',
|
||||
},
|
||||
]
|
||||
},
|
||||
// {
|
||||
// id: id(), title: '水政执法', redirect: '/mgr/sz/szzf/ajdj',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(), title: '案件登记', path: '/mgr/sz/szzf/ajdj',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '案件统计', path: '/mgr/sz/szzf/ajtj',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '处理依据', path: '/mgr/sz/szzf/clyj',
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '监督考核', redirect: '/mgr/sz/jdkh/khtj',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(), title: '考核统计', path: '/mgr/sz/jdkh/khtj',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '考核任务管理', path: '/mgr/sz/jdkh/khrwgl',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '考核问题整改', path: '/mgr/sz/jdkh/khwtzg',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '考核指标管理', path: '/mgr/sz/jdkh/khzbgl',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '考核模板管理', path: '/mgr/sz/jdkh/khmbgl',
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// { id: id(), title: '制度管理', path: '/mgr/sz/zdgl' },
|
||||
// { id: id(), title: '法律法规', path: '/mgr/sz/flfg' },
|
||||
// {
|
||||
// id: id(), title: '知识库', redirect: '/mgr/sz/zsk/ddfa',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(), title: '调度方案库', path: '/mgr/sz/zsk/ddfa',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '业务规则库', path: '/mgr/sz/zsk/ywgz',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '工程安全知识库', path: '/mgr/sz/zsk/gcaq',
|
||||
// },
|
||||
// ]
|
||||
// },
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '四预', redirect: '/mgr/sy/fhxzfx', icon: 'sz',
|
||||
children: [
|
||||
{ id: id(), title: '防洪形势', path: '/mgr/sy/fhxzfx' },
|
||||
{ id: id(), title: '天气预报', path: '/mgr/sy/tqyb' },
|
||||
{
|
||||
id: id(), title: '洪水预报', redirect: '/mgr/sy/hsyb/hyybjs',
|
||||
children: [
|
||||
{ id: id(), title: '洪水预报计算', path: '/mgr/sy/hsyb/hyybjs' },
|
||||
{ id: id(), title: '预报方案管理', path: '/mgr/sy/hsyb/ybfagl' },
|
||||
{ id: id(), title: '参数管理', path: '/mgr/sy/hsyb/csgl' },
|
||||
]
|
||||
},
|
||||
{ id: id(), title: '洪水预演', path: '/mgr/sy/hsyy' },
|
||||
{ id: id(), title: '防汛预案', path: '/mgr/sy/fxya' },
|
||||
{ id: id(), title: '调度规程', path: '/mgr/sy/ddgc' },
|
||||
{
|
||||
id: id(),
|
||||
title: '抢险物料',
|
||||
path: '/mgr/sy/qxwl',
|
||||
},
|
||||
{
|
||||
id: id(),
|
||||
title: '抢险队伍',
|
||||
path: '/mgr/sy/qxdw',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: id(), title: '四管', redirect: '/mgr/sg/xcxj/xcrw', icon: 'sz',
|
||||
children: [
|
||||
{
|
||||
id: id(), title: '巡查巡检', redirect: '/mgr/sg/xcxj/xcrw',
|
||||
children: [
|
||||
{ id: id(), title: '巡检任务', path: '/mgr/sg/xcxj/xcrw' },
|
||||
{ id: id(), title: '巡检问题处理', path: '/mgr/sg/xcxj/xjwtcl' },
|
||||
{ id: id(), title: '巡检项配置', path: '/mgr/sg/xcxj/xjxpz' },
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '安全管理', redirect: '/mgr/sg/aqgl/fxgkqd',
|
||||
children: [
|
||||
{ id: id(), title: '风险管控清单', path: '/mgr/sg/aqgl/fxgkqd' },
|
||||
{ id: id(), title: '安全隐患排查', path: '/mgr/sg/aqgl/aqyhpc' },
|
||||
{ id: id(), title: '安全检查管理', path: '/mgr/sg/aqgl/aqjcgl' },
|
||||
{ id: id(), title: '安全事故登记', path: '/mgr/sg/aqgl/aqsgdj' },
|
||||
{ id: id(), title: '安全鉴定台帐', path: '/mgr/sg/aqgl/aqjdtz' },
|
||||
{ id: id(), title: '除险加固台帐', path: '/mgr/sg/aqgl/cxjgtz' },
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '白蚁防治', redirect: '/mgr/sg/byfz/bypc',
|
||||
children: [
|
||||
{ id: id(), title: '白蚁监测', path: '/mgr/sg/byfz/bypc' },
|
||||
{ id: id(), title: '防治宣传', path: '/mgr/sg/byfz/byxc' },
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '闸门监控', path: '/mgr/sg/zmjk',
|
||||
},
|
||||
{
|
||||
id: id(), title: '维修养护', path: '/mgr/sg/wxyh',
|
||||
},
|
||||
// {
|
||||
// id: id(), title: '库容管理', path: '/mgr/sg/krgl',
|
||||
// },
|
||||
{
|
||||
id: id(), title: '值班管理', redirect: '/mgr/sg/zbgl/zbb',
|
||||
children: [
|
||||
{ id: id(), title: '值班表', path: '/mgr/sg/zbgl/zbb' },
|
||||
{ id: id(), title: '值班日志', path: '/mgr/sg/zbgl/zbrz' },
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '报表管理', redirect: '/mgr/sg/btbb/sdjyrbb',
|
||||
children: [
|
||||
{ id: id(), title: '时段降雨日报表', path: '/mgr/sg/btbb/sdjyrbb' },
|
||||
{ id: id(), title: '日降雨量年报表', path: '/mgr/sg/btbb/rjylnbb' },
|
||||
{ id: id(), title: '时段水位日报表', path: '/mgr/sg/btbb/sdswbb' },
|
||||
{ id: id(), title: '日均水位年报表', path: '/mgr/sg/btbb/rjswbb' },
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '告警管理', redirect: '/mgr/sg/gjgl/aigj',
|
||||
children: [
|
||||
{ id: id(), title: 'AI告警', path: '/mgr/sg/gjgl/aigj' },
|
||||
{ id: id(), title: '广播预警', path: '/mgr/sg/gjgl/gbyj' },
|
||||
]
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: id(), title: '工程安全监测', redirect: '/mgr/gcaqjc/gcaqyj/bzt', icon: 'xtgl',
|
||||
children: [
|
||||
{
|
||||
id: id(), title: '布置图', path: '/mgr/gcaqjc/gcaqyj/bzt',
|
||||
},
|
||||
{
|
||||
id: id(), title: '工程安全分析', redirect: '/mgr/gcaqjc/gcaqfx/jrx',
|
||||
children: [
|
||||
{ id: id(), title: '浸润线', path: '/mgr/gcaqjc/gcaqfx/jrx' },
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '工程安全预警', redirect: '/mgr/gcaqjc/gcaqyj/yhyj',
|
||||
children: [
|
||||
{ id: id(), title: '隐患预警', path: '/mgr/gcaqjc/gcaqyj/yhyj' },
|
||||
{ id: id(), title: '预警规则配置', path: '/mgr/gcaqjc/gcaqyj/yjgzpz' },
|
||||
]
|
||||
},
|
||||
{
|
||||
id: id(), title: '数据统计查询', redirect: '/mgr/gcaqjc/sjtjcx/czcx',
|
||||
children: [
|
||||
{ id: id(), title: '人工监测数据录入 ', path: '/mgr/gcaqjc/sjtjcx/sjlr' },
|
||||
{ id: id(), title: '测值查询', path: '/mgr/gcaqjc/sjtjcx/czcx' },
|
||||
{ id: id(), title: '渗压监测', path: '/mgr/gcaqjc/sjtjcx/syjx' },
|
||||
{ id: id(), title: '渗流监测 ', path: '/mgr/gcaqjc/sjtjcx/sljx' },
|
||||
{ id: id(), title: '位移监测 ', path: '/mgr/gcaqjc/sjtjcx/wyjx' },
|
||||
{ id: id(), title: '年度渗压统计表', path: '/mgr/gcaqjc/sjtjcx/ndsytjb' },
|
||||
{ id: id(), title: '年度渗流统计表', path: '/mgr/gcaqjc/sjtjcx/ndsltjb' },
|
||||
{ id: id(), title: '年度位移统计表', path: '/mgr/gcaqjc/sjtjcx/ndwytjb' },
|
||||
]
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: id(), title: '水资源调度', redirect: '/mgr/szydd/gsnlfx', icon: 'aqjc',
|
||||
children: [
|
||||
{
|
||||
id: id(), title: '供水能力分析', path: '/mgr/szydd/gsnlfx',
|
||||
},
|
||||
{
|
||||
id: id(), title: '调度记录', path: '/mgr/szydd/diaodu',
|
||||
},
|
||||
{
|
||||
id: id(), title: '供水统计分析', path: '/mgr/szydd/gstjfx',
|
||||
},
|
||||
{
|
||||
id: id(), title: '典型年降雨资料', path: '/mgr/szydd/dxnjyzl',
|
||||
},
|
||||
{
|
||||
id: id(), title: '水库蒸发资料', path: '/mgr/szydd/skzfzl',
|
||||
},
|
||||
]
|
||||
},
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '四预', redirect: '/mgr/sy/fhxzfx', icon: 'sz',
|
||||
// children: [
|
||||
// { id: id(), title: '防洪形势', path: '/mgr/sy/fhxzfx' },
|
||||
// { id: id(), title: '天气预报', path: '/mgr/sy/tqyb' },
|
||||
// {
|
||||
// id: id(), title: '洪水预报', redirect: '/mgr/sy/hsyb/hyybjs',
|
||||
// children: [
|
||||
// { id: id(), title: '洪水预报计算', path: '/mgr/sy/hsyb/hyybjs' },
|
||||
// { id: id(), title: '预报方案管理', path: '/mgr/sy/hsyb/ybfagl' },
|
||||
// { id: id(), title: '参数管理', path: '/mgr/sy/hsyb/csgl' },
|
||||
// ]
|
||||
// },
|
||||
// { id: id(), title: '洪水预演', path: '/mgr/sy/hsyy' },
|
||||
// { id: id(), title: '防汛预案', path: '/mgr/sy/fxya' },
|
||||
// { id: id(), title: '调度规程', path: '/mgr/sy/ddgc' },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '抢险物料',
|
||||
// path: '/mgr/sy/qxwl',
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '抢险队伍',
|
||||
// path: '/mgr/sy/qxdw',
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '四管', redirect: '/mgr/sg/xcxj/xcrw', icon: 'sz',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(), title: '巡查巡检', redirect: '/mgr/sg/xcxj/xcrw',
|
||||
// children: [
|
||||
// { id: id(), title: '巡检任务', path: '/mgr/sg/xcxj/xcrw' },
|
||||
// { id: id(), title: '巡检问题处理', path: '/mgr/sg/xcxj/xjwtcl' },
|
||||
// { id: id(), title: '巡检项配置', path: '/mgr/sg/xcxj/xjxpz' },
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '安全管理', redirect: '/mgr/sg/aqgl/fxgkqd',
|
||||
// children: [
|
||||
// { id: id(), title: '风险管控清单', path: '/mgr/sg/aqgl/fxgkqd' },
|
||||
// { id: id(), title: '安全隐患排查', path: '/mgr/sg/aqgl/aqyhpc' },
|
||||
// { id: id(), title: '安全检查管理', path: '/mgr/sg/aqgl/aqjcgl' },
|
||||
// { id: id(), title: '安全事故登记', path: '/mgr/sg/aqgl/aqsgdj' },
|
||||
// { id: id(), title: '安全鉴定台帐', path: '/mgr/sg/aqgl/aqjdtz' },
|
||||
// { id: id(), title: '除险加固台帐', path: '/mgr/sg/aqgl/cxjgtz' },
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '白蚁防治', redirect: '/mgr/sg/byfz/bypc',
|
||||
// children: [
|
||||
// { id: id(), title: '白蚁监测', path: '/mgr/sg/byfz/bypc' },
|
||||
// { id: id(), title: '防治宣传', path: '/mgr/sg/byfz/byxc' },
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '闸门监控', path: '/mgr/sg/zmjk',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '维修养护', path: '/mgr/sg/wxyh',
|
||||
// },
|
||||
// // {
|
||||
// // id: id(), title: '库容管理', path: '/mgr/sg/krgl',
|
||||
// // },
|
||||
// {
|
||||
// id: id(), title: '值班管理', redirect: '/mgr/sg/zbgl/zbb',
|
||||
// children: [
|
||||
// { id: id(), title: '值班表', path: '/mgr/sg/zbgl/zbb' },
|
||||
// { id: id(), title: '值班日志', path: '/mgr/sg/zbgl/zbrz' },
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '报表管理', redirect: '/mgr/sg/btbb/sdjyrbb',
|
||||
// children: [
|
||||
// { id: id(), title: '时段降雨日报表', path: '/mgr/sg/btbb/sdjyrbb' },
|
||||
// { id: id(), title: '日降雨量年报表', path: '/mgr/sg/btbb/rjylnbb' },
|
||||
// { id: id(), title: '时段水位日报表', path: '/mgr/sg/btbb/sdswbb' },
|
||||
// { id: id(), title: '日均水位年报表', path: '/mgr/sg/btbb/rjswbb' },
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '告警管理', redirect: '/mgr/sg/gjgl/aigj',
|
||||
// children: [
|
||||
// { id: id(), title: 'AI告警', path: '/mgr/sg/gjgl/aigj' },
|
||||
// { id: id(), title: '广播预警', path: '/mgr/sg/gjgl/gbyj' },
|
||||
// ]
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '工程安全监测', redirect: '/mgr/gcaqjc/gcaqyj/bzt', icon: 'xtgl',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(), title: '布置图', path: '/mgr/gcaqjc/gcaqyj/bzt',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '工程安全分析', redirect: '/mgr/gcaqjc/gcaqfx/jrx',
|
||||
// children: [
|
||||
// { id: id(), title: '浸润线', path: '/mgr/gcaqjc/gcaqfx/jrx' },
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '工程安全预警', redirect: '/mgr/gcaqjc/gcaqyj/yhyj',
|
||||
// children: [
|
||||
// { id: id(), title: '隐患预警', path: '/mgr/gcaqjc/gcaqyj/yhyj' },
|
||||
// { id: id(), title: '预警规则配置', path: '/mgr/gcaqjc/gcaqyj/yjgzpz' },
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '数据统计查询', redirect: '/mgr/gcaqjc/sjtjcx/czcx',
|
||||
// children: [
|
||||
// { id: id(), title: '人工监测数据录入 ', path: '/mgr/gcaqjc/sjtjcx/sjlr' },
|
||||
// { id: id(), title: '测值查询', path: '/mgr/gcaqjc/sjtjcx/czcx' },
|
||||
// { id: id(), title: '渗压监测', path: '/mgr/gcaqjc/sjtjcx/syjx' },
|
||||
// { id: id(), title: '渗流监测 ', path: '/mgr/gcaqjc/sjtjcx/sljx' },
|
||||
// { id: id(), title: '位移监测 ', path: '/mgr/gcaqjc/sjtjcx/wyjx' },
|
||||
// { id: id(), title: '年度渗压统计表', path: '/mgr/gcaqjc/sjtjcx/ndsytjb' },
|
||||
// { id: id(), title: '年度渗流统计表', path: '/mgr/gcaqjc/sjtjcx/ndsltjb' },
|
||||
// { id: id(), title: '年度位移统计表', path: '/mgr/gcaqjc/sjtjcx/ndwytjb' },
|
||||
// ]
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '水资源调度', redirect: '/mgr/szydd/gsnlfx', icon: 'aqjc',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(), title: '供水能力分析', path: '/mgr/szydd/gsnlfx',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '调度记录', path: '/mgr/szydd/diaodu',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '供水统计分析', path: '/mgr/szydd/gstjfx',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '典型年降雨资料', path: '/mgr/szydd/dxnjyzl',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '水库蒸发资料', path: '/mgr/szydd/skzfzl',
|
||||
// },
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '系统管理', redirect: '/mgr/sys/user', icon: 'aqjc',
|
||||
// children: [
|
||||
// { id: id(), title: '用户管理', path: '/mgr/sys/user' },
|
||||
// { id: id(), title: '部门管理', path: '/mgr/sys/department' },
|
||||
// { id: id(), title: '角色管理', path: '/mgr/sys/role' },
|
||||
// { id: id(), title: '菜单管理', path: '/mgr/sys/menuM' },
|
||||
// { id: id(), title: '登录日志', path: '/mgr/sys/loginLog' },
|
||||
// ]
|
||||
// },
|
||||
|
||||
|
||||
// { id: id(), title: '基本情况', path: '/mgr/home', icon: 'jbqk' },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '防汛调度',
|
||||
// redirect: '/mgr/fxzb/fhxs',
|
||||
// icon: 'fxzb',
|
||||
// children: [
|
||||
// { id: id(), title: '防洪形势', path: '/mgr/fxzb/fhxs'},
|
||||
// { id: id(), title: '天气预报', path: '/mgr/fxzb/tqyb'},
|
||||
// {
|
||||
// id: id(), title: '洪水预报', redirect: '/mgr/fxzb/hsyb/hyybjs',
|
||||
// children: [
|
||||
// { id: id(), title: '洪水预报计算', path: '/mgr/fxzb/hsyb/hyybjs' },
|
||||
// { id: id(), title: '预报方案管理', path: '/mgr/fxzb/hsyb/ybfagl' },
|
||||
// { id: id(), title: '参数管理', path: '/mgr/fxzb/hsyb/csgl' },
|
||||
// ]
|
||||
// },
|
||||
// { id: id(), title: '调度规程', path: '/mgr/fxzb/ddgc'},
|
||||
// { id: id(), title: '防汛预案', path: '/mgr/fxzb/fxya'},
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '抢险物料',
|
||||
// path: '/mgr/fxzb/qxwl',
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '抢险队伍',
|
||||
// path: '/mgr/fxzb/qxdw',
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '工程安全监测',
|
||||
// redirect: '/mgr/gcaqjc/gcaqyj/bzt',
|
||||
// icon: 'fxzb',
|
||||
// children: [
|
||||
// { id: id(), title: '布置图', path: '/mgr/gcaqjc/gcaqyj/bzt' },
|
||||
// {
|
||||
// id: id(), title: '工程安全预警', redirect: '/mgr/gcaqjc/gcaqyj/yhyj',
|
||||
// children: [
|
||||
// { id: id(), title: '隐患预警', path: '/mgr/gcaqjc/gcaqyj/yhyj' },
|
||||
// { id: id(), title: '预警规则配置', path: '/mgr/gcaqjc/gcaqyj/yjgzpz' },
|
||||
// // { id: id(), title: '基本情况', path: '/mgr/home', icon: 'jbqk' },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '防汛调度',
|
||||
// // redirect: '/mgr/fxzb/fhxs',
|
||||
// // icon: 'fxzb',
|
||||
// // children: [
|
||||
// // { id: id(), title: '防洪形势', path: '/mgr/fxzb/fhxs'},
|
||||
// // { id: id(), title: '天气预报', path: '/mgr/fxzb/tqyb'},
|
||||
// // {
|
||||
// // id: id(), title: '洪水预报', redirect: '/mgr/fxzb/hsyb/hyybjs',
|
||||
// // children: [
|
||||
// // { id: id(), title: '洪水预报计算', path: '/mgr/fxzb/hsyb/hyybjs' },
|
||||
// // { id: id(), title: '预报方案管理', path: '/mgr/fxzb/hsyb/ybfagl' },
|
||||
// // { id: id(), title: '参数管理', path: '/mgr/fxzb/hsyb/csgl' },
|
||||
// // ]
|
||||
// // },
|
||||
// // { id: id(), title: '调度规程', path: '/mgr/fxzb/ddgc'},
|
||||
// // { id: id(), title: '防汛预案', path: '/mgr/fxzb/fxya'},
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '抢险物料',
|
||||
// // path: '/mgr/fxzb/qxwl',
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '抢险队伍',
|
||||
// // path: '/mgr/fxzb/qxdw',
|
||||
// // },
|
||||
// // ],
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '工程安全监测',
|
||||
// // redirect: '/mgr/gcaqjc/gcaqyj/bzt',
|
||||
// // icon: 'fxzb',
|
||||
// // children: [
|
||||
// // { id: id(), title: '布置图', path: '/mgr/gcaqjc/gcaqyj/bzt' },
|
||||
// // {
|
||||
// // id: id(), title: '工程安全预警', redirect: '/mgr/gcaqjc/gcaqyj/yhyj',
|
||||
// // children: [
|
||||
// // { id: id(), title: '隐患预警', path: '/mgr/gcaqjc/gcaqyj/yhyj' },
|
||||
// // { id: id(), title: '预警规则配置', path: '/mgr/gcaqjc/gcaqyj/yjgzpz' },
|
||||
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '工程安全分析', redirect: '/mgr/gcaqjc/gcaqfx/jrx',
|
||||
// children: [
|
||||
// { id: id(), title: '浸润线', path: '/mgr/gcaqjc/gcaqfx/jrx' },
|
||||
// // ]
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(), title: '工程安全分析', redirect: '/mgr/gcaqjc/gcaqfx/jrx',
|
||||
// // children: [
|
||||
// // { id: id(), title: '浸润线', path: '/mgr/gcaqjc/gcaqfx/jrx' },
|
||||
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '数据统计查询', redirect: '/mgr/gcaqjc/sjtjcx/sljx',
|
||||
// children: [
|
||||
// { id: id(), title: '测值查询', path: '/mgr/gcaqjc/sjtjcx/czcx' },
|
||||
// { id: id(), title: '渗压监测', path: '/mgr/gcaqjc/sjtjcx/syjx' },
|
||||
// { id: id(), title: '渗流监测', path: '/mgr/gcaqjc/sjtjcx/sljx' },
|
||||
// { id: id(), title: '位移监测', path: '/mgr/gcaqjc/sjtjcx/wyjx' },
|
||||
// { id: id(), title: '年度渗压统计表', path: '/mgr/gcaqjc/sjtjcx/ndsytjb' },
|
||||
// { id: id(), title: '年度渗流统计表', path: '/mgr/gcaqjc/sjtjcx/ndsltjb' },
|
||||
// { id: id(), title: '年度位移统计表', path: '/mgr/gcaqjc/sjtjcx/ndwytjb' },
|
||||
// // ]
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(), title: '数据统计查询', redirect: '/mgr/gcaqjc/sjtjcx/sljx',
|
||||
// // children: [
|
||||
// // { id: id(), title: '测值查询', path: '/mgr/gcaqjc/sjtjcx/czcx' },
|
||||
// // { id: id(), title: '渗压监测', path: '/mgr/gcaqjc/sjtjcx/syjx' },
|
||||
// // { id: id(), title: '渗流监测', path: '/mgr/gcaqjc/sjtjcx/sljx' },
|
||||
// // { id: id(), title: '位移监测', path: '/mgr/gcaqjc/sjtjcx/wyjx' },
|
||||
// // { id: id(), title: '年度渗压统计表', path: '/mgr/gcaqjc/sjtjcx/ndsytjb' },
|
||||
// // { id: id(), title: '年度渗流统计表', path: '/mgr/gcaqjc/sjtjcx/ndsltjb' },
|
||||
// // { id: id(), title: '年度位移统计表', path: '/mgr/gcaqjc/sjtjcx/ndwytjb' },
|
||||
|
||||
// ]
|
||||
// },
|
||||
// // ]
|
||||
// // },
|
||||
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '日常管理',
|
||||
// redirect: '/mgr/rcgl/gcdsj',
|
||||
// icon: 'fxzb',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '工程大事件',
|
||||
// path: '/mgr/rcgl/gcdsj',
|
||||
// },
|
||||
// {
|
||||
// id: id(), title: '值班管理', redirect: '/mgr/rcgl/zbgl/zbb',
|
||||
// children: [
|
||||
// { id: id(), title: '值班表', path: '/mgr/rcgl/zbgl/zbb' },
|
||||
// { id: id(), title: '值班日志', path: '/mgr/rcgl/zbgl/zbrz' },
|
||||
// // ],
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '日常管理',
|
||||
// // redirect: '/mgr/rcgl/gcdsj',
|
||||
// // icon: 'fxzb',
|
||||
// // children: [
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '工程大事件',
|
||||
// // path: '/mgr/rcgl/gcdsj',
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(), title: '值班管理', redirect: '/mgr/rcgl/zbgl/zbb',
|
||||
// // children: [
|
||||
// // { id: id(), title: '值班表', path: '/mgr/rcgl/zbgl/zbb' },
|
||||
// // { id: id(), title: '值班日志', path: '/mgr/rcgl/zbgl/zbrz' },
|
||||
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '水质整编',
|
||||
// path: '/mgr/rcgl/szzb',
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '生态流量监控',
|
||||
// path: '/mgr/rcgl/stlljc',
|
||||
// },
|
||||
// ],
|
||||
// }, {
|
||||
// id: id(),
|
||||
// title: '供水兴利',
|
||||
// redirect: '/mgr/gsxl/zfzl',
|
||||
// icon: 'fxzb',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '闸阀总览',
|
||||
// path: '/mgr/gsxl/zfzl',
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '闸阀监控',
|
||||
// path: '/mgr/gsxl/zfjk',
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '供水统计分析',
|
||||
// path: '/mgr/gsxl/gstjfx',
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '典型年降雨资料',
|
||||
// path: '/mgr/gsxl/dxnjyzl',
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '视频监控',
|
||||
// redirect: '/mgr/spjk/spjk',
|
||||
// icon: 'spjk',
|
||||
// children: [
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '视频监控',
|
||||
// path: '/mgr/spjk/spjk',
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: 'AI告警',
|
||||
// path: '/mgr/spjk/aiWarn',
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// id: id(),
|
||||
// title: '数字孪生大屏',
|
||||
// path: '/',
|
||||
// icon: 'spjk'
|
||||
// },
|
||||
]
|
||||
// // ]
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '水质整编',
|
||||
// // path: '/mgr/rcgl/szzb',
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '生态流量监控',
|
||||
// // path: '/mgr/rcgl/stlljc',
|
||||
// // },
|
||||
// // ],
|
||||
// // }, {
|
||||
// // id: id(),
|
||||
// // title: '供水兴利',
|
||||
// // redirect: '/mgr/gsxl/zfzl',
|
||||
// // icon: 'fxzb',
|
||||
// // children: [
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '闸阀总览',
|
||||
// // path: '/mgr/gsxl/zfzl',
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '闸阀监控',
|
||||
// // path: '/mgr/gsxl/zfjk',
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '供水统计分析',
|
||||
// // path: '/mgr/gsxl/gstjfx',
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '典型年降雨资料',
|
||||
// // path: '/mgr/gsxl/dxnjyzl',
|
||||
// // },
|
||||
// // ],
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '视频监控',
|
||||
// // redirect: '/mgr/spjk/spjk',
|
||||
// // icon: 'spjk',
|
||||
// // children: [
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '视频监控',
|
||||
// // path: '/mgr/spjk/spjk',
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: 'AI告警',
|
||||
// // path: '/mgr/spjk/aiWarn',
|
||||
// // },
|
||||
// // ],
|
||||
// // },
|
||||
// // {
|
||||
// // id: id(),
|
||||
// // title: '数字孪生大屏',
|
||||
// // path: '/',
|
||||
// // icon: 'spjk'
|
||||
// // },
|
||||
// ]
|
||||
}
|
||||
|
||||
export function defaultHomePage() {
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ module.exports = function (app) {
|
|||
app.use(
|
||||
'/gunshiApp',
|
||||
createProxyMiddleware({
|
||||
target: 'http://local.gunshiiot.com:18083/',//测试
|
||||
// target: 'http://223.75.53.141:83/',//测试
|
||||
// target: 'http://local.gunshiiot.com:18083/',//测试
|
||||
target: 'http://223.75.53.141:83/',//正式
|
||||
// target: 'http://192.168.66.199:24105/',//正式
|
||||
// target: 'http://36.139.207.50:18083/',//移动云
|
||||
// target: 'http://192.168.66.49:24105/',//移动云
|
||||
|
|
|
|||
|
|
@ -66,6 +66,55 @@ export function xyt_httpput(url, data = {}) {
|
|||
|
||||
return send(url, options);
|
||||
}
|
||||
export function xyt_httpput1(url, data = {}) {
|
||||
const options = {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'adcd': localStorage.getItem('ADCD6'),
|
||||
"authorization":"Bearer" + ' ' + localStorage.getItem('access_token')
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
};
|
||||
|
||||
return send(url, options);
|
||||
}
|
||||
|
||||
export function qzc_xyt_httppost(url, data = {}) {
|
||||
const options = {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
"cookie":'Token=' + localStorage.getItem('access_token'),
|
||||
"dataScope":"CUSTOM_WATERSHED",
|
||||
"customWatershedCode":localStorage.getItem('customWatershedCode'),
|
||||
"SHOW_LOADING": true,
|
||||
"authorization":"Bearer" + ' ' + localStorage.getItem('access_token')
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
};
|
||||
|
||||
return send(url, options);
|
||||
}
|
||||
|
||||
export function qzc_xyt_httpput(url, data = {}) {
|
||||
const options = {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
"cookie":'Token=' + localStorage.getItem('access_token'),
|
||||
"dataScope":"CUSTOM_WATERSHED",
|
||||
"customWatershedCode":localStorage.getItem('customWatershedCode'),
|
||||
"SHOW_LOADING": true,
|
||||
"authorization":"Bearer" + ' ' + localStorage.getItem('access_token')
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
};
|
||||
|
||||
return send(url, options);
|
||||
}
|
||||
|
||||
|
||||
export function httpget(url, data = {}) {
|
||||
const params = [];
|
||||
for (const k in data) {
|
||||
|
|
|
|||
|
|
@ -119,6 +119,8 @@ import Gsnlfx from './gxsl/gsnlfx'
|
|||
import Ddjl from './szydd/ddjl'
|
||||
import Ywgz from './sz/ywgz'
|
||||
import Gcaq from './sz/khzbgl'
|
||||
//系统管理
|
||||
import SystemPage from './systemMange'
|
||||
|
||||
|
||||
const HomePage = lazy(() => import('./Home'))
|
||||
|
|
@ -290,7 +292,12 @@ const AppRouters: React.FC = () => {
|
|||
{ path: 'sz/zsk/ddfa', element: <Ddfa /> },
|
||||
{ path: 'sz/zsk/ywgz', element: <Ywgz /> },
|
||||
{ path: 'sz/zsk/gcaq', element: <Gcaq /> },
|
||||
|
||||
// 系统管理
|
||||
{ path: 'sys/user', element: <SystemPage src={'/mgr/home'} /> },
|
||||
{ path: 'sys/department', element: <SystemPage src={'/mgr/home/department'}/> },
|
||||
{ path: 'sys/role', element: <SystemPage src={'/mgr/home/role'}/> },
|
||||
{ path: 'sys/menuM', element: <SystemPage src={'/mgr/home/menuM'}/> },
|
||||
{ path: 'sys/loginLog', element: <SystemPage src={'/mgr/home/loginLog'}/> },
|
||||
],
|
||||
},
|
||||
{ path: '/login', element: <LoginPage /> },
|
||||
|
|
|
|||
|
|
@ -443,7 +443,7 @@ const ModalForm = ({ mode, record, onEdit, onSave }) => {
|
|||
:
|
||||
<Image width={60} src={url + file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ export default function Page({ selectDiv1, detail }) {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ console.log("data",data);
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ const ModalForm = ({ mode, record, onEdit, onSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ const ModalForm = ({ mode, record, onEdit, onSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onCrudSuccess }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
{mode !== "view" &&
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onCrudSuccess }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
{mode !== "view" &&
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onCrudSuccess }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
{mode !== "view" &&
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -417,7 +417,7 @@ console.log("record",record);
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
{
|
||||
mode !== "view" &&
|
||||
|
|
|
|||
|
|
@ -422,7 +422,7 @@ const ModalForm = ({ mode, record, onEdit, onSave,onDeleteGet,onCrudSuccess }) =
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
{
|
||||
mode !== "view" &&
|
||||
|
|
|
|||
|
|
@ -564,7 +564,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} >
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -345,7 +345,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onCrudSuccess }) => {
|
|||
alt=''
|
||||
/>
|
||||
)}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div
|
||||
className={
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onCrudSuccess }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ const Page = ({data,fileList,isMeetData=false}) => {
|
|||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<div style={{display:'flex',flexDirection:"column"}}>
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
<span>{((file.response?.data?.fileLength)/1024).toFixed(2) }KB</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ console.log(record);
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ const ModalForm = ({ mode, record,onEdit,onSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -320,7 +320,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,onCrudSuccess }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div
|
||||
className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'}
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -322,7 +322,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
<div className={mode == "view" ? 'file-item view-file' : 'file-item'} >
|
||||
<div className='file-description'>
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div
|
||||
className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'}
|
||||
|
|
@ -431,7 +431,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ const getResultList = async() => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ const getResultList = async() => {
|
|||
<div className={mode == "view" ? 'file-item view-file' : 'file-item'} >
|
||||
<div className='file-description'>
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div
|
||||
className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'}
|
||||
|
|
@ -451,7 +451,7 @@ const getResultList = async() => {
|
|||
style={{ fontSize: 40 }}
|
||||
/>
|
||||
</div>
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div
|
||||
className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'}
|
||||
|
|
|
|||
|
|
@ -672,7 +672,7 @@ const ModalForm = ({ mode, record, refresh, setPrecessVisible }) => {
|
|||
<div className={mode == "view" ? 'file-item view-file' : 'file-item'} >
|
||||
<div className='file-description'>
|
||||
<Image width={60} src={url + file.filePath} alt='' />
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
@ -706,7 +706,7 @@ const ModalForm = ({ mode, record, refresh, setPrecessVisible }) => {
|
|||
style={{ fontSize: 40 }}
|
||||
/>
|
||||
</div>
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onCrudSuccess }) => {
|
|||
<div className={mode == "view" ? 'file-item' : 'file-item'}>
|
||||
<div className='file-description'>
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
{mode !== "view" &&
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -684,7 +684,7 @@ const EditableRow = ({ index, ...props }) => {
|
|||
<div className={'file-item'} >
|
||||
<div className='file-description'>
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div
|
||||
className={'delete-icon'}
|
||||
|
|
|
|||
|
|
@ -704,7 +704,7 @@ const [selectPerson, setSelectPerson] = useState([])
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ console.log("record",record);
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
<div className={mode == "view" ? 'file-item view-file' : 'file-item'} >
|
||||
<div className='file-description'>
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div
|
||||
className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'}
|
||||
|
|
@ -309,7 +309,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
style={{ fontSize: 40 }}
|
||||
/>
|
||||
</div>
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div
|
||||
className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'}
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave,submit }) => {
|
|||
<div className={mode == "view" ? 'file-item view-file' : 'file-item'} >
|
||||
<div className='file-description'>
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
@ -405,7 +405,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave,submit }) => {
|
|||
style={{ fontSize: 40 }}
|
||||
/>
|
||||
</div>
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ console.log(record);
|
|||
<div className={mode == "view" ? 'file-item view-file' : 'file-item'} >
|
||||
<div className='file-description'>
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
@ -194,7 +194,7 @@ console.log(record);
|
|||
style={{ fontSize: 40 }}
|
||||
/>
|
||||
</div>
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
@ -274,7 +274,7 @@ console.log(record);
|
|||
<div className={mode == "view" ? 'file-item view-file' : 'file-item'} >
|
||||
<div className='file-description'>
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
@ -308,7 +308,7 @@ console.log(record);
|
|||
style={{ fontSize: 40 }}
|
||||
/>
|
||||
</div>
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
const SystemPage = ({ src }) => {
|
||||
const base = 'http://223.75.53.141:83/tsgSystem/#'
|
||||
const str = '?token=' + localStorage.getItem('access_token') + '&layout=noLayout'
|
||||
return (
|
||||
<iframe
|
||||
style={{ height: '99%', width: '100%', border: 0 }}
|
||||
seamless
|
||||
src={base + src + str}
|
||||
/>
|
||||
)
|
||||
}
|
||||
export default SystemPage
|
||||
|
|
@ -275,7 +275,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url + file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} >
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -415,7 +415,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile1(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
@ -576,7 +576,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url + file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
|||
:
|
||||
<Image width={60} src={url +file.response?.data?.filePath} alt='' />
|
||||
}
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div className={mode == "view" ? 'delete-icon disable-icon' : 'delete-icon'} onClick={() => deleteFile(file.response?.data?.fileId)}>
|
||||
<DeleteOutlined />
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@ const ToolBar = ({ value, onChange, tm, callback,role }) => {
|
|||
>
|
||||
<FileExcelOutlined style={{ fontSize: 40 }} />
|
||||
</div>
|
||||
<span>{file.name}</span>
|
||||
<span style={{display: 'inline-block',maxWidth: '180px',overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap'}}>{file.name}</span>
|
||||
</div>
|
||||
<div
|
||||
className='delete-icon'
|
||||
|
|
|
|||
Loading…
Reference in New Issue