Newer
Older
smart_construction / miniprogram / pages / searchLog / searchLog.wxml
dutingting on 17 Jul 2 KB 优化日志查询
<!--miniprogram/pages/applog/applog.wxml-->
<van-cell-group>
	<van-field  clearable data-id="devcode" label="设备编号"  value="{{devcode}}" placeholder="请扫描设备条形码添加" use-icon-slot bind:change="confirm"  bind:click-icon="scan">
		<van-icon name="scan" size="50rpx" slot="right-icon" />
	</van-field>
	<!-- <van-field data-id="devtype" label="设备类型" bind:change="confirm" /> -->

<van-row>
		<van-col span="12">
			<van-field disabled label="设备类型" border="{{ true }}"/>
		</van-col>
		<van-col span="12">
			<van-dropdown-menu active-color="#ffcf00">
				<van-dropdown-item value="{{ devtype }}" options="{{ devtypeList }}" bind:open="open" bind:closed="close" bind:change="selectDevType" />
			</van-dropdown-menu>
		</van-col>
	</van-row>
	<van-row>
		<van-col span="12">
			<van-field disabled label="安装人员" border="{{ true }}"/>
		</van-col>
		<van-col span="12">
			<van-dropdown-menu active-color="#ffcf00">
				<van-dropdown-item value="{{ installPerson }}" options="{{ personoption }}" bind:change="selectpersonValue" />
			</van-dropdown-menu>
		</van-col>
	</van-row>
	<van-row wx-if="{{showSelectProject}}">
		<van-col span="12">
			<van-cell  title="所属项目"  />
		</van-col>
		<van-col span="12" class="menuRight">
			<van-dropdown-menu active-color="#ffcf00">
				<van-dropdown-item value="{{ project }}" options="{{ projectoption }}" bind:change="selectprojectValue"  title-class="所属项目"/>
			</van-dropdown-menu>
		</van-col>
	</van-row>
	    <van-field wx-if="{{!showSelectProject}}" disabled label="所属项目" value="{{project}}" border="{{ true }}" required/>
	<view wx:if="{{timeShow}}">
        <van-cell  title="安装时间"   value="{{installtimeFmt}}" bind:click="onDisplay" />
	<van-calendar show="{{ show }}" type="range"  min-date="{{minDate}}"  
	default-date="{{defaultDay}}" allow-same-day="{{true}}"
	 bind:close="onClose"   show-confirm="{{ true }}" bind:confirm="onConfirm"  />
    </view>
    <view style="display: flex;justify-content: space-around;">
        <van-button type="primary" custom-style="width: 220rpx;margin: 20rpx 0"  bind:click="query" round block color="#ffcf00" >查询</van-button>
        <van-button type="info" custom-style="width: 220rpx;margin: 20rpx 0"   bind:click="clean" round block >清空</van-button>
    </view>
 

</van-cell-group>