Skip to content

Commit f5d557f

Browse files
JavaLionLigitee-org
authored andcommitted
!197 发布 5.3.1-BETA2_2.3.0-BETA2 公测版本
Merge pull request !197 from 疯狂的狮子Li/dev
2 parents b23b123 + 8bff98a commit f5d557f

File tree

16 files changed

+45
-153
lines changed

16 files changed

+45
-153
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package",
33
"name": "ruoyi-vue-plus",
4-
"version": "5.3.1-BETA_2.3.0-BETA",
4+
"version": "5.3.1-BETA2_2.3.0-BETA2",
55
"description": "RuoYi-Vue-Plus多租户管理系统",
66
"author": "LionLi",
77
"license": "MIT",

src/components/Breadcrumb/index.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,8 @@ const getBreadcrumb = () => {
4040
levelList.value = matched.filter((item) => item.meta && item.meta.title && item.meta.breadcrumb !== false);
4141
};
4242
const findPathNum = (str, char = '/') => {
43-
let index = str.indexOf(char);
44-
let num = 0;
45-
while (index !== -1) {
46-
num++;
47-
index = str.indexOf(char, index + 1);
48-
}
49-
return num;
43+
if (typeof str !== 'string' || str.length === 0) return 0;
44+
return str.split(char).length - 1;
5045
};
5146
const getMatched = (pathList, routeList, matched) => {
5247
let data = routeList.find((item) => item.path == pathList[0] || (item.name += '').toLowerCase() == pathList[0]);

src/components/BuildCode/index.vue

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/components/BuildCode/render.vue

Lines changed: 0 additions & 57 deletions
This file was deleted.

src/components/Process/processMeddle.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,13 @@ const task = ref<FlowTaskVO>({
8585
nodeName: undefined,
8686
flowCode: undefined,
8787
flowStatus: undefined,
88+
formCustom: undefined,
89+
formPath: undefined,
8890
nodeType: undefined,
8991
nodeRatio: undefined,
90-
version: undefined
92+
version: undefined,
93+
applyNode: undefined,
94+
buttonList: []
9195
});
9296
9397
const open = (taskId: string) => {
@@ -171,7 +175,7 @@ const deleteMultiInstanceUser = async (row) => {
171175
};
172176
//获取办理人
173177
const handleTaskUser = async () => {
174-
let data = await currentTaskAllUser(task.value.id);
178+
const data = await currentTaskAllUser(task.value.id);
175179
deleteUserList.value = data.data;
176180
if (deleteUserList.value && deleteUserList.value.length > 0) {
177181
deleteUserList.value.forEach((e) => {
@@ -183,7 +187,7 @@ const handleTaskUser = async () => {
183187
184188
//终止任务
185189
const handleTerminationTask = async () => {
186-
let params = {
190+
const params = {
187191
taskId: task.value.id,
188192
comment: ''
189193
};

src/utils/dict.ts

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,20 @@ export const useDict = (...args: string[]): { [key: string]: DictDataOption[] }
77
const res = ref<{
88
[key: string]: DictDataOption[];
99
}>({});
10-
return (() => {
11-
args.forEach(async (dictType) => {
12-
res.value[dictType] = [];
13-
const dicts = useDictStore().getDict(dictType);
14-
if (dicts) {
15-
res.value[dictType] = dicts;
16-
} else {
17-
await getDicts(dictType).then((resp) => {
18-
res.value[dictType] = resp.data.map(
19-
(p): DictDataOption => ({ label: p.dictLabel, value: p.dictValue, elTagType: p.listClass, elTagClass: p.cssClass })
20-
);
21-
useDictStore().setDict(dictType, res.value[dictType]);
22-
});
23-
}
24-
});
25-
return res.value;
26-
})();
10+
11+
args.forEach(async (dictType) => {
12+
res.value[dictType] = [];
13+
const dicts = useDictStore().getDict(dictType);
14+
if (dicts) {
15+
res.value[dictType] = dicts;
16+
} else {
17+
await getDicts(dictType).then((resp) => {
18+
res.value[dictType] = resp.data.map(
19+
(p): DictDataOption => ({ label: p.dictLabel, value: p.dictValue, elTagType: p.listClass, elTagClass: p.cssClass })
20+
);
21+
useDictStore().setDict(dictType, res.value[dictType]);
22+
});
23+
}
24+
});
25+
return res.value;
2726
};

src/utils/ruoyi.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ export const handleTree = <T>(data: any[], id?: string, parentId?: string, child
171171
for (const d of data) {
172172
const id = d[config.id];
173173
childrenListMap[id] = d;
174+
if (!d[config.childrenList]) {
175+
d[config.childrenList] = [];
176+
}
174177
}
175178

176179
for (const d of data) {

src/views/login.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="login">
33
<el-form ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form">
44
<div class="title-box">
5-
<h3 class="title">RuoYi-Vue-Plus多租户管理系统</h3>
5+
<h3 class="title">{{ title }}</h3>
66
<lang-select />
77
</div>
88
<el-form-item v-if="tenantEnabled" prop="tenantId">
@@ -89,6 +89,7 @@ import { useI18n } from 'vue-i18n';
8989
9090
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
9191
92+
const title = import.meta.env.VITE_APP_TITLE;
9293
const userStore = useUserStore();
9394
const router = useRouter();
9495
const { t } = useI18n();

src/views/register.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="register">
33
<el-form ref="registerRef" :model="registerForm" :rules="registerRules" class="register-form">
44
<div class="title-box">
5-
<h3 class="title">RuoYi-Vue-Plus多租户管理系统</h3>
5+
<h3 class="title">{{ title }}</h3>
66
<lang-select />
77
</div>
88
<el-form-item v-if="tenantEnabled" prop="tenantId">
@@ -80,6 +80,7 @@ import { useI18n } from 'vue-i18n';
8080
8181
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
8282
83+
const title = import.meta.env.VITE_APP_TITLE;
8384
const router = useRouter();
8485
8586
const { t } = useI18n();

src/views/workflow/processDefinition/index.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
<el-form-item label="流程定义名称" prop="flowName">
2828
<el-input v-model="queryParams.flowName" placeholder="请输入流程定义名称" clearable @keyup.enter="handleQuery" />
2929
</el-form-item>
30-
<el-form-item label="流程定义KEY" prop="flowCode">
31-
<el-input v-model="queryParams.flowCode" placeholder="请输入流程定义KEY" clearable @keyup.enter="handleQuery" />
30+
<el-form-item label="流程定义编码" prop="flowCode">
31+
<el-input v-model="queryParams.flowCode" placeholder="请输入流程定义编码" clearable @keyup.enter="handleQuery" />
3232
</el-form-item>
3333
<el-form-item>
3434
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
@@ -67,6 +67,7 @@
6767
<el-table-column align="center" prop="id" label="主键" v-if="false"></el-table-column>
6868
<el-table-column align="center" prop="flowName" label="流程定义名称" :show-overflow-tooltip="true"></el-table-column>
6969
<el-table-column align="center" prop="flowCode" label="标识KEY" :show-overflow-tooltip="true"></el-table-column>
70+
<el-table-column align="center" prop="categoryName" label="流程分类" :show-overflow-tooltip="true"></el-table-column>
7071
<el-table-column align="center" prop="version" label="版本号" width="80">
7172
<template #default="scope"> v{{ scope.row.version }}.0</template>
7273
</el-table-column>
@@ -356,7 +357,7 @@ const getUnPublishList = async () => {
356357
const handleDelete = async (row?: FlowDefinitionVo) => {
357358
const id = row?.id || ids.value;
358359
const defList = processDefinitionList.value.filter((x) => id.indexOf(x.id) != -1).map((x) => x.flowCode);
359-
await proxy?.$modal.confirm('是否确认删除流程定义KEY为' + defList + '】的数据项?');
360+
await proxy?.$modal.confirm('是否确认删除流程定义编码为' + defList + '】的数据项?');
360361
loading.value = true;
361362
await deleteDefinition(id).finally(() => (loading.value = false));
362363
await handleQuery();
@@ -366,7 +367,7 @@ const handleDelete = async (row?: FlowDefinitionVo) => {
366367
/** 发布流程定义 */
367368
const handlePublish = async (row?: FlowDefinitionVo) => {
368369
await proxy?.$modal.confirm(
369-
'是否确认发布流程定义KEY为' + row.flowCode + '】版本为【' + row.version + '】的数据项?,发布后会将已发布流程定义改为失效!'
370+
'是否确认发布流程定义编码为' + row.flowCode + '】版本为【' + row.version + '】的数据项?,发布后会将已发布流程定义改为失效!'
370371
);
371372
loading.value = true;
372373
await publish(row.id).finally(() => (loading.value = false));

0 commit comments

Comments
 (0)