File tree Expand file tree Collapse file tree 9 files changed +16
-15
lines changed Expand file tree Collapse file tree 9 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export interface NotifyMessageVO {
13
13
templateParams : string
14
14
readStatus : boolean
15
15
readTime : Date
16
+ createTime : Date
16
17
}
17
18
18
19
// 查询站内信消息列表
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export interface NotifyTemplateVO {
6
6
nickname : string
7
7
code : string
8
8
content : string
9
- type : number
9
+ type ? : number
10
10
params : string
11
11
status : number
12
12
remark : string
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ defineOptions({ name: 'SystemNotifyMessageDetail' })
49
49
50
50
const dialogVisible = ref (false ) // 弹窗的是否展示
51
51
const detailLoading = ref (false ) // 表单的加载中
52
- const detailData = ref () // 详情数据
52
+ const detailData = ref ({} as NotifyMessageApi . NotifyMessageVO ) // 详情数据
53
53
54
54
/** 打开弹窗 */
55
55
const open = async (data : NotifyMessageApi .NotifyMessageVO ) => {
Original file line number Diff line number Diff line change 28
28
>
29
29
<el-option
30
30
v-for =" dict in getIntDictOptions(DICT_TYPE.USER_TYPE)"
31
- :key =" dict.value"
31
+ :key =" dict.value as number "
32
32
:label =" dict.label"
33
33
:value =" dict.value"
34
34
/>
52
52
>
53
53
<el-option
54
54
v-for =" dict in getIntDictOptions(DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE)"
55
- :key =" dict.value"
55
+ :key =" dict.value as number "
56
56
:label =" dict.label"
57
57
:value =" dict.value"
58
58
/>
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ defineOptions({ name: 'MyNotifyMessageDetailDetail' })
31
31
32
32
const dialogVisible = ref (false ) // 弹窗的是否展示
33
33
const detailLoading = ref (false ) // 表单的加载中
34
- const detailData = ref () // 详情数据
34
+ const detailData = ref ({} as NotifyMessageApi . NotifyMessageVO ) // 详情数据
35
35
36
36
/** 打开弹窗 */
37
37
const open = async (data : NotifyMessageApi .NotifyMessageVO ) => {
Original file line number Diff line number Diff line change 19
19
>
20
20
<el-option
21
21
v-for =" dict in getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)"
22
- :key =" dict.value"
22
+ :key =" dict.value as number "
23
23
:label =" dict.label"
24
24
:value =" dict.value"
25
25
/>
Original file line number Diff line number Diff line change 23
23
<el-select v-model =" formData.type" placeholder =" 请选择类型" >
24
24
<el-option
25
25
v-for =" dict in getIntDictOptions(DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE)"
26
- :key =" dict.value"
26
+ :key =" dict.value as number "
27
27
:label =" dict.label"
28
28
:value =" dict.value"
29
29
/>
33
33
<el-radio-group v-model =" formData.status" >
34
34
<el-radio
35
35
v-for =" dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
36
- :key =" dict.value"
36
+ :key =" dict.value as number "
37
37
:label =" dict.value as string"
38
38
>
39
39
{{ dict.label }}
@@ -61,12 +61,12 @@ const dialogTitle = ref('') // 弹窗的标题
61
61
const formLoading = ref (false ) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
62
62
const formType = ref (' ' ) // 表单的类型
63
63
const formData = ref <NotifyTemplateApi .NotifyTemplateVO >({
64
- id: null ,
64
+ id: undefined ,
65
65
name: ' ' ,
66
66
nickname: ' ' ,
67
67
code: ' ' ,
68
68
content: ' ' ,
69
- type: null ,
69
+ type: undefined ,
70
70
params: ' ' ,
71
71
status: CommonStatusEnum .ENABLE ,
72
72
remark: ' '
@@ -126,12 +126,12 @@ const submitForm = async () => {
126
126
/** 重置表单 */
127
127
const resetForm = () => {
128
128
formData .value = {
129
- id: null ,
129
+ id: undefined ,
130
130
name: ' ' ,
131
131
nickname: ' ' ,
132
132
code: ' ' ,
133
133
content: ' ' ,
134
- type: null ,
134
+ type: undefined ,
135
135
params: ' ' ,
136
136
status: CommonStatusEnum .ENABLE ,
137
137
remark: ' '
Original file line number Diff line number Diff line change 19
19
<el-radio-group v-model =" formData.userType" >
20
20
<el-radio
21
21
v-for =" dict in getIntDictOptions(DICT_TYPE.USER_TYPE)"
22
- :key =" dict.value"
22
+ :key =" dict.value as number "
23
23
:label =" dict.value as number"
24
24
>
25
25
{{ dict.label }}
@@ -71,7 +71,7 @@ const formLoading = ref(false) // 表单的加载中:1)修改时的数据加
71
71
const formData = ref ({
72
72
content: ' ' ,
73
73
params: {},
74
- userId: null ,
74
+ userId: undefined ,
75
75
userType: 1 ,
76
76
templateCode: ' ' ,
77
77
templateParams: new Map ()
Original file line number Diff line number Diff line change 37
37
>
38
38
<el-option
39
39
v-for =" dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
40
- :key =" dict.value"
40
+ :key =" dict.value as number "
41
41
:label =" dict.label"
42
42
:value =" dict.value"
43
43
/>
You can’t perform that action at this time.
0 commit comments