| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- // 调阅相关接口
- import request from '@/utils/request'
- // 获取调阅列表
- export function login(data) {
- return request({
- url: '/auth/login',
- headers: {
- isToken: false
- },
- method: 'post',
- data
- })
- }
- // 获取调阅列表
- export function selectListApp(data) {
- return request({
- url: '/core/retrievalTask/selectListApp',
-
- method: 'get',
- params:data
- })
- }
- //新增调阅接口NFC||图片接口
- export function registration(data) {
- return request({
- url: '/core/registration',
- headers: {
- isToken: false
- },
- method: 'post',
- data
- })
- }
- //获取任务详情列表
- export function registrationList(query) {
- return request({
- url: '/core/registration/list/',
- method: 'get',
- params: query
- })
- }
- //获取任务主机以及通道
- export function getSysDeviceByTaskId(query) {
- return request({
- url: '/system/device/getSysDeviceByTaskId/'+query.taskId,
- method: 'get',
- // params: query
- })
- }
- //根据字典类型查询字典值接口
- export function getDict(dictType) {
- return request({
- url: '/system/dict/data/type/' + dictType,
- method: 'get'
- })
- }
- // 查询机构下拉树结构
- export function deptTreeList() {
- return request({
- url: '/system/dept/deptTree',
- method: 'get'
- })
- }
- // 通过机构ID获取主机
- export function getorgHost(query) {
- return request({
- url: `/system/device/getSysDeviceByOrgId`,
- method: 'get',
- params:query
- })
- }
- // 通过主机ID获取通道列表
- export function getSysDeviceByHostId(query) {
- return request({
- url: `/system/device/getSysDeviceByHostId`,
- method: 'get',
- params:query
- })
- }
- // 添加
- export function addInfo(data) {
- return request({
- url: `/core/info`,
- method: 'post',
- data
- })
- }
- // 编辑
- export function updateInfo(data) {
- return request({
- url: `/core/info`,
- method: 'put',
- data
- })
- }
- //获取卡片查询详情
- export function getEditInfo(query) {
- return request({
- url: `/core/info/getInfo`,
- method: 'get',
- params:query
- })
- }
- //结束调阅
- export function getEndInfo(data) {
- return request({
- url: `/core/registration`,
- method: 'put',
- data
- })
- }
- ///system/device/getHostByOrgId/{orgId}
|