import{l as y,p as U}from"./options-6ad40925-1778929502341v=1.0.0.js";import{d as x,a as f,e as r,o as F,c as _,g as e,w as u,h as n,L as w,M as N,f as O,l as E,p as c,H as R}from"./index-17740f03-1778929502341v=1.0.0.js";const j=x({__name:"BaseInfo",props:{info:{type:Object,default:()=>{}}},emits:["update:info"],setup(B,{emit:b}){const V=B,A=b,p=f({get:()=>[o.value.progress,o.value.build_progress],set:a=>{!a&&!a.length||(o.value.progress=a[0],o.value.build_progress=a[1])}}),v={expandTrigger:"hover"},o=f({get:()=>V.info,set:a=>{A("update:info",a)}});return(a,l)=>{const s=r("el-input"),d=r("el-form-item"),m=r("FormCol"),Y=r("el-option"),g=r("el-select"),i=r("el-radio"),C=r("el-radio-group"),D=r("el-cascader"),k=r("FormRow");return F(),_("div",null,[e(k,null,{default:u(()=>[e(m,null,{default:u(()=>[e(d,{label:"\u7F16\u53F7\uFF1A",prop:"no"},{default:u(()=>[e(s,{modelValue:n(o).no,"onUpdate:modelValue":l[0]||(l[0]=t=>n(o).no=t),disabled:!0,placeholder:"\u8BF7\u8F93\u5165\u7F16\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,null,{default:u(()=>[e(d,{label:"\u9879\u76EE\u7C7B\u578B\uFF1A",prop:"type_id"},{default:u(()=>[e(s,{modelValue:n(o).type_name,"onUpdate:modelValue":l[1]||(l[1]=t=>n(o).type_name=t),placeholder:"\u8BF7\u8F93\u5165\u7F16\u53F7",disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),e(m,null,{default:u(()=>[e(d,{label:"\u9879\u76EE\u540D\u79F0\uFF1A",prop:"name"},{default:u(()=>[e(s,{modelValue:n(o).name,"onUpdate:modelValue":l[2]||(l[2]=t=>n(o).name=t),placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,null,{default:u(()=>[e(d,{label:"\u4E3B\u7BA1\u90E8\u95E8\u884C\u653F\u7EA7\u522B\uFF1A",prop:"level"},{default:u(()=>[e(g,{modelValue:n(o).level,"onUpdate:modelValue":l[3]||(l[3]=t=>n(o).level=t),placeholder:"\u8BF7\u9009\u62E9\u4E3B\u7BA1\u90E8\u95E8\u884C\u653F\u7EA7\u522B",clearable:""},{default:u(()=>[(F(!0),_(w,null,N(n(y),(t,M)=>(F(),O(Y,{key:M,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,null,{default:u(()=>[e(d,{label:"\u9879\u76EE\u6027\u8D28\uFF1A",prop:"kind"},{default:u(()=>[e(C,{modelValue:n(o).kind,"onUpdate:modelValue":l[4]||(l[4]=t=>n(o).kind=t)},{default:u(()=>[e(i,{label:1},{default:u(()=>l[6]||(l[6]=[E("\u65B0\u5EFA")])),_:1}),e(i,{label:2},{default:u(()=>l[7]||(l[7]=[E("\u6539/\u6269\u5EFA")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),c(` <FormCol>\r
				<el-form-item label="\u5F00\u5DE5\u65F6\u95F4\uFF1A">\r
					<el-date-picker\r
						v-model="form.start_time"\r
						type="date"\r
						format="YYYY-MM-DD"\r
						value-format="YYYY-MM-DD"\r
						placeholder="\u8BF7\u9009\u62E9\u5F00\u5DE5\u65F6\u95F4\uFF1A"\r
					/>\r
				</el-form-item>\r
			</FormCol> `),c(` <FormCol>\r
				<el-form-item label="\u5EFA\u6210\u5E76\u6295\u5165\u4F7F\u7528\u65F6\u95F4\uFF1A">\r
					<el-date-picker\r
						v-model="form.build_time"\r
						type="date"\r
						format="YYYY-MM-DD"\r
						value-format="YYYY-MM-DD"\r
						placeholder="\u8BF7\u9009\u62E9\u5EFA\u6210\u5E76\u6295\u5165\u4F7F\u7528\u65F6\u95F4\uFF1A"\r
					/>\r
				</el-form-item>\r
			</FormCol> `),e(m,null,{default:u(()=>[e(d,{label:"\u9879\u76EE\u8FDB\u5C55\u9636\u6BB5\uFF1A",prop:"build_progress"},{default:u(()=>[e(D,{modelValue:n(p),"onUpdate:modelValue":l[5]||(l[5]=t=>R(p)?p.value=t:null),options:n(U),props:v},null,8,["modelValue","options"])]),_:1})]),_:1})]),_:1})])}}});export{j as _};
