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() const id = idgen()
return [ 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: [ children: [
{ {
id: id(), title: '全覆盖', redirect: '/mgr/sq/qfg/zcdjxx', 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: [ children: [
{ {
id: id(), title: '管理体系', redirect: '/mgr/sz/gltx/zzjgck', 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: [ children: [
{ id: id(), title: '防洪形势', path: '/mgr/sy/fhxzfx' }, { id: id(), title: '防洪形势', path: '/mgr/sy/fhxzfx' },
{ id: id(), title: '天气预报', path: '/mgr/sy/tqyb' }, { 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: [ children: [
{ {
id: id(), title: '巡查巡检', redirect: '/mgr/sg/xcxj/xcrw', 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: [ children: [
{ {
id: id(), title: '布置图', path: '/mgr/gcaqjc/gcaqyj/bzt', 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: [ children: [
{ {
id: id(), title: '供水能力分析', path: '/mgr/szydd/gsnlfx', id: id(), title: '供水能力分析', path: '/mgr/szydd/gsnlfx',

View File

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