Commit c7d9cd13 authored by zhengke's avatar zhengke

修改

parent 12a692aa
...@@ -85,6 +85,18 @@ export function queryCourseCategoryTree(data) { ...@@ -85,6 +85,18 @@ export function queryCourseCategoryTree(data) {
}) })
} }
/**
* 获取课程数据
*/
export function GetCourseCategoryList(data) {
return request({
url: '/Course/GetCourseCategoryList',
method: 'post',
data
})
}
/** /**
* 根据编号获取课程分类信息 * 根据编号获取课程分类信息
*/ */
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</div> </div>
<div class="row wrap"> <div class="row wrap">
<div class="col-6"> <div class="col-6">
<q-input filled v-model="objOption.TaskStartTime" class="q-pr-lg" mask="date" :rules="['date']"> <q-input filled v-model="objOption.TaskStartTime" class="q-pr-lg" mask="date">
<template v-slot:append> <template v-slot:append>
<q-icon name="event" class="cursor-pointer"> <q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy1" cover transition-show="scale" transition-hide="scale"> <q-popup-proxy ref="qDateProxy1" cover transition-show="scale" transition-hide="scale">
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</q-input> </q-input>
</div> </div>
<div class="col-6"> <div class="col-6">
<q-input filled v-model="objOption.TaskEndTime" mask="date" :rules="['date']"> <q-input filled v-model="objOption.TaskEndTime" mask="date">
<template v-slot:append> <template v-slot:append>
<q-icon name="event" class="cursor-pointer"> <q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy2" cover transition-show="scale" transition-hide="scale"> <q-popup-proxy ref="qDateProxy2" cover transition-show="scale" transition-hide="scale">
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</q-input> </q-input>
</div> </div>
</div> </div>
<div class="row wrap"> <div class="row wrap" style="margin-top:20px;">
<div class="col-12">任务图片</div> <div class="col-12">任务图片</div>
</div> </div>
<div class="row wrap" style="margin-top:20px;"> <div class="row wrap" style="margin-top:20px;">
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
</el-upload> </el-upload>
</div> </div>
</div> </div>
<div class="q-pt-none scroll" style="max-height:60hv"> <div class="q-pt-none scroll" style="max-height:60hv;margin-bottom:20px;">
<table> <table>
<thead> <thead>
<tr style="height:60px;"> <tr style="height:60px;">
...@@ -164,11 +164,16 @@ ...@@ -164,11 +164,16 @@
</td> </td>
<td> <td>
<q-select v-if="sItem.TaskType==2" filled stack-label option-value="Id" option-label="SubjectName" v-model="sItem.TargetIdList" <q-select v-if="sItem.TaskType==2" filled stack-label option-value="Id" option-label="SubjectName" v-model="sItem.TargetIdList"
:options="CourseSubjectList" multiple label="所属科目" style="width:160px" dense :options="CourseSubjectList" multiple use-chips label="所属科目" style="width:160px" dense
emit-value map-options />
<!-- <select-tree v-if="sItem.TaskType==3" :treeData="TreeCategoryList" class="q-pr-none" :defaultArray="returnString" nodeKey="CateId" :multiple="true"
labelKey="CateName" childrenKey="ChildList" tipText="课程系列" @getChild="getChild($event,sIndex)"></select-tree> -->
<q-select v-if="sItem.TaskType==3" multiple filled use-chips stack-label v-model="sItem.TargetIdList" option-value="CateId" option-label="CateName"
:options="TreeCategoryList" label="课程系列" style="width:160px" dense
emit-value map-options /> emit-value map-options />
<select-tree v-if="sItem.TaskType==3" :treeData="TreeCategoryList" nodeKey="CateId" :multiple="true"
labelKey="CateName" childrenKey="ChildList" tipText="课程系列" @getChild="getChild"></select-tree> <q-select v-if="sItem.TaskType==4" multiple filled use-chips stack-label v-model="sItem.TargetIdList" option-value="CourseId" option-label="CourseName"
<q-select v-if="sItem.TaskType==4" multiple filled stack-label v-model="sItem.TargetIdList" option-value="CourseId" option-label="CourseName"
:options="CourseList" label="课程" style="width:160px" dense :options="CourseList" label="课程" style="width:160px" dense
emit-value map-options /> emit-value map-options />
</td> </td>
...@@ -213,7 +218,8 @@ ...@@ -213,7 +218,8 @@
import { import {
queryCourseDropdownList, queryCourseDropdownList,
getCourseSubject, getCourseSubject,
queryCourseCategoryTree queryCourseCategoryTree,
GetCourseCategoryList
} from '../../api/course/index' } from '../../api/course/index'
import { import {
UploadSelfFile, UploadSelfFile,
...@@ -324,7 +330,6 @@ ...@@ -324,7 +330,6 @@
} }
this.saveCustomLoading = true; this.saveCustomLoading = true;
console.log(this.objOption, '数据'); console.log(this.objOption, '数据');
SetCustomerTask(this.objOption).then(res => { SetCustomerTask(this.objOption).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.saveCustomLoading = false; this.saveCustomLoading = false;
...@@ -415,15 +420,14 @@ ...@@ -415,15 +420,14 @@
}) })
}, },
getCategorytree() { getCategorytree() {
this.TreeCategoryList = [];
var qMsg = {}; var qMsg = {};
queryCourseCategoryTree(qMsg).then((res) => { GetCourseCategoryList(qMsg).then((res) => {
this.TreeCategoryList = res.Data; this.TreeCategoryList = res.Data;
}); });
}, },
//分类改变 //分类改变
getChild(cateObj) { getChild(cateObj,index) {
this.objOption.DetailsList[index].TargetIdList = cateObj.split(',');
}, },
}, },
} }
......
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