|
@@ -12,23 +12,19 @@
|
|
|
<h3>段落{{ index + 1 }}:</h3>
|
|
|
<span class="dele" v-if="index !== 0" @click="deleteSection(index)"> <img src="~@/assets/img/icons/delete-Item.png" /></span>
|
|
|
</div>
|
|
|
+ <div>
|
|
|
+ <el-checkbox v-model="item.isJumpNot">备选项</el-checkbox>
|
|
|
+ <template v-if="item.isJumpNot">
|
|
|
+ <el-input v-model="item.reportLink" placeholder="请输入报告链接"></el-input>
|
|
|
+ <el-input v-model="item.headTitle" placeholder="请输入首行标题"></el-input>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
<div class="fr-wrapper">
|
|
|
- <froala
|
|
|
- :id="`froala-editor-${index}`"
|
|
|
- :ref="`froalaEditor${index}`"
|
|
|
- :tag="'textarea'"
|
|
|
- :config="froalaConfig"
|
|
|
- v-model="item.content"
|
|
|
- ></froala>
|
|
|
+ <froala :id="`froala-editor-${index}`" :ref="`froalaEditor${index}`" :tag="'textarea'" :config="froalaConfig" v-model="item.content"></froala>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="classify-box">
|
|
|
- <el-select
|
|
|
- placeholder="请选择行业"
|
|
|
- v-model="item.industry"
|
|
|
- value-key="ChartPermissionId"
|
|
|
- @change="handleSelectChange(item, index, 'industry')"
|
|
|
- >
|
|
|
+ <el-select placeholder="请选择行业" v-model="item.industry" value-key="ChartPermissionId" @change="handleSelectChange(item, index, 'industry')">
|
|
|
<el-option
|
|
|
v-for="industry in industryData"
|
|
|
:key="industry.ChartPermissionId"
|
|
@@ -36,27 +32,11 @@
|
|
|
:value="{ ChartPermissionId: industry.ChartPermissionId, PermissionName: industry.PermissionName }"
|
|
|
/>
|
|
|
</el-select>
|
|
|
- <el-select
|
|
|
- placeholder="请选择产业"
|
|
|
- filterable
|
|
|
- v-model="item.property"
|
|
|
- value-key="ChartPermissionId"
|
|
|
- @change="handleSelectChange(item, index, 'property')"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="property in getPropertyData(item.industry)"
|
|
|
- :key="property.ChartPermissionId"
|
|
|
- :label="property.PermissionName"
|
|
|
- :value="property"
|
|
|
- />
|
|
|
+ <el-select placeholder="请选择产业" filterable v-model="item.property" value-key="ChartPermissionId" @change="handleSelectChange(item, index, 'property')">
|
|
|
+ <el-option v-for="property in getPropertyData(item.industry)" :key="property.ChartPermissionId" :label="property.PermissionName" :value="property" />
|
|
|
</el-select>
|
|
|
<el-select multiple placeholder="请选择标的" v-model="item.subject" @focus="getSubjectData(item.property)">
|
|
|
- <el-option
|
|
|
- v-for="subject in subjectData"
|
|
|
- :key="subject.IndustrialSubjectId"
|
|
|
- :label="subject.SubjectName"
|
|
|
- :value="subject.IndustrialSubjectId"
|
|
|
- />
|
|
|
+ <el-option v-for="subject in subjectData" :key="subject.IndustrialSubjectId" :label="subject.SubjectName" :value="subject.IndustrialSubjectId" />
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -74,25 +54,15 @@
|
|
|
|
|
|
<script>
|
|
|
import { raiInterface } from "@/api/api.js";
|
|
|
-export default {
|
|
|
+export default {
|
|
|
data() {
|
|
|
var that = this;
|
|
|
return {
|
|
|
meettingDate: "",
|
|
|
meetingId: 0,
|
|
|
froalaConfig: {
|
|
|
- toolbarButtons: [
|
|
|
- "bold",
|
|
|
- "italic",
|
|
|
- "underline",
|
|
|
- "strikeThrough",
|
|
|
- "insertHR",
|
|
|
- "fontSize",
|
|
|
- "align",
|
|
|
- "undo",
|
|
|
- "redo",
|
|
|
- ],
|
|
|
- height: 150,
|
|
|
+ toolbarButtons: ["bold", "italic", "underline", "strikeThrough", "insertHR", "fontSize", "align", "undo", "redo"],
|
|
|
+ height: 260,
|
|
|
fontSizeDefaultSelection: "16",
|
|
|
quickInsertEnabled: false,
|
|
|
theme: "dark", //主题
|
|
@@ -107,6 +77,9 @@ export default {
|
|
|
},
|
|
|
sectionData: [
|
|
|
{
|
|
|
+ isJumpNot: false, //是否跳转
|
|
|
+ reportLink: "", //报告链接
|
|
|
+ headTitle: "", //报告标题
|
|
|
content: "", //晨会内容
|
|
|
industry: "", //行业
|
|
|
property: "", //行业
|
|
@@ -130,6 +103,9 @@ export default {
|
|
|
industry: "",
|
|
|
property: "",
|
|
|
subject: "",
|
|
|
+ isJumpNot: false, //是否跳转
|
|
|
+ reportLink: "", //报告链接
|
|
|
+ headTitle: "", //报告标题
|
|
|
};
|
|
|
this.sectionData.push(section);
|
|
|
},
|
|
@@ -296,6 +272,14 @@ export default {
|
|
|
//检查晨会内容
|
|
|
checkContent() {
|
|
|
for (let i = 0; i < this.sectionData.length; i++) {
|
|
|
+ if (this.sectionData[i].isJumpNot && this.sectionData[i].reportLink.length === 0) {
|
|
|
+ this.$message.warning(`请输入段落${i + 1}报告链接`);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (this.sectionData[i].isJumpNot && this.sectionData[i].headTitle.length === 0) {
|
|
|
+ this.$message.warning(`请输入段落${i + 1}报告标题`);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
//所有的段落有值
|
|
|
if (this.sectionData[i].content.length === 0) {
|
|
|
this.$message.warning(`请输入段落${i + 1}的内容`);
|
|
@@ -400,8 +384,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.fr-wrapper {
|
|
|
- border-top: 1px solid #cccccc !important;
|
|
|
- border-bottom: 1px solid #cccccc !important;
|
|
|
-}
|
|
|
+ border-top: 1px solid #cccccc !important;
|
|
|
+ border-bottom: 1px solid #cccccc !important;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|