吉安感知网项目-前端
张含笑
2026-01-23 bcfa7fec8c6d2d222989e34f01b5fd6300befaf8
uniapps/work-app/src/api/work/index1.js
@@ -1,9 +1,58 @@
import { request } from "@/utils/requestGd/index.js"
import website from '@/config/website'
// 工单用户登录接口
export const ticketLoginInterfaceApi = (tenantId, deptId, roleId, username, password, type, key, code) => {
   return request({
      url: '/blade-auth/oauth/token',
      method: 'post',
      header: {
         'Tenant-Id': tenantId,
         'Dept-Id': website.switchMode ? deptId : '',
         'Role-Id': website.switchMode ? roleId : '',
         'Captcha-Key': key,
         'Captcha-Code': code,
      },
      params: {
         tenantId,
         username,
         password,
         grant_type: 'password',
         scope: 'all',
         type,
      },
   })
}
// 获取工单列表
export const getGdList = data => {
   return request({
      url: '/system/user/profile/update',
      method: 'post',
      data,
   });
  return request({
    url: '/drone-gd/workOrder/gdClueEvent/list',
    method: 'get',
    data,
  });
};
// 获取详情
export const getGddetailedData = data => {
  return request({
    url: '/drone-gd/workOrder/gdClueEvent/detail',
    method: 'get',
    data,
  });
};
// 获取数量
export const getstatusCount = (params) => {
  return request({
    url: '/drone-gd/workOrder/gdClueEvent/count',
    method: 'get',
    params,
  })
}
// 退回工单
export const backGdApi = (data) => {
  return request({
    url: '/drone-gd/workOrder/gdClueEvent/handle',
    method: 'post',
    data,
  })
}