Skip to content

Commit 89c3af5

Browse files
committed
Merge branch 'master' of https://gitee.com/yudaocode/yudao-ui-admin-vue3 into feature/bpm
2 parents 77938c3 + e995092 commit 89c3af5

File tree

18 files changed

+479
-119
lines changed

18 files changed

+479
-119
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"animate.css": "^4.1.1",
3939
"axios": "^1.6.8",
4040
"benz-amr-recorder": "^1.1.5",
41-
"bpmn-js-token-simulation": "^0.10.0",
41+
"bpmn-js-token-simulation": "^0.36.0",
4242
"camunda-bpmn-moddle": "^7.0.1",
4343
"cropperjs": "^1.6.1",
4444
"crypto-js": "^4.2.0",
@@ -47,7 +47,7 @@
4747
"driver.js": "^1.3.1",
4848
"echarts": "^5.5.0",
4949
"echarts-wordcloud": "^2.1.0",
50-
"element-plus": "2.8.4",
50+
"element-plus": "2.9.1",
5151
"fast-xml-parser": "^4.3.2",
5252
"highlight.js": "^11.9.0",
5353
"jsencrypt": "^3.3.2",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/login/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ export const register = (data: RegisterVO) => {
2222
return request.post({ url: '/system/auth/register', data })
2323
}
2424

25-
// 刷新访问令牌
26-
export const refreshToken = () => {
27-
return request.post({ url: '/system/auth/refresh-token?refreshToken=' + getRefreshToken() })
28-
}
29-
3025
// 使用租户名,获得租户编号
3126
export const getTenantIdByName = (name: string) => {
3227
return request.get({ url: '/system/tenant/get-id-by-name?name=' + name })
@@ -76,12 +71,17 @@ export const socialAuthRedirect = (type: number, redirectUri: string) => {
7671
})
7772
}
7873
// 获取验证图片以及 token
79-
export const getCode = (data) => {
74+
export const getCode = (data: any) => {
8075
debugger
8176
return request.postOriginal({ url: 'system/captcha/get', data })
8277
}
8378

8479
// 滑动或者点选验证
85-
export const reqCheck = (data) => {
80+
export const reqCheck = (data: any) => {
8681
return request.postOriginal({ url: 'system/captcha/check', data })
8782
}
83+
84+
// 通过短信重置密码
85+
export const smsResetPassword = (data: any) => {
86+
return request.post({ url: '/system/auth/sms-reset-password', data })
87+
}

src/components/Echart/src/Echart.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import { useAppStore } from '@/store/modules/app'
99
import { isString } from '@/utils/is'
1010
import { useDesign } from '@/hooks/web/useDesign'
1111
12+
import 'echarts/lib/component/markPoint'
13+
import 'echarts/lib/component/markLine'
14+
import 'echarts/lib/component/markArea'
15+
1216
defineOptions({ name: 'EChart' })
1317
1418
const { getPrefixCls, variables } = useDesign()

src/components/RouterSearch/index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,14 @@ function remoteMethod(data) {
7979
8080
function handleChange(path) {
8181
router.push({ path })
82+
hiddenSearch()
8283
hiddenTopSearch()
8384
}
8485
86+
function hiddenSearch() {
87+
showSearch.value = false
88+
}
89+
8590
function hiddenTopSearch() {
8691
showTopSearch.value = false
8792
}

src/components/bpmnProcessDesigner/package/theme/process-designer.scss

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
@use 'bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css';
2-
@use 'bpmn-js-token-simulation/assets/css/font-awesome.min.css';
3-
@use 'bpmn-js-token-simulation/assets/css/normalize.css';
42

53
// 边框被 token-simulation 样式覆盖了
64
.djs-palette {
@@ -97,12 +95,12 @@
9795
box-sizing: border-box;
9896
}
9997
}
100-
svg {
101-
width: 100%;
102-
height: 100%;
103-
min-height: 100%;
104-
overflow: hidden;
105-
}
98+
// svg {
99+
// width: 100%;
100+
// height: 100%;
101+
// min-height: 100%;
102+
// overflow: hidden;
103+
// }
106104
}
107105
}
108106

src/directives/permission/hasPermi.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,10 @@ const { t } = useI18n() // 国际化
55

66
export function hasPermi(app: App<Element>) {
77
app.directive('hasPermi', (el, binding) => {
8-
const { wsCache } = useCache()
98
const { value } = binding
10-
const all_permission = '*:*:*'
11-
const userInfo = wsCache.get(CACHE_KEY.USER)
12-
const permissions = userInfo?.permissions || []
139

1410
if (value && value instanceof Array && value.length > 0) {
15-
const permissionFlag = value
16-
17-
const hasPermissions = permissions.some((permission: string) => {
18-
return all_permission === permission || permissionFlag.includes(permission)
19-
})
11+
const hasPermissions = hasPermission(value)
2012

2113
if (!hasPermissions) {
2214
el.parentNode && el.parentNode.removeChild(el)
@@ -26,3 +18,14 @@ export function hasPermi(app: App<Element>) {
2618
}
2719
})
2820
}
21+
22+
export const hasPermission = (permission: string[]) => {
23+
const { wsCache } = useCache()
24+
const all_permission = '*:*:*'
25+
const userInfo = wsCache.get(CACHE_KEY.USER)
26+
const permissions = userInfo?.permissions || []
27+
28+
return permissions.some((p: string) => {
29+
return all_permission === p || permission.includes(p)
30+
})
31+
}

src/layout/components/Footer/src/Footer.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ const prefixCls = getPrefixCls('footer')
1212
const appStore = useAppStore()
1313
1414
const title = computed(() => appStore.getTitle)
15+
16+
// 添加当前年份计算属性
17+
const currentYear = computed(() => new Date().getFullYear())
1518
</script>
1619

1720
<template>
1821
<div
1922
:class="prefixCls"
2023
class="h-[var(--app-footer-height)] bg-[var(--app-content-bg-color)] text-center leading-[var(--app-footer-height)] text-[var(--el-text-color-placeholder)] dark:bg-[var(--el-bg-color)] overflow-hidden"
2124
>
22-
<span class="text-14px">Copyright ©2022-{{ title }}</span>
25+
<span class="text-14px">Copyright ©{{ currentYear }} {{ title }}</span>
2326
</div>
2427
</template>

src/locales/en.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ export default {
140140
btnQRCode: 'QR code sign in',
141141
qrcode: 'Scan the QR code to log in',
142142
btnRegister: 'Sign up',
143-
SmsSendMsg: 'code has been sent'
143+
SmsSendMsg: 'code has been sent',
144+
resetPassword: "Reset Password",
145+
resetPasswordSuccess: "Reset Password Success",
146+
invalidTenantName:"Invalid Tenant Name"
144147
},
145148
captcha: {
146149
verification: 'Please complete security verification',

src/locales/zh-CN.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ export default {
141141
btnQRCode: '二维码登录',
142142
qrcode: '扫描二维码登录',
143143
btnRegister: '注册',
144-
SmsSendMsg: '验证码已发送'
144+
SmsSendMsg: '验证码已发送',
145+
resetPassword: "重置密码",
146+
resetPasswordSuccess: "重置密码成功",
147+
invalidTenantName: "无效的租户名称"
145148
},
146149
captcha: {
147150
verification: '请完成安全验证',

0 commit comments

Comments
 (0)