atr-components 3.0.25 → 3.0.27
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/fesm2022/atr-components.mjs +15 -2
- package/fesm2022/atr-components.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1339,6 +1339,17 @@ class HttpService {
|
|
|
1339
1339
|
}, error => {
|
|
1340
1340
|
});
|
|
1341
1341
|
}
|
|
1342
|
+
downloadXls2(url, params) {
|
|
1343
|
+
this.post(atr_static_datas.AUTH_URL, {}, ToolsUtil.getHttpOptions()).subscribe(result => {
|
|
1344
|
+
let thridParma = {
|
|
1345
|
+
"reqMethod": "auth",
|
|
1346
|
+
"sign": result.data,
|
|
1347
|
+
};
|
|
1348
|
+
params = Object.assign(thridParma, params);
|
|
1349
|
+
ToolsUtil.downloadXls(atr_static_datas.SERVER_URL + url, params);
|
|
1350
|
+
}, error => {
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1342
1353
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: HttpService, deps: [{ token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1343
1354
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: HttpService }); }
|
|
1344
1355
|
}
|
|
@@ -4807,10 +4818,11 @@ class AtrFormComponent {
|
|
|
4807
4818
|
else {
|
|
4808
4819
|
list = [value];
|
|
4809
4820
|
}
|
|
4821
|
+
let imgIndex = 0;
|
|
4810
4822
|
for (let key of list) {
|
|
4811
4823
|
images.push({
|
|
4812
4824
|
key: key,
|
|
4813
|
-
uid: "-1",
|
|
4825
|
+
uid: "-1" + (imgIndex++),
|
|
4814
4826
|
url: ToolsUtil.getOssUrl(key)
|
|
4815
4827
|
});
|
|
4816
4828
|
}
|
|
@@ -4994,11 +5006,12 @@ class AtrFormComponent {
|
|
|
4994
5006
|
else {
|
|
4995
5007
|
list = [value];
|
|
4996
5008
|
}
|
|
5009
|
+
let imgIndex = 0;
|
|
4997
5010
|
for (let key of list) {
|
|
4998
5011
|
if (key != "") {
|
|
4999
5012
|
images.push({
|
|
5000
5013
|
key: key,
|
|
5001
|
-
uid: "-1",
|
|
5014
|
+
uid: "-1" + (imgIndex++),
|
|
5002
5015
|
url: ToolsUtil.getOssUrl(key),
|
|
5003
5016
|
});
|
|
5004
5017
|
}
|