|
@@ -327,6 +327,10 @@ const SparePart = ({ data, loading, projectId }) => {
|
|
navigate(`/device/detail/${projectId}/${type}`);
|
|
navigate(`/device/detail/${projectId}/${type}`);
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ const handletotalPage = () => {
|
|
|
|
+ navigate(`/device/storage/${projectId}`);
|
|
|
|
+ };
|
|
|
|
+
|
|
const list = useMemo(() => {
|
|
const list = useMemo(() => {
|
|
const result = [
|
|
const result = [
|
|
{
|
|
{
|
|
@@ -360,7 +364,11 @@ const SparePart = ({ data, loading, projectId }) => {
|
|
<div className={styles.num}>{data?.on_amount || 0}</div>
|
|
<div className={styles.num}>{data?.on_amount || 0}</div>
|
|
<div className={styles.text}>在库数量(个)</div>
|
|
<div className={styles.text}>在库数量(个)</div>
|
|
</div>
|
|
</div>
|
|
- <img className={styles.rightIcon} src={chartIcon} />
|
|
|
|
|
|
+ <img
|
|
|
|
+ className={styles.rightIcon}
|
|
|
|
+ src={chartIcon}
|
|
|
|
+ onClick={handletotalPage}
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
{list.map((item) => (
|
|
{list.map((item) => (
|
|
<div
|
|
<div
|