diff --git a/public/img/sship/dept0.png b/public/img/sship/dept0.png new file mode 100644 index 0000000..06947e4 Binary files /dev/null and b/public/img/sship/dept0.png differ diff --git a/public/img/sship/dept1.png b/public/img/sship/dept1.png new file mode 100644 index 0000000..2ab4d3c Binary files /dev/null and b/public/img/sship/dept1.png differ diff --git a/public/img/sship/dept2.png b/public/img/sship/dept2.png new file mode 100644 index 0000000..4d2a63d Binary files /dev/null and b/public/img/sship/dept2.png differ diff --git a/public/img/sship/dept3.png b/public/img/sship/dept3.png new file mode 100644 index 0000000..e655097 Binary files /dev/null and b/public/img/sship/dept3.png differ diff --git a/src/components/drawer/index.jsx b/src/components/drawer/index.jsx index b816dc0..9ef1c57 100644 --- a/src/components/drawer/index.jsx +++ b/src/components/drawer/index.jsx @@ -247,7 +247,11 @@ export default class DrawerComponents extends React.Component {
- +
diff --git a/src/pages/company.jsx b/src/pages/company.jsx index f9d0212..4bd7528 100644 --- a/src/pages/company.jsx +++ b/src/pages/company.jsx @@ -97,8 +97,15 @@ export default function companyPage() { }; // 获取部门图片 - function getDepartmentImage(fisvitual) { - return fisvitual == '0' ? `./img/back/level4.png` : `./img/back/level8.png`; + function getDepartmentImage(fisvitual, colorCheck) { + const fclass = topbar.state.requestData.fclass; + if (fclass == '0') { + return fisvitual == '0' + ? `./img/back/level4.png` + : `./img/back/level8.png`; + } else { + return `./img/sship/dept${colorCheck}.png`; + } } // 获取分部图片 @@ -190,6 +197,7 @@ export default function companyPage() {