|
@@ -1,6 +1,5 @@
|
|
<template>
|
|
<template>
|
|
<div class="tableList">
|
|
<div class="tableList">
|
|
- {{organIds+'1111'}}
|
|
|
|
<save-form
|
|
<save-form
|
|
:inline="true"
|
|
:inline="true"
|
|
class="searchForm"
|
|
class="searchForm"
|
|
@@ -101,7 +100,7 @@
|
|
:controls="false"
|
|
:controls="false"
|
|
:precision="0"
|
|
:precision="0"
|
|
:min="0"
|
|
:min="0"
|
|
- v-model="searchForm.subCourseMinNum"
|
|
|
|
|
|
+ v-model="searchForm.subCourseMinNum"
|
|
placeholder="请输入剩余课时最小数"
|
|
placeholder="请输入剩余课时最小数"
|
|
></el-input-number>
|
|
></el-input-number>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -404,6 +403,7 @@
|
|
@getList="getList"
|
|
@getList="getList"
|
|
/>
|
|
/>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <div v-show='isSearchs'></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -419,7 +419,7 @@ import qs from "qs";
|
|
export default {
|
|
export default {
|
|
name: "tableList",
|
|
name: "tableList",
|
|
props: ["groupType"],
|
|
props: ["groupType"],
|
|
- jnject:["organId"],
|
|
|
|
|
|
+ inject: ["organId", "isSearch"],
|
|
components: {
|
|
components: {
|
|
pagination,
|
|
pagination,
|
|
visiList,
|
|
visiList,
|
|
@@ -428,7 +428,6 @@ export default {
|
|
return {
|
|
return {
|
|
searchForm: {
|
|
searchForm: {
|
|
search: "",
|
|
search: "",
|
|
- organId: [],
|
|
|
|
studentStatus: "",
|
|
studentStatus: "",
|
|
feedbackType: "",
|
|
feedbackType: "",
|
|
latelyCourseConsumer: "",
|
|
latelyCourseConsumer: "",
|
|
@@ -449,12 +448,12 @@ export default {
|
|
},
|
|
},
|
|
visitVisiable: false,
|
|
visitVisiable: false,
|
|
activeRow: null,
|
|
activeRow: null,
|
|
|
|
+ flag:false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async mounted() {
|
|
async mounted() {
|
|
this.$store.dispatch("setBranchs");
|
|
this.$store.dispatch("setBranchs");
|
|
this.$store.dispatch("setTeachers");
|
|
this.$store.dispatch("setTeachers");
|
|
-
|
|
|
|
await this.getList();
|
|
await this.getList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -465,12 +464,10 @@ export default {
|
|
onReSet() {
|
|
onReSet() {
|
|
this.searchForm.timer = [];
|
|
this.searchForm.timer = [];
|
|
this.$refs.searchForm.resetFields();
|
|
this.$refs.searchForm.resetFields();
|
|
-
|
|
|
|
this.onSearch();
|
|
this.onSearch();
|
|
},
|
|
},
|
|
async getList() {
|
|
async getList() {
|
|
const { timer, ...rest } = this.searchForm;
|
|
const { timer, ...rest } = this.searchForm;
|
|
- console.log(timer);
|
|
|
|
try {
|
|
try {
|
|
let obj = {
|
|
let obj = {
|
|
groupType: this.groupType,
|
|
groupType: this.groupType,
|
|
@@ -478,14 +475,16 @@ export default {
|
|
...getTimes(timer, ["firstCourseStartTime", "firstCourseEndTime"]),
|
|
...getTimes(timer, ["firstCourseStartTime", "firstCourseEndTime"]),
|
|
rows: this.pageInfo.limit,
|
|
rows: this.pageInfo.limit,
|
|
page: this.pageInfo.page,
|
|
page: this.pageInfo.page,
|
|
- organId: organIds,
|
|
|
|
|
|
+ organId: this.organIds,
|
|
};
|
|
};
|
|
let res = await queryPage({
|
|
let res = await queryPage({
|
|
...obj,
|
|
...obj,
|
|
});
|
|
});
|
|
this.tableList = res.data.rows || [];
|
|
this.tableList = res.data.rows || [];
|
|
this.pageInfo.total = res.data.total;
|
|
this.pageInfo.total = res.data.total;
|
|
- } catch {}
|
|
|
|
|
|
+ } catch (e) {
|
|
|
|
+ console.log(e);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
gotoStudent(search) {
|
|
gotoStudent(search) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -537,11 +536,24 @@ export default {
|
|
);
|
|
);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- computed:{
|
|
|
|
- organIds(){
|
|
|
|
- return this.organId
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ computed: {
|
|
|
|
+ organIds() {
|
|
|
|
+ return this.organId();
|
|
|
|
+ },
|
|
|
|
+ isSearchs: {
|
|
|
|
+ get() {
|
|
|
|
+ let flag = this.isSearch();
|
|
|
|
+ if(this.flag != flag){
|
|
|
|
+ this.getList()
|
|
|
|
+ console.log('调用isSearchTable',flag)
|
|
|
|
+ }
|
|
|
|
+ this.flag = flag
|
|
|
|
+
|
|
|
|
+ return flag;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -564,7 +576,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.number-input {
|
|
.number-input {
|
|
- width: 180px!important;
|
|
|
|
|
|
+ width: 180px !important;
|
|
/deep/ .el-input__inner {
|
|
/deep/ .el-input__inner {
|
|
text-align: left;
|
|
text-align: left;
|
|
}
|
|
}
|