<template>
	<view class="exploitDemoPage">
		<view @click="checkItemModuleButton('open')">开启</view>
		<checkItemModule :propsData="propsData" v-if="checkItemModuleType"></checkItemModule>
	</view>
</template>

<script>
	import {
		checkItemModule
	} from '@/pages/checkItemModule.vue'
	export default {
		name: "exploitDemoPage",
		components: {
			checkItemModule
		},
		data() {
			return {
				pageType:1,
				checkItemModuleType:false,
				propsData:{
					infoType:0,
					manageId:'1839113478692855815',
					checkType:0,
					planId:'',
					planSetId:'',
					subId:'',
					searchValue:'',
				},
			}
		},
		onLoad(option) {
			
		},
		onShow() {

		},
		mounted() {

		},
		methods: {
			checkItemModuleButton(type,item){
				if(type == 'open'){
					this.$set(this,'propsData',{
						infoType:0,
						manageId:'1839113478692855815',
						checkType:0,
						planId:'',
						planSetId:'',
						subId:'',
						searchValue:'',
					});
					this.$set(this,'checkItemModuleType',true);
				}else if(type == 'out'){
					this.$set(this,'checkItemModuleType',false);
					this.$set(this,'propsData',{});
				}else if(type == 'submit'){
					console.log('已选中-item', item)
				}
			},
		}
	}
</script>

<style lang="stylus" scoped>
</style>