Skip to content

Commit aad49fd

Browse files
YunaiVgitee-org
authored andcommitted
!32 测试人员所提bug修改
Merge pull request !32 from 周建/master
2 parents f9f3c20 + 629c177 commit aad49fd

File tree

10 files changed

+77
-18
lines changed

10 files changed

+77
-18
lines changed

src/api/system/sms/smsLog/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ export const getSmsLogPageApi = (params: SmsLogPageReqVO) => {
5353

5454
// 导出短信日志
5555
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 })
5757
}

src/components/XTable/src/XTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const getColumnsConfig = (options: XTableProps) => {
128128
proxyForm = true
129129
options.formConfig = {
130130
enabled: true,
131-
titleWidth: 100,
131+
titleWidth: 180,
132132
titleAlign: 'right',
133133
items: allSchemas.searchSchema
134134
}

src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
<el-form label-width="90px">
44
<el-form-item label="回路特性">
55
<el-select v-model="loopCharacteristics" @change="changeLoopCharacteristicsType">
6-
<!--bpmn:MultiInstanceLoopCharacteristics-->
76
<el-option label="并行多重事件" value="ParallelMultiInstance" />
87
<el-option label="时序多重事件" value="SequentialMultiInstance" />
9-
<!--bpmn:StandardLoopCharacteristics-->
108
<el-option label="循环事件" value="StandardLoop" />
119
<el-option label="" value="Null" />
1210
</el-select>

src/views/infra/apiAccessLog/apiAccessLog.data.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
1010
columns: [
1111
{
1212
title: '链路追踪',
13-
field: 'traceId'
13+
field: 'traceId',
14+
isTable: false
1415
},
1516
{
1617
title: '用户编号',

src/views/infra/build/index.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<el-button size="small" type="primary" @click="showJson">生成JSON</el-button>
99
<el-button size="small" type="success" @click="showOption">生成Options</el-button>
1010
<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> -->
1212
</div>
1313
</el-col>
1414
<el-col>
@@ -19,9 +19,11 @@
1919
<div ref="editor" v-if="dialogVisible">
2020
<XTextButton style="float: right" :title="t('common.copy')" @click="copy(formValue)" />
2121
<el-scrollbar height="580">
22-
<pre>
23-
{{ formValue }}
24-
</pre>
22+
<div v-highlight>
23+
<code class="hljs">
24+
{{ formValue }}
25+
</code>
26+
</div>
2527
</el-scrollbar>
2628
</div>
2729
<span style="color: red" v-if="err">输入内容格式有误!</span>
@@ -69,9 +71,9 @@ const showTemplate = () => {
6971
type.value = 2
7072
formValue.value = makeTemplate()
7173
}
72-
const changeLocale = () => {
73-
console.info('changeLocale')
74-
}
74+
// const changeLocale = () => {
75+
// console.info('changeLocale')
76+
// }
7577
7678
/** 复制 **/
7779
const copy = async (text: string) => {

src/views/system/oauth2/client/client.data.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ const crudSchemas = reactive<VxeCrudSchema>({
2222
primaryType: null,
2323
action: true,
2424
columns: [
25+
{
26+
title: '客户端端号',
27+
field: 'clientId'
28+
},
2529
{
2630
title: '客户端密钥',
2731
field: 'secret'

src/views/system/sms/smsTemplate/sms.template.data.ts

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
2+
import * as smsApi from '@/api/system/sms/smsChannel'
23
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()
417
// 表单校验
518
export const rules = reactive({
619
type: [required],
@@ -20,6 +33,19 @@ const crudSchemas = reactive<VxeCrudSchema>({
2033
action: true,
2134
actionWidth: '280',
2235
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+
},
2349
{
2450
title: '模板编码',
2551
field: 'code',

src/views/system/tenant/index.vue

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,37 @@ const setDialogTile = (type: string) => {
123123
}
124124
125125
// 新增操作
126-
const handleCreate = () => {
126+
const handleCreate = async () => {
127127
// 重置表单
128128
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+
}
129149
}
130150
131151
// 修改操作
132152
const handleUpdate = async (rowId: number) => {
133153
setDialogTile('update')
154+
await nextTick()
155+
unref(formRef)?.delSchema('username')
156+
unref(formRef)?.delSchema('password')
134157
// 设置数据
135158
const res = await TenantApi.getTenantApi(rowId)
136159
unref(formRef)?.setValues(res)

src/views/system/tenant/tenant.data.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
123123
title: '用户名称',
124124
field: 'username',
125125
isTable: false,
126-
isDetail: false,
127-
isForm: false
126+
isDetail: false
128127
},
129128
{
130129
title: '用户密码',
@@ -133,8 +132,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
133132
isDetail: false,
134133
form: {
135134
component: 'InputPassword'
136-
},
137-
isForm: false
135+
}
138136
},
139137
{
140138
title: '账号额度',

src/views/system/user/user.data.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ const crudSchemas = reactive<VxeCrudSchema>({
6060
component: 'InputPassword'
6161
}
6262
},
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+
},
6370
{
6471
title: '用户昵称',
6572
field: 'nickname'

0 commit comments

Comments
 (0)