Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
032ca494
提交
032ca494
authored
12月 06, 2025
作者:
宇宙超人
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1
上级
45e70da5
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
24 行增加
和
22 行删除
+24
-22
pages.json
src/pages.json
+2
-15
save-dialog.vue
src/pages/device/components/save-dialog.vue
+0
-0
device.vue
src/pages/device/device.vue
+0
-0
login.vue
src/pages/login/login.vue
+1
-0
index.vue
src/pages/nongchang/detail/index.vue
+19
-5
proxy.ts
src/utils/proxy.ts
+2
-2
没有找到文件。
src/pages.json
浏览文件 @
032ca494
...
...
@@ -546,24 +546,11 @@
{
"path"
:
"pages/device/device"
,
"style"
:
{
"navigationBarTitleText"
:
"
物联
设备"
,
"navigationBarTitleText"
:
"
基地
设备"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#5DB66F"
,
"navigationBarTextStyle"
:
"white"
,
"backgroundColorBottom"
:
"#F2F2F2"
,
"app-plus"
:
{
"titleNView"
:
{
"buttons"
:
[
{
"text"
:
"+ 添加设备"
,
"fontSrc"
:
"/static/uni.ttf"
,
"color"
:
"#fff"
,
"fontSize"
:
"26rpx"
,
"width"
:
"auto"
}
]
}
}
"backgroundColorBottom"
:
"#F2F2F2"
}
},
{
...
...
src/pages/device/components/save-dialog.vue
浏览文件 @
032ca494
差异被折叠。
点击展开。
src/pages/device/device.vue
浏览文件 @
032ca494
差异被折叠。
点击展开。
src/pages/login/login.vue
浏览文件 @
032ca494
...
...
@@ -286,6 +286,7 @@
:required=
"false"
clearable
trim
type=
"number"
placeholder=
"请输入手机号"
v-model=
"model.form.data.username"
name=
"mobile"
...
...
src/pages/nongchang/detail/index.vue
浏览文件 @
032ca494
...
...
@@ -15,6 +15,7 @@ import type { ToolBoxButtonHandleEvent } from '@/components/Map/Widgets/ToolBox'
import
{
ToolBoxWidget
,
useToolBoxWidget
}
from
'@/components/Map/Widgets/ToolBox'
import
*
as
NongchangAPI
from
'@/api/model/nongchang'
import
*
as
farmbaseApi
from
'@/api/model/farmbase'
import
navigate
from
'@/utils/page/navigate'
// 页面参数
const
page
=
reactive
<
Page
>
({
...
...
@@ -343,6 +344,9 @@ onNavigationBarButtonTap((e) => {
Navigate
.
to
(
`/pages/jidiguanli/add?farmId=
${
model
.
id
}
`
)
}
})
const
toDevice
=
(
device
)
=>
{
Navigate
.
to
(
`/pages/device/device?deviceType=
${
device
.
deviceType
}
`
)
}
</
script
>
<
template
>
...
...
@@ -485,16 +489,20 @@ onNavigationBarButtonTap((e) => {
<view
class=
"box-4"
>
<view
class=
"box-4-title"
>
<view
class=
"box-4-title-text1"
><text>
基地设备
</text></view>
<view
class=
"box-4-title-text2"
@
click=
"showDialog
=
true"
><text>
+ 添加设备
</text></view>
<view
class=
"box-4-title-text2"
@
click=
"showDialog
=
true"
><text>
+ 添加设备
</text></view>
</view>
<view
class=
"box-4-device"
>
<view
class=
"box-4-device-item"
v-for=
"(device, index) in model.deviceTypeCount"
:key=
"index"
@
click=
"toDevice(device)"
>
<view
class=
"box-4-item-icon"
>
<image
class=
"box-4-item-icon-image"
:src=
"`/static/images/nongchang/device$
{device.deviceType}.png`" />
<image
class=
"box-4-item-icon-image"
:src=
"`/static/images/nongchang/device$
{device.deviceType}.png`"
/>
</view>
<view
class=
"box-4-item-content"
>
<text
class=
"box-4-item-text1"
>
{{
device
.
deviceName
}}
</text>
...
...
@@ -506,7 +514,13 @@ onNavigationBarButtonTap((e) => {
</view>
</view>
</view>
<SaveDialog
:show=
"showDialog"
:farmId=
"model.id"
:farmBaseId=
"model.farmbaseInfo?.id"
@
submitSuccess=
"getDeviceTypeCount"
@
close=
"showDialog=false"
/>
<SaveDialog
:show=
"showDialog"
:farmId=
"model.id"
:farmBaseId=
"model.farmbaseInfo?.id"
@
submitSuccess=
"getDeviceTypeCount"
@
close=
"showDialog = false"
/>
</view>
</
template
>
...
...
@@ -887,8 +901,8 @@ page {
.box-4-device-item
{
width
:
49%
;
//
height
:
48%
;
height
:
136
rpx
;
//
height
:
48%
;
height
:
136
rpx
;
display
:
flex
;
flex-direction
:
row
;
border-radius
:
24
rpx
;
...
...
src/utils/proxy.ts
浏览文件 @
032ca494
...
...
@@ -11,8 +11,8 @@ const PROXY_LIST: [[string, string]?] = [
// [`http://192.168.0.100:18100`, `https://oss.beta.app.yiring.com`],
// 开发环境(预览)
//
[`http://192.168.0.156:18100`, `http://111.22.182.169:49091`],
[
`http://192.168.0.156:18100`
,
`http://36.133.16.81:42111`
],
[
`http://192.168.0.156:18100`
,
`http://111.22.182.169:49091`
],
//
[`http://192.168.0.156:18100`, `http://36.133.16.81:42111`],
]
/**
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论