diff --git a/common/api/device.js b/common/api/device.js
index 77f23b0..c39db49 100644
--- a/common/api/device.js
+++ b/common/api/device.js
@@ -1,6 +1,7 @@
import request from '../js/request';
import config from '../js/config';
+// 获取设备
export function getDeviceList(params) {
return request({
url: '/EquipmentDelivery/queryEquipmentByProject',
diff --git a/manifest.json b/manifest.json
index 90aae26..1975617 100644
--- a/manifest.json
+++ b/manifest.json
@@ -132,7 +132,7 @@
"/api" : {
"https" : true,
// "target" : "https://china.indpecker.com",
- "target" : "http://192.168.1.114:10210",
+ "target" : "http://192.168.1.115:10210",
"changOrigin" : true,
"pathRewrite" : {
"/api" : ""
diff --git a/pages/device/new.vue b/pages/device/new.vue
index 9280330..68134cc 100644
--- a/pages/device/new.vue
+++ b/pages/device/new.vue
@@ -42,14 +42,14 @@
-
+
-
+
+
@@ -46,10 +54,28 @@
-
\ No newline at end of file
+
diff --git a/pages/index/comp/indexYunWei.vue b/pages/index/comp/indexYunWei.vue
index 947db50..d8ba55c 100644
--- a/pages/index/comp/indexYunWei.vue
+++ b/pages/index/comp/indexYunWei.vue
@@ -22,17 +22,23 @@
-->
-
+
-
+
-
+
@@ -41,59 +47,58 @@
-
\ No newline at end of file
+
diff --git a/pages/index/comp/indexZhuYongHu.vue b/pages/index/comp/indexZhuYongHu.vue
index a120519..da3db87 100644
--- a/pages/index/comp/indexZhuYongHu.vue
+++ b/pages/index/comp/indexZhuYongHu.vue
@@ -14,7 +14,7 @@
-
+
@@ -23,17 +23,23 @@
-
+
-
+
-
+
@@ -46,15 +52,15 @@ export default {
props: {
store: {
type: Object,
- default: {}
+ default: {},
},
projectList: {
type: Array,
- default: []
+ default: [],
},
projectType: {
type: Array,
- default: []
+ default: [],
},
},
data() {
@@ -64,48 +70,47 @@ export default {
projectName: '',
projectNameIndex: 0,
projectType: '',
- projectTypeIndex: 0
+ projectTypeIndex: 0,
},
navHeight: 0,
- minHeight: ''
- }
+ minHeight: '',
+ };
},
computed: {
deviceListFilter() {
- return this.store.data.filter(item => {
+ return this.store.data.filter((item) => {
if (this.select.projectName && this.select.projectType) {
- return item.project === this.select.projectName && item.type === this.select.projectType
- } else
- if (this.select.projectName) {
- return item.projectId === this.projectList[this.select.projectNameIndex].id
- } else if (this.select.projectType) {
- return item.projectType === this.projectType[this.select.projectTypeIndex].id
- } else {
- return true
- }
- })
- }
+ return item.project === this.select.projectName && item.type === this.select.projectType;
+ } else if (this.select.projectName) {
+ return item.projectId === this.projectList[this.select.projectNameIndex].id;
+ } else if (this.select.projectType) {
+ return item.projectType === this.projectType[this.select.projectTypeIndex].id;
+ } else {
+ return true;
+ }
+ });
+ },
},
methods: {
- submitFeedBack() { uni.navigateTo({ url: '/pages/home/feedback' }) },
+ submitFeedBack() {
+ uni.navigateTo({ url: '/pages/home/feedback' });
+ },
projectTypeChange(e) {
- this.select.projectTypeIndex = e.detail.value
+ this.select.projectTypeIndex = e.detail.value;
if (e.detail.value === 0) {
- this.select.projectType = ''
- return
+ this.select.projectType = '';
+ return;
}
- this.select.projectType = this.projectType[e.detail.value].text
-
-
+ this.select.projectType = this.projectType[e.detail.value].text;
},
projectNameChange(e) {
console.log(e);
- this.select.projectNameIndex = e.detail.value
+ this.select.projectNameIndex = e.detail.value;
if (e.detail.value === 0) {
- this.select.projectName = ''
- return
+ this.select.projectName = '';
+ return;
}
- this.select.projectName = this.projectList[e.detail.value].text
+ this.select.projectName = this.projectList[e.detail.value].text;
},
registerDevice() {
uni.showModal({
@@ -117,50 +122,47 @@ export default {
success: ({ confirm, cancel }) => {
if (confirm) {
uni.navigateTo({
- url: '/pages/device/new'
- })
+ url: '/pages/device/new',
+ });
} else if (cancel) {
uni.navigateTo({
- url: '/pages/gateway/list'
- })
+ url: '/pages/gateway/list',
+ });
}
- }
- })
+ },
+ });
},
registerGateway() {
uni.navigateTo({
- url: '/pages/gateway/new'
- })
+ url: '/pages/gateway/new',
+ });
},
navMenuClick(index) {
- this.navMenuActive = index
+ this.navMenuActive = index;
},
jump(item) {
- if (item.name.indexOf('APF') > -1) {
- uni.navigateTo({
- url: '/pages/device/APF/detail'
- })
- } else if (item.name.indexOf('DVR') > -1) {
- uni.navigateTo({
- url: '/pages/device/DVR/detail'
- })
- }
+ uni.navigateTo({
+ url: '/pages/device/APF/detail',
+ });
},
},
mounted() {
setTimeout(() => {
// 获取nav高度
- uni.createSelectorQuery().select('.nav').boundingClientRect((rect) => {
- this.navHeight = rect.height
- // #ifdef H5
- this.minHeight = 'calc(100vh - env(safe-area-inset-bottom) - ' + (50 + this.navHeight) + 'px)'
- // #endif
- // #ifdef APP-PLUS
- this.minHeight = 'calc(100vh - ' + this.navHeight + 'px)'
- // #endif
- }).exec()
+ uni.createSelectorQuery()
+ .select('.nav')
+ .boundingClientRect((rect) => {
+ this.navHeight = rect.height;
+ // #ifdef H5
+ this.minHeight = 'calc(100vh - env(safe-area-inset-bottom) - ' + (50 + this.navHeight) + 'px)';
+ // #endif
+ // #ifdef APP-PLUS
+ this.minHeight = 'calc(100vh - ' + this.navHeight + 'px)';
+ // #endif
+ })
+ .exec();
}, 1000);
- }
-}
+ },
+};
-
\ No newline at end of file
+
diff --git a/pages/index/comp/indexZiYongHu.vue b/pages/index/comp/indexZiYongHu.vue
index 2ca7445..407d081 100644
--- a/pages/index/comp/indexZiYongHu.vue
+++ b/pages/index/comp/indexZiYongHu.vue
@@ -14,24 +14,30 @@
-
+
-
+
-
+
-
+
@@ -40,7 +46,7 @@
-
\ No newline at end of file
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 65150c3..fac9980 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -7,28 +7,35 @@
-
+
-
+
\ No newline at end of file
+