|
|
-import{c as t,M as u,E as y,A as _}from"./index-ac354dac.js";import{l as k}from"./index-f2dd258a.js";import{u as f}from"./vue-router-e2815956.js";import{a as e,W as b,X as n,Y as g,m as o,Z as i,u as s,a2 as h,E as x,a3 as N}from"./vue-7f5e2b1b.js";import"./fullScreen-bd382f88.js";import"./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-cc833408.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./SettingOutlined-a625be6c.js";import"./routeTabs-4ed16e88.js";const A={__name:"index",setup(T){const r=f(),c=e();e([]),e([]);let l=e([{label:"状态",key:"status",type:"select",dataSource:[{remarks:"全部",value:""},{remarks:"发布",value:"发布"}]},{label:"时间范围",key:"dateRange",type:"datepickerRange",objKeys:["begindate","enddate"],defaultData:[t.date.yearStart,t.date.yearEnd]},{label:"搜索",key:"condition",type:"input"}]),m=e({content:{isExport:0,pageNumber:1,pageSize:20,where:{condition:""}},id:20221101094903});const d=()=>{u.confirm({title:"创建通告?",icon:o(y),content:o("div",{style:"color:#666;"},"是否要创建一个空的通告模板"),okText:"确认",cancelText:"取消",async onOk(){const a=await _.requested({id:20221101094803,content:{sat_noticeid:0,sat_notice_classid:51,title:"默认通告",summary:"",content:"",issecret:1,begdate:new Date().toLocaleDateString(),enddate:"",isontop:0}});t.message(a,"创建成功!",()=>{r.push({path:"/systemNoticeDetail",query:{id:a.data.sat_noticeid}})})},onCancel(){console.log("Cancel")},class:"test"})};return(a,C)=>{const p=b("a-button");return n(),g("div",null,[o(k,{ref_key:"list",ref:c,param:s(m),tableName:"noticeTable",keyRouteName:"title",searchType:s(l),detailPage:{name:"systemNoticeDetail",idname:"sat_noticeid"}},{operation:i(()=>[s(t).hasPermission("insert")?(n(),h(p,{key:0,type:"primary",onClick:d},{default:i(()=>[x("创建通告")]),_:1})):N("",!0)]),_:1},8,["param","searchType"])])}}};export{A as default};
|
|
|
+import{c as t,M as u,E as y,A as _}from"./index-d67b624a.js";import{l as k}from"./index-0a841ec1.js";import{u as f}from"./vue-router-e2815956.js";import{a as e,W as b,X as n,Y as g,m as o,Z as i,u as s,a2 as h,E as x,a3 as N}from"./vue-7f5e2b1b.js";import"./fullScreen-f9c2862a.js";import"./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-aee74444.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./SettingOutlined-e8ea3db6.js";import"./routeTabs-73484cb4.js";const A={__name:"index",setup(T){const r=f(),c=e();e([]),e([]);let l=e([{label:"状态",key:"status",type:"select",dataSource:[{remarks:"全部",value:""},{remarks:"发布",value:"发布"}]},{label:"时间范围",key:"dateRange",type:"datepickerRange",objKeys:["begindate","enddate"],defaultData:[t.date.yearStart,t.date.yearEnd]},{label:"搜索",key:"condition",type:"input"}]),m=e({content:{isExport:0,pageNumber:1,pageSize:20,where:{condition:""}},id:20221101094903});const d=()=>{u.confirm({title:"创建通告?",icon:o(y),content:o("div",{style:"color:#666;"},"是否要创建一个空的通告模板"),okText:"确认",cancelText:"取消",async onOk(){const a=await _.requested({id:20221101094803,content:{sat_noticeid:0,sat_notice_classid:51,title:"默认通告",summary:"",content:"",issecret:1,begdate:new Date().toLocaleDateString(),enddate:"",isontop:0}});t.message(a,"创建成功!",()=>{r.push({path:"/systemNoticeDetail",query:{id:a.data.sat_noticeid}})})},onCancel(){console.log("Cancel")},class:"test"})};return(a,C)=>{const p=b("a-button");return n(),g("div",null,[o(k,{ref_key:"list",ref:c,param:s(m),tableName:"noticeTable",keyRouteName:"title",searchType:s(l),detailPage:{name:"systemNoticeDetail",idname:"sat_noticeid"}},{operation:i(()=>[s(t).hasPermission("insert")?(n(),h(p,{key:0,type:"primary",onClick:d},{default:i(()=>[x("创建通告")]),_:1})):N("",!0)]),_:1},8,["param","searchType"])])}}};export{A as default};
|