diff --git a/public/assets/aqjc.png b/public/assets/aqjc.png new file mode 100644 index 000000000..fb534a96d Binary files /dev/null and b/public/assets/aqjc.png differ diff --git a/public/assets/sz.png b/public/assets/sz.png new file mode 100644 index 000000000..d50fd22fc Binary files /dev/null and b/public/assets/sz.png differ diff --git a/public/assets/szydd.png b/public/assets/szydd.png new file mode 100644 index 000000000..fe044158d Binary files /dev/null and b/public/assets/szydd.png differ diff --git a/public/assets/xtgl.png b/public/assets/xtgl.png new file mode 100644 index 000000000..702800714 Binary files /dev/null and b/public/assets/xtgl.png differ diff --git a/public/assets/yzt.png b/public/assets/yzt.png new file mode 100644 index 000000000..94eaf4b6b Binary files /dev/null and b/public/assets/yzt.png differ diff --git a/src/models/auth/_.ts b/src/models/auth/_.ts index 41686ffdf..83b61e57a 100644 --- a/src/models/auth/_.ts +++ b/src/models/auth/_.ts @@ -192,9 +192,9 @@ export async function loadMenu(): Promise { 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 { ] }, { - 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 { ] }, { - 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 { ], }, { - 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 { ], }, { - 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 { ], }, { - 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', diff --git a/src/views/rcgl/byfz/bypc/form.js b/src/views/rcgl/byfz/bypc/form.js index eac9bf83a..95b7b5d04 100644 --- a/src/views/rcgl/byfz/bypc/form.js +++ b/src/views/rcgl/byfz/bypc/form.js @@ -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(() => { // 判断是新增还是编辑