Commit 1e8e0589 authored by 罗超's avatar 罗超

1

parent f2f67eeb
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
<div class="row wrap"> <div class="row wrap">
<div class="q-mt-lg q-mb-sm">活动特色</div> <div class="q-mt-lg q-mb-sm">活动特色</div>
<div class="col-12"> <div class="col-12">
<Ueditor :value="ueditor.value" :config="ueditor.config" @input="setVal" ref="ue" id="ue" no-margin <Ueditor :value="ueditor.value" :config="ueditor.config" @input="setVal" ref="ue" no-margin
:isShowInsertImage="false" :isShowAttachment="false" :isShowVoice="false"></Ueditor> :isShowInsertImage="false" :isShowAttachment="false" :isShowVoice="false"></Ueditor>
</div> </div>
</div> </div>
......
...@@ -59,8 +59,10 @@ ...@@ -59,8 +59,10 @@
<Map @map-submit="mapEvent($event,index)" :address="item.LocationName"></Map> <Map @map-submit="mapEvent($event,index)" :address="item.LocationName"></Map>
</el-dialog> </el-dialog>
<div class="active-con"> <div class="active-con">
<q-input v-model="item.TripContent" filled type="textarea" placeholder="输入活动内容..." ref="TripContent" <!-- <q-input v-model="item.TripContent" filled type="textarea" placeholder="输入活动内容..." ref="TripContent"
:rules="[val => !!val || '请填写活动名称']" /> :rules="[val => !!val || '请填写活动名称']" /> -->
<Ueditor :value="item.TripContent" :config="ueditor.config" @input="setVal($event,index)" ref="ue" no-margin
:isShowInsertImage="false" :isShowAttachment="false" :isShowVoice="false"></Ueditor>
</div> </div>
<div class="item-name"> <div class="item-name">
活动图片 活动图片
...@@ -91,12 +93,14 @@ ...@@ -91,12 +93,14 @@
</template> </template>
<script> <script>
import Map from "./commonMap"; import Map from "./commonMap";
import Ueditor from "../editor/UeEditor";
import { import {
UploadSelfFile, UploadSelfFile,
} from '../../api/common/common' } from '../../api/common/common'
export default { export default {
components: { components: {
Map Map,
Ueditor
}, },
props: { props: {
itemData: { itemData: {
...@@ -113,7 +117,6 @@ ...@@ -113,7 +117,6 @@
handler(val) { handler(val) {
if (val) { if (val) {
this.itemMsg = val this.itemMsg = val
console.log(116, val)
} }
}, },
deep: true deep: true
...@@ -147,6 +150,16 @@ ...@@ -147,6 +150,16 @@
} }
] ]
}, },
//富文本
ueditor: {
value: "",
config: {
initialFrameWidth: null,
initialFrameHeight: 100,
autoHeightEnabled: true,
enableContextMenu: false
}
},
} }
}, },
mounted() { mounted() {
...@@ -223,18 +236,23 @@ ...@@ -223,18 +236,23 @@
hasErr.push(item.hasError) hasErr.push(item.hasError)
} }
}) })
this.$refs.TripContent.map(item => { // this.$refs.TripContent.map(item => {
item.validate() // item.validate()
if(item.hasError){ // if(item.hasError){
hasErr.push(item.hasError) // hasErr.push(item.hasError)
} // }
}) // })
if(hasErr.length>0){ if(hasErr.length>0){
return false return false
} else{ } else{
return true return true
} }
} },
// 富文本
setVal(val,index) {
this.itemMsg.ActivityPlanList[index].TripContent = val;
// this.ueditor.value = decodeURIComponent(val);
},
} }
} }
......
...@@ -145,7 +145,6 @@ import DetailItem from "../../components/activity/activeDetail-item" ...@@ -145,7 +145,6 @@ import DetailItem from "../../components/activity/activeDetail-item"
        this.apipostDS("/api/Education/GetActivity", {Id:this.msg.Id}, (res) => {         this.apipostDS("/api/Education/GetActivity", {Id:this.msg.Id}, (res) => {
            if (res.data.resultCode === 1) {             if (res.data.resultCode === 1) {
              this.ActivityTitle=res.data.data.ActivityTitleList               this.ActivityTitle=res.data.data.ActivityTitleList
              console.log(152,res.data.data.ActivityTitleList)
            }              } 
          })           })
      }       }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment