@indfnd/common 1.0.40 → 1.0.42
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 +17 -0
- package/dist/ind-common.es.js +59 -19
- package/dist/ind-common.umd.cjs +38 -38
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
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.42](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.41...v1.0.42) (2024-08-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 角色权限管理优化 ([f900747](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/f9007478c068d9ae2e09c159afd5f8b1936309c3))
|
|
11
|
+
|
|
12
|
+
### [1.0.41](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.40...v1.0.41) (2024-08-21)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* 表单时间支持选分钟 ([4621ab2](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/4621ab2e44a89875238ccdb2c5ffaffa162ae6de))
|
|
18
|
+
* 优化代码 ([13d459b](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/13d459bd0a91bedc610ea92f09646e9161b9a58b))
|
|
19
|
+
* 支持时间选择不使用确认 ([0464aa4](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/0464aa4522d873db9e83e2bf9895f7829a4b7eb2))
|
|
20
|
+
* form支持时间 ([900a7de](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/900a7de50fba269e6aa3a6cf9f87b0dceea0e665))
|
|
21
|
+
|
|
5
22
|
### [1.0.40](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.39...v1.0.40) (2024-08-02)
|
|
6
23
|
|
|
7
24
|
|
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, getLocalStorage, getSessionStorage, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, listComTreeApi, listUserTreeApi, UC_ENUM, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, 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.41";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -48624,7 +48624,7 @@ var FormImpl = {
|
|
|
48624
48624
|
validateTmp.type = "number";
|
|
48625
48625
|
} else if (["checkbox", "treeselect", "fileUpload", "imgUpload"].includes(d.type) || "select" === d.type && ((_a = d.props) == null ? void 0 : _a.multiple)) {
|
|
48626
48626
|
validateTmp.type = "array";
|
|
48627
|
-
} else if (["datepicker"].includes(d.type)) {
|
|
48627
|
+
} else if (["datepicker", "timepicker"].includes(d.type)) {
|
|
48628
48628
|
const props = d.props;
|
|
48629
48629
|
const isRange = (_b = props == null ? void 0 : props.type) == null ? void 0 : _b.includes("range");
|
|
48630
48630
|
if (isRange) {
|
|
@@ -48793,7 +48793,7 @@ var FormImpl = {
|
|
|
48793
48793
|
});
|
|
48794
48794
|
}
|
|
48795
48795
|
_.forEach(this.fieldList, (d, idx) => {
|
|
48796
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
48796
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
48797
48797
|
let itemInner;
|
|
48798
48798
|
if (d.render) {
|
|
48799
48799
|
itemInner = d.render(h, d, this.form);
|
|
@@ -49033,6 +49033,44 @@ var FormImpl = {
|
|
|
49033
49033
|
});
|
|
49034
49034
|
break;
|
|
49035
49035
|
}
|
|
49036
|
+
case "timepicker": {
|
|
49037
|
+
itemInner = h("TimePicker", {
|
|
49038
|
+
ref: d.formKey,
|
|
49039
|
+
props: {
|
|
49040
|
+
...d.props || {},
|
|
49041
|
+
type: ((_i = d.props) == null ? void 0 : _i.type) || "time",
|
|
49042
|
+
value: this.form[d.formKey]
|
|
49043
|
+
},
|
|
49044
|
+
attrs: {
|
|
49045
|
+
confirm: true,
|
|
49046
|
+
...d.props || {}
|
|
49047
|
+
},
|
|
49048
|
+
on: {
|
|
49049
|
+
"on-change": (val) => {
|
|
49050
|
+
var _a2, _b2, _c2;
|
|
49051
|
+
this.val = val;
|
|
49052
|
+
if (((_a2 = d.props) == null ? void 0 : _a2.confirm) === false) {
|
|
49053
|
+
this.form[d.formKey] = this.val instanceof Date ? dayjs(this.val).format(((_b2 = d.props) == null ? void 0 : _b2.format) ? (_c2 = d.props) == null ? void 0 : _c2.format : "HH:mm:ss") : this.val;
|
|
49054
|
+
this.$emit("input", this.form);
|
|
49055
|
+
const required = d.required instanceof Function ? d.required(this.form) : d.required;
|
|
49056
|
+
if (required) {
|
|
49057
|
+
this.$refs.form.validateField(d.formKey);
|
|
49058
|
+
}
|
|
49059
|
+
}
|
|
49060
|
+
},
|
|
49061
|
+
"on-ok": () => {
|
|
49062
|
+
var _a2, _b2;
|
|
49063
|
+
this.form[d.formKey] = this.val instanceof Date ? dayjs(this.val).format(((_a2 = d.props) == null ? void 0 : _a2.format) ? (_b2 = d.props) == null ? void 0 : _b2.format : "HH:mm:ss") : this.val;
|
|
49064
|
+
this.$emit("input", this.form);
|
|
49065
|
+
const required = d.required instanceof Function ? d.required(this.form) : d.required;
|
|
49066
|
+
if (required) {
|
|
49067
|
+
this.$refs.form.validateField(d.formKey);
|
|
49068
|
+
}
|
|
49069
|
+
}
|
|
49070
|
+
}
|
|
49071
|
+
});
|
|
49072
|
+
break;
|
|
49073
|
+
}
|
|
49036
49074
|
case "treeselect": {
|
|
49037
49075
|
itemInner = h("IndTreeSelect", {
|
|
49038
49076
|
ref: d.formKey,
|
|
@@ -49136,11 +49174,11 @@ var FormImpl = {
|
|
|
49136
49174
|
default: {
|
|
49137
49175
|
let text = this.form[d.formKey];
|
|
49138
49176
|
if (d.enumKey) {
|
|
49139
|
-
text = (
|
|
49177
|
+
text = (_k = (_j = this.enumData[d.enumKey]) == null ? void 0 : _j.enumData) == null ? void 0 : _k[text];
|
|
49140
49178
|
} else if (d.enumList && d.enumList.length) {
|
|
49141
|
-
text = (
|
|
49179
|
+
text = (_m = (_l = d.enumList) == null ? void 0 : _l.find(({ K }) => K === text)) == null ? void 0 : _m.V;
|
|
49142
49180
|
} else if (d.enumData) {
|
|
49143
|
-
text = (
|
|
49181
|
+
text = (_n = d.enumData) == null ? void 0 : _n[text];
|
|
49144
49182
|
}
|
|
49145
49183
|
if (d.dateFormat) {
|
|
49146
49184
|
text = formatDate$1(text);
|
|
@@ -66027,14 +66065,6 @@ var render$1 = function() {
|
|
|
66027
66065
|
}, expression: "formData" } })], 1)])], 1);
|
|
66028
66066
|
};
|
|
66029
66067
|
var staticRenderFns$1 = [];
|
|
66030
|
-
const defaultForm = {
|
|
66031
|
-
roleId: "",
|
|
66032
|
-
authModule: "",
|
|
66033
|
-
authType: "",
|
|
66034
|
-
roleName: "",
|
|
66035
|
-
roleNote: "",
|
|
66036
|
-
seq: 1
|
|
66037
|
-
};
|
|
66038
66068
|
const __vue2_script$1 = {
|
|
66039
66069
|
name: "IndRoleAuth",
|
|
66040
66070
|
props: {
|
|
@@ -66045,6 +66075,14 @@ const __vue2_script$1 = {
|
|
|
66045
66075
|
},
|
|
66046
66076
|
data() {
|
|
66047
66077
|
return {
|
|
66078
|
+
defaultForm: {
|
|
66079
|
+
roleId: "",
|
|
66080
|
+
authModule: this.authModule,
|
|
66081
|
+
authType: this.authType,
|
|
66082
|
+
roleName: "",
|
|
66083
|
+
roleNote: "",
|
|
66084
|
+
seq: 1
|
|
66085
|
+
},
|
|
66048
66086
|
dataApi: getRoleListApi,
|
|
66049
66087
|
tableLoading: false,
|
|
66050
66088
|
searchParams: {
|
|
@@ -66118,7 +66156,7 @@ const __vue2_script$1 = {
|
|
|
66118
66156
|
defaultUserId: [],
|
|
66119
66157
|
authTreeData: [],
|
|
66120
66158
|
defaultAuthId: [],
|
|
66121
|
-
formData: {
|
|
66159
|
+
formData: {},
|
|
66122
66160
|
formFields: [
|
|
66123
66161
|
{
|
|
66124
66162
|
formKey: "authModule",
|
|
@@ -66127,7 +66165,8 @@ const __vue2_script$1 = {
|
|
|
66127
66165
|
required: true,
|
|
66128
66166
|
props: {
|
|
66129
66167
|
maxlength: "64"
|
|
66130
|
-
}
|
|
66168
|
+
},
|
|
66169
|
+
disabled: () => true
|
|
66131
66170
|
},
|
|
66132
66171
|
{
|
|
66133
66172
|
formKey: "authType",
|
|
@@ -66136,7 +66175,8 @@ const __vue2_script$1 = {
|
|
|
66136
66175
|
required: true,
|
|
66137
66176
|
props: {
|
|
66138
66177
|
maxlength: "64"
|
|
66139
|
-
}
|
|
66178
|
+
},
|
|
66179
|
+
disabled: () => true
|
|
66140
66180
|
},
|
|
66141
66181
|
{
|
|
66142
66182
|
formKey: "roleName",
|
|
@@ -66320,7 +66360,7 @@ const __vue2_script$1 = {
|
|
|
66320
66360
|
},
|
|
66321
66361
|
addRole() {
|
|
66322
66362
|
this.modelType = "add";
|
|
66323
|
-
this.formData = { ...defaultForm };
|
|
66363
|
+
this.formData = { ...this.defaultForm };
|
|
66324
66364
|
this.formData.seq = this.tableDataSize + 1;
|
|
66325
66365
|
this.$refs.basicForm.resetFields();
|
|
66326
66366
|
this.showEditRole = true;
|
|
@@ -66379,7 +66419,7 @@ const __vue2_script$1 = {
|
|
|
66379
66419
|
const api = this.modelType == "add" ? addRoleApi : updateRoleApi;
|
|
66380
66420
|
await api(this.formData);
|
|
66381
66421
|
this.$Message.success("\u6210\u529F");
|
|
66382
|
-
this.formData = { ...defaultForm };
|
|
66422
|
+
this.formData = { ...this.defaultForm };
|
|
66383
66423
|
this.saveRoleLoading = false;
|
|
66384
66424
|
this.showEditRole = false;
|
|
66385
66425
|
setTimeout(() => {
|