From 64c2959c6e7fe8054656427e971dac5a42a96535 Mon Sep 17 00:00:00 2001
From: mo-bai <1873032855@qq.com>
Date: Mon, 25 Apr 2022 17:36:40 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8E=82=E8=AF=A6=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/device-info/index.vue | 8 ++++++--
pages/factory-info/index.vue | 11 ++++++++---
pages/production-info/index.vue | 8 ++++++--
3 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/pages/device-info/index.vue b/pages/device-info/index.vue
index 42daae0..103f82c 100644
--- a/pages/device-info/index.vue
+++ b/pages/device-info/index.vue
@@ -20,7 +20,7 @@
-
+
删除
@@ -40,13 +40,17 @@ export default {
return {
info: { imgItemList: [] },
id: null,
- swiperCurrent: 0
+ swiperCurrent: 0,
+ operation: 'edit'
}
},
onLoad(options) {
if (options.id) {
this.id = options.id
}
+ if (options.operation) {
+ this.operation = options.operation
+ }
},
onShow() {
if (this.id) {
diff --git a/pages/factory-info/index.vue b/pages/factory-info/index.vue
index 92e856f..2d7d47b 100644
--- a/pages/factory-info/index.vue
+++ b/pages/factory-info/index.vue
@@ -53,7 +53,7 @@
-
+
@@ -67,7 +67,12 @@
-
+
{{ production.name }}
@@ -78,7 +83,7 @@
{{ item.name }}
-
+
{{ hasMore ? '加载中~' : '没有更多~' }}
diff --git a/pages/production-info/index.vue b/pages/production-info/index.vue
index 4f32399..15fb9f1 100644
--- a/pages/production-info/index.vue
+++ b/pages/production-info/index.vue
@@ -20,7 +20,7 @@
-
+
删除
@@ -40,13 +40,17 @@ export default {
return {
info: { imgItemList: [] },
id: null,
- swiperCurrent: 0
+ swiperCurrent: 0,
+ operation: 'edit'
}
},
onLoad(options) {
if (options.id) {
this.id = options.id
}
+ if (options.operation) {
+ this.operation = options.operation
+ }
},
onShow() {
if (this.id) {