123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- // import http from '@/http/api.js'
- import base64 from '@/utils/base64.js'
- import http from './api.js'
- export const getrequest = (className, methodName) => {
- return http.request({
- url: '/zf/request',
- method: 'POST',
- data: {
- // "username": "admin",
- // "username": "sqmj1",
- // "password": "937b0ec364aff24c011307493f5155b4",
- // "password": "e10adc3949ba59abbe56e057f20f883e",
- "className": className,
- "methodName": methodName,
- "params": {
- "current": "1",
- "size": "10"
- }
- }
- })
- }
- // 获取 地址 树
- export const getLdListPt = () => {
- return http.request({
- url: '/api/blade-xxy/Xxy/getLdList-pt',
- method: 'get',
- });
- };
- // 获取单元和物建员 传ldphxlh
- export const getLdDetail = (ldphxlh) => {
- return http.request({
- url: '/zf/request',
- method: 'POST',
- data: {
- "className": 'xxyController',
- "methodName": 'getLdDetail',
- "params": {
- "ldphxlh": ldphxlh
- }
- }
- });
- };
- // export const getLdDetail = (ldphxlh) => {
- // return http.request({
- // url: '/api/blade-xxy/Xxy/getLdDetail',
- // method: 'get',
- // params: {
- // "ldphxlh": ldphxlh
- // }
- // });
- // };
- // 新增物建员
- export const saveXxy = (data) => {
- return http.request({
- // url: '/api/blade-xxy/Xxy/save',
- url: '/zf/request',
- method: 'post',
- data: {
- "appId": '1846809831194980354',
- "className": 'xxyController',
- "methodName": 'save',
- "params": {
- "xm": data.xm,
- "sfzh": data.sfzh,
- "lxfs": data.lxfs,
- "ldId": data.ldId,
- "dyh": data.dyh,
- "zzmm": data.zzmm,
- "szlb": data.szlb,
- "dwzw": data.dwzw,
- "zz": data.zz
- }
- }
- });
- };
- // 物建员详情
- export const detail = (id) => {
- return http.request({
- // url: '/api/blade-xxy/Xxy/detail',
- url: '/zf/request',
- method: 'post',
- data: {
- "appId": '1846809831194980354',
- "className": 'xxyController',
- "methodName": 'detail',
- "params": {
- "id": id
- }
- }
- });
- };
- // 字典
- export const dictionary = () => {
- return http.request({
- // url: '/api/blade-fwInfo/fwInfo/dictionary',
- url: '/zf/request',
- method: 'post',
- data: {
- "appId": '1846809831194980354',
- "className": 'fwInfoController',
- "methodName": 'dictionary',
- "params": {}
- }
- });
- };
- export const login = (tenantId, username, password, type) => {
- return http.request({
- url: '/api/blade-auth/oauth/token',
- method: 'POST',
- header: {
- 'Tenant-Id': tenantId,
- 'Blade-Requested-With': 'BladeHttpRequest',
- },
- params: {
- tenantId,
- username,
- password,
- grant_type: "password",
- scope: "all",
- type
- }
- })
- }
|