index.91c0461b.js 4.5 KB

12345678910111213141516171819
  1. import{e as w,G as B,r as y,o as N,a0 as p,ae as V,g as c,h as I,t as M,p as m,q as o,j as _,x as n,A as s,y as u,u as R}from"./vue.e266cb73.js";import{I as k}from"./index.8cb47178.js";import{q as U}from"./index.223f7582.js";import{ad as g}from"./index.dcc65bf7.js";import{_ as j}from"./_plugin-vue_export-helper.c27b6911.js";import"./Urls.a85bb052.js";import"./request.1f3df8c8.js";import"./storage.acfc8920.js";import"./config.3668004a.js";import"./index.4f91577e.js";import"./index.f84209b0.js";import"./index.a3bb8816.js";const q={class:"card-header"},A={class:"disflex"},H=w({name:"systemMessage"}),L=w({...H,setup(O){const e=B({tableData:[],total:0,loading:!1,param:{keyword:"",page:1,list_rows:10},ids:[],unit_type_list:[],filters:[],download_file_url:""}),v=async t=>{let l=await k.messageEdit(t.id);if(l.code!=0)return e.loading=!1,g.error(l.msg);b()},h=y(),f=y([]),x=t=>{f.value=t,console.log("multipleSelection",f.value)},b=async()=>{let t=await k.message(e.param);if(t.code!=0)return e.loading=!1,g.error(t.msg);e.tableData=t.data.data,e.total=t.data.total},C=()=>{r(),setTimeout(()=>{g.success("刷新列表成功")},500)},r=()=>{e.loading=!0,b(),setTimeout(()=>{e.loading=!1},500)},z=t=>{e.param.list_rows=t,r()},D=t=>{e.param.page=t,r()};return N(()=>{r()}),(t,l)=>{const d=p("el-button"),i=p("el-table-column"),S=p("el-pagination"),T=p("el-card"),E=V("loading");return c(),I("div",null,[M((c(),m(T,{class:"box-card","element-loading-text":"Loading..."},{header:o(()=>[_("div",q,[n(` <div class="system-menu-search">
  2. <el-input size="default" v-model="state.param.keyword" placeholder="请输入关键词" style="max-width: 180px"> </el-input>
  3. <el-button size="default" type="primary" class="ml10" @click="getTableData()">
  4. <el-icon>
  5. <ele-Search />
  6. </el-icon>
  7. 查询
  8. </el-button>
  9. </div> `),_("div",null,[n(` <el-button type="primary" @click="onOpenAddDept('add')">新增</el-button>
  10. <el-button type="primary" @click="pass()">审核</el-button>
  11. <el-button type="danger" @click="repass()">反审核</el-button>
  12. <el-button type="success" @click="importExcel()">导入</el-button>
  13. <el-button type="success" @click="exportExcel()">导出</el-button>
  14. <el-button type="danger" @click="del()">删除</el-button> `),s(d,{type:"default",onClick:l[0]||(l[0]=a=>C())},{default:o(()=>[u("刷新列表")]),_:1})])])]),default:o(()=>[s(R(U),{ref_key:"multipleTableRef",ref:h,data:e.tableData,style:{width:"100%"},onSelectionChange:x},{default:o(()=>[n(' <el-table-column type="selection" width="55" /> '),s(i,{property:"title",label:"标题"}),s(i,{property:"content",label:"内容"}),s(i,{property:"is_read",label:"是否已读",width:"120"},{default:o(a=>[a.row.is_read==0?(c(),m(d,{key:0,link:"",type:"danger",size:"default"},{default:o(()=>[u("未读")]),_:1})):n("v-if",!0),a.row.is_read==1?(c(),m(d,{key:1,link:"",type:"primary",size:"default"},{default:o(()=>[u("已读")]),_:1})):n("v-if",!0)]),_:1}),s(i,{property:"update_time",label:"更新时间"}),s(i,{fixed:"right",label:"操作",width:"120"},{default:o(a=>[_("div",A,[s(d,{type:"primary",size:"small",onClick:$=>v(a.row),disabled:a.row.is_read==1},{default:o(()=>[u("标记已读")]),_:2},1032,["onClick","disabled"]),n(` <el-button link type="primary" size="small" @click="onOpenEditDept('edit', scope.row)"
  15. :disabled="scope.row.is_lock==1||scope.row.is_pass==1">修改</el-button>
  16. <el-button link type="danger" size="small" @click="handleClick_del(scope.row)"
  17. :disabled="scope.row.is_lock==1||scope.row.is_pass==1">删除</el-button> `)])]),_:1})]),_:1},8,["data"]),s(S,{onSizeChange:z,onCurrentChange:D,class:"mt15","pager-count":5,"page-sizes":[10,20,30],"current-page":e.param.page,"onUpdate:currentPage":l[1]||(l[1]=a=>e.param.page=a),background:"","page-size":e.param.list_rows,"onUpdate:pageSize":l[2]||(l[2]=a=>e.param.list_rows=a),layout:"total, sizes, prev, pager, next, jumper",total:e.total},null,8,["current-page","page-size","total"])]),_:1})),[[E,e.loading]])])}}});const ae=j(L,[["__scopeId","data-v-d51af074"],["__file","C:/Users/89282/Desktop/lechang_storage/lechang_storage/vue-next-admin/src/views/system/message/index.vue"]]);export{ae as default};
  18. //# sourceMappingURL=index.91c0461b.js.map