commit
8ed92bcd46
@ -1,32 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<Dialog v-model="dialogVisible" :title="dialogTitle">
|
<Dialog v-model="dialogVisible" :title="dialogTitle">
|
||||||
<el-form
|
<el-form ref="formRef" v-loading="formLoading" :model="formData" :rules="formRules" label-width="130px">
|
||||||
ref="formRef"
|
|
||||||
v-loading="formLoading"
|
|
||||||
:model="formData"
|
|
||||||
:rules="formRules"
|
|
||||||
label-width="130px"
|
|
||||||
>
|
|
||||||
<el-form-item label="短信签名" prop="signature">
|
<el-form-item label="短信签名" prop="signature">
|
||||||
<el-input v-model="formData.signature" placeholder="请输入短信签名" />
|
<el-input v-model="formData.signature" placeholder="请输入短信签名" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="渠道编码" prop="code">
|
<el-form-item label="渠道编码" prop="code">
|
||||||
<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)" :key="dict.value"
|
||||||
v-for="dict in getStrDictOptions(DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE)"
|
:label="dict.label" :value="dict.value" />
|
||||||
:key="dict.value"
|
|
||||||
:label="dict.label"
|
|
||||||
:value="dict.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="启用状态">
|
<el-form-item label="启用状态">
|
||||||
<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)" :key="dict.value" :label="dict.value">
|
||||||
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
|
|
||||||
:key="dict.value"
|
|
||||||
:label="dict.value"
|
|
||||||
>
|
|
||||||
{{ dict.label }}
|
{{ dict.label }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -109,7 +95,7 @@ const submitForm = async () => {
|
|||||||
// 提交请求
|
// 提交请求
|
||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
try {
|
try {
|
||||||
const data = unref(formRef)?.formModel as SmsChannelApi.SmsChannelVO
|
const data = formData.value as unknown as SmsChannelApi.SmsChannelVO
|
||||||
if (formType.value === 'create') {
|
if (formType.value === 'create') {
|
||||||
await SmsChannelApi.createSmsChannel(data)
|
await SmsChannelApi.createSmsChannel(data)
|
||||||
message.success(t('common.createSuccess'))
|
message.success(t('common.createSuccess'))
|
||||||
|
Loading…
Reference in New Issue
Block a user