This commit is contained in:
王丹 2024-12-27 10:44:45 +08:00
commit bfbca46fed
31 changed files with 181 additions and 137 deletions

2
.gitignore vendored
View File

@ -208,7 +208,7 @@ $RECYCLE.BIN/
# Hbuilderx
*.hbuilderx
*.vite
unpackage/
unpackage/*
!unpackage/res/icons/
/package-lock.json

View File

@ -22,6 +22,9 @@
globalData: {},
onLaunch: function() {
console.log('App Launch')
// #ifdef APP-PLUS
plus.screen.lockOrientation("portrait-primary")
// #endif
},
onShow: function() {
console.log('App Show')

View File

@ -1,10 +0,0 @@
import request from '@/utils/request'
// 查询列表
export function getlist(query) {
return request({
url: '/iotlog/data_valve/list',
method: 'get',
params: query
})
}

View File

@ -21,10 +21,10 @@ export function getSeqlistTemp() {
//'' | 'wait' | 'process' | 'finish' | 'error' | 'success'
return [
{ title: '生成命令', description: '', status: '' },
{ title: 'Mq接受命令', description: '', status: '' },
{ title: '向Iot发送命令', description: '', status: '' },
{ title: '设备接受命令', description: '', status: '' },
{ title: '设备执行命令', description: '', status: '' },
{ title: '设备数据上报', description: '', status: '' }
{ title: '消息队列接收命令', description: '', status: '' },
{ title: '向阿里云发送命令', description: '', status: '' },
{ title: '设备接', description: '', status: '' },
{ title: '设备执行', description: '', status: '' },
{ title: '设备上报', description: '', status: '' }
]
}

View File

@ -6,7 +6,7 @@ const config = {
// 应用信息
appInfo: {
// 应用名称
name: "jsy-user-new",
name: "及时雨智能灌溉管理系统v1.0",
// 应用版本
version: "1.1.0",
// 应用logo

View File

@ -1,116 +1,152 @@
{
"name" : "及时雨滴灌",
"appid" : "__UNI__5ACF7F6",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
/* 5+App */
"app-plus" : {
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
},
/* */
"modules" : {
"Barcode" : {},
"Bluetooth" : {},
"Camera" : {}
},
/* */
"distribute" : {
/* android */
"android" : {
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"minSdkVersion" : 21,
"targetSdkVersion" : 30
},
/* ios */
"ios" : {
"dSYMs" : false
},
/* SDK */
"sdkConfigs" : {}
},
"nativePlugins" : {
"Mpaas-Scan" : {
"AppId" : "ALIPUB8726CB0021802",
"License" : "hM99glEOsOL059AY35UtCm1u4eMMbXgTr4M6nuiUQA30m7PAt5obapQA+VbIvlOljs5oddhFWCC5GXothYjycl+BdAqAC3NLJ49qpzMRybx0rzHv/XpMiDorc2E65SsgnCpy0MrRQ+mngy80osLKCOBn6EglvkmRfIzaoDKQyAZtdrT3NqJd7qedelezdAJWgtfPszWFyJc8foYBd1Zvhrl8qGl5q0L+/VBv79A+iIG8B+ZYyRBXlPqjLvdvgscXlOUHyIgb66CvHaEVQtWtyoCa0EnqMK6+dYAss7YfoRZAzf03jrN8GaF5HxlzHWDuSJXK6fmBS6g/uW5bS6O+bQ==",
"WorkspaceId" : "default",
"__plugin_info__" : {
"name" : "支付宝原生扫码插件",
"description" : "支付宝原生扫码组件包体积仅0.7MB15分钟即可完成接入。同时mPaaS提供「扫码分析」大盘",
"platforms" : "Android,iOS",
"url" : "https://ext.dcloud.net.cn/plugin?id=2636",
"android_package_name" : "uni.UNI5ACF7F6",
"ios_bundle_id" : "",
"isCloud" : true,
"bought" : 1,
"pid" : "2636",
"parameters" : {
"AppId" : {
"des" : "Android平台的AppId请填写Android的config文件中的appId对应的值",
"key" : "mobilegw.appid",
"value" : "ALIPUB8726CB0021802"
},
"License" : {
"des" : "Android平台的License,请填写Android的config文件中的mpaasConfigLicense对应的值",
"key" : "mpaasConfigLicense",
"value" : "hM99glEOsOL059AY35UtCm1u4eMMbXgTr4M6nuiUQA30m7PAt5obapQA+VbIvlOljs5oddhFWCC5GXothYjycl+BdAqAC3NLJ49qpzMRybx0rzHv/XpMiDorc2E65SsgnCpy0MrRQ+mngy80osLKCOBn6EglvkmRfIzaoDKQyAZtdrT3NqJd7qedelezdAJWgtfPszWFyJc8foYBd1Zvhrl8qGl5q0L+/VBv79A+iIG8B+ZYyRBXlPqjLvdvgscXlOUHyIgb66CvHaEVQtWtyoCa0EnqMK6+dYAss7YfoRZAzf03jrN8GaF5HxlzHWDuSJXK6fmBS6g/uW5bS6O+bQ=="
},
"WorkspaceId" : {
"des" : "Android平台的WorkspaceId请填写Android的config文件中的workspaceId对应的值",
"key" : "workspaceId",
"value" : "default"
}
}
}
}
}
},
/* */
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "",
"setting" : {
"urlCheck" : false
},
"usingComponents" : true
},
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu" : {
"usingComponents" : true
},
"mp-toutiao" : {
"usingComponents" : true
},
"uniStatistics" : {
"enable" : false
},
"vueVersion" : "3"
}
"name": "及时雨智能灌溉管理系统v1.0",
"appid": "__UNI__5ACF7F6",
"description": "",
"versionName": "1.0.0",
"versionCode": "100",
"transformPx": false,
/* 5+App */
"app-plus": {
"usingComponents": true,
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
},
/* */
"modules": {
"Barcode": {},
"Bluetooth": {},
"Camera": {}
},
/* */
"distribute": {
/* */
"distribute": {
"orientation": ["portrait-primary"]
},
/* android */
"android": {
"permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"],
"minSdkVersion": 21,
"targetSdkVersion": 30
},
/* ios */
"ios": {
"dSYMs": false
},
/* SDK */
"sdkConfigs": {},
"icons": {
"android": {
"hdpi": "unpackage/res/icons/72x72.png",
"xhdpi": "unpackage/res/icons/96x96.png",
"xxhdpi": "unpackage/res/icons/144x144.png",
"xxxhdpi": "unpackage/res/icons/192x192.png"
},
"ios": {
"appstore": "unpackage/res/icons/1024x1024.png",
"ipad": {
"app": "unpackage/res/icons/76x76.png",
"app@2x": "unpackage/res/icons/152x152.png",
"notification": "unpackage/res/icons/20x20.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"proapp@2x": "unpackage/res/icons/167x167.png",
"settings": "unpackage/res/icons/29x29.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png"
},
"iphone": {
"app@2x": "unpackage/res/icons/120x120.png",
"app@3x": "unpackage/res/icons/180x180.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png"
}
}
}
},
"nativePlugins": {
"Mpaas-Scan": {
"AppId": "ALIPUB8726CB0021802",
"License": "hM99glEOsOL059AY35UtCm1u4eMMbXgTr4M6nuiUQA30m7PAt5obapQA+VbIvlOljs5oddhFWCC5GXothYjycl+BdAqAC3NLJ49qpzMRybx0rzHv/XpMiDorc2E65SsgnCpy0MrRQ+mngy80osLKCOBn6EglvkmRfIzaoDKQyAZtdrT3NqJd7qedelezdAJWgtfPszWFyJc8foYBd1Zvhrl8qGl5q0L+/VBv79A+iIG8B+ZYyRBXlPqjLvdvgscXlOUHyIgb66CvHaEVQtWtyoCa0EnqMK6+dYAss7YfoRZAzf03jrN8GaF5HxlzHWDuSJXK6fmBS6g/uW5bS6O+bQ==",
"WorkspaceId": "default",
"__plugin_info__": {
"name": "支付宝原生扫码插件",
"description": "支付宝原生扫码组件包体积仅0.7MB15分钟即可完成接入。同时mPaaS提供「扫码分析」大盘",
"platforms": "Android,iOS",
"url": "https://ext.dcloud.net.cn/plugin?id=2636",
"android_package_name": "uni.UNI5ACF7F6",
"ios_bundle_id": "",
"isCloud": true,
"bought": 1,
"pid": "2636",
"parameters": {
"AppId": {
"des": "Android平台的AppId请填写Android的config文件中的appId对应的值",
"key": "mobilegw.appid",
"value": "ALIPUB8726CB0021802"
},
"License": {
"des": "Android平台的License,请填写Android的config文件中的mpaasConfigLicense对应的值",
"key": "mpaasConfigLicense",
"value": "hM99glEOsOL059AY35UtCm1u4eMMbXgTr4M6nuiUQA30m7PAt5obapQA+VbIvlOljs5oddhFWCC5GXothYjycl+BdAqAC3NLJ49qpzMRybx0rzHv/XpMiDorc2E65SsgnCpy0MrRQ+mngy80osLKCOBn6EglvkmRfIzaoDKQyAZtdrT3NqJd7qedelezdAJWgtfPszWFyJc8foYBd1Zvhrl8qGl5q0L+/VBv79A+iIG8B+ZYyRBXlPqjLvdvgscXlOUHyIgb66CvHaEVQtWtyoCa0EnqMK6+dYAss7YfoRZAzf03jrN8GaF5HxlzHWDuSJXK6fmBS6g/uW5bS6O+bQ=="
},
"WorkspaceId": {
"des": "Android平台的WorkspaceId请填写Android的config文件中的workspaceId对应的值",
"key": "workspaceId",
"value": "default"
}
}
}
}
}
},
/* */
"quickapp": {},
/* */
"mp-weixin": {
"appid": "",
"setting": {
"urlCheck": false
},
"usingComponents": true
},
"mp-alipay": {
"usingComponents": true
},
"mp-baidu": {
"usingComponents": true
},
"mp-toutiao": {
"usingComponents": true
},
"uniStatistics": {
"enable": false
},
"vueVersion": "3"
}

