File tree Expand file tree Collapse file tree 10 files changed +77
-18
lines changed
bpmnProcessDesigner/package/penal/multi-instance Expand file tree Collapse file tree 10 files changed +77
-18
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 3
3
<el-form label-width =" 90px" >
4
4
<el-form-item label =" 回路特性" >
5
5
<el-select v-model =" loopCharacteristics" @change =" changeLoopCharacteristicsType" >
6
- <!-- bpmn:MultiInstanceLoopCharacteristics-->
7
6
<el-option label =" 并行多重事件" value =" ParallelMultiInstance" />
8
7
<el-option label =" 时序多重事件" value =" SequentialMultiInstance" />
9
- <!-- bpmn:StandardLoopCharacteristics-->
10
8
<el-option label =" 循环事件" value =" StandardLoop" />
11
9
<el-option label =" 无" value =" Null" />
12
10
</el-select >
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' ,
Original file line number Diff line number Diff line change @@ -123,14 +123,37 @@ const setDialogTile = (type: string) => {
123
123
}
124
124
125
125
// 新增操作
126
- const handleCreate = () => {
126
+ const handleCreate = async () => {
127
127
// 重置表单
128
128
setDialogTile (' create' )
129
+ await nextTick ()
130
+ console .log (allSchemas .formSchema , ' allSchemas.formSchema' )
131
+ if (allSchemas .formSchema [4 ].field !== ' username' ) {
132
+ unref (formRef )?.addSchema (
133
+ {
134
+ field: ' username' ,
135
+ label: ' 用户名称' ,
136
+ component: ' Input'
137
+ },
138
+ 0
139
+ )
140
+ unref (formRef )?.addSchema (
141
+ {
142
+ field: ' password' ,
143
+ label: ' 用户密码' ,
144
+ component: ' InputPassword'
145
+ },
146
+ 1
147
+ )
148
+ }
129
149
}
130
150
131
151
// 修改操作
132
152
const handleUpdate = async (rowId : number ) => {
133
153
setDialogTile (' update' )
154
+ await nextTick ()
155
+ unref (formRef )?.delSchema (' username' )
156
+ unref (formRef )?.delSchema (' password' )
134
157
// 设置数据
135
158
const res = await TenantApi .getTenantApi (rowId )
136
159
unref (formRef )?.setValues (res )
Original file line number Diff line number Diff line change @@ -123,8 +123,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
123
123
title : '用户名称' ,
124
124
field : 'username' ,
125
125
isTable : false ,
126
- isDetail : false ,
127
- isForm : false
126
+ isDetail : false
128
127
} ,
129
128
{
130
129
title : '用户密码' ,
@@ -133,8 +132,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
133
132
isDetail : false ,
134
133
form : {
135
134
component : 'InputPassword'
136
- } ,
137
- isForm : false
135
+ }
138
136
} ,
139
137
{
140
138
title : '账号额度' ,
Original file line number Diff line number Diff line change @@ -60,6 +60,13 @@ const crudSchemas = reactive<VxeCrudSchema>({
60
60
component : 'InputPassword'
61
61
}
62
62
} ,
63
+ {
64
+ title : '用户' + t ( 'profile.user.sex' ) ,
65
+ field : 'sex' ,
66
+ dictType : DICT_TYPE . SYSTEM_USER_SEX ,
67
+ dictClass : 'number' ,
68
+ table : { show : false }
69
+ } ,
63
70
{
64
71
title : '用户昵称' ,
65
72
field : 'nickname'
You can’t perform that action at this time.
0 commit comments