address-book-shell 0.0.41 → 0.0.43
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 +5 -0
- package/README.md +26 -26
- package/lib/address-book-shell.common.js +454 -412
- package/lib/address-book-shell.umd.js +454 -412
- package/lib/address-book-shell.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/address-book/src/components/address-aside.vue +68 -54
- package/packages/address-book/src/components/address-content.vue +132 -94
- package/packages/address-book/src/constants.js +3 -1
- package/packages/address-book/src/index.vue +3 -3
- package/packages/address-book/src/utils/util.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
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
|
+
### 0.0.42 (2026-03-16)
|
|
6
|
+
|
|
7
|
+
* 新增全选之后滚动分页获取的新内容自动被勾选([6cb770e6](https://gitlab.cjsc.com.cn/cjsc-backend/address-book/-/commit/6cb770e6dea59c8ae77e426af8734cf16673ca0b))
|
|
8
|
+
* 优化表格滚动加载逻辑并添加节流处理([49bc95f3](https://gitlab.cjsc.com.cn/cjsc-backend/address-book/-/commit/49bc95f383bb746c1fb1220cca0ef9997472f7e8))
|
|
9
|
+
|
|
5
10
|
### 0.0.41 (2026-01-28)
|
|
6
11
|
|
|
7
12
|
* 解决一个控制台报错([2ffd66b1](https://gitlab.cjsc.com.cn/cjsc-backend/address-book/-/commit/2ffd66b1a577187a1d83093293ce17624010285f))
|
package/README.md
CHANGED
|
@@ -55,6 +55,29 @@ microserviceRequest是封装好的微服务请求方法,出于安全考虑,此
|
|
|
55
55
|
>
|
|
56
56
|
> 注意:地址本组件继承了element-ui库Dialog组件的全部属性,即Dialog属性全部适用本组件。
|
|
57
57
|
|
|
58
|
+
#### loginUserinfo
|
|
59
|
+
|
|
60
|
+
cas单点登录会回来的用户信息, **必传,否则地址本将无法正常使用**.
|
|
61
|
+
|
|
62
|
+
``` js
|
|
63
|
+
loginUserinfo: {
|
|
64
|
+
dept: "公司领导",
|
|
65
|
+
deptId: "D1",
|
|
66
|
+
email: "xxxx",
|
|
67
|
+
headImage: "xxxx",
|
|
68
|
+
hrId: "xxxx",
|
|
69
|
+
loginName: "xxxx",
|
|
70
|
+
phone: "12345678999",
|
|
71
|
+
post: "副总裁",
|
|
72
|
+
telNo: "0724-5678999",
|
|
73
|
+
type: 1,
|
|
74
|
+
userName: "xx",
|
|
75
|
+
}
|
|
76
|
+
<address-book-shell
|
|
77
|
+
:loginUserinfo='loginUserinfo'
|
|
78
|
+
/>
|
|
79
|
+
```
|
|
80
|
+
|
|
58
81
|
#### selected
|
|
59
82
|
|
|
60
83
|
地址本需要默认勾选人员,可以通过selected将需要勾选的数据传入地址本;
|
|
@@ -274,29 +297,6 @@ microserviceRequest是封装好的微服务请求方法,出于安全考虑,此
|
|
|
274
297
|
/>
|
|
275
298
|
```
|
|
276
299
|
|
|
277
|
-
#### loginUserinfo
|
|
278
|
-
|
|
279
|
-
cas单点登录会回来的用户信息,毕传,否则地址本将无法正常使用.
|
|
280
|
-
|
|
281
|
-
``` js
|
|
282
|
-
loginUserinfo: {
|
|
283
|
-
dept: "公司领导",
|
|
284
|
-
deptId: "D1",
|
|
285
|
-
email: "xxxx",
|
|
286
|
-
headImage: "xxxx",
|
|
287
|
-
hrId: "xxxx",
|
|
288
|
-
loginName: "xxxx",
|
|
289
|
-
phone: "12345678999",
|
|
290
|
-
post: "副总裁",
|
|
291
|
-
telNo: "0724-5678999",
|
|
292
|
-
type: 1,
|
|
293
|
-
userName: "xx",
|
|
294
|
-
}
|
|
295
|
-
<address-book-shell
|
|
296
|
-
:loginUserinfo='loginUserinfo'
|
|
297
|
-
/>
|
|
298
|
-
```
|
|
299
|
-
|
|
300
300
|
#### searchStatus
|
|
301
301
|
|
|
302
302
|
控制模糊搜索的权限,'1':搜索全部; '2':仅内部; '3':仅合作方。如果没有手动配置,地址本会根据使用场景自动分配权限:长江e家默认'1',web默认'2'
|
|
@@ -334,7 +334,7 @@ microserviceRequest是封装好的微服务请求方法,出于安全考虑,此
|
|
|
334
334
|
配置是否不允许选择领导,不配置或'0':默认有权限勾选领导;'1':禁止勾选领导;'query': 通过接口查询权限
|
|
335
335
|
|
|
336
336
|
```html
|
|
337
|
-
<!--
|
|
337
|
+
<!-- 通过接口查询是否有勾选行政及党务领导权限 -->
|
|
338
338
|
<address-book-shell
|
|
339
339
|
queryCannotChooseLeader='query'
|
|
340
340
|
/>
|
|
@@ -344,6 +344,7 @@ microserviceRequest是封装好的微服务请求方法,出于安全考虑,此
|
|
|
344
344
|
|
|
345
345
|
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
346
346
|
| :--- | :--- | :--- | :---: |:---: |
|
|
347
|
+
| loginUserinfo | cas登录返回的用户信息(必传) | Object | - | {} |
|
|
347
348
|
| selected | 地址本初始化默认选中的人员数据 | Array | - | [] |
|
|
348
349
|
| selectDisabled | 是否将selected传入的人员置灰不能再选 | Boolean | - | false |
|
|
349
350
|
| showOnlyNewPersonnel | 是否只展示新勾选的人员,默认值为0,取selectDisabled的值;值为1,展示全部人员;值为2,只展示新勾选的人员 | Number | 0,1,2 | 0 |
|
|
@@ -360,11 +361,10 @@ microserviceRequest是封装好的微服务请求方法,出于安全考虑,此
|
|
|
360
361
|
| footButton | 自定义功能按钮(check:查看当前名单;collect: 收藏当前名单;change: 本次变动名单) | Array | ['check','collect','change'] | ['check'] |
|
|
361
362
|
| top | 地址本 CSS 中的 margin-topz值 | string | - | 7vh |
|
|
362
363
|
| robotsList | 机器人数据,不传或传[],不会显示机器人模块 | Array | - | [] |
|
|
363
|
-
| loginUserinfo | cas登录返回的用户信息(必传) | Object | - | {} |
|
|
364
364
|
| searchStatus | 搜索框权限控制 | String | '1':搜索全部;'2':仅内部;'3':仅合作方 | 长江e家默认'1',web默认'2' |
|
|
365
365
|
| defaultActiveMenu | 菜单默认选中项 | String | - | |
|
|
366
366
|
| enableChangeConfirmation | 拉人超过5人 弹窗提示 | Boolean | - | false |
|
|
367
|
-
| queryCannotChooseLeader |
|
|
367
|
+
| queryCannotChooseLeader | 配置是否不允许选择行政及党务领导 | String | '0','1','query' | '0' |
|
|
368
368
|
|
|
369
369
|
### 组件事件
|
|
370
370
|
>
|