<template>
	<view class="pageInfo">
		<view>
			<u-form :model="form" ref="uForm">
				<u-form-item label="任务名称" label-width="160rpx"><u-input v-model="form.name" /></u-form-item>
				<u-form-item label="任务周期" label-width="160rpx"><u-select v-model="form.name" :show="show" mode="single-column" :list="list" @confirm="confirm"></u-select>
				<!-- <u-icon name="arrow-right" @click="openSeleteType"></u-icon> -->
				</u-form-item>
				<u-form-item label="执行日期" label-width="160rpx"><u-input v-model="form.intro" /></u-form-item>
				<u-form-item label="执行时间" label-width="160rpx"><u-input v-model="form.intro" /></u-form-item>
				<u-form-item label="开始时间" label-width="160rpx"></u-form-item>
				<u-form-item label="结束时间" label-width="160rpx"><u-input v-model="form.intro" /></u-form-item>
				<u-form-item label="执行类型" label-width="160rpx"><u-input v-model="form.intro" /></u-form-item>
				<u-form-item label="考评指标" label-width="160rpx"><u-input v-model="form.intro" /></u-form-item>
				<u-form-item label="考评门店" label-width="160rpx"><u-input v-model="form.intro" /></u-form-item>
				<u-form-item label="任务有效天数" label-width="180rpx"><u-input v-model="form.intro" /></u-form-item>
			</u-form>
			<view class="btns">
				<u-button class="confirmBtn" type="primary" size="medium" @click="submit">提交</u-button>
				<u-button class="cancelBtn" size="medium" @click="submit">取消</u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				form: {
					name: '',
					intro: '',
					sex: ''
				},
				show: false,
				list: [
					{
						value: '1',
						label: '江'
					},
					{
						value: '2',
						label: '湖'
					}
				],
				mode: 'date'
			}
		},
		methods:{
			confirm(e){
				console.log(e)
			},
			openSeleteType(){
				this.show=true
			}
		}
	}
</script>

<style lang="scss">
	page{
		height: 100%;
	};
	.pageInfo{
		padding:0 40upx;
		.btns{
			text-align: center;
			padding: 50upx 0;
			.confirmBtn{
				margin-right:20upx;
			}
			.cancelBtn{
				margin-left:20upx;
			}
		}
	}
</style>
