Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
f9f3c204
authored
Mar 14, 2023
by
芋道源码
Committed by
Gitee
Mar 14, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!27 修改测试所提bug
Merge pull request !27 from 周建/master
parents
2323946c
be6e307b
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
96 additions
and
23 deletions
+96
-23
src/views/bpm/form/form.data.ts
+1
-1
src/views/infra/apiAccessLog/apiAccessLog.data.ts
+1
-1
src/views/infra/apiErrorLog/apiErrorLog.data.ts
+1
-1
src/views/infra/fileConfig/fileConfig.data.ts
+1
-1
src/views/infra/job/JobLog.vue
+1
-1
src/views/infra/job/job.data.ts
+1
-1
src/views/infra/job/jobLog.data.ts
+1
-1
src/views/system/sms/smsChannel/sms.channel.data.ts
+15
-2
src/views/system/sms/smsLog/index.vue
+2
-1
src/views/system/sms/smsLog/sms.log.data.ts
+14
-3
src/views/system/tenant/tenant.data.ts
+39
-4
src/views/system/tenantPackage/index.vue
+4
-4
src/views/system/user/user.data.ts
+15
-2
No files found.
src/views/bpm/form/form.data.ts
View file @
f9f3c204
...
@@ -10,7 +10,7 @@ export const rules = reactive({
...
@@ -10,7 +10,7 @@ export const rules = reactive({
// CrudSchema
// CrudSchema
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
primaryKey
:
'id'
,
primaryKey
:
'id'
,
primaryType
:
'
seq
'
,
primaryType
:
'
id
'
,
primaryTitle
:
'表单编号'
,
primaryTitle
:
'表单编号'
,
action
:
true
,
action
:
true
,
columns
:
[
columns
:
[
...
...
src/views/infra/apiAccessLog/apiAccessLog.data.ts
View file @
f9f3c204
...
@@ -3,7 +3,7 @@ import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
...
@@ -3,7 +3,7 @@ import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
// CrudSchema
// CrudSchema
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
primaryKey
:
'id'
,
primaryKey
:
'id'
,
primaryType
:
'
seq
'
,
primaryType
:
'
id
'
,
primaryTitle
:
'日志编号'
,
primaryTitle
:
'日志编号'
,
action
:
true
,
action
:
true
,
actionWidth
:
'80px'
,
actionWidth
:
'80px'
,
...
...
src/views/infra/apiErrorLog/apiErrorLog.data.ts
View file @
f9f3c204
...
@@ -3,7 +3,7 @@ import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
...
@@ -3,7 +3,7 @@ import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
// CrudSchema
// CrudSchema
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
primaryKey
:
'id'
,
primaryKey
:
'id'
,
primaryType
:
'
seq
'
,
primaryType
:
'
id
'
,
primaryTitle
:
'日志编号'
,
primaryTitle
:
'日志编号'
,
action
:
true
,
action
:
true
,
actionWidth
:
'300'
,
actionWidth
:
'300'
,
...
...
src/views/infra/fileConfig/fileConfig.data.ts
View file @
f9f3c204
...
@@ -23,7 +23,7 @@ export const rules = reactive({
...
@@ -23,7 +23,7 @@ export const rules = reactive({
// CrudSchema
// CrudSchema
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
primaryKey
:
'id'
,
primaryKey
:
'id'
,
primaryType
:
'
seq
'
,
primaryType
:
'
id
'
,
primaryTitle
:
'配置编号'
,
primaryTitle
:
'配置编号'
,
action
:
true
,
action
:
true
,
actionWidth
:
'400px'
,
actionWidth
:
'400px'
,
...
...
src/views/infra/job/JobLog.vue
View file @
f9f3c204
...
@@ -70,7 +70,7 @@ const detailData = ref() // 详情 Ref
...
@@ -70,7 +70,7 @@ const detailData = ref() // 详情 Ref
// 详情操作
// 详情操作
const
handleDetail
=
async
(
row
:
JobLogApi
.
JobLogVO
)
=>
{
const
handleDetail
=
async
(
row
:
JobLogApi
.
JobLogVO
)
=>
{
// 设置数据
// 设置数据
const
res
=
JobLogApi
.
getJobLogApi
(
row
.
id
)
const
res
=
await
JobLogApi
.
getJobLogApi
(
row
.
id
)
detailData
.
value
=
res
detailData
.
value
=
res
dialogTitle
.
value
=
t
(
'action.detail'
)
dialogTitle
.
value
=
t
(
'action.detail'
)
dialogVisible
.
value
=
true
dialogVisible
.
value
=
true
...
...
src/views/infra/job/job.data.ts
View file @
f9f3c204
...
@@ -11,7 +11,7 @@ export const rules = reactive({
...
@@ -11,7 +11,7 @@ export const rules = reactive({
// CrudSchema
// CrudSchema
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
primaryKey
:
'id'
,
primaryKey
:
'id'
,
primaryType
:
'
seq
'
,
primaryType
:
'
id
'
,
primaryTitle
:
'任务编号'
,
primaryTitle
:
'任务编号'
,
action
:
true
,
action
:
true
,
actionWidth
:
'280px'
,
actionWidth
:
'280px'
,
...
...
src/views/infra/job/jobLog.data.ts
View file @
f9f3c204
...
@@ -4,7 +4,7 @@ const { t } = useI18n()
...
@@ -4,7 +4,7 @@ const { t } = useI18n()
// CrudSchema
// CrudSchema
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
primaryKey
:
'id'
,
primaryKey
:
'id'
,
primaryType
:
'
seq
'
,
primaryType
:
'
id
'
,
primaryTitle
:
'日志编号'
,
primaryTitle
:
'日志编号'
,
action
:
true
,
action
:
true
,
columns
:
[
columns
:
[
...
...
src/views/system/sms/smsChannel/sms.channel.data.ts
View file @
f9f3c204
import
type
{
VxeCrudSchema
}
from
'@/hooks/web/useVxeCrudSchemas'
import
type
{
VxeCrudSchema
}
from
'@/hooks/web/useVxeCrudSchemas'
import
{
DICT_TYPE
,
getStrDictOptions
}
from
'@/utils/dict'
const
{
t
}
=
useI18n
()
// 国际化
const
{
t
}
=
useI18n
()
// 国际化
const
authorizedGrantOptions
=
getStrDictOptions
(
DICT_TYPE
.
SYSTEM_SMS_CHANNEL_CODE
)
// 表单校验
// 表单校验
export
const
rules
=
reactive
({
export
const
rules
=
reactive
({
signature
:
[
required
],
signature
:
[
required
],
...
@@ -24,8 +28,17 @@ const crudSchemas = reactive<VxeCrudSchema>({
...
@@ -24,8 +28,17 @@ const crudSchemas = reactive<VxeCrudSchema>({
{
{
title
:
'渠道编码'
,
title
:
'渠道编码'
,
field
:
'code'
,
field
:
'code'
,
dictType
:
DICT_TYPE
.
SYSTEM_SMS_CHANNEL_CODE
,
// dictType: DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE,
isSearch
:
true
// dictClass: 'string',
isSearch
:
true
,
form
:
{
component
:
'Select'
,
componentProps
:
{
options
:
authorizedGrantOptions
,
multiple
:
false
,
filterable
:
true
}
}
},
},
{
{
title
:
t
(
'common.status'
),
title
:
t
(
'common.status'
),
...
...
src/views/system/sms/smsLog/index.vue
View file @
f9f3c204
...
@@ -44,12 +44,13 @@ const [registerTable, { exportList }] = useXTable({
...
@@ -44,12 +44,13 @@ const [registerTable, { exportList }] = useXTable({
// 弹窗相关的变量
// 弹窗相关的变量
const
dialogVisible
=
ref
(
false
)
// 是否显示弹出层
const
dialogVisible
=
ref
(
false
)
// 是否显示弹出层
const
dialogTitle
=
ref
(
'edit'
)
// 弹出层标题
const
dialogTitle
=
ref
(
t
(
'action.detail'
)
)
// 弹出层标题
const
actionType
=
ref
(
''
)
// 操作按钮的类型
const
actionType
=
ref
(
''
)
// 操作按钮的类型
// ========== 详情相关 ==========
// ========== 详情相关 ==========
const
detailData
=
ref
()
// 详情 Ref
const
detailData
=
ref
()
// 详情 Ref
const
handleDetail
=
(
row
:
SmsLoglApi
.
SmsLogVO
)
=>
{
const
handleDetail
=
(
row
:
SmsLoglApi
.
SmsLogVO
)
=>
{
// 设置数据
// 设置数据
actionType
.
value
=
'detail'
detailData
.
value
=
row
detailData
.
value
=
row
dialogVisible
.
value
=
true
dialogVisible
.
value
=
true
}
}
...
...
src/views/system/sms/smsLog/sms.log.data.ts
View file @
f9f3c204
import
type
{
VxeCrudSchema
}
from
'@/hooks/web/useVxeCrudSchemas'
import
type
{
VxeCrudSchema
}
from
'@/hooks/web/useVxeCrudSchemas'
import
{
DICT_TYPE
,
getStrDictOptions
}
from
'@/utils/dict'
const
{
t
}
=
useI18n
()
// 国际化
const
{
t
}
=
useI18n
()
// 国际化
const
authorizedGrantOptions
=
getStrDictOptions
(
DICT_TYPE
.
SYSTEM_SMS_CHANNEL_CODE
)
// CrudSchema
// CrudSchema
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
primaryKey
:
'id'
,
primaryKey
:
'id'
,
...
@@ -25,9 +28,17 @@ const crudSchemas = reactive<VxeCrudSchema>({
...
@@ -25,9 +28,17 @@ const crudSchemas = reactive<VxeCrudSchema>({
{
{
title
:
'短信渠道'
,
title
:
'短信渠道'
,
field
:
'channelId'
,
field
:
'channelId'
,
dictType
:
DICT_TYPE
.
SYSTEM_SMS_CHANNEL_CODE
,
// dictType: DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE,
dictClass
:
'number'
,
// dictClass: 'number',
isSearch
:
true
isSearch
:
true
,
// table: {
// component: 'Select',
componentProps
:
{
options
:
authorizedGrantOptions
// multiple: false,
// filterable: true
}
// }
},
},
{
{
title
:
'发送状态'
,
title
:
'发送状态'
,
...
...
src/views/system/tenant/tenant.data.ts
View file @
f9f3c204
...
@@ -19,12 +19,44 @@ const getTenantPackageOptions = async () => {
...
@@ -19,12 +19,44 @@ const getTenantPackageOptions = async () => {
}
}
getTenantPackageOptions
()
getTenantPackageOptions
()
const
validateName
=
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
const
reg
=
/^
[
a-zA-Z0-9
]{4,30}
$/
if
(
value
===
''
)
{
callback
(
new
Error
(
'请输入用户名称'
))
}
else
{
console
.
log
(
reg
.
test
(
rule
),
'reg.test(rule)'
)
if
(
!
reg
.
test
(
value
))
{
callback
(
new
Error
(
'用户名称由 数字、字母 组成'
))
}
else
{
callback
()
}
}
}
const
validateMobile
=
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
const
reg
=
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
if
(
value
===
''
)
{
callback
(
new
Error
(
'请输入联系手机'
))
}
else
{
if
(
!
reg
.
test
(
value
))
{
callback
(
new
Error
(
'请输入正确的手机号'
))
}
else
{
callback
()
}
}
}
// 表单校验
// 表单校验
export
const
rules
=
reactive
({
export
const
rules
=
reactive
({
name
:
[
required
],
name
:
[
required
],
packageId
:
[
required
],
packageId
:
[
required
],
contactName
:
[
required
],
contactName
:
[
required
],
contactMobile
:
[
required
],
contactMobile
:
[
required
,
{
validator
:
validateMobile
,
trigger
:
'blur'
}
],
accountCount
:
[
required
],
accountCount
:
[
required
],
expireTime
:
[
required
],
expireTime
:
[
required
],
username
:
[
username
:
[
...
@@ -34,7 +66,8 @@ export const rules = reactive({
...
@@ -34,7 +66,8 @@ export const rules = reactive({
max
:
30
,
max
:
30
,
trigger
:
'blur'
,
trigger
:
'blur'
,
message
:
'用户名称长度为 4-30 个字符'
message
:
'用户名称长度为 4-30 个字符'
}
},
{
validator
:
validateName
,
trigger
:
'blur'
}
],
],
password
:
[
password
:
[
required
,
required
,
...
@@ -90,7 +123,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
...
@@ -90,7 +123,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
title
:
'用户名称'
,
title
:
'用户名称'
,
field
:
'username'
,
field
:
'username'
,
isTable
:
false
,
isTable
:
false
,
isDetail
:
false
isDetail
:
false
,
isForm
:
false
},
},
{
{
title
:
'用户密码'
,
title
:
'用户密码'
,
...
@@ -99,7 +133,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
...
@@ -99,7 +133,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
isDetail
:
false
,
isDetail
:
false
,
form
:
{
form
:
{
component
:
'InputPassword'
component
:
'InputPassword'
}
},
isForm
:
false
},
},
{
{
title
:
'账号额度'
,
title
:
'账号额度'
,
...
...
src/views/system/tenantPackage/index.vue
View file @
f9f3c204
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
<XTextButton
preIcon=
"ep:delete"
:title=
"t('action.del')"
@
click=
"deleteData(row.id)"
/>
<XTextButton
preIcon=
"ep:delete"
:title=
"t('action.del')"
@
click=
"deleteData(row.id)"
/>
</
template
>
</
template
>
</XTable>
</XTable>
</ContentWrap>
<XModal
v-model=
"dialogVisible"
:title=
"dialogTitle"
>
<XModal
v-model=
"dialogVisible"
:title=
"dialogTitle"
>
<!-- 对话框(添加 / 修改) -->
<!-- 对话框(添加 / 修改) -->
<Form
<Form
...
@@ -25,7 +24,7 @@
...
@@ -25,7 +24,7 @@
ref=
"formRef"
ref=
"formRef"
>
>
<
template
#
menuIds
>
<
template
#
menuIds
>
<el-card
>
<el-card
class=
"cardHeight"
>
<template
#
header
>
<template
#
header
>
<div
class=
"card-header"
>
<div
class=
"card-header"
>
全选/全不选:
全选/全不选:
...
@@ -44,7 +43,7 @@
...
@@ -44,7 +43,7 @@
show-checkbox
show-checkbox
:props=
"defaultProps"
:props=
"defaultProps"
:data=
"menuOptions"
:data=
"menuOptions"
empty-text=
"加载中,请稍后
"
empty-text=
"加载中,请稍候
"
/>
/>
</el-card>
</el-card>
</template>
</template>
...
@@ -63,6 +62,7 @@
...
@@ -63,6 +62,7 @@
<XButton
:loading=
"loading"
:title=
"t('dialog.close')"
@
click=
"dialogVisible = false"
/>
<XButton
:loading=
"loading"
:title=
"t('dialog.close')"
@
click=
"dialogVisible = false"
/>
</
template
>
</
template
>
</XModal>
</XModal>
</ContentWrap>
</template>
</template>
<
script
setup
lang=
"ts"
name=
"TenantPackage"
>
<
script
setup
lang=
"ts"
name=
"TenantPackage"
>
import
{
handleTree
,
defaultProps
}
from
'@/utils/tree'
import
{
handleTree
,
defaultProps
}
from
'@/utils/tree'
...
@@ -179,7 +179,7 @@ onMounted(async () => {
...
@@ -179,7 +179,7 @@ onMounted(async () => {
// getList()
// getList()
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.
el-card
{
.
cardHeight
{
width
:
100%
;
width
:
100%
;
max-height
:
400px
;
max-height
:
400px
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
...
...
src/views/system/user/user.data.ts
View file @
f9f3c204
import
type
{
VxeCrudSchema
}
from
'@/hooks/web/useVxeCrudSchemas'
import
type
{
VxeCrudSchema
}
from
'@/hooks/web/useVxeCrudSchemas'
// 国际化
// 国际化
const
{
t
}
=
useI18n
()
const
{
t
}
=
useI18n
()
const
validateMobile
=
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
const
reg
=
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
if
(
value
===
''
)
{
callback
(
new
Error
(
'请输入联系手机'
))
}
else
{
if
(
!
reg
.
test
(
value
))
{
callback
(
new
Error
(
'请输入正确的手机号'
))
}
else
{
callback
()
}
}
}
// 表单校验
// 表单校验
export
const
rules
=
reactive
({
export
const
rules
=
reactive
({
username
:
[
required
],
username
:
[
required
],
...
@@ -17,12 +29,13 @@ export const rules = reactive({
...
@@ -17,12 +29,13 @@ export const rules = reactive({
],
],
status
:
[
required
],
status
:
[
required
],
mobile
:
[
mobile
:
[
required
,
{
{
required
:
true
,
len
:
11
,
len
:
11
,
trigger
:
'blur'
,
trigger
:
'blur'
,
message
:
'请输入正确的手机号码'
message
:
'请输入正确的手机号码'
}
},
{
validator
:
validateMobile
,
trigger
:
'blur'
}
]
]
})
})
// crudSchemas
// crudSchemas
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment