<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注: 
-->
<template>
	<el-dialog :model-value="true" title="编辑指标" @close="handleClose">
		<el-form ref="ruleFormRef" :model="formData" label-width="120px" class="demo-ruleForm">
			<el-form-item>
				<el-input
			</el-form-item>
		</el-form>
	</el-dialog>
  </template>
  <script lang="ts" setup>
  import { reactive } from "vue"
  import {get_runman } from '@/api/opk/zxy/news/api'
  import "quill/dist/quill.snow.css"; 
const isshow = ref(false)
const props= defineProps( {
	  title: {
		type: String,
		default: "",
	  },
	  xdPostBox: {
		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:xdPostBox","editRow","addRow"])
const formData = reactive({
	deaprtname:"",
	year:"",
	asd:[] as string[],
})
const tablea = ref<any>([])
function ge_adds(){
	const yui = props.rowInfo.targetid
	get_runman({id:yui,level:1,orgid:props.rowInfo.orgid,posid:"",type:1})
	    .then((data) => {
        	tablea.value = data.data;
        }).finally(()=>{
			isshow.value = false
		})
	}
ge_adds()
  // 关闭弹窗
 const handleClose = ()=> {
    emit("update:xdPostBox", false);
  }
  onMounted(()=>{
	Object.assign(formData,props.rowInfo);
})
 </script>
  