mcrm-mobile 1.7.7 → 1.7.9
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/es/data-process/index.js +54 -54
- package/es/directive/index.js +3 -1
- package/es/index.js +1 -1
- package/es/menu-jump/index.js +244 -238
- package/lib/data-process/index.js +54 -54
- package/lib/directive/index.js +3 -1
- package/lib/index.js +1 -1
- package/lib/mcrm-mobile.js +302 -294
- package/lib/mcrm-mobile.min.js +2 -2
- package/lib/menu-jump/index.js +244 -238
- package/package.json +158 -158
- package/vetur/attributes.json +186 -186
- package/vetur/tags.json +55 -55
- package/vetur/web-types.json +566 -566
package/es/data-process/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Wuner
|
|
3
|
-
* @date 2021/9/28
|
|
4
|
-
* @Description: 数据加解密
|
|
1
|
+
/**
|
|
2
|
+
* @author Wuner
|
|
3
|
+
* @date 2021/9/28
|
|
4
|
+
* @Description: 数据加解密
|
|
5
5
|
*/
|
|
6
6
|
import Vue from "vue";
|
|
7
7
|
import { strEnc, strDec } from "./des.js";
|
|
@@ -16,11 +16,11 @@ var KEY1 = "TWFrV29d0R3JlYXRBKZ2Fpbg==";
|
|
|
16
16
|
var IV1 = "VWVuY1xhta1EyMmYyRcXNwcA==";
|
|
17
17
|
var KEY = "TUNSTWQ1jcm1BQkNEIRUZHSA==";
|
|
18
18
|
var IV = "VGRtYlmdsalAxMWUxBcHJraw==";
|
|
19
|
-
/**
|
|
20
|
-
* AES加密
|
|
21
|
-
* @param content 需加密的文本
|
|
22
|
-
* @param key 密钥
|
|
23
|
-
* @param iv 偏移量
|
|
19
|
+
/**
|
|
20
|
+
* AES加密
|
|
21
|
+
* @param content 需加密的文本
|
|
22
|
+
* @param key 密钥
|
|
23
|
+
* @param iv 偏移量
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
var aesEncrypt = function aesEncrypt(content, key, iv) {
|
|
@@ -36,11 +36,11 @@ var aesEncrypt = function aesEncrypt(content, key, iv) {
|
|
|
36
36
|
});
|
|
37
37
|
return encrypted.toString(); //返回的是base64格式的密文
|
|
38
38
|
};
|
|
39
|
-
/**
|
|
40
|
-
* AES加密(拦截器)
|
|
41
|
-
* @param content 需加密的文本
|
|
42
|
-
* @param key 密钥
|
|
43
|
-
* @param iv 偏移量
|
|
39
|
+
/**
|
|
40
|
+
* AES加密(拦截器)
|
|
41
|
+
* @param content 需加密的文本
|
|
42
|
+
* @param key 密钥
|
|
43
|
+
* @param iv 偏移量
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
46
|
|
|
@@ -57,10 +57,10 @@ var aesEncryptHttp = function aesEncryptHttp(content, key, iv) {
|
|
|
57
57
|
});
|
|
58
58
|
return encrypted.toString(); //返回的是base64格式的密文
|
|
59
59
|
};
|
|
60
|
-
/**
|
|
61
|
-
* 菜单跳转加密函数
|
|
62
|
-
* @param {string} data - 需要加密的数据, 传过来前先进行 JSON.stringify(data);
|
|
63
|
-
* @param {string} key - 加密使用的 key
|
|
60
|
+
/**
|
|
61
|
+
* 菜单跳转加密函数
|
|
62
|
+
* @param {string} data - 需要加密的数据, 传过来前先进行 JSON.stringify(data);
|
|
63
|
+
* @param {string} key - 加密使用的 key
|
|
64
64
|
*/
|
|
65
65
|
|
|
66
66
|
|
|
@@ -77,10 +77,10 @@ var aesEncryptBusiness = function aesEncryptBusiness(data, key) {
|
|
|
77
77
|
|
|
78
78
|
return hexStr;
|
|
79
79
|
};
|
|
80
|
-
/**
|
|
81
|
-
* 菜单跳转加密函数
|
|
82
|
-
* @param {string} encrypted - 加密的数据;
|
|
83
|
-
* @param {string} key - 加密使用的 key
|
|
80
|
+
/**
|
|
81
|
+
* 菜单跳转加密函数
|
|
82
|
+
* @param {string} encrypted - 加密的数据;
|
|
83
|
+
* @param {string} key - 加密使用的 key
|
|
84
84
|
*/
|
|
85
85
|
|
|
86
86
|
|
|
@@ -94,11 +94,11 @@ var aesDecryptBusiness = function aesDecryptBusiness(encrypted, key) {
|
|
|
94
94
|
});
|
|
95
95
|
return CryptoJS.enc.Utf8.stringify(decrypt);
|
|
96
96
|
};
|
|
97
|
-
/**
|
|
98
|
-
* AES解密
|
|
99
|
-
* @param content 密文
|
|
100
|
-
* @param key 密钥
|
|
101
|
-
* @param iv 偏移量
|
|
97
|
+
/**
|
|
98
|
+
* AES解密
|
|
99
|
+
* @param content 密文
|
|
100
|
+
* @param key 密钥
|
|
101
|
+
* @param iv 偏移量
|
|
102
102
|
*/
|
|
103
103
|
|
|
104
104
|
|
|
@@ -116,11 +116,11 @@ var aesDecrypt = function aesDecrypt(content, key, iv) {
|
|
|
116
116
|
});
|
|
117
117
|
return decrypted.toString(CryptoJS.enc.Utf8);
|
|
118
118
|
};
|
|
119
|
-
/**
|
|
120
|
-
* AES解密(拦截器)
|
|
121
|
-
* @param content 需加密的文本
|
|
122
|
-
* @param key 密钥
|
|
123
|
-
* @param iv 偏移量
|
|
119
|
+
/**
|
|
120
|
+
* AES解密(拦截器)
|
|
121
|
+
* @param content 需加密的文本
|
|
122
|
+
* @param key 密钥
|
|
123
|
+
* @param iv 偏移量
|
|
124
124
|
*/
|
|
125
125
|
|
|
126
126
|
|
|
@@ -138,30 +138,30 @@ var aesDecryptHttp = function aesDecryptHttp(content, key, iv) {
|
|
|
138
138
|
});
|
|
139
139
|
return decrypted.toString(CryptoJS.enc.Utf8);
|
|
140
140
|
};
|
|
141
|
-
/**
|
|
142
|
-
* DES解密
|
|
143
|
-
* @param content 密文
|
|
144
|
-
* @param keys 密钥
|
|
141
|
+
/**
|
|
142
|
+
* DES解密
|
|
143
|
+
* @param content 密文
|
|
144
|
+
* @param keys 密钥
|
|
145
145
|
*/
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
var desDecrypt = function desDecrypt(content, keys) {
|
|
149
149
|
return strDec(content, keys[0], keys[1], keys[2]);
|
|
150
150
|
};
|
|
151
|
-
/**
|
|
152
|
-
* DES加密
|
|
153
|
-
* @param content 需加密的文本
|
|
154
|
-
* @param keys 密钥
|
|
151
|
+
/**
|
|
152
|
+
* DES加密
|
|
153
|
+
* @param content 需加密的文本
|
|
154
|
+
* @param keys 密钥
|
|
155
155
|
*/
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
var desEncrypt = function desEncrypt(content, keys) {
|
|
159
159
|
return strEnc(content, keys[0], keys[1], keys[2]);
|
|
160
160
|
};
|
|
161
|
-
/**
|
|
162
|
-
* base64加密
|
|
163
|
-
* @param content
|
|
164
|
-
* @returns {*}
|
|
161
|
+
/**
|
|
162
|
+
* base64加密
|
|
163
|
+
* @param content
|
|
164
|
+
* @returns {*}
|
|
165
165
|
*/
|
|
166
166
|
|
|
167
167
|
|
|
@@ -169,10 +169,10 @@ var base64Encrypt = function base64Encrypt(content) {
|
|
|
169
169
|
var words = CryptoJS.enc.Utf8.parse(content);
|
|
170
170
|
return CryptoJS.enc.Base64.stringify(words);
|
|
171
171
|
};
|
|
172
|
-
/**
|
|
173
|
-
* base64解密
|
|
174
|
-
* @param content
|
|
175
|
-
* @returns {*}
|
|
172
|
+
/**
|
|
173
|
+
* base64解密
|
|
174
|
+
* @param content
|
|
175
|
+
* @returns {*}
|
|
176
176
|
*/
|
|
177
177
|
|
|
178
178
|
|
|
@@ -180,18 +180,18 @@ var base64Decrypt = function base64Decrypt(content) {
|
|
|
180
180
|
var words = CryptoJS.enc.Base64.parse(content);
|
|
181
181
|
return CryptoJS.enc.Utf8.stringify(words);
|
|
182
182
|
};
|
|
183
|
-
/**
|
|
184
|
-
* 方舟加密
|
|
185
|
-
* @param content 需要加密对文本
|
|
183
|
+
/**
|
|
184
|
+
* 方舟加密
|
|
185
|
+
* @param content 需要加密对文本
|
|
186
186
|
*/
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
export var arkEncrypt = function arkEncrypt(content) {
|
|
190
190
|
return encodeBase64ForSec(content);
|
|
191
191
|
};
|
|
192
|
-
/**
|
|
193
|
-
* 方舟解密
|
|
194
|
-
* @param content 需要解密对文本
|
|
192
|
+
/**
|
|
193
|
+
* 方舟解密
|
|
194
|
+
* @param content 需要解密对文本
|
|
195
195
|
*/
|
|
196
196
|
|
|
197
197
|
var arkDecrypt = function arkDecrypt(content) {
|
package/es/directive/index.js
CHANGED
|
@@ -67,7 +67,9 @@ var buriedPoint = {
|
|
|
67
67
|
2001514: "网格通-管理员",
|
|
68
68
|
2001516: "网格通-销售经理",
|
|
69
69
|
2001517: "网格通-网格长",
|
|
70
|
-
2001520: "网格通-社区经理"
|
|
70
|
+
2001520: "网格通-社区经理",
|
|
71
|
+
2001523: "网格通-商客经理",
|
|
72
|
+
2001522: "网格通-装维人员"
|
|
71
73
|
};
|
|
72
74
|
|
|
73
75
|
if (isBuriedPoint || buriedPointLevel === "2" || buriedPointLevel === 2 || buriedPointLevel === "1" && menuCode || buriedPointLevel === 1 && menuCode) {
|
package/es/index.js
CHANGED
|
@@ -91,7 +91,7 @@ import Tag from './tag';
|
|
|
91
91
|
import Toast from './toast';
|
|
92
92
|
import TreeSelect from './tree-select';
|
|
93
93
|
import Uploader from './uploader';
|
|
94
|
-
var version = '1.7.
|
|
94
|
+
var version = '1.7.9';
|
|
95
95
|
var components = [ActionSheet, AddressPicker, Api, Badge, Biz, Button, Calendar, Card, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, CommonUtils, CountDown, DataProcess, DatePicker, DatetimePicker, Dialog, Directive, Divider, Drag, DropdownItem, DropdownMenu, Empty, Field, GoodsAction, GoodsActionButton, GoodsActionIcon, Grid, GridItem, Http, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, List, Loading, Local, Menu, MenuIcon, MenuJump, Menus, NavBar, NoticeBar, Notify, Overlay, Pagination, Panel, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rank, Rate, Row, SafeKeyboard, Search, Session, ShareSheet, Sidebar, SidebarItem, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, TableColumn, Tabs, Tag, Toast, TreeSelect, Uploader];
|
|
96
96
|
|
|
97
97
|
var install = function install(Vue) {
|