Commit fe8bf76e authored by 罗超's avatar 罗超

1

parent 9074ba7c
......@@ -193,15 +193,15 @@
</template>
</q-input>
<!-- 地图选址 -->
<el-dialog title="地图展示" :visible.sync="isShowMap" width="960px" style="z-index:99999">
<Map @map-submit="mapEvent" :address="addMsg.LocationName"></Map>
<el-dialog title="地图展示" :visible.sync="isShowMap" width="960px" style="zIndex:999999">
<Map @map-submit="mapEvent" :address="addMsg.LocationName" style="zIndex:999999"></Map>
</el-dialog>
</div>
</div>
<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" no-margin
<Ueditor :value="ueditor.value" :config="ueditor.config" @input="setVal" ref="ue" id="ue" no-margin
:isShowInsertImage="false" :isShowAttachment="false" :isShowVoice="false"></Ueditor>
</div>
</div>
......@@ -283,6 +283,7 @@
}
},
mounted() {
if (this.saveObj && this.saveObj.Id > 0) {
this.addMsg.Id = this.saveObj.Id
this.addMsg.ActivityName = this.saveObj.ActivityName
......@@ -339,8 +340,16 @@
LonLat: '', //经纬度(逗号分隔)
LocationName: '', //位置名称
},
this.setVal("");
this.setVal("");
}
this.$nextTick(function(){
let el=this.$refs.ue
el.$children[0].$el.style.zIndex=9
this.$forceUpdate();
console.log(el.$children[0].$el.style.zIndex)
})
},
methods: {
// 选择报名开始时间
......
......@@ -40,7 +40,7 @@
</div>
<div class="starttime">
<q-input
ref="long"
ref="Duration"
filled
stack-label
v-model.number="item.ActivityDuration"
......@@ -52,7 +52,7 @@
</div>
<div style="flex-grow:2">
<q-input
ref="name"
ref="TripTitle"
filled
stack-label
v-model="item.TripTitle"
......@@ -70,7 +70,6 @@
活动内容
<div class="location" @click="getMapShow">
<i class="iconfont icon-customer-visited" ></i>
<span v-if="item.LocationName">{{item.LocationName}}</span>
<span v-else>可设置活动定位</span>
</div>
......@@ -85,6 +84,8 @@
filled
type="textarea"
placeholder="输入活动内容..."
ref="TripContent"
:rules="[val => !!val || '请填写活动名称']"
/>
</div>
<div class="item-name">
......@@ -138,7 +139,24 @@ import {
watch:{
itemMsg:{
handler(val){
this.$emit("success",val)
// this.$refs.Title.validate();
// console.log(143, this.$refs)
// this.$refs.StartTime.map(item=>{
// item.validate()
// console.log(item.validate)
// })
// this.$refs.StartTime.validate();
// this.$refs.Duration.validate();
// this.$refs.TripTitle.validate();
// this.$refs.TripContent.validate();
// if (!this.$refs.Title.hasError &&
// !this.$refs.StartTime.hasError &&
// !this.$refs.Duration.hasError &&
// !this.$refs.TripTitle.hasError &&
// !this.$refs.TripContent.hasError) {
this.$emit("success",val)
// }
},
deep:true
},
......@@ -215,6 +233,21 @@ import {
getMapShow() {
this.isShowMap = true;
},
ruleVerification(){
this.$refs.Title.validate();
this.$refs.StartTime.map(item=>{
item.validate()
})
this.$refs.Duration.map(item=>{
item.validate()
})
this.$refs.TripTitle.map(item=>{
item.validate()
})
this.$refs.TripContent.map(item=>{
item.validate()
})
}
}
}
......
......@@ -31,8 +31,8 @@
</div>
<div class="">
<div v-for="(item,index) in ActivityTitle" :key="item.id" class="flex " >
<DetailItem :itemData="item" :index="index+1" @success="getItemData($event,index)"/>
<DetailItem :itemData="item" :index="index+1" @success="getItemData($event,index)" ref="child"/>
<el-tooltip class="item" effect="dark" content="删除当前活动" placement="top" v-if="index>0">
<i class="iconfont icon-img_delete_small q-ml-sm" style="color: #2961FE" @click="delActiveList(index)"></i>
</el-tooltip>
......@@ -117,10 +117,12 @@ import DetailItem from "../../components/activity/activeDetail-item"
},
getItemData(val,index){
console.log('119', val,index)
this.msg.ActivityTitle[index]=val
},
//保存信息
save() {
this.msg.ActivityTitle=this.ActivityTitle
console.log(this.$refs)
// this.$refs.Name.validate();
// this.$refs.StartTime.validate();
// this.$refs.EndTime.validate();
......@@ -132,14 +134,14 @@ import DetailItem from "../../components/activity/activeDetail-item"
// !this.$refs.SignStartTime.hasError &&
// !this.$refs.SignEndTime.hasError) {
this.apipostDS("/api/Education/GetSetActivityPlan", this.msg, (res) => {
console.log(136,res)
if (res.data.resultCode === 1) {
this.Success(res.data.message);
} else {
this.Error(res.data.message);
}
})
// this.apipostDS("/api/Education/GetSetActivityPlan", this.msg, (res) => {
// console.log(136,res)
// if (res.data.resultCode === 1) {
// this.Success(res.data.message);
// } else {
// this.Error(res.data.message);
// }
// })
// }
},
}
......
......@@ -189,8 +189,9 @@ import ActiveTypeForm from '../../components/activity/activeType-from'
loading: true,
msg: {
pageIndex: 1,
pageSize: 5,
pageSize: 10,
TypeName: '',
rowsPerPage:10
},
pageCount: 0,
columns: [{
......
......@@ -347,11 +347,12 @@ import ActiveForm from '../../components/activity/active-from'
loading: true,
msg: {
pageIndex: 1,
pageSize: 5,
pageSize: 10,
ActivityName: '',
SelectStartTimeStr:"",
SelectEndTimeStr:"",
SelectIsEnd:-1,
rowsPerPage:10
},
pageCount: 0,
activityTypeList:[],
......
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