You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.5 KiB
1 lines
1.5 KiB
import{d as g,r as c,ax as v,G as x,a as B,c as C,b as p,e as l,h as I,b3 as E,b4 as O,ac as j,_ as k}from"./index-e450010e.js";import{l as D}from"./api-f3204da3.js";const N=g({__name:"ycy",props:{title:{type:String,default:""},ycyPostBox:{type:Boolean,default:!1},rowInfo:{type:Object,default(){return{}}},arrayNum:{type:Number,default:0}},emits:["update:ycyPostBox","editRow","addRow"],setup(d,{emit:i}){const u=c(!1),s=d,_=i,f=v({}),r=c([]);function m(){const a=s.rowInfo.targetid;D({id:a,level:1,orgid:s.rowInfo.orgid,posid:"",type:3}).then(t=>{r.value=t.data}).finally(()=>{u.value=!1})}m();const b=()=>{_("update:ycyPostBox",!1)},y=a=>{let t=[],e=0;return a.value.forEach((n,o)=>{o===0?t.push(1):n.tablename===a.value[o-1].tablename?(t[e]+=1,t.push(0)):(t.push(1),e=o)}),{one:t}};function h({row:a,column:t,rowIndex:e,columnIndex:n}){if(n===0){const o=y(r).one[e],w=o>0?1:0;return{rowspan:o,colspan:w}}}return x(()=>{Object.assign(f,s.rowInfo)}),(a,t)=>{const e=E,n=O,o=j;return B(),C(o,{"model-value":!0,title:"考核细则",onClose:b},{default:p(()=>[l(n,{data:I(r),border:"","span-method":h,"label-width":"120px",class:"demo-ruleForm",style:{width:"100%"}},{default:p(()=>[l(e,{prop:"tablename",label:"考核项目",width:"120"}),l(e,{prop:"targetname",label:"考核内容",width:"700"}),l(e,{prop:"criterion",label:"考核标准",width:"90"}),l(e,{prop:"unit",label:"单位"}),l(e,{prop:"content",label:"备注说明",width:"180"})]),_:1},8,["data"])]),_:1})}}});const R=k(N,[["__scopeId","data-v-99584d9e"]]);export{R as default};
|
|
|