diff --git a/src/request/safety_production_related.js b/src/request/safety_production_related.js
index e64eb09..3c81300 100644
--- a/src/request/safety_production_related.js
+++ b/src/request/safety_production_related.js
@@ -17,9 +17,15 @@ export const getSecurityNoticeInfo = (params) =>
post("/securitynotice/goEdit", params); // 安全通知详情
export const addSecurityNotice = (params) =>
upload("/securitynotice/add", params); // 添加安全通知
+
+export const editSecurityNotice = (params) =>
+ upload("/securitynotice/edit", params); // 修改安全通知
export const getUserBuUserId = (params) =>
post("/user/getUserByUserId", params);
+export const issueSecurityNotice = (params) =>
+ post("/securitynotice/issueSecurityNotice", params); // 发布安全通知
+
// 通知等级
export const layoutFnGetNotificationsClassification = async () => {
const resData = await getLevelsByParentId({
diff --git a/src/views/production_course_regulate/violation_registration/edit.vue b/src/views/production_course_regulate/violation_registration/edit.vue
index 8d00591..1efbf0d 100644
--- a/src/views/production_course_regulate/violation_registration/edit.vue
+++ b/src/views/production_course_regulate/violation_registration/edit.vue
@@ -10,7 +10,7 @@
-
+
-
-
-
+
+
diff --git a/src/views/safety_production_related/security_notice/add.vue b/src/views/safety_production_related/security_notice/add.vue
index d9d005c..b54c49e 100644
--- a/src/views/safety_production_related/security_notice/add.vue
+++ b/src/views/safety_production_related/security_notice/add.vue
@@ -74,13 +74,14 @@
-
+
diff --git a/src/views/safety_production_related/security_notice/details.vue b/src/views/safety_production_related/security_notice/details.vue
index ed26911..48514df 100644
--- a/src/views/safety_production_related/security_notice/details.vue
+++ b/src/views/safety_production_related/security_notice/details.vue
@@ -1,155 +1,239 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
+
+ 修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- {{ serialNumber(pagination, $index) }}
-
-
-
-
-
-
- {{ row.SIGNEDDATE }}
- 未签收
-
-
-
-
- {{ row.REPLYDATE }}
- 未回复
-
-
-
-
- {{ row.REPLYCONTENT }}
- 未回复
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 确定
+
+
+
-
+
diff --git a/src/views/safety_production_related/security_notice/index.vue b/src/views/safety_production_related/security_notice/index.vue
index 21515f8..c40aa53 100644
--- a/src/views/safety_production_related/security_notice/index.vue
+++ b/src/views/safety_production_related/security_notice/index.vue
@@ -52,22 +52,22 @@
:data="list"
@get-data="fnGetData"
>
-
+
{{ serialNumber(pagination, $index) }}
-
-
+
+
{{ row.LEVEL }}
-
+
- 未发布
- 已发布
+ 待发布
+ 已发布
@@ -90,11 +90,38 @@
-
-
-
+
+
+ 查看
+
+
+ 修改
+
+
删除
+
+ 发布
+
@@ -137,6 +173,7 @@ import {
layoutFnGetNotificationsClassification,
dateteSecurityAllNotice,
dateteSecurityNotice,
+ issueSecurityNotice
} from "@/request/safety_production_related.js";
import { ElMessageBox, ElMessage } from "element-plus";
import { debounce } from "throttle-debounce";
@@ -150,7 +187,7 @@ const { list, pagination, searchForm, fnGetData, fnResetPagination } =
useListData(getSecurityNoticeList);
const fnResetPaginationTransfer = () => {
fnResetPagination({
- DEPTIDS: searchForm.value.DEPTIDS?.join(","),
+ DEPTIDS: searchForm.value.DEPTIDS?.join(",")
});
};
const fnBatchDelete = debounce(
@@ -177,13 +214,22 @@ const relatedClassificationList = ref(null);
// 删除事件
const deleteItem = async (value) => {
await ElMessageBox.confirm(`确定要删除吗?`, {
- type: "warning",
+ type: "warning"
});
await dateteSecurityNotice({ NOTIFICATION_ID: value });
ElMessage.success("删除成功");
fnGetData();
};
+const issueItem = async (value) => {
+ await ElMessageBox.confirm(`确定要发布此条通知吗?`, {
+ type: "warning"
+ });
+ await issueSecurityNotice({ NOTIFICATION_ID: value });
+ ElMessage.success("发布成功");
+ fnGetData();
+};
+
onMounted(async () => {
const data = await layoutFnGetNotificationsClassification();
relatedClassificationList.value = JSON.parse(data.value.zTreeNodes);
diff --git a/src/views/safety_production_related/security_notice/notice_info.vue b/src/views/safety_production_related/security_notice/notice_info.vue
index 762cda2..865dd7d 100644
--- a/src/views/safety_production_related/security_notice/notice_info.vue
+++ b/src/views/safety_production_related/security_notice/notice_info.vue
@@ -8,39 +8,68 @@
{{ detailItems.LEVEL }}
-
-
-
-
-
- {{ detailItems.REPLYSTATUS === "1" ? "开" : "关" }}
-
-
+
+ {{ detailItems.REPLYSTATUS === "1" ? "是" : "否" }}
-
+
- {{ detailItems.TRANSPORTATIONCOMPANY }}
+ {{ detailItems.CREATORNAME }}
+
+ 查看通知附件
+
+
+
+
+
+
+ {{ row.NAME }}
+
+
+ {{ row.SIGNEDDATE }}
+
+
+
+
+ {{ row.REPLYCONTENT }}
+
+
+
+
+
+ {{ row.REPLYDATE }}
+
+
+