|
@@ -22,7 +22,7 @@
|
|
>
|
|
>
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- <el-select
|
|
|
|
|
|
+ <!-- <el-select
|
|
v-model="courType"
|
|
v-model="courType"
|
|
placeholder="请选择业务层次"
|
|
placeholder="请选择业务层次"
|
|
@change="changecourseType"
|
|
@change="changecourseType"
|
|
@@ -34,6 +34,25 @@
|
|
:value="item.id"
|
|
:value="item.id"
|
|
>
|
|
>
|
|
</el-option>
|
|
</el-option>
|
|
|
|
+ </el-select> -->
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="courType"
|
|
|
|
+ placeholder="请选择业务层次"
|
|
|
|
+ @change="changecourseType"
|
|
|
|
+ >
|
|
|
|
+ <el-option-group
|
|
|
|
+ v-for="(item, index) in newCourTypeOptions"
|
|
|
|
+ :key="index"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="(items, indexs) in item.options"
|
|
|
|
+ :key="indexs"
|
|
|
|
+ :label="items.projectName + '-' + items.businessName"
|
|
|
|
+ :value="items.id"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-option-group>
|
|
</el-select>
|
|
</el-select>
|
|
<el-popover
|
|
<el-popover
|
|
ref="popovers"
|
|
ref="popovers"
|
|
@@ -416,7 +435,6 @@ export default {
|
|
newActiveRecordingUrl2: "",
|
|
newActiveRecordingUrl2: "",
|
|
newSteamUrl2: [], //回放流地址
|
|
newSteamUrl2: [], //回放流地址
|
|
eduTypeOptions: [], //教育类型数据
|
|
eduTypeOptions: [], //教育类型数据
|
|
- projectTypeOptions: [], //项目类型数据
|
|
|
|
courTypeOptions: [], //业务层次数据
|
|
courTypeOptions: [], //业务层次数据
|
|
newCourTypeOptions: [], //当前业务层次数据
|
|
newCourTypeOptions: [], //当前业务层次数据
|
|
sujectOption: [], //科目数据
|
|
sujectOption: [], //科目数据
|
|
@@ -783,12 +801,32 @@ export default {
|
|
this.$api.inquireCourseEducationType({ status: 1 }).then((res) => {
|
|
this.$api.inquireCourseEducationType({ status: 1 }).then((res) => {
|
|
this.eduTypeOptions = res.rows;
|
|
this.eduTypeOptions = res.rows;
|
|
});
|
|
});
|
|
- this.$api.inquireCourseProjectType({ status: 1 }).then((res) => {
|
|
|
|
- this.projectTypeOptions = res.rows;
|
|
|
|
- });
|
|
|
|
this.$api.inquirebusinessList({ status: 1 }).then((res) => {
|
|
this.$api.inquirebusinessList({ status: 1 }).then((res) => {
|
|
|
|
+ console.log(this.$methodsTools.getBusinessList().length, "aaa");
|
|
this.courTypeOptions = res.rows;
|
|
this.courTypeOptions = res.rows;
|
|
- this.newCourTypeOptions = res.rows;
|
|
|
|
|
|
+ let options = [
|
|
|
|
+ {
|
|
|
|
+ label: "最近选择",
|
|
|
|
+ options: [],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: "业务层级",
|
|
|
|
+ options: [],
|
|
|
|
+ },
|
|
|
|
+ ];
|
|
|
|
+ if (this.$methodsTools.getBusinessList().length) {
|
|
|
|
+ let arrlist = this.$methodsTools.getBusinessList();
|
|
|
|
+ res.rows.forEach((item) => {
|
|
|
|
+ if (arrlist.includes(item.id)) {
|
|
|
|
+ options[0].options.push(item);
|
|
|
|
+ } else {
|
|
|
|
+ options[1].options.push(item);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ options[1].options = res.rows;
|
|
|
|
+ }
|
|
|
|
+ this.newCourTypeOptions = options;
|
|
});
|
|
});
|
|
this.$api.inquireCourseSubject({ status: 1 }).then((res) => {
|
|
this.$api.inquireCourseSubject({ status: 1 }).then((res) => {
|
|
res.rows.map((item, index) => {
|
|
res.rows.map((item, index) => {
|
|
@@ -832,7 +870,8 @@ export default {
|
|
});
|
|
});
|
|
this.newCourTypeOptions = arrays;
|
|
this.newCourTypeOptions = arrays;
|
|
},
|
|
},
|
|
- changecourseType() {
|
|
|
|
|
|
+ changecourseType(ids) {
|
|
|
|
+ this.$methodsTools.cacheBusinessList(ids);
|
|
this.newCourTypeOptions.map((item, index) => {
|
|
this.newCourTypeOptions.map((item, index) => {
|
|
if (item.id === this.courType) {
|
|
if (item.id === this.courType) {
|
|
this.eduType = item.educationId;
|
|
this.eduType = item.educationId;
|