Commit 7fc91f7a0da496dc35257a3f466888c1cbbb80e2
1 parent
73dee4bd
上传体验版优化
Showing
10 changed files
with
77 additions
and
88 deletions
pages.json
| 1 | 1 | { |
| 2 | 2 | "pages": [ |
| 3 | 3 | { |
| 4 | - "path": "pages/index", | |
| 4 | + "path": "pages/work/index", | |
| 5 | 5 | "style": { |
| 6 | - "navigationBarTitleText": "首页", | |
| 6 | + "navigationBarTitleText": "工作台", | |
| 7 | 7 | "navigationStyle": "custom" |
| 8 | 8 | } |
| 9 | 9 | }, |
| 10 | 10 | { |
| 11 | - "path": "pages/work/index", | |
| 11 | + "path": "pages/index", | |
| 12 | 12 | "style": { |
| 13 | - "navigationBarTitleText": "工作台", | |
| 13 | + "navigationBarTitleText": "首页", | |
| 14 | 14 | "navigationStyle": "custom" |
| 15 | 15 | } |
| 16 | 16 | }, |
| 17 | + | |
| 17 | 18 | { |
| 18 | 19 | "path": "pages/mine/index", |
| 19 | 20 | "style": { |
| ... | ... | @@ -350,7 +351,9 @@ |
| 350 | 351 | "navigationBarTitleText": "园林养护", |
| 351 | 352 | "navigationBarBackgroundColor": "#F8F8F8", |
| 352 | 353 | "backgroundColor": "#F8F8F8" |
| 354 | + | |
| 353 | 355 | }, |
| 356 | + | |
| 354 | 357 | "easycom": { |
| 355 | 358 | "autoscan": true, |
| 356 | 359 | "custom": { | ... | ... |
api/tree.js renamed to subPackages/common/api/tree.js
subPackages/treePage/addTree.vue
| ... | ... | @@ -206,7 +206,7 @@ |
| 206 | 206 | |
| 207 | 207 | <script> |
| 208 | 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 | 210 | const rules = [{ |
| 211 | 211 | name: "treetype", |
| 212 | 212 | rule: ["required"], |
| ... | ... | @@ -316,10 +316,14 @@ export default { |
| 316 | 316 | // this.$refs.form && this.$refs.form.immediateValidate(true, rules) |
| 317 | 317 | }, |
| 318 | 318 | onLoad(options) { |
| 319 | + | |
| 320 | + this.formData.road = options.roadId | |
| 321 | + | |
| 322 | + }, | |
| 323 | + onShow(){ | |
| 319 | 324 | treeLevelReq().then(res => { |
| 320 | 325 | this.treeLevelData = res.data |
| 321 | 326 | }) |
| 322 | - this.formData.road = options.roadId | |
| 323 | 327 | this.treeOwnership() |
| 324 | 328 | }, |
| 325 | 329 | methods: { |
| ... | ... | @@ -398,7 +402,8 @@ export default { |
| 398 | 402 | console.log(res) |
| 399 | 403 | if (res.code == '200') { |
| 400 | 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 | 409 | } else { | ... | ... |
subPackages/treePage/editTree.vue
subPackages/treePage/editTreeIfo.vue
| ... | ... | @@ -212,7 +212,7 @@ |
| 212 | 212 | |
| 213 | 213 | <script> |
| 214 | 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 | 216 | const rules = [{ |
| 217 | 217 | name: "treetype", |
| 218 | 218 | rule: ["required"], |
| ... | ... | @@ -318,7 +318,6 @@ export default { |
| 318 | 318 | immediate: true, |
| 319 | 319 | handler(newVal, oldVal) { |
| 320 | 320 | if (newVal && newVal !== oldVal) { |
| 321 | - | |
| 322 | 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 | 0 | \ No newline at end of file |
subPackages/treePage/treeFiles.vue
| 1 | 1 | <template> |
| 2 | 2 | <view class="container"> |
| 3 | 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 | 5 | <tui-input padding="0" :borderBottom="false" placeholder="请选择归属单位" disabled |
| 6 | 6 | backgroundColor="transparent" v-model="formData.companyId"></tui-input> |
| 7 | 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 | +<!--<!– <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>–>--> | |
| 12 | +<!--<!– </tui-input>–>--> | |
| 13 | + | |
| 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>–>--> | |
| 12 | 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>--> | |
| 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 | 29 | </tui-form> |
| 30 | 30 | |
| 31 | + <tui-searchbar radius="40rpx" height="64rpx" placeholder="请输入道路名称" @search="getSeach" @clear="setSeach"></tui-searchbar> | |
| 32 | + | |
| 31 | 33 | <!-- <tui-row marginTop="10px" :gutter="5" class="full-height-row">--> |
| 32 | 34 | <!-- <tui-col :span="8" class="left-con full-height-col" >--> |
| 33 | 35 | <!-- <view class="full-height-col left-con">1</view>--> |
| ... | ... | @@ -81,7 +83,7 @@ |
| 81 | 83 | |
| 82 | 84 | |
| 83 | 85 | <script> |
| 84 | -import { belongCompanyreq, deptListReq, treeRoadReq } from "@/api/tree"; | |
| 86 | +import { belongCompanyreq, deptListReq, treeRoadReq } from "@/subPackages/common/api/tree.js"; | |
| 85 | 87 | export default { |
| 86 | 88 | name: "treeFiles", |
| 87 | 89 | data() { |
| ... | ... | @@ -102,6 +104,9 @@ export default { |
| 102 | 104 | } |
| 103 | 105 | }, |
| 104 | 106 | onLoad() { |
| 107 | + | |
| 108 | + }, | |
| 109 | + onShow(){ | |
| 105 | 110 | // 归属公司 |
| 106 | 111 | belongCompanyreq().then(res => { |
| 107 | 112 | this.belongCompanyData = res.data |
| ... | ... | @@ -113,6 +118,16 @@ export default { |
| 113 | 118 | }) |
| 114 | 119 | }, |
| 115 | 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 | 132 | toNewPage(params) { |
| 118 | 133 | uni.$tui.href(`/subPackages/treePage/treeRecord?roadId=${params}`) |
| ... | ... | @@ -205,7 +220,7 @@ export default { |
| 205 | 220 | } |
| 206 | 221 | |
| 207 | 222 | .card-wrap { |
| 208 | - margin: 20px 10px 0; | |
| 223 | + margin: 15px 10px 0; | |
| 209 | 224 | padding: 20rpx; |
| 210 | 225 | border-radius: 14rpx; |
| 211 | 226 | } | ... | ... |
subPackages/treePage/treeInfo.vue
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | <view class="container"> |
| 3 | 3 | <tui-form ref="form" :show-message="false" :model="formData"> |
| 4 | 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 | 6 | v-model="formData.treetype"></tui-input> |
| 7 | 7 | </tui-form-item> |
| 8 | 8 | |
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | |
| 11 | 11 | <tui-col :span="12"> |
| 12 | 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 | 14 | v-model="formData.dbh"></tui-input> |
| 15 | 15 | <template v-slot:right> |
| 16 | 16 | <text style="padding-left: 12rpx;color:#ccc;font-size:14px">厘米</text> |
| ... | ... | @@ -20,7 +20,7 @@ |
| 20 | 20 | |
| 21 | 21 | <tui-col :span="12"> |
| 22 | 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 | 24 | v-model="formData.treeheight"></tui-input> |
| 25 | 25 | <template v-slot:right> |
| 26 | 26 | <text style="padding-left: 12rpx;color:#ccc;font-size:14px;">米</text> |
| ... | ... | @@ -36,7 +36,7 @@ |
| 36 | 36 | class="location-form-item" |
| 37 | 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 | 40 | v-model="formData.growlocation"></tui-input> |
| 41 | 41 | <template v-slot:right> |
| 42 | 42 | <tui-icon name="gps" :size="20"></tui-icon> |
| ... | ... | @@ -68,14 +68,14 @@ |
| 68 | 68 | |
| 69 | 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 | 72 | v-model="formData.managedutyunit"></tui-input> |
| 73 | 73 | |
| 74 | 74 | <!-- <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled--> |
| 75 | 75 | <!-- backgroundColor="transparent" v-model="formData.managedutyunit"></tui-input>--> |
| 76 | 76 | </tui-form-item> |
| 77 | 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 | 79 | backgroundColor="transparent" v-model="formData.oldtreeownershipText"></tui-input> |
| 80 | 80 | </tui-form-item> |
| 81 | 81 | |
| ... | ... | @@ -125,20 +125,20 @@ |
| 125 | 125 | <tui-row> |
| 126 | 126 | <tui-col :span="12"> |
| 127 | 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 | 129 | v-model="formData.latinname"></tui-input> |
| 130 | 130 | </tui-form-item> |
| 131 | 131 | </tui-col> |
| 132 | 132 | <tui-col :span="12"> |
| 133 | 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 | 135 | backgroundColor="transparent" v-model="formData.treeleveltext"></tui-input> |
| 136 | 136 | </tui-form-item> |
| 137 | 137 | </tui-col> |
| 138 | 138 | </tui-row> |
| 139 | 139 | |
| 140 | 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 | 142 | v-model="formData.growthenvironment"></tui-input> |
| 143 | 143 | </tui-form-item> |
| 144 | 144 | |
| ... | ... | @@ -146,7 +146,7 @@ |
| 146 | 146 | <tui-row> |
| 147 | 147 | <tui-col :span="12"> |
| 148 | 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 | 150 | v-model="formData.estimationtreeage"></tui-input> |
| 151 | 151 | <template v-slot:right> |
| 152 | 152 | <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">年</text> |
| ... | ... | @@ -155,7 +155,7 @@ |
| 155 | 155 | </tui-col> |
| 156 | 156 | <tui-col :span="12"> |
| 157 | 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 | 159 | v-model="formData.weekday"></tui-input> |
| 160 | 160 | <template v-slot:right> |
| 161 | 161 | <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">厘米</text> |
| ... | ... | @@ -168,7 +168,7 @@ |
| 168 | 168 | <tui-row> |
| 169 | 169 | <tui-col :span="12"> |
| 170 | 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 | 172 | v-model="formData.canopyeastwest"></tui-input> |
| 173 | 173 | <template v-slot:right> |
| 174 | 174 | <text style="padding-left: 12rpx;color:#ccc">米</text> |
| ... | ... | @@ -177,7 +177,7 @@ |
| 177 | 177 | </tui-col> |
| 178 | 178 | <tui-col :span="12"> |
| 179 | 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 | 181 | v-model="formData.canopysouthnorth"></tui-input> |
| 182 | 182 | <template v-slot:right> |
| 183 | 183 | <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">米</text> |
| ... | ... | @@ -192,7 +192,7 @@ |
| 192 | 192 | |
| 193 | 193 | <script> |
| 194 | 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 | 196 | import { useCounterStore } from '@/stores/counter' |
| 197 | 197 | const rules = [{ |
| 198 | 198 | name: "treetype", |
| ... | ... | @@ -302,10 +302,10 @@ export default { |
| 302 | 302 | onUnload() { |
| 303 | 303 | |
| 304 | 304 | }, |
| 305 | - onLoad(options) { | |
| 306 | - // this.formData = this.useCounterStore.treeData | |
| 305 | + onLoad() { | |
| 306 | + }, | |
| 307 | + onShow(){ | |
| 307 | 308 | const treeData = this.useCounterStore.treeData; |
| 308 | - | |
| 309 | 309 | this.formData = { |
| 310 | 310 | ...treeData, |
| 311 | 311 | // 仅在当前组件中临时转换为对象数组,不修改Pinia源数据 |
| ... | ... | @@ -321,7 +321,6 @@ export default { |
| 321 | 321 | // src: item |
| 322 | 322 | // } |
| 323 | 323 | // }); |
| 324 | - | |
| 325 | 324 | treeLevelReq().then(res => { |
| 326 | 325 | this.treeLevelData = res.data |
| 327 | 326 | const optiontreelevel = this.treeLevelData.find(item => item.dictValue === this.formData.treelevel); | ... | ... |
subPackages/treePage/treeLog.vue
| ... | ... | @@ -33,7 +33,7 @@ |
| 33 | 33 | |
| 34 | 34 | <script> |
| 35 | 35 | import { useCounterStore } from '@/stores/counter' |
| 36 | -import { treeLogReq } from "@/api/tree"; | |
| 36 | +import { treeLogReq } from "@/subPackages/common/api/tree.js"; | |
| 37 | 37 | export default { |
| 38 | 38 | name: "treeLog", |
| 39 | 39 | props: { |
| ... | ... | @@ -84,7 +84,7 @@ export default { |
| 84 | 84 | |
| 85 | 85 | <style scoped> |
| 86 | 86 | .record-list-wrap { |
| 87 | - margin: 20px 10px 0 ; | |
| 87 | + margin: 15px 10px 0 ; | |
| 88 | 88 | padding:10px; |
| 89 | 89 | border-radius: 6px; |
| 90 | 90 | font-size: 14px; | ... | ... |
subPackages/treePage/treeRecord.vue
| 1 | 1 | <template> |
| 2 | 2 | <view class="container"> |
| 3 | - | |
| 4 | 3 | <tui-no-data imgUrl="/static/images/nodata.png" v-if="rows.length==0">暂无数据</tui-no-data> |
| 5 | 4 | <view class="record-wrap" v-else> |
| 6 | 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 | 31 | </template> |
| 33 | 32 | |
| 34 | 33 | <script> |
| 35 | -import { treeRoadReq } from "@/api/tree"; | |
| 34 | +import { treeRoadReq } from "@/subPackages/common/api/tree.js"; | |
| 36 | 35 | export default { |
| 37 | 36 | name: "treeRecord", |
| 38 | 37 | data() { |
| ... | ... | @@ -43,6 +42,8 @@ export default { |
| 43 | 42 | }, |
| 44 | 43 | onLoad(options) { |
| 45 | 44 | this.roadId = options.roadId |
| 45 | + }, | |
| 46 | + onShow(){ | |
| 46 | 47 | this.treeRoadQuery() |
| 47 | 48 | }, |
| 48 | 49 | methods: { |
| ... | ... | @@ -64,8 +65,11 @@ export default { |
| 64 | 65 | </script> |
| 65 | 66 | |
| 66 | 67 | <style scoped> |
| 68 | +.record-wrap{ | |
| 69 | + padding-bottom: 60px; | |
| 70 | +} | |
| 67 | 71 | .record-list-wrap { |
| 68 | - margin: 20px 10px 0 ; | |
| 72 | + margin: 15px 10px 0 ; | |
| 69 | 73 | padding:10px; |
| 70 | 74 | border-radius: 6px; |
| 71 | 75 | font-size: 14px; | ... | ... |