吉安感知网项目-前端
罗广辉
2026-01-22 6eeeb44d39e7afff85ae6ec6f22bf3c48222a84d
uniapps/work-app/src/api/work/index1.js
@@ -1,4 +1,6 @@
import { request } from "@/utils/requestGd/index.js"
import website from '@/config/website'
// 获取工单列表
export const getGdList = data => {
   return request({
@@ -7,3 +9,25 @@
      data,
   });
};
// 工单用户登录接口
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,
      },
   })
}