|
@@ -10,11 +10,19 @@
|
|
|
@submit="search"
|
|
|
@reset="onReSet"
|
|
|
:model="searchForm"
|
|
|
+ ref="searchForm"
|
|
|
>
|
|
|
+ <!-- search(); -->
|
|
|
<el-form-item>
|
|
|
<el-input
|
|
|
placeholder="老师/学生姓名/编号"
|
|
|
v-model.trim="searchForm.search"
|
|
|
+ @keyup.enter.native="
|
|
|
+ (e) => {
|
|
|
+ e.target.blur();
|
|
|
+ $refs.searchForm.save();
|
|
|
+ }
|
|
|
+ "
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
@@ -142,7 +150,6 @@
|
|
|
<el-dialog
|
|
|
title="回访详情"
|
|
|
width="700px"
|
|
|
-
|
|
|
v-if="detailVisible"
|
|
|
:visible.sync="detailVisible"
|
|
|
>
|
|
@@ -219,18 +226,27 @@ export default {
|
|
|
this.$store.dispatch("setBranchs");
|
|
|
|
|
|
if (this.$route.query) {
|
|
|
- this.searchForm.search = this.$route.query.teacher; // 兼容老功能
|
|
|
- this.searchForm.search = this.$route.query.search;
|
|
|
+ // 兼容老功能
|
|
|
+ if (this.$route.query.search) {
|
|
|
+ this.searchForm.search = this.$route.query.teacher;
|
|
|
+ this.searchForm.search = this.$route.query.search;
|
|
|
+ }
|
|
|
+
|
|
|
this.searchForm.timer = this.$route.query.timer;
|
|
|
}
|
|
|
- if(this.$route.query.typeList&&this.$route.query.typeList.length>0){
|
|
|
- this.searchForm.typeList = this.$route.query.typeList
|
|
|
+ if (this.$route.query.typeList && this.$route.query.typeList.length > 0) {
|
|
|
+ this.searchForm.typeList = this.$route.query.typeList;
|
|
|
}
|
|
|
this.getList();
|
|
|
+ if (this.$route.query.search || this.$route.query.timer) {
|
|
|
+ // console.log( )
|
|
|
+ console.log('进来了')
|
|
|
+ resetQuery(this, { timer: undefined, search: undefined });
|
|
|
+ }
|
|
|
},
|
|
|
- activated() {
|
|
|
- this.getList();
|
|
|
- },
|
|
|
+ // activated() {
|
|
|
+ // this.getList();
|
|
|
+ // },
|
|
|
methods: {
|
|
|
handleChange(val) {
|
|
|
this.searchForm.type = val[0];
|
|
@@ -238,7 +254,7 @@ export default {
|
|
|
},
|
|
|
search() {
|
|
|
// this.$router.replace({query:{...this.$route.query,timer:undefined,teacher:undefined}})
|
|
|
- resetQuery(this, { timer: undefined, search: undefined });
|
|
|
+
|
|
|
this.rules.page = 1;
|
|
|
this.getList();
|
|
|
},
|