|
|
@@ -467,6 +467,10 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <el-dialog :title="package.title" :visible.sync="package.open" width="800px" append-to-body >
|
|
|
+ <package-select ref="packageSelect" @selectPackage="selectPackage" ></package-select>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -495,10 +499,11 @@ import CourseWatchComment from "./courseWatchComment.vue";
|
|
|
import {getCateListByPid, getCatePidList} from '@/api/course/userCourseCategory'
|
|
|
import draggable from 'vuedraggable'
|
|
|
import { getConfigByKey } from '@/api/system/config'
|
|
|
+import packageSelect from '../his/packageSelect.vue';
|
|
|
|
|
|
export default {
|
|
|
name: "userCourseCatalog",
|
|
|
- components: {VideoUpload, QuestionBank, CourseWatchComment, CourseProduct, draggable},
|
|
|
+ components: {VideoUpload, QuestionBank, CourseWatchComment, CourseProduct, draggable,packageSelect},
|
|
|
watch:{
|
|
|
// 深度监听 rules 数组的变化,以更新总权重
|
|
|
"form.randomRedPacketRulesArr": {
|
|
|
@@ -1037,6 +1042,7 @@ export default {
|
|
|
}
|
|
|
if (this.packageList.length > 0) {
|
|
|
this.form.packageJson = JSON.stringify(this.packageList);
|
|
|
+ this.form.showTreatment = 0;
|
|
|
}
|
|
|
if (this.form.courseProducts != null) {
|
|
|
this.form.productId = this.form.courseProducts.map(item => item.id).join(',');
|