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

1

parent f2f67eeb
......@@ -201,7 +201,7 @@
<div class="row wrap">
<div class="q-mt-lg q-mb-sm">活动特色</div>
<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>
</div>
</div>
......
......@@ -59,8 +59,10 @@
<Map @map-submit="mapEvent($event,index)" :address="item.LocationName"></Map>
</el-dialog>
<div class="active-con">
<q-input v-model="item.TripContent" filled type="textarea" placeholder="输入活动内容..." ref="TripContent"
:rules="[val => !!val || '请填写活动名称']" />
<!-- <q-input v-model="item.TripContent" filled type="textarea" placeholder="输入活动内容..." ref="TripContent"
: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 class="item-name">
活动图片
......@@ -91,12 +93,14 @@
</template>
<script>
import Map from "./commonMap";
import Ueditor from "../editor/UeEditor";
import {
UploadSelfFile,
} from '../../api/common/common'
export default {
components: {
Map
Map,
Ueditor
},
props: {
itemData: {
......@@ -113,7 +117,6 @@
handler(val) {
if (val) {
this.itemMsg = val
console.log(116, val)
}
},
deep: true
......@@ -147,6 +150,16 @@
}
]
},
//富文本
ueditor: {
value: "",
config: {
initialFrameWidth: null,
initialFrameHeight: 100,
autoHeightEnabled: true,
enableContextMenu: false
}
},
}
},
mounted() {
......@@ -223,18 +236,23 @@
hasErr.push(item.hasError)
}
})
this.$refs.TripContent.map(item => {
item.validate()
if(item.hasError){
hasErr.push(item.hasError)
}
})
// this.$refs.TripContent.map(item => {
// item.validate()
// if(item.hasError){
// hasErr.push(item.hasError)
// }
// })
if(hasErr.length>0){
return false
} else{
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"
        this.apipostDS("/api/Education/GetActivity", {Id:this.msg.Id}, (res) => {
            if (res.data.resultCode === 1) {
              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