bug
This commit is contained in:
@@ -9,12 +9,10 @@
|
|||||||
<p>日·数据统计</p>
|
<p>日·数据统计</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<picker mode="date" :value="date" @change="onDateChange">
|
<div class="right" @click="isShow = true">
|
||||||
<div class="right">
|
<image src="./images/qiehuan.png" />
|
||||||
<image src="./images/qiehuan.png" />
|
<span>切换日期</span>
|
||||||
<span>切换日期</span>
|
</div>
|
||||||
</div>
|
|
||||||
</picker>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
@@ -44,6 +42,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<u-calendar v-model="isShow" mode="date" @change="onDateChange"></u-calendar>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -62,6 +61,7 @@
|
|||||||
all: '1',
|
all: '1',
|
||||||
hasIn: '',
|
hasIn: '',
|
||||||
hasOut: '',
|
hasOut: '',
|
||||||
|
isShow: false,
|
||||||
isAdmin: false
|
isAdmin: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -119,8 +119,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onDateChange (e) {
|
onDateChange (e) {
|
||||||
const values = e.detail.value.split('-')
|
this.date = `${e.year}年${e.month}月${e.day}`
|
||||||
this.date = `${values[0]}年${values[1]}月${values[2]}`
|
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|||||||
@@ -39,6 +39,8 @@
|
|||||||
import { mapFieldLable } from './config'
|
import { mapFieldLable } from './config'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
appName: '表单配置',
|
||||||
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
config: [],
|
config: [],
|
||||||
|
|||||||
@@ -9,12 +9,10 @@
|
|||||||
<p>日·数据统计</p>
|
<p>日·数据统计</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<picker mode="date" :value="date" @change="onDateChange">
|
<div class="right" @click="isShow = true">
|
||||||
<div class="right">
|
<image src="../images/qiehuan.png" />
|
||||||
<image src="../images/qiehuan.png" />
|
<span>切换日期</span>
|
||||||
<span>切换日期</span>
|
</div>
|
||||||
</div>
|
|
||||||
</picker>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
@@ -89,6 +87,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<u-calendar v-model="isShow" mode="date" @change="onDateChange"></u-calendar>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -102,6 +101,7 @@
|
|||||||
date: '',
|
date: '',
|
||||||
list: [],
|
list: [],
|
||||||
isMore: false,
|
isMore: false,
|
||||||
|
isShow: false,
|
||||||
attendanceCount: {}
|
attendanceCount: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -166,8 +166,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onDateChange (e) {
|
onDateChange (e) {
|
||||||
const values = e.detail.value.split('-')
|
this.date = `${e.year}年${e.month}月${e.day}`
|
||||||
this.date = `${values[0]}年${values[1]}月${values[2]}`
|
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getPhotoTotal()
|
this.getPhotoTotal()
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
this.isShowDate = date.status === '1'
|
this.isShowDate = date.status === '1'
|
||||||
this.isShowAddress = address.status === '1'
|
this.isShowAddress = address.status === '1'
|
||||||
this.title = title.defaultValue || '巡查日志'
|
this.title = title.defaultValue || '巡查日志'
|
||||||
this.address = uni.getStorageSync('address').address || address.defaultValue
|
this.address = address.defaultValue || uni.getStorageSync('address').address
|
||||||
this.weather = uni.getStorageSync('address').weather || ''
|
this.weather = uni.getStorageSync('address').weather || ''
|
||||||
this.reporter = reporter.defaultValue || ''
|
this.reporter = reporter.defaultValue || ''
|
||||||
this.date = date.defaultValue || this.$dayjs(new Date).format('YYYY-MM-DD')
|
this.date = date.defaultValue || this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
this.isShowAddress = address.status === '1'
|
this.isShowAddress = address.status === '1'
|
||||||
|
|
||||||
this.title = title.defaultValue || ''
|
this.title = title.defaultValue || ''
|
||||||
this.address = uni.getStorageSync('address').address || address.defaultValue
|
this.address = address.defaultValue || uni.getStorageSync('address').address
|
||||||
this.hoster = hoster.defaultValue || ''
|
this.hoster = hoster.defaultValue || ''
|
||||||
this.date = date.defaultValue || this.$dayjs(new Date).format('YYYY-MM-DD')
|
this.date = date.defaultValue || this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||||
this.remark = remark.defaultValue || ''
|
this.remark = remark.defaultValue || ''
|
||||||
|
|||||||
Reference in New Issue
Block a user