<template>
	<view class="u-m-t-32 tex">
		<textarea placeholder-style="color: #B3B3B3; magin-top: 10rpx;" placeholder="请输入描述内容" v-model="text_value" />
	</view>
</template>

<script>
	export default {

		props: {
			
			
			//拍照选项项目巡检id
			scan_id: {
				type: Number
			},
			defaultValue: {
				type: String
			}
		},
		data() {
			return {
				text_value: ''
			}
		},
		created() {
				this.defaultValue != null && (this.text_value = this.defaultValue)
		},
		methods: {
			//处理巡检提交数据
			submit() {
				let item = {
					id: this.scan_id,
					value: this.text_value
				} //提交数据

				this.$store.state.user.items.push(item)
				
			},
			//重置表单
			reset() {
				this.text_value = ''
			}
		}
	}
</script>

<style>
	input {
		width: 100%;
		height: 100%;
		/* text-indent: 20rpx; */
	}

	.tex {
		width: 690rpx;
		height: 210rpx;
		border: 1rpx solid #BFBFBF;
		border-radius: 6rpx;
	}
</style>
