|
@@ -26,6 +26,19 @@
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="inputListBox" v-if="classStatus">
|
|
|
+ <div class="fon_s">开班状态:</div>
|
|
|
+ <div>
|
|
|
+ <el-button
|
|
|
+ :type="formData.classStatus === item.value ? 'primary' : ''"
|
|
|
+ :size="size"
|
|
|
+ v-for="(item, index) in classType"
|
|
|
+ :key="index"
|
|
|
+ @click="topClassType(item.value)"
|
|
|
+ >{{ item.label }}</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="inputListBox" v-if="shType">
|
|
|
<div class="fon_s">审核状态:</div>
|
|
|
<div>
|
|
@@ -103,6 +116,20 @@
|
|
|
:value="items.id"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
+ <!-- 项目类型 -->
|
|
|
+ <el-select
|
|
|
+ v-else-if="item.scope === 'projectLevel'"
|
|
|
+ v-model="formData[item.prop]"
|
|
|
+ :placeholder="item.placeholder"
|
|
|
+ :size="size"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(items, indexs) in newProjectLevel"
|
|
|
+ :key="indexs"
|
|
|
+ :label="items.projectName"
|
|
|
+ :value="items.id"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
<!-- 业务层次 -->
|
|
|
<el-select
|
|
|
v-else-if="item.scope === 'businessLevel'"
|
|
@@ -430,7 +457,7 @@
|
|
|
</el-date-picker>
|
|
|
</div>
|
|
|
<el-input
|
|
|
- :style="item.prop === 'searchKey' ? 'width:260px;' :''"
|
|
|
+ :style="item.prop === 'searchKey' ? 'width:260px;' : ''"
|
|
|
v-else-if="!item.scope"
|
|
|
clearable
|
|
|
v-model="formData[item.prop]"
|
|
@@ -471,6 +498,7 @@ export default {
|
|
|
"redIcon",
|
|
|
"advanced",
|
|
|
"advancedName",
|
|
|
+ "classStatus",
|
|
|
], //参考文档 component.md
|
|
|
data() {
|
|
|
return {
|
|
@@ -497,6 +525,20 @@ export default {
|
|
|
value: 4,
|
|
|
},
|
|
|
],
|
|
|
+ classType: [
|
|
|
+ {
|
|
|
+ label: "全部",
|
|
|
+ value: "",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已开班",
|
|
|
+ value: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "预报名(未开班)",
|
|
|
+ value: 0,
|
|
|
+ },
|
|
|
+ ],
|
|
|
pendlists: [
|
|
|
{
|
|
|
label: "初审",
|
|
@@ -512,10 +554,6 @@ export default {
|
|
|
label: "全部",
|
|
|
value: "",
|
|
|
},
|
|
|
- {
|
|
|
- label: "通过",
|
|
|
- value: 1,
|
|
|
- },
|
|
|
{
|
|
|
label: "待审核",
|
|
|
value: 2,
|
|
@@ -524,6 +562,10 @@ export default {
|
|
|
label: "不通过",
|
|
|
value: 3,
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "通过",
|
|
|
+ value: 1,
|
|
|
+ },
|
|
|
],
|
|
|
lists6: [
|
|
|
{
|
|
@@ -586,6 +628,7 @@ export default {
|
|
|
},
|
|
|
], //题目类型
|
|
|
size: "small", //输入框尺寸类型
|
|
|
+ newProjectLevel: [], //项目类型-筛选后的数据
|
|
|
newBusinessLevel: [], //业务层次-筛选后的数据
|
|
|
newSchoolList: [], //院校-筛选后的数据
|
|
|
newProfessional: [], //专业-筛选后的数据
|
|
@@ -663,14 +706,19 @@ export default {
|
|
|
}
|
|
|
if (
|
|
|
items.scope === "schoolList" &&
|
|
|
- this.educationType[indexType].tireStatus.indexOf("3") !== -1
|
|
|
+ this.educationType[indexType].tireStatus.indexOf("3") !==
|
|
|
+ -1 &&
|
|
|
+ this.formData["businessId"]
|
|
|
) {
|
|
|
return items;
|
|
|
}
|
|
|
if (
|
|
|
items.scope === "Professional" &&
|
|
|
- this.educationType[indexType].tireStatus.indexOf("4") !== -1
|
|
|
+ this.educationType[indexType].tireStatus.indexOf("4") !==
|
|
|
+ -1 &&
|
|
|
+ this.formData["businessId"]
|
|
|
) {
|
|
|
+
|
|
|
return items;
|
|
|
}
|
|
|
if (
|
|
@@ -683,13 +731,20 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
if (items.diff === "gfxs") {
|
|
|
- if (this.formData["studyStatus"] == 2 && this.formData["periodStatus"] == 1) {
|
|
|
+ if (
|
|
|
+ this.formData["studyStatus"] == 2 &&
|
|
|
+ this.formData["periodStatus"] == 1
|
|
|
+ ) {
|
|
|
return items;
|
|
|
}
|
|
|
} else if (items.diff === "ksdd") {
|
|
|
if (this.formData["applyId"]) {
|
|
|
return items;
|
|
|
}
|
|
|
+ } else if (items.scope === "projectLevel") {
|
|
|
+ if (this.formData["educationId"]) {
|
|
|
+ return items;
|
|
|
+ }
|
|
|
} else {
|
|
|
return items;
|
|
|
}
|
|
@@ -789,6 +844,15 @@ export default {
|
|
|
this.formData.periodStatus = status;
|
|
|
this.$emit("search", 4);
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {int} status
|
|
|
+ * @remark 顶部定制按钮-根据审核状态类型点击快速搜索
|
|
|
+ */
|
|
|
+ topClassType(status) {
|
|
|
+ this.formData.classStatus = status;
|
|
|
+ this.$emit("search", 4);
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
* @param {int} status
|
|
@@ -847,35 +911,25 @@ export default {
|
|
|
});
|
|
|
this.tireStatus = this.educationType[indexs].tireStatus;
|
|
|
if (!status1) {
|
|
|
+ if (this.formData.projectId) {
|
|
|
+ this.formData.projectId = "";
|
|
|
+ }
|
|
|
if (this.formData.businessId) {
|
|
|
this.formData.businessId = "";
|
|
|
}
|
|
|
- if (this.formData.ProfessionalId) {
|
|
|
- this.formData.ProfessionalId = "";
|
|
|
- }
|
|
|
- }
|
|
|
- if (this.formData.schoolId) {
|
|
|
- this.formData.schoolId = "";
|
|
|
}
|
|
|
-
|
|
|
if (this.formData.subjectId) {
|
|
|
this.formData.subjectId = "";
|
|
|
}
|
|
|
this.$api
|
|
|
- .inquirebusinessList({ status: 1, educationId: id })
|
|
|
- .then((res) => {
|
|
|
- this.newBusinessLevel = res.rows;
|
|
|
- });
|
|
|
-
|
|
|
- this.$api
|
|
|
- .inquireUserSchool({ status: 1, educationId: id })
|
|
|
+ .inquireCourseProjectType({ status: 1, educationId: id })
|
|
|
.then((res) => {
|
|
|
- this.newSchoolList = res.rows;
|
|
|
+ this.newProjectLevel = res.rows;
|
|
|
});
|
|
|
this.$api
|
|
|
- .inquireCourseMajor({ status: 1, educationId: id })
|
|
|
+ .inquirebusinessList({ status: 1, educationId: id })
|
|
|
.then((res) => {
|
|
|
- this.newProfessional = res.rows;
|
|
|
+ this.newBusinessLevel = res.rows;
|
|
|
});
|
|
|
if (!status1) {
|
|
|
this.$api
|
|
@@ -891,6 +945,19 @@ export default {
|
|
|
* @remark 点击业务层次触发事件
|
|
|
*/
|
|
|
changeBusinessLevel(v) {
|
|
|
+ console.log(12131)
|
|
|
+ if (this.formData.schoolId) {
|
|
|
+ this.formData.schoolId = "";
|
|
|
+ }
|
|
|
+ this.$api.inquireUserSchool({ status: 1, businessId: v }).then((res) => {
|
|
|
+ this.newSchoolList = res.rows;
|
|
|
+ });
|
|
|
+ if (this.formData.majorId) {
|
|
|
+ this.formData.majorId = "";
|
|
|
+ }
|
|
|
+ this.$api.inquireCourseMajor({ status: 1, businessId: v }).then((res) => {
|
|
|
+ this.newProfessional = res.rows;
|
|
|
+ });
|
|
|
if (this.formData.subjectId) {
|
|
|
this.formData.subjectId = "";
|
|
|
}
|
|
@@ -949,4 +1016,4 @@ export default {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|