| xqd
@@ -81,6 +81,15 @@
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="layui-form-item">
|
|
|
+ <label class="layui-form-label">讲师:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <select name="lecturer_id" v-model="formData.lecturer_id" lay-search="" lay-filter="lecturer_id">
|
|
|
+ <option value="0">请选讲师</option>
|
|
|
+ <option v-for="item in lecturer_list" :value="item.id" :disabled="item.grade_id==0 ? true : false">{{item.html}}{{item.lecturer_name}}</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="layui-form-item required">
|
|
|
<label class="layui-form-label">专题简介:</label>
|
|
|
<div class="layui-input-block">
|
| xqd
@@ -621,6 +630,16 @@
|
|
|
})
|
|
|
});
|
|
|
},
|
|
|
+ //获取讲师
|
|
|
+ get_lecturer_list: function () {
|
|
|
+ var that = this;
|
|
|
+ layList.baseGet(layList.U({a: 'get_lecturer_list'}), function (res) {
|
|
|
+ that.$set(that, 'lecturer_list', res.data);
|
|
|
+ that.$nextTick(function () {
|
|
|
+ layList.form.render('select');
|
|
|
+ })
|
|
|
+ });
|
|
|
+ },
|
|
|
delLabel: function (index) {
|
|
|
this.formData.label.splice(index, 1);
|
|
|
this.$set(this.formData, 'label', this.formData.label);
|
| xqd
@@ -919,6 +938,8 @@
|
|
|
});
|
|
|
//获取科目
|
|
|
that.get_subject_list();
|
|
|
+ //获取讲师列表
|
|
|
+ that.get_lecturer_list();
|
|
|
//获取已添加的素材
|
|
|
that.get_check_source_sure();
|
|
|
//图片上传和视频上传
|
| xqd
@@ -973,6 +994,9 @@
|
|
|
layList.select('subject_id', function (obj) {
|
|
|
that.formData.subject_id = obj.value;
|
|
|
});
|
|
|
+ layList.select('lecturer_id', function (obj) {
|
|
|
+ that.formData.lecturer_id = obj.value;
|
|
|
+ });
|
|
|
layList.form.on('radio(is_fake_pink)', function (data) {
|
|
|
that.formData.is_fake_pink = parseInt(data.value);
|
|
|
});
|