当前选择: {{selected.address}}, {{selected.lng}}, {{selected.lat}}
@@ -433,7 +468,7 @@
addDevice,
updateDevice,
handleLock,
- handleUnlocking, ring, oneClickOnline, oneClickOffline, reboot
+ handleUnlocking, ring, oneClickOnline, oneClickOffline, reboot, oneClickListing, oneClickWarehousing
} from '@/api/system/device'
import Map from "@/components/Map";
import OrderRecord from "@/views/system/device/components/orderRecord.vue";
@@ -531,6 +566,7 @@ export default {
const vehicleNum = this.$route.params && this.$route.params.vehicleNum;
console.log("sn------",sn)
console.log("vehicleNum------",vehicleNum)
+ this.$eventBus.$on('close-all-dialogs', this.closeDialog);
if (sn != null) {
this.queryParams.sn = sn;
}
@@ -570,7 +606,13 @@ export default {
}
}
},
+ beforeDestroy() {
+ this.$eventBus.$off('close-all-dialogs', this.closeDialog);
+ },
methods: {
+ closeDialog() {
+ this.open2 = false;
+ },
/** 当选择车型时调用 */
fetchData(modelId) {
// console.log("根据车型id查询运营商"+modelId)
@@ -616,6 +658,26 @@ export default {
this.$modal.msgSuccess("操作成功");
}).catch(() => {});
},
+ /** 一键出仓*/
+ oneClickListing(row){
+ const deviceIds = row.deviceId || this.ids;
+ this.$modal.confirm('确认一键出仓?').then(function() {
+ return oneClickListing(deviceIds);
+ }).then(() => {
+ this.getList();
+ this.$modal.msgSuccess("操作成功");
+ }).catch(() => {});
+ },
+ /** 一键入仓*/
+ oneClickWarehousing(row){
+ const deviceIds = row.deviceId || this.ids;
+ this.$modal.confirm('确认一键入仓?').then(function() {
+ return oneClickWarehousing(deviceIds);
+ }).then(() => {
+ this.getList();
+ this.$modal.msgSuccess("操作成功");
+ }).catch(() => {});
+ },
onMapGeo(data, lat, lng) {
console.log("onMapGeo", data)
let component = data.regeocode.addressComponent;
diff --git a/src/views/system/fee/index.vue b/src/views/system/fee/index.vue
index dafcc84..bfd63a8 100644
--- a/src/views/system/fee/index.vue
+++ b/src/views/system/fee/index.vue
@@ -153,14 +153,16 @@
-
+
元(含
-
-
+
+
+
+
{{ timeUnit }})
@@ -169,14 +171,16 @@
-
+
元/
-
-
+
+
+
+
{{ timeUnit }}(超出起步价后)
@@ -419,6 +423,14 @@ export default {
sectionCharges: [
{ required: true, message: '请输入区间收费', trigger: 'blur' },
],
+ startingTime: [
+ { required: true, message: '请输入起步时间', trigger: 'blur' },
+ { pattern: /^\d+$/, message: '起步时间必须为正整数', trigger: 'blur' }
+ ],
+ timeoutTime: [
+ { required: true, message: '请输入超时时间', trigger: 'blur' },
+ { pattern: /^\d+$/, message: '超时时间必须为正整数', trigger: 'blur' }
+ ],
},
};
},
diff --git a/src/views/system/flow/index.vue b/src/views/system/flow/index.vue
index b68c360..8cfc646 100644
--- a/src/views/system/flow/index.vue
+++ b/src/views/system/flow/index.vue
@@ -111,6 +111,11 @@
+
+
+
+
+
未上架/下线
+
+ 切换运营区
+
+
+
+
全局查看
切换地图
@@ -97,7 +108,7 @@
import AMapLoader from "@amap/amap-jsapi-loader";
import globalConfig from "@/utils/config/globalConfig";
import { getDevice, listDevice } from '@/api/system/device'
- import {listArea} from "@/api/system/area";
+ import { listArea, optionselect as getAreaOptionselect } from '@/api/system/area'
import { listParking } from '@/api/system/parking'
import LocationMap from '@/components/Map/location/LocationMap'
import OrderRecord from '@/views/system/device/components/orderRecord'
@@ -143,6 +154,7 @@
tips: null,
// 运营区表格数据
areaList: [],
+ userName: undefined,
lon: null,
lat: null,
area:null,
@@ -159,6 +171,8 @@
open2: false,
// 表单参数
form: {},
+ areaId: 14,
+ areaOptions: [],
infoWindow: null,
// 设备表格数据
deviceList: [],
@@ -170,12 +184,26 @@
}
},
mounted() {
- this.getAreaList();
+ console.log("当前用户信息:",this.$store.state.user.name)
+ this.userName = this.$store.state.user.name;
+ this.getAreaList(this.areaId);
+ this.getAreaOptions();
},
unmounted() {
this.map?.destroy();
},
methods: {
+ handleAreaChange(newAreaId) {
+ console.log('newAreaId:', newAreaId);
+ this.areaId = newAreaId;
+ this.getAreaList(this.areaId);
+ },
+ getAreaOptions() {
+ getAreaOptionselect().then(response => {
+ this.areaOptions = response.data;
+ console.log("areaOptions", this.areaOptions)
+ });
+ },
onMapGeo(data, lat, lng) {
console.log("onMapGeo", data)
let component = data.regeocode.addressComponent;
@@ -228,8 +256,8 @@
element.style.visibility = this.show ? 'hidden' : 'visible';
});
},
- async getAreaList(){
- listArea().then(response => {
+ async getAreaList(areaId){
+ listArea({areaId: areaId}).then(response => {
this.areaList = response.rows;
if (this.areaList.length > 0) { // 确保数组不为空
const firstArea = this.areaList[0]; // 获取第一个元素
@@ -695,6 +723,20 @@
margin-right: 10px; /* 图片与文字间距,根据需要调整 */
}
}
+ .area-options{
+ display: flex;
+ flex-direction: row;
+ position: absolute;
+ top: 15px;
+ right: 15px;
+ span{
+ display: flex;
+ align-items: center;
+ padding-right: 10px;
+ font-size: 13px;
+ color: #535353;
+ }
+ }
diff --git a/src/views/user/user/index.vue b/src/views/user/user/index.vue
index 5b12816..d0acfa2 100644
--- a/src/views/user/user/index.vue
+++ b/src/views/user/user/index.vue
@@ -571,7 +571,7 @@ export default {
handleBandSysUser(row){
this.reset();
const userId = row.userId || this.ids;
- getSysUserList({"userType":"00"}).then(response => {
+ getSysUserList({userType:"00",pageSize:9999,pageNum:1}).then(response => {
this.sysUserOptions = response.rows;
this.form.userId = userId;
this.open2 = true;