import{P as u}from"./app-Doj30F-n.js";import{i as _,c as f}from"./app-a6cKceqE.js";import{_ as p,a as l}from"./app-DxbU-QrX.js";import{_ as d}from"./app-Ufpj4Ll4.js";import{_ as h}from"./app-DY-0PadZ.js";import{_ as g}from"./app-CignoBaV.js";import{_ as x}from"./app-CQ-vNlMj.js";import{D as $}from"./app-7GBSHA5C.js";import{o as s,c as i,w as o,b as e,a as t,u as r,g as c,f as m,F as w,D as b,t as y,h as k}from"./app-BYcXwl4U.js";import"./app-Ceh-tphd.js";import"./app-Cp3gmk2J.js";import"./app--MWyBMkA.js";import"./app-BG60hdvp.js";import"./app-CNARLpXE.js";import"./app-SxAW7vhf.js";import"./app-D5k1HLu9.js";import"./app-ysQ8KbGS.js";import"./app-BDgR0DSb.js";import"./app-CrjU8lgK.js";function B(){_(this)}const C=t("header",null,"提交工单",-1),D={key:0},N=t("td",null,"工单分类",-1),V=t("td",{class:"title"},"工单标题 *",-1),v=t("td",null,"工单内容 *",-1),Y={__name:"createPopup",setup(P){const a=f(new B);return(S,F)=>(s(),i(u,null,{default:o(()=>[C,e(x,{action:"$",onSuccess:r(a).success},{default:o(()=>[e($,null,{default:o(()=>[t("tbody",null,[r(a).categories.length>0?(s(),c("tr",D,[N,t("td",null,[e(p,{name:"categoryId"},{default:o(()=>[e(l,{value:"0"},{default:o(()=>[m("[请选择分类]")]),_:1}),(s(!0),c(w,null,b(r(a).categories,n=>(s(),i(l,{value:n.id},{default:o(()=>[m(y(n.name),1)]),_:2},1032,["value"]))),256))]),_:1})])])):k("",!0),t("tr",null,[V,t("td",null,[e(d,{name:"subject",maxlength:"100",class:"w-full",autofocus:r(a).categories.length==0},null,8,["autofocus"])])]),t("tr",null,[v,t("td",null,[e(h,{name:"body",rows:"6",class:"w-full"})])])])]),_:1}),e(g)]),_:1},8,["onSuccess"])]),_:1}))}};export{Y as default};
