|
|
@@ -33,7 +33,7 @@
|
|
|
<div class="Line Line4">
|
|
|
<span>信息配置:</span>
|
|
|
<div class="fuWenBen">
|
|
|
- <editor-bar v-model="contentParam.content" :content="this.contentParam.content"></editor-bar>
|
|
|
+ <editor-bar v-model="contentParam.content" :catchData="catchData" :content="this.contentParam.content"></editor-bar>
|
|
|
</div>
|
|
|
<div style="clear: both; display: block"></div>
|
|
|
</div>
|
|
|
@@ -96,10 +96,14 @@ export default {
|
|
|
delFileIds: [],
|
|
|
editFileLength: "",
|
|
|
allDataNameList: [],
|
|
|
+ htmlData:''
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
+ catchData(content) {
|
|
|
+ this.htmlData = content;
|
|
|
+ },
|
|
|
addNotice(id) {
|
|
|
let requestURL, paramData;
|
|
|
this.checkName();
|
|
|
@@ -108,6 +112,7 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
if (!this.tipFlag) {
|
|
|
+ this.contentParam.content = this.htmlData;
|
|
|
if (id) {
|
|
|
//编辑
|
|
|
requestURL = "notice_update.php";
|
|
|
@@ -272,6 +277,7 @@ export default {
|
|
|
mounted() {
|
|
|
// this.getDataList();
|
|
|
this.contentParam = JSON.parse(localStorage.getItem('nowPageEdit'));
|
|
|
+ console.log(this.contentParam)
|
|
|
this.noticeId = this.contentParam.id;
|
|
|
if (this.contentParam.files) {
|
|
|
this.editFileLength = this.contentParam.files.length;
|