Commit 5b8ad7c9 authored by zhengke's avatar zhengke

修改

parent 8de367d6
......@@ -93,6 +93,12 @@
<Map @map-submit="mapEvent" :address="addMsg.LocationName" style="zIndex:999999"></Map>
</el-dialog>
</div>
<div class="col-6">
<q-select filled stack-label option-value="TId" option-label="TeacherName" v-model="addMsg.TeacherId"
ref="Teacher_Id" :options="TeacherList" label="教师" :dense="false" class="col-6 q-pb-lg"
emit-value map-options />
</div>
<div class="col-6"></div>
<div class="col-6">
<div>是否免费:</div>
<q-toggle v-model="addMsg.IsFree" :true-value="1" :false-value="2"
......@@ -169,6 +175,9 @@
</div>
</template>
<script>
import {
getTeacherDropDownList
} from '../../api/school/index'
import {
UploadSelfFile
} from "../../api/common/common";
......@@ -218,9 +227,11 @@
LnsideLimit: 1, //内部限制0-否,1-是
LonLat: '', //经纬度(逗号分隔)
LocationName: '', //位置名称
TeacherId:0 //选择老师
},
persistent: true,
isShowMap: false, //是否显示地图弹窗
TeacherList: [], //关联教师下拉数据
//富文本
ueditor: {
value: "",
......@@ -264,6 +275,7 @@
this.addMsg.LnsideLimit = this.saveObj.LnsideLimit
this.addMsg.LonLat = this.saveObj.LonLat
this.addMsg.LocationName = this.saveObj.LocationName
this.addMsg.TeacherId = this.saveObj.TeacherId
this.setVal(this.addMsg.ActivityInfo);
}
},
......@@ -306,6 +318,7 @@
this.addMsg.LnsideLimit = this.saveObj.LnsideLimit
this.addMsg.LonLat = this.saveObj.LonLat
this.addMsg.LocationName = this.saveObj.LocationName
this.addMsg.TeacherId = this.saveObj.TeacherId
this.setVal(this.addMsg.ActivityInfo);
} else {
this.addMsg = {
......@@ -331,11 +344,26 @@
LnsideLimit: 1, //内部限制0-否,1-是
LonLat: '', //经纬度(逗号分隔)
LocationName: '', //位置名称
TeacherId:0
},
this.setVal("");
}
this.GetTeacherList();
},
methods: {
//获取教师下拉
GetTeacherList() {
getTeacherDropDownList({}).then(res => {
if (res.Code == 1) {
this.TeacherList = res.Data;
var obj = {
TeacherName: '请选择',
TId: 0
}
this.TeacherList.unshift(obj);
}
})
},
// 选择开始时间
sdate(val) {
this.addMsg.StartTime = val
......
......@@ -364,6 +364,12 @@
align: "left",
field: "ActivityTypeName"
},
{
name: "TeacherName",
label: "关联老师",
align: "left",
field: "TeacherName"
},
{
name: "ActivityTime",
label: "活动时间",
......
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