Commit 87964c54 authored by Damon's avatar Damon

时间组件默认值

parent 0cf0902c
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<!-- <u-picker :params="params" v-model="showPicker" mode="time" @confirm="pickerConfirm"></u-picker> --> <!-- <u-picker :params="params" v-model="showPicker" mode="time" @confirm="pickerConfirm"></u-picker> -->
<view class="u-flex u-row-between"> <view class="u-flex u-row-between">
<picker mode="date" :value="dataValue" @change="bindDateChange" class="txt u-flex-1"> <picker mode="date" :value="dataValue" @change="bindDateChange" class="txt u-flex-1">
<view>{{dataValue}}</view> <view>{{dataValue || '请选择时间'}}</view>
</picker> </picker>
<u-icon name="arrow-right" color="#666" size="28"></u-icon> <u-icon name="arrow-right" color="#666" size="28"></u-icon>
</view> </view>
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<script> <script>
import stringMixin from './stringMixin' import stringMixin from './stringMixin'
export default { export default {
name: 'XhInput', // 新建 input
components: {}, components: {},
mixins: [stringMixin], mixins: [stringMixin],
props: {}, props: {},
......
...@@ -114,7 +114,6 @@ ...@@ -114,7 +114,6 @@
</view> </view>
</template> </template>
<script> <script>
import classifyData from '@/common/classify.data.js';
import XhInput from '@/components/createCom/XhInput.vue' import XhInput from '@/components/createCom/XhInput.vue'
import XhMultiInput from '@/components/createCom/XhMultiInput.vue' import XhMultiInput from '@/components/createCom/XhMultiInput.vue'
import XhRadio from '@/components/createCom/XhRadio.vue' import XhRadio from '@/components/createCom/XhRadio.vue'
...@@ -148,7 +147,6 @@ ...@@ -148,7 +147,6 @@
menuHeight: 0, // 左边菜单的高度 menuHeight: 0, // 左边菜单的高度
menuItemHeight: 0, // 左边菜单item的高度 menuItemHeight: 0, // 左边菜单item的高度
itemId: '', // 栏目右边scroll-view用于滚动的id itemId: '', // 栏目右边scroll-view用于滚动的id
groupList: classifyData, // 基本信息、安装 、勘察(其中一项表单数据)
menuItemPos: [], menuItemPos: [],
arr: [], arr: [],
scrollRightTop: 0, // 右边栏目scroll-view的滚动条高度 scrollRightTop: 0, // 右边栏目scroll-view的滚动条高度
...@@ -162,6 +160,7 @@ ...@@ -162,6 +160,7 @@
waitHandlerGroupIndex: 0, waitHandlerGroupIndex: 0,
waitHandlerEleIndex: 0, waitHandlerEleIndex: 0,
pass: false, pass: false,
// 上传组件相关
carmeraList: [ carmeraList: [
{ {
text: '相册' text: '相册'
...@@ -460,8 +459,8 @@ ...@@ -460,8 +459,8 @@
locationCompleteItem(panelIndex,groupIndex,eleIndex){ // 页面定位到某一项 locationCompleteItem(panelIndex,groupIndex,eleIndex){ // 页面定位到某一项
this.tabIndex = panelIndex this.tabIndex = panelIndex
this.arr = [] this.arr = []
this.scrollRightTop = 0; this.scrollRightTop = 0
this.current = 0; this.current = groupIndex
this.$nextTick(function() { this.$nextTick(function() {
this.swichMenu(groupIndex) this.swichMenu(groupIndex)
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment