|
|
@ -51,6 +51,7 @@ |
|
|
|
<quill-editor |
|
|
|
:max-size="maxSize" |
|
|
|
:placeholder="placeholderParticipants" |
|
|
|
:value="participants" |
|
|
|
@changeInput="changeInput" |
|
|
|
/> |
|
|
|
</a-form-item> |
|
|
@ -63,6 +64,7 @@ |
|
|
|
<quill-editor |
|
|
|
:max-size="maxSize" |
|
|
|
:placeholder="placeholderContent" |
|
|
|
:value="discussionContent" |
|
|
|
@changeInput="changeInput" |
|
|
|
/> |
|
|
|
</a-form-item> |
|
|
@ -75,6 +77,7 @@ |
|
|
|
<quill-editor |
|
|
|
:max-size="maxSize" |
|
|
|
:placeholder="placeholderMeeting" |
|
|
|
:value="meetingMinutes" |
|
|
|
@changeInput="changeInput" |
|
|
|
/> |
|
|
|
</a-form-item> |
|
|
@ -92,8 +95,8 @@ |
|
|
|
import MeetingPreview from 'components/MeetingPreview/MeetingPreview.vue'; |
|
|
|
import QuillEditor from 'components/QuillEditor/QuillEditor.vue'; |
|
|
|
import moment from 'moment'; |
|
|
|
import { saveConRec, shareConRec } from 'config/api'; |
|
|
|
import { mapMutations } from 'vuex'; |
|
|
|
import { saveConRec, shareConRec, getConRec } from 'config/api'; |
|
|
|
import { mapState, mapMutations } from 'vuex'; |
|
|
|
|
|
|
|
const formItemLayout = { |
|
|
|
labelCol: { span: 4 }, |
|
|
@ -125,6 +128,14 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
computed: mapState('home', ['ptProps']), |
|
|
|
|
|
|
|
mounted() { |
|
|
|
if (this.ptProps.taskId) { |
|
|
|
this.getConRec(this.ptProps.taskId); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
...mapMutations('home', ['setPreviewInfo']), |
|
|
|
moment, |
|
|
@ -183,6 +194,30 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 查看会议纪要 |
|
|
|
async getConRec(taskId) { |
|
|
|
try { |
|
|
|
const params = { param: { taskId } }; |
|
|
|
const res = await getConRec(params); |
|
|
|
const { data, msg, code } = res.data; |
|
|
|
if (code === 200) { |
|
|
|
console.log('查看会议纪要data: ', data); |
|
|
|
data.discussionContent = this.discussionContent; |
|
|
|
data.endTime = this.endTime; |
|
|
|
data.host = this.host; |
|
|
|
data.meetingMinutes = this.meetingMinutes; |
|
|
|
data.participants = this.participants; |
|
|
|
data.place = this.place; |
|
|
|
data.startTime = this.startTime; |
|
|
|
data.taskId = this.taskId; |
|
|
|
} else { |
|
|
|
throw msg; |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
this.$message.error(error || '查看失败'); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 预览 |
|
|
|
async openPreview() { |
|
|
|
const { host, place, startTime, endTime, participants, discussionContent, meetingMinutes } = this; |
|
|
@ -194,7 +229,7 @@ export default { |
|
|
|
// 分享 |
|
|
|
async shareConRec() { |
|
|
|
try { |
|
|
|
const params = { param: { taskId: 0 } }; |
|
|
|
const params = { param: { taskId: this.ptProps.taskId } }; |
|
|
|
const res = await shareConRec(params); |
|
|
|
const { data, msg, code } = res.data; |
|
|
|
if (code === 200) { |
|
|
|