jobsys-explore 4.0.9 → 4.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/.changeset/nice-seahorses-visit.md +5 -0
- package/.changeset/serious-sloths-smoke.md +5 -0
- package/CHANGELOG.md +31 -0
- package/components/form/ExDate.jsx +1 -1
- package/components/search/ExSearch.jsx +8 -1
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.js +24 -24
- package/dist/hooks.js.map +1 -1
- package/dist/jobsys-explore.cjs +2 -2
- package/dist/jobsys-explore.cjs.map +1 -1
- package/dist/jobsys-explore.js +46 -42
- package/dist/jobsys-explore.js.map +1 -1
- package/hooks/cipher.js +7 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# jobsys-explore
|
|
2
2
|
|
|
3
|
+
## 4.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- address
|
|
8
|
+
- add exPros parameter
|
|
9
|
+
- option fetch data only once
|
|
10
|
+
- add sm2 encrypt
|
|
11
|
+
- form expose fetchItem method
|
|
12
|
+
- fixed address modelValue
|
|
13
|
+
- fixed textInValue
|
|
14
|
+
- fixed textInValue
|
|
15
|
+
- add key_cn
|
|
16
|
+
- search watch model value
|
|
17
|
+
- e
|
|
18
|
+
|
|
19
|
+
## 4.0.10
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- address
|
|
24
|
+
- add exPros parameter
|
|
25
|
+
- option fetch data only once
|
|
26
|
+
- form expose fetchItem method
|
|
27
|
+
- fixed address modelValue
|
|
28
|
+
- fixed textInValue
|
|
29
|
+
- fixed textInValue
|
|
30
|
+
- add key_cn
|
|
31
|
+
- search watch model value
|
|
32
|
+
- e
|
|
33
|
+
|
|
3
34
|
## 4.0.9
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, nextTick, reactive, ref } from "vue"
|
|
1
|
+
import { defineComponent, nextTick, reactive, ref, watch } from "vue"
|
|
2
2
|
import { Button, Icon, Popup, Search } from "vant"
|
|
3
3
|
import { find, isArray, isFunction } from "lodash-es"
|
|
4
4
|
import { createExpand, createField, createQuick } from "./components"
|
|
@@ -74,6 +74,13 @@ export default defineComponent({
|
|
|
74
74
|
setup(props, { emit }) {
|
|
75
75
|
const componentValue = ref(props.modelValue)
|
|
76
76
|
|
|
77
|
+
watch(
|
|
78
|
+
() => props.modelValue,
|
|
79
|
+
() => {
|
|
80
|
+
componentValue.value = props.modelValue
|
|
81
|
+
},
|
|
82
|
+
)
|
|
83
|
+
|
|
77
84
|
const state = reactive({
|
|
78
85
|
queryForm: {}, // 搜索表单
|
|
79
86
|
quickColumns: [], //快速检索项
|
package/dist/hooks.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-4756607f.cjs"),r=require("dayjs"),o=require("lodash-es");require("axios");require("vant");function i(){return s.sm2_exports}function c(e,u){return s.sm32(e,u)}function a(e,u,n){return s.sm4_exports.encrypt(e,u,n)}function F(e,u,n){return s.sm4_exports.encrypt(e,u,n)}function m(e,u){return u?r(e,u):r(e)}function t(e,u){return e?(r.isDayjs(e)||(e=r(e)),e.format(u||"YYYY-MM-DD HH:mm")):""}function S(e){return e?(r.isDayjs(e)||(e=r(e)),e.unix()):""}function f(e,u){return e&&o.isString(e)&&(e=parseInt(e)),e<9999999999&&(e*=1e3),t(new Date(e),u)}exports.STATUS=s.STATUS;exports._configStatus=s._configStatus;exports.useCache=s.useCache;exports.useFetch=s.useFetch;exports.useFindLabelsFromPath=s.useFindLabelsFromPath;exports.useFindParentValues=s.useFindParentValues;exports.useFindTextsFromPath=s.useFindTextsFromPath;exports.useFindTextsInValues=s.useFindTextsInValues;exports.useFormFail=s.useFormFail;exports.useFormFormat=s.useFormFormat;exports.useHiddenForm=s.useHiddenForm;exports.useProcessStatus=s.useProcessStatus;exports.useProcessStatusSuccess=s.useProcessStatusSuccess;exports.useTextFromOptionsValue=s.useTextFromOptionsValue;exports.useDateFormat=t;exports.useDateUnix=S;exports.useDayjs=m;exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-4756607f.cjs"),r=require("dayjs"),o=require("lodash-es");require("axios");require("vant");function i(e,u,n){return s.sm2_exports.doEncrypt(e,u,n)}function c(e,u){return s.sm32(e,u)}function a(e,u,n){return s.sm4_exports.encrypt(e,u,n)}function F(e,u,n){return s.sm4_exports.encrypt(e,u,n)}function m(e,u){return u?r(e,u):r(e)}function t(e,u){return e?(r.isDayjs(e)||(e=r(e)),e.format(u||"YYYY-MM-DD HH:mm")):""}function S(e){return e?(r.isDayjs(e)||(e=r(e)),e.unix()):""}function f(e,u){return e&&o.isString(e)&&(e=parseInt(e)),e<9999999999&&(e*=1e3),t(new Date(e),u)}exports.STATUS=s.STATUS;exports._configStatus=s._configStatus;exports.useCache=s.useCache;exports.useFetch=s.useFetch;exports.useFindLabelsFromPath=s.useFindLabelsFromPath;exports.useFindParentValues=s.useFindParentValues;exports.useFindTextsFromPath=s.useFindTextsFromPath;exports.useFindTextsInValues=s.useFindTextsInValues;exports.useFormFail=s.useFormFail;exports.useFormFormat=s.useFormFormat;exports.useHiddenForm=s.useHiddenForm;exports.useProcessStatus=s.useProcessStatus;exports.useProcessStatusSuccess=s.useProcessStatusSuccess;exports.useTextFromOptionsValue=s.useTextFromOptionsValue;exports.useDateFormat=t;exports.useDateUnix=S;exports.useDayjs=m;exports.useSm2Encrypt=i;exports.useSm3=c;exports.useSm4Decrypt=F;exports.useSm4Encrypt=a;exports.useTimestampFormat=f;
|
|
2
2
|
//# sourceMappingURL=hooks.cjs.map
|
package/dist/hooks.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.cjs","sources":["../hooks/cipher.js","../hooks/datetime.js"],"sourcesContent":["import { sm2, sm3, sm4 } from \"sm-crypto-v2\"\r\n\r\n/**\r\n *
|
|
1
|
+
{"version":3,"file":"hooks.cjs","sources":["../hooks/cipher.js","../hooks/datetime.js"],"sourcesContent":["import { sm2, sm3, sm4 } from \"sm-crypto-v2\"\r\n\r\n/**\r\n * 国密 sm2 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [cipherMode]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm2Encrypt(msg, key, cipherMode) {\r\n\treturn sm2.doEncrypt(msg, key, cipherMode)\r\n}\r\n\r\n/**\r\n * 国密 sm3 加密\r\n * @param msg\r\n * @param {Object} [options]\r\n * @return {*}\r\n */\r\nexport function useSm3(msg, options) {\r\n\treturn sm3(msg, options) // 杂凑\r\n}\r\n\r\n/**\r\n * 国密 sm4 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Encrypt(msg, key, options) {\r\n\treturn sm4.encrypt(msg, key, options)\r\n}\r\n\r\n/**\r\n * 国密 sm4 解密\r\n * @param encryptData\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Decrypt(encryptData, key, options) {\r\n\treturn sm4.encrypt(encryptData, key, options)\r\n}\r\n","import dayjs from \"dayjs\"\r\nimport { isString } from \"lodash-es\"\r\n\r\n/**\r\n * 根据格式创建 Dayjs 对象\r\n * @param {string|number} date\r\n * @param {string} [format] - 日期格式\r\n * @return {dayjs.Dayjs}\r\n */\r\nexport function useDayjs(date, format) {\r\n\treturn format ? dayjs(date, format) : dayjs(date)\r\n}\r\n\r\n/**\r\n * 格式化日期\r\n * @param {dayjs.Dayjs|Date} date\r\n * @param {string} format\r\n * @return {string}\r\n */\r\nexport function useDateFormat(date, format) {\r\n\tif (!date) {\r\n\t\treturn \"\"\r\n\t}\r\n\tif (!dayjs.isDayjs(date)) {\r\n\t\tdate = dayjs(date)\r\n\t}\r\n\r\n\treturn date.format(format || \"YYYY-MM-DD HH:mm\")\r\n}\r\n\r\n/**\r\n * 获取日期的 Unix 时间戳\r\n * @param {dayjs.Dayjs|Date} date\r\n * @return {number|string}\r\n */\r\nexport function useDateUnix(date) {\r\n\tif (!date) {\r\n\t\treturn \"\"\r\n\t}\r\n\tif (!dayjs.isDayjs(date)) {\r\n\t\tdate = dayjs(date)\r\n\t}\r\n\r\n\treturn date.unix()\r\n}\r\n\r\n/**\r\n * 根据时间戳格式化日期\r\n * @param timestamp 时间戳\r\n * @param [format] 日期格式\r\n * @return {string}\r\n */\r\nexport function useTimestampFormat(timestamp, format) {\r\n\tif (timestamp && isString(timestamp)) {\r\n\t\ttimestamp = parseInt(timestamp)\r\n\t}\r\n\r\n\tif (timestamp < 9999999999) {\r\n\t\ttimestamp *= 1000\r\n\t}\r\n\r\n\treturn useDateFormat(new Date(timestamp), format)\r\n}\r\n"],"names":["useSm2Encrypt","msg","key","cipherMode","sm2","useSm3","options","sm3","useSm4Encrypt","sm4","useSm4Decrypt","encryptData","useDayjs","date","format","dayjs","useDateFormat","useDateUnix","useTimestampFormat","timestamp","isString"],"mappings":"mMASO,SAASA,EAAcC,EAAKC,EAAKC,EAAY,CACnD,OAAOC,EAAG,YAAC,UAAUH,EAAKC,EAAKC,CAAU,CAC1C,CAQO,SAASE,EAAOJ,EAAKK,EAAS,CACpC,OAAOC,EAAG,KAACN,EAAKK,CAAO,CACxB,CASO,SAASE,EAAcP,EAAKC,EAAKI,EAAS,CAChD,OAAOG,EAAG,YAAC,QAAQR,EAAKC,EAAKI,CAAO,CACrC,CASO,SAASI,EAAcC,EAAaT,EAAKI,EAAS,CACxD,OAAOG,EAAG,YAAC,QAAQE,EAAaT,EAAKI,CAAO,CAC7C,CClCO,SAASM,EAASC,EAAMC,EAAQ,CACtC,OAAOA,EAASC,EAAMF,EAAMC,CAAM,EAAIC,EAAMF,CAAI,CACjD,CAQO,SAASG,EAAcH,EAAMC,EAAQ,CAC3C,OAAKD,GAGAE,EAAM,QAAQF,CAAI,IACtBA,EAAOE,EAAMF,CAAI,GAGXA,EAAK,OAAOC,GAAU,kBAAkB,GANvC,EAOT,CAOO,SAASG,EAAYJ,EAAM,CACjC,OAAKA,GAGAE,EAAM,QAAQF,CAAI,IACtBA,EAAOE,EAAMF,CAAI,GAGXA,EAAK,KAAM,GANV,EAOT,CAQO,SAASK,EAAmBC,EAAWL,EAAQ,CACrD,OAAIK,GAAaC,WAASD,CAAS,IAClCA,EAAY,SAASA,CAAS,GAG3BA,EAAY,aACfA,GAAa,KAGPH,EAAc,IAAI,KAAKG,CAAS,EAAGL,CAAM,CACjD"}
|
package/dist/hooks.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { s as o, f as t, g as
|
|
2
|
-
import { S as Y, _, u as g, a as
|
|
1
|
+
import { s as o, f as t, g as e } from "./index-438db37d.js";
|
|
2
|
+
import { S as Y, _, u as g, a as E, j as H, k as V, b, i as I, e as M, d as U, l as k, m as w, c as A, h as C } from "./index-438db37d.js";
|
|
3
3
|
import u from "dayjs";
|
|
4
4
|
import { isString as i } from "lodash-es";
|
|
5
5
|
import "axios";
|
|
6
6
|
import "vant";
|
|
7
|
-
function
|
|
8
|
-
return o;
|
|
7
|
+
function S(s, r, n) {
|
|
8
|
+
return o.doEncrypt(s, r, n);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function y(s, r) {
|
|
11
11
|
return t(s, r);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
return
|
|
13
|
+
function x(s, r, n) {
|
|
14
|
+
return e.encrypt(s, r, n);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return
|
|
16
|
+
function D(s, r, n) {
|
|
17
|
+
return e.encrypt(s, r, n);
|
|
18
18
|
}
|
|
19
19
|
function l(s, r) {
|
|
20
20
|
return r ? u(s, r) : u(s);
|
|
@@ -35,21 +35,21 @@ export {
|
|
|
35
35
|
a as useDateFormat,
|
|
36
36
|
T as useDateUnix,
|
|
37
37
|
l as useDayjs,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
38
|
+
E as useFetch,
|
|
39
|
+
H as useFindLabelsFromPath,
|
|
40
|
+
V as useFindParentValues,
|
|
41
|
+
b as useFindTextsFromPath,
|
|
42
|
+
I as useFindTextsInValues,
|
|
43
|
+
M as useFormFail,
|
|
44
|
+
U as useFormFormat,
|
|
45
|
+
k as useHiddenForm,
|
|
46
|
+
w as useProcessStatus,
|
|
47
|
+
A as useProcessStatusSuccess,
|
|
48
|
+
S as useSm2Encrypt,
|
|
49
|
+
y as useSm3,
|
|
50
|
+
D as useSm4Decrypt,
|
|
51
|
+
x as useSm4Encrypt,
|
|
52
|
+
C as useTextFromOptionsValue,
|
|
53
53
|
h as useTimestampFormat
|
|
54
54
|
};
|
|
55
55
|
//# sourceMappingURL=hooks.js.map
|
package/dist/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sources":["../hooks/cipher.js","../hooks/datetime.js"],"sourcesContent":["import { sm2, sm3, sm4 } from \"sm-crypto-v2\"\r\n\r\n/**\r\n *
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":["../hooks/cipher.js","../hooks/datetime.js"],"sourcesContent":["import { sm2, sm3, sm4 } from \"sm-crypto-v2\"\r\n\r\n/**\r\n * 国密 sm2 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [cipherMode]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm2Encrypt(msg, key, cipherMode) {\r\n\treturn sm2.doEncrypt(msg, key, cipherMode)\r\n}\r\n\r\n/**\r\n * 国密 sm3 加密\r\n * @param msg\r\n * @param {Object} [options]\r\n * @return {*}\r\n */\r\nexport function useSm3(msg, options) {\r\n\treturn sm3(msg, options) // 杂凑\r\n}\r\n\r\n/**\r\n * 国密 sm4 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Encrypt(msg, key, options) {\r\n\treturn sm4.encrypt(msg, key, options)\r\n}\r\n\r\n/**\r\n * 国密 sm4 解密\r\n * @param encryptData\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Decrypt(encryptData, key, options) {\r\n\treturn sm4.encrypt(encryptData, key, options)\r\n}\r\n","import dayjs from \"dayjs\"\r\nimport { isString } from \"lodash-es\"\r\n\r\n/**\r\n * 根据格式创建 Dayjs 对象\r\n * @param {string|number} date\r\n * @param {string} [format] - 日期格式\r\n * @return {dayjs.Dayjs}\r\n */\r\nexport function useDayjs(date, format) {\r\n\treturn format ? dayjs(date, format) : dayjs(date)\r\n}\r\n\r\n/**\r\n * 格式化日期\r\n * @param {dayjs.Dayjs|Date} date\r\n * @param {string} format\r\n * @return {string}\r\n */\r\nexport function useDateFormat(date, format) {\r\n\tif (!date) {\r\n\t\treturn \"\"\r\n\t}\r\n\tif (!dayjs.isDayjs(date)) {\r\n\t\tdate = dayjs(date)\r\n\t}\r\n\r\n\treturn date.format(format || \"YYYY-MM-DD HH:mm\")\r\n}\r\n\r\n/**\r\n * 获取日期的 Unix 时间戳\r\n * @param {dayjs.Dayjs|Date} date\r\n * @return {number|string}\r\n */\r\nexport function useDateUnix(date) {\r\n\tif (!date) {\r\n\t\treturn \"\"\r\n\t}\r\n\tif (!dayjs.isDayjs(date)) {\r\n\t\tdate = dayjs(date)\r\n\t}\r\n\r\n\treturn date.unix()\r\n}\r\n\r\n/**\r\n * 根据时间戳格式化日期\r\n * @param timestamp 时间戳\r\n * @param [format] 日期格式\r\n * @return {string}\r\n */\r\nexport function useTimestampFormat(timestamp, format) {\r\n\tif (timestamp && isString(timestamp)) {\r\n\t\ttimestamp = parseInt(timestamp)\r\n\t}\r\n\r\n\tif (timestamp < 9999999999) {\r\n\t\ttimestamp *= 1000\r\n\t}\r\n\r\n\treturn useDateFormat(new Date(timestamp), format)\r\n}\r\n"],"names":["useSm2Encrypt","msg","key","cipherMode","sm2","useSm3","options","sm3","useSm4Encrypt","sm4","useSm4Decrypt","encryptData","useDayjs","date","format","dayjs","useDateFormat","useDateUnix","useTimestampFormat","timestamp","isString"],"mappings":";;;;;;AASO,SAASA,EAAcC,GAAKC,GAAKC,GAAY;AACnD,SAAOC,EAAI,UAAUH,GAAKC,GAAKC,CAAU;AAC1C;AAQO,SAASE,EAAOJ,GAAKK,GAAS;AACpC,SAAOC,EAAIN,GAAKK,CAAO;AACxB;AASO,SAASE,EAAcP,GAAKC,GAAKI,GAAS;AAChD,SAAOG,EAAI,QAAQR,GAAKC,GAAKI,CAAO;AACrC;AASO,SAASI,EAAcC,GAAaT,GAAKI,GAAS;AACxD,SAAOG,EAAI,QAAQE,GAAaT,GAAKI,CAAO;AAC7C;AClCO,SAASM,EAASC,GAAMC,GAAQ;AACtC,SAAOA,IAASC,EAAMF,GAAMC,CAAM,IAAIC,EAAMF,CAAI;AACjD;AAQO,SAASG,EAAcH,GAAMC,GAAQ;AAC3C,SAAKD,KAGAE,EAAM,QAAQF,CAAI,MACtBA,IAAOE,EAAMF,CAAI,IAGXA,EAAK,OAAOC,KAAU,kBAAkB,KANvC;AAOT;AAOO,SAASG,EAAYJ,GAAM;AACjC,SAAKA,KAGAE,EAAM,QAAQF,CAAI,MACtBA,IAAOE,EAAMF,CAAI,IAGXA,EAAK,KAAM,KANV;AAOT;AAQO,SAASK,EAAmBC,GAAWL,GAAQ;AACrD,SAAIK,KAAaC,EAASD,CAAS,MAClCA,IAAY,SAASA,CAAS,IAG3BA,IAAY,eACfA,KAAa,MAGPH,EAAc,IAAI,KAAKG,CAAS,GAAGL,CAAM;AACjD;"}
|