@indfnd/common 1.0.21 → 1.0.23
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 +15 -0
- package/dist/ind-common.es.js +15 -8
- package/dist/ind-common.umd.cjs +3 -3
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/src/styles/components/auth.less +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
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.23](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.21...v1.0.23) (2024-07-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 权限管理-权限下拉框支持可搜索 ([2579d06](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/2579d06df2b99dd18c53751e91a36fe150790031))
|
|
11
|
+
* 移动端表格组件合计行逻辑处理 ([3db4fa3](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/3db4fa3f5480445c73edef749af6907965901f01))
|
|
12
|
+
|
|
13
|
+
### [1.0.22](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.21...v1.0.22) (2024-07-12)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* 移动端表格组件合计行逻辑处理 ([3db4fa3](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/3db4fa3f5480445c73edef749af6907965901f01))
|
|
19
|
+
|
|
5
20
|
### [1.0.21](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.20...v1.0.21) (2024-07-11)
|
|
6
21
|
|
|
7
22
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Draw
|
|
|
2
2
|
import { isNil, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, getLocalStorage, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, listUserTreeApi, UC_ENUM, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
const name$1 = "@indfnd/common";
|
|
5
|
-
const version = "1.0.
|
|
5
|
+
const version = "1.0.22";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -55243,7 +55243,7 @@ const __vue2_script$$ = {
|
|
|
55243
55243
|
addCalcRuleMap(sumCalcRuleMap, col.isSum, col.field || col.key);
|
|
55244
55244
|
});
|
|
55245
55245
|
sumCols.forEach((col) => {
|
|
55246
|
-
if (!(col.field || col.key) in sumData)
|
|
55246
|
+
if (!((col.field || col.key) in sumData))
|
|
55247
55247
|
sumData[col.field || col.key] = 0;
|
|
55248
55248
|
});
|
|
55249
55249
|
this.rowDataFiltered.forEach((d) => {
|
|
@@ -55252,8 +55252,8 @@ const __vue2_script$$ = {
|
|
|
55252
55252
|
return;
|
|
55253
55253
|
let field = dd.field || dd.key;
|
|
55254
55254
|
let value = d[field];
|
|
55255
|
-
if (
|
|
55256
|
-
sumData[field] = (sumData[field] || 0) + value;
|
|
55255
|
+
if (!this.isNullOrNaN(value)) {
|
|
55256
|
+
sumData[field] = (sumData[field] || 0) + parseFloat(value);
|
|
55257
55257
|
}
|
|
55258
55258
|
});
|
|
55259
55259
|
});
|
|
@@ -55279,6 +55279,9 @@ const __vue2_script$$ = {
|
|
|
55279
55279
|
this.topRows = this.pinnedTopRowDataWithUnit;
|
|
55280
55280
|
}
|
|
55281
55281
|
}, 5),
|
|
55282
|
+
isNullOrNaN(value) {
|
|
55283
|
+
return typeof value === "object" || isNaN(value);
|
|
55284
|
+
},
|
|
55282
55285
|
async renderTreeData(val) {
|
|
55283
55286
|
this.treeData = _.some(val, (d) => {
|
|
55284
55287
|
var _a, _b;
|
|
@@ -65901,7 +65904,7 @@ var render$1 = function() {
|
|
|
65901
65904
|
var _c = _vm._self._c || _h;
|
|
65902
65905
|
return _c("IndPageView", [_c("Row", { staticClass: "row-contain", attrs: { "gutter": 16 } }, [_c("Col", { attrs: { "span": "8" } }, [_c("IndTable", { ref: "table", attrs: { "disablePage": "", "columns": _vm.tableColumns, "dataApi": _vm.dataApi, "search-params": _vm.searchParams, "rowKey": "roleId", "auto-refresh": "" }, on: { "on-data-load": _vm.tableDataLoad, "on-select-change": _vm.tableSelectChange }, scopedSlots: _vm._u([{ key: "buttons", fn: function() {
|
|
65903
65906
|
return [_c("IndButton", { attrs: { "bizType": "table" }, on: { "click": _vm.addRole } }, [_vm._v("\u65B0\u589E")])];
|
|
65904
|
-
}, proxy: true }]) })], 1), _c("Col", { attrs: { "span": "16" } }, [_c("IndLoadingPanel", { staticClass: "ind-flex-column", attrs: { "loading": _vm.userAuthLoading } }, [_c("div", { staticClass: "ind-flex-no-shrink important-tip" }, [_c("Icon", { attrs: { "type": "md-information-circle" } }), _c("span", { attrs: { "name": "importanttip" } }, [_vm._v("\u5F53\u524D\u9009\u4E2D\u89D2\u8272\uFF1A"), _c("span", { staticClass: "ind-blue" }, [_vm._v(_vm._s(_vm.selectedRole ? _vm.selectedRole.roleName : ""))])])], 1), _c("div", { staticClass: "ind-flex-grow content" }, [_c("Row", { attrs: { "gutter": 16 } }, [_c("Col", { attrs: { "span": "12" } }, [!_vm.userAuthLoading ? _c("IndTree", { ref: "userTree", attrs: { "data": _vm.userTreeData, "default-value": _vm.defaultUserId, "multiple": "", "show-checkbox": "", "defaultExpandLevel": 1, "isShowHeader": true, "treeName": "\u7CFB\u7EDF\u7528\u6237\uFF1A[\u90E8\u95E8(\u5DF2\u8BBE\u4EBA\u6570/\u603B\u4EBA\u6570)] \u3001[\u7528\u6237(\u89D2\u82721,\u89D2\u82722...)]" } }) : _vm._e()], 1), _c("Col", { attrs: { "span": "12" } }, [_c("IndLoadingPanel", { staticClass: "ind-flex-column", attrs: { "loading": _vm.authTreeLoading } }, [_c("div", { staticClass: "auth-type-select-container" }, [_c("Row", [_c("Col", [_c("span", { staticClass: "auth-type-label" }, [_vm._v("\u6743\u9650\u7C7B\u578B\uFF1A")])]), _c("Col", [_c("div", { staticClass: "auth-type-value" }, [_c("IndSelect", { model: { value: _vm.authDetaileTypeParam, callback: function($$v) {
|
|
65907
|
+
}, proxy: true }]) })], 1), _c("Col", { attrs: { "span": "16" } }, [_c("IndLoadingPanel", { staticClass: "ind-flex-column", attrs: { "loading": _vm.userAuthLoading } }, [_c("div", { staticClass: "ind-flex-no-shrink important-tip" }, [_c("Icon", { attrs: { "type": "md-information-circle" } }), _c("span", { attrs: { "name": "importanttip" } }, [_vm._v("\u5F53\u524D\u9009\u4E2D\u89D2\u8272\uFF1A"), _c("span", { staticClass: "ind-blue" }, [_vm._v(_vm._s(_vm.selectedRole ? _vm.selectedRole.roleName : ""))])])], 1), _c("div", { staticClass: "ind-flex-grow content" }, [_c("Row", { attrs: { "gutter": 16 } }, [_c("Col", { attrs: { "span": "12" } }, [!_vm.userAuthLoading ? _c("IndTree", { ref: "userTree", attrs: { "data": _vm.userTreeData, "default-value": _vm.defaultUserId, "multiple": "", "show-checkbox": "", "defaultExpandLevel": 1, "isShowHeader": true, "treeName": "\u7CFB\u7EDF\u7528\u6237\uFF1A[\u90E8\u95E8(\u5DF2\u8BBE\u4EBA\u6570/\u603B\u4EBA\u6570)] \u3001[\u7528\u6237(\u89D2\u82721,\u89D2\u82722...)]" } }) : _vm._e()], 1), _c("Col", { attrs: { "span": "12" } }, [_c("IndLoadingPanel", { staticClass: "ind-flex-column", attrs: { "loading": _vm.authTreeLoading } }, [_c("div", { staticClass: "auth-type-select-container" }, [_c("Row", [_c("Col", [_c("span", { staticClass: "auth-type-label" }, [_vm._v("\u6743\u9650\u7C7B\u578B\uFF1A")])]), _c("Col", [_c("div", { staticClass: "auth-type-value" }, [_c("IndSelect", { attrs: { "filterable": "" }, model: { value: _vm.authDetaileTypeParam, callback: function($$v) {
|
|
65905
65908
|
_vm.authDetaileTypeParam = $$v;
|
|
65906
65909
|
}, expression: "authDetaileTypeParam" } }, _vm._l(_vm.authDetaileTypes, function(type) {
|
|
65907
65910
|
return _c("IndOption", { key: type.value, attrs: { "value": type.value } }, [_vm._v(" " + _vm._s(type.label) + " ")]);
|
|
@@ -66044,7 +66047,9 @@ const __vue2_script$1 = {
|
|
|
66044
66047
|
},
|
|
66045
66048
|
watch: {
|
|
66046
66049
|
authDetaileTypeParam() {
|
|
66047
|
-
this.
|
|
66050
|
+
if (this.selectedRole) {
|
|
66051
|
+
this.reloadAuthTree();
|
|
66052
|
+
}
|
|
66048
66053
|
}
|
|
66049
66054
|
},
|
|
66050
66055
|
created() {
|
|
@@ -66352,7 +66357,7 @@ var render = function() {
|
|
|
66352
66357
|
var _vm = this;
|
|
66353
66358
|
var _h = _vm.$createElement;
|
|
66354
66359
|
var _c = _vm._self._c || _h;
|
|
66355
|
-
return _c("IndPageView", [_c("Row", { staticClass: "row-contain", attrs: { "gutter": 16 } }, [_c("Col", { attrs: { "span": "12" } }, [_c("IndTree", { ref: "userTree", attrs: { "dataApi": _vm.userTreeApi, "url-params": _vm.userTreeParams, "default-value": _vm.defaultUserId, "isShowHeader": true, "selectLeafOnly": true, "defaultExpandLevel": 1, "treeName": "\u7CFB\u7EDF\u7528\u6237" }, on: { "on-select-change": _vm.onSelectUserChange } })], 1), _c("Col", { attrs: { "span": "12" } }, [_c("IndLoadingPanel", { staticClass: "ind-flex-column", attrs: { "loading": _vm.userAuthLoading } }, [_c("div", { staticClass: "auth-type-select-container" }, [_c("Row", [_c("Col", [_c("span", { staticClass: "auth-type-label" }, [_vm._v("\u6743\u9650\u7C7B\u578B\uFF1A")])]), _c("Col", [_c("div", { staticClass: "auth-type-value" }, [_c("IndSelect", { model: { value: _vm.authDetaileTypeParam, callback: function($$v) {
|
|
66360
|
+
return _c("IndPageView", [_c("Row", { staticClass: "row-contain", attrs: { "gutter": 16 } }, [_c("Col", { attrs: { "span": "12" } }, [_c("IndTree", { ref: "userTree", attrs: { "dataApi": _vm.userTreeApi, "url-params": _vm.userTreeParams, "default-value": _vm.defaultUserId, "isShowHeader": true, "selectLeafOnly": true, "defaultExpandLevel": 1, "treeName": "\u7CFB\u7EDF\u7528\u6237" }, on: { "on-select-change": _vm.onSelectUserChange } })], 1), _c("Col", { attrs: { "span": "12" } }, [_c("IndLoadingPanel", { staticClass: "ind-flex-column", attrs: { "loading": _vm.userAuthLoading } }, [_c("div", { staticClass: "auth-type-select-container" }, [_c("Row", [_c("Col", [_c("span", { staticClass: "auth-type-label" }, [_vm._v("\u6743\u9650\u7C7B\u578B\uFF1A")])]), _c("Col", [_c("div", { staticClass: "auth-type-value" }, [_c("IndSelect", { attrs: { "filterable": "" }, model: { value: _vm.authDetaileTypeParam, callback: function($$v) {
|
|
66356
66361
|
_vm.authDetaileTypeParam = $$v;
|
|
66357
66362
|
}, expression: "authDetaileTypeParam" } }, _vm._l(_vm.authDetaileTypes, function(type) {
|
|
66358
66363
|
return _c("IndOption", { key: type.value, attrs: { "value": type.value } }, [_vm._v(_vm._s(type.label) + " ")]);
|
|
@@ -66394,7 +66399,9 @@ const __vue2_script = {
|
|
|
66394
66399
|
},
|
|
66395
66400
|
watch: {
|
|
66396
66401
|
authDetaileTypeParam() {
|
|
66397
|
-
this.
|
|
66402
|
+
if (this.selectUser) {
|
|
66403
|
+
this.reloadAuthTree();
|
|
66404
|
+
}
|
|
66398
66405
|
}
|
|
66399
66406
|
},
|
|
66400
66407
|
computed: {
|