smart-power-ui/dist/static/js/chunk-63bad2bb.99271556.js

1 line
2.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-63bad2bb"],{2775:function(t,e,n){"use strict";n("d9a1")},7380: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:"new-destail"},[n("h3",{staticStyle:{width:"100%","text-align":"center","line-height":"1.5","font-size":"18px","font-weight":"600",margin:"15px 0"}},[t._v(t._s(t.info.noticeTitle))]),n("span",{staticStyle:{width:"100%","text-align":"center",color:"#808080","line-height":"1.5",font:"13px/1.6 Arial,sans-serif,Tahoma,Roboto,'Source Code Pro'"}},[t._v("发布时间:"+t._s(t.info.updateTime))]),n("span",{staticClass:"gd-news",on:{click:function(e){return t.toNowsTable(t.info.noticeId)}}},[t._v("更多新闻。。。")]),n("el-divider"),n("div",{staticStyle:{padding:"20px"},domProps:{innerHTML:t._s(t.info.noticeContent)}}),n("div",{staticStyle:{position:"fixed",bottom:"10px",right:"10px"}})],1)},o=[],r=n("8b29"),s={name:"NewDestail",data:function(){return{info:{}}},created:function(){this.init()},methods:{init:function(){var t=this.$router.currentRoute.query.newId;this.getNewsList(t)},getNewsList:function(t){var e=this;Object(r["c"])(t).then((function(t){e.info=t.data})).catch((function(t){console.log(t)}))},toNowsTable:function(t){console.log(t),this.$router.push({path:"/news",query:{newId:t}})},toTableClick:function(){this.$router.push({path:"/"})}},watch:{$route:{handler:function(){var t=this.$route.query.newId;(t||0===t)&&this.getNewsList(t)},deep:!0}}},c=s,u=(n("2775"),n("2877")),a=Object(u["a"])(c,i,o,!1,null,null,null);e["default"]=a.exports},"8b29":function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return s})),n.d(e,"e",(function(){return c})),n.d(e,"b",(function(){return u}));var i=n("b775");function o(t){return Object(i["a"])({url:"/system/notice/list",method:"get",params:t})}function r(t){return Object(i["a"])({url:"/system/notice/"+t,method:"get"})}function s(t){return Object(i["a"])({url:"/system/notice",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/system/notice",method:"put",data:t})}function u(t){return Object(i["a"])({url:"/system/notice/"+t,method:"delete"})}},d9a1:function(t,e,n){}}]);