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
Commit
3407cc66
authored
Dec 02, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
修复 sms 在 IDEA 报错的问题
parent
dd4a77ff
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
20 deletions
+20
-20
src/api/system/sms/smsChannel/index.ts
+1
-1
src/api/system/sms/smsTemplate/index.ts
+3
-3
src/views/system/sms/channel/SmsChannelForm.vue
+2
-2
src/views/system/sms/channel/index.vue
+1
-1
src/views/system/sms/template/SmsTemplateForm.vue
+8
-8
src/views/system/sms/template/index.vue
+5
-5
No files found.
src/api/system/sms/smsChannel/index.ts
View file @
3407cc66
...
@@ -19,7 +19,7 @@ export const getSmsChannelPage = (params: PageParam) => {
...
@@ -19,7 +19,7 @@ export const getSmsChannelPage = (params: PageParam) => {
// 获得短信渠道精简列表
// 获得短信渠道精简列表
export
function
getSimpleSmsChannelList
()
{
export
function
getSimpleSmsChannelList
()
{
return
request
.
get
({
url
:
'/system/sms-channel/
list-all-simple
'
})
return
request
.
get
({
url
:
'/system/sms-channel/
simple-list
'
})
}
}
// 查询短信渠道详情
// 查询短信渠道详情
...
...
src/api/system/sms/smsTemplate/index.ts
View file @
3407cc66
import
request
from
'@/config/axios'
import
request
from
'@/config/axios'
export
interface
SmsTemplateVO
{
export
interface
SmsTemplateVO
{
id
:
number
|
null
id
?:
number
type
:
number
|
null
type
?:
number
status
:
number
status
:
number
code
:
string
code
:
string
name
:
string
name
:
string
content
:
string
content
:
string
remark
:
string
remark
:
string
apiTemplateId
:
string
apiTemplateId
:
string
channelId
:
number
|
null
channelId
?:
number
channelCode
?:
string
channelCode
?:
string
params
?:
string
[]
params
?:
string
[]
createTime
?:
Date
createTime
?:
Date
...
...
src/views/system/sms/channel/SmsChannelForm.vue
View file @
3407cc66
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<el-select
v-model=
"formData.code"
clearable
placeholder=
"请选择渠道编码"
>
<el-select
v-model=
"formData.code"
clearable
placeholder=
"请选择渠道编码"
>
<el-option
<el-option
v-for=
"dict in getStrDictOptions(DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE)"
v-for=
"dict in getStrDictOptions(DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE)"
:key=
"dict.value"
:key=
"dict.value
as number
"
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
/>
/>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<el-radio-group
v-model=
"formData.status"
>
<el-radio-group
v-model=
"formData.status"
>
<el-radio
<el-radio
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:key=
"dict.value
as number
"
:label=
"dict.value"
:label=
"dict.value"
>
>
{{
dict
.
label
}}
{{
dict
.
label
}}
...
...
src/views/system/sms/channel/index.vue
View file @
3407cc66
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择启用状态"
clearable
>
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择启用状态"
clearable
>
<el-option
<el-option
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:key=
"dict.value
as number
"
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
/>
/>
...
...
src/views/system/sms/template/SmsTemplateForm.vue
View file @
3407cc66
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<el-select
v-model=
"formData.type"
placeholder=
"请选择短信类型"
>
<el-select
v-model=
"formData.type"
placeholder=
"请选择短信类型"
>
<el-option
<el-option
v-for=
"dict in getIntDictOptions(DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE)"
:key=
"dict.value"
:key=
"dict.value
as number
"
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
/>
/>
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<el-radio-group
v-model=
"formData.status"
>
<el-radio-group
v-model=
"formData.status"
>
<el-radio
<el-radio
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:key=
"dict.value
as number
"
:label=
"parseInt(dict.value as string)"
:label=
"parseInt(dict.value as string)"
>
>
{{
dict
.
label
}}
{{
dict
.
label
}}
...
@@ -79,15 +79,15 @@ const dialogTitle = ref('') // 弹窗的标题
...
@@ -79,15 +79,15 @@ const dialogTitle = ref('') // 弹窗的标题
const
formLoading
=
ref
(
false
)
// 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
const
formLoading
=
ref
(
false
)
// 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
const
formType
=
ref
(
''
)
// 表单的类型
const
formType
=
ref
(
''
)
// 表单的类型
const
formData
=
ref
<
SmsTemplateApi
.
SmsTemplateVO
>
({
const
formData
=
ref
<
SmsTemplateApi
.
SmsTemplateVO
>
({
id
:
null
,
id
:
undefined
,
type
:
null
,
type
:
undefined
,
status
:
CommonStatusEnum
.
ENABLE
,
status
:
CommonStatusEnum
.
ENABLE
,
code
:
''
,
code
:
''
,
name
:
''
,
name
:
''
,
content
:
''
,
content
:
''
,
remark
:
''
,
remark
:
''
,
apiTemplateId
:
''
,
apiTemplateId
:
''
,
channelId
:
null
channelId
:
undefined
})
})
const
formRules
=
reactive
({
const
formRules
=
reactive
({
type
:
[{
required
:
true
,
message
:
'短信类型不能为空'
,
trigger
:
'change'
}],
type
:
[{
required
:
true
,
message
:
'短信类型不能为空'
,
trigger
:
'change'
}],
...
@@ -148,15 +148,15 @@ const submitForm = async () => {
...
@@ -148,15 +148,15 @@ const submitForm = async () => {
/** 重置表单 */
/** 重置表单 */
const
resetForm
=
()
=>
{
const
resetForm
=
()
=>
{
formData
.
value
=
{
formData
.
value
=
{
id
:
null
,
id
:
undefined
,
type
:
null
,
type
:
undefined
,
status
:
CommonStatusEnum
.
ENABLE
,
status
:
CommonStatusEnum
.
ENABLE
,
code
:
''
,
code
:
''
,
name
:
''
,
name
:
''
,
content
:
''
,
content
:
''
,
remark
:
''
,
remark
:
''
,
apiTemplateId
:
''
,
apiTemplateId
:
''
,
channelId
:
null
channelId
:
undefined
}
}
formRef
.
value
?.
resetFields
()
formRef
.
value
?.
resetFields
()
}
}
...
...
src/views/system/sms/template/index.vue
View file @
3407cc66
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
>
>
<el-option
<el-option
v-for=
"dict in getIntDictOptions(DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE)"
:key=
"dict.value"
:key=
"dict.value
as number
"
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
/>
/>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
>
>
<el-option
<el-option
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:key=
"dict.value
as number
"
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
/>
/>
...
@@ -232,12 +232,12 @@ const queryFormRef = ref() // 搜索的表单
...
@@ -232,12 +232,12 @@ const queryFormRef = ref() // 搜索的表单
const
queryParams
=
reactive
({
const
queryParams
=
reactive
({
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
10
,
pageSize
:
10
,
type
:
null
,
type
:
undefined
,
status
:
null
,
status
:
undefined
,
code
:
''
,
code
:
''
,
content
:
''
,
content
:
''
,
apiTemplateId
:
''
,
apiTemplateId
:
''
,
channelId
:
null
,
channelId
:
undefined
,
createTime
:
[]
createTime
:
[]
})
})
const
exportLoading
=
ref
(
false
)
// 导出的加载中
const
exportLoading
=
ref
(
false
)
// 导出的加载中
...
...
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