diff --git a/pages.json b/pages.json
index 2275960..54d9c0e 100644
--- a/pages.json
+++ b/pages.json
@@ -300,7 +300,12 @@
{
"path": "treePage/treeInfo",
"style": {
- "navigationBarTitleText": "树木详情"
+ "navigationBarTitleText": "树木详情",
+ "mp-weixin": {
+ "navigationBarTitleText": "树木详情",
+ "enablePullDownRefresh": false,
+ "reLaunchTime": 0
+ }
}
},
{
diff --git a/stores/counter.js b/stores/counter.js
index c453f10..c29e07d 100644
--- a/stores/counter.js
+++ b/stores/counter.js
@@ -13,9 +13,14 @@ export const useCounterStore = defineStore('useCounter', {
// 系统配置
config: Cache.get(CONFIG) || {},
// 系统消息数量
- noticeNum: 0
+ noticeNum: 0,
+ treeData:{}
}),
actions: {
+// 设置用户信息
+ setTreeInfo(info) {
+ this.treeData = info
+ },
// 登录
login(data) {
// 用户登录状态
@@ -33,6 +38,7 @@ export const useCounterStore = defineStore('useCounter', {
Cache.remove(TOKEN)
// 设置用户信息
this.userInfo = {}
+ this.treeData = {}
Cache.remove(USER_INFO)
},
// 设置用户信息
diff --git a/subPackages/treePage/addTree.vue b/subPackages/treePage/addTree.vue
index 1bd6177..8afb841 100644
--- a/subPackages/treePage/addTree.vue
+++ b/subPackages/treePage/addTree.vue
@@ -12,7 +12,7 @@
- 米
+ 米
@@ -21,7 +21,7 @@
- 厘米
+ 厘米
@@ -47,16 +47,16 @@
label="经度"
class="location-form-item"
prop="latitude"
+ :bottomBorder="false"
>
{{ formData.longitude }}
{{ formData.latitude }}
@@ -134,7 +134,7 @@
- 年
+ 年
@@ -143,7 +143,7 @@
- 厘米
+ 厘米
@@ -156,7 +156,7 @@
- 米
+ 米
@@ -165,7 +165,7 @@
- 米
+ 米
@@ -211,7 +211,7 @@ const rules = [{
}, {
name: "treeheight",
rule: ["required", "maxLength:10", "isAmount"],
- msg: ["请输入数高", "数高不能超过10个字符", "请输入正确"]
+ msg: ["请输入树高", "数高不能超过10个字符", "请输入正确"]
}, {
name: "dbh",
rule: ["required", "maxLength:10", "isAmount"],
@@ -242,7 +242,7 @@ const rules = [{
}, {
name: "managedutyunit",
rule: ["required"],
- msg: ["请选择权属单位"]
+ msg: ["请输入管护单位"]
}, {
name: "oldtreeownershipText",
rule: ["required"],
@@ -442,13 +442,8 @@ export default {
\ No newline at end of file
diff --git a/subPackages/treePage/treeFiles.vue b/subPackages/treePage/treeFiles.vue
index 872fb63..112acd7 100644
--- a/subPackages/treePage/treeFiles.vue
+++ b/subPackages/treePage/treeFiles.vue
@@ -18,8 +18,9 @@
- 获取验证码
+
+
+
@@ -39,7 +40,7 @@
{{ i.deptName }}
@@ -85,8 +86,7 @@ export default {
name: "treeFiles",
data() {
return {
- cardList: [],
- belongCompanyData: [],
+ belongCompanyData: [], // 归属公司
show: false,
currentIndex: 0,
formData: {
@@ -98,18 +98,7 @@ export default {
companyId: '',// 归属公司
depts: [],// 归属班组
roads: [], // 道路树
- card: {
- title: {
- text: '白菜湾四街'
- },
- tag: {
- text: '153颗'
- },
- header: {
- bgcolor: '#F7F7F7',
- line: true
- }
- }
+
}
},
onLoad() {
@@ -117,17 +106,18 @@ export default {
belongCompanyreq().then(res => {
this.belongCompanyData = res.data
if (this.belongCompanyData.length > 0) {
- this.formData.area = this.belongCompanyData[0].dictLabel
+ this.formData.companyId = this.belongCompanyData[0].dictLabel
this.companyId = (this.belongCompanyData[0].dictValue).toString()
this.deptListQuery()
}
})
},
methods: {
+ // 前往历史页面
toNewPage(params) {
- console.log('123312')
uni.$tui.href(`/subPackages/treePage/treeRecord?roadId=${params}`)
},
+ // 搜索
searchChange() {
this.deptListQuery()
},
@@ -139,21 +129,17 @@ export default {
this.roads = []
} else {
this.depts = res.data[0].depts
- this.roads = this.depts[0].roads
+ this.roads = this.depts[this.currentIndex].roads
}
// this.treeRoadQuery()
})
},
- // 树列表
- treeRoadQuery() {
- treeRoadReq({data: {road: ''}}).then(res => {
- console.log(res)
- })
- },
- // 归属公司
+
+ // 班组切换
teamsChange(i) {
console.log(i)
this.currentIndex = i
+ this.roads = this.depts[this.currentIndex].roads
},
pickerShow() {
this.show = true
@@ -163,7 +149,7 @@ export default {
},
pickerChange(e) {
console.log(e)
- this.formData.area = e.text
+ this.formData.companyId = e.text
},
}
}
@@ -171,6 +157,13 @@ export default {
\ No newline at end of file
diff --git a/subPackages/treePage/treeLog.vue b/subPackages/treePage/treeLog.vue
index 2d67fc7..6dd83db 100644
--- a/subPackages/treePage/treeLog.vue
+++ b/subPackages/treePage/treeLog.vue
@@ -8,15 +8,15 @@
- {{ i.treetype }}
- {{ i.updatetime.substring(0, 10) }}
+ {{ i.treetype }}
+ {{ i.updatetime.substring(0, 10) }}
-
高度:{{ i.treeheight }} 米
-
胸径:{{ i.dbh }} 厘米
@@ -32,6 +32,7 @@