From b3872e12bd781d451794d0de3f239b3b4de4b061 Mon Sep 17 00:00:00 2001
From: "3321822538@qq.com" <3321822538@qq.com>
Date: Fri, 13 Jun 2025 17:00:24 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=8A=A8=E8=BD=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
page_fenbao/jiameng/addjiam.vue | 90 ++--
page_fenbao/yunwei/addyunwei.vue | 96 +++--
page_shanghu/admin_index.vue | 70 +--
page_shanghu/gongzuotai/sysSet.vue | 10 +-
page_shanghu/gongzuotai/woke_deviceMgmt.vue | 96 +++--
page_shanghu/guanli/admin_order.vue | 6 +-
page_shanghu/guanli/device_detail.vue | 433 +++++++++++--------
page_user/luru/bind_mac.vue | 447 +++++++++++---------
page_user/luru/index.vue | 244 ++++-------
9 files changed, 805 insertions(+), 687 deletions(-)
diff --git a/page_fenbao/jiameng/addjiam.vue b/page_fenbao/jiameng/addjiam.vue
index 4e558d9..251a4f7 100644
--- a/page_fenbao/jiameng/addjiam.vue
+++ b/page_fenbao/jiameng/addjiam.vue
@@ -84,6 +84,8 @@
permissionConfig: {
'查看运营区': 'area:view',
'操作运营区': 'area:edit',
+ '查看子区域': 'areaSub:view',
+ '操作子区域': 'areaSub:edit',
'查看故障': 'fault:view',
'故障审核': 'fault:edit',
'查看订单': 'order:view',
@@ -112,85 +114,97 @@
checked: false,
txt: 2
},
+ {
+ name: '查看子区域',
+ tit: '是否允许',
+ checked: false,
+ txt: 3
+ },
+ {
+ name: '操作子区域',
+ tit: '是否允许',
+ checked: false,
+ txt: 4
+ },
{
name: '查看故障',
tit: '是否允许',
checked: false,
- txt: 3
- },
- {
- name: '故障审核',
- tit: '是否允许',
- checked: false,
- txt: 4
- },
- {
- name: '查看订单',
- tit: '是否允许',
- checked: false,
txt: 5
},
{
- name: '操作订单',
+ name: '故障审核',
tit: '是否允许',
checked: false,
txt: 6
},
{
- name: '查看车辆',
+ name: '查看订单',
tit: '是否允许',
checked: false,
txt: 7
},
{
- name: '操作车辆',
+ name: '操作订单',
tit: '是否允许',
checked: false,
txt: 8
},
{
- name: '查看客服',
+ name: '查看车辆',
+ tit: '是否允许',
+ checked: false,
+ txt: 9
+ },
+ {
+ name: '操作车辆',
tit: '是否允许',
checked: false,
txt: 10
},
{
- name: '操作客服',
+ name: '查看客服',
tit: '是否允许',
checked: false,
txt: 11
},
+ {
+ name: '操作客服',
+ tit: '是否允许',
+ checked: false,
+ txt: 12
+ },
{
name: '查看卡券',
tit: '是否允许',
checked: false,
- txt: 12
+ txt: 13
},{
name: '操作卡券',
tit: '是否允许',
checked: false,
- txt: 13
+ txt: 14
},{
name: '查看卡券订单',
tit: '是否允许',
checked: false,
- txt: 14
+ txt: 15
},{
name: '操作卡券订单',
tit: '是否允许',
checked: false,
- txt: 15
+ txt: 16
},{
name: '查看用户卡券',
tit: '是否允许',
checked: false,
- txt: 16
+ txt: 17
},{
name: '操作用户卡券',
tit: '是否允许',
checked: false,
- txt: 17
+ txt: 18
},
],
}
@@ -228,20 +242,22 @@
const permissionMap = {
'area:view': 0,
'area:edit': 1,
- 'fault:view': 2,
- 'fault:edit': 3,
- 'order:view': 4,
- 'order:edit': 5,
- 'device:view': 6,
- 'device:edit': 7,
- 'customerService:view': 8,
- 'customerService:edit': 9,
- 'vip:view': 10,
- 'vip:edit': 11,
- 'vipOrder:view': 12,
- 'vipOrder:edit': 13,
- 'vipUser:view': 14,
- 'vipUser:edit': 15
+ 'areaSub:view':2,
+ 'areaSub:edit':3,
+ 'fault:view': 4,
+ 'fault:edit': 5,
+ 'order:view': 6,
+ 'order:edit': 7,
+ 'device:view': 8,
+ 'device:edit': 9,
+ 'customerService:view': 10,
+ 'customerService:edit': 11,
+ 'vip:view': 12,
+ 'vip:edit': 13,
+ 'vipOrder:view': 14,
+ 'vipOrder:edit': 15,
+ 'vipUser:view': 16,
+ 'vipUser:edit': 17
}
permissions.forEach(permission => {
diff --git a/page_fenbao/yunwei/addyunwei.vue b/page_fenbao/yunwei/addyunwei.vue
index 6941008..21f9a41 100644
--- a/page_fenbao/yunwei/addyunwei.vue
+++ b/page_fenbao/yunwei/addyunwei.vue
@@ -81,6 +81,8 @@
permissionConfig: {
'查看运营区': 'area:view',
'操作运营区': 'area:edit',
+ '查看子区域': 'areaSub:view',
+ '操作子区域': 'areaSub:edit',
'查看故障': 'fault:view',
'故障审核': 'fault:edit',
'查看订单': 'order:view',
@@ -109,83 +111,97 @@
checked: false,
txt: 2
},
+ {
+ name: '查看子区域',
+ tit: '是否允许',
+ checked: false,
+ txt: 3
+ },
+ {
+ name: '操作子区域',
+ tit: '是否允许',
+ checked: false,
+ txt: 4
+ },
{
name: '查看故障',
tit: '是否允许',
checked: false,
- txt: 3
- },
- {
- name: '故障审核',
- tit: '是否允许',
- checked: false,
- txt: 4
- },
- {
- name: '查看订单',
- tit: '是否允许',
- checked: false,
txt: 5
},
{
- name: '操作订单',
+ name: '故障审核',
tit: '是否允许',
checked: false,
txt: 6
},
{
- name: '查看车辆',
+ name: '查看订单',
tit: '是否允许',
checked: false,
txt: 7
},
{
- name: '操作车辆',
+ name: '操作订单',
tit: '是否允许',
checked: false,
txt: 8
},
{
- name: '查看客服',
+ name: '查看车辆',
+ tit: '是否允许',
+ checked: false,
+ txt: 9
+ },
+ {
+ name: '操作车辆',
tit: '是否允许',
checked: false,
txt: 10
},
{
- name: '操作客服',
+ name: '查看客服',
tit: '是否允许',
checked: false,
txt: 11
- },{
- name: '查看卡券',
+ },
+ {
+ name: '操作客服',
tit: '是否允许',
checked: false,
txt: 12
- },{
- name: '操作卡券',
+ },
+
+ {
+ name: '查看卡券',
tit: '是否允许',
checked: false,
txt: 13
},{
- name: '查看卡券订单',
+ name: '操作卡券',
tit: '是否允许',
checked: false,
txt: 14
},{
- name: '操作卡券订单',
+ name: '查看卡券订单',
tit: '是否允许',
checked: false,
txt: 15
},{
- name: '查看用户卡券',
+ name: '操作卡券订单',
tit: '是否允许',
checked: false,
txt: 16
},{
- name: '操作用户卡券',
+ name: '查看用户卡券',
tit: '是否允许',
checked: false,
txt: 17
+ },{
+ name: '操作用户卡券',
+ tit: '是否允许',
+ checked: false,
+ txt: 18
},
],
}
@@ -222,20 +238,22 @@
const permissionMap = {
'area:view': 0,
'area:edit': 1,
- 'fault:view': 2,
- 'fault:edit': 3,
- 'order:view': 4,
- 'order:edit': 5,
- 'device:view': 6,
- 'device:edit': 7,
- 'customerService:view': 8,
- 'customerService:edit': 9,
- 'vip:view': 10,
- 'vip:edit': 11,
- 'vipOrder:view': 12,
- 'vipOrder:edit': 13,
- 'vipUser:view': 14,
- 'vipUser:edit': 15
+ 'areaSub:view':2,
+ 'areaSub:edit':3,
+ 'fault:view': 4,
+ 'fault:edit': 5,
+ 'order:view': 6,
+ 'order:edit': 7,
+ 'device:view': 8,
+ 'device:edit': 9,
+ 'customerService:view': 10,
+ 'customerService:edit': 11,
+ 'vip:view': 12,
+ 'vip:edit': 13,
+ 'vipOrder:view': 14,
+ 'vipOrder:edit': 15,
+ 'vipUser:view': 16,
+ 'vipUser:edit': 17
}
permissions.forEach(permission => {
diff --git a/page_shanghu/admin_index.vue b/page_shanghu/admin_index.vue
index 59e8105..cc35f48 100644
--- a/page_shanghu/admin_index.vue
+++ b/page_shanghu/admin_index.vue
@@ -30,6 +30,9 @@
+
+ 刷新
+
{}">
@@ -236,6 +239,10 @@
},
},
methods: {
+ btnshuaixn(){
+ this.getqb()
+ this.getmarks()
+ },
// 请求全部运营统计数据
getqb() {
let StatKeys = 'device_status_count,device_online_status_count,device_count'
@@ -787,10 +794,10 @@
this.status9 = []
this.status6 = []
// 如果已经有数据,直接使用本地筛选
- if (this.allDeviceData.length > 0) {
- this.filterDevicesByPowerRange()
- return
- }
+ // if (this.allDeviceData.length > 0) {
+ // this.filterDevicesByPowerRange()
+ // return
+ // }
if (this.statusidx != 7 && this.statusidx != 20 && this.statusidx != 10) {
this.$u.get(`/bst/device/all?areaId=${this.areaId}&status=${this.statusidx}&powerRange=${this.rangeValue[0] + ',' + this.rangeValue[1]}&refresh=true`).then((res) => {
if (res.code == 200) {
@@ -931,33 +938,36 @@
const type2Data = []
const type3Data = []
res.data.forEach(row => {
- if (row.type == 1) {
- type1Data.push(row)
- } else if (row.type == 2) {
- type2Data.push(row)
- } else if (row.type == 3) {
- type3Data.push(row)
+ if(row.status == 0){
+ if (row.type == 1) {
+ type1Data.push(row)
+ } else if (row.type == 2) {
+ type2Data.push(row)
+ } else if (row.type == 3) {
+ type3Data.push(row)
+ }
+ console.log(row,'121212')
+ newMarkers.push({
+ id: row.id,
+ latitude: row.latitude,
+ longitude: row.longitude,
+ width: 20,
+ height: 29,
+ iconPath: row.type == 1 ? 'https://lxnapi.ccttiot.com/bike/img/static/up2xXqAgwCX5iER600k3' : row.type == 2 ? 'https://lxnapi.ccttiot.com/bike/img/static/uDNY5Q4zOiZTCBTA2Jdq' : 'https://lxnapi.ccttiot.com/bike/img/static/u53BAQcFIX3vxsCzEZ7t',
+ callout: {
+ content: row.name,
+ color: '#ffffff',
+ fontSize: 14,
+ borderRadius: 10,
+ bgColor: row.type == 1 ? '#3A7EDB' : row.type == 2 ? '#FF473E' : '#FFC107',
+ padding: 6,
+ display: 'BYCLICK'
+ },
+ isParking: true
+ })
+ console.log(newMarkers,'newMarkersnewMarkersnewMarkers')
}
- console.log(row,'121212')
- newMarkers.push({
- id: row.id,
- latitude: row.latitude,
- longitude: row.longitude,
- width: 20,
- height: 29,
- iconPath: row.type == 1 ? 'https://lxnapi.ccttiot.com/bike/img/static/up2xXqAgwCX5iER600k3' : row.type == 2 ? 'https://lxnapi.ccttiot.com/bike/img/static/uDNY5Q4zOiZTCBTA2Jdq' : 'https://lxnapi.ccttiot.com/bike/img/static/u53BAQcFIX3vxsCzEZ7t',
- callout: {
- content: row.name,
- color: '#ffffff',
- fontSize: 14,
- borderRadius: 10,
- bgColor: row.type == 1 ? '#3A7EDB' : row.type == 2 ? '#FF473E' : '#FFC107',
- padding: 6,
- display: 'BYCLICK'
- },
- isParking: true
- })
- console.log(newMarkers,'newMarkersnewMarkersnewMarkers')
+
})
this.$set(this, 'markers', [...this.markers, ...newMarkers])
const validBoundaries1 = type1Data.map(row => row.boundaryStr).filter(boundary =>
diff --git a/page_shanghu/gongzuotai/sysSet.vue b/page_shanghu/gongzuotai/sysSet.vue
index 671f290..61a9890 100644
--- a/page_shanghu/gongzuotai/sysSet.vue
+++ b/page_shanghu/gongzuotai/sysSet.vue
@@ -237,24 +237,24 @@
- 运营区外调度费
+ 运营区外管理费
- 元
- 设置车辆超出运营区外产生的调度费用
+ 设置车辆超出运营区外产生的管理费用
-
+
停车点外调度费
- 元
diff --git a/page_shanghu/gongzuotai/woke_deviceMgmt.vue b/page_shanghu/gongzuotai/woke_deviceMgmt.vue
index 4bba963..245ffd8 100644
--- a/page_shanghu/gongzuotai/woke_deviceMgmt.vue
+++ b/page_shanghu/gongzuotai/woke_deviceMgmt.vue
@@ -307,11 +307,11 @@ export default {
}
this.selectedItems = []
- this.$u.get(`/bst/device/list?pageNum=${this.pageNum}&pageSize=999`, data).then((res) => {
+ this.$u.get(`//bst/device/all`, data).then((res) => {
if (res.code == 200) {
- this.total = res.total
- this.deviceList = res.rows
- this.filteredList = res.rows
+ this.total = res.data.length
+ this.deviceList = res.data
+ this.filteredList = res.data
} else {
uni.showToast({
title: res.msg,
@@ -321,33 +321,7 @@ export default {
}
})
},
-
- // // 搜索
- // search() {
- // this.pageNum = 1
- // let data = {
- // isAsc: this.scidx,
- // status: this.typeidx,
- // areaId: this.areaId,
- // orderByColumn: this.typeSort,
- // refresh:true,
- // Keyword:this.searchKeyword
- // }
- // this.selectedItems = []
- // this.$u.get(`/bst/device/list?pageNum=${this.pageNum}&pageSize=999`, data).then((res) => {
- // if (res.code == 200) {
- // this.total = res.total
- // this.deviceList = res.rows
- // this.filteredList = res.rows
- // } else {
- // uni.showToast({
- // title: res.msg,
- // icon: 'none',
- // duration: 2000
- // })
- // }
- // })
- // },
+
todetail(item) {
if (this.stepindex == 0) {
console.log(item.id,item);
@@ -368,7 +342,7 @@ export default {
key: 'typeSortLabel',
data: e[0].label,
})
- this.pageNum = 1
+ // this.pageNum = 1
this.getDevice()
},
// 车辆禁用
@@ -558,25 +532,59 @@ export default {
getDevice() {
console.log(this.typeSort)
let data = {
- isAsc: this.scidx,
+ // isAsc: this.scidx,
status: this.typeidx,
areaId: this.areaId,
- orderByColumn: this.typeSort,
+ // orderByColumn: this.typeSort,
// refresh:true,
Keyword:this.searchKeyword
}
this.selectedItems = []
- this.$u.get(`/bst/device/list?pageNum=${this.pageNum}&pageSize=10`, data).then((res) => {
+ this.$u.get(`/bst/device/all`, data).then((res) => {
if (res.code == 200) {
- this.total = res.total
- if(this.pageNum == 1){
- this.deviceList = res.rows
- this.filteredList = res.rows
- }else{
- this.deviceList = this.deviceList.concat(res.rows)
- this.filteredList = this.filteredList.concat(res.rows)
- }
- this.pageNum++
+ this.total = res.data.length
+ this.deviceList = res.data
+ this.filteredList = res.data
+ if (!this.filteredList || this.filteredList.length === 0) return;
+
+ // 如果没有设置排序字段或方向,使用默认值
+ const sortField = this.typeSort || 'remainingPower';
+ const isDesc = this.scidx === 'desc';
+
+ this.filteredList.sort((a, b) => {
+ // 获取比较值(处理可能不存在的字段)
+ let valueA = a[sortField] || '';
+ let valueB = b[sortField] || '';
+
+ // 特殊处理数字类型(如电量)
+ if (sortField === 'remainingPower') {
+ valueA = parseFloat(valueA) || 0;
+ valueB = parseFloat(valueB) || 0;
+ }
+
+ // 执行比较
+ if (isDesc) {
+ // 降序排列
+ if (valueA > valueB) return -1;
+ if (valueA < valueB) return 1;
+ } else {
+ // 升序排列
+ if (valueA < valueB) return -1;
+ if (valueA > valueB) return 1;
+ }
+ return 0;
+ });
+
+ // 更新视图
+ this.$forceUpdate();
+ // if(this.pageNum == 1){
+ // this.deviceList = res.rows
+ // this.filteredList = res.rows
+ // }else{
+ // this.deviceList = this.deviceList.concat(res.rows)
+ // this.filteredList = this.filteredList.concat(res.rows)
+ // }
+ // this.pageNum++
} else {
uni.showToast({
title: res.msg,
diff --git a/page_shanghu/guanli/admin_order.vue b/page_shanghu/guanli/admin_order.vue
index 0ede697..9cc624c 100644
--- a/page_shanghu/guanli/admin_order.vue
+++ b/page_shanghu/guanli/admin_order.vue
@@ -33,8 +33,8 @@
进行中
-
- 待支付
+
+ 骑行待支付
已完成
@@ -60,7 +60,7 @@
- 待支付
+ 押金待支付
diff --git a/page_shanghu/guanli/device_detail.vue b/page_shanghu/guanli/device_detail.vue
index a14b066..aa2e76a 100644
--- a/page_shanghu/guanli/device_detail.vue
+++ b/page_shanghu/guanli/device_detail.vue
@@ -8,10 +8,10 @@
-
+
+
+
+
@@ -362,6 +370,8 @@