提交 3586e74b 编写于 作者: zhentian.jia's avatar zhentian.jia

数据调整优化

上级 bf41a069
...@@ -268,7 +268,7 @@ export default { ...@@ -268,7 +268,7 @@ export default {
pageSize: 10 pageSize: 10
} }
); );
vm.search(); // vm.search();
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`);
......
...@@ -193,8 +193,12 @@ export default { ...@@ -193,8 +193,12 @@ export default {
mounted: function() { mounted: function() {
//父组件传值 //父组件传值
this.$on("search", () => { this.$on("search", () => {
this.search(); this.lookedDoctor = [];
this.changedDoctor = [];
this.changedDoctor2 = [];
this.resetForm();
this.$refs.multipleTable.clearSelection(); this.$refs.multipleTable.clearSelection();
this.search();
}); });
}, },
methods: { methods: {
...@@ -298,8 +302,9 @@ export default { ...@@ -298,8 +302,9 @@ export default {
vm.formData = Object.assign( vm.formData = Object.assign(
{}, {},
{ {
record: "", achievementStatus: "",
mathStatus: "" status: 1,
pageNo: 1,
} }
); );
}, },
......
...@@ -364,7 +364,7 @@ export default { ...@@ -364,7 +364,7 @@ export default {
this.optionsRegion = operationData.setRegionOption( this.optionsRegion = operationData.setRegionOption(
res.data.provinceList res.data.provinceList
); );
console.log("this.optionsRegion", this.optionsRegion); // console.log("this.optionsRegion", this.optionsRegion);
} }
}); });
}, },
......
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
pageSize: 10, pageSize: 10,
} }
); );
vm.search(); // vm.search();
}, },
// 更改数据显示数量 // 更改数据显示数量
handleSizeChange(val) { handleSizeChange(val) {
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</el-col> </el-col>
<el-col :span="12" style="padding:0;text-align:right;padding-right:15px;"> <el-col :span="12" style="padding:0;text-align:right;padding-right:15px;">
<el-button type="primary" size="small" @click="searchData()">查询</el-button> <el-button type="primary" size="small" @click="searchData()">查询</el-button>
<el-button type="default" size="small" @click="resetMessage" style="margin-left:0;">重置</el-button> <el-button type="default" size="small" @click="resetForm()" style="margin-left:0;">重置</el-button>
</el-col> </el-col>
</el-form> </el-form>
</el-row> </el-row>
...@@ -153,12 +153,14 @@ export default { ...@@ -153,12 +153,14 @@ export default {
}); });
}, },
// 重置搜索信息 // 重置搜索信息
resetMessage() { resetForm() {
this.formData = { this.formData = {
status: "", status: "",
name: "" name: "",
pageNo: 1, //当前是第几页
pageSize: 10 //页面总数
}; };
vm.search(); // vm.search();
}, },
// 更改数据显示数量 // 更改数据显示数量
handleSizeChange(val) { handleSizeChange(val) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册