Commit 5b8ad7c9 authored by zhengke's avatar zhengke

修改

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