diff --git a/common/style/mixin.styl b/common/style/mixin.styl
index f564d40..63beec8 100644
--- a/common/style/mixin.styl
+++ b/common/style/mixin.styl
@@ -9,10 +9,12 @@ $fc1 = #323232
background-color: $red !important
.bggreen
background-color: $green !important
+ color #fff !important
.bgyellow
background-color: $yellow !important
.bgblue
background-color: $blue !important
+ color #fff !important
.bggray
background-color: $gray !important
diff --git a/pages/login/setup.vue b/pages/login/setup.vue
index 68dbe63..f48c4ab 100644
--- a/pages/login/setup.vue
+++ b/pages/login/setup.vue
@@ -7,6 +7,10 @@
服务器地址
+
刷新时间(s)
@@ -47,6 +51,13 @@
})
return
}
+ // if (this.acsip === '') {
+ // uni.showToast({
+ // title: '请填写ACS地址',
+ // icon: 'none'
+ // })
+ // return
+ // }
if (this.setTime === '') {
uni.showToast({
title: '请填写刷新时间',
diff --git a/pages/manage/point-manage.vue b/pages/manage/point-manage.vue
index e9b1c0e..c0d03ca 100644
--- a/pages/manage/point-manage.vue
+++ b/pages/manage/point-manage.vue
@@ -1,16 +1,16 @@
-
+
- 起:{{sObj.device_name}}
+ 起:{{sObj.device_name}}
–
- 终:{{nObj.device_name}}
+ 终:{{nObj.device_name}}
@@ -21,9 +21,9 @@
-
- {{el.device_name}}
- 来源:{{el.source_device}}
+
+ {{el.device_name}}
+ {{el.device_code}}
@@ -31,10 +31,10 @@
-
-
-
-
+
+
+
+
@@ -83,10 +83,11 @@
},
async initArea () {
let res = await queryArea()
- this.areaArr = [...res.result]
+ this.areaArr = [...res.data]
this.areaArr.map(el => {
this.$set(el, 'checked', false)
this.$set(el, 'pointArr', [])
+ this.$set(el, 'region_code', '1')
})
if (this.areaArr.length > 0) {
this.getPonit(this.areaArr[0])
@@ -97,7 +98,7 @@
this.regobj = e
this.areaArr.map(el => {
if (el.region_code === e.region_code) {
- this.$set(el, 'pointArr', [...res.result])
+ this.$set(el, 'pointArr', [...res.data])
}
})
},
@@ -161,7 +162,7 @@
diff --git a/utils/getData2.js b/utils/getData2.js
index c7c1c6c..71c5605 100644
--- a/utils/getData2.js
+++ b/utils/getData2.js
@@ -32,7 +32,7 @@ export const queryArea = () => request({
export const queryPointByArea = (code) => request({
url:'api/hand/queryPointByArea',
data: {
- areaCode: code
+ region_code: code
}
})
// 1.3创建任务(生成任务号为-开头)
diff --git a/utils/mork2.js b/utils/mork2.js
index 86e7a6c..33f57ca 100644
--- a/utils/mork2.js
+++ b/utils/mork2.js
@@ -55,13 +55,13 @@ export const taskOperation = (uuid, type) => {
}
export const queryArea = () => {
let res = {
- result: [{region_code: '1', region_name: 'A1'}, {region_code: '2', region_name: 'A2'}, {region_code: '3', region_name: 'A2'}, {region_code: '4', region_name: 'A10'}]
+ data: [{region_code: '1', region_name: 'A1'}, {region_code: '2', region_name: 'A2'}, {region_code: '3', region_name: 'A2'}, {region_code: '4', region_name: 'A10'}]
}
return res
}
export const queryPointByArea = () => {
let res = {
- result: [{
+ data: [{
device_code: '1',
device_name: 'JLDFJLLJ',
source_device: 'FAL3LAA01',
diff --git a/vuex/modules/user.js b/vuex/modules/user.js
index a7b5a62..cfe5e80 100644
--- a/vuex/modules/user.js
+++ b/vuex/modules/user.js
@@ -1,13 +1,13 @@
import * as types from '../types'
-const baseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.162:8011' : 'http://192.168.81.162:8011'
-const acsUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.162:8010' : 'http://192.168.81.162:8010'
-const printUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.162:8010' : 'http://192.168.81.162:8010'
+const baseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.120:8011' : 'http://192.168.81.120:8011'
+const acsUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.120:8010' : 'http://192.168.81.120:8010'
+const printUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.120:8010' : 'http://192.168.81.120:8010'
const state = {
baseUrl: uni.getStorageSync('baseUrl') || baseUrl,
acsUrl: uni.getStorageSync('acsUrl') || acsUrl,
printUrl: uni.getStorageSync('printUrl') || printUrl,
- setTime: uni.getStorageSync('setTime') || 5000,
+ setTime: uni.getStorageSync('setTime') || 50000,
loginName: uni.getStorageSync('loginName') ? uni.getStorageSync('loginName') : '',
userInfo: uni.getStorageSync('userInfo') ? uni.getStorageSync('userInfo') : '',
saveToken: uni.getStorageSync('saveToken') || ''