1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
| import http from '../libs/mobox.api.js';
| import {
| Base64
| } from '@/js/Base64.js';
| import utils from "@/js/utils.js"
| /**
| * api/app/area/GetList
| * 得到应用领域列表
| * @param app_type //应用类型
| * @param need_ace //是否需要进行权限判断
| * @returns
| */
| export const areaList = (app_type,need_ace) => {
| const app = getApp()
| var data = {
| app_type: app_type || "MES",
| need_ace:need_ace||false
| }
| var url = app.globalData.mobox3ApiUrl.mobox + 'api/app/area/GetList'
| return http.request({
| method: "POST",
| header: {},
| url,
| data,
| })
| }
| /**
| * api/app/GetFuncTree
| * 得到应用领域功能树
| * @param
| {app_type, //应用类型
| area_id,//应用领域id
| area_client_type,应用领域客户端类型,
| need_ace} 是否需要进行权限判断,
| * @returns
| */
| export const getFuncTree = (data) => {
|
| const app = getApp()
| var url = app.globalData.mobox3ApiUrl.mobox + 'api/app/GetFuncTree'
| return http.request({
| method: "POST",
| header: {},
| url,
| data,
| })
| }
| /**
| * api/app/GetInfo
| * 得到功能点信息
| * @param
| {app_id, //功能点id
| need_ace}//是否需要进行权限判断,
| * @returns
| */
| export const appGetInfo = (data) => {
|
| const app = getApp()
| var url = app.globalData.mobox3ApiUrl.mobox + 'api/app/GetInfo'
| return http.request({
| method: "POST",
| header: {},
| url,
| data,
| })
| }
|
| /**
| * api/dict/GetInfo2
| * 得到字典信息
| * @param
| {dict_id, //字典id
| dict_name}//字典名称
| * @returns
| */
| export const dictGetInfo = (data) => {
|
| const app = getApp()
| var url = app.globalData.mobox3ApiUrl.mobox + 'api/dict/GetInfo2'
| return http.request({
| method: "POST",
| header: {},
| url,
| data,
| })
| }
| /**
| * api/dict/item/GetInfo
| * 得到字典项信息
| * @param
| {dict_name, //字典名称
| dict_item_name //字典项名称
| need_ace //字是否需要进行权限判断,
| }
| * @returns
| */
| export const dictItemGetInfo = (data) => {
|
| const app = getApp()
| var url = app.globalData.mobox3ApiUrl.mobox + 'api/dict/item/GetInfo'
| return http.request({
| method: "POST",
| header: {},
| url,
| data,
| })
| }
|
|