ucservice 2.0.7 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ucservice.common.js +14 -1
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +14 -1
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +2 -2
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/ucservice.umd.js
CHANGED
|
@@ -27825,6 +27825,7 @@ let dept_ry = {
|
|
|
27825
27825
|
url: '/common-gis-web/data/gispos/addPersion',
|
|
27826
27826
|
method: 'POST',
|
|
27827
27827
|
contentType: 'application/json;charset=utf-8',
|
|
27828
|
+
paramOnUrl: ['token'],
|
|
27828
27829
|
requestParam: {
|
|
27829
27830
|
token: '',
|
|
27830
27831
|
name: '',
|
|
@@ -31459,9 +31460,11 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
|
|
|
31459
31460
|
|
|
31460
31461
|
$.ajax(ajaxContent).fail(function (jqXHR, sts) {
|
|
31461
31462
|
console.error('加载数据失败:' + sts + ", " + url);
|
|
31463
|
+
throw new Error('请求失败!');
|
|
31462
31464
|
}).done(function (ret) {
|
|
31463
31465
|
if (!ret || ret.code != 0) {
|
|
31464
31466
|
console.error('加载数据失败:' + JSON.stringify(ret) + ", " + url);
|
|
31467
|
+
throw new Error('加载数据失败!');
|
|
31465
31468
|
}
|
|
31466
31469
|
|
|
31467
31470
|
if (backSuccfn) backSuccfn(ret);
|
|
@@ -32268,8 +32271,18 @@ const deptRyOp = sip => {
|
|
|
32268
32271
|
},
|
|
32269
32272
|
createOnGis: function (param) {
|
|
32270
32273
|
let net = dept_ry_url.createOnGis;
|
|
32274
|
+
let urlParamString = '';
|
|
32275
|
+
|
|
32276
|
+
if (net.paramOnUrl) {
|
|
32277
|
+
net.paramOnUrl.forEach(key => {
|
|
32278
|
+
urlParamString && (urlParamString += '&');
|
|
32279
|
+
urlParamString += `${key}=${param[key]}`;
|
|
32280
|
+
delete param[key];
|
|
32281
|
+
});
|
|
32282
|
+
}
|
|
32283
|
+
|
|
32271
32284
|
return new Promise((resolve, reject) => {
|
|
32272
|
-
loadJson(server_ + net.url, { ...param
|
|
32285
|
+
loadJson(server_ + net.url + (urlParamString ? '?' + urlParamString : ''), { ...param
|
|
32273
32286
|
}, function (ret) {
|
|
32274
32287
|
if (ret.code == 0) {
|
|
32275
32288
|
resolve(ret);
|
package/dist/ucservice.umd.js.gz
CHANGED
|
Binary file
|