unknown
2023-10-23 5672f352d0ba114e2ae96c8cefad6c74ae6d2934
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
/**
 * 安全管理模块
 */
 import axios from '../request';
 export default{
  /**
   * 安全公告模块
   */
  // 查询安全公告信息列表
  searchSafetyAfficheList: (params) =>
    axios({
      method: 'post',
      url: '/secure/secureNotice/findList',
      headers: {
        pageNum: params.pageNum,
        pageSize: params.pageSize
      },
      data: {
        noticeName: params.noticeName,
        startTime: params.startTime,
        endTime: params.endTime
      }
    }),
  // 添加 修改 安全公告信息
  insertSafetyAfficheInfo: (params) =>
    axios.post('/secure/secureNotice/addSecureNotice', params),
  // 删除安全公告信息
  deleteSafetyAfficheInfo: (params) =>
    axios.post('secure/secureNotice/delete', params),
  // 上架 下架安全公告信息
  upAndDownSafetyAfficheInfo: (params) =>
    axios.post('/secure/secureNotice/updown', params),
 
 
  /**
   * 劳务档案
   */
  //奖惩记录列表
    recordAwardsLists: (params) =>
    axios.post('/secure/encourage/encourageRecordWebList', params),
  //安全码列表
  codeSafeLists: (params) =>
    axios.post('/secure/encourage/encourageSecurityCode', params),
 
  /**
   * 安全考核模块
  */
  // 根据类型获取类型名称(安全培训和日常培训制定名称)
  getAllSecureTrainPull: (params) =>
    axios.post('/secure/secureTrain/secureTrainPull', params),
  // 查询安全考核信息
  searchSafetyExamineList: (params) =>
    axios({
      method: 'post',
      url: '/secure/exam/findList',
      headers: {
        pageNum: params.pageNum,
        pageSize: params.pageSize
      },
      data: {
        examName: params.examName,
        startDay: params.startDay,
        endDay: params.endDay
      }
    }),
  // 添加 修改 安全考核信息
  insertSafetyExamineInfo: (params) =>
    axios.post('/secure/exam/addExam', params),
  // 删除安全考核信息
  deleteSafetyExamineInfo: (params) =>
    axios.post('/secure/exam/delete', params),
  // 获取安全考核统计信息
  getExamRecordStatistical: (params) =>
    axios.post('/secure/examRecord/recordStat', params),
  // 查询安全考核记录
  searchSafetyCheckRecord: (params) =>
    axios({
      method: 'post',
      url: '/secure/examRecord/recordList',
      headers: {
        pageNum: params.pageNum,
        pageSize: params.pageSize
      },
      data: {
        examId: params.examId,
        examResult: params.examResult,
        departId: params.departId,
        groupId: params.groupId,
        startTime: params.startTime,
        endTime: params.endTime
      }
    }),
  
  
  // 安全考题信息列表
  searchSafetyTopicList: (params) =>
  axios({
    method: 'post',
    url: '/secure/question/findList',
    headers: {
      pageNum: params.pageNum,
      pageSize: params.pageSize
    },
    data: {
      trainName: params.trainName
    }
  }),
  // 新增 修改安全考题信息
  insertSafetyTopicInfo: (params) =>
    axios.post('/secure/question/addQuestion', params),
  // 删除安全考题信息
  deleteSafetyTopicInfo: (params) =>
    axios.post('/secure/question/delete', params),
  // 获取答案列表信息
  getAnswerlIstInfo: (params) =>
    axios.post('secure/question/answerList', params),
 
  /**
   * 消防器材模块
   */
  // 查询消防器材信息列表
  searchFireequipmentList: (params) =>
    axios({
      method: 'post',
      url: '/secure/secureGood/findList',
      headers: {
        pageNum: params.pageNum,
        pageSize: params.pageSize
      },
      data: {
        goodName: params.goodName,
        startTime: params.startTime,
        endTime: params.endTime
      }
    }),
  // 添加 修改 消防器材信息
  insertFireequipmentInfo: (params) =>
    axios.post('/secure/secureGood/addSecureGood', params),
  // 删除消防器材信息
  deleteFireequipmentInfo: (params) =>
    axios.post('secure/secureGood/delete', params),
  // 导出二维码
  getFireequipmentCode: (params) =>
    axios({
      method: 'get',
      url: '/secure/secureGood/viewcode',
      params: params,
      responseType: 'blob'
    }),
  // 获取消防器材图片列表
  getFireequipmentImageInfo: (params) =>
    axios.post('/secure/secureGood/fileList', params),
 
  /**
   * 安全培训和日常培训制定
   */
  // 列表信息
  searchEnactLists: params =>
    axios.post('/secure/secureTrain/secureTrainList', params),
  // 添加信息
  insertEnactInfo: params =>
    axios.post('/secure/secureTrain/secureTrainInsert', params),
  // 修改信息
  updateEnactInfo: params =>
    axios.post('/secure/secureTrain/secureTrainUpdate', params),
  // 信息详情
  detailsEnactInfo: params =>
    axios.post('/secure/secureTrain/secureTrainInfo', params),
  // 删除信息
  deleteEnactInfo: params =>
    axios.post('/secure/secureTrain/secureTrainDel', params),
  //查询记录
  getEnactRecords: params =>
    axios.post('/secure/secureTrain/secureTrainRecord', params),
 
  /**
   * 安全资料模块
   */
  // 列表信息
  searchDatumLists: params =>
    axios.post('/secure/material/materialList', params),
  // 添加信息
  insertDatumInfo: params =>
    axios.post('/secure/material/materialInsert', params),
  // 修改信息
  updateDatumInfo: params =>
    axios.post('/secure/material/materialUpdate', params),
    // 信息详情
  detailsDatumInfo: params =>
    axios.post('/secure/material/materialInfo', params),
  
  /**
   * 奖惩标准模块
   */
  // 列表信息
  searchPunishLists: params =>
    axios.post('/secure/encourage/encourageList', params),
  // 添加信息
  insertPunishInfo: params =>
    axios.post('/secure/encourage/encourageInsert', params),
  // 修改信息
  updatePunishInfo: params =>
    axios.post('/secure/encourage/encourageUpdate', params),
  // 信息详情
  detailsPunishInfo: params =>
    axios.post('/secure/encourage/encourageInfo', params),
  // 信息删除
  deletePunishInfo: params =>
    axios.post('/secure/encourage/encourageDel', params),
 
  /**
  * 风险分级管控
  */
  RiskGrad: {
    // 危险源告知
    warning : {
      getLists: params =>
        axios.post('/secure/regionHazardInform/findAll', params),
      insert: params =>
        axios.post('/secure/regionHazardInform/insert', params),
      update: params =>
        axios.post('/secure/regionHazardInform/update', params),
      delete: params =>
        axios.get('/secure/regionHazardInform/delete', { params }),
    },
    // 区域包保
    allocation : {
      getLists: params =>
        axios.post('/secure/tRegionWarranty/findAll', params),
      insert: params =>
        axios.post('/secure/tRegionWarranty/insert', params),
      update: params =>
        axios.post('/secure/tRegionWarranty/update', params),
      delete: params =>
        axios.get('/secure/tRegionWarranty/delete', { params }),
    }
  },
  /**
  * 智能安全帽
  */
  SmartHelmet: {
    // 人员列表(智能安全帽下其他页面共用此接口)
    getLists: params =>
      axios.post('/materials/helmet/helmetList', params),
    // ---轨迹回放---
    trackBack: {
      // 获取用户在线时长
      getOnlineTime: params =>
        axios.post('/materials/helmet/helmetTrajectoryList', params),
      // 轨迹数据
      getTrackLists: params =>
        axios.post('/materials/helmet/helmetMotionList', params),
    },
    // ---照片管理---
    pic: {
      // 图片
      getPics: params => 
        axios.post('/materials/helmet/helmetPictureList', params),
    },
    // ---报警记录---
    warning: {
      // 报警数
      getWarning: params => 
        axios.post('/materials/helmet/helmetReportTotal', params),
      // 报警详情
      getDetailWarning: params => 
        axios.post('/materials/helmet/helmetReportUser', params),
    },
    // 区域包保
    allocation : {
      getLists: params =>
        axios.post('/secure/tRegionWarranty/findAll', params),
      insert: params =>
        axios.post('/secure/tRegionWarranty/insert', params),
      update: params =>
        axios.post('/secure/tRegionWarranty/update', params),
      delete: params =>
        axios.get('/secure/tRegionWarranty/delete', { params }),
    }
  }
}