chunk-599f6235.797ccf61.js 18 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-599f6235"],{"0353":function(e,t,a){"use strict";var i=a("6bf8"),n=RegExp.prototype.exec,s=String.prototype.replace,l=n,r="lastIndex",o=function(){var e=/a/,t=/b*/g;return n.call(e,"a"),n.call(t,"a"),0!==e[r]||0!==t[r]}(),c=void 0!==/()??/.exec("")[1],u=o||c;u&&(l=function(e){var t,a,l,u,d=this;return c&&(a=new RegExp("^"+d.source+"$(?!\\s)",i.call(d))),o&&(t=d[r]),l=n.call(d,e),o&&l&&(d[r]=d.global?l.index+l[0].length:t),c&&l&&l.length>1&&s.call(l[0],a,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(l[u]=void 0)})),l}),e.exports=l},"129d":function(e,t,a){"use strict";a("a210")},1663:function(e,t,a){var i=a("212e"),n=a("3ab0");e.exports=function(e){return function(t,a){var s,l,r=String(n(t)),o=i(a),c=r.length;return o<0||o>=c?e?"":void 0:(s=r.charCodeAt(o),s<55296||s>56319||o+1===c||(l=r.charCodeAt(o+1))<56320||l>57343?e?r.charAt(o):s:e?r.slice(o,o+2):l-56320+(s-55296<<10)+65536)}}},"1bc78":function(e,t,a){for(var i=a("25ba"),n=a("93ca"),s=a("84e8"),l=a("0b34"),r=a("065d"),o=a("953d"),c=a("839a"),u=c("iterator"),d=c("toStringTag"),f=o.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=n(p),m=0;m<g.length;m++){var h,v=g[m],b=p[v],_=l[v],y=_&&_.prototype;if(y&&(y[u]||r(y,u,f),y[d]||r(y,d,v),o[v]=f,b))for(h in i)y[h]||s(y,h,i[h],!0)}},"43ec":function(e,t,a){"use strict";var i=a("1663")(!0);e.exports=function(e,t,a){return t+(a?i(e,t).length:1)}},"4bdf":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e._m(0),a("div",{staticClass:"content"},[a("div",{staticClass:"filter"},[a("el-form",{attrs:{size:"small","label-width":"70px",inline:!0,"label-position":"left"}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入标题"},on:{clear:e.getData},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.openDiag}},[e._v("发送消息")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.list,height:"50vh",border:"","default-expand-all":"","row-key":"id"}},[a("el-table-column",{attrs:{prop:"name",label:"标题"}}),a("el-table-column",{attrs:{prop:"name",label:"附件"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.fileurl,(function(t,i){return a("a",{key:i,attrs:{href:t.url,target:"_blank"}},[a("span",[e._v(e._s(t.name))]),a("br")])}))}}])}),a("el-table-column",{attrs:{prop:"cname",label:"消息查阅统计"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.receiver_ids?a("span",[e._v("共统计:\n "),a("a",{attrs:{target:"_blank"},on:{click:function(a){return e.analyseData("total",t.row.id)}}},[a("span",[e._v(e._s(t.row.receiver_ids?t.row.receiver_ids.length:0))])]),e._v("人"),a("br")]):e._e(),e._v("\n 已阅读:"),a("a",{attrs:{target:"_blank"},on:{click:function(a){return e.analyseData("finish",t.row.id)}}},[a("span",[e._v(e._s(t.row.finish_ids?t.row.finish_ids.length:0))])]),e._v("人"),a("br"),t.row.receiver_ids?a("span",[e._v("\n 未阅读:"),a("a",{attrs:{target:"_blank"},on:{click:function(a){return e.analyseData("unfinish",t.row.id)}}},[a("span",[e._v(e._s(t.row.unfinish_ids.length))])]),e._v("人"),a("br")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"cname",label:"发送者"}}),a("el-table-column",{attrs:{prop:"ctime",label:"发送时间"}}),a("el-table-column",{attrs:{prop:"zip",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticClass:"edit",attrs:{type:"text"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编辑")]),a("el-button",{staticClass:"del",attrs:{type:"text"},on:{click:function(a){return e.del(t.row.id)}}},[e._v("删除")])]}}])})],1),a("Page",{ref:"pageButton",attrs:{current:e.form.page,page_size:e.form.page_size,total:e.total},on:{pageChange:e.gopage}})],1),a("el-dialog",{staticClass:"fu-dialog",attrs:{title:e.dialogTitle,"close-on-click-modal":!1,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"form1",staticClass:"preview",attrs:{size:"small",inline:!1,"label-width":"80px",model:e.form1,rules:e.rules}},[a("el-form-item",{attrs:{label:"标题",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入标题",maxlength:"50","show-word-limit":""},model:{value:e.form1.name,callback:function(t){e.$set(e.form1,"name",t)},expression:"form1.name"}})],1),a("el-form-item",{attrs:{label:"接收人",prop:"receiver_id"}},[a("el-cascader",{attrs:{options:e.options,props:e.props,filterable:"",clearable:""},on:{change:e.handleChange},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,n=t.data;return[a("span",[e._v(e._s(n.label))]),i.isLeaf?e._e():a("span",[e._v(" ("+e._s(n.children.length)+") ")])]}}]),model:{value:e.form1.receiver_id,callback:function(t){e.$set(e.form1,"receiver_id",t)},expression:"form1.receiver_id"}})],1),a("el-form-item",{attrs:{label:"消息内容",prop:"content"}},[a("fuEditor",{attrs:{isClear:!1},on:{change:e.changeEditor},model:{value:e.form1.content,callback:function(t){e.$set(e.form1,"content",t)},expression:"form1.content"}})],1),a("el-form-item",{attrs:{label:"附件"}},[a("el-upload",{staticClass:"upload-demo",attrs:{action:"/api/admin/uploadfile",multiple:"",limit:5,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"file-list":e.fileList}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1),a("span",[a("a",{attrs:{href:e.form1.fileurl,target:"_blank"}},[a("span",[e._v(e._s(e.form1.filename))])]),a("i",{directives:[{name:"show",rawName:"v-show",value:e.form1.filename,expression:"form1.filename"}],staticClass:"el-icon-circle-close",staticStyle:{"margin-left":"10px",color:"#409eff"},on:{click:e.clearFilename}})])],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:e.dialogTitle2,"close-on-click-modal":!1,visible:e.dialogVisible2},on:{"update:visible":function(t){e.dialogVisible2=t}}},[a("div",{staticClass:"content"},[a("div",{staticClass:"filter"},[a("el-form",{attrs:{size:"small","label-width":"70px",inline:!0,"label-position":"left"}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入标题"},on:{clear:e.search1},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search1(t)}},model:{value:e.form1.name,callback:function(t){e.$set(e.form1,"name",t)},expression:"form1.name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.search1}},[e._v("搜索")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadExcel}},[e._v("导出Excel")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.analyseDataList,height:"50vh",border:"","default-expand-all":"","row-key":"id"}},[a("el-table-column",{attrs:{prop:"realname",label:"姓名"}}),a("el-table-column",{attrs:{prop:"journal_name",label:"所属期刊"}}),a("el-table-column",{attrs:{prop:"cname",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.post_status?a("span",[e._v("已阅读")]):a("span",[e._v("未阅读")])]}}])}),a("el-table-column",{attrs:{prop:"post_time",label:"查阅时间"}})],1),a("Page",{ref:"pageButton",attrs:{current:e.form.page,page_size:e.form.page_size,total:e.total},on:{pageChange:e.gopage}})],1)]),a("el-dialog",{staticClass:"result_dialog",attrs:{title:e.dialogTitle3,"close-on-click-modal":!1,visible:e.dialogVisible3},on:{"update:visible":function(t){e.dialogVisible3=t}}},[a("div",{staticClass:"content"},[e._l(this.postResult,(function(t,i){return a("div",{key:i,staticClass:"result-item"},[a("span",{staticClass:"label"},[e._v(e._s(i)+":")]),a("span",{staticClass:"value"},[e._v(e._s(t))])])})),0==Object.keys(e.postResult).length?a("div",[e._v("暂无数据")]):e._e()],2)])],1)},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("span",[e._v("信息管理>")]),e._v("消息管理")])}],s=(a("1bc78"),a("a450"),a("fc02"),a("9973")),l=a("5d89"),r={components:{Page:s["a"],fuEditor:l["a"]},data:function(){return{fileList:[],cur_message_id:null,cur_post_type:null,postResult:{},analyseDataList:[],title:"",widgetList:[],form:{name:"",page:1,page_size:20},form1:{},form2:{},total:1,list:[{name:"2333"}],loading:!1,input:"",dialogVisible:!1,dialogVisible1:!1,dialogVisible2:!1,dialogVisible3:!1,dialogTitle:"",dialogTitle2:"",dialogTitle3:"",defaultProps:{},data:[],templateList:[],userList:[],checkList:[],rules:{name:[{required:!0,message:"请输入标题",trigger:"blur"}],receiver_id:[{required:!0,message:"请选择接收人",trigger:"change"}],content:[{required:!0,message:"请输入消息内容",trigger:"change"}]},props:{multiple:!0},options:[]}},methods:{handleRemove:function(e,t){var a=this.fileList.indexOf(e);this.fileList.splice(a,1)},handleUploadSuccess:function(e,t,a){this.fileList.push(e.data)},clearFilename:function(){this.form1.filename="",document.getElementById("fileurl").value=""},changeEditor:function(e){this.form1.content=e},showMessageAnalyse:function(){this.$router.push({path:"/message/message/analyse"})},downloadExcel:function(){var e=this;this.$api.downloadNoticeAnalyse({id:this.cur_message_id,type:this.cur_post_type}).then((function(t){var a=document.createElement("a"),i=new Blob([t.data],{type:"application/vnd.ms-excel,charset=UTF-8"}),n=URL.createObjectURL(i),s=decodeURIComponent(t.headers["content-disposition"].split("=")[1]);console.log(s),a.download=s,a.style.display="none",a.href=n,document.body.appendChild(a),a.click(),document.body.removeChild(a),e.download_loading=!1}))},showPostResult:function(e){this.postResult=e.post_result,this.dialogTitle3="填报结果",this.dialogVisible3=!0},analyseData:function(e,t){var a=this;this.form1={};var i=this.form1;i.type=e,i.id=t,this.dialogTitle2="统计结果",this.dialogVisible2=!0,this.$api.getNoticeAnalyse(i).then((function(i){a.analyseDataList=i.data.data.list,a.cur_message_id=t,a.cur_post_type=e}))},handleSuccess:function(e,t){this.form2[e.data.type]=e.data.url},change:function(e,t){this.form2[t]=e},changeMul:function(e,t){this.form2[t]=e},showSurvey:function(e){var t=this,a=this;this.title=e.name,this.message_id=e.id,this.$api.getMessageInfo({id:e.id}).then((function(e){0==e.data.code&&(t.widgetList=e.data.data.widget,t.widgetList.forEach((function(e){"checkbox"==e.type&&a.$set(a.form2,e.label,[])})),console.log(t.form2),t.dialogVisible1=!0)}))},upload:function(e){var t=this,a=document.getElementById(e).files,i=new FormData;i.append("file",a[0]),this.$api.uploadFile(i).then((function(a){0==a.data.code?(t.$set(t.form1,e,a.data.data.url),t.$set(t.form1,"filename",a.data.data.name),t.$message({message:"上传成功!",type:"success"})):t.$message.error(a.data.message)}))},handleChange:function(e){console.log(e)},search:function(){this.form;this.getData()},search1:function(){this.analyseData(this.cur_post_type,this.cur_message_id)},openDiag:function(){this.form1={},this.fileList=[],this.dialogVisible=!0,this.dialogTitle="发送消息"},gopage:function(e){e&&(this.form.page_size=e),this.form.page=this.$refs.pageButton.page,this.getData()},getData:function(){var e=this,t=this.form;this.loading=!0,this.$api.getAllSysUserList().then((function(t){e.userList=t.data.data})),this.$api.getNoticeList(t).then((function(t){e.list=t.data.data.list,e.total=t.data.data.total,e.loading=!1})),this.$api.getMessageReceiverList().then((function(t){e.options=t.data.data}))},del:function(e){var t=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){t.$api.delNotice({id:e}).then((function(e){t.$message({message:"删除成功",type:"success"}),t.getData()}))}))},edit:function(e){var t=this;this.$api.getNoticeInfo({id:e.id}).then((function(e){t.form1=e.data.data,t.fileList=e.data.data.fileurl,t.dialogTitle="编辑消息";var a=t.form1.receiver_id;"string"==typeof a&&(a=JSON.parse(a)),t.form1.receiver_id=a,t.dialogVisible=!0}))},saveResult:function(){var e=this,t=JSON.stringify(this.form2);this.$api.saveSurveyResult({message_id:this.message_id,result:t}).then((function(t){0==t.data.code?e.$message({type:"success",message:"保存成功!"}):e.$message.error("保存失败!"),e.dialogVisible1=!1}))},save:function(){var e=this;this.$refs["form1"].validate((function(t){if(t){var a=e.form1,i=e.form1.id;a.fileurl=JSON.stringify(e.fileList),a.receiver_id=JSON.stringify(a.receiver_id),i?e.$api.editNotice(a).then((function(t){0==t.data.code?e.$message({type:"success",message:"保存成功!"}):e.$message.error("保存失败!"),e.getData(),e.dialogVisible=!1})):e.$api.addNotice(a).then((function(t){0==t.data.code?e.$message({type:"success",message:"保存成功!"}):e.$message.error("保存失败!"),e.getData(),e.dialogVisible=!1}))}}))}},created:function(){this.getData()}},o=r,c=(a("5b2a"),a("5d22")),u=Object(c["a"])(o,i,n,!1,null,null,null);t["default"]=u.exports},"5b2a":function(e,t,a){"use strict";a("65a0")},"65a0":function(e,t,a){},"6bf8":function(e,t,a){"use strict";var i=a("a86f");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"804d":function(e,t,a){var i=a("9cff"),n=a("cea2"),s=a("839a")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==n(e))}},9973:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-pagination",{attrs:{background:"","page-size":e.page_size?e.page_size:20,"current-page":e.current,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"total,sizes,prev, pager, next",total:e.total},on:{"current-change":e.getData,"size-change":e.handleSizeChange}})},n=[],s={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(e){this.page=e,this.$emit("pageChange")},handleSizeChange:function(e){this.$emit("pageChange",e)}},created:function(){}},l=s,r=(a("129d"),a("5d22")),o=Object(r["a"])(l,i,n,!1,null,null,null);t["a"]=o.exports},a210:function(e,t,a){},a450:function(e,t,a){var i=a("bb8b").f,n=Function.prototype,s=/^\s*function ([^ (]*)/,l="name";l in n||a("26df")&&i(n,l,{configurable:!0,get:function(){try{return(""+this).match(s)[1]}catch(e){return""}}})},bf73:function(e,t,a){"use strict";var i=a("0353");a("e99b")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},c46f:function(e,t,a){"use strict";a("bf73");var i=a("84e8"),n=a("065d"),s=a("0926"),l=a("3ab0"),r=a("839a"),o=a("0353"),c=r("species"),u=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var a="ab".split(e);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();e.exports=function(e,t,a){var f=r(e),p=!s((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),g=p?!s((function(){var t=!1,a=/a/;return a.exec=function(){return t=!0,null},"split"===e&&(a.constructor={},a.constructor[c]=function(){return a}),a[f](""),!t})):void 0;if(!p||!g||"replace"===e&&!u||"split"===e&&!d){var m=/./[f],h=a(l,f,""[e],(function(e,t,a,i,n){return t.exec===o?p&&!n?{done:!0,value:m.call(t,a,i)}:{done:!0,value:e.call(a,t,i)}:{done:!1}})),v=h[0],b=h[1];i(String.prototype,e,v),n(RegExp.prototype,f,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},f417:function(e,t,a){"use strict";var i=a("d445"),n=RegExp.prototype.exec;e.exports=function(e,t){var a=e.exec;if("function"===typeof a){var s=a.call(e,t);if("object"!==typeof s)throw new TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return n.call(e,t)}},fc02:function(e,t,a){"use strict";var i=a("804d"),n=a("a86f"),s=a("1b0b"),l=a("43ec"),r=a("201c"),o=a("f417"),c=a("0353"),u=a("0926"),d=Math.min,f=[].push,p="split",g="length",m="lastIndex",h=4294967295,v=!u((function(){RegExp(h,"y")}));a("c46f")("split",2,(function(e,t,a,u){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[g]||2!="ab"[p](/(?:ab)*/)[g]||4!="."[p](/(.?)(.?)/)[g]||"."[p](/()()/)[g]>1||""[p](/.?/)[g]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return a.call(n,e,t);var s,l,r,o=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=void 0===t?h:t>>>0,v=new RegExp(e.source,u+"g");while(s=c.call(v,n)){if(l=v[m],l>d&&(o.push(n.slice(d,s.index)),s[g]>1&&s.index<n[g]&&f.apply(o,s.slice(1)),r=s[0][g],d=l,o[g]>=p))break;v[m]===s.index&&v[m]++}return d===n[g]?!r&&v.test("")||o.push(""):o.push(n.slice(d)),o[g]>p?o.slice(0,p):o}:"0"[p](void 0,0)[g]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,i){var n=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,n,i):b.call(String(n),a,i)},function(e,t){var i=u(b,e,this,t,b!==a);if(i.done)return i.value;var c=n(e),f=String(this),p=s(c,RegExp),g=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),_=new p(v?c:"^(?:"+c.source+")",m),y=void 0===t?h:t>>>0;if(0===y)return[];if(0===f.length)return null===o(_,f)?[f]:[];var x=0,w=0,k=[];while(w<f.length){_.lastIndex=v?w:0;var L,S=o(_,v?f:f.slice(w));if(null===S||(L=d(r(_.lastIndex+(v?0:w)),f.length))===x)w=l(f,w,g);else{if(k.push(f.slice(x,w)),k.length===y)return k;for(var C=1;C<=S.length-1;C++)if(k.push(S[C]),k.length===y)return k;w=x=L}}return k.push(f.slice(x)),k}]}))}}]);
  2. //# sourceMappingURL=chunk-599f6235.797ccf61.js.map