import{P as u}from"./app-BGgVpkqZ.js";import{i as _,c as f}from"./app-Ba7ZqSpq.js";import{_ as p,a as l}from"./app-PrSv7rSt.js";import{_ as d}from"./app-CVQkwzlf.js";import{_ as h}from"./app-T1ysvErZ.js";import{_ as g}from"./app-DWUwCFNm.js";import{_ as x}from"./app-DFulsyXy.js";import{D as $}from"./app-ZeVDYyDS.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-SC54XQDl.js";import"./app-yUrwy8EY.js";import"./app-BZGObKCm.js";import"./app-BPIIxVwk.js";import"./app-PPG0ZS4d.js";import"./app-DgoEZtNT.js";import"./app-Ch8j4za4.js";import"./app-Dw0jKdCD.js";import"./app-DnXuoh8P.js";import"./app-CCkWSX4Q.js";import"./app-CNHjdV6U.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};
