pnkx-admin-mongo/pnkx-app-apk/unpackage/cache/wgt/H5A8E5E14/static/js/chunk-54bcae3c.6b5a6975.js
2024-01-13 13:29:20 +08:00

1 line
2.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-54bcae3c"],{"686e":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:"notice"},[n("van-nav-bar",{attrs:{fixed:"",title:"通知公告","left-arrow":"","left-text":"返回"},on:{"click-left":function(e){return t.$router.go(-1)}}}),n("div",{staticClass:"notice-content"},[n("van-row",{staticClass:"notice-title",attrs:{type:"flex",justify:"center"}},[n("van-col",[t._v(t._s(t.notice.noticeTitle))])],1),n("van-row",{staticClass:"notice-author",attrs:{type:"flex",align:"center",justify:"center"}},[n("van-col",{attrs:{offset:1}},[t._v(t._s(t.notice.author))]),n("van-col",{attrs:{offset:1}},[t._v(t._s(t.notice.createTime))]),n("van-col",{attrs:{offset:1}},[n("van-tag",{attrs:{type:t.dictValueToTagType(t.notice.noticeType)}},[t._v(" "+t._s(t.translationDic(t.notice.noticeType,t.typeOptions))+" ")])],1)],1),n("van-row",{staticClass:"notice-html",attrs:{type:"flex",justify:"center"}},[n("van-col",{domProps:{innerHTML:t._s(t.notice.noticeContent)}})],1)],1)],1)},c=[],o=n("8b29"),a=n("aa3a"),s={name:"Notice",data:function(){return{notice:{},typeOptions:[]}},mounted:function(){this.getNotice(),this.getDictList()},methods:{getDictList:function(){var t=this;Object(a["a"])("sys_notice_type").then((function(e){t.typeOptions=e.data}))},getNotice:function(){var t=this;Object(o["a"])(this.$route.query.noticeId).then((function(e){t.notice=e.data}))},dictValueToTagType:function(t){var e="";return"1"===t?e="":"2"===t?e="success":"3"===t?e="primary":"4"===t?e="warning":"5"===t&&(e="danger"),e}}},r=s,u=(n("9d2b"),n("2877")),f=Object(u["a"])(r,i,c,!1,null,"48008c25",null);e["default"]=f.exports},"8b29":function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return o}));var i=n("b775");function c(t){return Object(i["a"])({url:"/system/notice/list",method:"get",params:t})}function o(t){return Object(i["a"])({url:"/system/notice/"+t,method:"get"})}},"9d2b":function(t,e,n){"use strict";n("ef06")},ef06:function(t,e,n){}}]);