提交 a44ac5de 编写于 作者: lyf's avatar lyf

同步页面数据

上级 7a01a51a
......@@ -422,6 +422,7 @@ export default {
doctorId: 0,
operateUserID: "",
triageDepartmentId: 0,
pickerOptions1: {
disabledDate: (time) => {
return time.getTime() > new Date().getTime(); //减去一天的时间代表可以选择同一天;
......@@ -442,7 +443,7 @@ export default {
if (newVal) {
this.isUp=false;
this.init();
this.reset();
}
},
deep: true,
......@@ -475,18 +476,21 @@ export default {
// 获取tabs数据
getTabs() {
let url = COUNT_QUERY;
this.GET(url).then((res) => {
return this.GET(url).then((res) => {
if (res.code == "000000") {
this.setTable(res.data);
this.tabrefresh = false;
this.$nextTick(() => {
this.tabrefresh = true;
});
return true
}
});
},
init() {
let fullPath = this.$route.fullPath;
let fromType = 1;
if (fullPath.indexOf("?") > -1) {
......@@ -501,14 +505,22 @@ export default {
this.activeName = "99";
this.searchParam.status = "";
this.Raw_tabpaneList = [];
this.getTabs();
this.getTabs().then((res)=>{
console.log(res)
if(res){
this.reset()
}
});
this.contrastData();
},
// 不同也main切换不同的tab
setTable(data) {
let tabs = ALL_TAB_LIST;
console.log("this.fromType", this.fromType);
switch (this.fromType) {
case 1:
tabs = ALL_TAB_LIST;
......@@ -562,6 +574,9 @@ export default {
if (this.Raw_tabpaneList.length == 0) {
this.Raw_tabpaneList = JSON.parse(JSON.stringify(tabs));
}
},
resetPage() {
......@@ -882,8 +897,6 @@ export default {
},
//重新匹配医生
reMatchDot(row, type) {
console.log(row, type);
// console.log("type",type)
if(type==10){
this.rematchingOptions=["接诊医生爽约"]
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册