@indfnd/common-mobile 0.0.10 → 0.0.11
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/CHANGELOG.md +7 -0
- package/dist/ind-common-mobile.es.js +27 -5
- package/dist/ind-common-mobile.umd.cjs +13 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.11](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.10...v0.0.11) (2024-03-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* page-view支持单位切换 ([da0f84e](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/da0f84ee5c0a5c7841be8810cb741e2cc9e052d6))
|
|
11
|
+
|
|
5
12
|
### [0.0.10](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.9...v0.0.10) (2024-03-19)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, getHalfYear, formatDate, checkIdCard, ch
|
|
|
2
2
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
const name = "@indfnd/common-mobile";
|
|
5
|
-
const version$1 = "0.0.
|
|
5
|
+
const version$1 = "0.0.10";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -44402,7 +44402,7 @@ const __vue2_script$i = {
|
|
|
44402
44402
|
}
|
|
44403
44403
|
this.subTable.forEach((d) => {
|
|
44404
44404
|
let unitFields = _.filter(d.formFieldList, (dd) => dd.isSwitchUnit === "true").map(
|
|
44405
|
-
(
|
|
44405
|
+
(m) => m.id
|
|
44406
44406
|
);
|
|
44407
44407
|
if (d.dataField) {
|
|
44408
44408
|
let tmpData = dataSrc[d.dataField];
|
|
@@ -44455,7 +44455,7 @@ const __vue2_script$i = {
|
|
|
44455
44455
|
}
|
|
44456
44456
|
this.subTable.forEach((d) => {
|
|
44457
44457
|
let unitFields = _.filter(d.formFieldList, (dd) => dd.isSwitchUnit === "true").map(
|
|
44458
|
-
(
|
|
44458
|
+
(m) => m.id
|
|
44459
44459
|
);
|
|
44460
44460
|
if (d.dataField) {
|
|
44461
44461
|
let tmpData = dataSrc[d.dataField];
|
|
@@ -44666,15 +44666,37 @@ const __vue2_script$h = {
|
|
|
44666
44666
|
},
|
|
44667
44667
|
computed: {
|
|
44668
44668
|
displayRows() {
|
|
44669
|
+
let datas;
|
|
44669
44670
|
if (this.searchVal) {
|
|
44670
|
-
|
|
44671
|
+
datas = _.filter(this.rows, (d) => {
|
|
44671
44672
|
return _.some(this.formFieldList, (dd) => {
|
|
44672
44673
|
return _.includes(d[dd.formKey], this.searchVal);
|
|
44673
44674
|
});
|
|
44674
44675
|
}) || [];
|
|
44675
44676
|
} else {
|
|
44676
|
-
|
|
44677
|
+
datas = this.rows || [];
|
|
44677
44678
|
}
|
|
44679
|
+
let dataSrc = _.cloneDeep(datas);
|
|
44680
|
+
if (this.dataUnit == this.pageUnit) {
|
|
44681
|
+
return dataSrc;
|
|
44682
|
+
}
|
|
44683
|
+
let unitFields = _.filter(this.formFieldList, (dd) => dd.isSwitchUnit === "true").map(
|
|
44684
|
+
(m) => m.id
|
|
44685
|
+
);
|
|
44686
|
+
if (unitFields == null ? void 0 : unitFields.length) {
|
|
44687
|
+
_.forEach(dataSrc, (dd) => {
|
|
44688
|
+
_.forEach(unitFields, (ddd) => {
|
|
44689
|
+
if (this.dataUnit == "X" && this.pageUnit == "WZ") {
|
|
44690
|
+
let t2 = _.round(parseFloat(dd[ddd]), 6);
|
|
44691
|
+
dd[ddd] = isNaN(t2) ? null : t2 * 5;
|
|
44692
|
+
} else if (this.dataUnit == "WZ" && this.pageUnit == "X") {
|
|
44693
|
+
let t2 = _.round(parseFloat(dd[ddd]), 6);
|
|
44694
|
+
dd[ddd] = isNaN(t2) ? null : t2 / 5;
|
|
44695
|
+
}
|
|
44696
|
+
});
|
|
44697
|
+
});
|
|
44698
|
+
}
|
|
44699
|
+
return dataSrc;
|
|
44678
44700
|
}
|
|
44679
44701
|
},
|
|
44680
44702
|
methods: {
|