|
|
-import{d as t,M as u,E as y,A as _}from"./index-4687423a.js";import{l as k}from"./index-21a0b964.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-0fc9543d.js";import"./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-ee0bcf95.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./SettingOutlined-bc6d167d.js";const q={__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{q as default};
|
|
|
+import{d as t,M as u,E as y,A as _}from"./index-b7094f12.js";import{l as k}from"./index-9d837a55.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-c6f28d35.js";import"./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./SettingOutlined-aebe903b.js";const q={__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{q as default};
|