|
|
@@ -5,6 +5,7 @@ import { PlusOutlined } from "@ant-design/icons-vue";
|
|
|
import PageHeader from '@/components/PageHeader.vue';
|
|
|
import RelationCompanyInput from './components/report-create/RelationCompanyInput.vue';
|
|
|
import ReportCategory from './components/report-create/ReportCategory.vue';
|
|
|
+import ReportKeywords from './components/report-create/ReportKeywords.vue';
|
|
|
import DynamicMeta from './components/dynamic-meta/DynamicMeta.vue';
|
|
|
import ChapterTypeSelect from "./components/ChapterTypeSelect.vue";
|
|
|
import LogoComponent from "./components/LogoComponent.vue";
|
|
|
@@ -166,7 +167,8 @@ function showTemplateSaveModal() {
|
|
|
function onSaveTemplate(modalData: ReportTemplateModal) {
|
|
|
let chapters = report.value?.chapters.map((chapter) => {
|
|
|
return {
|
|
|
- title: chapter.title
|
|
|
+ title: chapter.title,
|
|
|
+ keywords: chapter.keywords,
|
|
|
} as Chapter
|
|
|
})
|
|
|
const reportTemplateSave: ReportTemplateSave = {
|
|
|
@@ -179,6 +181,7 @@ function onSaveTemplate(modalData: ReportTemplateModal) {
|
|
|
|
|
|
reportTemplateService.save(reportTemplateSave).then(() => {
|
|
|
templateSaveModal.value?.complete()
|
|
|
+ message.success("模板保存成功")
|
|
|
}).catch((err) => {
|
|
|
logError(err)
|
|
|
templateSaveModal.value?.complete()
|
|
|
@@ -218,6 +221,7 @@ onUnmounted(() => {
|
|
|
<div class="metadata-wrap">
|
|
|
<RelationCompanyInput v-model:id="report.companyId" @change="onCompanyChange" />
|
|
|
<ReportCategory v-model="report.name" ref="reportCategoryEl" />
|
|
|
+ <ReportKeywords v-model="report.keywords" />
|
|
|
<DynamicMeta v-model:data="report.metadata" @change="onMetaChange" />
|
|
|
</div>
|
|
|
</a-col>
|
|
|
@@ -231,6 +235,7 @@ onUnmounted(() => {
|
|
|
v-for="(item, index) in chapterManager.getChapters()"
|
|
|
:key="index"
|
|
|
:data="item"
|
|
|
+ :reportKeywords="report.keywords"
|
|
|
@change="onChapterChange(index, $event)"
|
|
|
@move-up="onChapterMoveUp(index)"
|
|
|
@move-down="onChapterMoveDown(index)"
|