Commit 7fc91f7a0da496dc35257a3f466888c1cbbb80e2

Authored by 刘淇
1 parent 73dee4bd

上传体验版优化

pages.json
1 { 1 {
2 "pages": [ 2 "pages": [
3 { 3 {
4 - "path": "pages/index", 4 + "path": "pages/work/index",
5 "style": { 5 "style": {
6 - "navigationBarTitleText": "首页", 6 + "navigationBarTitleText": "工作台",
7 "navigationStyle": "custom" 7 "navigationStyle": "custom"
8 } 8 }
9 }, 9 },
10 { 10 {
11 - "path": "pages/work/index", 11 + "path": "pages/index",
12 "style": { 12 "style": {
13 - "navigationBarTitleText": "工作台", 13 + "navigationBarTitleText": "首页",
14 "navigationStyle": "custom" 14 "navigationStyle": "custom"
15 } 15 }
16 }, 16 },
  17 +
17 { 18 {
18 "path": "pages/mine/index", 19 "path": "pages/mine/index",
19 "style": { 20 "style": {
@@ -350,7 +351,9 @@ @@ -350,7 +351,9 @@
350 "navigationBarTitleText": "园林养护", 351 "navigationBarTitleText": "园林养护",
351 "navigationBarBackgroundColor": "#F8F8F8", 352 "navigationBarBackgroundColor": "#F8F8F8",
352 "backgroundColor": "#F8F8F8" 353 "backgroundColor": "#F8F8F8"
  354 +
353 }, 355 },
  356 +
354 "easycom": { 357 "easycom": {
355 "autoscan": true, 358 "autoscan": true,
356 "custom": { 359 "custom": {
api/tree.js renamed to subPackages/common/api/tree.js
subPackages/treePage/addTree.vue
@@ -206,7 +206,7 @@ @@ -206,7 +206,7 @@
206 206
207 <script> 207 <script>
208 import { uploadURL, OSSURL } from '@/config/app' 208 import { uploadURL, OSSURL } from '@/config/app'
209 -import { treeOwnership, addTree, treeLevelReq } from "@/api/tree"; 209 +import { treeOwnership, addTree, treeLevelReq } from "@/subPackages/common/api/tree.js";
210 const rules = [{ 210 const rules = [{
211 name: "treetype", 211 name: "treetype",
212 rule: ["required"], 212 rule: ["required"],
@@ -316,10 +316,14 @@ export default { @@ -316,10 +316,14 @@ export default {
316 // this.$refs.form && this.$refs.form.immediateValidate(true, rules) 316 // this.$refs.form && this.$refs.form.immediateValidate(true, rules)
317 }, 317 },
318 onLoad(options) { 318 onLoad(options) {
  319 +
  320 + this.formData.road = options.roadId
  321 +
  322 + },
  323 + onShow(){
319 treeLevelReq().then(res => { 324 treeLevelReq().then(res => {
320 this.treeLevelData = res.data 325 this.treeLevelData = res.data
321 }) 326 })
322 - this.formData.road = options.roadId  
323 this.treeOwnership() 327 this.treeOwnership()
324 }, 328 },
325 methods: { 329 methods: {
@@ -398,7 +402,8 @@ export default { @@ -398,7 +402,8 @@ export default {
398 console.log(res) 402 console.log(res)
399 if (res.code == '200') { 403 if (res.code == '200') {
400 uni.showToast({title: "新增成功", icon: "none"}); 404 uni.showToast({title: "新增成功", icon: "none"});
401 - uni.$tui.href(`/subPackages/treePage/treeRecord?roadId=${this.formData.road}`) 405 + // uni.$tui.href(`/subPackages/treePage/treeRecord?roadId=${this.formData.road}`)
  406 + uni.$tui.href(`/subPackages/treePage/treeFiles`)
402 } 407 }
403 }) 408 })
404 } else { 409 } else {
subPackages/treePage/editTree.vue
@@ -14,7 +14,6 @@ @@ -14,7 +14,6 @@
14 14
15 </template> 15 </template>
16 <script > 16 <script >
17 -// import { treeDetailReq } from "@/api/tree";  
18 17
19 import treeLog from "./treeLog.vue"; 18 import treeLog from "./treeLog.vue";
20 import editTreeIfo from "./editTreeIfo.vue"; 19 import editTreeIfo from "./editTreeIfo.vue";
subPackages/treePage/editTreeIfo.vue
@@ -212,7 +212,7 @@ @@ -212,7 +212,7 @@
212 212
213 <script> 213 <script>
214 import { uploadURL, OSSURL } from '@/config/app' 214 import { uploadURL, OSSURL } from '@/config/app'
215 -import { treeOwnership, addTree, treeLevelReq, treeDetailReq, updateTree } from "@/api/tree"; 215 +import { treeOwnership, addTree, treeLevelReq, treeDetailReq, updateTree } from "@/subPackages/common/api/tree.js";
216 const rules = [{ 216 const rules = [{
217 name: "treetype", 217 name: "treetype",
218 rule: ["required"], 218 rule: ["required"],
@@ -318,7 +318,6 @@ export default { @@ -318,7 +318,6 @@ export default {
318 immediate: true, 318 immediate: true,
319 handler(newVal, oldVal) { 319 handler(newVal, oldVal) {
320 if (newVal && newVal !== oldVal) { 320 if (newVal && newVal !== oldVal) {
321 -  
322 this.treeDetailQuery(newVal) 321 this.treeDetailQuery(newVal)
323 } 322 }
324 } 323 }
subPackages/treePage/treeDetail.vue deleted
1 -<template>  
2 - <view class="container">  
3 -  
4 - <!-- <tui-no-data imgUrl="/static/images/nodata.png" v-if="rows.length==0">暂无数据</tui-no-data>-->  
5 - <view>123</view>  
6 -  
7 - </view>  
8 -  
9 -</template>  
10 -  
11 -<script>  
12 -export default {  
13 -  
14 - data() {  
15 - return {  
16 - rows: [],  
17 - roadId: ''  
18 - }  
19 - },  
20 - onLoad(options) {  
21 - let dataString = decodeURIComponent(options.data);  
22 - let data = JSON.parse(dataString);  
23 - console.log(data); // { key: 'value', otherKey: 123 }  
24 - },  
25 - methods: {  
26 -  
27 - }  
28 -}  
29 -</script>  
30 -  
31 -  
32 -<style scoped>  
33 -  
34 -  
35 -</style>  
36 \ No newline at end of file 0 \ No newline at end of file
subPackages/treePage/treeFiles.vue
1 <template> 1 <template>
2 <view class="container"> 2 <view class="container">
3 <tui-form ref="form" :show-message="false" :model="formData" style="border-bottom: 1px solid #f5f4f4"> 3 <tui-form ref="form" :show-message="false" :model="formData" style="border-bottom: 1px solid #f5f4f4">
4 - <tui-form-item arrow highlight prop="companyId" @click="pickerShow" label="归属单位" > 4 + <tui-form-item arrow highlight prop="companyId" :bottom-border="false" @click="pickerShow" label="归属单位" >
5 <tui-input padding="0" :borderBottom="false" placeholder="请选择归属单位" disabled 5 <tui-input padding="0" :borderBottom="false" placeholder="请选择归属单位" disabled
6 backgroundColor="transparent" v-model="formData.companyId"></tui-input> 6 backgroundColor="transparent" v-model="formData.companyId"></tui-input>
7 </tui-form-item> 7 </tui-form-item>
8 - <tui-form-item prop="roadName" :bottom-border="false" label="道路名称">  
9 -<!-- <tui-input padding="0" :borderBottom="false" placeholder="请输入道路" maxlength="20" :clearable="true" :backgroundColor="#f5f5f5" :inputBorder="true" :radius="30"-->  
10 -<!-- v-model="formData.roadName" @confirm="searchChange" :left-icon="Search" >-->  
11 -<!-- <slot :name="left">123</slot>--> 8 +<!-- <tui-form-item prop="roadName" :bottom-border="false" label="道路名称">-->
  9 +<!--&lt;!&ndash; <tui-input padding="0" :borderBottom="false" placeholder="请输入道路" maxlength="20" :clearable="true" :backgroundColor="#f5f5f5" :inputBorder="true" :radius="30"&ndash;&gt;-->
  10 +<!--&lt;!&ndash; v-model="formData.roadName" @confirm="searchChange" :left-icon="Search" >&ndash;&gt;-->
  11 +<!--&lt;!&ndash; <slot :name="left">123</slot>&ndash;&gt;-->
  12 +<!--&lt;!&ndash; </tui-input>&ndash;&gt;-->
  13 +
  14 +<!-- <tui-input padding="0" :borderBottom="false" placeholder="请输入道路" maxlength="20" @confirm="searchChange"-->
  15 +<!-- v-model="formData.roadName">-->
  16 +<!--&lt;!&ndash; <template v-slot:left>&ndash;&gt;-->
  17 +<!--&lt;!&ndash; <tui-icon name="search" :size="15" ></tui-icon>&ndash;&gt;-->
  18 +<!--&lt;!&ndash; </template>&ndash;&gt;-->
12 <!-- </tui-input>--> 19 <!-- </tui-input>-->
  20 +<!-- <template v-slot:right>-->
  21 +<!-- <tui-icon name="search" :size="20" @click="searchChange"></tui-icon>-->
  22 +<!--&lt;!&ndash; <tui-form-button width="188rpx" height="64rpx" background="#f2f2f2" color="#5677fc" size="24"&ndash;&gt;-->
  23 +<!--&lt;!&ndash; bold radius="12rpx">获取验证码</tui-form-button>&ndash;&gt;-->
  24 +<!-- </template>-->
13 25
14 - <tui-input padding="0" :borderBottom="false" placeholder="请输入道路" maxlength="20" @confirm="searchChange"  
15 - v-model="formData.roadName">  
16 -<!-- <template v-slot:left>-->  
17 -<!-- <tui-icon name="search" :size="15" ></tui-icon>-->  
18 -<!-- </template>-->  
19 - </tui-input>  
20 - <template v-slot:right>  
21 - <tui-icon name="search" :size="20" @click="searchChange"></tui-icon>  
22 -<!-- <tui-form-button width="188rpx" height="64rpx" background="#f2f2f2" color="#5677fc" size="24"-->  
23 -<!-- bold radius="12rpx">获取验证码</tui-form-button>-->  
24 - </template>  
25 -  
26 - </tui-form-item> 26 +<!-- </tui-form-item>-->
27 27
28 28
29 </tui-form> 29 </tui-form>
30 30
  31 + <tui-searchbar radius="40rpx" height="64rpx" placeholder="请输入道路名称" @search="getSeach" @clear="setSeach"></tui-searchbar>
  32 +
31 <!-- <tui-row marginTop="10px" :gutter="5" class="full-height-row">--> 33 <!-- <tui-row marginTop="10px" :gutter="5" class="full-height-row">-->
32 <!-- <tui-col :span="8" class="left-con full-height-col" >--> 34 <!-- <tui-col :span="8" class="left-con full-height-col" >-->
33 <!-- <view class="full-height-col left-con">1</view>--> 35 <!-- <view class="full-height-col left-con">1</view>-->
@@ -81,7 +83,7 @@ @@ -81,7 +83,7 @@
81 83
82 84
83 <script> 85 <script>
84 -import { belongCompanyreq, deptListReq, treeRoadReq } from "@/api/tree"; 86 +import { belongCompanyreq, deptListReq, treeRoadReq } from "@/subPackages/common/api/tree.js";
85 export default { 87 export default {
86 name: "treeFiles", 88 name: "treeFiles",
87 data() { 89 data() {
@@ -102,6 +104,9 @@ export default { @@ -102,6 +104,9 @@ export default {
102 } 104 }
103 }, 105 },
104 onLoad() { 106 onLoad() {
  107 +
  108 + },
  109 + onShow(){
105 // 归属公司 110 // 归属公司
106 belongCompanyreq().then(res => { 111 belongCompanyreq().then(res => {
107 this.belongCompanyData = res.data 112 this.belongCompanyData = res.data
@@ -113,6 +118,16 @@ export default { @@ -113,6 +118,16 @@ export default {
113 }) 118 })
114 }, 119 },
115 methods: { 120 methods: {
  121 + // 获取搜索结果
  122 + getSeach(e) {
  123 + this.formData.roadName = e.value
  124 + this.deptListQuery()
  125 + },
  126 + // 清空搜索数据
  127 + setSeach() {
  128 + this.formData.roadName = ''
  129 + this.deptListQuery()
  130 + },
116 // 前往历史页面 131 // 前往历史页面
117 toNewPage(params) { 132 toNewPage(params) {
118 uni.$tui.href(`/subPackages/treePage/treeRecord?roadId=${params}`) 133 uni.$tui.href(`/subPackages/treePage/treeRecord?roadId=${params}`)
@@ -205,7 +220,7 @@ export default { @@ -205,7 +220,7 @@ export default {
205 } 220 }
206 221
207 .card-wrap { 222 .card-wrap {
208 - margin: 20px 10px 0; 223 + margin: 15px 10px 0;
209 padding: 20rpx; 224 padding: 20rpx;
210 border-radius: 14rpx; 225 border-radius: 14rpx;
211 } 226 }
subPackages/treePage/treeInfo.vue
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <view class="container"> 2 <view class="container">
3 <tui-form ref="form" :show-message="false" :model="formData"> 3 <tui-form ref="form" :show-message="false" :model="formData">
4 <tui-form-item asterisk label="名称" prop="treetype"> 4 <tui-form-item asterisk label="名称" prop="treetype">
5 - <tui-input padding="0" :borderBottom="false" placeholder="请输入名称" maxlength="30" :disabled="true" 5 + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="30" :disabled="true"
6 v-model="formData.treetype"></tui-input> 6 v-model="formData.treetype"></tui-input>
7 </tui-form-item> 7 </tui-form-item>
8 8
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 10
11 <tui-col :span="12"> 11 <tui-col :span="12">
12 <tui-form-item label="胸径" asterisk prop="dbh" :position="3"> 12 <tui-form-item label="胸径" asterisk prop="dbh" :position="3">
13 - <tui-input padding="0" :borderBottom="false" placeholder="请输入" textRight maxlength="10" :disabled="true" 13 + <tui-input padding="0" :borderBottom="false" placeholder="" textRight maxlength="10" :disabled="true"
14 v-model="formData.dbh"></tui-input> 14 v-model="formData.dbh"></tui-input>
15 <template v-slot:right> 15 <template v-slot:right>
16 <text style="padding-left: 12rpx;color:#ccc;font-size:14px">厘米</text> 16 <text style="padding-left: 12rpx;color:#ccc;font-size:14px">厘米</text>
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 20
21 <tui-col :span="12"> 21 <tui-col :span="12">
22 <tui-form-item label="高度" prop="treeheight" :position="3"> 22 <tui-form-item label="高度" prop="treeheight" :position="3">
23 - <tui-input padding="0" :borderBottom="false" placeholder="请输入" textRight maxlength="10" :disabled="true" 23 + <tui-input padding="0" :borderBottom="false" placeholder="" textRight maxlength="10" :disabled="true"
24 v-model="formData.treeheight"></tui-input> 24 v-model="formData.treeheight"></tui-input>
25 <template v-slot:right> 25 <template v-slot:right>
26 <text style="padding-left: 12rpx;color:#ccc;font-size:14px;">米</text> 26 <text style="padding-left: 12rpx;color:#ccc;font-size:14px;">米</text>
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
36 class="location-form-item" 36 class="location-form-item"
37 prop="growlocation" 37 prop="growlocation"
38 > 38 >
39 - <tui-input padding="0" :borderBottom="false" placeholder="请选择" :disabled="true" 39 + <tui-input padding="0" :borderBottom="false" placeholder="" :disabled="true"
40 v-model="formData.growlocation"></tui-input> 40 v-model="formData.growlocation"></tui-input>
41 <template v-slot:right> 41 <template v-slot:right>
42 <tui-icon name="gps" :size="20"></tui-icon> 42 <tui-icon name="gps" :size="20"></tui-icon>
@@ -68,14 +68,14 @@ @@ -68,14 +68,14 @@
68 68
69 <tui-form-item asterisk label="管护单位" prop="managedutyunit"> 69 <tui-form-item asterisk label="管护单位" prop="managedutyunit">
70 70
71 - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="30" :disabled="true" 71 + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="30" :disabled="true"
72 v-model="formData.managedutyunit"></tui-input> 72 v-model="formData.managedutyunit"></tui-input>
73 73
74 <!-- <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled--> 74 <!-- <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled-->
75 <!-- backgroundColor="transparent" v-model="formData.managedutyunit"></tui-input>--> 75 <!-- backgroundColor="transparent" v-model="formData.managedutyunit"></tui-input>-->
76 </tui-form-item> 76 </tui-form-item>
77 <tui-form-item asterisk label="权属分类" arrow highlight prop="oldtreeownershipText"> 77 <tui-form-item asterisk label="权属分类" arrow highlight prop="oldtreeownershipText">
78 - <tui-input padding="0" :borderBottom="false" placeholder="请选择" :disabled="true" 78 + <tui-input padding="0" :borderBottom="false" placeholder="" :disabled="true"
79 backgroundColor="transparent" v-model="formData.oldtreeownershipText"></tui-input> 79 backgroundColor="transparent" v-model="formData.oldtreeownershipText"></tui-input>
80 </tui-form-item> 80 </tui-form-item>
81 81
@@ -125,20 +125,20 @@ @@ -125,20 +125,20 @@
125 <tui-row> 125 <tui-row>
126 <tui-col :span="12"> 126 <tui-col :span="12">
127 <tui-form-item label="拉丁文" prop="latinname"> 127 <tui-form-item label="拉丁文" prop="latinname">
128 - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="30" :disabled="true" 128 + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="30" :disabled="true"
129 v-model="formData.latinname"></tui-input> 129 v-model="formData.latinname"></tui-input>
130 </tui-form-item> 130 </tui-form-item>
131 </tui-col> 131 </tui-col>
132 <tui-col :span="12"> 132 <tui-col :span="12">
133 <tui-form-item label="级别" arrow highlight prop="treeleveltext"> 133 <tui-form-item label="级别" arrow highlight prop="treeleveltext">
134 - <tui-input padding="0" :borderBottom="false" placeholder="请选择" :disabled="true" 134 + <tui-input padding="0" :borderBottom="false" placeholder="" :disabled="true"
135 backgroundColor="transparent" v-model="formData.treeleveltext"></tui-input> 135 backgroundColor="transparent" v-model="formData.treeleveltext"></tui-input>
136 </tui-form-item> 136 </tui-form-item>
137 </tui-col> 137 </tui-col>
138 </tui-row> 138 </tui-row>
139 139
140 <tui-form-item label="生长环境" prop="growthenvironment"> 140 <tui-form-item label="生长环境" prop="growthenvironment">
141 - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="50" :disabled="true" 141 + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="50" :disabled="true"
142 v-model="formData.growthenvironment"></tui-input> 142 v-model="formData.growthenvironment"></tui-input>
143 </tui-form-item> 143 </tui-form-item>
144 144
@@ -146,7 +146,7 @@ @@ -146,7 +146,7 @@
146 <tui-row> 146 <tui-row>
147 <tui-col :span="12"> 147 <tui-col :span="12">
148 <tui-form-item label="预估树龄" prop="estimationtreeage" :position="3"> 148 <tui-form-item label="预估树龄" prop="estimationtreeage" :position="3">
149 - <tui-input padding="0" :borderBottom="false" placeholder="请输入" textRight maxlength="10" :disabled="true" 149 + <tui-input padding="0" :borderBottom="false" placeholder="" textRight maxlength="10" :disabled="true"
150 v-model="formData.estimationtreeage"></tui-input> 150 v-model="formData.estimationtreeage"></tui-input>
151 <template v-slot:right> 151 <template v-slot:right>
152 <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">年</text> 152 <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">年</text>
@@ -155,7 +155,7 @@ @@ -155,7 +155,7 @@
155 </tui-col> 155 </tui-col>
156 <tui-col :span="12"> 156 <tui-col :span="12">
157 <tui-form-item label="干周" prop="weekday" :position="3"> 157 <tui-form-item label="干周" prop="weekday" :position="3">
158 - <tui-input padding="0" :borderBottom="false" placeholder="请输入" textRight maxlength="10" :disabled="true" 158 + <tui-input padding="0" :borderBottom="false" placeholder="" textRight maxlength="10" :disabled="true"
159 v-model="formData.weekday"></tui-input> 159 v-model="formData.weekday"></tui-input>
160 <template v-slot:right> 160 <template v-slot:right>
161 <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">厘米</text> 161 <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">厘米</text>
@@ -168,7 +168,7 @@ @@ -168,7 +168,7 @@
168 <tui-row> 168 <tui-row>
169 <tui-col :span="12"> 169 <tui-col :span="12">
170 <tui-form-item label="东西冠幅" prop="canopyeastwest" :position="3"> 170 <tui-form-item label="东西冠幅" prop="canopyeastwest" :position="3">
171 - <tui-input padding="0" :borderBottom="false" placeholder="请输入" textRight maxlength="10" :disabled="true" 171 + <tui-input padding="0" :borderBottom="false" placeholder="" textRight maxlength="10" :disabled="true"
172 v-model="formData.canopyeastwest"></tui-input> 172 v-model="formData.canopyeastwest"></tui-input>
173 <template v-slot:right> 173 <template v-slot:right>
174 <text style="padding-left: 12rpx;color:#ccc">米</text> 174 <text style="padding-left: 12rpx;color:#ccc">米</text>
@@ -177,7 +177,7 @@ @@ -177,7 +177,7 @@
177 </tui-col> 177 </tui-col>
178 <tui-col :span="12"> 178 <tui-col :span="12">
179 <tui-form-item label="南北冠幅" prop="canopysouthnorth" :position="3"> 179 <tui-form-item label="南北冠幅" prop="canopysouthnorth" :position="3">
180 - <tui-input padding="0" :borderBottom="false" placeholder="请输入" textRight maxlength="10" :disabled="true" 180 + <tui-input padding="0" :borderBottom="false" placeholder="" textRight maxlength="10" :disabled="true"
181 v-model="formData.canopysouthnorth"></tui-input> 181 v-model="formData.canopysouthnorth"></tui-input>
182 <template v-slot:right> 182 <template v-slot:right>
183 <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">米</text> 183 <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">米</text>
@@ -192,7 +192,7 @@ @@ -192,7 +192,7 @@
192 192
193 <script> 193 <script>
194 import { uploadURL, OSSURL } from '@/config/app' 194 import { uploadURL, OSSURL } from '@/config/app'
195 -import { treeOwnership, treeLevelReq } from "@/api/tree"; 195 +import { treeOwnership, treeLevelReq } from "@/subPackages/common/api/tree.js";
196 import { useCounterStore } from '@/stores/counter' 196 import { useCounterStore } from '@/stores/counter'
197 const rules = [{ 197 const rules = [{
198 name: "treetype", 198 name: "treetype",
@@ -302,10 +302,10 @@ export default { @@ -302,10 +302,10 @@ export default {
302 onUnload() { 302 onUnload() {
303 303
304 }, 304 },
305 - onLoad(options) {  
306 - // this.formData = this.useCounterStore.treeData 305 + onLoad() {
  306 + },
  307 + onShow(){
307 const treeData = this.useCounterStore.treeData; 308 const treeData = this.useCounterStore.treeData;
308 -  
309 this.formData = { 309 this.formData = {
310 ...treeData, 310 ...treeData,
311 // 仅在当前组件中临时转换为对象数组,不修改Pinia源数据 311 // 仅在当前组件中临时转换为对象数组,不修改Pinia源数据
@@ -321,7 +321,6 @@ export default { @@ -321,7 +321,6 @@ export default {
321 // src: item 321 // src: item
322 // } 322 // }
323 // }); 323 // });
324 -  
325 treeLevelReq().then(res => { 324 treeLevelReq().then(res => {
326 this.treeLevelData = res.data 325 this.treeLevelData = res.data
327 const optiontreelevel = this.treeLevelData.find(item => item.dictValue === this.formData.treelevel); 326 const optiontreelevel = this.treeLevelData.find(item => item.dictValue === this.formData.treelevel);
subPackages/treePage/treeLog.vue
@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 33
34 <script> 34 <script>
35 import { useCounterStore } from '@/stores/counter' 35 import { useCounterStore } from '@/stores/counter'
36 -import { treeLogReq } from "@/api/tree"; 36 +import { treeLogReq } from "@/subPackages/common/api/tree.js";
37 export default { 37 export default {
38 name: "treeLog", 38 name: "treeLog",
39 props: { 39 props: {
@@ -84,7 +84,7 @@ export default { @@ -84,7 +84,7 @@ export default {
84 84
85 <style scoped> 85 <style scoped>
86 .record-list-wrap { 86 .record-list-wrap {
87 - margin: 20px 10px 0 ; 87 + margin: 15px 10px 0 ;
88 padding:10px; 88 padding:10px;
89 border-radius: 6px; 89 border-radius: 6px;
90 font-size: 14px; 90 font-size: 14px;
subPackages/treePage/treeRecord.vue
1 <template> 1 <template>
2 <view class="container"> 2 <view class="container">
3 -  
4 <tui-no-data imgUrl="/static/images/nodata.png" v-if="rows.length==0">暂无数据</tui-no-data> 3 <tui-no-data imgUrl="/static/images/nodata.png" v-if="rows.length==0">暂无数据</tui-no-data>
5 <view class="record-wrap" v-else> 4 <view class="record-wrap" v-else>
6 <view class="record-list-wrap cad-box-shadow fs-bg__white" v-for="i in rows" @click="toEditPage(i.id)"> 5 <view class="record-list-wrap cad-box-shadow fs-bg__white" v-for="i in rows" @click="toEditPage(i.id)">
@@ -32,7 +31,7 @@ @@ -32,7 +31,7 @@
32 </template> 31 </template>
33 32
34 <script> 33 <script>
35 -import { treeRoadReq } from "@/api/tree"; 34 +import { treeRoadReq } from "@/subPackages/common/api/tree.js";
36 export default { 35 export default {
37 name: "treeRecord", 36 name: "treeRecord",
38 data() { 37 data() {
@@ -43,6 +42,8 @@ export default { @@ -43,6 +42,8 @@ export default {
43 }, 42 },
44 onLoad(options) { 43 onLoad(options) {
45 this.roadId = options.roadId 44 this.roadId = options.roadId
  45 + },
  46 + onShow(){
46 this.treeRoadQuery() 47 this.treeRoadQuery()
47 }, 48 },
48 methods: { 49 methods: {
@@ -64,8 +65,11 @@ export default { @@ -64,8 +65,11 @@ export default {
64 </script> 65 </script>
65 66
66 <style scoped> 67 <style scoped>
  68 +.record-wrap{
  69 + padding-bottom: 60px;
  70 +}
67 .record-list-wrap { 71 .record-list-wrap {
68 - margin: 20px 10px 0 ; 72 + margin: 15px 10px 0 ;
69 padding:10px; 73 padding:10px;
70 border-radius: 6px; 74 border-radius: 6px;
71 font-size: 14px; 75 font-size: 14px;