Skip to content

Commit abb4f54

Browse files
JavaLionLigitee-org
authored andcommitted
!125 ♥️发布 vue 版本 5.2.0 与 cloud 版本 2.2.0
Merge pull request !125 from 疯狂的狮子Li/dev
2 parents e354db7 + 71f4d36 commit abb4f54

File tree

18 files changed

+93
-85
lines changed

18 files changed

+93
-85
lines changed

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ VITE_APP_BASE_API = '/dev-api'
1111
VITE_APP_CONTEXT_PATH = '/'
1212

1313
# 监控地址
14-
VITE_APP_MONITRO_ADMIN = 'http://localhost:9090/admin/applications'
14+
VITE_APP_MONITOR_ADMIN = 'http://localhost:9090/admin/applications'
1515

1616
# SnailJob 控制台地址
1717
VITE_APP_SNAILJOB_ADMIN = 'http://localhost:8800/snail-job'

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ VITE_APP_ENV = 'production'
88
VITE_APP_CONTEXT_PATH = '/'
99

1010
# 监控地址
11-
VITE_APP_MONITRO_ADMIN = '/admin/applications'
11+
VITE_APP_MONITOR_ADMIN = '/admin/applications'
1212

1313
# SnailJob 控制台地址
1414
VITE_APP_SNAILJOB_ADMIN = '/snail-job'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ruoyi-vue-plus",
3-
"version": "5.2.0-BETA",
3+
"version": "5.2.0",
44
"description": "RuoYi-Vue-Plus多租户管理系统",
55
"author": "LionLi",
66
"license": "MIT",
@@ -30,7 +30,7 @@
3030
"diagram-js": "12.3.0",
3131
"didi": "9.0.2",
3232
"echarts": "5.5.0",
33-
"element-plus": "2.7.2",
33+
"element-plus": "2.7.5",
3434
"file-saver": "2.0.5",
3535
"fuse.js": "7.0.0",
3636
"highlight.js": "11.9.0",

src/api/system/social/auth.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import request from '@/utils/request';
22

