@indfnd/common-mobile 0.0.12 → 0.0.13
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 +8 -0
- package/dist/ind-common-mobile.es.js +37 -9
- package/dist/ind-common-mobile.umd.cjs +32 -32
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.13](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.12...v0.0.13) (2024-03-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 单位切换round一下 ([a1e92a5](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/a1e92a5644d3073c2951d42967deb2481b1d0e63))
|
|
11
|
+
* 默认样式修改 ([6a28764](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/6a2876461b50942bb437d7ae752d42e02ddd717e))
|
|
12
|
+
|
|
5
13
|
### [0.0.12](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.11...v0.0.12) (2024-03-21)
|
|
6
14
|
|
|
7
15
|
|
|
@@ -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.12";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -43282,7 +43282,7 @@ var classnames$1 = { exports: {} };
|
|
|
43282
43282
|
var classnames = classnames$1.exports;
|
|
43283
43283
|
const THEME_KEY = "ind-theme";
|
|
43284
43284
|
function getDefaultTheme() {
|
|
43285
|
-
return getLocalStorage(THEME_KEY) || "
|
|
43285
|
+
return getLocalStorage(THEME_KEY) || "ind-default-theme";
|
|
43286
43286
|
}
|
|
43287
43287
|
function doChangeTheme(theme) {
|
|
43288
43288
|
var _a, _b;
|
|
@@ -44723,10 +44723,10 @@ const __vue2_script$h = {
|
|
|
44723
44723
|
_.forEach(unitFields, (ddd) => {
|
|
44724
44724
|
if (this.dataUnit == "X" && this.pageUnit == "WZ") {
|
|
44725
44725
|
let t2 = _.round(parseFloat(dd[ddd]), 6);
|
|
44726
|
-
dd[ddd] = isNaN(t2) ?
|
|
44726
|
+
dd[ddd] = _.round(isNaN(t2) ? 0 : t2 * 5, 6);
|
|
44727
44727
|
} else if (this.dataUnit == "WZ" && this.pageUnit == "X") {
|
|
44728
44728
|
let t2 = _.round(parseFloat(dd[ddd]), 6);
|
|
44729
|
-
dd[ddd] = isNaN(t2) ?
|
|
44729
|
+
dd[ddd] = _.round(isNaN(t2) ? 0 : t2 / 5, 6);
|
|
44730
44730
|
}
|
|
44731
44731
|
});
|
|
44732
44732
|
});
|
|
@@ -63666,7 +63666,7 @@ var render$6 = function() {
|
|
|
63666
63666
|
var _vm = this;
|
|
63667
63667
|
var _h = _vm.$createElement;
|
|
63668
63668
|
var _c = _vm._self._c || _h;
|
|
63669
|
-
return _c("div", { staticClass: "app-page" }, [_c("van-nav-bar", { attrs: { "fixed": true, "placeholder": true, "safe-area-inset-top": true, "title": "\u6211\u7684" } }), _c("van-cell-group", { attrs: { "title": "\u4E2A\u4EBA\u4FE1\u606F" } }, [_c("van-cell", { attrs: { "title": "\u7528\u6237\u540D", "value": _vm.user.userName } })], 1), _c("van-cell-group", { attrs: { "title": "\u5E94\u7528" } }, [_c("van-cell", { attrs: { "title": "\u540D\u79F0", "value": _vm.app.name } }), _c("van-cell", { attrs: { "title": "\u7F16\u7801", "value": _vm.app.appId } })], 1), _c("van-cell-group", { attrs: { "title": "\u901A\u7528" } }, [_c("van-cell", { directives: [{ name: "permission", rawName: "v-permission", value: ["12210071"], expression: "['12210071']" }], attrs: { "title": "v-permission=['12210071']", "value": _vm.app.version } }), _c("van-cell", { directives: [{ name: "permission", rawName: "v-permission", value: ["1221001111"], expression: "['1221001111']" }], attrs: { "title": "v-permission=['1221001111']", "value": _vm.app.version } }), _c("van-cell", { attrs: { "title": "\u8BBE\u7F6E", "is-link": "", "to": "/setting" } })], 1), _c("tabbar")], 1);
|
|
63669
|
+
return _c("div", { staticClass: "app-page" }, [_c("van-nav-bar", { attrs: { "fixed": true, "placeholder": true, "safe-area-inset-top": true, "title": "\u6211\u7684" } }), _c("van-cell-group", { attrs: { "title": "\u4E2A\u4EBA\u4FE1\u606F" } }, [_c("van-cell", { attrs: { "title": "\u7528\u6237\u540D", "value": _vm.user.userName } })], 1), _c("van-cell-group", { attrs: { "title": "\u5E94\u7528" } }, [_c("van-cell", { attrs: { "title": "\u540D\u79F0", "value": _vm.app.name } }), _c("van-cell", { attrs: { "title": "\u7F16\u7801", "value": _vm.app.appId } }), _c("van-cell", { attrs: { "title": "\u5E94\u7528\u7248\u672C", "value": JSON.parse(_vm.app.extendProps.extendProps).appVersion } }), _c("van-cell", { attrs: { "title": "\u914D\u7F6E\u7248\u672C", "value": JSON.parse(_vm.app.extendProps.extendProps).profileVersion } })], 1), _c("van-cell-group", { attrs: { "title": "\u901A\u7528" } }, [_c("van-cell", { directives: [{ name: "permission", rawName: "v-permission", value: ["12210071"], expression: "['12210071']" }], attrs: { "title": "v-permission=['12210071']", "value": _vm.app.version } }), _c("van-cell", { directives: [{ name: "permission", rawName: "v-permission", value: ["1221001111"], expression: "['1221001111']" }], attrs: { "title": "v-permission=['1221001111']", "value": _vm.app.version } }), _c("van-cell", { attrs: { "title": "\u8BBE\u7F6E", "is-link": "", "to": "/setting" } })], 1), _c("tabbar")], 1);
|
|
63670
63670
|
};
|
|
63671
63671
|
var staticRenderFns$6 = [];
|
|
63672
63672
|
const __vue2_script$6 = {
|
|
@@ -63724,7 +63724,6 @@ const __vue2_script$5 = {
|
|
|
63724
63724
|
},
|
|
63725
63725
|
methods: {
|
|
63726
63726
|
getImg(uri) {
|
|
63727
|
-
console.log(location.origin + uri);
|
|
63728
63727
|
return location.origin + uri;
|
|
63729
63728
|
}
|
|
63730
63729
|
}
|
|
@@ -63752,8 +63751,12 @@ var render$4 = function() {
|
|
|
63752
63751
|
var _vm = this;
|
|
63753
63752
|
var _h = _vm.$createElement;
|
|
63754
63753
|
var _c = _vm._self._c || _h;
|
|
63755
|
-
return _c("div", { staticStyle: { "height": "100%" }, on: { "
|
|
63756
|
-
return _vm
|
|
63754
|
+
return _c("div", { staticStyle: { "height": "100%" }, on: { "touchstart": function($event) {
|
|
63755
|
+
return _vm.ontouchstart(_vm.item);
|
|
63756
|
+
}, "touchmove": function($event) {
|
|
63757
|
+
return _vm.ontouchmove(_vm.item);
|
|
63758
|
+
}, "touchend": function($event) {
|
|
63759
|
+
return _vm.ontouchend(_vm.item);
|
|
63757
63760
|
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticStyle: { "text-align": "center" } }, [_c("van-badge", { attrs: { "color": "#999" }, scopedSlots: _vm._u([{ key: "content", fn: function() {
|
|
63758
63761
|
return [_c("van-icon", { staticStyle: { "line-height": "1.5" }, attrs: { "name": _vm.editStatus } })];
|
|
63759
63762
|
}, proxy: true }], null, false, 1274909998) }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1)], 1) : _c("div", { staticStyle: { "text-align": "center" } }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1), _c("div", { staticStyle: { "text-align": "center" } }, [_c("div", [_vm._v(_vm._s(_vm.item.meta.title))])])]);
|
|
@@ -63774,6 +63777,16 @@ const __vue2_script$4 = {
|
|
|
63774
63777
|
getImg(uri) {
|
|
63775
63778
|
console.log(location.origin + uri);
|
|
63776
63779
|
return location.origin + uri;
|
|
63780
|
+
},
|
|
63781
|
+
ontouchstart(item2) {
|
|
63782
|
+
item2.move = false;
|
|
63783
|
+
},
|
|
63784
|
+
ontouchmove(item2) {
|
|
63785
|
+
item2.move = true;
|
|
63786
|
+
},
|
|
63787
|
+
ontouchend(item2) {
|
|
63788
|
+
if (!item2.move)
|
|
63789
|
+
this.$emit("touchend", item2);
|
|
63777
63790
|
}
|
|
63778
63791
|
}
|
|
63779
63792
|
};
|
|
@@ -68904,9 +68917,9 @@ function filterMicroPermissionList(microType, permissionList = []) {
|
|
|
68904
68917
|
function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, root: root2 }) {
|
|
68905
68918
|
if (!list2)
|
|
68906
68919
|
return;
|
|
68920
|
+
let appInfo = getSessionStorage("appInfo");
|
|
68907
68921
|
list2.forEach((item2) => {
|
|
68908
68922
|
const { permissionId, label: title4, appId, pid, icon, type: type2, uri, permissionValue } = item2;
|
|
68909
|
-
let appInfo = getSessionStorage("appInfo");
|
|
68910
68923
|
if (appId != appInfo.appId)
|
|
68911
68924
|
return;
|
|
68912
68925
|
const name2 = permissionValue;
|
|
@@ -69037,6 +69050,21 @@ async function renderRoutes({ router, store: store2, microType, allowPermissionL
|
|
|
69037
69050
|
await store2.dispatch("getUserInfo");
|
|
69038
69051
|
await store2.dispatch("getAppListData");
|
|
69039
69052
|
const permissionData = await store2.dispatch("getPermissionData");
|
|
69053
|
+
const sessionVersion = JSON.parse(getSessionStorage("appInfo").extendProps.extendProps);
|
|
69054
|
+
const localVersion = getLocalStorage("versionInfo");
|
|
69055
|
+
if (localVersion) {
|
|
69056
|
+
if (sessionVersion.appVersion > localVersion.appVersion) {
|
|
69057
|
+
setLocalStorage("versionInfo", sessionVersion);
|
|
69058
|
+
let currentURL = window.location.href;
|
|
69059
|
+
let url = new URL(currentURL);
|
|
69060
|
+
let params = new URLSearchParams(url.search);
|
|
69061
|
+
params.set("v", sessionVersion.appVersion);
|
|
69062
|
+
url.search = params.toString();
|
|
69063
|
+
window.location.href = url.href;
|
|
69064
|
+
}
|
|
69065
|
+
} else {
|
|
69066
|
+
setLocalStorage("versionInfo", sessionVersion);
|
|
69067
|
+
}
|
|
69040
69068
|
router.options = _.cloneDeep(routerOptionsBak);
|
|
69041
69069
|
const microPermissionData = filterMicroPermissionList(microType, permissionData);
|
|
69042
69070
|
const dynamicRouters = generatorDynamicRouter(microPermissionData);
|