Commit a077cc3b authored by 刘帅阳's avatar 刘帅阳

修改了课程管理相关的标签

parent 3ec2e262
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="课程类型:" prop="lessonType"> <el-form-item label="课程类型:" prop="lessonType">
<el-select v-model="queryParams.lessonType" multiple placeholder="课程类型" clearable> <el-select v-model="queryParams.lessonType" placeholder="课程类型" multiple clearable>
<el-option <el-option
v-for="item in lessonTypeOptions" v-for="item in lessonTypeOptions"
:key="item.dictValue" :key="item.dictValue"
...@@ -68,8 +68,8 @@ ...@@ -68,8 +68,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="技术端课程方案:" prop="classPlan" v-if="queryParams.lessonType[0] == 0 || queryParams.lessonType.length == 2"> <el-form-item label="技术端课程方案:" prop="classPlan" v-if="queryParams.lessonType[0] === '0' || queryParams.lessonType.length == 2">
<el-select v-model="queryParams.classPlan" class="selectWidth" placeholder="企业课程方案" clearable> <el-select v-model="queryParams.classPlan" class="selectWidth" placeholder="企业课程方案" multiple clearable>
<el-option <el-option
v-for="item in coursePlanOptions" v-for="item in coursePlanOptions"
:key="item.dictValue" :key="item.dictValue"
...@@ -78,8 +78,8 @@ ...@@ -78,8 +78,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="技能端课程方案:" prop="classPlanSchool" v-if="queryParams.lessonType[0] == 1 || queryParams.lessonType.length == 2"> <el-form-item label="技能端课程方案:" prop="classPlanSchool" v-if="queryParams.lessonType[0] === '1' || queryParams.lessonType.length == 2">
<el-select v-model="queryParams.classPlanSchool" class="selectWidth" placeholder="院校课程方案" clearable> <el-select v-model="queryParams.classPlanSchool" class="selectWidth" placeholder="院校课程方案" multiple clearable>
<el-option <el-option
v-for="item in coursePlanOptionsC" v-for="item in coursePlanOptionsC"
:key="item.dictValue" :key="item.dictValue"
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="前沿讲堂分类:" prop="courseType"> <el-form-item label="前沿讲堂分类:" prop="courseType" v-if="queryParams.classPlan === '0' || queryParams.classPlanSchool === '0'">
<el-select v-model="queryParams.courseType" placeholder="前沿讲堂分类" clearable> <el-select v-model="queryParams.courseType" placeholder="前沿讲堂分类" clearable>
<el-option <el-option
v-for="item in courseTypeOptions" v-for="item in courseTypeOptions"
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="智联课堂分类:" prop="courseType"> <el-form-item label="智联课堂分类:" prop="courseType" v-if="queryParams.classPlan === '3'">
<el-select v-model="queryParams.intelligentClassroom" placeholder="智联课堂分类" clearable> <el-select v-model="queryParams.intelligentClassroom" placeholder="智联课堂分类" clearable>
<el-option <el-option
v-for="item in intelligentClassroomOptions" v-for="item in intelligentClassroomOptions"
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="难度等级:" prop="difficultyClassify"> <el-form-item label="难度等级:" prop="difficultyClassify" v-if="queryParams.classPlan === '2'">
<el-select v-model="queryParams.difficultyClassify" placeholder="难度等级" clearable> <el-select v-model="queryParams.difficultyClassify" placeholder="难度等级" clearable>
<el-option <el-option
v-for="item in difficultyOptions" v-for="item in difficultyOptions"
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="岗位分类:" prop="jobClassify"> <el-form-item label="岗位分类:" prop="jobClassify" v-if="queryParams.classPlan === '2'">
<el-select v-model="queryParams.jobClassify" placeholder="岗位分类" clearable> <el-select v-model="queryParams.jobClassify" placeholder="岗位分类" clearable>
<el-option <el-option
v-for="item in valueOptions" v-for="item in valueOptions"
...@@ -128,6 +128,16 @@ ...@@ -128,6 +128,16 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="课程维度:" prop="courseDimensions" v-if="queryParams.classPlan === '2'">
<el-select v-model="queryParams.courseDimensions" placeholder="课程维度" clearable>
<el-option
v-for="item in courseDimensionsOptions"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
/>
</el-select>
</el-form-item>
<!-- <el-form-item label="企业技术分类:" prop="tecClassify">--> <!-- <el-form-item label="企业技术分类:" prop="tecClassify">-->
<!-- <el-select v-model="queryParams.tecClassify" placeholder="技术分类" clearable>--> <!-- <el-select v-model="queryParams.tecClassify" placeholder="技术分类" clearable>-->
<!-- <el-option--> <!-- <el-option-->
...@@ -138,8 +148,8 @@ ...@@ -138,8 +148,8 @@
<!-- />--> <!-- />-->
<!-- </el-select>--> <!-- </el-select>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="院校技术分类:" prop="tecClassifySchool"> <el-form-item label="技术分类:" prop="tecClassifySchool" v-if="queryParams.classPlanSchool === '1'">
<el-select v-model="queryParams.tecClassifySchool" placeholder="院校技术分类" clearable> <el-select v-model="queryParams.tecClassifySchool" placeholder="技术分类" clearable>
<el-option <el-option
v-for="item in courseDirection" v-for="item in courseDirection"
:key="item.dictValue" :key="item.dictValue"
...@@ -872,14 +882,11 @@ export default { ...@@ -872,14 +882,11 @@ export default {
lessonTypeOptions: [], lessonTypeOptions: [],
// 课程方向 // 课程方向
courseDirection: [], courseDirection: [],
valueOptions: [ valueOptions: [],
], difficultyOptions: [],
difficultyOptions: [ value3Options: [],
], value4Options: [],
value3Options: [ courseDimensionsOptions: [],
],
value4Options: [
],
formLabelWidth: '90px', formLabelWidth: '90px',
// 表格 // 表格
tableData: [], tableData: [],
...@@ -922,6 +929,9 @@ export default { ...@@ -922,6 +929,9 @@ export default {
lessonName: '', lessonName: '',
classHour: '', classHour: '',
classPlan: '', classPlan: '',
classPlanSchool: '',
courseDimensions: '',
tecClassifySchool: '',
jobClassify: '', jobClassify: '',
tecClassify: '', tecClassify: '',
difficultyClassify: '', difficultyClassify: '',
...@@ -1001,6 +1011,7 @@ export default { ...@@ -1001,6 +1011,7 @@ export default {
this.getcourseTypeOptions() this.getcourseTypeOptions()
this.getCourseDirection() this.getCourseDirection()
this.getJobClassification() this.getJobClassification()
this.getCourseDimensions()
this.getDifficultyLevel() this.getDifficultyLevel()
this.getLessonType() this.getLessonType()
this.getCoursePlan() this.getCoursePlan()
...@@ -1118,6 +1129,8 @@ export default { ...@@ -1118,6 +1129,8 @@ export default {
lessonName: '', lessonName: '',
classHour: '', classHour: '',
classPlan: '', classPlan: '',
classPlanSchool: '',
tecClassifySchool: '',
jobClassify: '', jobClassify: '',
tecClassify: '', tecClassify: '',
difficultyClassify: '', difficultyClassify: '',
...@@ -1357,7 +1370,7 @@ export default { ...@@ -1357,7 +1370,7 @@ export default {
getCoursePlan() { getCoursePlan() {
getDict('class_plan').then(res => { getDict('class_plan').then(res => {
this.coursePlanOptions = res.data this.coursePlanOptions = res.data
console.log('课程方案', this.coursePlanOptions) console.log('技术端课程方案', this.coursePlanOptions)
}) })
}, },
// 获取前沿讲堂分类 // 获取前沿讲堂分类
...@@ -1376,7 +1389,7 @@ export default { ...@@ -1376,7 +1389,7 @@ export default {
getCoursePlanC() { getCoursePlanC() {
getDict('class_plan_c').then(res => { getDict('class_plan_c').then(res => {
this.coursePlanOptionsC = res.data this.coursePlanOptionsC = res.data
console.log('课程方案', this.coursePlanOptionsC) console.log('技能端课程方案', this.coursePlanOptionsC)
}) })
}, },
// 获取岗位类型 // 获取岗位类型
...@@ -1385,6 +1398,12 @@ export default { ...@@ -1385,6 +1398,12 @@ export default {
this.valueOptions = res.data this.valueOptions = res.data
}) })
}, },
// 获取岗位类型
getCourseDimensions() {
getDict('course_dimensions').then(res => {
this.courseDimensionsOptions = res.data
})
},
// 获取技术分类 // 获取技术分类
getCourseDirection() { getCourseDirection() {
getDict('tec_classify').then(res => { getDict('tec_classify').then(res => {
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<el-row class="border-border" :gutter="100"> <el-row class="border-border" :gutter="100">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="课程类型:" prop="lessonType"> <el-form-item label="课程类型:" prop="lessonType">
<el-checkbox v-model="form.lessonType" true-label="1" false-label="0" @change="lessonTypeChange">企业</el-checkbox> <el-checkbox v-model="form.lessonType" true-label="1" false-label="0" @change="lessonTypeChange">技术端</el-checkbox>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
<el-row class="border-border" :gutter="100"> <el-row class="border-border" :gutter="100">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="课程类型:" prop="lessonTypeSchool"> <el-form-item label="课程类型:" prop="lessonTypeSchool">
<el-checkbox v-model="form.lessonTypeSchool" true-label="1" false-label="0" @change="lessonTypeSchoolChange">院校</el-checkbox> <el-checkbox v-model="form.lessonTypeSchool" true-label="1" false-label="0" @change="lessonTypeSchoolChange">技能端</el-checkbox>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
/> />
<!-- 添加或修改单位管理配置对话框 --> <!-- 添加或修改单位管理配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="90px"> <el-form ref="form" :model="form" :rules="rules" size="small" label-width="100px">
<el-form-item label="单位类型:" prop="unitType"> <el-form-item label="单位类型:" prop="unitType">
<el-select v-model="form.unitType" style="width: 100%" clearable placeholder="请选择单位类型"> <el-select v-model="form.unitType" style="width: 100%" clearable placeholder="请选择单位类型">
<el-option <el-option
...@@ -285,7 +285,8 @@ export default { ...@@ -285,7 +285,8 @@ export default {
unitName: undefined, unitName: undefined,
unitNumber: undefined, unitNumber: undefined,
exitId: undefined, exitId: undefined,
flag: '' flag: '',
lessonType: []
}, },
// 表单参数 // 表单参数
form: { form: {
...@@ -333,7 +334,21 @@ export default { ...@@ -333,7 +334,21 @@ export default {
/** 查询单位管理列表 */ /** 查询单位管理列表 */
getList() { getList() {
this.loading = true this.loading = true
listSysUnit(this.addDateRange(this.queryParams, this.dateRange)).then( const params = {
page: this.queryParams.page,
rows: this.queryParams.rows,
createdBy: this.queryParams.createdBy,
createdDate: this.queryParams.createdDate,
updatedBy: this.queryParams.updatedBy,
updateByDate: this.queryParams.updateByDate,
unitType: this.queryParams.unitType,
unitName: this.queryParams.unitName,
unitNumber: this.queryParams.unitNumber,
exitId: this.queryParams.exitId,
flag: this.queryParams.flag,
lessonType: this.queryParams.lessonType.length > 1 ? '2' : this.queryParams.lessonType.join(',')
}
listSysUnit(this.addDateRange(params, this.dateRange)).then(
response => { response => {
this.sysUnitList = response.rows this.sysUnitList = response.rows
this.total = response.total this.total = response.total
...@@ -359,7 +374,8 @@ export default { ...@@ -359,7 +374,8 @@ export default {
unitName: undefined, unitName: undefined,
unitNumber: undefined, unitNumber: undefined,
exitId: undefined, exitId: undefined,
flag: '1' flag: '1',
lessonType: []
} }
this.resetForm('form') this.resetForm('form')
}, },
......
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