File tree Expand file tree Collapse file tree 6 files changed +44
-11
lines changed Expand file tree Collapse file tree 6 files changed +44
-11
lines changed Original file line number Diff line number Diff line change @@ -53,5 +53,5 @@ export const getSmsLogPageApi = (params: SmsLogPageReqVO) => {
53
53
54
54
// 导出短信日志
55
55
export const exportSmsLogApi = ( params : SmsLogExportReqVO ) => {
56
- return request . download ( { url : '/system/sms-log/export' , params } )
56
+ return request . download ( { url : '/system/sms-log/export-excel ' , params } )
57
57
}
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ const getColumnsConfig = (options: XTableProps) => {
128
128
proxyForm = true
129
129
options .formConfig = {
130
130
enabled: true ,
131
- titleWidth: 100 ,
131
+ titleWidth: 180 ,
132
132
titleAlign: ' right' ,
133
133
items: allSchemas .searchSchema
134
134
}
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
10
10
columns : [
11
11
{
12
12
title : '链路追踪' ,
13
- field : 'traceId'
13
+ field : 'traceId' ,
14
+ isTable : false
14
15
} ,
15
16
{
16
17
title : '用户编号' ,
Original file line number Diff line number Diff line change 8
8
<el-button size =" small" type =" primary" @click =" showJson" >生成JSON</el-button >
9
9
<el-button size =" small" type =" success" @click =" showOption" >生成Options</el-button >
10
10
<el-button size =" small" type =" danger" @click =" showTemplate" >生成组件</el-button >
11
- <el-button size =" small" @click =" changeLocale" >中英切换</el-button >
11
+ <!-- < el-button size="small" @click="changeLocale">中英切换</el-button> -- >
12
12
</div >
13
13
</el-col >
14
14
<el-col >
19
19
<div ref =" editor" v-if =" dialogVisible" >
20
20
<XTextButton style =" float : right " :title =" t('common.copy')" @click =" copy(formValue)" />
21
21
<el-scrollbar height =" 580" >
22
- <pre >
23
- {{ formValue }}
24
- </pre >
22
+ <div v-highlight >
23
+ <code class =" hljs" >
24
+ {{ formValue }}
25
+ </code >
26
+ </div >
25
27
</el-scrollbar >
26
28
</div >
27
29
<span style =" color : red " v-if =" err" >输入内容格式有误!</span >
@@ -69,9 +71,9 @@ const showTemplate = () => {
69
71
type .value = 2
70
72
formValue .value = makeTemplate ()
71
73
}
72
- const changeLocale = () => {
73
- console .info (' changeLocale' )
74
- }
74
+ // const changeLocale = () => {
75
+ // console.info('changeLocale')
76
+ // }
75
77
76
78
/** 复制 **/
77
79
const copy = async (text : string ) => {
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ const crudSchemas = reactive<VxeCrudSchema>({
22
22
primaryType : null ,
23
23
action : true ,
24
24
columns : [
25
+ {
26
+ title : '客户端端号' ,
27
+ field : 'clientId'
28
+ } ,
25
29
{
26
30
title : '客户端密钥' ,
27
31
field : 'secret'
Original file line number Diff line number Diff line change 1
1
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
2
+ import * as smsApi from '@/api/system/sms/smsChannel'
2
3
const { t } = useI18n ( ) // 国际化
3
-
4
+ const tenantPackageOption = [ ]
5
+ const getTenantPackageOptions = async ( ) => {
6
+ const res = await smsApi . getSimpleSmsChannels ( )
7
+ console . log ( res , 'resresres' )
8
+ res . forEach ( ( tenantPackage : TenantPackageVO ) => {
9
+ tenantPackageOption . push ( {
10
+ key : tenantPackage . id ,
11
+ value : tenantPackage . id ,
12
+ label : tenantPackage . signature
13
+ } )
14
+ } )
15
+ }
16
+ getTenantPackageOptions ( )
4
17
// 表单校验
5
18
export const rules = reactive ( {
6
19
type : [ required ] ,
@@ -20,6 +33,19 @@ const crudSchemas = reactive<VxeCrudSchema>({
20
33
action : true ,
21
34
actionWidth : '280' ,
22
35
columns : [
36
+ {
37
+ title : '短信渠道编码' ,
38
+ field : 'channelId' ,
39
+ isSearch : false ,
40
+ isForm : true ,
41
+ isTable : false ,
42
+ form : {
43
+ component : 'Select' ,
44
+ componentProps : {
45
+ options : tenantPackageOption
46
+ }
47
+ }
48
+ } ,
23
49
{
24
50
title : '模板编码' ,
25
51
field : 'code' ,
You can’t perform that action at this time.
0 commit comments