33
// 绑定账号
4-
export function authBinding(source: string) {
4+
export function authBinding(source: string, tenantId: string) {
55
return request({
66
url: '/auth/binding/' + source,
7-
method: 'get'
7+
method: 'get',
8+
params: {
9+
tenantId: tenantId,
10+
domain: window.location.host
11+
}
812
});
913
}
1014

src/api/system/user/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export interface UserQuery extends PageQuery {
2626
*/
2727
export interface UserVO extends BaseEntity {
2828
userId: string | number;
29+
tenantId: string;
2930
deptId: number;
3031
userName: string;
3132
nickName: string;

src/api/workflow/processInstance/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const getHistoryList = (businessKey: string): AxiosPromise<Record<string,
5353
* @param businessKey 业务id
5454
* @returns
5555
*/
56-
export const getHistoryRecord = (businessKey: string) => {
56+
export const getHistoryRecord = (businessKey: string | number) => {
5757
return request({
5858
url: `/workflow/processInstance/getHistoryRecord/${businessKey}`,
5959
method: 'get'

src/bpmn/panel/TaskPanel.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,11 @@ const singleUserSelectRef = ref<InstanceType<typeof UserSelect>>();
281281
const roleSelectRef = ref<InstanceType<typeof RoleSelect>>();
282282
const dueDateRef = ref<InstanceType<typeof DueDate>>();
283283
284-
const isMultiple = ref(true);
285284
const openUserSelect = () => {
286285
userSelectRef.value.open();
287286
};
288287
const openSingleUserSelect = () => {
289-
if (formData.value.assignee.includes('$')) {
288+
if (formData.value.assignee?.includes('$')) {
290289
formData.value.assignee = '';
291290
}
292291
singleUserSelectRef.value.open();

src/components/Process/approvalRecord.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const tabActiveName = ref('bpmn');
6767
const bpmnViewRef = ref<BpmnView>();
6868
6969
//初始化查询审批记录
70-
const init = async (businessKey: string) => {
70+
const init = async (businessKey: string | number) => {
7171
visible.value = true;
7272
loading.value = true;
7373
tabActiveName.value = 'bpmn';

src/components/Process/multiInstanceUser.vue

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
<template>
2-
<el-dialog v-model="visible" draggable :title="title" :width="width" :height="height" append-to-body
3-
:close-on-click-modal="false">
4-
<div class="p-2" v-if="multiInstance === 'add'">
2+
<el-dialog v-model="visible" draggable :title="title" :width="width" :height="height" append-to-body :close-on-click-modal="false">
3+
<div v-if="multiInstance === 'add'" class="p-2">
54
<el-row :gutter="20">
65
<!-- 部门树 -->
76
<el-col :lg="4" :xs="24" style="">
87
<el-card shadow="hover">
98
<el-input v-model="deptName" placeholder="请输入部门名称" prefix-icon="Search" clearable />
10-
<el-tree class="mt-2" ref="deptTreeRef" node-key="id" :data="deptOptions"
11-
:props="{ label: 'label', children: 'children' }" :expand-on-click-node="false"
12-
:filter-node-method="filterNode" highlight-current default-expand-all
13-
@node-click="handleNodeClick"></el-tree>
9+
<el-tree
10+
ref="deptTreeRef"
11+
class="mt-2"
12+
node-key="id"
13+
:data="deptOptions"
14+
:props="{ label: 'label', children: 'children' }"
15+
:expand-on-click-node="false"
16+
:filter-node-method="filterNode"
17+
highlight-current
18+
default-expand-all
19+
@node-click="handleNodeClick"
20+
></el-tree>
1421
</el-card>
1522
</el-col>
1623
<el-col :lg="20" :xs="24">
17-
<transition :enter-active-class="proxy?.animate.searchAnimate.enter"
18-
:leave-active-class="proxy?.animate.searchAnimate.leave">
19-
<div class="search" v-show="showSearch">
24+
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
25+
<div v-show="showSearch" class="search">
2026
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
2127
<el-form-item label="用户名称" prop="userName">
2228
<el-input v-model="queryParams.userName" placeholder="请输入用户名称" clearable @keyup.enter="handleQuery" />
@@ -25,8 +31,8 @@
2531
<el-input v-model="queryParams.phonenumber" placeholder="请输入手机号码" clearable @keyup.enter="handleQuery" />
2632
</el-form-item>
2733
<el-form-item>
28-
<el-button type="primary" @click="handleQuery" icon="Search">搜索</el-button>
29-
<el-button @click="resetQuery" icon="Refresh">重置</el-button>
34+
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
35+
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
3036
</el-form-item>
3137
</el-form>
3238
</div>
@@ -35,36 +41,40 @@
3541
<el-card shadow="hover">
3642
<template #header>
3743
<el-row :gutter="10">
38-
<right-toolbar v-model:showSearch="showSearch" @queryTable="handleQuery" :search="true"></right-toolbar>
44+
<right-toolbar v-model:showSearch="showSearch" :search="true" @query-table="handleQuery"></right-toolbar>
3945
</el-row>
4046
</template>
4147

42-
<el-table v-loading="loading" :data="userList" ref="multipleTableRef" row-key="userId"
43-
@selection-change="handleSelectionChange">
48+
<el-table ref="multipleTableRef" v-loading="loading" :data="userList" row-key="userId" @selection-change="handleSelectionChange">
4449
<el-table-column type="selection" width="50" align="center" />
45-
<el-table-column label="用户编号" align="center" key="userId" prop="userId" />
46-
<el-table-column label="用户名称" align="center" key="userName" prop="userName" :show-overflow-tooltip="true" />
47-
<el-table-column label="用户昵称" align="center" key="nickName" prop="nickName" :show-overflow-tooltip="true" />
48-
<el-table-column label="手机号码" align="center" key="phonenumber" prop="phonenumber" width="120" />
50+
<el-table-column key="userId" label="用户编号" align="center" prop="userId" />
51+
<el-table-column key="userName" label="用户名称" align="center" prop="userName" :show-overflow-tooltip="true" />
52+
<el-table-column key="nickName" label="用户昵称" align="center" prop="nickName" :show-overflow-tooltip="true" />
53+
<el-table-column key="phonenumber" label="手机号码" align="center" prop="phonenumber" width="120" />
4954
<el-table-column label="创建时间" align="center" prop="createTime" width="160">
5055
<template #default="scope">
5156
<span>{{ scope.row.createTime }}</span>
5257
</template>
5358
</el-table-column>
5459
</el-table>
5560

56-
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
57-
v-model:limit="queryParams.pageSize" @pagination="handleQuery" />
61+
<pagination
62+
v-show="total > 0"
63+
v-model:page="queryParams.pageNum"
64+
v-model:limit="queryParams.pageSize"
65+
:total="total"
66+
@pagination="handleQuery"
67+
/>
5868
</el-card>
5969
<el-card shadow="hover">
60-
<el-tag v-for="(user, index) in chooseUserList" :key="user.userId" style="margin:2px" closable
61-
@close="handleCloseTag(user, index)">{{ user.userName }}
70+
<el-tag v-for="(user, index) in chooseUserList" :key="user.userId" style="margin: 2px" closable @close="handleCloseTag(user, index)"
71+
>{{ user.userName }}
6272
</el-tag>
6373
</el-card>
6474
</el-col>
6575
</el-row>
6676
</div>
67-
<div class="p-2" v-if="multiInstance === 'delete'">
77+
<div v-if="multiInstance === 'delete'" class="p-2">
6878
<el-table v-loading="loading" :data="taskList" @selection-change="handleTaskSelection">
6979
<el-table-column type="selection" width="55" />
7080
<el-table-column prop="name" label="任务名称" />
@@ -285,7 +295,7 @@ const handleNodeClick = (data: DeptVO) => {
285295
//删除tag
286296
const handleCloseTag = (user: UserVO, index: any) => {
287297
if (multipleTableRef.value.selection && multipleTableRef.value.selection.length > 0) {
288-
multipleTableRef.value.selection.forEach((u: UserVO, i: Number) => {
298+
multipleTableRef.value.selection.forEach((u: UserVO, i: number) => {
289299
if (user.userId === u.userId) {
290300
multipleTableRef.value.selection.splice(i, 1);
291301
}

src/layout/components/SocialCallback/index.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ const loading = ref(true);
1717
const code = route.query.code as string;
1818
const state = route.query.state as string;
1919
const source = route.query.source as string;
20-
const tenantId = localStorage.getItem('tenantId') ? (localStorage.getItem('tenantId') as string) : '000000';
20+
const stateJson = JSON.parse(atob(state));
21+
const tenantId = stateJson.tenantId as string ? stateJson.tenantId as string : '000000';
22+
const domain = stateJson.domain as string;
2123
2224
const processResponse = async (res: any) => {
2325
if (res.code !== 200) {
@@ -60,12 +62,21 @@ const loginByCode = async (data: LoginData) => {
6062
};
6163
6264
const init = async () => {
65+
// 如果域名不相等 则重定向处理
66+
let host = window.location.host;
67+
if (domain !== host) {
68+
let urlFull = new URL(window.location.href);
69+
urlFull.host = domain;
70+
window.location.href = urlFull.toString();
71+
return;
72+
}
73+
6374
const data: LoginData = {
6475
socialCode: code,
6576
socialState: state,
6677
tenantId: tenantId,
6778
source: source,
68-
clientId: 'e5cd7e4891bf95d1d19206ce24a7b32e',
79+
clientId: import.meta.env.VITE_APP_CLIENT_ID,
6980
grantType: 'social'
7081
};
7182

0 commit comments

Comments
 (0)