update: 修改使用el-descriptions展示详情
This commit is contained in:
parent
ef3fbc5a04
commit
42128709aa
@ -174,92 +174,70 @@
|
|||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
<!-- 短信日志详细 -->
|
<!-- 短信日志详细 -->
|
||||||
<el-dialog title="短信日志详细" v-model="open" width="700px" append-to-body>
|
<Dialog title="短信日志详情" v-model="open">
|
||||||
<el-form ref="formRef" :model="formData" label-width="140px">
|
<el-descriptions border :column="1">
|
||||||
<el-row>
|
<el-descriptions-item label-align="right" width="50px" label="日志主键:">{{
|
||||||
<el-col :span="24">
|
formData.id
|
||||||
<el-form-item label="日志主键:">{{ formData.id }}</el-form-item>
|
}}</el-descriptions-item>
|
||||||
</el-col>
|
<el-descriptions-item label-align="right" width="50px" label="短信渠道:">
|
||||||
<el-col :span="24">
|
{{ formatChannelSignature(formData.channelId) }}
|
||||||
<el-form-item label="短信渠道:">
|
<dict-tag :type="DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE" :value="formData.channelCode" />
|
||||||
{{ formatChannelSignature(formData.channelId) }}
|
</el-descriptions-item>
|
||||||
<dict-tag :type="DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE" :value="formData.channelCode" />
|
<el-descriptions-item label-align="right" width="50px" label="短信模板:">
|
||||||
</el-form-item>
|
{{ formData.templateId }} | {{ formData.templateCode }}
|
||||||
</el-col>
|
<dict-tag :type="DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE" :value="formData.templateType" />
|
||||||
<el-col :span="24">
|
</el-descriptions-item>
|
||||||
<el-form-item label="短信模板:">
|
<el-descriptions-item label-align="right" width="50px" label="API 的模板编号:">
|
||||||
{{ formData.templateId }} | {{ formData.templateCode }}
|
{{ formData.apiTemplateId }}
|
||||||
<dict-tag :type="DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE" :value="formData.templateType" />
|
</el-descriptions-item>
|
||||||
</el-form-item>
|
<el-descriptions-item label-align="right" width="50px" label="用户信息:">
|
||||||
</el-col>
|
{{ formData.mobile }}
|
||||||
<el-col :span="24">
|
<span v-if="formData.userType && formData.userId">
|
||||||
<el-form-item label="API 的模板编号:">{{ formData.apiTemplateId }}</el-form-item>
|
<dict-tag :type="DICT_TYPE.USER_TYPE" :value="formData.userType" />
|
||||||
</el-col>
|
({{ formData.userId }})
|
||||||
<el-col :span="24">
|
</span>
|
||||||
<el-form-item label="用户信息:"
|
</el-descriptions-item>
|
||||||
>{{ formData.mobile }}
|
<el-descriptions-item label-align="right" width="50px" label="短信内容:">
|
||||||
<span v-if="formData.userType && formData.userId">
|
{{ formData.templateContent }}
|
||||||
<dict-tag :type="DICT_TYPE.USER_TYPE" :value="formData.userType" />({{
|
</el-descriptions-item>
|
||||||
formData.userId
|
<el-descriptions-item label-align="right" width="50px" label="短信参数:">
|
||||||
}})
|
{{ formData.templateParams }}
|
||||||
</span>
|
</el-descriptions-item>
|
||||||
</el-form-item>
|
<el-descriptions-item label-align="right" width="50px" label="创建时间:">
|
||||||
</el-col>
|
{{ parseTime(formData.createTime) }}
|
||||||
<el-col :span="24">
|
</el-descriptions-item>
|
||||||
<el-form-item label="短信内容:">{{ formData.templateContent }}</el-form-item>
|
<el-descriptions-item label-align="right" width="50px" label="发送状态:">
|
||||||
</el-col>
|
<dict-tag :type="DICT_TYPE.SYSTEM_SMS_SEND_STATUS" :value="formData.sendStatus" />
|
||||||
<el-col :span="24">
|
</el-descriptions-item>
|
||||||
<el-form-item label="短信参数:">{{ formData.templateParams }}</el-form-item>
|
<el-descriptions-item label-align="right" width="50px" label="发送时间:">
|
||||||
</el-col>
|
{{ parseTime(formData.sendTime) }}
|
||||||
<el-col :span="24">
|
</el-descriptions-item>
|
||||||
<el-form-item label="创建时间:">{{ parseTime(formData.createTime) }}</el-form-item>
|
<el-descriptions-item label-align="right" width="50px" label="发送结果:">
|
||||||
</el-col>
|
{{ formData.sendCode }} | {{ formData.sendMsg }}
|
||||||
<el-col :span="24">
|
</el-descriptions-item>
|
||||||
<el-form-item label="发送状态:">
|
<el-descriptions-item label-align="right" width="50px" label="API 发送结果:">
|
||||||
<dict-tag :type="DICT_TYPE.SYSTEM_SMS_SEND_STATUS" :value="formData.sendStatus" />
|
{{ formData.apiSendCode }} | {{ formData.apiSendMsg }}
|
||||||
</el-form-item>
|
</el-descriptions-item>
|
||||||
</el-col>
|
<el-descriptions-item label-align="right" width="50px" label="API 短信编号:">
|
||||||
<el-col :span="24">
|
{{ formData.apiSerialNo }}
|
||||||
<el-form-item label="发送时间:">{{ parseTime(formData.sendTime) }}</el-form-item>
|
</el-descriptions-item>
|
||||||
</el-col>
|
<el-descriptions-item label-align="right" width="50px" label="API 请求编号:">
|
||||||
<el-col :span="24">
|
{{ formData.apiRequestId }}
|
||||||
<el-form-item label="发送结果:"
|
</el-descriptions-item>
|
||||||
>{{ formData.sendCode }} | {{ formData.sendMsg }}
|
<el-descriptions-item label-align="right" width="50px" label="接收状态:">
|
||||||
</el-form-item>
|
<dict-tag :type="DICT_TYPE.SYSTEM_SMS_RECEIVE_STATUS" :value="formData.receiveStatus" />
|
||||||
</el-col>
|
</el-descriptions-item>
|
||||||
<el-col :span="24">
|
<el-descriptions-item label-align="right" width="50px" label="接收时间:">
|
||||||
<el-form-item label="API 发送结果:"
|
{{ parseTime(formData.receiveTime) }}
|
||||||
>{{ formData.apiSendCode }} | {{ formData.apiSendMsg }}</el-form-item
|
</el-descriptions-item>
|
||||||
>
|
<el-descriptions-item label-align="right" width="50px" label="API 接收结果:">
|
||||||
</el-col>
|
{{ formData.apiReceiveCode }} | {{ formData.apiReceiveMsg }}
|
||||||
<el-col :span="24">
|
</el-descriptions-item>
|
||||||
<el-form-item label="API 短信编号:">{{ formData.apiSerialNo }}</el-form-item>
|
</el-descriptions>
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item label="API 请求编号:">{{ formData.apiRequestId }}</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item label="接收状态:">
|
|
||||||
<dict-tag
|
|
||||||
:type="DICT_TYPE.SYSTEM_SMS_RECEIVE_STATUS"
|
|
||||||
:value="formData.receiveStatus"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item label="接收时间:">{{ parseTime(formData.receiveTime) }}</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item label="API 接收结果:"
|
|
||||||
>{{ formData.apiReceiveCode }} | {{ formData.apiReceiveMsg }}
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-form>
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button @click="open = false">关 闭</el-button>
|
<el-button @click="open = false">关 闭</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</Dialog>
|
||||||
</content-wrap>
|
</content-wrap>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="smsLog">
|
<script setup lang="ts" name="smsLog">
|
||||||
|
Loading…
Reference in New Issue
Block a user