xyvcard-wechat-auth 0.0.26 → 0.0.28

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.
@@ -12,7 +12,7 @@ declare class AuthApiImpl {
12
12
  updateUser(data: any): Promise<ResponseData<any>>;
13
13
  updatePwd(encodeOldPwd: string, encodeNewPwd: string): Promise<ResponseData<any>>;
14
14
  deptTree(deptId?: string): Promise<ResponseData<any>>;
15
- jobTree(): Promise<ResponseData<any>>;
15
+ jobTree(jobId?: string): Promise<ResponseData<any>>;
16
16
  updateUserInfo(data: UpdateUserReq): Promise<ResponseData<UserInfo>>;
17
17
  replaceBindphone(data: PhoneNumberReq): Promise<ResponseData<boolean>>;
18
18
  findUserInfo(data: UserInfoReq): Promise<ResponseData<UserInfo>>;
@@ -111,11 +111,12 @@ class AuthApiImpl {
111
111
  });
112
112
  }
113
113
  // 职务Tree
114
- jobTree() {
114
+ jobTree(jobId) {
115
115
  const query = {
116
116
  tenant: db.getUserTenant(),
117
117
  roleType: "job",
118
- hasRoleType: true
118
+ hasRoleType: true,
119
+ excludeId: jobId
119
120
  };
120
121
  return request({
121
122
  url: "/v1/rbac/role/treelist",
@@ -56,3 +56,14 @@ export interface UpdateUserReq {
56
56
  export interface UserInfoReq {
57
57
  tenant?: string;
58
58
  }
59
+ export interface RoleModel {
60
+ roleId?: string;
61
+ roleName?: string;
62
+ roleType?: string;
63
+ }
64
+ export interface DeptModel {
65
+ deptId?: string;
66
+ deptName?: string;
67
+ deptType?: string;
68
+ parentId?: string;
69
+ }
@@ -27,6 +27,11 @@ Component({
27
27
  type: String,
28
28
  value: "#fff"
29
29
  },
30
+ // 字体色
31
+ color: {
32
+ type: String,
33
+ value: "#6B7280"
34
+ },
30
35
  // 是否有阴影
31
36
  searchStyle: {
32
37
  type: String,
@@ -36,6 +41,11 @@ Component({
36
41
  focus: {
37
42
  type: Boolean,
38
43
  value: false
44
+ },
45
+ // 搜索图标颜色
46
+ iconColor: {
47
+ type: String,
48
+ value: ""
39
49
  }
40
50
  },
41
51
  /**
@@ -1,6 +1,6 @@
1
1
  <view class="auth-search-box" style="{{ searchStyle }}">
2
- <image src="{{ resourceUrl + '/icon_image/icon_search.png' }}" class="search-icon"></image>
3
- <input class="search-input" style="background-color: {{ backColor }}; width: {{ isSearchBtn ? '60%' : '100%' }}; {{ isSearchBtn ? '' : 'padding-right: 20px' }}" focus="{{ focus }}" placeholder="{{ placeholder }}" disabled="{{ disabled }}" value="{{ likeName }}" bindinput="handleInput" bind:tap="handleTap" />
2
+ <image src="{{ resourceUrl + '/icon_image/icon_search.png' }}" class="search-icon" style="filter: drop-shadow(0 0 0 {{ iconColor }});"></image>
3
+ <input class="search-input" style="color: {{ color }}; background-color: {{ backColor }}; width: {{ isSearchBtn ? '60%' : '100%' }}; {{ isSearchBtn ? '' : 'padding-right: 20px' }}" focus="{{ focus }}" placeholder="{{ placeholder }}" disabled="{{ disabled }}" value="{{ likeName }}" bindinput="handleInput" bind:tap="handleTap" />
4
4
  <view class="search-btn" wx:if="{{ isSearchBtn }}">
5
5
  <slot></slot>
6
6
  </view>
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export type { RequestData, ResponseData, RequestHeader, CustomEvent } from "./ap
9
9
  export { Dict } from "./api/index";
10
10
  export { EntryDict, EnumDict } from "./api/dicts";
11
11
  export { authApi } from "./api/auth/index";
12
- export type { LoginReq, LoginRes, PhoneNumberReq, RefreshTokenReq, TokenRes, RolesPerms, UserInfo, UpdateUserReq, UserInfoReq } from "./api/auth/types";
12
+ export type { LoginReq, LoginRes, PhoneNumberReq, RefreshTokenReq, TokenRes, RolesPerms, UserInfo, UpdateUserReq, UserInfoReq, RoleModel, DeptModel } from "./api/auth/types";
13
13
  export { dictApi } from "./api/dict/index";
14
14
  export type { Entry, DictEntryModel, DictEntryReq } from "./api/dict/types";
15
15
  export { fileApi } from "./api/files/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-wechat-auth",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",