<template>
	<view class="assign-mission">
		<scroll-view class="scroll-y" scroll-y="true">
			<tm-radio-group 
			  :list="list"
				:defaultValue='defaultValue'
				@change="changeSelect"
				:setting="{
				  value: 'value',
				  name: 'label'
			  }"
		/>
		</scroll-view>
		<view class="fixed-buttom-btn">
			<text class="btn-text">确定</text>
		</view>
	</view>
</template>

<script>
	// 指派改善任务
	export default {
		data() {
			return {
				defaultValue: 1,
				list: [
					{value: 1, label: 'PDCA1'},
					{value: 2, label: 'PDCA2'},
					{value: 3, label: 'PDCA3'},
					{value: 4, label: 'PDCA4'}
				]
			}
		},
		created() {
			uni.setNavigationBarTitle({
				title: '指派改善任务'
			});
		},
		methods: {
			changeSelect(selectVal, selectData, i) {
				this.defaultValue = selectVal;
			}
		}
	}
</script>

<style lang="less">
	.assign-mission {
		height: 100%;
		
		.scroll-y {
			height: calc(100% - 87.5rpx);
		}
	}
</style>
