<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注: 
-->
<template>
	<el-dialog :model-value="true" title="执行人" @close="handleClose">{{props.rowInfo}}
		<el-table :data="tablea" label-width="120px" class="demo-ruleForm" style="width:100%">
			<el-table-column prop="tablename" label="考核项目" />
			<el-table-column prop="targetname" label="考核内容"/>
			<el-table-column prop="criterion" label="考核标准"/>
			<el-table-column prop="unit" label="行政组织"/>
		</el-table>	
	</el-dialog>
  </template>
  <script lang="ts" setup>
  import { reactive } from "vue"
  import { get_runman,look_scheme } from '@/api/opk/zxy/news/api'
  import "quill/dist/quill.snow.css"; 
const isshow = ref(false)
const props= defineProps( {
	  title: {
		type: String,
		default: "",
	  },
	  ycyPostBox: {
		type: Boolean,
		default: false,
	  },
	  rowInfo: {
		type: Object,
		default() {
		  return {};
		},
	  },
	  arrayNum: {
		type: Number,
		default: 0,
	  },
	});
const orgTreeProps ={
   label: 'name',
}
const orgTreeProp = {
	label:'title',
	children:'children'
}

const emit = defineEmits(["update:ycyPostBox","editRow","addRow"])
const formData = reactive({})
const tablea = ref<any>([])
function ge_adds(){
	const yui = props.rowInfo.targetid
	look_scheme({id:yui,level:1,orgid:props.rowInfo.orgid,posid:"",type:3})
	    .then((data) => {
        	tablea.value = data.data;
        }).finally(()=>{
			isshow.value = false
		})
	}
ge_adds()
  // 关闭弹窗
 const handleClose = ()=> {
    emit("update:ycyPostBox", false);
  }
  onMounted(()=>{
	Object.assign(formData,props.rowInfo);
})
 </script>
  