<template>
	<view class="admin-jiazheng-page">
		<view @click="addBanzheng">添加</view>
		{{list}}
		<view v-for="(item,index) in list" :key="index">
			<view>
				报证机构:{{item.jgName}}
			</view>
			<view @click="goEdit(item,index)">
				编辑
			</view>
			<view @click="deleteFun(item,index)">
				删除
			</view>
			<view>职业名称:{{item.zyName}}</view>
			<view>职业等级:{{item.zyLevelName}}</view>
			<view>申报时间:{{item.createTime}}</view>
		</view>
		<view @click="saveBanzheng">
			保存
		</view>
	</view>
</template>

<script>
	import {
		getBaozhengJigou,
		getJiazhengLevel,
		getJiazhengZhiye,
		getJiazhengBanzhengCheckKc
	} from "@/api/jiazheng.js"
	export default {
		data() {
			return {

			};
		},
		props: {
			list: {
				type: Array,
				default: () => []
			},
		},
		computed: {

		},
		created() {

		},
		methods: {
			addBanzheng() {
				this.$emit('addBanzheng');
			},
			saveBanzheng() {
				this.$emit('saveBanzheng');
			},
			goEdit(item, index) {
				this.$emit('editBanzheng', item, index);
			},
			deleteFun(item, index) {
				this.$emit('deleteBanzheng', item, index);
			}
		}
	};
</script>