|
@@ -1,9 +1,11 @@
|
|
|
-const ip = 'http://192.168.0.251/obpm';
|
|
|
-const ip2 = 'http://192.168.0.251/liug';
|
|
|
+//const ip = 'http://192.168.0.251/obpm';
|
|
|
+//const ip2 = 'http://192.168.0.251/liug';
|
|
|
//const ip = 'http://106.55.241.82:8888/obpm';
|
|
|
//const ip2 = 'http://106.55.241.82:8888/liug';
|
|
|
//const ip = 'https://tdm.liugong.com/obpm';
|
|
|
//const ip2 = 'https://tdm.liugong.com/liug';
|
|
|
+const ip = 'https://tdmtest.liugong.com/obpm';
|
|
|
+const ip2 = 'https://tdmtest.liugong.com/liug';
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -15,7 +17,7 @@ const urls = {
|
|
|
home: ip + '/app/home/index', //首页数据
|
|
|
|
|
|
login: ip + '/runtime/login/loginWithCiphertext2', //用户登陆
|
|
|
- //login: 'http://192.168.0.251/signon/runtime/login/checkin', //用户登陆
|
|
|
+ //login: 'https://tdmtest.liugong.com/signon/runtime/login/checkin', //用户登陆
|
|
|
myprofile: ip + '/runtime/users/myprofile', //用户登陆
|
|
|
upload: ip + '/runtime/upload?applicationId=__gAPYBW4YxB3UePM3lqO&allowedTypes=00', //文件上传
|
|
|
user_list: ip2 + '/app/getUser', //获取全部联系人
|
|
@@ -46,6 +48,10 @@ const urls = {
|
|
|
'/runtime/__gAPYBW4YxB3UePM3lqO/forms/__0FLGNncOS1lz0T9jsFn/empty?formId=__0FLGNncOS1lz0T9jsFn&appId=__gAPYBW4YxB3UePM3lqO', //创建委托单文档
|
|
|
//validate: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/documents/validate', //保存文档documents
|
|
|
validate: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/documents', //保存文档documents
|
|
|
+ yj_list: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__IAtGp6MmqoS9Fj0z8tO/documents?lines=9999&&sortCol=&sortStatus=&_currpage=1&treedocid=&parentNodeId=&_docid=&_fieldid=&isRelate=true&startDate=&endDate=&parentParam=&isQueryButton=false&', //设备借用列表子表
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
borr_empty: ip +
|
|
|
'/runtime/__gAPYBW4YxB3UePM3lqO/forms/__w9J1gxcIWgXmNw6pE1F/empty?formId=__w9J1gxcIWgXmNw6pE1F&appId=__gAPYBW4YxB3UePM3lqO', //创建设备借用
|
|
|
return_empty: ip +
|
|
@@ -68,8 +74,8 @@ const urls = {
|
|
|
|
|
|
eq_list: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__WLVxKX6e0Pq0cTwdNUQ/documents?', //借用选择列表
|
|
|
re_list: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__ajlFXbohdIXtn7ErzZq/documents?', //归还选择列表
|
|
|
- boor_list: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__xjFSxNZjnkBHIWEYKar/documents?', //设备借用列表子表
|
|
|
- ghlis_list: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__X1qStasuORL3244AFFq/documents?', //设备借用列表子表
|
|
|
+ boor_list: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__xjFSxNZjnkBHIWEYKar/documents?lines=9999&', //设备借用列表子表
|
|
|
+ ghlis_list: ip + '/runtime/__gAPYBW4YxB3UePM3lqO/views/__X1qStasuORL3244AFFq/documents?lines=9999&', //设备借用列表子表
|
|
|
|
|
|
}
|
|
|
/**
|
|
@@ -85,11 +91,12 @@ const request = (opt) => {
|
|
|
"Content-Type": opt.contentType,
|
|
|
//"Authorization": getUser().token ? getUser().token : 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NzAxMzYzMjEsInN1YiI6IkFpNmhsbGhOalMydWxsOVRLR2IiLCJleHAiOjE2NzAxMzk5MjEsIm5iZiI6MTY3MDEzNjMyMX0.cNQpCWUwVjA2jkrKCnybIfxl6iQQJ-xj3S8dmQSmQ3A',
|
|
|
"accessToken": getUser().accessToken || ''
|
|
|
+ //"accessToken": getUser().checkInToken || ''
|
|
|
};
|
|
|
opt.loading = opt.loading || 'true';
|
|
|
opt.success = opt.success || function() {};
|
|
|
console.log("**************************************参数调式***************************************************");
|
|
|
- console.log("请求地址:" + opt.url + " 请求参数:" + JSON.stringify(opt.data));
|
|
|
+ console.log("请求地址:" + opt.url + " 请求参数:" + JSON.stringify(opt.data)+JSON.stringify(opt.header));
|
|
|
console.log("************************************************************************************************");
|
|
|
if (opt.loading == 'true') {
|
|
|
uni.showLoading({
|
|
@@ -104,6 +111,7 @@ const request = (opt) => {
|
|
|
header: opt.header,
|
|
|
dataType: 'json',
|
|
|
success: res => {
|
|
|
+ //console.log(" 请求结果:" + JSON.stringify(res));
|
|
|
setTimeout(() => {
|
|
|
uni.hideLoading();
|
|
|
}, 500)
|