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

优化不同页面切换

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