From 422287e5e64d33ae13139b6252b24c11ad1c80d2 Mon Sep 17 00:00:00 2001
From: LiuJiaNan <15703339975@163.com>
Date: Thu, 18 Dec 2025 14:31:16 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8C=89=E9=92=AE=E6=9D=83?=
=?UTF-8?q?=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 2 +-
.../Inspection/Acceptance/List/index.js | 21 +++++++++--------
.../Inspection/Assign/List/index.js | 21 +++++++++--------
.../Inspection/Defense/List/index.js | 23 +++++++++++--------
.../Inspection/Inspected/List/index.js | 23 +++++++++++--------
.../Inspection/Inspection/List/index.js | 9 ++++----
.../Inspection/Inspector/List/index.js | 23 +++++++++++--------
.../Inspection/Records/List/index.js | 9 ++++----
.../BranchCompany/Plan/Execute/List/index.js | 5 ++--
.../Plan/Management/List/index.js | 9 ++++----
.../Inspection/Acceptance/List/index.js | 2 +-
.../Inspection/Defense/List/index.js | 2 +-
.../Inspection/Inspection/List/index.js | 2 +-
.../Inspection/Inspector/List/index.js | 2 +-
.../Inspection/Records/List/index.js | 2 +-
.../Supervision/Plan/Execute/List/index.js | 2 +-
.../Supervision/Plan/Management/List/index.js | 2 +-
17 files changed, 89 insertions(+), 70 deletions(-)
diff --git a/package.json b/package.json
index b75f40d..861bdd6 100644
--- a/package.json
+++ b/package.json
@@ -32,7 +32,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-to-print": "^3.2.0",
- "zy-react-library": "^1.0.167"
+ "zy-react-library": "^1.0.169"
},
"devDependencies": {
"@antfu/eslint-config": "^5.4.1",
diff --git a/src/pages/Container/BranchCompany/Inspection/Acceptance/List/index.js b/src/pages/Container/BranchCompany/Inspection/Acceptance/List/index.js
index 7a41a30..fa211ed 100644
--- a/src/pages/Container/BranchCompany/Inspection/Acceptance/List/index.js
+++ b/src/pages/Container/BranchCompany/Inspection/Acceptance/List/index.js
@@ -1,3 +1,4 @@
+import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search";
@@ -66,14 +67,16 @@ function List(props) {
>
查看
-
+ {props.permission(props.acceptPermissionKey || "inspection-qy-check-accept-edit") && (
+
+ )}
),
},
@@ -84,4 +87,4 @@ function List(props) {
);
}
-export default Connect([NS_INSPECTION], true)(List);
+export default Connect([NS_INSPECTION], true)(Permission(List));
diff --git a/src/pages/Container/BranchCompany/Inspection/Assign/List/index.js b/src/pages/Container/BranchCompany/Inspection/Assign/List/index.js
index 826073c..d395bd1 100644
--- a/src/pages/Container/BranchCompany/Inspection/Assign/List/index.js
+++ b/src/pages/Container/BranchCompany/Inspection/Assign/List/index.js
@@ -1,3 +1,4 @@
+import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search";
@@ -66,14 +67,16 @@ function List(props) {
>
查看
-
+ {props.permission("inspection-qy-check-assign-edit") && (
+
+ )}
),
},
@@ -84,4 +87,4 @@ function List(props) {
);
}
-export default Connect([NS_INSPECTION], true)(List);
+export default Connect([NS_INSPECTION], true)(Permission(List));
diff --git a/src/pages/Container/BranchCompany/Inspection/Defense/List/index.js b/src/pages/Container/BranchCompany/Inspection/Defense/List/index.js
index 9d82870..47fd9fb 100644
--- a/src/pages/Container/BranchCompany/Inspection/Defense/List/index.js
+++ b/src/pages/Container/BranchCompany/Inspection/Defense/List/index.js
@@ -1,3 +1,4 @@
+import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Image, message, Modal, Space } from "antd";
import { useEffect, useState } from "react";
@@ -78,15 +79,17 @@ function List(props) {
>
查看
-
+ {props.permission(props.defensePermissionKey || "inspection-qy-check-plead-edit") && (
+
+ )}
-
+ {props.permission("inspection-qy-check-confirm-edit") && (
+
+ )}
),
},
@@ -188,4 +191,4 @@ function ConfirmModalComponent(props) {
}
const ConfirmModal = Connect([NS_INSPECTION], true)(ConfirmModalComponent);
-export default Connect([NS_INSPECTION], true)(List);
+export default Connect([NS_INSPECTION], true)(Permission(List));
diff --git a/src/pages/Container/BranchCompany/Inspection/Inspection/List/index.js b/src/pages/Container/BranchCompany/Inspection/Inspection/List/index.js
index 49e8346..0efd05c 100644
--- a/src/pages/Container/BranchCompany/Inspection/Inspection/List/index.js
+++ b/src/pages/Container/BranchCompany/Inspection/Inspection/List/index.js
@@ -1,5 +1,6 @@
-import { Connect } from "@cqsjjb/jjb-dva-runtime";
+import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
+import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd";
import { useState } from "react";
import AddIcon from "zy-react-library/components/Icon/AddIcon";
@@ -56,7 +57,7 @@ function List(props) {
(
- {query.edit !== "0" && (
+ {props.permission(props.addPermissionKey || "inspection-qy-check-add") && query.edit !== "0" && (
}
@@ -91,7 +92,7 @@ function List(props) {
width: 200,
render: (_, record) => (
- {(record.status === -1 || record.status === 600) && (
+ {(props.permission(props.updatePermissionKey || "inspection-qy-check-edit") && (record.status === -1 || record.status === 600)) && (
-
+ {props.permission(props.verifyPermissionKey || "inspection-qy-check-verify-edit") && (
+
+ )}
),
},
@@ -174,4 +177,4 @@ function VerifyModalComponent(props) {
}
const VerifyModal = Connect([NS_INSPECTION], true)(VerifyModalComponent);
-export default Connect([NS_INSPECTION], true)(List);
+export default Connect([NS_INSPECTION], true)(Permission(List));
diff --git a/src/pages/Container/BranchCompany/Inspection/Records/List/index.js b/src/pages/Container/BranchCompany/Inspection/Records/List/index.js
index f0b320e..496579c 100644
--- a/src/pages/Container/BranchCompany/Inspection/Records/List/index.js
+++ b/src/pages/Container/BranchCompany/Inspection/Records/List/index.js
@@ -1,5 +1,6 @@
-import { Connect } from "@cqsjjb/jjb-dva-runtime";
+import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
+import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, message, Modal, Space, Spin } from "antd";
import { useEffect, useState } from "react";
import ExportIcon from "zy-react-library/components/Icon/ExportIcon";
@@ -138,7 +139,7 @@ function List(props) {
)}
toolBarRender={() => (
- {query.entrance !== "statistics" && (
+ {(props.permission(props.exportPermissionKey || "inspection-qy-list-dc") && query.entrance !== "statistics") && (
}
@@ -193,7 +194,7 @@ function List(props) {
>
查看
- {query.entrance !== "statistics" && (
+ {(props.permission(props.deletePermissionKey || "inspection-qy-list-del") && query.entrance !== "statistics") && (