permission.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. import request from '@/utils/request'
  2. /*查询用户列表-下拉列表
  3. * userName : '', 名称
  4. * userType: '', 0.系统 1.老师 2.学生
  5. */
  6. export function systemUserSelectUser(data) {
  7. return request({
  8. url: '/system/user/dropList',
  9. method: 'post',
  10. data: data
  11. })
  12. }
  13. //获取实验室列表
  14. export function listInfo(query) {
  15. return request({
  16. url: '/laboratory/subject/listInfo',
  17. method: 'get',
  18. params: query
  19. })
  20. }
  21. //获取当前账号学院数据
  22. export function filterDept(query) {
  23. return request({
  24. url: '/system/dept/filterDept',
  25. method: 'get',
  26. params: query
  27. })
  28. }
  29. // 查询实验室类型下啦列表
  30. export function queryOption(data) {
  31. return request({
  32. url: '/laboratory/labMold/queryOption/',
  33. method: 'post',
  34. data: data
  35. })
  36. }
  37. //获取检查单位
  38. export function treeselect(query) {
  39. return request({
  40. url: '/system/dept/treeselect',
  41. method: 'get',
  42. params: query
  43. })
  44. }
  45. //查询学院列表(根据数据权限)
  46. export function getDeptNoAuthList(data) {
  47. return request({
  48. url: '/system/dept/getDeptNoAuthList?deptType=1',
  49. method: 'get',
  50. data: data
  51. })
  52. }
  53. /*=================================V3=================================*/
  54. //根据名称查询数据权限范围内的实验室
  55. export function subjectList(data) {
  56. return request({
  57. url: '/system/subject/getListByPower',
  58. method: 'post',
  59. data: data
  60. })
  61. }
  62. //根据名称查询数据权限范围内的实验室(带相信信息)
  63. export function laboratorySubRelInfoGetRelListByPower(data) {
  64. return request({
  65. url: '/laboratory/subRelInfo/getRelListByPower',
  66. method: 'post',
  67. data: data
  68. })
  69. }
  70. //查询当前登录人所属院校的实验室列表
  71. export function laboratorySubRelInfoSelectUserBySubPage(data) {
  72. return request({
  73. url: '/laboratory/subRelInfo/selectUserBySubPage',
  74. method: 'post',
  75. data: data
  76. })
  77. }
  78. /* 分类获取公共配置
  79. * category 1.系统参数 2.公共配置
  80. * configType 1.基础配置 2.管控一体机 3.化学品终端 4.小程序配置 5.开发配置 6.首页配置
  81. */
  82. export function getConfigByType(data) {
  83. return request({
  84. url: '/system/config/info/getConfigByType',
  85. method: 'post',
  86. data: data
  87. })
  88. }
  89. /* 分类获取公共配置列表
  90. * category 1.系统参数 2.公共配置(系统参数页面 传1)
  91. * configType 1.基础配置 2.管控一体机 3.化学品终端 4.小程序配置 5.开发配置 6.首页配置(系统参数页面 传0)
  92. */
  93. export function getConfigList(data) {
  94. return request({
  95. url: '/system/config/info/list',
  96. method: 'post',
  97. data: data
  98. })
  99. }
  100. // 部门列表
  101. export function getDeptList(data) {
  102. return request({
  103. url: '/system/dept/list',
  104. method: 'post',
  105. data: data
  106. })
  107. }
  108. //组织架构
  109. export function getDeptOrganizeStructure(data) {
  110. return request({
  111. url: '/system/dept/organizeStructure',
  112. method: 'post',
  113. data: data
  114. })
  115. }
  116. /* 部门下拉列表
  117. * deptName 名称
  118. * level 查询级别
  119. * deptType 1.学院 0.非学院
  120. */
  121. export function getDeptDropList(data) {
  122. return request({
  123. url: '/system/dept/dropList',
  124. method: 'post',
  125. data: data
  126. })
  127. }
  128. // 新增部门
  129. export function setDeptAdd(data) {
  130. return request({
  131. url: '/system/dept/add',
  132. method: 'post',
  133. data: data
  134. })
  135. }
  136. // 编辑部门
  137. export function setDeptUpdate(data) {
  138. return request({
  139. url: '/system/dept/update',
  140. method: 'post',
  141. data: data
  142. })
  143. }
  144. // 删除部门
  145. export function setDeptDelete(data) {
  146. return request({
  147. url: '/system/dept/delete',
  148. method: 'post',
  149. data: data
  150. })
  151. }
  152. // 部门排序
  153. export function setDeptSort(data) {
  154. return request({
  155. url: '/system/dept/sort',
  156. method: 'post',
  157. data: data
  158. })
  159. }
  160. // 获取用户列表 userType 0.系统 1.教职工 2.学生 3.大屏(暂无用处)
  161. export function systemUserList(data) {
  162. return request({
  163. url: '/system/user/list',
  164. method: 'post',
  165. data: data
  166. })
  167. }
  168. //新增用户数据
  169. export function systemUserAdd(data) {
  170. return request({
  171. url: '/system/user/add',
  172. method: 'post',
  173. data: data
  174. })
  175. }
  176. //编辑用户数据
  177. export function systemUserUpdate(data) {
  178. return request({
  179. url: '/system/user/update',
  180. method: 'post',
  181. data: data
  182. })
  183. }
  184. //修改用户状态(启用/停用&在职/离职)
  185. export function systemUserEditState(data) {
  186. return request({
  187. url: '/system/user/editState',
  188. method: 'post',
  189. data: data
  190. })
  191. }
  192. //修改密码
  193. export function systemUserEditPasswd(data) {
  194. return request({
  195. url: '/system/user/editPasswd',
  196. method: 'post',
  197. data: data
  198. })
  199. }
  200. //删除用户
  201. export function systemUserDelete(data) {
  202. return request({
  203. url: '/system/user/delete',
  204. method: 'post',
  205. data: data
  206. })
  207. }
  208. //获取用户详情
  209. export function systemUserDetail(query) {
  210. return request({
  211. url: '/system/user/detail',
  212. method: 'get',
  213. params: query
  214. })
  215. }
  216. //获取个人信息
  217. export function systemUserProfile(query) {
  218. return request({
  219. url: '/system/user/profile',
  220. method: 'get',
  221. params: query
  222. })
  223. }
  224. //重置密码
  225. export function systemUserResetPasswd(data) {
  226. return request({
  227. url: '/system/user/resetPasswd',
  228. method: 'post',
  229. data: data
  230. })
  231. }
  232. /* 自定义用户查询-不带分页
  233. * userType 0.系统用户 1.教职工 2.学生 (必传)
  234. * userName 用户名
  235. * mobile 手机号
  236. * cardNum 卡号
  237. * account 账号
  238. * userIds 指定用户IDS
  239. * selectedUserIds 过滤用户IDS
  240. * pageSize 不传默认返回10条
  241. */
  242. export function systemUserSelect(data) {
  243. return request({
  244. url: '/system/user/select',
  245. method: 'post',
  246. data: data
  247. })
  248. }
  249. /* 自定义用户查询-带分页
  250. * userType 0.系统用户 1.教职工 2.学生 (必传)
  251. * userName 用户名
  252. * mobile 手机号
  253. * cardNum 卡号
  254. * account 账号
  255. * userIds 指定用户IDS
  256. * selectedUserIds 过滤用户IDS
  257. * pageSize 不传默认返回10条
  258. */
  259. export function systemUserSelectByPage(data) {
  260. return request({
  261. url: '/system/user/selectByPage',
  262. method: 'post',
  263. data: data
  264. })
  265. }
  266. /* 自定义获取专业/班级下拉列表
  267. * type 1.专业 2.班级 (必传)
  268. * referId 父类ID(院系ID,专业ID)
  269. * name 名称
  270. * state 状态
  271. */
  272. export function systemUserMajorSelect(data) {
  273. return request({
  274. url: '/system/user/major/select',
  275. method: 'post',
  276. data: data
  277. })
  278. }
  279. //添加-更新人脸
  280. export function systemUserFaceAddOrUpdate(data) {
  281. return request({
  282. url: '/system/user/face/addOrUpdate',
  283. method: 'post',
  284. data: data
  285. })
  286. }
  287. //检测人脸
  288. export function systemUserFaceCheckFace(data) {
  289. return request({
  290. url: '/system/user/face/checkFace',
  291. method: 'post',
  292. data: data
  293. })
  294. }
  295. //人脸信息详情
  296. export function systemUserFaceAddOrInfo(query) {
  297. return request({
  298. url: '/system/user/face/info',
  299. method: 'get',
  300. params: query
  301. })
  302. }
  303. //通用上传接口
  304. export function systemFileUpload(data) {
  305. return request({
  306. url: '/system/file/upload',
  307. method: 'post',
  308. data: data
  309. })
  310. }
  311. //商户下拉列表
  312. export function tenantDropList(data) {
  313. return request({
  314. url: '/system/tenant/dropList',
  315. method: 'post',
  316. data: data
  317. })
  318. }
  319. //认证信息下拉列表
  320. export function authCustomerDropList(data) {
  321. return request({
  322. url: '/auth/customer/dropList',
  323. method: 'post',
  324. data: data
  325. })
  326. }
  327. //角色下拉列表
  328. export function systemRoleDropList(data) {
  329. return request({
  330. url: '/system/role/dropList',
  331. method: 'post',
  332. data: data
  333. })
  334. }
  335. //告警方式下拉列表
  336. export function iotAlarmTypeSelect(data) {
  337. return request({
  338. url: '/iot/alarm/type/select',
  339. method: 'post',
  340. data: data
  341. })
  342. }
  343. /******************楼栋楼层*******************/
  344. //楼栋tree列表
  345. export function systemBuildingGetTreeList(data) {
  346. return request({
  347. url: '/system/building/getTreeList',
  348. method: 'post',
  349. data: data
  350. })
  351. }
  352. /*根据校区/楼栋/楼层查询实验室列表
  353. deptId:'校区查询'
  354. buildId:'楼栋查询'
  355. floorId:'楼层查询'
  356. */
  357. export function laboratorySubRelInfoGetListByFloor(data) {
  358. return request({
  359. url: '/laboratory/subRelInfo/getListByFloor',
  360. method: 'post',
  361. data: data
  362. })
  363. }
  364. // 查询实验室类型列表(不带分页)
  365. export function laboratoryClassMoldGetList(data) {
  366. return request({
  367. url: '/laboratory/classMold/getList',
  368. method: 'post',
  369. data: data
  370. })
  371. }
  372. // 查询安全分级列表(不带分页)
  373. export function laboratoryClassLevelGetList(data) {
  374. return request({
  375. url: '/laboratory/classLevel/getList',
  376. method: 'post',
  377. data: data
  378. })
  379. }
  380. // 查询安全分类列表(不带分页)
  381. export function laboratoryClassTypeGetList(data) {
  382. return request({
  383. url: '/laboratory/classType/getList',
  384. method: 'post',
  385. data: data
  386. })
  387. }
  388. /* 查询楼栋楼层下拉列表(不带分页)
  389. * type 1.校区 2.楼栋 3.楼层
  390. */
  391. export function systemBuildingGetOptList(data) {
  392. return request({
  393. url: '/system/building/getOptList',
  394. method: 'post',
  395. data: data
  396. })
  397. }
  398. // 查询楼层下房间列表
  399. export function systemRoomInfoGetList(data) {
  400. return request({
  401. url: '/system/roomInfo/getList',
  402. method: 'post',
  403. data: data
  404. })
  405. }
  406. //查询部门下拉树
  407. export function systemDeptList(data) {
  408. return request({
  409. url: '/system/dept/list',
  410. method: 'post',
  411. data: data
  412. })
  413. }
  414. //查询职位(身份)-下拉列表
  415. export function systemPostSelect(query) {
  416. return request({
  417. url: '/system/post/select',
  418. method: 'get',
  419. params: query
  420. })
  421. }
  422. //获取-小铃铛列表
  423. export function systemNoticeGetNoticeList(query) {
  424. return request({
  425. url: '/system/notice/getNoticeList',
  426. method: 'get',
  427. params: query
  428. })
  429. }
  430. //获取-小铃铛数量
  431. export function systemNoticeGetNoticeCount(query) {
  432. return request({
  433. url: '/system/notice/getNoticeCount',
  434. method: 'get',
  435. params: query
  436. })
  437. }
  438. //获取-小铃铛详情
  439. export function systemNoticeGetNoticeDetail(query) {
  440. return request({
  441. url: '/system/notice/getNoticeDetail',
  442. method: 'get',
  443. params: query
  444. })
  445. }
  446. //获取系统消息类型
  447. export function systemNoticeGetNoticeType(query) {
  448. return request({
  449. url: '/system/notice/getNoticeType',
  450. method: 'get',
  451. params: query
  452. })
  453. }
  454. /*=================================物联相关=================================*/
  455. //传感器-查询
  456. export function iotSensorFindBySubId(query) {
  457. return request({
  458. url: '/iot/sensor/findBySubId',
  459. method: 'get',
  460. params: query
  461. })
  462. }
  463. /* 硬件-查询
  464. * floorId 查询楼层内硬件 或 passageway 查询楼道内硬件
  465. * hardwareTypeKey 硬件类型key
  466. * */
  467. export function iotHardwareFindByType(data) {
  468. return request({
  469. url: '/iot/hardware/findByType',
  470. method: 'post',
  471. data: data
  472. })
  473. }
  474. //硬件-开关
  475. export function iotHardwareOperatingHardware(query) {
  476. return request({
  477. url: '/iot/hardware/operatingHardware',
  478. method: 'get',
  479. params: query
  480. })
  481. }
  482. //连接管理-详情
  483. export function systemLinkDetail(query) {
  484. return request({
  485. url: '/system/link/detail',
  486. method: 'get',
  487. params: query
  488. })
  489. }
  490. //连接管理-下拉菜单
  491. export function systemLinkDropList(data) {
  492. return request({
  493. url: '/system/link/dropList',
  494. method: 'post',
  495. data: data
  496. })
  497. }
  498. //post链接调用接口
  499. export function menuLinkGet(url,query) {
  500. return request({
  501. url: url,
  502. method: 'get',
  503. params: query
  504. })
  505. }
  506. //get链接调用接口
  507. export function menuLinkPost(url,data) {
  508. return request({
  509. url: url,
  510. method: 'post',
  511. data: data
  512. })
  513. }
  514. //查询当前正在发生的预案
  515. export function laboratoryBigViewSelectTriggerInfo(query) {
  516. return request({
  517. url: '/laboratory/bigView/selectTriggerInfo',
  518. method: 'get',
  519. params: query
  520. })
  521. }