chunk-4ed0f5bc.99ab7b33.js 8.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ed0f5bc"],{"0b42":function(t,e,n){var i=n("da84"),o=n("e8b5"),a=n("68ee"),r=n("861d"),s=n("b622"),c=s("species"),l=i.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,a(e)&&(e===l||o(e.prototype))?e=void 0:r(e)&&(e=e[c],null===e&&(e=void 0))),void 0===e?l:e}},"1dde":function(t,e,n){var i=n("d039"),o=n("b622"),a=n("2d00"),r=o("species");t.exports=function(t){return a>=51||!i((function(){var e=[],n=e.constructor={};return n[r]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"65f0":function(t,e,n){var i=n("0b42");t.exports=function(t,e){return new(i(t))(0===e?0:e)}},9092:function(t,e,n){"use strict";n("f6ce")},b727:function(t,e,n){var i=n("0366"),o=n("e330"),a=n("44ad"),r=n("7b0b"),s=n("07fa"),c=n("65f0"),l=o([].push),u=function(t){var e=1==t,n=2==t,o=3==t,u=4==t,p=6==t,d=7==t,f=5==t||p;return function(h,m,b,y){for(var g,v,w=r(h),_=a(w),S=i(m,b),x=s(_),z=0,$=y||c,k=e?$(h,x):n||d?$(h,0):void 0;x>z;z++)if((f||z in _)&&(g=_[z],v=S(g,z,w),t))if(e)k[z]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return z;case 2:l(k,g)}else switch(t){case 4:return!1;case 7:l(k,g)}return p?-1:o||u?u:k}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},d81d:function(t,e,n){"use strict";var i=n("23e7"),o=n("b727").map,a=n("1dde"),r=a("map");i({target:"Array",proto:!0,forced:!r},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},e12a:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("search",{on:{onSearch:t.onSearch}},[n("div",{attrs:{slot:"left"},slot:"left"},[n("operation",{attrs:{selection:t.selection},on:{onSuccess:t.query_noticeList}})],1)]),n("div",{staticClass:"container"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,size:"mini",height:"calc(100vh - 258px)","header-cell-style":{background:"#f1f2f3"},border:""},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"ftitle",label:"标题",width:"300","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tag",{directives:[{name:"show",rawName:"v-show",value:1===e.row.fisontop,expression:"scope.row.fisontop === 1"}],attrs:{size:"mini",type:"danger"}},[t._v(t._s(0===e.row.fisontop?"":"置顶"))]),t._v(" "+t._s(e.row.ftitle?e.row.ftitle:"未知")+" ")]}}])}),n("el-table-column",{attrs:{prop:"fsummary",label:"副标题"}}),n("el-table-column",{attrs:{prop:"ftype",label:"分类",width:"90"}}),n("el-table-column",{attrs:{prop:"fstatus",label:"状态",width:"90"},scopedSlots:t._u([{key:"default",fn:function(e){return["发布"===e.row.fstatus?n("span",{staticStyle:{color:"red"}},[t._v(t._s(e.row.fstatus?e.row.fstatus:"未知"))]):n("span",[t._v(t._s(e.row.fstatus?e.row.fstatus:"未知"))])]}}])}),n("el-table-column",{attrs:{prop:"fattachmentcount",label:"附件数量",width:"90"}}),n("el-table-column",{attrs:{prop:"freadcount",label:"阅读量",width:"90"}}),n("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(n){return t.$router.push({path:"/noticeMain",query:{id:e.row.tnoticeid}})}}},[t._v("查 看")]),n("el-divider",{attrs:{direction:"vertical"}}),n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(n){return t.$router.push({path:"/notice_edit",query:{id:e.row.tnoticeid}})}}},[t._v("编 辑")]),n("el-divider",{attrs:{direction:"vertical"}}),n("delete-row",{attrs:{tnoticeid:e.row.tnoticeid},on:{onDelete:t.query_noticeList}})]}}])})],1),n("div",{staticStyle:{"margin-top":"10px","text-align":"right"}},[n("el-pagination",{attrs:{"current-page":t.currentPage,background:"",layout:"prev, pager, next,sizes","page-sizes":[20,30,50,100],"page-size":t.param.content.pageSize,total:t.total,small:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)},o=[],a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex"},[n("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入查询内容",size:"small",clearable:""},on:{clear:t.onSearch},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}}),n("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small"},on:{click:t.onSearch}},[t._v("查询")]),t._t("left")],2)},r=[],s={data:function(){return{input:""}},methods:{onSearch:function(){this.$emit("onSearch",this.input)}}},c=s,l=(n("9092"),n("2877")),u=Object(l["a"])(c,a,r,!1,null,"4ea77372",null),p=u.exports,d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"inline"}},[n("el-popconfirm",{attrs:{"confirm-button-text":"确定","cancel-button-text":"不用了",icon:"el-icon-info","icon-color":"red",title:"确定删除该条数据吗?"},on:{confirm:t.deleteRow}},[n("el-button",{attrs:{slot:"reference",type:"text",size:"mini"},slot:"reference"},[t._v("删 除")])],1)],1)},f=[],h={props:["tnoticeid"],methods:{deleteRow:function(){var t=this;this.$api.requested({classname:"enterprise.noticemag.noticemag",method:"delete",content:{tnoticeid:this.tnoticeid}}).then((function(e){1===e.code?t.$notify({title:"成功",message:"数据已删除",type:"success"}):t.$notify({title:"失败",message:e.data,type:"error"}),1===e.code&&t.$emit("onDelete")}))}}},m=h,b=Object(l["a"])(m,d,f,!1,null,null,null),y=b.exports,g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button-group",[n("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:function(e){return t.$router.push({path:"/notice_add"})}}},[t._v("发布通告")]),n("el-button",{attrs:{disabled:0===t.selection.length,type:"primary",size:"small"},on:{click:t.deleteAll}},[n("i",{staticClass:"el-icon-delete"})]),n("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"置顶",placement:"top-start"}},[n("el-button",{attrs:{disabled:0===t.selection.length,type:"primary",size:"small"},on:{click:t.setTopAll}},[n("i",{staticClass:"el-icon-upload2"})])],1),n("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"取消置顶",placement:"top-start"}},[n("el-button",{attrs:{disabled:0===t.selection.length,type:"primary",size:"small"},on:{click:t.setTopAll}},[n("i",{staticClass:"el-icon-download"})])],1)],1)],1)},v=[],w=(n("d81d"),{props:["selection"],methods:{deleteAll:function(){var t=this;this.selection.map((function(e){t.delete(e.tnoticeid)}))},setTopAll:function(){var t=this;this.selection.map((function(e){t.setTop(e)}))},delete:function(t){var e=this;this.$api.requested({classname:"enterprise.noticemag.noticemag",method:"delete",content:{tnoticeid:t}}).then((function(t){1===t.code?e.$notify({title:"成功",message:"数据已删除",type:"success"}):e.$notify({title:"失败",message:t.data,type:"error"})}))},setTop:function(t){var e=this;this.$api.requested({classname:"enterprise.noticemag.noticemag",method:"noticeontop",content:{tnoticeid:t.tnoticeid,fisontop:1===t.fisontop?0:1}}).then((function(t){1===t.code&&e.$emit("onSuccess")}))}}}),_=w,S=Object(l["a"])(_,g,v,!1,null,null,null),x=S.exports,z={components:{search:p,deleteRow:y,operation:x},data:function(){return{param:{classname:"enterprise.noticemag.noticemag",method:"query_noticeList",content:{getdatafromdbanyway:!0,pageNumber:1,pageSize:20,where:{condition:"",ftype:""}}},list:[],total:0,currentPage:0,selection:[]}},mounted:function(){this.query_noticeList()},methods:{onSearch:function(){},query_noticeList:function(t){var e=this;"search"===t&&(this.param.pageNumber=1),this.$api.requested(this.param).then((function(t){e.list=t.data,e.total=t.total,e.currentPage=t.pageNumber}))},handleSizeChange:function(t){this.param.pageSize=t,this.query_noticeList()},handleCurrentChange:function(t){this.param.pageNumber=t,this.query_noticeList()},handleSelectionChange:function(t){this.selection=t}}},$=z,k=Object(l["a"])($,i,o,!1,null,null,null);e["default"]=k.exports},e8b5:function(t,e,n){var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==i(t)}},f6ce:function(t,e,n){}}]);