(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a002b6c"],{1019:function(t,e,a){"use strict";a("42b6")},"129d":function(t,e,a){"use strict";a("a210")},"42b6":function(t,e,a){},"5d5f":function(t,e,a){"use strict";a.r(e);var l=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:{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(e){t.dialogVisible=!0}}},[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}})],1)])},n=[],i=a("9973"),o={components:{Page:i["a"]},data:function(){return{form:{name:"",page:1,page_size:20},total:1,list:[{name:"2333"}],loading:!1,input:""}},methods:{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("1019"),a("5d22")),c=Object(s["a"])(r,l,n,!1,null,null,null);e["default"]=c.exports},9973:function(t,e,a){"use strict";var l=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=[],i={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=i,r=(a("129d"),a("5d22")),s=Object(r["a"])(o,l,n,!1,null,null,null);e["a"]=s.exports},a210:function(t,e,a){}}]); //# sourceMappingURL=chunk-2a002b6c.981ebff1.js.map