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
b57b45c9
authored
Oct 14, 2023
by
芋道源码
Committed by
Gitee
Oct 14, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!255 站内信测试增加 Member 用户类型支持
Merge pull request !255 from 风狗/dev
parents
8b6ca302
f832d26a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
src/views/system/notify/template/NotifyTemplateSendForm.vue
+19
-2
No files found.
src/views/system/notify/template/NotifyTemplateSendForm.vue
View file @
b57b45c9
...
@@ -15,7 +15,21 @@
...
@@ -15,7 +15,21 @@
type=
"textarea"
type=
"textarea"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"接收人"
prop=
"userId"
>
<el-form-item
label=
"用户类型"
prop=
"userType"
>
<el-radio-group
v-model=
"formData.userType"
>
<el-radio
v-for=
"dict in getIntDictOptions(DICT_TYPE.USER_TYPE)"
:key=
"dict.value"
:label=
"dict.value as number"
>
{{
dict
.
label
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
v-show=
"formData.userType === 1"
label=
"接收人ID"
prop=
"userId"
>
<el-input
v-model=
"formData.userId"
style=
"width: 160px"
/>
</el-form-item>
<el-form-item
v-show=
"formData.userType === 2"
label=
"接收人"
prop=
"userId"
>
<el-select
v-model=
"formData.userId"
placeholder=
"请选择接收人"
>
<el-select
v-model=
"formData.userId"
placeholder=
"请选择接收人"
>
<el-option
<el-option
v-for=
"item in userOption"
v-for=
"item in userOption"
...
@@ -46,6 +60,7 @@
...
@@ -46,6 +60,7 @@
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
*
as
UserApi
from
'@/api/system/user'
import
*
as
UserApi
from
'@/api/system/user'
import
*
as
NotifyTemplateApi
from
'@/api/system/notify/template'
import
*
as
NotifyTemplateApi
from
'@/api/system/notify/template'
import
{
DICT_TYPE
,
getIntDictOptions
}
from
'@/utils/dict'
defineOptions
({
name
:
'SystemNotifyTemplateSendForm'
})
defineOptions
({
name
:
'SystemNotifyTemplateSendForm'
})
...
@@ -57,6 +72,7 @@ const formData = ref({
...
@@ -57,6 +72,7 @@ const formData = ref({
content
:
''
,
content
:
''
,
params
:
{},
params
:
{},
userId
:
null
,
userId
:
null
,
userType
:
1
,
templateCode
:
''
,
templateCode
:
''
,
templateParams
:
new
Map
()
templateParams
:
new
Map
()
})
})
...
@@ -122,7 +138,8 @@ const resetForm = () => {
...
@@ -122,7 +138,8 @@ const resetForm = () => {
params
:
{},
params
:
{},
mobile
:
''
,
mobile
:
''
,
templateCode
:
''
,
templateCode
:
''
,
templateParams
:
new
Map
()
templateParams
:
new
Map
(),
userType
:
1
}
as
any
}
as
any
formRef
.
value
?.
resetFields
()
formRef
.
value
?.
resetFields
()
}
}
...
...
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