Explorar o código

科室部分报表获取数据bug1619

zhouna %!s(int64=3) %!d(string=hai) anos
pai
achega
baf99ee048
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/js/index.js

+ 4 - 2
src/js/index.js

@@ -438,12 +438,14 @@ function initMenu(data, userInfo) {
 //获取科室列表
 //获取科室列表
 function getOwnDept() {
 function getOwnDept() {
   // if(hasData('FUNC000058')){
   // if(hasData('FUNC000058')){
-  setCookie("deptList", JSON.stringify([]))
+  setLocal("deptList", JSON.stringify([]))
+  //setCookie("deptList", JSON.stringify([]))
   post(api.getDept, {}).then((res) => {
   post(api.getDept, {}).then((res) => {
     let data = res.data;
     let data = res.data;
     if (data.code == 0) {
     if (data.code == 0) {
       let result = data.data
       let result = data.data
-      setCookie("deptList", JSON.stringify(result))
+	  setLocal("deptList", JSON.stringify(result))
+	  //setCookie("deptList", JSON.stringify(result))
     }
     }
   })
   })
   // }
   // }