xyvcard-wechat-auth 0.0.28 → 0.0.29
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/dist/api/auth/index.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ declare class AuthApiImpl {
|
|
|
11
11
|
runAsUser(userId: string): Promise<ResponseData<any>>;
|
|
12
12
|
updateUser(data: any): Promise<ResponseData<any>>;
|
|
13
13
|
updatePwd(encodeOldPwd: string, encodeNewPwd: string): Promise<ResponseData<any>>;
|
|
14
|
-
deptTree(deptId?: string): Promise<ResponseData<any>>;
|
|
15
|
-
jobTree(jobId?: string): Promise<ResponseData<any>>;
|
|
14
|
+
deptTree(deptId?: string, tenant?: string): Promise<ResponseData<any>>;
|
|
15
|
+
jobTree(jobId?: string, tenant?: 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>>;
|
package/dist/api/auth/index.js
CHANGED
|
@@ -99,9 +99,9 @@ class AuthApiImpl {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
// 部门Tree
|
|
102
|
-
deptTree(deptId) {
|
|
102
|
+
deptTree(deptId, tenant) {
|
|
103
103
|
const query = {
|
|
104
|
-
tenant:
|
|
104
|
+
tenant: tenant ? tenant : config.tenant,
|
|
105
105
|
excludeId: deptId
|
|
106
106
|
};
|
|
107
107
|
return request({
|
|
@@ -111,9 +111,9 @@ class AuthApiImpl {
|
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
// 职务Tree
|
|
114
|
-
jobTree(jobId) {
|
|
114
|
+
jobTree(jobId, tenant) {
|
|
115
115
|
const query = {
|
|
116
|
-
tenant:
|
|
116
|
+
tenant: tenant ? tenant : config.tenant,
|
|
117
117
|
roleType: "job",
|
|
118
118
|
hasRoleType: true,
|
|
119
119
|
excludeId: jobId
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<view class="auth-search-box" style="{{ searchStyle }}">
|
|
2
|
-
<
|
|
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" />
|
|
2
|
+
<icon type="search" color="{{ iconColor }}" size="18" class="search-icon"></icon>
|
|
3
|
+
<input class="search-input" placeholder-style="color: {{ color }};" 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>
|