(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d8fba54"],{"0353":function(t,e,a){"use strict";var i=a("6bf8"),n=RegExp.prototype.exec,l=String.prototype.replace,o=n,r="lastIndex",s=function(){var t=/a/,e=/b*/g;return n.call(t,"a"),n.call(e,"a"),0!==t[r]||0!==e[r]}(),c=void 0!==/()??/.exec("")[1],u=s||c;u&&(o=function(t){var e,a,o,u,p=this;return c&&(a=new RegExp("^"+p.source+"$(?!\\s)",i.call(p))),s&&(e=p[r]),o=n.call(p,t),s&&o&&(p[r]=p.global?o.index+o[0].length:e),c&&o&&o.length>1&&l.call(o[0],a,(function(){for(u=1;u=c?t?"":void 0:(l=r.charCodeAt(s),l<55296||l>56319||s+1===c||(o=r.charCodeAt(s+1))<56320||o>57343?t?r.charAt(s):l:t?r.slice(s,s+2):o-56320+(l-55296<<10)+65536)}}},"43ec":function(t,e,a){"use strict";var i=a("1663")(!0);t.exports=function(t,e,a){return e+(a?i(t,e).length:1)}},"5d1e":function(t,e,a){"use strict";a("d559")},"5d5f":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",[a("p",[t._v("中科院全刊")]),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:t.getData},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.search}},[t._v("搜索")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{plain:"",icon:"el-icon-upload",type:"primary"},on:{click:function(e){t.dialogVisible1=!0}}},[t._v("导入")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{plain:"",icon:"el-icon-download",type:"primary"},on:{click:t.download}},[t._v("导出")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("添加期刊")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.list,height:"50vh",border:"","default-expand-all":"","row-key":"id"}},[a("el-table-column",{attrs:{prop:"img",label:"期刊封面"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("img",{attrs:{src:t.row.img,alt:"",height:"80",width:"60"}})]}}])}),a("el-table-column",{attrs:{prop:"name",width:"180",label:"期刊名称"}}),a("el-table-column",{attrs:{prop:"wxcode",label:"微信号"}}),a("el-table-column",{attrs:{prop:"subject_name",label:"主办单位"}}),a("el-table-column",{attrs:{prop:"desc",width:"300",label:"简介"}}),a("el-table-column",{attrs:{prop:"name",label:"中文名称"}}),a("el-table-column",{attrs:{prop:"ename",label:"外文名称"}}),a("el-table-column",{attrs:{prop:"languages",label:"语种"}}),a("el-table-column",{attrs:{prop:"editor",label:"主编"}}),a("el-table-column",{attrs:{prop:"corganizers",label:"主管单位"}}),a("el-table-column",{attrs:{prop:"publishingUnit",label:"办刊单位"}}),a("el-table-column",{attrs:{prop:"publishingTime",label:"创刊时间"}}),a("el-table-column",{attrs:{prop:"domestic",label:"国内刊号"}}),a("el-table-column",{attrs:{prop:"issn",label:"国际刊号"}}),a("el-table-column",{attrs:{prop:"website",label:"期刊官网"}}),a("el-table-column",{attrs:{prop:"editorialAddress",label:"编辑部地址"}}),a("el-table-column",{attrs:{prop:"zip",width:"150",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.showQrcode(e.row)}}},[t._v("二维码上传")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.showJournal(e.row)}}},[t._v("查看")]),a("el-button",{staticClass:"edit",attrs:{type:"text"},on:{click:function(a){return t.edit(e.row)}}},[t._v("编辑")]),a("el-button",{staticClass:"del",attrs:{type:"text"},on:{click:t.del}},[t._v("删除")])]}}])})],1),a("Page",{ref:"pageButton",attrs:{current:t.form.page,page_size:t.form.page_size,total:t.total},on:{pageChange:t.gopage}}),a("el-dialog",{staticClass:"fu-dialog",attrs:{title:t.dialogTitle,"close-on-click-modal":!1,visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{ref:"form1",staticClass:"preview",attrs:{size:"small",inline:!1,"label-width":"100px",model:t.form1}},[a("el-form-item",{attrs:{label:"上传二维码:",prop:"img"}},[a("el-upload",{staticClass:"avatar-uploader",attrs:{action:"/api/admin/uploadfile","show-file-list":!1,"on-success":t.handleAvatarSuccess}},[t.form1.qrcode?a("img",{staticClass:"avatar",attrs:{src:t.form1.qrcode}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),a("span",{staticStyle:{"font-size":"12px",color:"#999999"}},[t._v("建议图片尺寸为:210*160")])],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small",type:"normal"},on:{click:function(e){t.dialogVisible=!1,this.form1={}}}},[t._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)],1),a("el-dialog",{staticClass:"fu-dialog",attrs:{title:"导入期刊",width:"400px","close-on-click-modal":!1,visible:t.dialogVisible1},on:{"update:visible":function(e){t.dialogVisible1=e}}},[a("el-upload",{staticClass:"upload-demo",attrs:{action:"/api/admin/uploadfile","show-file-list":!1,"on-success":t.handleAvatarSuccess1}},[a("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("只能上传.xls/.xlsx文件,且不超过500M")])],1),a("div",[t._v(t._s(t.file))]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small",type:"normal"},on:{click:function(e){t.dialogVisible1=!1}}},[t._v("取消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.upload}},[t._v("确 定")])],1)],1)],1)])},n=[],l=(a("fc02"),a("9973")),o={components:{Page:l["a"]},data:function(){return{form:{name:"",page:1,page_size:20},total:1,list:[{name:"2333"}],loading:!1,input:"",dialogVisible:!1,dialogTitle:"",dialogVisible1:!1,form1:{},file:""}},methods:{save:function(){var t=this;this.$refs["form1"].validate((function(e){if(e){var a=t.form1;t.form1.id;t.$api.updateJournal(a).then((function(e){0==e.data.code&&(t.$message({type:"success",message:"保存成功!"}),t.getData()),t.dialogVisible=!1}))}}))},upload:function(){var t=this;this.$api.upJournalData({file:this.file}).then((function(e){t.dialogVisible1=!1,t.getData(),t.$message({message:"上传成功",type:"success"})}))},download:function(){this.$api.getJournalData().then((function(t){var e=document.createElement("a"),a=new Blob([t.data],{type:"application/vnd.ms-excel,charset=UTF-8"}),i=URL.createObjectURL(a),n=decodeURIComponent(t.headers["content-disposition"].split("=")[1]);console.log(n),e.download=n,e.style.display="none",e.href=i,document.body.appendChild(e),e.click(),document.body.removeChild(e)}))},showQrcode:function(t){this.form1.journal_id=t.journal_id,this.form1.id=t.id,this.form1.qrcode=t.qrcode,this.dialogVisible=!0},showJournal:function(t){this.$router.push({path:"/journal/journal/show",query:{id:t.id}})},handleAvatarSuccess:function(t,e){this.$set(this.form1,"qrcode",e.response.data)},handleAvatarSuccess1:function(t,e){this.file=e.response.data},gopage:function(t){t&&(this.form.page_size=t),this.form.page=this.$refs.pageButton.page,this.getData()},edit:function(t){this.$router.push({path:"/journal/journal/add",query:{id:t.id}})},add:function(){this.$router.push({path:"/journal/journal/add"})},detail:function(t){this.$router.push({path:"/company/detail",query:{id:t,page:this.form.page,page_size:this.form.page_size}})},search:function(){this.getData()},getData:function(){var t=this,e=this.form;this.loading=!0,this.$api.getJournalList(e).then((function(e){t.list=e.data.data.list,t.total=e.data.data.total,t.loading=!1}))},del:function(t){var e=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){e.$api.deleteEnterprise({id:t}).then((function(t){e.$message({message:"删除成功",type:"success"}),e.getData()}))}))}},created:function(){this.getData()}},r=o,s=(a("5d1e"),a("5d22")),c=Object(s["a"])(r,i,n,!1,null,"9d601cb8",null);e["default"]=c.exports},"6bf8":function(t,e,a){"use strict";var i=a("a86f");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"804d":function(t,e,a){var i=a("9cff"),n=a("cea2"),l=a("839a")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[l])?!!e:"RegExp"==n(t))}},9973:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-pagination",{attrs:{background:"","page-size":t.page_size?t.page_size:20,"current-page":t.current,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"total,sizes,prev, pager, next",total:t.total},on:{"current-change":t.getData,"size-change":t.handleSizeChange}})},n=[],l={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(t){this.page=t,this.$emit("pageChange")},handleSizeChange:function(t){this.$emit("pageChange",t)}},created:function(){}},o=l,r=(a("129d"),a("5d22")),s=Object(r["a"])(o,i,n,!1,null,null,null);e["a"]=s.exports},a210:function(t,e,a){},bf73:function(t,e,a){"use strict";var i=a("0353");a("e99b")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},c46f:function(t,e,a){"use strict";a("bf73");var i=a("84e8"),n=a("065d"),l=a("0926"),o=a("3ab0"),r=a("839a"),s=a("0353"),c=r("species"),u=!l((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),p=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var a="ab".split(t);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();t.exports=function(t,e,a){var d=r(t),f=!l((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),g=f?!l((function(){var e=!1,a=/a/;return a.exec=function(){return e=!0,null},"split"===t&&(a.constructor={},a.constructor[c]=function(){return a}),a[d](""),!e})):void 0;if(!f||!g||"replace"===t&&!u||"split"===t&&!p){var h=/./[d],m=a(o,d,""[t],(function(t,e,a,i,n){return e.exec===s?f&&!n?{done:!0,value:h.call(e,a,i)}:{done:!0,value:t.call(a,e,i)}:{done:!1}})),b=m[0],v=m[1];i(String.prototype,t,b),n(RegExp.prototype,d,2==e?function(t,e){return v.call(t,this,e)}:function(t){return v.call(t,this)})}}},d559:function(t,e,a){},f417:function(t,e,a){"use strict";var i=a("d445"),n=RegExp.prototype.exec;t.exports=function(t,e){var a=t.exec;if("function"===typeof a){var l=a.call(t,e);if("object"!==typeof l)throw new TypeError("RegExp exec method returned something other than an Object or null");return l}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return n.call(t,e)}},fc02:function(t,e,a){"use strict";var i=a("804d"),n=a("a86f"),l=a("1b0b"),o=a("43ec"),r=a("201c"),s=a("f417"),c=a("0353"),u=a("0926"),p=Math.min,d=[].push,f="split",g="length",h="lastIndex",m=4294967295,b=!u((function(){RegExp(m,"y")}));a("c46f")("split",2,(function(t,e,a,u){var v;return v="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[g]||2!="ab"[f](/(?:ab)*/)[g]||4!="."[f](/(.?)(.?)/)[g]||"."[f](/()()/)[g]>1||""[f](/.?/)[g]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return a.call(n,t,e);var l,o,r,s=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,f=void 0===e?m:e>>>0,b=new RegExp(t.source,u+"g");while(l=c.call(b,n)){if(o=b[h],o>p&&(s.push(n.slice(p,l.index)),l[g]>1&&l.index=f))break;b[h]===l.index&&b[h]++}return p===n[g]?!r&&b.test("")||s.push(""):s.push(n.slice(p)),s[g]>f?s.slice(0,f):s}:"0"[f](void 0,0)[g]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,i){var n=t(this),l=void 0==a?void 0:a[e];return void 0!==l?l.call(a,n,i):v.call(String(n),a,i)},function(t,e){var i=u(v,t,this,e,v!==a);if(i.done)return i.value;var c=n(t),d=String(this),f=l(c,RegExp),g=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(b?"y":"g"),x=new f(b?c:"^(?:"+c.source+")",h),y=void 0===e?m:e>>>0;if(0===y)return[];if(0===d.length)return null===s(x,d)?[d]:[];var w=0,_=0,C=[];while(_