|
@@ -35,11 +35,12 @@
|
|
|
<view class="btn-box">
|
|
<view class="btn-box">
|
|
|
<u-button @click="setTimeSubmit" size="mini" type="success">确定</u-button>
|
|
<u-button @click="setTimeSubmit" size="mini" type="success">确定</u-button>
|
|
|
</view>
|
|
</view>
|
|
|
- <u-calendar v-model="glass_show" mode="date" @change="timeChange($event,'glass')"></u-calendar>
|
|
|
|
|
- <u-calendar v-model="cultivate_show" mode="date" @change="timeChange($event,'cultivate')"></u-calendar>
|
|
|
|
|
|
|
+ <u-calendar v-model="glass_show" mode="date" :max-date="date" @change="timeChange($event,'glass')"></u-calendar>
|
|
|
|
|
+ <u-calendar v-model="cultivate_show" mode="date" :max-date="date" @change="timeChange($event,'cultivate')"></u-calendar>
|
|
|
</u-popup>
|
|
</u-popup>
|
|
|
<u-popup v-model="yxShow" mode="center" width="600rpx">
|
|
<u-popup v-model="yxShow" mode="center" width="600rpx">
|
|
|
- <u-field label="监测害虫名称" label-width='240' required :error-message="xyErr" v-model="decoy" class="field">
|
|
|
|
|
|
|
+ <u-field label="监测害虫名称" label-width='240' required :error-message="xyErr" v-model="decoy" class="field"
|
|
|
|
|
+ :field-style="fieldstyle" placeholder="请填写害虫名称">
|
|
|
</u-field>
|
|
</u-field>
|
|
|
<view class="btn-box">
|
|
<view class="btn-box">
|
|
|
<u-button @click="yxSubmit" size="mini" type="success">确定</u-button>
|
|
<u-button @click="yxSubmit" size="mini" type="success">确定</u-button>
|
|
@@ -103,102 +104,104 @@
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- fieldstyle:{
|
|
|
|
|
- border:"2rpx solid #f6f6f6",
|
|
|
|
|
- "border-radius":"24px",
|
|
|
|
|
- "padding-left":"20rpx",
|
|
|
|
|
- "background-color":"#f6f6f6"
|
|
|
|
|
|
|
+ fieldstyle: {
|
|
|
|
|
+ border: "2rpx solid #f6f6f6",
|
|
|
|
|
+ "border-radius": "24px",
|
|
|
|
|
+ "padding-left": "20rpx",
|
|
|
|
|
+ "background-color": "#f6f6f6"
|
|
|
},
|
|
},
|
|
|
- city:"",
|
|
|
|
|
|
|
+ city: "",
|
|
|
type: null, //设备类型
|
|
type: null, //设备类型
|
|
|
device_status: null,
|
|
device_status: null,
|
|
|
equipInfo: {},
|
|
equipInfo: {},
|
|
|
cbd: [{
|
|
cbd: [{
|
|
|
- icon: '/image/cb/1.png',
|
|
|
|
|
- tex: '查看图片',
|
|
|
|
|
- path: '/pages/cb/cbd/equip-set/imgpage',
|
|
|
|
|
- tf:false
|
|
|
|
|
- },
|
|
|
|
|
- // {
|
|
|
|
|
- // icon: '/image/cb/2.png',
|
|
|
|
|
- // tex: '历史数据',
|
|
|
|
|
- // path: '/pages/cb/cbd/equip-set/historyfile',
|
|
|
|
|
- // tf:false
|
|
|
|
|
- // },
|
|
|
|
|
- {
|
|
|
|
|
- icon: '/image/cb/3.png',
|
|
|
|
|
- tex: '害虫统计',
|
|
|
|
|
- path: '/pages/cb/cbd/equip-set/statistics',
|
|
|
|
|
- tf:false
|
|
|
|
|
- }, {
|
|
|
|
|
- icon: '/image/cb/4.png',
|
|
|
|
|
- tex: '设备控制',
|
|
|
|
|
- path: '/pages/cb/cbd/equip-set/equip-set',
|
|
|
|
|
- tf:false
|
|
|
|
|
- }, {
|
|
|
|
|
- icon: '/image/cb/5.png',
|
|
|
|
|
- tex: '短信预警',
|
|
|
|
|
- path: '/pages/cb/cbd/equip-set/note',
|
|
|
|
|
- tf:false
|
|
|
|
|
- }, {
|
|
|
|
|
- icon: '/image/cb/6.png',
|
|
|
|
|
- tex: 'sim卡详情',
|
|
|
|
|
- path: '/pages/cb/sim/sim',
|
|
|
|
|
- tf:true
|
|
|
|
|
- },{
|
|
|
|
|
- icon: '/image/environment/7.png',
|
|
|
|
|
- tex: '一键报修',
|
|
|
|
|
- path: '/pages/afterSale/addafter',
|
|
|
|
|
- tf:true
|
|
|
|
|
- }],
|
|
|
|
|
|
|
+ icon: '/image/cb/1.png',
|
|
|
|
|
+ tex: '查看图片',
|
|
|
|
|
+ path: '/pages/cb/cbd/equip-set/imgpage',
|
|
|
|
|
+ tf: false
|
|
|
|
|
+ },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // icon: '/image/cb/2.png',
|
|
|
|
|
+ // tex: '历史数据',
|
|
|
|
|
+ // path: '/pages/cb/cbd/equip-set/historyfile',
|
|
|
|
|
+ // tf:false
|
|
|
|
|
+ // },
|
|
|
|
|
+ {
|
|
|
|
|
+ icon: '/image/cb/3.png',
|
|
|
|
|
+ tex: '害虫统计',
|
|
|
|
|
+ path: '/pages/cb/cbd/equip-set/statistics',
|
|
|
|
|
+ tf: false
|
|
|
|
|
+ }, {
|
|
|
|
|
+ icon: '/image/cb/4.png',
|
|
|
|
|
+ tex: '设备控制',
|
|
|
|
|
+ path: '/pages/cb/cbd/equip-set/equip-set',
|
|
|
|
|
+ tf: false
|
|
|
|
|
+ }, {
|
|
|
|
|
+ icon: '/image/cb/5.png',
|
|
|
|
|
+ tex: '短信预警',
|
|
|
|
|
+ path: '/pages/cb/cbd/equip-set/note',
|
|
|
|
|
+ tf: false
|
|
|
|
|
+ }, {
|
|
|
|
|
+ icon: '/image/cb/6.png',
|
|
|
|
|
+ tex: 'sim卡详情',
|
|
|
|
|
+ path: '/pages/cb/sim/sim',
|
|
|
|
|
+ tf: true
|
|
|
|
|
+ }, {
|
|
|
|
|
+ icon: '/image/environment/7.png',
|
|
|
|
|
+ tex: '一键报修',
|
|
|
|
|
+ path: '/pages/afterSale/addafter',
|
|
|
|
|
+ tf: true
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
bzy: [{
|
|
bzy: [{
|
|
|
- icon: '/image/cb/4.png',
|
|
|
|
|
- tex: '设备控制',
|
|
|
|
|
- path: '/pages/cb/bzy/equip-set/equip-set',
|
|
|
|
|
- tf:false
|
|
|
|
|
- }, {
|
|
|
|
|
- icon: '/image/cb/1.png',
|
|
|
|
|
- tex: '查看图片',
|
|
|
|
|
- path: '/pages/cb/cbd/equip-set/imgpage',
|
|
|
|
|
- tf:false
|
|
|
|
|
- },
|
|
|
|
|
- // {
|
|
|
|
|
- // icon: '/image/cb/2.png',
|
|
|
|
|
- // tex: '历史数据',
|
|
|
|
|
- // path: '/pages/cb/bzy/equip-set/bzyhistoryile',
|
|
|
|
|
- // tf:false
|
|
|
|
|
- // },
|
|
|
|
|
- {
|
|
|
|
|
- icon: '/image/cb/6.png',
|
|
|
|
|
- tex: 'sim卡详情',
|
|
|
|
|
- path: '/pages/cb/sim/sim',
|
|
|
|
|
- tf:false
|
|
|
|
|
- },{
|
|
|
|
|
- icon: '/image/environment/7.png',
|
|
|
|
|
- tex: '一键报修',
|
|
|
|
|
- path: '/pages/afterSale/addafter',
|
|
|
|
|
- tf:true
|
|
|
|
|
- }],
|
|
|
|
|
|
|
+ icon: '/image/cb/4.png',
|
|
|
|
|
+ tex: '设备控制',
|
|
|
|
|
+ path: '/pages/cb/bzy/equip-set/equip-set',
|
|
|
|
|
+ tf: false
|
|
|
|
|
+ }, {
|
|
|
|
|
+ icon: '/image/cb/1.png',
|
|
|
|
|
+ tex: '查看图片',
|
|
|
|
|
+ path: '/pages/cb/cbd/equip-set/imgpage',
|
|
|
|
|
+ tf: false
|
|
|
|
|
+ },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // icon: '/image/cb/2.png',
|
|
|
|
|
+ // tex: '历史数据',
|
|
|
|
|
+ // path: '/pages/cb/bzy/equip-set/bzyhistoryile',
|
|
|
|
|
+ // tf:false
|
|
|
|
|
+ // },
|
|
|
|
|
+ {
|
|
|
|
|
+ icon: '/image/cb/6.png',
|
|
|
|
|
+ tex: 'sim卡详情',
|
|
|
|
|
+ path: '/pages/cb/sim/sim',
|
|
|
|
|
+ tf: false
|
|
|
|
|
+ }, {
|
|
|
|
|
+ icon: '/image/environment/7.png',
|
|
|
|
|
+ tex: '一键报修',
|
|
|
|
|
+ path: '/pages/afterSale/addafter',
|
|
|
|
|
+ tf: true
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
xy: [{
|
|
xy: [{
|
|
|
icon: '/image/cb/4.png',
|
|
icon: '/image/cb/4.png',
|
|
|
tex: '设备控制',
|
|
tex: '设备控制',
|
|
|
path: '/pages/cb/xy/equip-set/equip-set',
|
|
path: '/pages/cb/xy/equip-set/equip-set',
|
|
|
- tf:false
|
|
|
|
|
|
|
+ tf: false
|
|
|
}, {
|
|
}, {
|
|
|
icon: '/image/cb/6.png',
|
|
icon: '/image/cb/6.png',
|
|
|
tex: 'sim卡详情',
|
|
tex: 'sim卡详情',
|
|
|
path: '/pages/cb/sim/sim',
|
|
path: '/pages/cb/sim/sim',
|
|
|
- tf:false
|
|
|
|
|
|
|
+ tf: false
|
|
|
}, {
|
|
}, {
|
|
|
icon: '/image/cb/2.png',
|
|
icon: '/image/cb/2.png',
|
|
|
tex: '历史数据',
|
|
tex: '历史数据',
|
|
|
path: '/pages/cb/xy/equip-set/xyhistoryile',
|
|
path: '/pages/cb/xy/equip-set/xyhistoryile',
|
|
|
- tf:false
|
|
|
|
|
- },{
|
|
|
|
|
|
|
+ tf: false
|
|
|
|
|
+ }, {
|
|
|
icon: '/image/environment/7.png',
|
|
icon: '/image/environment/7.png',
|
|
|
tex: '一键报修',
|
|
tex: '一键报修',
|
|
|
path: '/pages/afterSale/addafter',
|
|
path: '/pages/afterSale/addafter',
|
|
|
- tf:true
|
|
|
|
|
|
|
+ tf: true
|
|
|
}],
|
|
}],
|
|
|
newState: {}, //设备最新状态
|
|
newState: {}, //设备最新状态
|
|
|
setTimeShow: false,
|
|
setTimeShow: false,
|
|
@@ -211,7 +214,8 @@
|
|
|
yxShow: false, //诱芯弹框
|
|
yxShow: false, //诱芯弹框
|
|
|
xyErr: '',
|
|
xyErr: '',
|
|
|
decoy: '',
|
|
decoy: '',
|
|
|
- newtishitf:false,
|
|
|
|
|
|
|
+ newtishitf: false,
|
|
|
|
|
+ date: "", //日历最大可选日期
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -266,11 +270,13 @@
|
|
|
}, {
|
|
}, {
|
|
|
icon: '/image/cb/icon08.png',
|
|
icon: '/image/cb/icon08.png',
|
|
|
txt: '环境温度(℃)',
|
|
txt: '环境温度(℃)',
|
|
|
- value: this.newState.at=="2.5"||this.newState.at=="25"||this.newState.at==""?this.newState.new_tem:this.newState.at
|
|
|
|
|
|
|
+ value: this.newState.at == "2.5" || this.newState.at == "25" || this.newState.at == "" || this.newState.at ==
|
|
|
|
|
+ "25.0" ? this.newState.new_tem : this.newState.at
|
|
|
}, {
|
|
}, {
|
|
|
icon: '/image/cb/icon07.png',
|
|
icon: '/image/cb/icon07.png',
|
|
|
txt: '环境湿度(%)',
|
|
txt: '环境湿度(%)',
|
|
|
- value:this.newState.ah=="30"||this.newState.ah=="3.0"||this.newState.ah==""?this.newState.new_hum:this.newState.ah
|
|
|
|
|
|
|
+ value: this.newState.ah == "30" || this.newState.ah == "3.0" || this.newState.ah == "" || this.newState.ah ==
|
|
|
|
|
+ "30.0" ? this.newState.new_hum : this.newState.ah
|
|
|
}, {
|
|
}, {
|
|
|
icon: '/image/prevention/icon16.png',
|
|
icon: '/image/prevention/icon16.png',
|
|
|
txt: '信号强度',
|
|
txt: '信号强度',
|
|
@@ -329,11 +335,13 @@
|
|
|
}, {
|
|
}, {
|
|
|
icon: '/image/cb/icon08.png',
|
|
icon: '/image/cb/icon08.png',
|
|
|
txt: '环境温度(℃)',
|
|
txt: '环境温度(℃)',
|
|
|
- value: this.newState.at=="2.5"||this.newState.at=="25"||this.newState.at==""?this.newState.new_tem:this.newState.at
|
|
|
|
|
|
|
+ value: this.newState.at == "2.5" || this.newState.at == "25" || this.newState.at == "" || this.newState.at ==
|
|
|
|
|
+ "25.0" ? this.newState.new_tem : this.newState.at
|
|
|
}, {
|
|
}, {
|
|
|
icon: '/image/prevention/66.png',
|
|
icon: '/image/prevention/66.png',
|
|
|
txt: '环境湿度(%)',
|
|
txt: '环境湿度(%)',
|
|
|
- value:this.newState.ah=="30"||this.newState.ah=="3.0"||this.newState.ah==""?this.newState.new_hum:this.newState.ah
|
|
|
|
|
|
|
+ value: this.newState.ah == "30" || this.newState.ah == "3.0" || this.newState.ah == "" || this.newState.ah ==
|
|
|
|
|
+ "30.0" ? this.newState.new_hum : this.newState.ah
|
|
|
}, {
|
|
}, {
|
|
|
icon: '/image/prevention/icon16.png',
|
|
icon: '/image/prevention/icon16.png',
|
|
|
txt: '信号强度',
|
|
txt: '信号强度',
|
|
@@ -380,12 +388,14 @@
|
|
|
{
|
|
{
|
|
|
icon: '/image/cb/icon08.png',
|
|
icon: '/image/cb/icon08.png',
|
|
|
txt: '环境温度(℃)',
|
|
txt: '环境温度(℃)',
|
|
|
- value: this.newState.at=="2.5"||this.newState.at=="25"||this.newState.at==""?this.newState.new_tem:this.newState.at
|
|
|
|
|
|
|
+ value: this.newState.at == "2.5" || this.newState.at == "25" || this.newState.at == "" || this.newState.at ==
|
|
|
|
|
+ "25.0" ? this.newState.new_tem : this.newState.at
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
icon: '/image/cb/icon07.png',
|
|
icon: '/image/cb/icon07.png',
|
|
|
txt: '环境湿度(%)',
|
|
txt: '环境湿度(%)',
|
|
|
- value:this.newState.ah=="30"||this.newState.ah=="3.0"||this.newState.ah==""?this.newState.new_hum:this.newState.ah
|
|
|
|
|
|
|
+ value: this.newState.ah == "30" || this.newState.ah == "3.0" || this.newState.ah == "" || this.newState.ah ==
|
|
|
|
|
+ "30.0" ? this.newState.new_hum : this.newState.ah
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
icon: '/image/prevention/105.png',
|
|
icon: '/image/prevention/105.png',
|
|
@@ -449,33 +459,35 @@
|
|
|
},
|
|
},
|
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
|
this.equipInfo = JSON.parse(option.info)
|
|
this.equipInfo = JSON.parse(option.info)
|
|
|
- this.type = Number(this.equipInfo.type) || Number(this.equipInfo.equip_type)
|
|
|
|
|
|
|
+ this.type = Number(this.equipInfo.type) || Number(this.equipInfo.equip_type) || Number(this.equipInfo.device_type_id)
|
|
|
|
|
+ this.equipInfo.type = this.type
|
|
|
this.device_status = this.equipInfo.is_online
|
|
this.device_status = this.equipInfo.is_online
|
|
|
this.getState()
|
|
this.getState()
|
|
|
console.log(this.equipInfo)
|
|
console.log(this.equipInfo)
|
|
|
- this.selectaddress(this.lat,this.lng)
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.selectaddress(Number(this.equipInfo.lat), Number(this.equipInfo.lng))
|
|
|
|
|
+ var times = new Date()
|
|
|
|
|
+ this.date = times.getFullYear() + 1 + "-" + Number(times.getMonth() + 1) + "-" + times.getDate()
|
|
|
uni.getStorage({
|
|
uni.getStorage({
|
|
|
- key:"jurisdiction",
|
|
|
|
|
- success:(res)=>{
|
|
|
|
|
|
|
+ key: "jurisdiction",
|
|
|
|
|
+ success: (res) => {
|
|
|
console.log(JSON.parse(res.data))
|
|
console.log(JSON.parse(res.data))
|
|
|
- let items = JSON.parse(res.data).filter((item)=>{
|
|
|
|
|
|
|
+ let items = JSON.parse(res.data).filter((item) => {
|
|
|
return item.purview_name == "测报系统"
|
|
return item.purview_name == "测报系统"
|
|
|
})
|
|
})
|
|
|
console.log(items)
|
|
console.log(items)
|
|
|
- let items2 = items[0].children.filter((item)=>{
|
|
|
|
|
|
|
+ let items2 = items[0].children.filter((item) => {
|
|
|
return item.purview_name == "虫情测报灯"
|
|
return item.purview_name == "虫情测报灯"
|
|
|
})
|
|
})
|
|
|
- let items3 = items[0].children.filter((item)=>{
|
|
|
|
|
|
|
+ let items3 = items[0].children.filter((item) => {
|
|
|
return item.purview_name == "性诱测报"
|
|
return item.purview_name == "性诱测报"
|
|
|
})
|
|
})
|
|
|
- let items4 = items[0].children.filter((item)=>{
|
|
|
|
|
|
|
+ let items4 = items[0].children.filter((item) => {
|
|
|
return item.purview_name == "孢子仪"
|
|
return item.purview_name == "孢子仪"
|
|
|
})
|
|
})
|
|
|
console.log(items2)
|
|
console.log(items2)
|
|
|
var arr = items2[0].children
|
|
var arr = items2[0].children
|
|
|
- for(var i =0;i<arr.length;i++){
|
|
|
|
|
- switch (arr[i].purview_name){
|
|
|
|
|
|
|
+ for (var i = 0; i < arr.length; i++) {
|
|
|
|
|
+ switch (arr[i].purview_name) {
|
|
|
case "数据详情":
|
|
case "数据详情":
|
|
|
this.cbd[1].tf = true
|
|
this.cbd[1].tf = true
|
|
|
break
|
|
break
|
|
@@ -496,8 +508,8 @@
|
|
|
}
|
|
}
|
|
|
console.log(items3[0].children)
|
|
console.log(items3[0].children)
|
|
|
var arr2 = items3[0].children
|
|
var arr2 = items3[0].children
|
|
|
- for(var i =0;i<arr2.length;i++){
|
|
|
|
|
- switch (arr2[i].purview_name){
|
|
|
|
|
|
|
+ for (var i = 0; i < arr2.length; i++) {
|
|
|
|
|
+ switch (arr2[i].purview_name) {
|
|
|
case "设备控制":
|
|
case "设备控制":
|
|
|
this.xy[0].tf = true
|
|
this.xy[0].tf = true
|
|
|
break;
|
|
break;
|
|
@@ -511,8 +523,8 @@
|
|
|
}
|
|
}
|
|
|
console.log(items4[0].children)
|
|
console.log(items4[0].children)
|
|
|
var arr3 = items4[0].children
|
|
var arr3 = items4[0].children
|
|
|
- for(var i =0;i<arr3.length;i++){
|
|
|
|
|
- switch (arr3[i].purview_name){
|
|
|
|
|
|
|
+ for (var i = 0; i < arr3.length; i++) {
|
|
|
|
|
+ switch (arr3[i].purview_name) {
|
|
|
case "设备控制":
|
|
case "设备控制":
|
|
|
this.bzy[0].tf = true
|
|
this.bzy[0].tf = true
|
|
|
break;
|
|
break;
|
|
@@ -535,7 +547,7 @@
|
|
|
const res = await this.$myRequest({
|
|
const res = await this.$myRequest({
|
|
|
url: '/api/api_gateway?method=forecast.worm_lamp.device_history_data',
|
|
url: '/api/api_gateway?method=forecast.worm_lamp.device_history_data',
|
|
|
data: {
|
|
data: {
|
|
|
- device_type_id: this.equipInfo.type || this.equipInfo.equip_type,
|
|
|
|
|
|
|
+ device_type_id: this.equipInfo.type || this.equipInfo.equip_type || this.equipInfo.device_type_id,
|
|
|
device_id: this.equipInfo.imei || this.equipInfo.device_id,
|
|
device_id: this.equipInfo.imei || this.equipInfo.device_id,
|
|
|
page: 1,
|
|
page: 1,
|
|
|
page_size: 1,
|
|
page_size: 1,
|
|
@@ -543,10 +555,10 @@
|
|
|
})
|
|
})
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
console.log(1222)
|
|
console.log(1222)
|
|
|
- if(res.counts!=0){
|
|
|
|
|
|
|
+ if (res.counts != 0) {
|
|
|
this.newState = res.data[0].d_h_t
|
|
this.newState = res.data[0].d_h_t
|
|
|
this.newtishitf = true
|
|
this.newtishitf = true
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
this.newtishitf = false
|
|
this.newtishitf = false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -554,21 +566,21 @@
|
|
|
console.log(path)
|
|
console.log(path)
|
|
|
var device_id = this.equipInfo.device_id || this.equipInfo.imei
|
|
var device_id = this.equipInfo.device_id || this.equipInfo.imei
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: path + '?d_id=' + this.equipInfo.d_id + "&device_id=" + device_id + "&device_type="+this.type
|
|
|
|
|
|
|
+ url: path + '?d_id=' + this.equipInfo.d_id + "&device_id=" + device_id + "&device_type=" + this.type
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- partClicks(){
|
|
|
|
|
|
|
+ partClicks() {
|
|
|
var path = ""
|
|
var path = ""
|
|
|
var device_id = this.equipInfo.device_id || this.equipInfo.imei
|
|
var device_id = this.equipInfo.device_id || this.equipInfo.imei
|
|
|
- if(this.type==3){
|
|
|
|
|
- path="/pages/cb/cbd/equip-set/historyfile"
|
|
|
|
|
- }else if(this.type == 7){
|
|
|
|
|
- path="/pages/cb/bzy/equip-set/bzyhistoryile"
|
|
|
|
|
- }else if(this.type == 4){
|
|
|
|
|
- path="/pages/cb/xy/equip-set/xyhistoryile"
|
|
|
|
|
|
|
+ if (this.type == 3) {
|
|
|
|
|
+ path = "/pages/cb/cbd/equip-set/historyfile"
|
|
|
|
|
+ } else if (this.type == 7) {
|
|
|
|
|
+ path = "/pages/cb/bzy/equip-set/bzyhistoryile"
|
|
|
|
|
+ } else if (this.type == 4) {
|
|
|
|
|
+ path = "/pages/cb/xy/equip-set/xyhistoryile"
|
|
|
}
|
|
}
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: path + '?d_id=' + this.equipInfo.d_id + "&device_id=" + device_id + "&device_type="+this.type
|
|
|
|
|
|
|
+ url: path + '?d_id=' + this.equipInfo.d_id + "&device_id=" + device_id + "&device_type=" + this.type
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
async setTime(d_id) {
|
|
async setTime(d_id) {
|
|
@@ -652,23 +664,25 @@
|
|
|
this.yxShow = false
|
|
this.yxShow = false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- selectaddress(lat,lng) { //获取分布位置
|
|
|
|
|
|
|
+ selectaddress(lat, lng) { //获取分布位置
|
|
|
uni.request({
|
|
uni.request({
|
|
|
- url: '/dpc/ws/geocoder/v1/?location='+lat+","+lng+"&key=B2EBZ-2UW6P-RDJDG-LCMLE-AIQUS-CGFMJ",
|
|
|
|
|
- success: (res) => {
|
|
|
|
|
- if(res==0){
|
|
|
|
|
- this.city = res.data.result.address
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ type: "GET",
|
|
|
|
|
+ url: "https://restapi.amap.com/v3/geocode/regeo?output=JSON&location=" + lng + "," + lat +
|
|
|
|
|
+ "&key=27273b81090f78759e4057f94474516f&radius=1000&extensions=all",
|
|
|
|
|
+ dataType: "json",
|
|
|
|
|
+ complete: ress => {
|
|
|
|
|
+ console.log(ress)
|
|
|
|
|
+ this.city = ress.data.regeocode.formatted_address
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
- copy(item){
|
|
|
|
|
|
|
+ copy(item) {
|
|
|
console.log(item)
|
|
console.log(item)
|
|
|
uni.setClipboardData({
|
|
uni.setClipboardData({
|
|
|
- data: item.imei||item.device_id,
|
|
|
|
|
- success: function () {
|
|
|
|
|
- console.log('success');
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ data: item.imei || item.device_id,
|
|
|
|
|
+ success: function() {
|
|
|
|
|
+ console.log('success');
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -679,6 +693,7 @@
|
|
|
page {
|
|
page {
|
|
|
padding: 20rpx;
|
|
padding: 20rpx;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
|
+
|
|
|
.info {
|
|
.info {
|
|
|
padding: 20rpx 40rpx;
|
|
padding: 20rpx 40rpx;
|
|
|
color: #fff;
|
|
color: #fff;
|
|
@@ -690,7 +705,8 @@
|
|
|
background-position: top left;
|
|
background-position: top left;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- .tishi{
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .tishi {
|
|
|
width: 28rpx;
|
|
width: 28rpx;
|
|
|
height: 28rpx;
|
|
height: 28rpx;
|
|
|
margin: 0rpx 0 0 20rpx;
|
|
margin: 0rpx 0 0 20rpx;
|
|
@@ -712,6 +728,7 @@
|
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
|
color: #666;
|
|
color: #666;
|
|
|
line-height: 50rpx;
|
|
line-height: 50rpx;
|
|
|
|
|
+
|
|
|
image {
|
|
image {
|
|
|
width: 52rpx;
|
|
width: 52rpx;
|
|
|
}
|
|
}
|
|
@@ -728,7 +745,8 @@
|
|
|
flex-basis: 33%;
|
|
flex-basis: 33%;
|
|
|
/* flex-grow: 1; */
|
|
/* flex-grow: 1; */
|
|
|
}
|
|
}
|
|
|
- .item3{
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .item3 {
|
|
|
padding: 20rpx 0;
|
|
padding: 20rpx 0;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
flex-basis: 25%;
|
|
flex-basis: 25%;
|
|
@@ -742,7 +760,8 @@
|
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
- .span{
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .span {
|
|
|
color: #6e6c76;
|
|
color: #6e6c76;
|
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -750,13 +769,15 @@
|
|
|
/* margin-top: 12rpx; */
|
|
/* margin-top: 12rpx; */
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .newtishi{
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .newtishi {
|
|
|
width: 90%;
|
|
width: 90%;
|
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
padding-top: 40rpx;
|
|
padding-top: 40rpx;
|
|
|
font-size: 32rpx;
|
|
font-size: 32rpx;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.newState {
|
|
.newState {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
@@ -780,10 +801,11 @@
|
|
|
text-align: left;
|
|
text-align: left;
|
|
|
line-height: 40rpx;
|
|
line-height: 40rpx;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.item_info_img {
|
|
.item_info_img {
|
|
|
width: 30%;
|
|
width: 30%;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
|
|
+
|
|
|
image {
|
|
image {
|
|
|
width: 64rpx;
|
|
width: 64rpx;
|
|
|
height: 64rpx;
|
|
height: 64rpx;
|
|
@@ -797,6 +819,7 @@
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
padding: 30rpx;
|
|
padding: 30rpx;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.field {
|
|
.field {
|
|
|
/deep/.uni-input-input {
|
|
/deep/.uni-input-input {
|
|
|
border: 2rpx solid #FF0000;
|
|
border: 2rpx solid #FF0000;
|
|
@@ -807,4 +830,13 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /deep/.u-calendar__action {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-around;
|
|
|
|
|
+
|
|
|
|
|
+ .u-calendar__action__text {
|
|
|
|
|
+ line-height: 25px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|