|
@@ -479,15 +479,10 @@ export default {
|
|
|
},
|
|
|
], //题目类型
|
|
|
size: "small", //输入框尺寸类型
|
|
|
- // formData: {
|
|
|
- // status: "0,1",
|
|
|
- // pageSize: this.pageSizes,
|
|
|
- // pageNum: this.pageNums,
|
|
|
- // }, //表单数据收集
|
|
|
- newBusinessLevel: [],
|
|
|
- newSchoolList: [],
|
|
|
- newProfessional: [],
|
|
|
- newSujectType: [],
|
|
|
+ newBusinessLevel: [], //业务层次-筛选后的数据
|
|
|
+ newSchoolList: [], //院校-筛选后的数据
|
|
|
+ newProfessional: [], //专业-筛选后的数据
|
|
|
+ newSujectType: [], //科目-筛选后的数据
|
|
|
pickerOptions: {
|
|
|
//日期选择器近期功能
|
|
|
shortcuts: [
|
|
@@ -523,7 +518,16 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(["educationType", "Professional", "examList", "beforeList","applySiteAddress"]),
|
|
|
+ ...mapGetters([
|
|
|
+ "educationType",
|
|
|
+ "Professional",
|
|
|
+ "examList",
|
|
|
+ "beforeList",
|
|
|
+ "applySiteAddress",
|
|
|
+ ]),
|
|
|
+ /**
|
|
|
+ * @remarks 过滤选择器列表
|
|
|
+ */
|
|
|
formListComput: function () {
|
|
|
return function (item) {
|
|
|
var newOption = JSON.parse(JSON.stringify(item));
|
|
@@ -572,13 +576,19 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
},
|
|
|
- created() {
|
|
|
- var self = this;
|
|
|
- },
|
|
|
methods: {
|
|
|
+ /**
|
|
|
+ * @remark 高级搜索
|
|
|
+ */
|
|
|
emitAdvanced() {
|
|
|
this.$emit("Advanced", this.formData);
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {int} data1
|
|
|
+ * @param {int} data2
|
|
|
+ * @remark 日期搜索-时间开始选择器触发
|
|
|
+ */
|
|
|
change1(data1, data2) {
|
|
|
if (this.formData[data1]) {
|
|
|
if (
|
|
@@ -590,6 +600,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {int} data1
|
|
|
+ * @param {int} data2
|
|
|
+ * @remark 日期搜索-时间结束选择器触发
|
|
|
+ */
|
|
|
change2(data1, data2) {
|
|
|
if (this.formData[data2]) {
|
|
|
if (
|
|
@@ -601,22 +617,42 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {int} status
|
|
|
+ * @remark 顶部定制按钮-根据商品类型点击快速搜索
|
|
|
+ */
|
|
|
topSearch(status) {
|
|
|
this.formData.goodsType = status;
|
|
|
this.$emit("search", 3);
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {int} status
|
|
|
+ * @remark 顶部定制按钮-根据审核状态点击快速搜索
|
|
|
+ */
|
|
|
topSearchsh(types) {
|
|
|
this.formData.status = types;
|
|
|
this.$emit("search", 3);
|
|
|
},
|
|
|
- //搜索
|
|
|
+ /**
|
|
|
+ * @remark 搜索
|
|
|
+ */
|
|
|
search() {
|
|
|
this.$emit("search", 1);
|
|
|
},
|
|
|
- //重置
|
|
|
+ /**
|
|
|
+ * @remark 重置
|
|
|
+ */
|
|
|
init() {
|
|
|
this.$emit("init");
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {int} int1
|
|
|
+ * @param {int} int2
|
|
|
+ * @remark 数值取值范围选择器
|
|
|
+ */
|
|
|
handleChanges(int1, int2) {
|
|
|
if (int1 !== undefined && int2 !== undefined) {
|
|
|
if (int1 > int2) {
|
|
@@ -624,6 +660,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {int} id
|
|
|
+ * @remark 点击教育类型触发事件
|
|
|
+ */
|
|
|
changeEducationType(id) {
|
|
|
const indexs = this.educationType.findIndex((item) => {
|
|
|
return item.id === id;
|
|
@@ -663,6 +704,11 @@ export default {
|
|
|
this.newSujectType = res.rows;
|
|
|
});
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {int} id
|
|
|
+ * @remark 点击业务层次触发事件
|
|
|
+ */
|
|
|
changeBusinessLevel(id) {},
|
|
|
},
|
|
|
};
|