import{d as H,h as _,L as M,an as O,a6 as Y,Y as q,r as s,o as i,c as E,b as e,w as l,a as t,t as d,a7 as h,a8 as y,f as b,F as C,e as g,H as x,k as v,ao as T,s as N,l as z}from"./index.e3896b23.js";import{u as G}from"./role.44f4fe5e.js";import{_ as J}from"./mount-info.vue_vue_type_script_setup_true_lang.1b682b90.js";const K={class:"resource_dialog"},Q={class:"info-part"},W=t("h6",null,"\u57FA\u672C\u4FE1\u606F",-1),X={class:"info-part",style:{"margin-bottom":"16px"}},Z=t("h6",null,"\u5176\u4ED6\u4FE1\u606F",-1),ee=z(" \u5F00\u53D1\u4E2D\u3002\u3002\u3002 "),oe=H({__name:"resource-detail",setup(le,{expose:A}){const B=_([]),w=_([]);M(()=>{G().then(p=>{B.value=p.data}),O().then(p=>{w.value=p.data})});const m=_(!1);Y("visible",m);const V=_("1"),a=q({}),U=_(),c=_(),R=p=>{c.value=p.market,m.value=!0,Object.assign(a,p),setTimeout(()=>{U.value.init(p)},300)},L=()=>{};return A({init:R}),(p,n)=>{const o=s("el-form-item"),r=s("el-col"),f=s("el-row"),$=s("fast-select"),k=s("el-option"),D=s("el-select"),I=s("el-form"),F=s("el-tab-pane"),S=s("el-tabs"),P=s("el-dialog");return i(),E("div",K,[e(P,{"close-on-click-modal":!1,title:"\u8D44\u6E90\u76EE\u5F55","append-to-body":"",modelValue:m.value,"onUpdate:modelValue":n[4]||(n[4]=u=>m.value=u),width:"1200px",class:"resource_dialog"},{default:l(()=>[e(S,{modelValue:V.value,"onUpdate:modelValue":n[3]||(n[3]=u=>V.value=u),onTabClick:L},{default:l(()=>[e(F,{label:"\u8D44\u6E90\u8BE6\u60C5",name:"1",class:"dimensional_sheet-right"},{default:l(()=>[t("div",Q,[W,e(I,{model:a,"label-width":"100px"},{default:l(()=>[e(f,null,{default:l(()=>[e(r,{span:12},{default:l(()=>[e(o,{label:"\u6240\u5C5E\u76EE\u5F55",prop:"parentPath","label-width":"auto"},{default:l(()=>[t("span",null,d(a.parentPath),1)]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(o,{label:"\u540D\u79F0",prop:"name","label-width":"auto"},{default:l(()=>[t("span",null,d(a.name),1)]),_:1})]),_:1})]),_:1}),e(f,null,{default:l(()=>[e(r,{span:12},{default:l(()=>[e(o,{label:"\u7F16\u7801",prop:"code","label-width":"auto"},{default:l(()=>[t("span",null,d(a.code),1)]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(o,{label:"\u7248\u672C\u53F7",prop:"versionNo","label-width":"auto"},{default:l(()=>[t("span",null,d(a.versionNo),1)]),_:1})]),_:1})]),_:1}),h(e(o,{label:"\u5F00\u653E\u7C7B\u578B",prop:"openType","label-width":"auto"},{default:l(()=>[e($,{modelValue:a.openType,"onUpdate:modelValue":n[0]||(n[0]=u=>a.openType=u),"dict-type":"open_type",placeholder:"\u5F00\u653E\u7C7B\u578B",clearable:"",disabled:""},null,8,["modelValue"])]),_:1},512),[[y,!c.value]]),a.openType==2?h((i(),b(o,{key:0,label:"\u5F00\u653E\u89D2\u8272",prop:"openRoles","label-width":"auto"},{default:l(()=>[e(D,{modelValue:a.openRoles,"onUpdate:modelValue":n[1]||(n[1]=u=>a.openRoles=u),disabled:"",multiple:"",clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9"},{default:l(()=>[(i(!0),E(C,null,g(B.value,(u,j)=>(i(),b(k,{key:u.id,label:`[${u.id}]${u.name}`,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},512)),[[y,!c.value]]):x("",!0),a.openType==3?h((i(),b(o,{key:1,label:"\u5F00\u653E\u7528\u6237",prop:"openUsers","label-width":"auto"},{default:l(()=>[e(D,{modelValue:a.openUsers,"onUpdate:modelValue":n[2]||(n[2]=u=>a.openUsers=u),disabled:"",multiple:"",clearable:"",filterable:"",placeholder:"\u8BF7\u9009\u62E9"},{default:l(()=>[(i(!0),E(C,null,g(w.value,(u,j)=>(i(),b(k,{key:u.id,label:`[${u.id}]${u.username}`,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},512)),[[y,!c.value]]):x("",!0),e(o,{label:"\u8D1F\u8D23\u4EBA",prop:"dutyUser","label-width":"auto"},{default:l(()=>[t("span",null,d(a.dutyUser),1)]),_:1}),e(o,{label:"\u6458\u8981",prop:"summary","label-width":"auto"},{default:l(()=>[t("p",null,d(a.summary),1)]),_:1})]),_:1},8,["model"])]),t("div",X,[Z,e(f,null,{default:l(()=>[e(r,{span:12},{default:l(()=>[e(o,{label:"\u6700\u65B0\u66F4\u65B0\u4EBA",prop:"updater","label-width":"auto"},{default:l(()=>[t("span",null,d(v(T)(v(N).appStore.sysUserList,a.updater)),1)]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(o,{label:"\u6700\u65B0\u66F4\u65B0\u65F6\u95F4",prop:"updater","label-width":"auto"},{default:l(()=>[t("span",null,d(a.updateTime),1)]),_:1})]),_:1})]),_:1}),e(f,null,{default:l(()=>[e(r,{span:12},{default:l(()=>[e(o,{label:"\u4E0A\u67B6\u4EBA",prop:"releaseUserId","label-width":"auto"},{default:l(()=>[t("span",null,d(v(T)(v(N).appStore.sysUserList,a.releaseUserId)),1)]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(o,{label:"\u4E0A\u67B6\u65F6\u95F4",prop:"versionNo","label-width":"auto"},{default:l(()=>[t("span",null,d(a.releaseTime),1)]),_:1})]),_:1})]),_:1})])]),_:1}),e(F,{label:"\u8D44\u6E90\u4FE1\u606F",name:"3"},{default:l(()=>[e(J,{ref_key:"mountInfoRef",ref:U},null,512)]),_:1}),e(F,{label:"\u8D44\u6E90\u8BC4\u4EF7",name:"4"},{default:l(()=>[ee]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}});export{oe as _};
