(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-690f7c5b"],{"80b2":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e._m(0),a("div",{staticClass:"content"},[a("el-form",{ref:"form",staticClass:"over_y",attrs:{size:"small","label-width":"140px",model:e.form,rules:e.rules}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"期刊名称:",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入期刊名称",clearable:""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"微信号:",prop:"wxcode"}},[a("el-input",{attrs:{placeholder:"请输入微信号",clearable:""},model:{value:e.form.wxcode,callback:function(t){e.$set(e.form,"wxcode",t)},expression:"form.wxcode"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"中文名称:",prop:"cname"}},[a("el-input",{attrs:{placeholder:"请输入中文名称",clearable:""},model:{value:e.form.cname,callback:function(t){e.$set(e.form,"cname",t)},expression:"form.cname"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"外文名称:",prop:"ename"}},[a("el-input",{attrs:{placeholder:"请输入外文名称",clearable:""},model:{value:e.form.ename,callback:function(t){e.$set(e.form,"ename",t)},expression:"form.ename"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"主办单位:",prop:"organizer_id"}},[a("el-select",{attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.organizer_id,callback:function(t){e.$set(e.form,"organizer_id",t)},expression:"form.organizer_id"}},e._l(e.organizerList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"学科:",prop:"subject_id"}},[a("el-select",{attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.subject_id,callback:function(t){e.$set(e.form,"subject_id",t)},expression:"form.subject_id"}},e._l(e.subjectList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"语种:",prop:"languages"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.form.languages,callback:function(t){e.$set(e.form,"languages",t)},expression:"form.languages"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"出版时间:",prop:"publishingTime"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.form.publishingTime,callback:function(t){e.$set(e.form,"publishingTime",t)},expression:"form.publishingTime"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"主编:",prop:"editor"}},[a("el-input",{attrs:{placeholder:"请输入期刊名称",clearable:""},model:{value:e.form.editor,callback:function(t){e.$set(e.form,"editor",t)},expression:"form.editor"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"主管单位:",prop:"corganizers"}},[a("el-input",{attrs:{placeholder:"请输入主管单位",clearable:""},model:{value:e.form.corganizers,callback:function(t){e.$set(e.form,"corganizers",t)},expression:"form.corganizers"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"办刊单位:",prop:"publishingUnit"}},[a("el-input",{attrs:{placeholder:"请输入期刊名称",clearable:""},model:{value:e.form.publishingUnit,callback:function(t){e.$set(e.form,"publishingUnit",t)},expression:"form.publishingUnit"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"创刊时间:",prop:""}},[a("el-input",{attrs:{placeholder:"请输入期刊名称",clearable:""},model:{value:e.form.publishingTime,callback:function(t){e.$set(e.form,"publishingTime",t)},expression:"form.publishingTime"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"出版周期:",prop:"publishingCycle"}},[a("el-input",{attrs:{placeholder:"请输入出版周期",clearable:""},model:{value:e.form.publishingCycle,callback:function(t){e.$set(e.form,"publishingCycle",t)},expression:"form.publishingCycle"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"国内刊号:",prop:"domestic"}},[a("el-input",{attrs:{placeholder:"请输入国内刊号",clearable:""},model:{value:e.form.domestic,callback:function(t){e.$set(e.form,"domestic",t)},expression:"form.domestic"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"国际刊号:",prop:"issn"}},[a("el-input",{attrs:{placeholder:"请输入国际刊号",clearable:""},model:{value:e.form.issn,callback:function(t){e.$set(e.form,"issn",t)},expression:"form.issn"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"期刊官网:",prop:"website"}},[a("el-input",{attrs:{placeholder:"请输入期刊官网",clearable:""},model:{value:e.form.website,callback:function(t){e.$set(e.form,"website",t)},expression:"form.website"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"编辑部地址:",prop:"editorialAddress"}},[a("el-input",{attrs:{placeholder:"请输入编辑部地址",clearable:""},model:{value:e.form.editorialAddress,callback:function(t){e.$set(e.form,"editorialAddress",t)},expression:"form.editorialAddress"}})],1)],1)],1),a("el-form-item",{attrs:{label:"文章简介:"}},[a("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入文章简介"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1),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":e.handleAvatarSuccess}},[e.form.img?a("img",{staticClass:"avatar",attrs:{src:e.form.img}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),a("span",{staticStyle:{"font-size":"12px",color:"#999999"}},[e._v("建议图片尺寸为:210*160")])],1),a("el-form-item",{staticStyle:{position:"fixed",bottom:"20px",right:"60px"}},[a("el-button",{attrs:{type:"primary"}},[e._v("预览")]),a("el-button",{attrs:{type:"success"}},[e._v("发布")]),a("el-button",{attrs:{type:"default"},on:{click:e.save}},[e._v("保存")])],1)],1)],1)])},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("span",[e._v("刊群导览>")]),e._v("新增期刊")])}],s=a("5d89"),o={components:{fuEditor:s["a"]},data:function(){return{form:{},subjectList:[],organizerList:[],imageUrl:"",rules:{name:[{required:!0,message:"请输入标题",trigger:"blur"}],journal_id:[{required:!0,message:"请选择来源",trigger:"change"}],author:[{required:!0,message:"请选择模板",trigger:"blur"}],publish_time:[{required:!0,message:"发布时间",trigger:"blur"}],img:[{required:!0,message:"封面图",trigger:"blur"}]}}},methods:{handleAvatarSuccess:function(e,t){this.form.img=t.response.data,console.log(this.form.img)},handleAvatarSuccess1:function(e,t,a){var r=this.form.speaker[e];r.img=a.response.data,this.$set(this.form.speaker,e,r)},beforeAvatarUpload:function(){},handleClick:function(){},addSpeaker:function(){this.form.speaker.push({name:"",intruduce:""})},gopage:function(e){e&&(this.form.page_size=e),this.form.page=this.$refs.pageButton.page,this.getData()},getData:function(){var e=this;this.loading=!0,this.$api.searchSubjectList().then((function(t){e.subjectList=t.data.data})),this.$api.searchOrganizerList().then((function(t){e.organizerList=t.data.data}));var t=this.$route.query.id;t&&this.$api.getJournal({id:t}).then((function(t){e.form=t.data.data}))},save:function(){var e=this,t=this.$route.query.id,a=this.form;this.$refs["form"].validate((function(r){r?t?(a.id=t,e.$api.updateJournal(a).then((function(t){0==t.data.code?e.$message({type:"success",message:"保存成功!"}):e.$message.error("保存失败!")}))):e.$api.addJournal(a).then((function(t){0==t.data.code?e.$message({type:"success",message:"保存成功!"}):e.$message.error("保存失败!")})):e.$message.error("有必填项没有填!")}))},del:function(e){var t=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){t.$api.delJournal({id:e}).then((function(e){t.$message({message:"删除成功",type:"success"}),t.getData()}))}))}},created:function(){this.getData()}},i=o,n=(a("8d8b"),a("5d22")),c=Object(n["a"])(i,r,l,!1,null,"02605f79",null);t["default"]=c.exports},"8d8b":function(e,t,a){"use strict";a("eeb2")},eeb2:function(e,t,a){}}]); //# sourceMappingURL=chunk-690f7c5b.a10b5165.js.map