@indfnd/common-mobile 1.0.84 → 1.0.86
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
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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
|
+
### [1.0.86](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.85...v1.0.86) (2026-04-17)
|
|
6
|
+
|
|
7
|
+
### [1.0.85](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.84...v1.0.85) (2026-04-17)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* 兼容开发环境 ([391b104](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/391b104f0acbf65ee3295df0011984c55936e344))
|
|
13
|
+
|
|
5
14
|
### [1.0.84](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.83...v1.0.84) (2026-04-16)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
5
5
|
const name$1 = "@indfnd/common-mobile";
|
|
6
|
-
const version$2 = "1.0.
|
|
6
|
+
const version$2 = "1.0.85";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -2185,7 +2185,8 @@ var FormImpl = {
|
|
|
2185
2185
|
bizType: d.bizType
|
|
2186
2186
|
},
|
|
2187
2187
|
on: {
|
|
2188
|
-
click: () => {
|
|
2188
|
+
click: (event) => {
|
|
2189
|
+
event.stopPropagation();
|
|
2189
2190
|
if (d.btnClick && d.btnClick instanceof Function) {
|
|
2190
2191
|
d.btnClick(this.form);
|
|
2191
2192
|
}
|
|
@@ -3933,14 +3934,22 @@ var render$z = function() {
|
|
|
3933
3934
|
}, "doSearch": _vm.doSearch, "doSearchFilter": _vm.doSearchFilter } }), _vm._t("navSlot"), _vm.topMsg ? _c("van-notice-bar", { staticClass: "ind-flex-no-shrink", attrs: { "mode": "closeable" } }, [_vm._v(_vm._s(_vm.topMsg))]) : _vm._e(), _c("div", { class: ["ind-page", _vm.enableLoadMore || !_vm.disablePage ? "loadmore" : ""] }, [_c("IndMLoadMore", { attrs: { "enableLoadMore": _vm.enableLoadMore, "disablePage": _vm.disablePage, "pageLen": _vm.enableLoadMore || !_vm.disablePage ? 10 : 999999, "datas": _vm.displayRows, "is-finished": _vm.isFinished, "loading": _vm.loadingComp }, on: { "load-more": _vm.loadMore }, scopedSlots: _vm._u([{ key: "item", fn: function(ref) {
|
|
3934
3935
|
var item2 = ref.item;
|
|
3935
3936
|
return [_vm._t("item", function() {
|
|
3936
|
-
return [_c("
|
|
3937
|
+
return [_vm.openBatchAudit ? [_c("div", { staticClass: "ind-checkbox-pannel ind-flex", on: { "click": function($event) {
|
|
3938
|
+
return _vm.toggleSelect(item2);
|
|
3939
|
+
} } }, [_c("div", { staticClass: "ind-page-checkbox-wrapper ind-vcenter ind-flex-no-shrink" }, [_c("div", { staticClass: "checkbox-icon-content ind-vcenter ind-flex-grow" }, [!_vm.curSelRowIds.includes(item2[_vm.rowKey]) ? _c("Icon", { attrs: { "type": "ios-square-outline" } }) : _vm._e(), _vm.curSelRowIds.includes(item2[_vm.rowKey]) ? _c("Icon", { attrs: { "type": "ios-checkbox-outline" } }) : _vm._e()], 1), _c("div", { staticClass: "checkbox-padding-area ind-flex-no-shrink" })]), _c("IndMForm", { attrs: { "fieldList": _vm.formFieldList, "cardBtns": _vm.cardBtns, "flowBusiPk": _vm.flowBusiPk, "value": item2, "formType": "card" }, on: { "show-track": function($event) {
|
|
3940
|
+
return _vm.$emit("show-track", $event);
|
|
3941
|
+
} } })], 1)] : _c("IndMForm", { attrs: { "fieldList": _vm.formFieldList, "cardBtns": _vm.cardBtns, "flowBusiPk": _vm.flowBusiPk, "value": item2, "formType": "card" }, on: { "show-track": function($event) {
|
|
3937
3942
|
return _vm.$emit("show-track", $event);
|
|
3938
3943
|
} } })];
|
|
3939
3944
|
}, { "item": item2 })];
|
|
3940
3945
|
} }], null, true) })], 1), _vm._t("bottom", function() {
|
|
3941
|
-
return [_c("div", { ref: "bottomRef", staticClass: "ind-bottom-info ind-bottom-btn" }, [_c("div", { staticClass: "ind-flex" }, [_vm.bottomMsg ? [_vm._v(" " + _vm._s(_vm.bottomMsg) + " ")] : [_vm._v(" \u5171\xA0"), _c("span", { staticClass: "ind-orange ind-large" }, [_vm._v(_vm._s(_vm.total || _vm.displayRows.length || 0))]), _vm._v("\xA0\u6761\u6570\u636E ")]], 2), _vm.bottom || _vm.pageBtnText || _vm.btnText ? _c("div", { staticClass: "ind-flex ind-space-between ind-mt" }, [_c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": function($event) {
|
|
3946
|
+
return [_c("div", { ref: "bottomRef", staticClass: "ind-bottom-info ind-bottom-btn" }, [_c("div", { staticClass: "ind-flex" }, [_vm.openBatchAudit ? _c("div", { staticClass: "ind-flex ind-flex-no-shrink ind-checkbox-bottom", staticStyle: { "margin-right": "10px" }, on: { "click": _vm.toggleCheckAll } }, [!_vm.allCheck ? _c("Icon", { staticStyle: { "margin-top": "-3px" }, attrs: { "type": "ios-square-outline", "size": "22" } }) : _vm._e(), _vm.allCheck ? _c("Icon", { staticStyle: { "margin-top": "-3px" }, attrs: { "type": "ios-checkbox-outline", "size": "22" } }) : _vm._e(), _vm._v(" \u5168\u9009 ")], 1) : _vm._e(), _vm.bottomMsg ? [_vm._v(" " + _vm._s(_vm.bottomMsg) + " ")] : [_vm._v(" \u5171\xA0"), _c("span", { staticClass: "ind-orange ind-large" }, [_vm._v(_vm._s(_vm.total || _vm.displayRows.length || 0))]), _vm._v("\xA0\u6761\u6570\u636E ")], _vm.openBatchAudit && _vm.curSelRowIds.length ? [_vm._v(" \uFF0C\u5DF2\u9009\u62E9\xA0"), _c("span", { staticClass: "ind-orange ind-large" }, [_vm._v(_vm._s(_vm.curSelRowIds.length))]), _vm._v("\xA0\u6761\u6570\u636E ")] : _vm._e()], 2), _vm.bottom || _vm.pageBtnText || _vm.btnText || _vm.openBatchAudit ? _c("div", { staticClass: "ind-flex ind-space-between ind-mt" }, [!_vm.noAddButton && !_vm.openBatchAudit ? _c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": function($event) {
|
|
3942
3947
|
return _vm.$emit("bottomClick");
|
|
3943
|
-
} } }, [_vm._v(" " + _vm._s(_vm.pageBtnText || _vm.btnText || "\u65B0\u589E") + " ")])
|
|
3948
|
+
} } }, [_vm._v(" " + _vm._s(_vm.pageBtnText || _vm.btnText || "\u65B0\u589E") + " ")]) : _vm._e(), _vm.openBatchAudit ? [_c("IndButton", { attrs: { "disabled": !_vm.curSelRowIds.length, "bizType": "reject" }, on: { "click": function($event) {
|
|
3949
|
+
return _vm.$emit("backBatch", _vm.curSelRowIds);
|
|
3950
|
+
} } }, [_vm._v(" " + _vm._s(_vm.backBtnText || "\u9A73\u56DE") + " ")]), _c("IndButton", { attrs: { "disabled": !_vm.curSelRowIds.length, "bizType": "primary" }, on: { "click": function($event) {
|
|
3951
|
+
return _vm.$emit("passBatch", _vm.curSelRowIds);
|
|
3952
|
+
} } }, [_vm._v(" " + _vm._s(_vm.passBtnText || "\u901A\u8FC7") + " ")])] : _vm._e()], 2) : _vm._e()])];
|
|
3944
3953
|
}), _c("IndMLoadingPanel", { attrs: { "loading": _vm.loadingComp || _vm.loading } }), _vm._t("default"), _vm.showTrack ? _c("flow-track", { attrs: { "value": _vm.logData }, on: { "close": function($event) {
|
|
3945
3954
|
return _vm.$emit("update:showTrack", false);
|
|
3946
3955
|
} } }) : _vm._e()], 2);
|
|
@@ -3997,7 +4006,12 @@ const __vue2_script$z = {
|
|
|
3997
4006
|
default: function() {
|
|
3998
4007
|
return !this.disablePage || this.enableLoadMore ? 10 : 999999;
|
|
3999
4008
|
}
|
|
4000
|
-
}
|
|
4009
|
+
},
|
|
4010
|
+
openBatchAudit: Boolean,
|
|
4011
|
+
rowKey: String,
|
|
4012
|
+
backBtnText: String,
|
|
4013
|
+
passBtnText: String,
|
|
4014
|
+
noAddButton: Boolean
|
|
4001
4015
|
},
|
|
4002
4016
|
data() {
|
|
4003
4017
|
return {
|
|
@@ -4020,7 +4034,8 @@ const __vue2_script$z = {
|
|
|
4020
4034
|
searchFormFields: [],
|
|
4021
4035
|
formFieldList: [],
|
|
4022
4036
|
subTable: [],
|
|
4023
|
-
searchVal: ""
|
|
4037
|
+
searchVal: "",
|
|
4038
|
+
curSelRowIds: []
|
|
4024
4039
|
};
|
|
4025
4040
|
},
|
|
4026
4041
|
created() {
|
|
@@ -4054,6 +4069,9 @@ const __vue2_script$z = {
|
|
|
4054
4069
|
}
|
|
4055
4070
|
},
|
|
4056
4071
|
computed: {
|
|
4072
|
+
allCheck() {
|
|
4073
|
+
return this.curSelRowIds.length && this.displayRows.length == this.curSelRowIds.length;
|
|
4074
|
+
},
|
|
4057
4075
|
displayRows() {
|
|
4058
4076
|
let currentRows = this.allData;
|
|
4059
4077
|
if (!this.disablePage) {
|
|
@@ -4118,6 +4136,30 @@ const __vue2_script$z = {
|
|
|
4118
4136
|
}
|
|
4119
4137
|
},
|
|
4120
4138
|
methods: {
|
|
4139
|
+
toggleCheckAll() {
|
|
4140
|
+
if (!this.allCheck) {
|
|
4141
|
+
this.curSelRowIds = this.displayRows.map((d) => {
|
|
4142
|
+
return d[this.rowKey];
|
|
4143
|
+
});
|
|
4144
|
+
} else {
|
|
4145
|
+
this.curSelRowIds = [];
|
|
4146
|
+
}
|
|
4147
|
+
},
|
|
4148
|
+
toggleSelect(row) {
|
|
4149
|
+
console.log(
|
|
4150
|
+
"this.curSelRowIds.includes(row[this.rowKey])",
|
|
4151
|
+
this.curSelRowIds.includes(row[this.rowKey])
|
|
4152
|
+
);
|
|
4153
|
+
if (this.curSelRowIds.includes(row[this.rowKey])) {
|
|
4154
|
+
let selClone = _.cloneDeep(this.curSelRowIds);
|
|
4155
|
+
_.remove(selClone, (d) => {
|
|
4156
|
+
return d == row[this.rowKey];
|
|
4157
|
+
});
|
|
4158
|
+
this.curSelRowIds = selClone;
|
|
4159
|
+
} else {
|
|
4160
|
+
this.curSelRowIds.push(row[this.rowKey]);
|
|
4161
|
+
}
|
|
4162
|
+
},
|
|
4121
4163
|
async loadMore() {
|
|
4122
4164
|
var _a, _b, _c;
|
|
4123
4165
|
console.log("\u5F00\u59CB\u52A0\u8F7D\u66F4\u591A\u6570\u636E", {
|
|
@@ -31674,7 +31716,7 @@ var directives = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
31674
31716
|
__proto__: null,
|
|
31675
31717
|
permission
|
|
31676
31718
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
31677
|
-
let isHb$1 = location.pathname.includes("scyxweb");
|
|
31719
|
+
let isHb$1 = location.pathname.includes("scyxweb") || location.host.includes("215.dev.yingxiao");
|
|
31678
31720
|
const rootRoute = {
|
|
31679
31721
|
name: config.rootRouteName,
|
|
31680
31722
|
path: "/",
|