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

同步页面数据

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