Commit c42a36b8ddcdd784c7f7432c3bc5b7d8aa4e43c7
1 parent
3412aebc
首页 图表新增排序
Showing
8 changed files
with
408 additions
and
305 deletions
pages/index.vue
| 1 | 1 | <template> |
| 2 | - <view class="container"> | |
| 3 | - <view class="fs-bg__primary fs-pt160 fs-pb120 fs-pl30 fs-color__white"> | |
| 4 | - {{config.weather}} / {{config.city}} {{config.temperature}}°C | |
| 5 | - </view> | |
| 6 | - <view class="fs-pl30 fs-pr30 fs-mt-60"> | |
| 7 | - <view class="fs-py36 fs-px30 fs-bg__white fs-radius__sm"> | |
| 8 | - <tui-list-cell unlined padding="0" :size="30" color="#000" :hover="false"> | |
| 9 | - <view class="fs-flex__between"> | |
| 10 | - <view>任务统计</view> | |
| 11 | - <view> | |
| 12 | - <tui-tag :type="summaryDate == 7 ? 'primary' : 'gray'" size="24rpx" padding="6rpx 15rpx" class="fs-mr20" @click="getSummary(7)">近7日</tui-tag> | |
| 13 | - <tui-tag :type="summaryDate == 30 ? 'primary' : 'gray'" size="24rpx" padding="6rpx 15rpx" @click="getSummary(30)">近30日</tui-tag> | |
| 14 | - </view> | |
| 15 | - </view> | |
| 16 | - </tui-list-cell> | |
| 17 | - <view class="fs-flex__between fs-mt30 fs-size__h4"> | |
| 18 | - <view class="fs-flex__column fs-items__center"> | |
| 19 | - <tui-circular-progress :diam="70" progressColor="#577EE3" fontColor="#577EE3" :lineWidth="5" :fontSize="16" :percentage="summaryDateList.patrolTaskCount"></tui-circular-progress> | |
| 20 | - <tui-text text="巡查任务数" color="#577EE3"></tui-text> | |
| 21 | - </view> | |
| 22 | - <view class="fs-flex__column fs-items__center"> | |
| 23 | - <tui-circular-progress :diam="70" progressColor="#FF2B2B" fontColor="#FF2B2B" :lineWidth="5" :fontSize="16" :percentage="summaryDateList.maintainTaskCount"></tui-circular-progress> | |
| 24 | - <tui-text text="养护任务数" color="#FF2B2B"></tui-text> | |
| 25 | - </view> | |
| 26 | - <view class="fs-flex__column fs-items__center"> | |
| 27 | - <tui-circular-progress :diam="70" progressColor="#FFB703" fontColor="#FFB703" :lineWidth="5" :fontSize="16" :percentage="summaryDateList.problemCreateCount"></tui-circular-progress> | |
| 28 | - <tui-text text="问题单数" color="#FFB703"></tui-text> | |
| 29 | - </view> | |
| 30 | - <view class="fs-flex__column fs-items__center"> | |
| 31 | - <tui-circular-progress :diam="70" progressColor="#09BE4F" fontColor="#09BE4F" :lineWidth="5" :fontSize="16" :percentage="summaryDateList.maintainOrderCount"></tui-circular-progress> | |
| 32 | - <tui-text text="养护单数" color="#09BE4F"></tui-text> | |
| 33 | - </view> | |
| 34 | - </view> | |
| 35 | - </view> | |
| 36 | - <view class="fs-mt30 fs-py36 fs-px30 fs-bg__white fs-radius__sm"> | |
| 37 | - <tui-list-cell unlined padding="0" :size="30" color="#000" :hover="false"> | |
| 38 | - <view class="fs-flex__between"> | |
| 39 | - <view>养护类型统计</view> | |
| 40 | - <view> | |
| 41 | - <tui-tag :type="summaryType == 7 ? 'primary' : 'gray'" size="24rpx" padding="6rpx 15rpx" class="fs-mr20" @click="getSummaryType(7)">近7日</tui-tag> | |
| 42 | - <tui-tag :type="summaryType == 30 ? 'primary' : 'gray'" size="24rpx" padding="6rpx 15rpx" @click="getSummaryType(30)">近30日</tui-tag> | |
| 43 | - </view> | |
| 44 | - </view> | |
| 45 | - </tui-list-cell> | |
| 46 | - <view class="fs-p30"> | |
| 47 | - <tui-charts-pie ref="tui_charts_pie" :type="2"></tui-charts-pie> | |
| 48 | - </view> | |
| 49 | - <tui-list-cell unlined padding="0" marginTop ="20" :size="30" color="#000" :hover="false"> | |
| 50 | - <view class="fs-flex__between"> | |
| 51 | - <view>员工养护类型统计</view> | |
| 52 | - <view> | |
| 53 | - <tui-tag :type="staffSummary == 7 ? 'primary' : 'gray'" size="24rpx" padding="6rpx 15rpx" class="fs-mr20" @click="getStaffSummary(7)">近7日</tui-tag> | |
| 54 | - <tui-tag :type="staffSummary == 30 ? 'primary' : 'gray'" size="24rpx" padding="6rpx 15rpx" @click="getStaffSummary(30)">近30日</tui-tag> | |
| 55 | - </view> | |
| 56 | - </view> | |
| 57 | - </tui-list-cell> | |
| 58 | - <view class="fs-p30"> | |
| 59 | - <tui-charts-bar ref="tui_charts_bar" tooltip width="420" :yAxis="staffSummaryList.yAxis" :max="staffSummaryList.max" :splitNumber="staffSummaryList.splitNumber"></tui-charts-bar> | |
| 60 | - </view> | |
| 61 | - </view> | |
| 62 | - </view> | |
| 63 | - <tui-white-space :height="30"></tui-white-space> | |
| 64 | -<!-- <tui-modal :show="showModal" @click="handleModal" @cancel="hideModal" content="发现新版本,是否升级到最新版本?"></tui-modal>--> | |
| 65 | - </view> | |
| 2 | + <view class="container"> | |
| 3 | + <view class="fs-bg__primary fs-pt160 fs-pb120 fs-pl30 fs-color__white"> | |
| 4 | + {{ config.weather }} / {{ config.city }} {{ config.temperature }}°C | |
| 5 | + </view> | |
| 6 | + <view class="fs-pl30 fs-pr30 fs-mt-60"> | |
| 7 | + <view class="fs-py36 fs-px30 fs-bg__white fs-radius__sm"> | |
| 8 | + <tui-list-cell unlined padding="0" :size="30" color="#000" :hover="false"> | |
| 9 | + <view class="fs-flex__between"> | |
| 10 | + <view>任务统计</view> | |
| 11 | + <view> | |
| 12 | + <tui-tag :type="summaryDate == 7 ? 'primary' : 'gray'" size="24rpx" padding="6rpx 15rpx" class="fs-mr20" | |
| 13 | + @click="getSummary(7)">近7日 | |
| 14 | + </tui-tag> | |
| 15 | + <tui-tag :type="summaryDate == 30 ? 'primary' : 'gray'" size="24rpx" padding="6rpx 15rpx" | |
| 16 | + @click="getSummary(30)">近30日 | |
| 17 | + </tui-tag> | |
| 18 | + </view> | |
| 19 | + </view> | |
| 20 | + </tui-list-cell> | |
| 21 | + <view class="fs-flex__between fs-mt30 fs-size__h4"> | |
| 22 | + <view class="fs-flex__column fs-items__center"> | |
| 23 | + <tui-circular-progress :diam="70" progressColor="#577EE3" fontColor="#577EE3" :lineWidth="5" :fontSize="16" | |
| 24 | + :percentage="summaryDateList.patrolTaskCount"></tui-circular-progress> | |
| 25 | + <tui-text text="巡查任务数" color="#577EE3"></tui-text> | |
| 26 | + </view> | |
| 27 | + <view class="fs-flex__column fs-items__center"> | |
| 28 | + <tui-circular-progress :diam="70" progressColor="#FF2B2B" fontColor="#FF2B2B" :lineWidth="5" :fontSize="16" | |
| 29 | + :percentage="summaryDateList.maintainTaskCount"></tui-circular-progress> | |
| 30 | + <tui-text text="养护任务数" color="#FF2B2B"></tui-text> | |
| 31 | + </view> | |
| 32 | + <view class="fs-flex__column fs-items__center"> | |
| 33 | + <tui-circular-progress :diam="70" progressColor="#FFB703" fontColor="#FFB703" :lineWidth="5" :fontSize="16" | |
| 34 | + :percentage="summaryDateList.problemCreateCount"></tui-circular-progress> | |
| 35 | + <tui-text text="问题单数" color="#FFB703"></tui-text> | |
| 36 | + </view> | |
| 37 | + <view class="fs-flex__column fs-items__center"> | |
| 38 | + <tui-circular-progress :diam="70" progressColor="#09BE4F" fontColor="#09BE4F" :lineWidth="5" :fontSize="16" | |
| 39 | + :percentage="summaryDateList.maintainOrderCount"></tui-circular-progress> | |
| 40 | + <tui-text text="养护单数" color="#09BE4F"></tui-text> | |
| 41 | + </view> | |
| 42 | + </view> | |
| 43 | + </view> | |
| 44 | + <view class="fs-mt30 fs-py36 fs-px30 fs-bg__white fs-radius__sm"> | |
| 45 | + <tui-list-cell unlined padding="0" :size="30" color="#000" :hover="false"> | |
| 46 | + <view class="fs-flex__between"> | |
| 47 | + <view>养护类型统计</view> | |
| 48 | + <view> | |
| 49 | + <tui-tag :type="summaryType == 7 ? 'primary' : 'gray'" size="24rpx" padding="6rpx 15rpx" class="fs-mr20" | |
| 50 | + @click="getSummaryType(7)">近7日 | |
| 51 | + </tui-tag> | |
| 52 | + <tui-tag :type="summaryType == 30 ? 'primary' : 'gray'" size="24rpx" padding="6rpx 15rpx" | |
| 53 | + @click="getSummaryType(30)">近30日 | |
| 54 | + </tui-tag> | |
| 55 | + </view> | |
| 56 | + </view> | |
| 57 | + </tui-list-cell> | |
| 58 | + <view class="fs-p30"> | |
| 59 | + <tui-charts-pie ref="tui_charts_pie" :type="2"></tui-charts-pie> | |
| 60 | + </view> | |
| 61 | + <!-- 员工养护类型统计 --> | |
| 62 | + <tui-list-cell unlined padding="0" marginTop="20" :size="30" color="#000" :hover="false"> | |
| 63 | + <view class="fs-flex__between"> | |
| 64 | + <view>员工养护类型统计</view> | |
| 65 | + <view> | |
| 66 | + <!-- 近7日/30日标签:用 :type 绑定状态,点击传递对应天数 --> | |
| 67 | + <tui-tag | |
| 68 | + :type="staffSummary === 7 ? 'primary' : 'gray'" | |
| 69 | + size="24rpx" | |
| 70 | + padding="6rpx 15rpx" | |
| 71 | + class="fs-mr20" | |
| 72 | + @click="getStaffSummary(7, isAsc)" | |
| 73 | + >近7日 | |
| 74 | + </tui-tag> | |
| 75 | + <tui-tag | |
| 76 | + :type="staffSummary === 30 ? 'primary' : 'gray'" | |
| 77 | + size="24rpx" | |
| 78 | + padding="6rpx 15rpx" | |
| 79 | + @click="getStaffSummary(30, isAsc)" | |
| 80 | + >近30日 | |
| 81 | + </tui-tag> | |
| 82 | + </view> | |
| 83 | + </view> | |
| 84 | + </tui-list-cell> | |
| 85 | + | |
| 86 | + <!-- 排序标签 --> | |
| 87 | + <tui-list-cell unlined padding="0" marginTop="40" :size="30" color="#000" :hover="false"> | |
| 88 | + <view class="fs-flex__between"> | |
| 89 | + <view></view> | |
| 90 | + <view> | |
| 91 | + <!-- 正序/倒序标签:修复为 :type 绑定状态,点击传递对应排序值(1/2) --> | |
| 92 | + <tui-tag | |
| 93 | + :type="isAsc == 'asc' ? 'primary' : 'gray'" | |
| 94 | + size="24rpx" | |
| 95 | + padding="6rpx 15rpx" | |
| 96 | + class="fs-mr20" | |
| 97 | + @click="getStaffSummary(staffSummary, 'asc')" | |
| 98 | + >正序 | |
| 99 | + </tui-tag> | |
| 100 | + <tui-tag | |
| 101 | + :type="isAsc == 'desc' ? 'primary' : 'gray'" | |
| 102 | + size="24rpx" | |
| 103 | + padding="6rpx 15rpx" | |
| 104 | + @click="getStaffSummary(staffSummary, 'desc')" | |
| 105 | + >倒序 | |
| 106 | + </tui-tag> | |
| 107 | + </view> | |
| 108 | + </view> | |
| 109 | + </tui-list-cell> | |
| 110 | + <view class="fs-p30"> | |
| 111 | + <view class="fs-flex__between"> | |
| 112 | + <view style="width: 100px;height: 100%"></view> | |
| 113 | + <tui-charts-bar ref="tui_charts_bar" :tooltip="true" :width="400" :yAxis="staffSummaryList.yAxis" :yAxisVal="staffSummaryList.yAxisLabel" | |
| 114 | + :splitNumber="staffSummaryList.splitNumber" ></tui-charts-bar> | |
| 115 | + </view> | |
| 116 | + | |
| 117 | + </view> | |
| 118 | + </view> | |
| 119 | + </view> | |
| 120 | + <tui-white-space :height="30"></tui-white-space> | |
| 121 | + <!-- <tui-modal :show="showModal" @click="handleModal" @cancel="hideModal" content="发现新版本,是否升级到最新版本?"></tui-modal>--> | |
| 122 | + </view> | |
| 66 | 123 | </template> |
| 67 | 124 | |
| 68 | 125 | <script> |
| ... | ... | @@ -71,148 +128,178 @@ import { apiVersion, apiGetSummary, apiSummaryType, apiStaffSummary } from '@/ap |
| 71 | 128 | import { apiGetUserInfo } from '@/api/user' |
| 72 | 129 | import moment from 'moment' |
| 73 | 130 | export default { |
| 74 | - data() { | |
| 75 | - return { | |
| 76 | - summaryDate: 7, | |
| 77 | - summaryDateList: {}, | |
| 78 | - summaryType: 7, | |
| 79 | - summaryTypeList: [ | |
| 80 | - { | |
| 81 | - value: 0, | |
| 82 | - color: '#03ABBE', | |
| 83 | - name: '浇水' | |
| 84 | - }, | |
| 85 | - { | |
| 86 | - value: 0, | |
| 87 | - color: '#EB0909', | |
| 88 | - name: '修剪' | |
| 89 | - }, | |
| 90 | - { | |
| 91 | - value: 0, | |
| 92 | - color: '#FFD54F', | |
| 93 | - name: '有害生物防治' | |
| 94 | - }, | |
| 95 | - { | |
| 96 | - value: 0, | |
| 97 | - color: '#07c160', | |
| 98 | - name: '中耕除草' | |
| 99 | - }, | |
| 100 | - { | |
| 101 | - value: 0, | |
| 102 | - color: '#c084fc', | |
| 103 | - name: '补植' | |
| 104 | - }, | |
| 105 | - { | |
| 106 | - value: 0, | |
| 107 | - color: '#409EFF', | |
| 108 | - name: '清理保洁' | |
| 109 | - }, | |
| 110 | - { | |
| 111 | - value: 0, | |
| 112 | - color: '#e5e5e5', | |
| 113 | - name: '绿地巡视' | |
| 114 | - }, | |
| 115 | - { | |
| 116 | - value: 0, | |
| 117 | - color: '#f59e0b', | |
| 118 | - name: '施肥' | |
| 119 | - }, | |
| 131 | + data() { | |
| 132 | + return { | |
| 133 | + summaryDate: 7, | |
| 134 | + summaryDateList: {}, | |
| 135 | + summaryType: 7, | |
| 136 | + isAsc: 'asc', | |
| 137 | + summaryTypeList: [ | |
| 138 | + { | |
| 139 | + value: 0, | |
| 140 | + color: '#03ABBE', | |
| 141 | + name: '浇水' | |
| 142 | + }, | |
| 143 | + { | |
| 144 | + value: 0, | |
| 145 | + color: '#EB0909', | |
| 146 | + name: '修剪' | |
| 147 | + }, | |
| 148 | + { | |
| 149 | + value: 0, | |
| 150 | + color: '#FFD54F', | |
| 151 | + name: '有害生物防治' | |
| 152 | + }, | |
| 153 | + { | |
| 154 | + value: 0, | |
| 155 | + color: '#07c160', | |
| 156 | + name: '中耕除草' | |
| 157 | + }, | |
| 158 | + { | |
| 159 | + value: 0, | |
| 160 | + color: '#c084fc', | |
| 161 | + name: '补植' | |
| 162 | + }, | |
| 163 | + { | |
| 164 | + value: 0, | |
| 165 | + color: '#409EFF', | |
| 166 | + name: '清理保洁' | |
| 167 | + }, | |
| 168 | + { | |
| 169 | + value: 0, | |
| 170 | + color: '#e5e5e5', | |
| 171 | + name: '绿地巡视' | |
| 172 | + }, | |
| 173 | + { | |
| 174 | + value: 0, | |
| 175 | + color: '#f59e0b', | |
| 176 | + name: '施肥' | |
| 177 | + }, | |
| 120 | 178 | { |
| 121 | 179 | value: 0, |
| 122 | 180 | color: '#999', |
| 123 | 181 | name: '树池篦子' |
| 124 | 182 | } |
| 125 | - ], | |
| 126 | - staffSummary: 7, | |
| 127 | - staffSummaryList: { | |
| 128 | - yAxis: [], | |
| 129 | - dataset: [{ | |
| 130 | - name: '', | |
| 131 | - color: '#5677fc', | |
| 132 | - source: [] | |
| 133 | - }], | |
| 134 | - max: 50, | |
| 135 | - splitNumber: 10 | |
| 136 | - }, | |
| 137 | - showModal: false, | |
| 138 | - downloadUrl: '' | |
| 139 | - } | |
| 140 | - }, | |
| 141 | - onLoad() { | |
| 142 | - this.getUserInfo() | |
| 143 | - // this.upgradation() | |
| 144 | - this.getSummary(this.summaryDate) | |
| 145 | - this.getSummaryType(this.summaryType) | |
| 146 | - this.getStaffSummary(this.staffSummary) | |
| 147 | - }, | |
| 148 | - methods: { | |
| 149 | - // 获取用户基本信息 | |
| 150 | - getUserInfo() { | |
| 151 | - apiGetUserInfo().then(res => { | |
| 152 | - this.setUserInfo(res.user) | |
| 153 | - }) | |
| 154 | - }, | |
| 155 | - // 获取统计数据 | |
| 156 | - getSummary(type) { | |
| 157 | - this.summaryDate = type | |
| 158 | - const beginTime = moment().subtract(type, 'days').format('YYYY-MM-DD 00:00:00') | |
| 159 | - const endTime = moment().format('YYYY-MM-DD 23:59:59') | |
| 160 | - apiGetSummary({data:{beginTime, endTime}}).then(res => { | |
| 161 | - this.summaryDateList = res.data | |
| 162 | - }) | |
| 163 | - }, | |
| 164 | - // 养护类型统计 | |
| 165 | - getSummaryType(type) { | |
| 166 | - this.summaryType = type | |
| 167 | - const beginTime = moment().subtract(type, 'days').format('YYYY-MM-DD 00:00:00') | |
| 168 | - const endTime = moment().format('YYYY-MM-DD 23:59:59') | |
| 169 | - apiSummaryType({data:{beginTime, endTime}}).then(res => { | |
| 183 | + ], | |
| 184 | + staffSummary: 7, | |
| 185 | + staffSummaryList: { | |
| 186 | + yAxis: [], | |
| 187 | + dataset: [{ | |
| 188 | + name: '', | |
| 189 | + color: '#5677fc', | |
| 190 | + source: [] | |
| 191 | + }], | |
| 192 | + max: 120, | |
| 193 | + splitNumber: 20, | |
| 194 | + yAxisLabel:{ | |
| 195 | + width: 100, // 限制文字最大宽度,超出则换行(根据需求调整数值) | |
| 196 | + breakWord: true, // 开启自动换行 | |
| 197 | + lineHeight: 16 // 换行后行高,保证文字不重叠(根据字体大小调整) | |
| 198 | + } | |
| 199 | + }, | |
| 200 | + showModal: false, | |
| 201 | + downloadUrl: '' | |
| 202 | + } | |
| 203 | + }, | |
| 204 | + onLoad() { | |
| 205 | + this.getUserInfo() | |
| 206 | + // this.upgradation() | |
| 207 | + this.getSummary(this.summaryDate) | |
| 208 | + this.getSummaryType(this.summaryType) | |
| 209 | + this.getStaffSummary(this.staffSummary, this.isAsc) | |
| 210 | + }, | |
| 211 | + methods: { | |
| 212 | + // 获取用户基本信息 | |
| 213 | + getUserInfo() { | |
| 214 | + apiGetUserInfo().then(res => { | |
| 215 | + this.setUserInfo(res.user) | |
| 216 | + }) | |
| 217 | + }, | |
| 218 | + // 获取统计数据 | |
| 219 | + getSummary(type) { | |
| 220 | + this.summaryDate = type | |
| 221 | + const beginTime = moment().subtract(type, 'days').format('YYYY-MM-DD 00:00:00') | |
| 222 | + const endTime = moment().format('YYYY-MM-DD 23:59:59') | |
| 223 | + apiGetSummary({data: {beginTime, endTime}}).then(res => { | |
| 224 | + this.summaryDateList = res.data | |
| 225 | + }) | |
| 226 | + }, | |
| 227 | + // 养护类型统计 | |
| 228 | + getSummaryType(type) { | |
| 229 | + this.summaryType = type | |
| 230 | + const beginTime = moment().subtract(type, 'days').format('YYYY-MM-DD 00:00:00') | |
| 231 | + const endTime = moment().format('YYYY-MM-DD 23:59:59') | |
| 232 | + apiSummaryType({data: {beginTime, endTime}}).then(res => { | |
| 170 | 233 | // console.log(res.data) |
| 171 | - res.data.forEach((item, index) => { | |
| 234 | + res.data.forEach((item, index) => { | |
| 172 | 235 | console.log(this.summaryTypeList[index]) |
| 173 | - this.summaryTypeList[index].value = item.countNum | |
| 174 | - }) | |
| 236 | + this.summaryTypeList[index].value = item.countNum | |
| 237 | + }) | |
| 175 | 238 | // console.log(this.summaryTypeList) |
| 176 | - this.$refs.tui_charts_pie.draw(this.summaryTypeList) | |
| 177 | - }) | |
| 178 | - }, | |
| 179 | - // 按员工养护类型统计 | |
| 180 | - getStaffSummary(type) { | |
| 181 | - this.staffSummary = type | |
| 182 | - const beginTime = moment().subtract(type, 'days').format('YYYY-MM-DD 00:00:00') | |
| 183 | - const endTime = moment().format('YYYY-MM-DD 23:59:59') | |
| 184 | - apiStaffSummary({data:{beginTime, endTime}}).then(res => { | |
| 185 | - res.data.forEach((item, index) => { | |
| 186 | - this.staffSummaryList.yAxis[index] = item.userName | |
| 187 | - this.staffSummaryList.dataset[0].source[index] = item.countNum | |
| 188 | - }) | |
| 189 | - this.$refs.tui_charts_bar.draw(this.staffSummaryList.dataset) | |
| 190 | - }) | |
| 191 | - }, | |
| 192 | - // 检查升级 | |
| 193 | - upgradation() { | |
| 194 | - // 检查版本更新 | |
| 195 | - apiVersion().then(res => { | |
| 196 | - const newVersion = res.data.version | |
| 197 | - this.downloadUrl = OSSURL + res.data.url | |
| 198 | - if (version < newVersion) { | |
| 199 | - this.showModal = true | |
| 200 | - } | |
| 201 | - }) | |
| 202 | - }, | |
| 203 | - // 确定升级 | |
| 204 | - handleModal(event) { | |
| 205 | - this.hideModal() | |
| 206 | - if (event.index == 1) { | |
| 207 | - // 打开系统浏览器下载 | |
| 208 | - plus.runtime.openURL(this.downloadUrl) | |
| 209 | - } | |
| 210 | - }, | |
| 211 | - // 取消升级 | |
| 212 | - hideModal() { | |
| 213 | - this.showModal = false | |
| 214 | - } | |
| 215 | - } | |
| 239 | + this.$refs.tui_charts_pie.draw(this.summaryTypeList) | |
| 240 | + }) | |
| 241 | + }, | |
| 242 | + truncateText(text, maxLength = 8) { | |
| 243 | + if (text.length <= maxLength) return text; | |
| 244 | + return text.slice(0, maxLength) + '...'; | |
| 245 | + }, | |
| 246 | + // 按员工养护类型统计 | |
| 247 | + getStaffSummary(type, isAsc) { | |
| 248 | + this.staffSummary = type | |
| 249 | + this.isAsc = isAsc | |
| 250 | + console.log(type) | |
| 251 | + console.log(isAsc) | |
| 252 | + const beginTime = moment().subtract(type, 'days').format('YYYY-MM-DD 00:00:00') | |
| 253 | + const endTime = moment().format('YYYY-MM-DD 23:59:59') | |
| 254 | + const pageNum = 1 | |
| 255 | + const pageSize = 10 | |
| 256 | + const pageReq = { | |
| 257 | + "isAsc": this.isAsc, | |
| 258 | + // "orderBy": "", | |
| 259 | + // "orderByColumn": "user_id", | |
| 260 | + // "pageNum": 1, | |
| 261 | + // "pageSize": 10 | |
| 262 | + } | |
| 263 | + apiStaffSummary({data: {beginTime, endTime, pageReq}}).then(res => { | |
| 264 | + res.data.forEach((item, index) => { | |
| 265 | + this.staffSummaryList.yAxis[index] = item.userName | |
| 266 | + // this.staffSummaryList.yAxis[index] = this.truncateText(item.userName, 7); | |
| 267 | + this.staffSummaryList.dataset[0].source[index] = item.countNum | |
| 268 | + this.staffSummaryList.tooltip = { | |
| 269 | + formatter: (params) => { | |
| 270 | + // params 中可获取当前项索引,进而拿到原始完整文字 | |
| 271 | + const fullText = item.userName[params.dataIndex]; | |
| 272 | + return `${fullText}: ${params.value}`; // tooltip 显示完整文字 | |
| 273 | + } | |
| 274 | + }; | |
| 275 | + }) | |
| 276 | + this.$refs.tui_charts_bar.draw(this.staffSummaryList.dataset) | |
| 277 | + }) | |
| 278 | + }, | |
| 279 | + // 检查升级 | |
| 280 | + upgradation() { | |
| 281 | + // 检查版本更新 | |
| 282 | + apiVersion().then(res => { | |
| 283 | + const newVersion = res.data.version | |
| 284 | + this.downloadUrl = OSSURL + res.data.url | |
| 285 | + if (version < newVersion) { | |
| 286 | + this.showModal = true | |
| 287 | + } | |
| 288 | + }) | |
| 289 | + }, | |
| 290 | + // 确定升级 | |
| 291 | + handleModal(event) { | |
| 292 | + this.hideModal() | |
| 293 | + if (event.index == 1) { | |
| 294 | + // 打开系统浏览器下载 | |
| 295 | + plus.runtime.openURL(this.downloadUrl) | |
| 296 | + } | |
| 297 | + }, | |
| 298 | + // 取消升级 | |
| 299 | + hideModal() { | |
| 300 | + this.showModal = false | |
| 301 | + } | |
| 302 | + } | |
| 216 | 303 | } |
| 217 | 304 | </script> |
| 218 | 305 | ... | ... |
pages/work/case/maintain.vue
| ... | ... | @@ -30,8 +30,12 @@ |
| 30 | 30 | </view> |
| 31 | 31 | <view class="fs-mt16 fs-flex__between"> |
| 32 | 32 | <view class="fs-ellipsis fs-mr20">养护类型:{{item.maintainTypeName}}</view> |
| 33 | - <view class="fs-ellipsis fs-flex__1">植物类型:{{item.plantTypeName}}</view> | |
| 33 | +<!-- <view class="fs-ellipsis fs-flex__1">植物类型:{{item.plantTypeName}}</view>--> | |
| 34 | 34 | </view> |
| 35 | + <view class="fs-mt16 fs-flex__between"> | |
| 36 | +<!-- <view class="fs-ellipsis fs-mr20">养护类型:{{item.maintainTypeName}}</view>--> | |
| 37 | + <view class="fs-ellipsis fs-flex__1">植物类型:{{item.plantTypeName}}</view> | |
| 38 | + </view> | |
| 35 | 39 | <view class="fs-mt16">道路名称:{{item.roadName}}</view> |
| 36 | 40 | <view class="fs-mt16 fs-ellipsis__2">任务描述:{{item.taskRemark}}</view> |
| 37 | 41 | <view class="fs-mt16">提交日期:{{item.createTime}}</view> | ... | ... |
pages/work/case/task.vue
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | <view class="fs-flex__between"><view>养护类型</view><view>{{info.maintainTypeName}}</view></view> |
| 14 | 14 | </tui-list-cell> |
| 15 | 15 | <tui-list-cell :hover="false"> |
| 16 | - <view class="fs-flex__between"><view>植物类型</view><view>{{info.plantTypeName}}</view></view> | |
| 16 | + <view class="fs-flex__between"><view class="fs-mr16">植物类型</view><view class="fs-ellipsis fs-flex__1">{{info.plantTypeName}}</view></view> | |
| 17 | 17 | </tui-list-cell> |
| 18 | 18 | <tui-list-cell :hover="false"> |
| 19 | 19 | <view class="fs-flex__between"><view>养护组长</view><view>{{info.userName}}</view></view> | ... | ... |
subPackages/treePage/addTree.vue
| 1 | 1 | <template> |
| 2 | - <view class="container"> | |
| 2 | + <view class="container" > | |
| 3 | 3 | |
| 4 | 4 | <tui-form ref="form" :show-message="false" :model="formData"> |
| 5 | - <tui-form-item asterisk label="名称" prop="treetype"> | |
| 6 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入名称" maxlength="30" | |
| 5 | + <tui-form-item asterisk label="名称" prop="treetype" :labelSize="32"> | |
| 6 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入名称" maxlength="30" :size="32" | |
| 7 | 7 | v-model="formData.treetype"></tui-input> |
| 8 | 8 | </tui-form-item> |
| 9 | 9 | |
| 10 | 10 | <tui-row> |
| 11 | 11 | |
| 12 | 12 | <tui-col :span="12"> |
| 13 | - <tui-form-item label="胸径" asterisk prop="dbh" :position="2"> | |
| 14 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" textLeft | |
| 13 | + <tui-form-item label="胸径" asterisk prop="dbh" :position="2" :labelSize="32"> | |
| 14 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" textLeft | |
| 15 | 15 | v-model="formData.dbh"></tui-input> |
| 16 | 16 | <template v-slot:right> |
| 17 | - <text style="padding-left: 12rpx;color:#ccc;font-size:12px">米</text> | |
| 17 | + <text style="padding-left: 12rpx;color:#ccc;font-size:12px">厘米</text> | |
| 18 | 18 | </template> |
| 19 | 19 | </tui-form-item> |
| 20 | 20 | </tui-col> |
| 21 | 21 | <tui-col :span="12"> |
| 22 | - <tui-form-item label="高度" prop="treeheight" :position="2"> | |
| 23 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" textLeft | |
| 22 | + <tui-form-item label="高度" prop="treeheight" :position="2" :labelSize="32"> | |
| 23 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" textLeft | |
| 24 | 24 | v-model="formData.treeheight"></tui-input> |
| 25 | 25 | <template v-slot:right> |
| 26 | - <text style="padding-left: 12rpx;color:#ccc;font-size:12px;">米</text> | |
| 26 | + <text style="padding-left: 12rpx;color:#ccc;font-size:14px;">米</text> | |
| 27 | 27 | </template> |
| 28 | 28 | </tui-form-item> |
| 29 | 29 | </tui-col> |
| ... | ... | @@ -36,11 +36,12 @@ |
| 36 | 36 | class="location-form-item" |
| 37 | 37 | @click="openMap" |
| 38 | 38 | prop="growlocation" |
| 39 | + :labelSize="32" | |
| 39 | 40 | > |
| 40 | - <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled | |
| 41 | + <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled :size="32" | |
| 41 | 42 | v-model="formData.growlocation"></tui-input> |
| 42 | 43 | <template v-slot:right> |
| 43 | - <tui-icon name="gps" :size="20"></tui-icon> | |
| 44 | + <tui-icon name="gps" :size="22"></tui-icon> | |
| 44 | 45 | </template> |
| 45 | 46 | </tui-form-item> |
| 46 | 47 | |
| ... | ... | @@ -51,8 +52,9 @@ |
| 51 | 52 | class="location-form-item" |
| 52 | 53 | prop="latitude" |
| 53 | 54 | :bottomBorder="false" |
| 55 | + :labelSize="32" | |
| 54 | 56 | > |
| 55 | - <tui-input padding="0" :borderBottom="false" placeholder="" disabled | |
| 57 | + <tui-input padding="0" :borderBottom="false" placeholder="" disabled :size="32" | |
| 56 | 58 | v-model="formData.longitude"></tui-input> |
| 57 | 59 | <!-- <span style="color: #ccc;font-size: 14px"> {{ formData.longitude }}</span>--> |
| 58 | 60 | </tui-form-item> |
| ... | ... | @@ -64,28 +66,29 @@ |
| 64 | 66 | labelColor="#ccc" |
| 65 | 67 | class="location-form-item" |
| 66 | 68 | prop="latitude" |
| 69 | + :labelSize="32" | |
| 67 | 70 | > |
| 68 | - <tui-input padding="0" :borderBottom="false" placeholder="" disabled | |
| 71 | + <tui-input padding="0" :borderBottom="false" placeholder="" disabled :size="32" | |
| 69 | 72 | v-model="formData.latitude"></tui-input> |
| 70 | 73 | <!-- <span style="color: #ccc;font-size: 14px"> {{ formData.latitude }}</span>--> |
| 71 | 74 | </tui-form-item> |
| 72 | 75 | </tui-col> |
| 73 | 76 | |
| 74 | 77 | |
| 75 | - <tui-form-item asterisk label="管护单位" prop="managedutyunit"> | |
| 78 | + <tui-form-item asterisk label="管护单位" prop="managedutyunit" :labelSize="32"> | |
| 76 | 79 | |
| 77 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="30" | |
| 80 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="30" :size="32" | |
| 78 | 81 | v-model="formData.managedutyunit"></tui-input> |
| 79 | 82 | |
| 80 | 83 | <!-- <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled--> |
| 81 | 84 | <!-- backgroundColor="transparent" v-model="formData.managedutyunit"></tui-input>--> |
| 82 | 85 | </tui-form-item> |
| 83 | - <tui-form-item asterisk label="权属分类" arrow highlight prop="oldtreeownershipText" @click="pickerShow"> | |
| 84 | - <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled | |
| 86 | + <tui-form-item asterisk label="权属分类" arrow highlight prop="oldtreeownershipText" @click="pickerShow" :labelSize="32"> | |
| 87 | + <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled :size="32" | |
| 85 | 88 | backgroundColor="transparent" v-model="formData.oldtreeownershipText"></tui-input> |
| 86 | 89 | </tui-form-item> |
| 87 | 90 | |
| 88 | - <tui-form-item label="图片信息" asterisk prop="treeImgList"> | |
| 91 | + <tui-form-item label="图片信息" asterisk prop="treeImgList" :labelSize="32"> | |
| 89 | 92 | <!-- 使用ThorUI的tui-upload组件 --> |
| 90 | 93 | <!-- @remove="handleRemove" :multiple="true" :value="formData.treeImgList"--> |
| 91 | 94 | <tui-upload |
| ... | ... | @@ -117,41 +120,41 @@ |
| 117 | 120 | |
| 118 | 121 | <tui-row> |
| 119 | 122 | <tui-col :span="12"> |
| 120 | - <tui-form-item label="拉丁文" prop="latinname"> | |
| 121 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="30" | |
| 123 | + <tui-form-item label="拉丁文" prop="latinname" :labelSize="32"> | |
| 124 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="30" :size="32" | |
| 122 | 125 | v-model="formData.latinname"></tui-input> |
| 123 | 126 | </tui-form-item> |
| 124 | 127 | </tui-col> |
| 125 | 128 | <tui-col :span="12"> |
| 126 | - <tui-form-item label="级别" arrow highlight prop="treeleveltext" @click="pickerLevelShow"> | |
| 127 | - <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled | |
| 129 | + <tui-form-item label="级别" arrow highlight prop="treeleveltext" @click="pickerLevelShow" :labelSize="32"> | |
| 130 | + <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled :size="32" | |
| 128 | 131 | backgroundColor="transparent" v-model="formData.treeleveltext"></tui-input> |
| 129 | 132 | </tui-form-item> |
| 130 | 133 | </tui-col> |
| 131 | 134 | </tui-row> |
| 132 | 135 | |
| 133 | - <tui-form-item label="生长环境" prop="growthenvironment"> | |
| 134 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="50" | |
| 136 | + <tui-form-item label="生长环境" prop="growthenvironment" :labelSize="32"> | |
| 137 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="50" :size="32" | |
| 135 | 138 | v-model="formData.growthenvironment"></tui-input> |
| 136 | 139 | </tui-form-item> |
| 137 | 140 | |
| 138 | 141 | |
| 139 | 142 | <tui-row> |
| 140 | 143 | <tui-col :span="12"> |
| 141 | - <tui-form-item label="预估树龄" prop="estimationtreeage" :position="2"> | |
| 142 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" | |
| 144 | + <tui-form-item label="预估树龄" prop="estimationtreeage" :position="2" :labelSize="32"> | |
| 145 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" | |
| 143 | 146 | v-model="formData.estimationtreeage"></tui-input> |
| 144 | 147 | <template v-slot:right> |
| 145 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">年</text> | |
| 148 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">年</text> | |
| 146 | 149 | </template> |
| 147 | 150 | </tui-form-item> |
| 148 | 151 | </tui-col> |
| 149 | 152 | <tui-col :span="12"> |
| 150 | - <tui-form-item label="干周" prop="weekday" :position="2"> | |
| 151 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" | |
| 153 | + <tui-form-item label="干周" prop="weekday" :position="2" :labelSize="32"> | |
| 154 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" | |
| 152 | 155 | v-model="formData.weekday"></tui-input> |
| 153 | 156 | <template v-slot:right> |
| 154 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">厘米</text> | |
| 157 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">厘米</text> | |
| 155 | 158 | </template> |
| 156 | 159 | </tui-form-item> |
| 157 | 160 | </tui-col> |
| ... | ... | @@ -160,20 +163,20 @@ |
| 160 | 163 | |
| 161 | 164 | <tui-row> |
| 162 | 165 | <tui-col :span="12"> |
| 163 | - <tui-form-item label="东西冠幅" prop="canopyeastwest" :position="2"> | |
| 164 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" | |
| 166 | + <tui-form-item label="东西冠幅" prop="canopyeastwest" :position="2" :labelSize="32"> | |
| 167 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" | |
| 165 | 168 | v-model="formData.canopyeastwest"></tui-input> |
| 166 | 169 | <template v-slot:right> |
| 167 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">米</text> | |
| 170 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">米</text> | |
| 168 | 171 | </template> |
| 169 | 172 | </tui-form-item> |
| 170 | 173 | </tui-col> |
| 171 | 174 | <tui-col :span="12"> |
| 172 | - <tui-form-item label="南北冠幅" prop="canopysouthnorth" :position="2"> | |
| 173 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" | |
| 175 | + <tui-form-item label="南北冠幅" prop="canopysouthnorth" :position="2" :labelSize="32"> | |
| 176 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" | |
| 174 | 177 | v-model="formData.canopysouthnorth"></tui-input> |
| 175 | 178 | <template v-slot:right> |
| 176 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">米</text> | |
| 179 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">米</text> | |
| 177 | 180 | </template> |
| 178 | 181 | </tui-form-item> |
| 179 | 182 | </tui-col> |
| ... | ... | @@ -441,6 +444,7 @@ export default { |
| 441 | 444 | uni.chooseLocation({ |
| 442 | 445 | // ...options, |
| 443 | 446 | success: (res) => { |
| 447 | + type: 'gcj02', // 高德地图使用国测局坐标(gcj02) | |
| 444 | 448 | console.log(res) |
| 445 | 449 | // 选择成功后更新位置信息 |
| 446 | 450 | this.formData.growlocation = res.address |
| ... | ... | @@ -476,4 +480,6 @@ export default { |
| 476 | 480 | height: 200rpx; |
| 477 | 481 | transition: all 0.3s ease-out; /* 动画过渡效果 */ |
| 478 | 482 | } |
| 483 | + | |
| 484 | + | |
| 479 | 485 | </style> |
| 480 | 486 | \ No newline at end of file | ... | ... |
subPackages/treePage/editTreeIfo.vue
| 1 | 1 | <template> |
| 2 | 2 | <view class="container"> |
| 3 | 3 | <tui-form ref="form" :show-message="false" :model="formData"> |
| 4 | - <tui-form-item asterisk label="名称" prop="treetype"> | |
| 5 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入名称" maxlength="30" | |
| 4 | + <tui-form-item asterisk label="名称" prop="treetype" :labelSize="32"> | |
| 5 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入名称" maxlength="30" :size="32" | |
| 6 | 6 | v-model="formData.treetype"></tui-input> |
| 7 | 7 | </tui-form-item> |
| 8 | 8 | |
| 9 | 9 | <tui-row> |
| 10 | 10 | |
| 11 | 11 | <tui-col :span="12"> |
| 12 | - <tui-form-item label="胸径" asterisk prop="dbh" :position="2"> | |
| 13 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" | |
| 12 | + <tui-form-item label="胸径" asterisk prop="dbh" :position="2" :labelSize="32"> | |
| 13 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" | |
| 14 | 14 | v-model="formData.dbh"></tui-input> |
| 15 | 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> | |
| 17 | 17 | </template> |
| 18 | 18 | </tui-form-item> |
| 19 | 19 | </tui-col> |
| 20 | 20 | <tui-col :span="12"> |
| 21 | - <tui-form-item label="高度" prop="treeheight" :position="2"> | |
| 22 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" | |
| 21 | + <tui-form-item label="高度" prop="treeheight" :position="2" :labelSize="32"> | |
| 22 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" | |
| 23 | 23 | v-model="formData.treeheight"></tui-input> |
| 24 | 24 | <template v-slot:right> |
| 25 | 25 | <text style="padding-left: 12rpx;color:#ccc;font-size:14px;">米</text> |
| ... | ... | @@ -33,8 +33,9 @@ |
| 33 | 33 | class="location-form-item" |
| 34 | 34 | @click="openMap" |
| 35 | 35 | prop="growlocation" |
| 36 | + :labelSize="32" | |
| 36 | 37 | > |
| 37 | - <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled | |
| 38 | + <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled :size="32" | |
| 38 | 39 | v-model="formData.growlocation"></tui-input> |
| 39 | 40 | <template v-slot:right> |
| 40 | 41 | <tui-icon name="gps" :size="20"></tui-icon> |
| ... | ... | @@ -46,9 +47,10 @@ |
| 46 | 47 | labelColor="#ccc" |
| 47 | 48 | class="location-form-item" |
| 48 | 49 | prop="latitude" |
| 50 | + :labelSize="32" | |
| 49 | 51 | > |
| 50 | 52 | <!-- <span style="color: #ccc;font-size: 14px"> {{ formData.longitude }}</span>--> |
| 51 | - <tui-input padding="0" :borderBottom="false" placeholder="" disabled | |
| 53 | + <tui-input padding="0" :borderBottom="false" placeholder="" disabled :size="32" | |
| 52 | 54 | v-model="formData.longitude"></tui-input> |
| 53 | 55 | </tui-form-item> |
| 54 | 56 | </tui-col> |
| ... | ... | @@ -59,29 +61,30 @@ |
| 59 | 61 | label="纬度" |
| 60 | 62 | class="location-form-item" |
| 61 | 63 | prop="latitude" |
| 64 | + :labelSize="32" | |
| 62 | 65 | > |
| 63 | 66 | <!-- <span style="color: #ccc;font-size: 14px"> {{ formData.latitude }}</span>--> |
| 64 | - <tui-input padding="0" :borderBottom="false" placeholder="" disabled | |
| 67 | + <tui-input padding="0" :borderBottom="false" placeholder="" disabled :size="32" | |
| 65 | 68 | v-model="formData.latitude"></tui-input> |
| 66 | 69 | </tui-form-item> |
| 67 | 70 | </tui-col> |
| 68 | 71 | |
| 69 | 72 | |
| 70 | 73 | |
| 71 | - <tui-form-item asterisk label="管护单位" prop="managedutyunit"> | |
| 74 | + <tui-form-item asterisk label="管护单位" prop="managedutyunit" :labelSize="32"> | |
| 72 | 75 | |
| 73 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="30" | |
| 76 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="30" :size="32" | |
| 74 | 77 | v-model="formData.managedutyunit"></tui-input> |
| 75 | 78 | |
| 76 | 79 | <!-- <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled--> |
| 77 | 80 | <!-- backgroundColor="transparent" v-model="formData.managedutyunit"></tui-input>--> |
| 78 | 81 | </tui-form-item> |
| 79 | - <tui-form-item asterisk label="权属分类" arrow highlight prop="oldtreeownershipText" @click="pickerShow"> | |
| 80 | - <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled | |
| 82 | + <tui-form-item asterisk label="权属分类" arrow highlight prop="oldtreeownershipText" @click="pickerShow" :labelSize="32"> | |
| 83 | + <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled :size="32" | |
| 81 | 84 | backgroundColor="transparent" v-model="formData.oldtreeownershipText"></tui-input> |
| 82 | 85 | </tui-form-item> |
| 83 | 86 | |
| 84 | - <tui-form-item label="图片信息" asterisk prop="treeImgList"> | |
| 87 | + <tui-form-item label="图片信息" asterisk prop="treeImgList" :labelSize="32"> | |
| 85 | 88 | <!-- 使用ThorUI的tui-upload组件 --> |
| 86 | 89 | <!-- @remove="handleRemove" :multiple="true" :value="formData.treeImgList"--> |
| 87 | 90 | <tui-upload |
| ... | ... | @@ -124,41 +127,41 @@ |
| 124 | 127 | |
| 125 | 128 | <tui-row> |
| 126 | 129 | <tui-col :span="12"> |
| 127 | - <tui-form-item label="拉丁文" prop="latinname"> | |
| 128 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="30" | |
| 130 | + <tui-form-item label="拉丁文" prop="latinname" :labelSize="32"> | |
| 131 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="30" :size="32" | |
| 129 | 132 | v-model="formData.latinname"></tui-input> |
| 130 | 133 | </tui-form-item> |
| 131 | 134 | </tui-col> |
| 132 | 135 | <tui-col :span="12"> |
| 133 | - <tui-form-item label="级别" arrow highlight prop="treeleveltext" @click="pickerLevelShow"> | |
| 134 | - <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled | |
| 136 | + <tui-form-item label="级别" arrow highlight prop="treeleveltext" @click="pickerLevelShow" :labelSize="32"> | |
| 137 | + <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled :size="32" | |
| 135 | 138 | backgroundColor="transparent" v-model="formData.treeleveltext"></tui-input> |
| 136 | 139 | </tui-form-item> |
| 137 | 140 | </tui-col> |
| 138 | 141 | </tui-row> |
| 139 | 142 | |
| 140 | - <tui-form-item label="生长环境" prop="growthenvironment"> | |
| 141 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="50" | |
| 143 | + <tui-form-item label="生长环境" prop="growthenvironment" :labelSize="32"> | |
| 144 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="50" :size="32" | |
| 142 | 145 | v-model="formData.growthenvironment"></tui-input> |
| 143 | 146 | </tui-form-item> |
| 144 | 147 | |
| 145 | 148 | |
| 146 | 149 | <tui-row> |
| 147 | 150 | <tui-col :span="12"> |
| 148 | - <tui-form-item label="预估树龄" prop="estimationtreeage" :position="2"> | |
| 149 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" | |
| 151 | + <tui-form-item label="预估树龄" prop="estimationtreeage" :position="2" :labelSize="32"> | |
| 152 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" | |
| 150 | 153 | v-model="formData.estimationtreeage"></tui-input> |
| 151 | 154 | <template v-slot:right> |
| 152 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">年</text> | |
| 155 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">年</text> | |
| 153 | 156 | </template> |
| 154 | 157 | </tui-form-item> |
| 155 | 158 | </tui-col> |
| 156 | 159 | <tui-col :span="12"> |
| 157 | - <tui-form-item label="干周" prop="weekday" :position="2"> | |
| 158 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" | |
| 160 | + <tui-form-item label="干周" prop="weekday" :position="2" :labelSize="32"> | |
| 161 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" | |
| 159 | 162 | v-model="formData.weekday"></tui-input> |
| 160 | 163 | <template v-slot:right> |
| 161 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">厘米</text> | |
| 164 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">厘米</text> | |
| 162 | 165 | </template> |
| 163 | 166 | </tui-form-item> |
| 164 | 167 | </tui-col> |
| ... | ... | @@ -167,20 +170,20 @@ |
| 167 | 170 | |
| 168 | 171 | <tui-row> |
| 169 | 172 | <tui-col :span="12"> |
| 170 | - <tui-form-item label="东西冠幅" prop="canopyeastwest" :position="2"> | |
| 171 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" | |
| 173 | + <tui-form-item label="东西冠幅" prop="canopyeastwest" :position="2" :labelSize="32"> | |
| 174 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" | |
| 172 | 175 | v-model="formData.canopyeastwest"></tui-input> |
| 173 | 176 | <template v-slot:right> |
| 174 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">米</text> | |
| 177 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">米</text> | |
| 175 | 178 | </template> |
| 176 | 179 | </tui-form-item> |
| 177 | 180 | </tui-col> |
| 178 | 181 | <tui-col :span="12"> |
| 179 | - <tui-form-item label="南北冠幅" prop="canopysouthnorth" :position="2"> | |
| 180 | - <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" | |
| 182 | + <tui-form-item label="南北冠幅" prop="canopysouthnorth" :position="2" :labelSize="32"> | |
| 183 | + <tui-input padding="0" :borderBottom="false" placeholder="请输入" maxlength="10" :size="32" | |
| 181 | 184 | v-model="formData.canopysouthnorth"></tui-input> |
| 182 | 185 | <template v-slot:right> |
| 183 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">米</text> | |
| 186 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">米</text> | |
| 184 | 187 | </template> |
| 185 | 188 | </tui-form-item> |
| 186 | 189 | </tui-col> | ... | ... |
subPackages/treePage/treeInfo.vue
| 1 | 1 | <template> |
| 2 | 2 | <view class="container"> |
| 3 | 3 | <tui-form ref="form" :show-message="false" :model="formData"> |
| 4 | - <tui-form-item asterisk label="名称" prop="treetype"> | |
| 5 | - <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="30" :disabled="true" | |
| 4 | + <tui-form-item asterisk label="名称" prop="treetype" :labelSize="32"> | |
| 5 | + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="30" :disabled="true" :size="32" | |
| 6 | 6 | v-model="formData.treetype"></tui-input> |
| 7 | 7 | </tui-form-item> |
| 8 | 8 | |
| 9 | 9 | <tui-row> |
| 10 | 10 | |
| 11 | 11 | <tui-col :span="12"> |
| 12 | - <tui-form-item label="胸径" asterisk prop="dbh" :position="2"> | |
| 13 | - <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" | |
| 12 | + <tui-form-item label="胸径" asterisk prop="dbh" :position="2" :labelSize="32"> | |
| 13 | + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" :size="32" | |
| 14 | 14 | v-model="formData.dbh"></tui-input> |
| 15 | 15 | <template v-slot:right> |
| 16 | - <text style="padding-left: 12rpx;color:#ccc;font-size:12px">米</text> | |
| 16 | + <text style="padding-left: 12rpx;color:#ccc;font-size:14px">厘米</text> | |
| 17 | 17 | </template> |
| 18 | 18 | </tui-form-item> |
| 19 | 19 | </tui-col> |
| 20 | 20 | |
| 21 | 21 | <tui-col :span="12"> |
| 22 | - <tui-form-item label="高度" prop="treeheight" :position="2"> | |
| 23 | - <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" | |
| 22 | + <tui-form-item label="高度" prop="treeheight" :position="2" :labelSize="32"> | |
| 23 | + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" :size="32" | |
| 24 | 24 | v-model="formData.treeheight"></tui-input> |
| 25 | 25 | <template v-slot:right> |
| 26 | - <text style="padding-left: 12rpx;color:#ccc;font-size:12px;">米</text> | |
| 26 | + <text style="padding-left: 12rpx;color:#ccc;font-size:14px;">米</text> | |
| 27 | 27 | </template> |
| 28 | 28 | </tui-form-item> |
| 29 | 29 | </tui-col> |
| ... | ... | @@ -35,8 +35,9 @@ |
| 35 | 35 | label="位置" |
| 36 | 36 | class="location-form-item" |
| 37 | 37 | prop="growlocation" |
| 38 | + :labelSize="32" | |
| 38 | 39 | > |
| 39 | - <tui-input padding="0" :borderBottom="false" placeholder="" :disabled="true" | |
| 40 | + <tui-input padding="0" :borderBottom="false" placeholder="" :disabled="true" :size="32" | |
| 40 | 41 | v-model="formData.growlocation"></tui-input> |
| 41 | 42 | <template v-slot:right> |
| 42 | 43 | <tui-icon name="gps" :size="20"></tui-icon> |
| ... | ... | @@ -49,8 +50,9 @@ |
| 49 | 50 | class="location-form-item" |
| 50 | 51 | prop="latitude" |
| 51 | 52 | labelColor="#ccc" |
| 53 | + :labelSize="32" | |
| 52 | 54 | > |
| 53 | - <tui-input padding="0" :borderBottom="false" placeholder="" disabled | |
| 55 | + <tui-input padding="0" :borderBottom="false" placeholder="" disabled :size="32" | |
| 54 | 56 | v-model="formData.longitude"></tui-input> |
| 55 | 57 | <!-- <span style="color: #ccc;font-size: 14px"> {{ formData.longitude }}</span>--> |
| 56 | 58 | </tui-form-item> |
| ... | ... | @@ -62,28 +64,29 @@ |
| 62 | 64 | class="location-form-item" |
| 63 | 65 | labelColor="#ccc" |
| 64 | 66 | prop="latitude" |
| 67 | + :labelSize="32" | |
| 65 | 68 | > |
| 66 | - <tui-input padding="0" :borderBottom="false" placeholder="" disabled | |
| 69 | + <tui-input padding="0" :borderBottom="false" placeholder="" disabled :size="32" | |
| 67 | 70 | v-model="formData.latitude"></tui-input> |
| 68 | 71 | <!-- <span style="color: #ccc;font-size: 14px"> {{ formData.latitude }}</span>--> |
| 69 | 72 | </tui-form-item> |
| 70 | 73 | </tui-col> |
| 71 | 74 | |
| 72 | 75 | |
| 73 | - <tui-form-item asterisk label="管护单位" prop="managedutyunit"> | |
| 76 | + <tui-form-item asterisk label="管护单位" prop="managedutyunit" :labelSize="32"> | |
| 74 | 77 | |
| 75 | - <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="30" :disabled="true" | |
| 78 | + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="30" :disabled="true" :size="32" | |
| 76 | 79 | v-model="formData.managedutyunit"></tui-input> |
| 77 | 80 | |
| 78 | 81 | <!-- <tui-input padding="0" :borderBottom="false" placeholder="请选择" disabled--> |
| 79 | 82 | <!-- backgroundColor="transparent" v-model="formData.managedutyunit"></tui-input>--> |
| 80 | 83 | </tui-form-item> |
| 81 | - <tui-form-item asterisk label="权属分类" arrow highlight prop="oldtreeownershipText"> | |
| 82 | - <tui-input padding="0" :borderBottom="false" placeholder="" :disabled="true" | |
| 84 | + <tui-form-item asterisk label="权属分类" arrow highlight prop="oldtreeownershipText" :labelSize="32"> | |
| 85 | + <tui-input padding="0" :borderBottom="false" placeholder="" :disabled="true" :size="32" | |
| 83 | 86 | backgroundColor="transparent" v-model="formData.oldtreeownershipText"></tui-input> |
| 84 | 87 | </tui-form-item> |
| 85 | 88 | |
| 86 | - <tui-form-item label="图片信息" asterisk prop="treeImgList"> | |
| 89 | + <tui-form-item label="图片信息" asterisk prop="treeImgList" :labelSize="32"> | |
| 87 | 90 | |
| 88 | 91 | <!-- <tui-image-group :imageList="formData.treeImgList" radius="0"></tui-image-group>--> |
| 89 | 92 | |
| ... | ... | @@ -128,41 +131,41 @@ |
| 128 | 131 | |
| 129 | 132 | <tui-row> |
| 130 | 133 | <tui-col :span="12"> |
| 131 | - <tui-form-item label="拉丁文" prop="latinname"> | |
| 132 | - <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="30" :disabled="true" | |
| 134 | + <tui-form-item label="拉丁文" prop="latinname" :labelSize="32"> | |
| 135 | + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="30" :disabled="true" :size="32" | |
| 133 | 136 | v-model="formData.latinname"></tui-input> |
| 134 | 137 | </tui-form-item> |
| 135 | 138 | </tui-col> |
| 136 | 139 | <tui-col :span="12"> |
| 137 | - <tui-form-item label="级别" arrow highlight prop="treeleveltext"> | |
| 138 | - <tui-input padding="0" :borderBottom="false" placeholder="" :disabled="true" | |
| 140 | + <tui-form-item label="级别" arrow highlight prop="treeleveltext" :labelSize="32"> | |
| 141 | + <tui-input padding="0" :borderBottom="false" placeholder="" :disabled="true" :size="32" | |
| 139 | 142 | backgroundColor="transparent" v-model="formData.treeleveltext"></tui-input> |
| 140 | 143 | </tui-form-item> |
| 141 | 144 | </tui-col> |
| 142 | 145 | </tui-row> |
| 143 | 146 | |
| 144 | - <tui-form-item label="生长环境" prop="growthenvironment"> | |
| 145 | - <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="50" :disabled="true" | |
| 147 | + <tui-form-item label="生长环境" prop="growthenvironment" :labelSize="32"> | |
| 148 | + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="50" :disabled="true" :size="32" | |
| 146 | 149 | v-model="formData.growthenvironment"></tui-input> |
| 147 | 150 | </tui-form-item> |
| 148 | 151 | |
| 149 | 152 | |
| 150 | 153 | <tui-row> |
| 151 | 154 | <tui-col :span="12"> |
| 152 | - <tui-form-item label="预估树龄" prop="estimationtreeage" :position="2"> | |
| 153 | - <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" | |
| 155 | + <tui-form-item label="预估树龄" prop="estimationtreeage" :position="2" :labelSize="32"> | |
| 156 | + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" :size="32" | |
| 154 | 157 | v-model="formData.estimationtreeage"></tui-input> |
| 155 | 158 | <template v-slot:right> |
| 156 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">年</text> | |
| 159 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">年</text> | |
| 157 | 160 | </template> |
| 158 | 161 | </tui-form-item> |
| 159 | 162 | </tui-col> |
| 160 | 163 | <tui-col :span="12"> |
| 161 | - <tui-form-item label="干周" prop="weekday" :position="2"> | |
| 162 | - <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" | |
| 164 | + <tui-form-item label="干周" prop="weekday" :position="2" :labelSize="32"> | |
| 165 | + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" :size="32" | |
| 163 | 166 | v-model="formData.weekday"></tui-input> |
| 164 | 167 | <template v-slot:right> |
| 165 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">厘米</text> | |
| 168 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">厘米</text> | |
| 166 | 169 | </template> |
| 167 | 170 | </tui-form-item> |
| 168 | 171 | </tui-col> |
| ... | ... | @@ -171,20 +174,20 @@ |
| 171 | 174 | |
| 172 | 175 | <tui-row> |
| 173 | 176 | <tui-col :span="12"> |
| 174 | - <tui-form-item label="东西冠幅" prop="canopyeastwest" :position="2"> | |
| 175 | - <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" | |
| 177 | + <tui-form-item label="东西冠幅" prop="canopyeastwest" :position="2" :labelSize="32"> | |
| 178 | + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" :size="32" | |
| 176 | 179 | v-model="formData.canopyeastwest"></tui-input> |
| 177 | 180 | <template v-slot:right> |
| 178 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">米</text> | |
| 181 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">米</text> | |
| 179 | 182 | </template> |
| 180 | 183 | </tui-form-item> |
| 181 | 184 | </tui-col> |
| 182 | 185 | <tui-col :span="12"> |
| 183 | - <tui-form-item label="南北冠幅" prop="canopysouthnorth" :position="2"> | |
| 184 | - <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" | |
| 186 | + <tui-form-item label="南北冠幅" prop="canopysouthnorth" :position="2" :labelSize="32"> | |
| 187 | + <tui-input padding="0" :borderBottom="false" placeholder="" maxlength="10" :disabled="true" :size="32" | |
| 185 | 188 | v-model="formData.canopysouthnorth"></tui-input> |
| 186 | 189 | <template v-slot:right> |
| 187 | - <text style="padding-left: 12rpx;color:#ccc;font-size: 12px">米</text> | |
| 190 | + <text style="padding-left: 12rpx;color:#ccc;font-size: 14px">米</text> | |
| 188 | 191 | </template> |
| 189 | 192 | </tui-form-item> |
| 190 | 193 | </tui-col> | ... | ... |
subPackages/treePage/treeLog.vue
subPackages/treePage/treeRecord.vue
| ... | ... | @@ -16,7 +16,7 @@ |
| 16 | 16 | </view> |
| 17 | 17 | <view class="fs-mt8 fs-align__center"> |
| 18 | 18 | <img src="../../static/images/tree/treearound.png" style="width: 14px;height: 14px;margin-right: 6px;" |
| 19 | - alt="">胸径:{{ i.dbh }} 米 | |
| 19 | + alt="">胸径:{{ i.dbh }} 厘米 | |
| 20 | 20 | </view> |
| 21 | 21 | </view> |
| 22 | 22 | </view> | ... | ... |