提交 72a0bc25 编写于 作者: 麦嘉得's avatar 麦嘉得

消息推送地址

上级 417ee66a
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimum-scale=1,viewport-fit=cover"><link rel="icon" href="favicon.ico"><title>新闻发布</title><link href="static/css/chunk-3c528d8e.661e5133.css" rel="prefetch"><link href="static/css/chunk-c4a7bb26.8d789763.css" rel="prefetch"><link href="static/css/chunk-de9cb196.e7fc046d.css" rel="prefetch"><link href="static/js/chunk-3c528d8e.1eebd3a0.js" rel="prefetch"><link href="static/js/chunk-6d99fb42.f58c0293.js" rel="prefetch"><link href="static/js/chunk-c4a7bb26.999e5560.js" rel="prefetch"><link href="static/js/chunk-de9cb196.a7b113e5.js" rel="prefetch"><link href="static/js/chunk-f8fc3c26.67930d74.js" rel="prefetch"><link href="static/css/app.1203707a.css" rel="preload" as="style"><link href="static/css/chunk-vendors.8382ca1c.css" rel="preload" as="style"><link href="static/js/app.0a727069.js" rel="preload" as="script"><link href="static/js/chunk-vendors.6d86a3a1.js" rel="preload" as="script"><link href="static/css/chunk-vendors.8382ca1c.css" rel="stylesheet"><link href="static/css/app.1203707a.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but votemanage_webapp doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="static/js/chunk-vendors.6d86a3a1.js"></script><script src="static/js/app.0a727069.js"></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimum-scale=1,viewport-fit=cover"><link rel="icon" href="favicon.ico"><title>新闻发布</title><link href="static/css/chunk-3c528d8e.661e5133.css" rel="prefetch"><link href="static/css/chunk-70c3c2de.700bdf6e.css" rel="prefetch"><link href="static/css/chunk-c4a7bb26.8d789763.css" rel="prefetch"><link href="static/js/chunk-3c528d8e.1eebd3a0.js" rel="prefetch"><link href="static/js/chunk-6d99fb42.f58c0293.js" rel="prefetch"><link href="static/js/chunk-70c3c2de.04f32c58.js" rel="prefetch"><link href="static/js/chunk-c4a7bb26.999e5560.js" rel="prefetch"><link href="static/js/chunk-f8fc3c26.67930d74.js" rel="prefetch"><link href="static/css/app.1203707a.css" rel="preload" as="style"><link href="static/css/chunk-vendors.8382ca1c.css" rel="preload" as="style"><link href="static/js/app.2de71760.js" rel="preload" as="script"><link href="static/js/chunk-vendors.6d86a3a1.js" rel="preload" as="script"><link href="static/css/chunk-vendors.8382ca1c.css" rel="stylesheet"><link href="static/css/app.1203707a.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but votemanage_webapp doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="static/js/chunk-vendors.6d86a3a1.js"></script><script src="static/js/app.2de71760.js"></script></body></html>
\ No newline at end of file
.cardList[data-v-3bd4b948]{padding:15px 15px 15px 15px}.list[data-v-3bd4b948]{border-radius:8px;overflow:hidden;margin-bottom:15px;box-shadow:0 0 8px rgba(0,0,0,.1)}.list .van-cell-group[data-v-3bd4b948]{overflow:auto}.list .cellStyle_up[data-v-3bd4b948]{font-size:15px}.list .cellStyle_up .van-cell__title[data-v-3bd4b948]{color:#787879}.list .cellStyle_middle[data-v-3bd4b948]{padding:4px 16px 4px;font-size:15px}.list .cellStyle_middle .van-cell__title[data-v-3bd4b948]{color:#787879}.list .cellStyle_middle .reason[data-v-3bd4b948]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.list .cellStyle_down[data-v-3bd4b948]{padding:1px 16px 10px;font-size:15px}.list .cellStyle_down .van-cell__title[data-v-3bd4b948]{color:#787879}.list .van-cell__value[data-v-3bd4b948]{font-size:16px;color:#525252}.btn[data-v-3bd4b948]{color:#01adff;border:1px solid #01adff;border-radius:20px;font-weight:600;font-size:15px}.geese-card-tips[data-v-3bd4b948]{position:absolute;right:-50px;top:-3px;width:100px;height:28px;background:#4483eb;color:#fff;text-align:center;line-height:30px;font-size:12px;transform:rotate(40deg);-ms-transform:rotate(40deg);-moz-transform:rotate(40deg);-webkit-transform:rotate(40deg);-o-transform:rotate(40deg)}[data-v-3bd4b948] .van-field__control{font-size:14px}
\ No newline at end of file
.cardList[data-v-f20ead00]{padding:15px 15px 15px 15px}.list[data-v-f20ead00]{border-radius:8px;overflow:hidden;margin-bottom:15px;box-shadow:0 0 8px rgba(0,0,0,.1)}.list .van-cell-group[data-v-f20ead00]{overflow:auto}.list .cellStyle_up[data-v-f20ead00]{font-size:15px}.list .cellStyle_up .van-cell__title[data-v-f20ead00]{color:#787879}.list .cellStyle_middle[data-v-f20ead00]{padding:4px 16px 4px;font-size:15px}.list .cellStyle_middle .van-cell__title[data-v-f20ead00]{color:#787879}.list .cellStyle_middle .reason[data-v-f20ead00]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.list .cellStyle_down[data-v-f20ead00]{padding:1px 16px 10px;font-size:15px}.list .cellStyle_down .van-cell__title[data-v-f20ead00]{color:#787879}.list .van-cell__value[data-v-f20ead00]{font-size:16px;color:#525252}.btn[data-v-f20ead00]{color:#01adff;border:1px solid #01adff;border-radius:20px;font-weight:600;font-size:15px}.geese-card-tips[data-v-f20ead00]{position:absolute;right:-50px;top:-3px;width:100px;height:28px;background:#4483eb;color:#fff;text-align:center;line-height:30px;font-size:12px;transform:rotate(40deg);-ms-transform:rotate(40deg);-moz-transform:rotate(40deg);-webkit-transform:rotate(40deg);-o-transform:rotate(40deg)}[data-v-f20ead00] .van-field__control{font-size:14px}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70c3c2de"],{"159b":function(t,e,n){var i=n("da84"),o=n("fdbc"),s=n("17c2"),a=n("9112");for(var r in o){var c=i[r],l=c&&c.prototype;if(l&&l.forEach!==s)try{a(l,"forEach",s)}catch(u){l.forEach=s}}},"17c2":function(t,e,n){"use strict";var i=n("b727").forEach,o=n("a640"),s=o("forEach");t.exports=s?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},"2aab":function(t,e,n){t.exports=n.p+"static/img/已发布.e263f76a.svg"},"326e":function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"i",(function(){return a})),n.d(e,"e",(function(){return r})),n.d(e,"h",(function(){return c})),n.d(e,"j",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"g",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"f",(function(){return h}));var i=n("1f75");function o(t){return Object(i["a"])({url:"/wx_news/api/News/FirstColumn",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/wx_news/api/News/DeptList",method:"get",params:t})}function a(t){return Object(i["a"])({url:"/wx_news/api/News/TeacherList",method:"get",params:t})}function r(t){return Object(i["a"])({url:"/wx_news/api/News/GroupList",method:"get",params:t})}function c(t){return Object(i["a"])({url:"/wx_news/api/Message/SendWxMessage",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/wx_news/api/News/addNews",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/wx_news/api/News/EditNews",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/wx_news/api/News/MyNewsList",method:"get",params:t})}function f(t){return Object(i["a"])({url:"/wx_news/api/News/GetNewsInfo",method:"get",params:t})}function h(t){return Object(i["a"])({url:"/wx_news/api/News/IssueNews",method:"post",data:t})}},4582:function(t,e,n){},"4de4":function(t,e,n){"use strict";var i=n("23e7"),o=n("b727").filter,s=n("1dde"),a=s("filter");i({target:"Array",proto:!0,forced:!a},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"725b":function(t,e,n){t.exports=n.p+"static/img/待发布.04e4c148.svg"},a640:function(t,e,n){"use strict";var i=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))}},e199:function(t,e,n){"use strict";n("4582")},f736:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("van-sticky",[i("van-nav-bar",{attrs:{title:"列表","left-text":"返回","left-arrow":""},on:{"click-left":t.onClickLeft},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",[i("van-popover",{attrs:{trigger:"click",theme:"dark",placement:"bottom",actions:t.actions_title},on:{select:t.onSelect_title},scopedSlots:t._u([{key:"reference",fn:function(){return[i("div",[t._v(t._s(t.status_title.text)),i("van-icon",{attrs:{name:"filter-o",size:"18"}})],1)]},proxy:!0}]),model:{value:t.showPopover_title,callback:function(e){t.showPopover_title=e},expression:"showPopover_title"}})],1)]},proxy:!0}])}),i("van-search",{attrs:{"show-action":"",placeholder:"请输入姓名/内容搜索关键词",clearable:!0,background:"#fff"},on:{input:t.doSearch},scopedSlots:t._u([{key:"action",fn:function(){return[i("van-popover",{attrs:{trigger:"click",placement:"bottom",actions:t.actions,theme:"dark"},on:{select:t.onSelect},scopedSlots:t._u([{key:"reference",fn:function(){return[i("van-button",{staticStyle:{width:"120px","font-size":"15px","border-radius":"8px"},attrs:{icon:"sort",type:"default"}},[t._v(t._s(t.status.text))])]},proxy:!0}]),model:{value:t.showPopover,callback:function(e){t.showPopover=e},expression:"showPopover"}})]},proxy:!0}]),model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1),i("div",{staticClass:"cardList"},[i("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[i("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,(function(e,o){return i("div",{key:o,staticClass:"list"},[i("van-image",{staticStyle:{position:"absolute",right:"0","z-index":"1"},attrs:{width:"55",height:"55",src:"0"==e.发布状态标识?n("725b"):n("2aab")}}),i("van-cell-group",[i("van-cell",{attrs:{border:!0},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",{staticStyle:{"font-size":"16px","min-width":"300px"}},[i("div",[t._v(t._s(e.标题))])])]},proxy:!0}],null,!0)}),i("div",{staticStyle:{margin:"12px 0"}},[i("van-cell",{staticClass:"cellStyle_middle",attrs:{title:"栏目",value:e.一级栏目名,border:!1}}),i("van-cell",{staticClass:"cellStyle_middle",attrs:{title:"日期",value:e.日期,border:!1}}),i("van-cell",{staticClass:"cellStyle_middle",attrs:{title:"发布时间",value:e.发布时间,border:!1}})],1),i("van-row",{staticStyle:{margin:"12px"},attrs:{gutter:"20"}},[i("van-col",{attrs:{span:"12"}},[i("van-button",{staticClass:"btn",attrs:{block:"",round:"",plain:"",type:"info"},on:{click:function(n){return t.goDetail(e.id,e.发布状态标识)}}},[t._v("编辑")])],1),i("van-col",{attrs:{span:"12"}},[0==e.发布状态标识?i("van-button",{staticClass:"btn",attrs:{block:"",round:"",plain:"",type:"info"},on:{click:function(n){return t.handle_("Issue",e)}}},[t._v("发布")]):t._e(),1==e.发布状态标识?i("van-button",{staticClass:"btn",attrs:{block:"",round:"",plain:"",type:"info"},on:{click:function(n){return t.handle_("revocation",e)}}},[t._v("撤回")]):t._e()],1)],1)],1)],1)})),0)],1)],1)],1)},o=[],s=(n("4de4"),n("159b"),n("5319"),n("ac1f"),n("326e")),a={data:function(){return{title:"",type_name:"",type_id:"",refreshing:!1,finished:!1,loading:!1,list:[],searchValue:"",pageIndex:1,pageSize:5,showPopover_title:!1,actions_title:[],status_title:{text:"列表",value:""},showPopover:!1,actions:[],status:{text:"全部",value:""}}},created:function(){var t=this;Object(s["c"])().then((function(e){t.actions_title=[{text:"列表",value:""}],e.filter((function(e){t.actions_title.push({text:e.field_02,value:e.field_02})}))}))},methods:{goDetail:function(t,e){"1"!=e?this.$router.push({path:"/form",query:{status:"edit",id:t}}):this.$notify({type:"danger",message:"请先撤回再编辑"})},handle_:function(t,e){var n=this,i={id:e.id};"Issue"==t&&(i.发布状态标识="1"),"revocation"==t&&(i.发布状态标识="0"),this.$dialog.confirm({title:"提示",message:"Issue"==t?"是否发布此新闻":"是否撤销此新闻"}).then((function(){Object(s["f"])(i).then((function(i){console.log(t),"Issue"==t&&(n.$toast("发布成功"),n.sendPush(e)),"revocation"==t&&n.$toast("撤回成功"),n.list=[],n.onRefresh()}))})).catch((function(){}))},sendPush:function(t){var e;"asc"==sessionStorage.getItem("wx-news-type")&&(e=window.location.protocol+"//"+window.location.host+"/wx/eicrs/Home/wxAccInt?Redirect="+window.location.protocol+"//"+window.location.host+"/wx/wxaic/Teacher/AICNotice/SSO/sso.html?id="+t.id),"aic"==sessionStorage.getItem("wx-news-type")&&(e=window.location.protocol+"//"+window.location.host+"/eicrs/Home/wxAccInt?Redirect="+window.location.protocol+"//"+window.location.host+"/WxAIC/AICNotice/wxacc.ashx?links=~/showContent.aspx?id="+t.id);var n={news_id:t.id,title:"您有一条新的 《通知消息》",content:t.标题,curl:e,remark:""};Object(s["h"])(n);t.id,t.标题},onRefresh:function(){this.finished=!1,this.loading=!0,this.pageIndex=1,this.onLoad()},onLoad:function(){var t=this;this.actions=[{text:"全部",value:""},{text:"待发布",value:0},{text:"已发布",value:1}],Object(s["g"])({column:this.status_title.value,state:this.status.value,query:this.searchValue,pageIndex:this.pageIndex,pageSize:this.pageSize}).then((function(e){setTimeout((function(){if(t.refreshing&&(t.list=[],t.refreshing=!1),0==e.data.length)return t.finished=!0,void(t.refreshing=!1);e.data.forEach((function(e){t.list.push(e)})),t.pageIndex++,t.loading=!1}),500),console.log("this.pageIndex",t.pageIndex)}))},doSearch:function(t){this.pageIndex=1,this.list=[],this.finished=!1,this.loading=!0,this.onLoad()},onClickLeft:function(){this.$router.replace("/")},onSelect:function(t){console.log(t),this.pageIndex=1,this.list=[],this.finished=!1,this.loading=!0,this.status=t,this.onLoad()},onSelect_title:function(t){console.log(t),this.pageIndex=1,this.list=[],this.finished=!1,this.loading=!0,this.status_title=t,this.onLoad()}}},r=a,c=(n("e199"),n("2877")),l=Object(c["a"])(r,i,o,!1,null,"f20ead00",null);e["default"]=l.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-de9cb196"],{"159b":function(t,e,n){var i=n("da84"),o=n("fdbc"),s=n("17c2"),a=n("9112");for(var r in o){var c=i[r],l=c&&c.prototype;if(l&&l.forEach!==s)try{a(l,"forEach",s)}catch(u){l.forEach=s}}},"17c2":function(t,e,n){"use strict";var i=n("b727").forEach,o=n("a640"),s=o("forEach");t.exports=s?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},"2aab":function(t,e,n){t.exports=n.p+"static/img/已发布.e263f76a.svg"},"326e":function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"i",(function(){return a})),n.d(e,"e",(function(){return r})),n.d(e,"h",(function(){return c})),n.d(e,"j",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"g",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"f",(function(){return h}));var i=n("1f75");function o(t){return Object(i["a"])({url:"/wx_news/api/News/FirstColumn",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/wx_news/api/News/DeptList",method:"get",params:t})}function a(t){return Object(i["a"])({url:"/wx_news/api/News/TeacherList",method:"get",params:t})}function r(t){return Object(i["a"])({url:"/wx_news/api/News/GroupList",method:"get",params:t})}function c(t){return Object(i["a"])({url:"/wx_news/api/Message/SendWxMessage",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/wx_news/api/News/addNews",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/wx_news/api/News/EditNews",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/wx_news/api/News/MyNewsList",method:"get",params:t})}function f(t){return Object(i["a"])({url:"/wx_news/api/News/GetNewsInfo",method:"get",params:t})}function h(t){return Object(i["a"])({url:"/wx_news/api/News/IssueNews",method:"post",data:t})}},"4de4":function(t,e,n){"use strict";var i=n("23e7"),o=n("b727").filter,s=n("1dde"),a=s("filter");i({target:"Array",proto:!0,forced:!a},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"725b":function(t,e,n){t.exports=n.p+"static/img/待发布.04e4c148.svg"},"7ac0":function(t,e,n){"use strict";n("d0b4")},a640:function(t,e,n){"use strict";var i=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))}},d0b4:function(t,e,n){},f736:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("van-sticky",[i("van-nav-bar",{attrs:{title:"列表","left-text":"返回","left-arrow":""},on:{"click-left":t.onClickLeft},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",[i("van-popover",{attrs:{trigger:"click",theme:"dark",placement:"bottom",actions:t.actions_title},on:{select:t.onSelect_title},scopedSlots:t._u([{key:"reference",fn:function(){return[i("div",[t._v(t._s(t.status_title.text)),i("van-icon",{attrs:{name:"filter-o",size:"18"}})],1)]},proxy:!0}]),model:{value:t.showPopover_title,callback:function(e){t.showPopover_title=e},expression:"showPopover_title"}})],1)]},proxy:!0}])}),i("van-search",{attrs:{"show-action":"",placeholder:"请输入姓名/内容搜索关键词",clearable:!0,background:"#fff"},on:{input:t.doSearch},scopedSlots:t._u([{key:"action",fn:function(){return[i("van-popover",{attrs:{trigger:"click",placement:"bottom",actions:t.actions,theme:"dark"},on:{select:t.onSelect},scopedSlots:t._u([{key:"reference",fn:function(){return[i("van-button",{staticStyle:{width:"120px","font-size":"15px","border-radius":"8px"},attrs:{icon:"sort",type:"default"}},[t._v(t._s(t.status.text))])]},proxy:!0}]),model:{value:t.showPopover,callback:function(e){t.showPopover=e},expression:"showPopover"}})]},proxy:!0}]),model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1),i("div",{staticClass:"cardList"},[i("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[i("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,(function(e,o){return i("div",{key:o,staticClass:"list"},[i("van-image",{staticStyle:{position:"absolute",right:"0","z-index":"1"},attrs:{width:"55",height:"55",src:"0"==e.发布状态标识?n("725b"):n("2aab")}}),i("van-cell-group",[i("van-cell",{attrs:{border:!0},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",{staticStyle:{"font-size":"16px","min-width":"300px"}},[i("div",[t._v(t._s(e.标题))])])]},proxy:!0}],null,!0)}),i("div",{staticStyle:{margin:"12px 0"}},[i("van-cell",{staticClass:"cellStyle_middle",attrs:{title:"栏目",value:e.一级栏目名,border:!1}}),i("van-cell",{staticClass:"cellStyle_middle",attrs:{title:"日期",value:e.日期,border:!1}}),i("van-cell",{staticClass:"cellStyle_middle",attrs:{title:"发布时间",value:e.发布时间,border:!1}})],1),i("van-row",{staticStyle:{margin:"12px"},attrs:{gutter:"20"}},[i("van-col",{attrs:{span:"12"}},[i("van-button",{staticClass:"btn",attrs:{block:"",round:"",plain:"",type:"info"},on:{click:function(n){return t.goDetail(e.id,e.发布状态标识)}}},[t._v("编辑")])],1),i("van-col",{attrs:{span:"12"}},[0==e.发布状态标识?i("van-button",{staticClass:"btn",attrs:{block:"",round:"",plain:"",type:"info"},on:{click:function(n){return t.handle_("Issue",e)}}},[t._v("发布")]):t._e(),1==e.发布状态标识?i("van-button",{staticClass:"btn",attrs:{block:"",round:"",plain:"",type:"info"},on:{click:function(n){return t.handle_("revocation",e)}}},[t._v("撤回")]):t._e()],1)],1)],1)],1)})),0)],1)],1)],1)},o=[],s=(n("4de4"),n("159b"),n("5319"),n("ac1f"),n("326e")),a={data:function(){return{title:"",type_name:"",type_id:"",refreshing:!1,finished:!1,loading:!1,list:[],searchValue:"",pageIndex:1,pageSize:5,showPopover_title:!1,actions_title:[],status_title:{text:"列表",value:""},showPopover:!1,actions:[],status:{text:"全部",value:""}}},created:function(){var t=this;Object(s["c"])().then((function(e){t.actions_title=[{text:"列表",value:""}],e.filter((function(e){t.actions_title.push({text:e.field_02,value:e.field_02})}))}))},methods:{goDetail:function(t,e){"1"!=e?this.$router.push({path:"/form",query:{status:"edit",id:t}}):this.$notify({type:"danger",message:"请先撤回再编辑"})},handle_:function(t,e){var n=this,i={id:e.id};"Issue"==t&&(i.发布状态标识="1"),"revocation"==t&&(i.发布状态标识="0"),this.$dialog.confirm({title:"提示",message:"Issue"==t?"是否发布此新闻":"是否撤销此新闻"}).then((function(){Object(s["f"])(i).then((function(i){console.log(t),"Issue"==t&&(n.$toast("发布成功"),n.sendPush(e)),"revocation"==t&&n.$toast("撤回成功"),n.list=[],n.onRefresh()}))})).catch((function(){}))},sendPush:function(t){var e;"asc"==sessionStorage.getItem("wx-news-type")&&(e=window.location.protocol+"//"+window.location.host+"/wx_news/wx/sso.html"),"aic"==sessionStorage.getItem("wx-news-type")&&(e=window.location.protocol+"//"+window.location.host+"/eicrs/Home/wxAccInt?Redirect="+window.location.protocol+"//"+window.location.host+"/WxAIC/AICNotice/wxacc.ashx?links=~/showContent.aspx?id="+t.id);var n={news_id:t.id,title:"您有一条新的 《通知消息》",content:t.标题,curl:e,remark:""};Object(s["h"])(n);t.id,t.标题},onRefresh:function(){this.finished=!1,this.loading=!0,this.pageIndex=1,this.onLoad()},onLoad:function(){var t=this;this.actions=[{text:"全部",value:""},{text:"待发布",value:0},{text:"已发布",value:1}],Object(s["g"])({column:this.status_title.value,state:this.status.value,query:this.searchValue,pageIndex:this.pageIndex,pageSize:this.pageSize}).then((function(e){setTimeout((function(){if(t.refreshing&&(t.list=[],t.refreshing=!1),0==e.data.length)return t.finished=!0,void(t.refreshing=!1);e.data.forEach((function(e){t.list.push(e)})),t.pageIndex++,t.loading=!1}),500),console.log("this.pageIndex",t.pageIndex)}))},doSearch:function(t){this.pageIndex=1,this.list=[],this.finished=!1,this.loading=!0,this.onLoad()},onClickLeft:function(){this.$router.replace("/")},onSelect:function(t){console.log(t),this.pageIndex=1,this.list=[],this.finished=!1,this.loading=!0,this.status=t,this.onLoad()},onSelect_title:function(t){console.log(t),this.pageIndex=1,this.list=[],this.finished=!1,this.loading=!0,this.status_title=t,this.onLoad()}}},r=a,c=(n("7ac0"),n("2877")),l=Object(c["a"])(r,i,o,!1,null,"3bd4b948",null);e["default"]=l.exports}}]);
\ No newline at end of file
......@@ -202,7 +202,7 @@ export default {
//////////////消息推送,手机短信////////////
sendPush(data){
var curl;
if(sessionStorage.getItem('wx-news-type')=='asc') curl = window.location.protocol + "//" + window.location.host + "/wx_news/wx/sso.html";
if(sessionStorage.getItem('wx-news-type')=='asc') curl = window.location.protocol + "//" + window.location.host + "/wx/eicrs/Home/wxAccInt?Redirect=" + window.location.protocol + "//" + window.location.host + "/wx/wxaic/Teacher/AICNotice/SSO/sso.html?id=" + data.id;
if(sessionStorage.getItem('wx-news-type')=='aic') curl = window.location.protocol + "//" + window.location.host + "/eicrs/Home/wxAccInt?Redirect=" + window.location.protocol + "//" + window.location.host + "/WxAIC/AICNotice/wxacc.ashx?links=~/showContent.aspx?id=" + data.id;
//推送
var json={
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或