import{d as N,u as T,G as I,r as F,b as P,e as a,o as m,f as b,w as u,g as l,h as g,p as s,N as p,O as f,Z as Y,n as v,l as n,c as z,L as H,M as $,I as j,_ as q}from"./index-17740f03-1778929502341v=1.0.0.js";import{W}from"./index-ea94a5ac-1778929502341v=1.0.0.js";import{a as G}from"./notice-847dc2d6-1778929502341v=1.0.0.js";const O={class:"button"},S="\u9009\u586B\uFF0C\u6458\u8981\u4F1A\u5728\u7528\u6237\u7AEF\u901A\u77E5\u3001\u8F6C\u53D1\u94FE\u63A5\u7B49\u6587\u7AE0\u5916\u7684\u573A\u666F\u663E\u9732\uFF0C\u5E2E\u52A9\u8BFB\u8005\u5FEB\u901F\u4E86\u89E3\u5185\u5BB9\uFF0C\u5982\u4E0D\u586B\u5199\u5219\u9ED8\u8BA4\u6293\u53D6\u6B63\u6587\u524D54\u5B57",Z=N({__name:"detail",setup(J){const V=T(),c=I(),d=F({xs:24,sm:24,md:24,lg:24,xl:20}),o=F({content:"",title:"",des:"",imgList:[],abstract:"",is_remind:1,is_valid:1,is_top:1,involve_business:"",releaseTime:[]}),A=F(),y=F([{label:"\u516C\u5171\u573A\u9986\u5F00\u653E",value:1}]),B=async E=>{if(E!="draft")try{await A.value.validate(),x()}catch(e){console.error("error",e)}else x()},x=E=>{let e={...o.value};e.images=e.imgList.length?e.imgList.map(_=>_.url).join(","):"",delete e.imgList};return P(()=>{}),(E,e)=>{const _=a("el-input"),r=a("el-form-item"),i=a("FormCol"),L=a("el-option"),w=a("el-select"),D=a("el-radio"),k=a("el-radio-group"),R=a("FormRow"),C=a("el-button"),U=a("el-form");return m(),b(j,null,{default:u(()=>[l(U,{ref_key:"formRef",ref:A,rules:g(G),model:o.value,"label-position":"right","label-width":"120px"},{default:u(()=>[s(' <div class="divider mt30 mb30">\u57FA\u7840\u4FE1\u606F</div> '),l(R,null,{default:u(()=>[l(i,p(f(d.value)),{default:u(()=>[l(r,{label:"\u6807\u9898:",prop:"title"},{default:u(()=>[l(_,{modelValue:o.value.title,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value.title=t),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",count:"",maxlength:"64","show-word-limit":""},null,8,["modelValue"])]),_:1})]),_:1},16),l(i,p(f(d.value)),{default:u(()=>[l(r,{label:"\u6B63\u6587:",prop:"content"},{default:u(()=>[l(W,{value:o.value.content,"onUpdate:value":e[1]||(e[1]=t=>o.value.content=t),title:o.value.title,"onUpdate:title":e[2]||(e[2]=t=>o.value.title=t),hideToolBar:!1,showEditorAll:!0,height:"300px",titleLimit:64},null,8,["value","title"])]),_:1})]),_:1},16),l(i,p(f(d.value)),{default:u(()=>[l(r,{label:"\u5C01\u9762:",prop:"imgList"},{default:u(()=>[l(Y,{limit:1,fileList:o.value.imgList,"onUpdate:fileList":e[3]||(e[3]=t=>o.value.imgList=t),"file-size":5},null,8,["fileList"])]),_:1}),l(r,null,{default:u(()=>e[10]||(e[10]=[v("div",{class:"img_tips"},[v("span",null,[n("\u53EA\u80FD\u4E0A\u4F20.png/.jpg/.gif\u6587\u4EF6,\u4E14\u4E0D\u8D85\u8FC7 "),v("span",{class:"fail"},"5M"),n(" \u3002")])],-1)])),_:1})]),_:1},16),l(i,p(f(d.value)),{default:u(()=>[l(r,{label:"\u6458\u8981:",prop:"abstract"},{default:u(()=>[l(_,{modelValue:o.value.abstract,"onUpdate:modelValue":e[4]||(e[4]=t=>o.value.abstract=t),type:"textarea",placeholder:S,autosize:{minRows:4,maxRows:6},count:"",maxlength:"120","show-word-limit":""},null,8,["modelValue"])]),_:1})]),_:1},16),l(i,null,{default:u(()=>[l(r,{label:"\u6D89\u53CA\u4E1A\u52A1:",prop:"involve_business"},{default:u(()=>[l(w,{modelValue:o.value.involve_business,"onUpdate:modelValue":e[5]||(e[5]=t=>o.value.involve_business=t),placeholder:"\u8BF7\u9009\u62E9\u6D89\u53CA\u4E1A\u52A1",class:"w-280",clearable:""},{default:u(()=>[(m(!0),z(H,null,$(y.value,(t,M)=>(m(),b(L,{key:M,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),s(` <FormCol v-bind="maxLine">\r
					<el-form-item label="\u662F\u5426\u5F39\u7A97\u63D0\u9192:" prop="is_remind">\r
						<el-radio-group v-model="form.is_remind">\r
							<el-radio :label="1">\u662F</el-radio>\r
							<el-radio :label="2">\u5426</el-radio>\r
						</el-radio-group>\r
					</el-form-item>\r
				</FormCol> `),s(` <FormCol>\r
					<el-form-item label="\u751F\u6548\u65E5\u671F:" prop="releaseTime">\r
						<el-date-picker\r
							v-model="form.releaseTime"\r
							type="datetimerange"\r
							range-separator="\u81F3"\r
							start-placeholder="\u5F00\u59CB\u65E5\u671F"\r
							end-placeholder="\u7ED3\u675F\u65E5\u671F"\r
							value-format="YYYY-MM-DD HH:mm:ss"\r
						/>\r
					</el-form-item>\r
				</FormCol> `),l(i,p(f(d.value)),{default:u(()=>[l(r,{label:"\u662F\u5426\u751F\u6548:",prop:"is_valid"},{default:u(()=>[l(k,{modelValue:o.value.is_valid,"onUpdate:modelValue":e[6]||(e[6]=t=>o.value.is_valid=t)},{default:u(()=>[l(D,{label:1},{default:u(()=>e[11]||(e[11]=[n("\u662F")])),_:1}),l(D,{label:2},{default:u(()=>e[12]||(e[12]=[n("\u5426")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},16),s(` <FormCol v-bind="maxLine">\r
					<el-form-item label="\u662F\u5426\u7F6E\u9876:" prop="is_top">\r
						<el-radio-group v-model="form.is_top">\r
							<el-radio :label="1">\u662F</el-radio>\r
							<el-radio :label="2">\u5426</el-radio>\r
						</el-radio-group>\r
					</el-form-item>\r
				</FormCol> `)]),_:1}),v("div",O,[v("div",null,[l(C,{onClick:e[7]||(e[7]=t=>g(V).back())},{default:u(()=>e[13]||(e[13]=[n("\u53D6\u6D88")])),_:1}),g(c).query.op!=="detail"?(m(),b(C,{key:0,onClick:e[8]||(e[8]=t=>B("draft"))},{default:u(()=>e[14]||(e[14]=[n("\u4FDD\u5B58\u4E3A\u8349\u7A3F")])),_:1})):s("v-if",!0),g(c).query.op!=="detail"?(m(),b(C,{key:1,type:"primary",onClick:e[9]||(e[9]=t=>B("submit"))},{default:u(()=>e[15]||(e[15]=[n("\u63D0\u4EA4")])),_:1})):s("v-if",!0)])])]),_:1},8,["rules","model"])]),_:1})}}});const h=q(Z,[["__scopeId","data-v-cd9cdfd2"]]);export{h as default};
