ソースを参照

build(chore): bump version to 1.15.14

优化跨页面传参,传递更完整的设备相关信息而非仅purId,同时修复传参结构不匹配问题
allen 2 日 前
コミット
5991f3e3c4
3 ファイル変更7 行追加5 行削除
  1. 2 2
      manifest.json
  2. 4 2
      pages/equipList2/index.vue
  3. 1 1
      pages/server/index.vue

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "云飞智控",
     "appid" : "__UNI__DBA6730",
     "description" : "",
-    "versionName" : "1.15.13",
-    "versionCode" : 11513,
+    "versionName" : "1.15.14",
+    "versionCode" : 11514,
     "transformPx" : false,
     "sassImplementationName" : "node-sass",
     /* 5+App特有相关 */

+ 4 - 2
pages/equipList2/index.vue

@@ -657,8 +657,10 @@
 		},
 		onLoad() {
 			const that = this;
-			uni.$on('purId', (purId) => {
-				that.pur_id = purId;
+			uni.$on('purId', (item) => {
+				that.pur_id = item.purId;
+				that.menu = item.menu;
+				that.device_model = item.device_model;
 			});
 			uni.$on('refreshData', (refreshData) => {
 				this.eqlist();

+ 1 - 1
pages/server/index.vue

@@ -141,7 +141,7 @@ export default {
 					url: '/pages/equipList2/index',
           success: () => {
             setTimeout(() => {
-              uni.$emit('purId',purId);
+              uni.$emit('purId',{purId,menu:item.children[0]?.menu || '',device_model:item.children[0]?.device_model || ''});
             }, 50);
           }
 				})