|
@ -3,11 +3,10 @@ |
|
|
<div class="metting"> |
|
|
<div class="metting"> |
|
|
<a-card :bordered="false" title="会议记录"> |
|
|
<a-card :bordered="false" title="会议记录"> |
|
|
<div class="d-flex flex-nowrap" slot="extra"> |
|
|
<div class="d-flex flex-nowrap" slot="extra"> |
|
|
<!-- <a-button @click="openPreview" class="mr-3" type="primary">预览</a-button> --> |
|
|
|
|
|
<div @click="openPreview"> |
|
|
<div @click="openPreview"> |
|
|
<meeting-preview class="mr-3" ref="meetingPreview" /> |
|
|
<meeting-preview class="mr-3" ref="meetingPreview" /> |
|
|
</div> |
|
|
</div> |
|
|
<a-button>分享</a-button> |
|
|
<a-button @click="shareConRec">分享</a-button> |
|
|
</div> |
|
|
</div> |
|
|
<a-form :form="form" @submit="handleSubmit"> |
|
|
<a-form :form="form" @submit="handleSubmit"> |
|
|
<!-- 会议时间 --> |
|
|
<!-- 会议时间 --> |
|
@ -90,11 +89,11 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import MeetingPreview from 'components/MeetingPreview/MeetingPreview.vue'; |
|
|
import QuillEditor from 'components/QuillEditor/QuillEditor.vue'; |
|
|
import QuillEditor from 'components/QuillEditor/QuillEditor.vue'; |
|
|
import moment from 'moment'; |
|
|
import moment from 'moment'; |
|
|
import { saveConferenceRecords } from 'config/api'; |
|
|
import { saveConRec, shareConRec } from 'config/api'; |
|
|
import { mapMutations } from 'vuex'; |
|
|
import { mapMutations } from 'vuex'; |
|
|
import MeetingPreview from 'components/MeetingPreview/MeetingPreview.vue'; |
|
|
|
|
|
|
|
|
|
|
|
const formItemLayout = { |
|
|
const formItemLayout = { |
|
|
labelCol: { span: 4 }, |
|
|
labelCol: { span: 4 }, |
|
@ -161,7 +160,7 @@ export default { |
|
|
const previewInfo = { host, place, startTime, endTime, participants, meetingMinutes, discussionContent }; |
|
|
const previewInfo = { host, place, startTime, endTime, participants, meetingMinutes, discussionContent }; |
|
|
// 提交表单 |
|
|
// 提交表单 |
|
|
const params = previewInfo; |
|
|
const params = previewInfo; |
|
|
this.saveConferenceRecords(params); |
|
|
this.saveConRec(params); |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
this.$message.error(error || '提交失败'); |
|
|
this.$message.error(error || '提交失败'); |
|
|
} |
|
|
} |
|
@ -170,9 +169,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 提交表单 |
|
|
// 提交表单 |
|
|
async saveConferenceRecords(params) { |
|
|
async saveConRec(params) { |
|
|
try { |
|
|
try { |
|
|
const res = await saveConferenceRecords(params); |
|
|
const res = await saveConRec(params); |
|
|
const { data, msg, code } = res.data; |
|
|
const { data, msg, code } = res.data; |
|
|
if (code === 200) { |
|
|
if (code === 200) { |
|
|
this.$message.success('提交成功'); |
|
|
this.$message.success('提交成功'); |
|
@ -191,6 +190,22 @@ export default { |
|
|
await this.setPreviewInfo(previewInfo); |
|
|
await this.setPreviewInfo(previewInfo); |
|
|
this.$refs.meetingPreview.openModal(); |
|
|
this.$refs.meetingPreview.openModal(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 分享 |
|
|
|
|
|
async shareConRec() { |
|
|
|
|
|
try { |
|
|
|
|
|
const params = { param: { taskId: 0 } }; |
|
|
|
|
|
const res = await shareConRec(params); |
|
|
|
|
|
const { data, msg, code } = res.data; |
|
|
|
|
|
if (code === 200) { |
|
|
|
|
|
console.log('data: ', data); |
|
|
|
|
|
} else { |
|
|
|
|
|
throw msg; |
|
|
|
|
|
} |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
this.$message.error(error || '分享失败'); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|