提交 f233f5ba 编写于 作者: changdi.hao's avatar changdi.hao

优化不同页面切换

上级 5646f608
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
class="demo-form-inline from-box" class="demo-form-inline from-box"
:model="searchParam" :model="searchParam"
label-width="80px" label-width="80px"
ref="from" ref="searchParam"
> >
<el-row :gutter="10" type="flex" justify="center"> <el-row :gutter="10" type="flex" justify="center">
<el-col :span="8" class="t-c"> <el-col :span="8" class="t-c">
<el-form-item label="订单搜索" class="t-b"> <el-form-item label="订单搜索" class="t-b">
<el-input <el-input
v-model.trim="searchParam.searchVal" v-model.trim="searchParam.id"
clearable clearable
placeholder="请输入ID" placeholder="请输入ID"
style="width: 220px" style="width: 220px"
...@@ -332,16 +332,14 @@ export default { ...@@ -332,16 +332,14 @@ export default {
fromType: 0, //1或不传为为预约单列表 2为运营预约单列表 3为分诊台 4为接诊台 fromType: 0, //1或不传为为预约单列表 2为运营预约单列表 3为分诊台 4为接诊台
}; };
}, },
activated() {
this.search();
},
watch: { watch: {
'$route': { '$route': {
handler(newVal, oldVal) { handler(newVal, oldVal) {
// this.getview(newVal, oldVal)
if (newVal) { if (newVal) {
this.init() this.init()
} this.resetPage()
this.reset()
}
}, },
deep: true, deep: true,
immediate: true, immediate: true,
...@@ -357,9 +355,8 @@ export default { ...@@ -357,9 +355,8 @@ export default {
init(){ init(){
this.fromType = +(this.$route.query.fromType || 1); this.fromType = +(this.$route.query.fromType || 1);
this.activeName = "99"; this.activeName = "99";
this.status = '99' this.searchParam.status = '';
this.setTable(); this.setTable();
this.search();
}, },
// 不同也main切换不同的tab // 不同也main切换不同的tab
setTable() { setTable() {
...@@ -387,7 +384,10 @@ export default { ...@@ -387,7 +384,10 @@ export default {
break; break;
} }
this.tabpaneList = tabs; this.tabpaneList = tabs;
},
resetPage() {
this.searchParam.pageSize = 15;
this.searchParam.pageNo = 1;
}, },
// 设置table的高度 // 设置table的高度
setTableHeight() { setTableHeight() {
...@@ -452,7 +452,22 @@ export default { ...@@ -452,7 +452,22 @@ export default {
this.cancelRangeTime = ""; this.cancelRangeTime = "";
this.orderRangeTime = ""; this.orderRangeTime = "";
this.completeRangeTime = ""; this.completeRangeTime = "";
this.$refs.from.resetFields(); this.searchParam = Object.assign(this.searchParam,{
id: "",
operateName: "",
assistantVal: "",
receptionVal: "",
triageDepartmentId: "",
diagnoseType: "", //预约问诊类型:1、音频 2、视频 3、图文
createdTimeBegin: "",
createdTimeEnd: "",
operateTimeBegin: "",
operateTimeEnd: "",
appointBeginTime: "",
appointEndTime: "",
doneTimeBegin: "",
doneTimeEnd: ""
})
this.search(); this.search();
}, },
// 导出 // 导出
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册