|
@@ -1,5 +1,5 @@
|
|
|
-//const ip = 'http://192.168.0.251/obpm';
|
|
|
-const ip = 'https://tdmtest.liugong.com/obpm';
|
|
|
+const ip = 'http://192.168.0.251/obpm';
|
|
|
+//const ip = 'https://tdmtest.liugong.com/obpm';
|
|
|
/**
|
|
|
* 全部接口
|
|
|
*/
|
|
@@ -9,21 +9,32 @@ const urls = {
|
|
|
|
|
|
login: ip + '/runtime/login/loginWithCiphertext2', //用户登陆
|
|
|
myprofile: ip + '/runtime/users/myprofile', //用户登陆
|
|
|
-
|
|
|
+
|
|
|
user_register: ip + '/app/user/register', //用户注册
|
|
|
accessToken: ip + '/rest/accessToken?secret=11ec-db2f-ca248770-8df3-890eb68cafa4', //用户注册
|
|
|
- // wt_list:ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__km3aURKW95BHxp12XVt/documents?parentId=&sortCol=&sortStatus=&lines=10&treedocid=&parentNodeId=&_docid=&_fieldid=&isRelate=&startDate=&endDate=&parentParam=&isQueryButton=false',
|
|
|
- wt_list:ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__km3aURKW95BHxp12XVt/documents?lines=10&isQueryButton=false',//获取列表数据、更换viewID
|
|
|
-
|
|
|
- wt_xqsh:ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__MhHakFCgVJAm81MFUnt/documents?lines=10&isQueryButton=false',
|
|
|
- wt_sysh:ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__r4IN5HOqV4HIips1s0Q/documents?lines=10&isQueryButton=false',
|
|
|
- wt_xqpz:ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__yoOF16IOiZdmrbDOujU/documents?lines=10&isQueryButton=false',
|
|
|
- wt_sypz:ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__b6gD17cP1g4gFdTq0Ox/documents?lines=10&isQueryButton=false',
|
|
|
- wt_rwfp:ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__m9w03S06KHbg3KioRIh/documents?lines=10&isQueryButton=false',
|
|
|
-
|
|
|
+ // wt_list:ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__km3aURKW95BHxp12XVt/documents?parentId=&sortCol=&sortStatus=&lines=10&treedocid=&parentNodeId=&_docid=&_fieldid=&isRelate=&startDate=&endDate=&parentParam=&isQueryButton=false',
|
|
|
+ wt_list: ip +
|
|
|
+ '/runtime/__gAPYBW4YxB3UePM3lqO/views/__km3aURKW95BHxp12XVt/documents?lines=10&isQueryButton=false', //获取列表数据、更换viewID
|
|
|
+
|
|
|
+ wt_xqsh: ip +
|
|
|
+ '/runtime/__gAPYBW4YxB3UePM3lqO/views/__MhHakFCgVJAm81MFUnt/documents?lines=10&isQueryButton=false',
|
|
|
+ wt_sysh: ip +
|
|
|
+ '/runtime/__gAPYBW4YxB3UePM3lqO/views/__r4IN5HOqV4HIips1s0Q/documents?lines=10&isQueryButton=false',
|
|
|
+ wt_xqpz: ip +
|
|
|
+ '/runtime/__gAPYBW4YxB3UePM3lqO/views/__yoOF16IOiZdmrbDOujU/documents?lines=10&isQueryButton=false',
|
|
|
+ wt_sypz: ip +
|
|
|
+ '/runtime/__gAPYBW4YxB3UePM3lqO/views/__b6gD17cP1g4gFdTq0Ox/documents?lines=10&isQueryButton=false',
|
|
|
+ wt_rwfp: ip +
|
|
|
+ '/runtime/__gAPYBW4YxB3UePM3lqO/views/__m9w03S06KHbg3KioRIh/documents?lines=10&isQueryButton=false',
|
|
|
+
|
|
|
documents: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/documents/', //获取文档详情
|
|
|
- empty: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/forms/__0FLGNncOS1lz0T9jsFn/empty?formId=__0FLGNncOS1lz0T9jsFn&appId=__gAPYBW4YxB3UePM3lqO', //创建委托单文档
|
|
|
- validate: ip + 'http://192.168.0.251/obpm/runtime/__gAPYBW4YxB3UePM3lqO/documents/__79Wtw03ya4dJUDGPyAN/validate', //保存文档
|
|
|
+ empty: ip +
|
|
|
+ '/runtime/__gAPYBW4YxB3UePM3lqO/forms/__0FLGNncOS1lz0T9jsFn/empty?formId=__0FLGNncOS1lz0T9jsFn&appId=__gAPYBW4YxB3UePM3lqO', //创建委托单文档
|
|
|
+ validate: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/documents/__79Wtw03ya4dJUDGPyAN/validate', //保存文档
|
|
|
+ borr_empty: ip +
|
|
|
+ '/runtime/__gAPYBW4YxB3UePM3lqO/forms/__w9J1gxcIWgXmNw6pE1F/empty?formId=__w9J1gxcIWgXmNw6pE1F&appId=__gAPYBW4YxB3UePM3lqO', //创建设备借用
|
|
|
+ return_empty: ip +
|
|
|
+ '/runtime/__gAPYBW4YxB3UePM3lqO/forms/__LcDaGhYHt5xOSeHMCs0/empty?formId=__LcDaGhYHt5xOSeHMCs0&appId=__gAPYBW4YxB3UePM3lqO', //创建设备归还
|
|
|
}
|
|
|
/**
|
|
|
* 封装的http请求wt_
|
|
@@ -37,7 +48,7 @@ const request = (opt) => {
|
|
|
opt.header = opt.header || {
|
|
|
"Content-Type": opt.contentType,
|
|
|
//"Authorization": getUser().token ? getUser().token : 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NzAxMzYzMjEsInN1YiI6IkFpNmhsbGhOalMydWxsOVRLR2IiLCJleHAiOjE2NzAxMzk5MjEsIm5iZiI6MTY3MDEzNjMyMX0.cNQpCWUwVjA2jkrKCnybIfxl6iQQJ-xj3S8dmQSmQ3A',
|
|
|
- "accessToken": getUser().accessToken || ''
|
|
|
+ "accessToken": getUser().accessToken || ''
|
|
|
};
|
|
|
opt.loading = opt.loading || 'true';
|
|
|
opt.success = opt.success || function() {};
|