feat(): 图标更改

qzc-dev-demo
李神峰 2024-11-25 17:34:42 +08:00
parent ada5fe2db9
commit d6c943cae0
7 changed files with 13 additions and 11 deletions

BIN
public/assets/aqjc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

BIN
public/assets/sz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
public/assets/szydd.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

BIN
public/assets/xtgl.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

BIN
public/assets/yzt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -192,9 +192,9 @@ export async function loadMenu(): Promise<MenuItem[]> {
const id = idgen()
return [
{ id: id(), title: '水库一张图', path: '/mgr/home', icon: 'jbqk' },
{ id: id(), title: '水库一张图', path: '/mgr/home', icon: 'yzt' },
{
id: id(), title: '四全', redirect: '/mgr/sq/qfg/zcdjxx', icon: 'fxzb',
id: id(), title: '四全', redirect: '/mgr/sq/qfg/zcdjxx', icon: 'sz',
children: [
{
id: id(), title: '全覆盖', redirect: '/mgr/sq/qfg/zcdjxx',
@ -230,7 +230,7 @@ export async function loadMenu(): Promise<MenuItem[]> {
]
},
{
id: id(), title: '四制', redirect: '/mgr/sz/gltx/zzjgck', icon: 'jbqk',
id: id(), title: '四制', redirect: '/mgr/sz/gltx/zzjgck', icon: 'sz',
children: [
{
id: id(), title: '管理体系', redirect: '/mgr/sz/gltx/zzjgck',
@ -297,7 +297,7 @@ export async function loadMenu(): Promise<MenuItem[]> {
]
},
{
id: id(), title: '四预', redirect: '/mgr/sy/fhxzfx', icon: 'fxzb',
id: id(), title: '四预', redirect: '/mgr/sy/fhxzfx', icon: 'sz',
children: [
{ id: id(), title: '防洪形势', path: '/mgr/sy/fhxzfx' },
{ id: id(), title: '天气预报', path: '/mgr/sy/tqyb' },
@ -324,7 +324,7 @@ export async function loadMenu(): Promise<MenuItem[]> {
],
},
{
id: id(), title: '四管', redirect: '/mgr/sg/xcxj/xcrw', icon: 'fxzb',
id: id(), title: '四管', redirect: '/mgr/sg/xcxj/xcrw', icon: 'sz',
children: [
{
id: id(), title: '巡查巡检', redirect: '/mgr/sg/xcxj/xcrw',
@ -387,7 +387,7 @@ export async function loadMenu(): Promise<MenuItem[]> {
],
},
{
id: id(), title: '工程安全监测', redirect: '/mgr/gcaqjc/gcaqyj/bzt', icon: 'fxzb',
id: id(), title: '工程安全监测', redirect: '/mgr/gcaqjc/gcaqyj/bzt', icon: 'xtgl',
children: [
{
id: id(), title: '布置图', path: '/mgr/gcaqjc/gcaqyj/bzt',
@ -419,7 +419,7 @@ export async function loadMenu(): Promise<MenuItem[]> {
],
},
{
id: id(), title: '水资源调度', redirect: '/mgr/szydd/gsnlfx', icon: 'fxzb',
id: id(), title: '水资源调度', redirect: '/mgr/szydd/gsnlfx', icon: 'aqjc',
children: [
{
id: id(), title: '供水能力分析', path: '/mgr/szydd/gsnlfx',

View File

@ -157,10 +157,12 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
}, [record, mode])
useEffect(() => {
const name = localStorage.getItem('userName')
form.setFieldValue("reportUserName", name)
form.setFieldValue("reportDate", moment())
}, [])
if (mode == 'save') {
const name = localStorage.getItem('userName')
form.setFieldValue("reportUserName", name)
form.setFieldValue("reportDate", moment())
}
}, [mode])
useEffect(() => {
// 判断是新增还是编辑