Pre Merge pull request !140 from babylazsss/master
commit
efb9c5bed6
4
.env.pro
4
.env.pro
|
|
@ -4,10 +4,10 @@ NODE_ENV=production
|
||||||
VITE_DEV=false
|
VITE_DEV=false
|
||||||
|
|
||||||
# 请求路径
|
# 请求路径
|
||||||
VITE_BASE_URL='http://localhost:48080'
|
VITE_BASE_URL='http://172.26.6.130:8888'
|
||||||
|
|
||||||
# 上传路径
|
# 上传路径
|
||||||
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
|
VITE_UPLOAD_URL='http://172.26.6.130:8888/admin-api/infra/file/upload'
|
||||||
|
|
||||||
# 接口前缀
|
# 接口前缀
|
||||||
VITE_API_BASEPATH=
|
VITE_API_BASEPATH=
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" name="SystemNotifyTemplateSendForm" setup>
|
<script lang="ts" name="SystemNotifyTemplateSendForm" setup>
|
||||||
import * as SmsTemplateApi from '@/api/system/sms/smsTemplate'
|
|
||||||
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'
|
||||||
const message = useMessage() // 消息弹窗
|
const message = useMessage() // 消息弹窗
|
||||||
|
|
@ -102,8 +101,8 @@ const submitForm = async () => {
|
||||||
// 提交请求
|
// 提交请求
|
||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
try {
|
try {
|
||||||
const data = formData.value as unknown as SmsTemplateApi.SendSmsReqVO
|
const data = formData.value as unknown as NotifyTemplateApi.NotifySendReqVO
|
||||||
const logId = await SmsTemplateApi.sendSms(data)
|
const logId = await NotifyTemplateApi.sendNotify(data)
|
||||||
if (logId) {
|
if (logId) {
|
||||||
message.success('提交发送成功!发送结果,见发送日志编号:' + logId)
|
message.success('提交发送成功!发送结果,见发送日志编号:' + logId)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,8 @@ const formData = ref({
|
||||||
remark: '',
|
remark: '',
|
||||||
apiKey: '',
|
apiKey: '',
|
||||||
apiSecret: '',
|
apiSecret: '',
|
||||||
callbackUrl: ''
|
callbackUrl: '',
|
||||||
|
createTime: null
|
||||||
})
|
})
|
||||||
const formRules = reactive({
|
const formRules = reactive({
|
||||||
signature: [{ required: true, message: '短信签名不能为空', trigger: 'blur' }],
|
signature: [{ required: true, message: '短信签名不能为空', trigger: 'blur' }],
|
||||||
|
|
@ -109,7 +110,7 @@ const submitForm = async () => {
|
||||||
// 提交请求
|
// 提交请求
|
||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
try {
|
try {
|
||||||
const data = unref(formRef)?.formModel as SmsChannelApi.SmsChannelVO
|
const data = unref(formData) 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