選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

2 行
5.0KB

  1. var G=Object.defineProperty;var E=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var F=(i,o,a)=>o in i?G(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a,V=(i,o)=>{for(var a in o||(o={}))I.call(o,a)&&F(i,a,o[a]);if(E)for(var a of E(o))A.call(o,a)&&F(i,a,o[a]);return i};var r=(i,o,a)=>new Promise((s,m)=>{var b=l=>{try{p(a.next(l))}catch(f){m(f)}},v=l=>{try{p(a.throw(l))}catch(f){m(f)}},p=l=>l.done?s(l.value):Promise.resolve(l.value).then(b,v);p((a=a.apply(i,o)).next())});import{g as H,d as J,n as K,a as Q,t as W}from"./noticeManage.d9d575b5.js";import{d as X,z as Y,b as z,r as B,a3 as g,o as Z,c as d,e as ee,f as ae,h as t,i as n,j as w,g as h,t as te,F as le,x as ne}from"./index.3fb2f955.js";import oe from"./noticeDialog.b494c06c.js";const se=["onClick"],ie=["onClick"],de=["onClick"],ce=["onClick"],re=X({name:"noticeManage"}),fe=Object.assign(re,{setup(i){const o=Y(),{proxy:a}=ne(),s=z({title:void 0,type:void 0}),m=B(),b=B(0),v=z([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u516C\u544A\u6807\u9898",key:"title",prop:"title"},{label:"\u516C\u544A\u7C7B\u578B",key:"type",prop:"type",width:"100",render:e=>g("span",`${e.type===1?"\u901A\u77E5\u516C\u544A":e.type===2?"\u5E2E\u52A9\u6587\u6863":"\u653F\u7B56\u6587\u4EF6"}`)},{label:"\u662F\u5426\u7F6E\u9876",key:"topped",prop:"topped",width:"80",render:e=>g("span",`${e.topped?"\u662F":"\u5426"}`)},{label:"\u72B6\u6001",key:"enabled",prop:"enabled",width:"80",render:e=>[g("span",{class:["dot mr-4",`${e.enabled?"bg-success":"bg-danger"}`]}),g("span",{class:`${e.enabled?"text-success":"text-danger"}`},e.enabled?"\u542F\u7528":"\u7981\u7528")]},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"220",fixed:"right"}]),p=B([]),l=(..._)=>r(this,[..._],function*(e=m.value.pageParams){const y=yield H(V(V({},e),s));b.value=y.data.total,p.value=y.data.records}),f=()=>{l()},L=()=>{s.title=void 0,s.type=void 0,l({pageNumber:1,pageSize:10})},u=z({visible:!1,rowData:void 0}),N=e=>r(this,null,function*(){if(e&&e.id){const _=yield J(e.id);u.rowData=_.data}else u.rowData=void 0;u.visible=!0}),O=e=>{u.visible=!1,e&&l()},R=e=>r(this,null,function*(){a.$messageBox.confirm(`\u662F\u5426${e.enabled?"\u7981\u7528":"\u542F\u7528"}\u8BE5\u516C\u544A?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(()=>r(this,null,function*(){yield K({id:e.id,status:!e.enabled}),a.$message.success(`${e.enabled?"\u7981\u7528":"\u542F\u7528"}\u6210\u529F\uFF01`),yield l()}))}),j=e=>{a.$messageBox.confirm("\u662F\u5426\u5220\u9664\u8BE5\u516C\u544A?","\u63D0\u793A\uFF01",{type:"warning"}).then(()=>r(this,null,function*(){yield Q({id:e.id}),a.$message.success("\u5220\u9664\u6210\u529F\uFF01"),yield l()}))},M=e=>r(this,null,function*(){a.$messageBox.confirm("\u662F\u5426\u7F6E\u9876\u8BE5\u516C\u544A?","\u63D0\u793A\uFF01",{type:"warning"}).then(()=>r(this,null,function*(){yield W({id:e.id}),a.$message.success("\u7F6E\u9876\u6210\u529F\uFF01"),yield l()}))});return Z(()=>{s.type=o.query.type*1||void 0,l()}),(e,_)=>{const y=d("el-input"),k=d("el-form-item"),$=d("el-col"),C=d("el-option"),P=d("el-select"),x=d("el-button"),S=d("el-row"),U=d("el-form"),T=d("el-card"),q=d("table-list");return ee(),ae(le,null,[t(T,{shadow:"never",class:"search mb-16"},{default:n(()=>[t(U,{"label-suffix":":",model:s,size:"small"},{default:n(()=>[t(S,{gutter:16},{default:n(()=>[t($,{span:8},{default:n(()=>[t(k,{label:"\u516C\u544A\u6807\u9898"},{default:n(()=>[t(y,{modelValue:s.title,"onUpdate:modelValue":_[0]||(_[0]=c=>s.title=c),placeholder:"\u8BF7\u8F93\u5165",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1}),t($,{span:8},{default:n(()=>[t(k,{label:"\u516C\u544A\u7C7B\u578B"},{default:n(()=>[t(P,{modelValue:s.type,"onUpdate:modelValue":_[1]||(_[1]=c=>s.type=c),class:"m-2",placeholder:"\u8BF7\u9009\u62E9"},{default:n(()=>[t(C,{label:"\u901A\u77E5\u516C\u544A",value:1}),t(C,{label:"\u5E2E\u52A9\u6587\u6863",value:2}),t(C,{label:"\u653F\u7B56\u6587\u4EF6",value:3})]),_:1},8,["modelValue"])]),_:1})]),_:1}),t($,{span:8},{default:n(()=>[t(k,{class:"btn"},{default:n(()=>[t(x,{type:"primary",size:"small",onClick:f},{default:n(()=>[w("\u67E5\u8BE2")]),_:1}),t(x,{size:"small",onClick:L},{default:n(()=>[w("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(T,{shadow:"never"},{header:n(()=>[w(" \u516C\u544A\u5217\u8868 "),t(x,{class:"float-right",type:"primary",icon:"Plus",size:"small",onClick:N},{default:n(()=>[w(" \u65B0\u589E\u516C\u544A ")]),_:1})]),default:n(()=>[t(q,{ref_key:"tableListRef",ref:m,column:v,data:p.value,total:b.value,onGetTableData:l},{action:n(({scope:c})=>[h("a",{onClick:D=>N(c.row)},"\u7F16\u8F91",8,se),h("a",{onClick:D=>M(c.row)},"\u7F6E\u9876",8,ie),h("a",{onClick:D=>R(c.row)},te(c.row.enabled?"\u7981\u7528":"\u542F\u7528"),9,de),h("a",{onClick:D=>j(c.row)},"\u5220\u9664",8,ce)]),_:1},8,["column","data","total"])]),_:1}),t(oe,{visible:u.visible,data:u.rowData,onClose:O},null,8,["visible","data"])],64)}}});export{fe as default};