Skip to content

Commit f9f3c20

Browse files
YunaiVgitee-org
authored andcommitted
!27 修改测试所提bug
Merge pull request !27 from 周建/master
2 parents 2323946 + be6e307 commit f9f3c20

File tree

13 files changed

+140
-67
lines changed

13 files changed

+140
-67
lines changed

src/views/bpm/form/form.data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const rules = reactive({
1010
// CrudSchema
1111
const crudSchemas = reactive<VxeCrudSchema>({
1212
primaryKey: 'id',
13-
primaryType: 'seq',
13+
primaryType: 'id',
1414
primaryTitle: '表单编号',
1515
action: true,
1616
columns: [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
33
// CrudSchema
44
const crudSchemas = reactive<VxeCrudSchema>({
55
primaryKey: 'id',
6-
primaryType: 'seq',
6+
primaryType: 'id',
77
primaryTitle: '日志编号',
88
action: true,
99
actionWidth: '80px',

src/views/infra/apiErrorLog/apiErrorLog.data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
33
// CrudSchema
44
const crudSchemas = reactive<VxeCrudSchema>({
55
primaryKey: 'id',
6-
primaryType: 'seq',
6+
primaryType: 'id',
77
primaryTitle: '日志编号',
88
action: true,
99
actionWidth: '300',

src/views/infra/fileConfig/fileConfig.data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const rules = reactive({
2323
// CrudSchema
2424
const crudSchemas = reactive<VxeCrudSchema>({
2525
primaryKey: 'id',
26-
primaryType: 'seq',
26+
primaryType: 'id',
2727
primaryTitle: '配置编号',
2828
action: true,
2929
actionWidth: '400px',

src/views/infra/job/JobLog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const detailData = ref() // 详情 Ref
7070
// 详情操作
7171
const handleDetail = async (row: JobLogApi.JobLogVO) => {
7272
// 设置数据
73-
const res = JobLogApi.getJobLogApi(row.id)
73+
const res = await JobLogApi.getJobLogApi(row.id)
7474
detailData.value = res
7575
dialogTitle.value = t('action.detail')
7676
dialogVisible.value = true

src/views/infra/job/job.data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const rules = reactive({
1111
// CrudSchema
1212
const crudSchemas = reactive<VxeCrudSchema>({
1313
primaryKey: 'id',
14-
primaryType: 'seq',
14+
primaryType: 'id',
1515
primaryTitle: '任务编号',
1616
action: true,
1717
actionWidth: '280px',

src/views/infra/job/jobLog.data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { t } = useI18n()
44
// CrudSchema
55
const crudSchemas = reactive<VxeCrudSchema>({
66
primaryKey: 'id',
7-
primaryType: 'seq',
7+
primaryType: 'id',
88
primaryTitle: '日志编号',
99
action: true,
1010
columns: [

src/views/system/sms/smsChannel/sms.channel.data.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
2+
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
3+
24
const { t } = useI18n() // 国际化
35

6+
const authorizedGrantOptions = getStrDictOptions(DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE)
7+
48
// 表单校验
59
export const rules = reactive({
610
signature: [required],
@@ -24,8 +28,17 @@ const crudSchemas = reactive<VxeCrudSchema>({
2428
{
2529
title: '渠道编码',
2630
field: 'code',
27-
dictType: DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE,
28-
isSearch: true
31+
// dictType: DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE,
32+
// dictClass: 'string',
33+
isSearch: true,
34+
form: {
35+
component: 'Select',
36+
componentProps: {
37+
options: authorizedGrantOptions,
38+
multiple: false,
39+
filterable: true
40+
}
41+
}
2942
},
3043
{
3144
title: t('common.status'),

src/views/system/sms/smsLog/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ const [registerTable, { exportList }] = useXTable({
4444
4545
// 弹窗相关的变量
4646
const dialogVisible = ref(false) // 是否显示弹出层
47-
const dialogTitle = ref('edit') // 弹出层标题
47+
const dialogTitle = ref(t('action.detail')) // 弹出层标题
4848
const actionType = ref('') // 操作按钮的类型
4949
// ========== 详情相关 ==========
5050
const detailData = ref() // 详情 Ref
5151
const handleDetail = (row: SmsLoglApi.SmsLogVO) => {
5252
// 设置数据
53+
actionType.value = 'detail'
5354
detailData.value = row
5455
dialogVisible.value = true
5556
}

src/views/system/sms/smsLog/sms.log.data.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
2+
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
3+
24
const { t } = useI18n() // 国际化
35

6+
const authorizedGrantOptions = getStrDictOptions(DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE)
47
// CrudSchema
58
const crudSchemas = reactive<VxeCrudSchema>({
69
primaryKey: 'id',
@@ -25,9 +28,17 @@ const crudSchemas = reactive<VxeCrudSchema>({
2528
{
2629
title: '短信渠道',
2730
field: 'channelId',
28-
dictType: DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE,
29-
dictClass: 'number',
30-
isSearch: true
31+
// dictType: DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE,
32+
// dictClass: 'number',
33+
isSearch: true,
34+
// table: {
35+
// component: 'Select',
36+
componentProps: {
37+
options: authorizedGrantOptions
38+
// multiple: false,
39+
// filterable: true
40+
}
41+
// }
3142
},
3243
{
3344
title: '发送状态',

0 commit comments

Comments
 (0)