chunk-e513079a.39aafbab.js 7.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e513079a","chunk-2c09158e"],{"05cc":function(t,e,n){},3933: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",{staticClass:"nav"},[n("div",{staticClass:"nav-title"},[t._v(t._s(t.info.title))]),t._v(" "),n("div",{staticClass:"nav-time"},[t._v(t._s(t.info.time.slice(0,10)))]),t._v(" "),n("div",{staticClass:"ql-container ql-snow",staticStyle:{border:"none"}},[n("div",{staticClass:"ql-editor",domProps:{innerHTML:t._s(t.info.notice)}})])])},a=[],s={props:{info:{type:Object,default:function(){return{title:"",time:"",notice:""}}}}},r=s,c=(n("ad1d"),n("9316"),n("2877")),o=Object(c["a"])(r,i,a,!1,null,"51f3c8f4",null);e["default"]=o.exports},"76ee":function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return c})),n.d(e,"a",(function(){return o}));var i=n("b775");function a(t){return Object(i["a"])({url:"/notice/GetNoticeList",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/notice/GetNotice",method:"get",params:t})}function r(t){return Object(i["a"])({url:"/notice/UpdateWeChatNotice",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/goods/uploadgoodsimage",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/notice/DelNotice",method:"get",params:t})}},"8f8c":function(t,e,n){},9316:function(t,e,n){"use strict";n("8f8c")},a857: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",{staticClass:"app-container"},[n("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),t._v(" "),n("div",{staticClass:"filter-container"},[n("el-input",{staticClass:"filter-item filter-input",attrs:{placeholder:"请输入标题搜索"},model:{value:t.listQuery.search_name,callback:function(e){t.$set(t.listQuery,"search_name",e)},expression:"listQuery.search_name"}}),t._v(" "),n("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){t.listQuery.page_index=1,t.getList()}}},[t._v("\n 搜索\n ")]),t._v(" "),n("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-edit"},on:{click:t.handleAddArtShow}},[t._v("\n 添加公告\n ")])],1),t._v(" "),n("el-table",{staticClass:"tableBorder",attrs:{data:t.table,"header-cell-style":{background:"#f8fbfc"},border:"",stripe:""}},[n("el-table-column",{attrs:{prop:"title",align:"center",label:"标题","show-overflow-tooltip":!0}}),t._v(" "),n("el-table-column",{attrs:{prop:"time",align:"center",label:"时间",width:"250"}}),t._v(" "),n("el-table-column",{attrs:{prop:"is_top",label:"是否置顶",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-tag",{attrs:{type:1==i.is_top?"success":"info"}},[t._v(t._s(0==i.is_top?"不置顶":"置顶"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"get_address",label:"简介",align:"center","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v(t._s(n.description))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"imgurl",label:"封面",align:"center",width:"70"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.cover?n("el-image",{staticStyle:{width:"50px",height:"20px"},attrs:{src:i.cover,fit:"contain","preview-src-list":[i.cover]}}):n("span",[t._v("无")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"270",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-button",{attrs:{type:"success",size:"mini",plain:""},on:{click:function(e){return t.handlePreView(i)}}},[t._v("\n 预览\n ")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"mini",plain:""},on:{click:function(e){return t.handleEdit(i)}}},[t._v("\n 修改\n ")]),t._v(" "),n("el-button",{attrs:{type:"danger",size:"mini",plain:""},on:{click:function(e){return t.handleDelete(i)}}},[t._v("\n 删除\n ")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.tableTotal,limit:t.listQuery.page_size,page:t.listQuery.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}}),t._v(" "),n("el-dialog",{attrs:{title:"公告预览",width:"375px",visible:t.visible.preview,"close-on-press-escape":!1},on:{"update:visible":function(e){return t.$set(t.visible,"preview",e)}}},[n("preview",{attrs:{info:t.visible.info}})],1)],1)},a=[],s=(n("a481"),n("c7eb")),r=(n("96cf"),n("1da1")),c=n("76ee"),o=n("3933"),l={components:{Preview:o["default"]},data:function(){return{table:[],cleGroupList:[],tableTotal:0,dialogFormVisible:!1,params:{search_content:"",status:0},form:{group_name:"",status:""},listQuery:{search_name:"",page_index:1,page_size:20},visible:{preview:!1,info:{}},loadingFull:!1}},created:function(){this.getList()},methods:{getList:function(){var t=Object(r["a"])(Object(s["a"])().mark((function t(){var e,n,i,a,r,o;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,t.prev=1,t.next=4,Object(c["c"])(this.listQuery);case 4:e=t.sent,n=e.message,i=e.code,200===i?(a=e.data,r=a.list,o=a.total,this.tableTotal=o,this.table=r):this.$message.error(n),t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](1),console.log("获取失败:".concat(t.t0));case 12:this.loadingFull=!1;case 13:case"end":return t.stop()}}),t,this,[[1,9]])})));function e(){return t.apply(this,arguments)}return e}(),changePagination:function(t){var e=t.page,n=t.limit;this.listQuery.page_size=n,this.listQuery.page_index=e,this.getList()},handleDelete:function(t){var e=this;this.$confirm("确定删除这篇公告?","删除确认",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var n=t.id;e.setDelete(n)}))},setDelete:function(){var t=Object(r["a"])(Object(s["a"])().mark((function t(e){var n,i,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["a"])({id:e});case 2:n=t.sent;try{i=n.message,a=n.code,200===a?(this.$message.success("删除成功"),this.getList()):this.$message.error(i||"删除失败")}catch(s){console.log("删除失败".concat(s))}case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleAddArtShow:function(){this.$router.push({name:"system_message"})},handleEdit:function(t){var e=t.id;this.$router.push({name:"system_message",query:{id:e}})},handlePreView:function(t){var e=this;Object(c["b"])({id:t.id}).then((function(t){200===t.code?(e.visible.info=t.data,e.visible.info.notice=t.data.notice.replace(/\<img/gi,'<img style="max-width:100%;height:auto" '),e.visible.preview=!0):e.$message.error(t.message||"获取失败")}))}}},u=l,d=(n("f4db"),n("2877")),p=Object(d["a"])(u,i,a,!1,null,null,null);e["default"]=p.exports},ad1d:function(t,e,n){"use strict";n("05cc")},b5b2:function(t,e,n){},f4db:function(t,e,n){"use strict";n("b5b2")}}]);