You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< ContentWrap >
<!-- 列表 -- >
< XTable @register ="registerTable" >
< ! - - 操 作 : 导 出 - - >
< template # toolbar_buttons >
< XButton
type = "warning"
preIcon = "ep:download"
:title ="t('action.export')"
@click ="exportList('短信日志.xls')"
/ >
< / template >
< template # actionbtns_default = "{ row }" >
< XTextButton preIcon = "ep:view" :title ="t('action.detail')" @click ="handleDetail(row)" / >
< / template >
< / XTable >
< / ContentWrap >
< XModal id = "smsLog" v-model ="dialogVisible" :title ="dialogTitle" >
< ! - - 对 话 框 ( 详 情 ) - - >
< Descriptions
v-if ="actionType === 'detail'"
:schema="allSchemas.detailSchema"
:data="detailData"
/>
<!-- 操作按钮 -->
<template #footer>
<XButton :title="t('dialog.close')" @click="dialogVisible = false" />
</template>
</XModal>
</template>
<script setup lang="ts" name="SmsLog" >
import { allSchemas } from ' . / sms.log.data '
import * as SmsLoglApi from ' @ / api / system / sms / smsLog '
const { t } = useI18n ( ) / / 国 际 化
/ / 列 表 相 关 的 变 量
const [ registerTable , { exportList } ] = useXTable ( {
allSchemas : allSchemas ,
getListApi : SmsLoglApi.getSmsLogPageApi ,
exportListApi : SmsLoglApi.exportSmsLogApi
} )
/ / 弹 窗 相 关 的 变 量
const dialogVisible = ref ( false ) / / 是 否 显 示 弹 出 层
const dialogTitle = ref ( ' 详 情 ' ) / / 弹 出 层 标 题
const actionType = ref ( ' ' ) / / 操 作 按 钮 的 类 型
/ / = = = = = = = = = = 详 情 相 关 = = = = = = = = = =
const detailData = ref ( ) / / 详 情 Ref
const handleDetail = ( row : SmsLoglApi.SmsLogVO ) = > {
// 设置数据
actionType . value = 'detail'
detailData . value = row
dialogVisible . value = true
}
< / script >