import{d as A,Y as U,h as x,ai as H,r as o,aj as $,o as m,c as N,b as e,w as a,k as u,a2 as S,a7 as R,f as g,H as C,F as T,l as _}from"./index.e3896b23.js";import{_ as I}from"./property-add-or-update.vue_vue_type_script_setup_true_lang.9dc69a05.js";const O=_("\u67E5\u8BE2"),j=_("\u65B0\u589E"),K=_("\u7F16\u8F91"),Y=_("\u5220\u9664"),P=A({__name:"property-info",setup(G,{expose:F}){const t=U({createdIsNeed:!1,dataListUrl:"/data-governance/metamodel-property/page",deleteUrl:"/data-governance/metamodel-property",queryForm:{name:"",code:""}}),f=x(),y=d=>{f.value.init(d,t.queryForm.metamodelId)},b=d=>{t.queryForm.metamodelId=d,i()},{getDataList:i,selectionChangeHandle:E,sizeChangeHandle:v,currentChangeHandle:k,deleteBatchHandle:B}=H(t);return F({init:b}),(d,l)=>{const h=o("el-input"),p=o("el-form-item"),c=o("el-button"),w=o("el-form"),r=o("el-table-column"),s=o("fast-table-column"),z=o("fast-creator-column"),V=o("el-table"),q=o("el-pagination"),D=$("loading");return m(),N(T,null,[e(w,{inline:!0,model:t.queryForm,onKeyup:l[4]||(l[4]=S(n=>u(i)(),["enter"]))},{default:a(()=>[e(p,null,{default:a(()=>[e(h,{modelValue:t.queryForm.name,"onUpdate:modelValue":l[0]||(l[0]=n=>t.queryForm.name=n),placeholder:"\u5C5E\u6027\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(p,null,{default:a(()=>[e(h,{modelValue:t.queryForm.code,"onUpdate:modelValue":l[1]||(l[1]=n=>t.queryForm.code=n),placeholder:"\u5C5E\u6027\u4EE3\u7801"},null,8,["modelValue"])]),_:1}),e(p,null,{default:a(()=>[e(c,{onClick:l[2]||(l[2]=n=>u(i)())},{default:a(()=>[O]),_:1})]),_:1}),e(p,null,{default:a(()=>[e(c,{type:"primary",onClick:l[3]||(l[3]=n=>y())},{default:a(()=>[j]),_:1})]),_:1})]),_:1},8,["model"]),R((m(),g(V,{data:t.dataList,border:"",style:{width:"100%"},onSelectionChange:u(E)},{default:a(()=>[e(r,{prop:"orderNo",label:"\u5E8F\u53F7","header-align":"center",align:"center"}),e(r,{prop:"name",label:"\u5C5E\u6027\u540D\u79F0","header-align":"center",align:"center"}),e(r,{prop:"code",label:"\u5C5E\u6027\u4EE3\u7801","header-align":"center",align:"center"}),e(s,{prop:"dataType",label:"\u6570\u636E\u7C7B\u578B","header-align":"center",align:"center","dict-type":"model_property_data_type"}),e(s,{prop:"inputType",label:"\u8F93\u5165\u63A7\u4EF6","header-align":"center",align:"center","dict-type":"model_property_input_type"}),e(r,{prop:"dataLength",label:"\u6570\u636E\u957F\u5EA6","header-align":"center",align:"center"}),e(s,{prop:"nullable",label:"\u5141\u8BB8\u4E3A\u7A7A","header-align":"center",align:"center","dict-type":"yes_or_no"}),e(s,{prop:"builtin",label:"\u662F\u5426\u5185\u7F6E","header-align":"center",align:"center","dict-type":"yes_or_no"}),e(r,{prop:"comment",label:"\u8BF4\u660E","header-align":"center",align:"center"}),e(z,{prop:"creator",label:"\u521B\u5EFA\u8005","header-align":"center",align:"center"}),e(r,{prop:"createTime","show-overflow-tooltip":"",label:"\u521B\u5EFA\u65F6\u95F4","header-align":"center",align:"center"}),e(r,{label:"\u64CD\u4F5C",fixed:"right","header-align":"center",align:"center",width:"150"},{default:a(n=>[n.row.builtin==0?(m(),g(c,{key:0,type:"primary",link:"",onClick:L=>y(n.row.id)},{default:a(()=>[K]),_:2},1032,["onClick"])):C("",!0),n.row.builtin==0?(m(),g(c,{key:1,type:"primary",link:"",onClick:L=>u(B)(n.row.id)},{default:a(()=>[Y]),_:2},1032,["onClick"])):C("",!0)]),_:1})]),_:1},8,["data","onSelectionChange"])),[[D,t.dataListLoading]]),e(q,{"current-page":t.page,"page-sizes":t.pageSizes,"page-size":t.limit,total:t.total,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:u(v),onCurrentChange:u(k)},null,8,["current-page","page-sizes","page-size","total","onSizeChange","onCurrentChange"]),e(I,{ref_key:"addOrUpdateRef",ref:f,onRefreshDataList:u(i)},null,8,["onRefreshDataList"])],64)}}});export{P as _};