View File

@ -472,6 +472,10 @@
},
onUnload() {
this.mqttUnSubscribes(this.topics);
// #ifdef APP-PLUS
plus.screen.lockOrientation('portrait-primary')
plus.navigator.setFullscreen(false);
// #endif
},
methods: {
mqttLink() {

View File

@ -416,6 +416,10 @@
},
onUnload() {
this.mqttUnSubscribes(this.topics);
// #ifdef APP-PLUS
plus.screen.lockOrientation('portrait-primary')
plus.navigator.setFullscreen(false);
// #endif
},
methods: {
mqttSubscribes(topics) {

View File

@ -363,6 +363,10 @@
},
onUnload() {
this.mqttUnSubscribes(this.topics);
// #ifdef APP-PLUS
plus.screen.lockOrientation('portrait-primary')
plus.navigator.setFullscreen(false);
// #endif
},
methods: {
mqttSubscribes(topics) {

View File

@ -85,8 +85,8 @@
//
landChange(e) {
this.title = e.landName;
this.query.landId = land.id;
queryList();
this.query.landId = e.id;
this.queryList();
},
onClickItem(item){
if (item.deviceTypeId === 4) {

View File

@ -64,11 +64,13 @@
<view class="bottom_text">
<view>浙ICP备2023018079号-2A</view>
<view>浙江及时雨智能灌溉设备有限责任公司</view>
<view>{{aa}}</view>
</view>
</view>
</template>
<script setup>
const aa = import.meta.env.VITE_APP_BASE_API
import {
ref,
watch,

View File

@ -15,7 +15,9 @@
<view>{{ item.woName}}</view>
</view>
<view style="margin-right: 5px;" v-hasPermi="['system:land:edit']">
<u-button text="1开" type="primary" plain plainFill></u-button>
<u-button type="primary" plain plainFill>
{{ item.operResult}}
</u-button>
</view>
</view>
<u-gap height="1" bgColor="#D2D2D2"></u-gap>
@ -51,7 +53,7 @@
<!-- 图层弹出 -->
<u-popup mode="center" :show="openPop" @close="openPop = false">
<view class="popup-content" style="width: 70vw;height: 250px;">
<view class="popup-content" style="width: 70vw;height: 280px;">
<u-steps direction="column" :current="stepCurrent">
<u-steps-item v-for="item in this.stepList" :title="item.title" :desc="item.description"></u-steps-item>
</u-steps>
@ -60,7 +62,6 @@
</template>
<script>
import * as userlog from "@/api/iotlog/userlog.js"
import * as datavalve from "@/api/iotlog/datavalve.js"
export default {
data() {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB