9cd53a9f
wuxw
完成办公功能
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
export default {
name: 'AddNotepad',
data() {
return {
visible: false,
addNotepadInfo: {
noteId: '',
noteType: '',
title: '',
roomName: '',
roomId: '',
objId: '',
objName: '',
objType: '3309',
link: '',
noteTypes: [],
communityId: ''
},
rules: {
roomName: [
{ required: true, message: this.$t('addNotepad.roomRequired'), trigger: 'blur' }
],
objName: [
{ required: true, message: this.$t('addNotepad.contactRequired'), trigger: 'blur' }
],
link: [
{ required: true, message: this.$t('addNotepad.phoneRequired'), trigger: 'blur' },
{ pattern: /^1[3-9]\d{9}$/, message: this.$t('addNotepad.phoneFormat'), trigger: 'blur' }
],
noteType: [
{ required: true, message: this.$t('addNotepad.typeRequired'), trigger: 'change' }
],
title: [
{ required: true, message: this.$t('addNotepad.contentRequired'), trigger: 'blur' },
{ max: 256, message: this.$t('addNotepad.contentMaxLength'), trigger: 'blur' }
]
}
}
},
methods: {
open(params) {
this.visible = true
this.addNotepadInfo = {
...this.addNotepadInfo,
...params,
communityId: getCommunityId()
}
this.getNoteTypes()
|
9cd53a9f
wuxw
完成办公功能
|
86
87
88
89
90
91
92
93
94
|
},
async getNoteTypes() {
try {
const data = await getDict('notepad', 'note_type')
this.addNotepadInfo.noteTypes = data
} catch (error) {
console.error('Failed to get note types:', error)
}
},
|
f143e79f
wuxw
v1.9 产权登记看不到图片bug
|
95
96
97
98
99
100
101
102
103
104
105
|
async listNotepadRoom() {
const { rooms } = await queryRooms({
communityId: this.addNotepadInfo.communityId,
page:1,
row:1,
roomId:this.addNotepadInfo.roomId
})
Object.assign(this.addNotepadInfo,rooms[0])
this.addNotepadInfo.objId = rooms[0].ownerId
this.addNotepadInfo.objName = rooms[0].ownerName
},
|