Explorar el Código

页面功能优化

fanghuisheng hace 1 año
padre
commit
d99a965d17

+ 0 - 0
src/api/setting/building.js → src/api/business/zhxf/building/index.js


+ 0 - 0
src/api/setting/funReport.js → src/api/business/zhxf/funReport/index.js


+ 0 - 0
src/api/setting/index.js → src/api/business/zhxf/messagePush/index.js


+ 0 - 6
src/pages/business/fireIot/deviceSelect/components/deviceDetailsList.vue

@@ -98,12 +98,6 @@ onLoad((options) => {
   }
 });
 
-// 自定义导航事件
-onNavigationBarButtonTap((e) => {
-  if (e.float == "right") {
-  } else {
-  }
-});
 </script>
 
 <style lang="scss" scoped>

+ 5 - 3
src/pages/business/fireIot/facilitiesView/index.vue

@@ -51,9 +51,11 @@ const dataList = ref([]);
 function init() {
   baseFacilityType().then((requset) => {
     if (requset.status === "SUCCESS") {
-      dataList.value = requset.data[0].baseGgpFacilityTypeNumVO;
-      typeNum.value = requset.data[0].typeNum;
-      facilityNum.value = requset.data[0].facilityNum;
+      if (requset.data.length > 0) {
+        dataList.value = requset.data[0].baseGgpFacilityTypeNumVO;
+        typeNum.value = requset.data[0].typeNum;
+        facilityNum.value = requset.data[0].facilityNum;
+      }
     }
   });
 }

+ 1 - 1
src/pages/business/zhxf/building/index.vue

@@ -100,7 +100,7 @@ import { onLoad, onShow, onReady, onHide, onLaunch } from "@dcloudio/uni-app";
 import { ref, onMounted, inject, shallowRef, reactive, toRefs, getCurrentInstance } from "vue";
 import { publicStores, useStores } from "@/store/modules/index";
 
-import { getBuildingManagement } from "@/api/setting/building.js";
+import { getBuildingManagement } from "@/api/business/zhxf/building/index.js";
 
 const useStore = useStores();
 

+ 1 - 1
src/pages/business/zhxf/funReport/funcAdd/index.vue

@@ -51,7 +51,7 @@ import { onLoad, onShow, onReady, onHide, onLaunch, onReachBottom, onNavigationB
 import { ref, onMounted, inject, shallowRef, reactive, toRefs, watchEffect, getCurrentInstance, watch } from "vue";
 import { publicStores, useStores } from "@/store/modules/index";
 
-import { del, index } from "@/api/setting/funReport.js";
+import { del, index } from "@/api/business/zhxf/funReport/index.js";
 
 const useStore = useStores();
 

+ 1 - 1
src/pages/business/zhxf/funReport/index.vue

@@ -70,7 +70,7 @@ import { onLoad, onShow, onReady, onHide, onLaunch, onReachBottom, onNavigationB
 import { ref, onMounted, inject, shallowRef, reactive, toRefs, watchEffect, getCurrentInstance } from "vue";
 import { publicStores, useStores } from "@/store/modules/index";
 
-import { del, index } from "@/api/setting/funReport.js";
+import { del, index } from "@/api/business/zhxf/funReport/index.js";
 
 const useStore = useStores();
 

+ 1 - 1
src/pages/business/zhxf/messagePush/index.vue

@@ -22,7 +22,7 @@ import { onLoad, onShow, onHide, onLaunch, onReady } from "@dcloudio/uni-app";
 import { ref, onMounted, inject, shallowRef, reactive, toRefs, getCurrentInstance } from "vue";
 import { publicStores, useStores } from "@/store/modules/index";
 
-import { setperm } from "@/api/setting/index.js";
+import { setperm } from "@/api/business/zhxf/messagePush/index.js";
 
 const useStore = useStores();
 

+ 1 - 1
src/pages/mine.vue

@@ -185,7 +185,7 @@ import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue
 import { publicStores, useStores } from "@/store/modules/index";
 
 import { uploadAvatar, updateUserProfile } from "@/api/system/user";
-import { getAuthorization } from "@/api/setting/index.js";
+import { getAuthorization } from "@/api/business/zhxf/messagePush/index.js";
 
 const useStore = useStores();
 

+ 1 - 1
src/pages/mine/index.vue

@@ -185,7 +185,7 @@ import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue
 import { publicStores, useStores } from "@/store/modules/index";
 
 import { uploadAvatar, updateUserProfile } from "@/api/system/user";
-import { getAuthorization } from "@/api/setting/index.js";
+import { getAuthorization } from "@/api/business/zhxf/messagePush/index.js";
 
 const useStore = useStores();
 

+ 1 - 1
src/pages/mine/info/index.vue

@@ -1,6 +1,6 @@
 <template>
   <view :data-theme="'theme-' + proxy.$settingStore.themeColor.name" class="info-container">
-    <u-sticky class="shadow-default" bgColor="#fff">
+    <u-sticky class="shadow-default" bgColor="#fff" style="top: 0">
       <u-tabs :list="tabsList" :current="tabsCurrent" @click="tabsClick" lineColor="#333" :activeStyle="{ color: '#333' }" :inactiveStyle="{ color: '#909399' }" :scrollable="false"></u-tabs>
     </u-sticky>
 

+ 9 - 1
src/permission.js

@@ -5,7 +5,15 @@ import setting from "@/plugins/setting.plugins";
 const loginPage = "/pages/login";
 
 // 页面白名单
-const whiteList = ["/pages/login", "/pages/serveConfig", "/pages/serveConfigSelect", "/pages/common/textview/index1", "/pages/common/webview/index", "/pages/business/mhxf/unitInfoCollection/index"];
+const whiteList = [
+  "/pages/login",
+  "/pages/serveConfig",
+  "/pages/serveConfigSelect",
+  "/pages/common/textview/index1",
+  "/pages/common/webview/index",
+  "/pages/business/mhxf/unitInfoCollection/index",
+  "/pages/common/invoicing/index"
+];
 
 // 检查地址白名单
 function checkWhite(url) {