chunk-0a9f3f7d.faa75e64.js.map 24 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/journalQun/Subject.vue?bfec","webpack:///./src/components/Page.vue?61f7","webpack:///./src/components/Page.vue?5a44","webpack:///src/components/Page.vue","webpack:///./src/components/Page.vue?7e0d","webpack:///./src/components/Page.vue","webpack:///./src/views/journalQun/Subject.vue?1ca7","webpack:///src/views/journalQun/Subject.vue","webpack:///./src/views/journalQun/Subject.vue?e0f1","webpack:///./src/views/journalQun/Subject.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","page_size","current","total","on","getData","handleSizeChange","staticRenderFns","component","_m","staticClass","model","value","form","callback","$$v","$set","expression","search","_v","staticStyle","add","directives","name","rawName","list","scopedSlots","_u","key","fn","scope","$event","edit","row","del","id","ref","page","gopage","dialogTitle","dialogVisible","form1","rules","slot","save","components","Page","fuEditor","data","loading","desc","methods","handleAvatarSuccess","img","file","response","console","log","addArticle","size","$refs","pageButton","parm","$api","getSubjectList","then","res","$confirm","type","message","validate","valid","receiver_id","JSON","stringify","code","created"],"mappings":"kHAAA,W,oCCAA,W,2DCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gBAAgB,CAACE,MAAM,CAAC,WAAa,GAAG,YAAYN,EAAIO,UAAUP,EAAIO,UAAU,GAAG,eAAeP,EAAIQ,QAAQ,aAAa,CAAC,GAAG,GAAI,GAAI,GAAI,GAAG,GAAG,GAAG,GAAG,GAAG,KAAK,OAAS,gCAAgC,MAAQR,EAAIS,OAAOC,GAAG,CAAC,iBAAiBV,EAAIW,QAAQ,cAAcX,EAAIY,qBAC7WC,EAAkB,GCwBtB,GACE,KADF,WAEI,MAAJ,CACM,KAAN,IAGE,MAAF,CACI,MAAJ,GACI,UAAJ,GACI,QAAJ,IAEE,QAAF,CACI,QADJ,SACA,GAMM,KAAN,OACM,KAAN,qBAEI,iBA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extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Subject.vue?vue&type=style&index=0&id=193c1b9a&lang=scss&scoped=true&\"","export * from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/_vue-loader@15.9.6@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Page.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-pagination',{attrs:{\"background\":\"\",\"page-size\":_vm.page_size?_vm.page_size:20,\"current-page\":_vm.current,\"page-sizes\":[10,20, 30, 40, 50,60,70,80,90,100],\"layout\":\"total,sizes,prev, pager, next\",\"total\":_vm.total},on:{\"current-change\":_vm.getData,\"size-change\":_vm.handleSizeChange}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n @import '../style/style.scss';\r\n .el-pagination{\r\n li,button{\r\n border: 1px solid #CACACA !important;\r\n background-color: #fff !important;\r\n }\r\n .active{\r\n border:none !important;\r\n background: #3895FE !important;\r\n }\r\n }\r\n</style>\r\n<template>\r\n <el-pagination\r\n @current-change=\"getData\"\r\n background :page-size='page_size?page_size:20'\r\n @size-change=\"handleSizeChange\"\r\n :current-page=\"current\"\r\n :page-sizes=\"[10,20, 30, 40, 50,60,70,80,90,100]\"\r\n layout=\"total,sizes,prev, pager, next\"\r\n :total=\"total\">\r\n </el-pagination>\r\n</template>\r\n<script>\r\nexport default {\r\n data(){\r\n return{\r\n page:1\r\n }\r\n },\r\n props: {\r\n total:'',\r\n page_size:'',\r\n current:''\r\n },\r\n methods:{\r\n getData(type){\r\n // if(type == 1){\r\n // this.data.pageNumber=this.data.pageNumber-1\r\n // }else if(type == 2){\r\n // this.data.pageNumber=this.data.pageNumber+1\r\n // }\r\n this.page=type\r\n this.$emit('pageChange')\r\n },\r\n handleSizeChange(val){\r\n this.$emit('pageChange',val)\r\n }\r\n },\r\n created(){\r\n }\r\n}\r\n</script>","import mod from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Page.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Page.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Page.vue?vue&type=template&id=df237d3a&\"\nimport script from \"./Page.vue?vue&type=script&lang=js&\"\nexport * from \"./Page.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Page.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/_vue-loader@15.9.6@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_vm._m(0),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"filter\"},[_c('el-form',{attrs:{\"size\":\"small\",\"label-width\":\"70px\",\"inline\":true,\"label-position\":\"left\"}},[_c('el-form-item',{attrs:{\"label\":\"\"}},[_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"请输入标题\"},on:{\"clear\":_vm.getData},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.search}},[_vm._v(\"搜索\")])],1),_c('el-form-item',{staticStyle:{\"float\":\"right\"}},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.add}},[_vm._v(\"添加学科\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"table\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"height\":\"50vh\",\"border\":\"\",\"default-expand-all\":\"\",\"row-key\":\"id\"}},[_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"学科名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"desc\",\"label\":\"学科简介\",\"width\":\"1200px\"}}),_c('el-table-column',{attrs:{\"prop\":\"journal_name\",\"label\":\"期刊数量\"}}),_c('el-table-column',{attrs:{\"prop\":\"zip\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{staticClass:\"edit\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编辑\")]),_c('el-button',{staticClass:\"del\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.del(scope.row.id)}}},[_vm._v(\"删除\")])]}}])})],1),_c('Page',{ref:\"pageButton\",attrs:{\"current\":_vm.form.page,\"page_size\":_vm.form.page_size,\"total\":_vm.total},on:{\"pageChange\":_vm.gopage}})],1),_c('el-dialog',{staticClass:\"fu-dialog\",attrs:{\"title\":_vm.dialogTitle,\"close-on-click-modal\":false,\"visible\":_vm.dialogVisible},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{ref:\"form1\",staticClass:\"preview\",attrs:{\"size\":\"small\",\"inline\":false,\"label-width\":\"80px\",\"model\":_vm.form1,\"rules\":_vm.rules}},[_c('el-form-item',{attrs:{\"label\":\"学科名称\",\"prop\":\"name\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入学科名称\",\"maxlength\":\"50\",\"show-word-limit\":\"\"},model:{value:(_vm.form1.name),callback:function ($$v) {_vm.$set(_vm.form1, \"name\", $$v)},expression:\"form1.name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"学科简介\",\"prop\":\"desc\"}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入学科简介\"},model:{value:(_vm.form1.desc),callback:function ($$v) {_vm.$set(_vm.form1, \"desc\", $$v)},expression:\"form1.desc\"}})],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"确 定\")])],1)],1)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_c('span',[_vm._v(\"刊群导览>\")]),_vm._v(\"学科\")])}]\n\nexport { render, staticRenderFns }","<style lang=\"scss\" scoped>\r\n.preview {\r\n .el-form-item {\r\n margin-bottom: 15px;\r\n }\r\n label,\r\n p {\r\n line-height: 25px !important;\r\n }\r\n}\r\n.el-cascader {\r\n width: 100%;\r\n}\r\na {\r\n text-decoration: none;\r\n color: #409eff;\r\n cursor: pointer;\r\n}\r\n// 右边\r\n.item-main {\r\n // margin:34px;\r\n // height:600px;\r\n // background: #FFFFFF;\r\n border: 1px solid #dddddd;\r\n box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.13);\r\n border-radius: 20px;\r\n .el-form.over_y {\r\n max-height: calc(100vh - 340px);\r\n }\r\n /deep/.el-form-item__label {\r\n float: none;\r\n }\r\n}\r\n// label样式\r\n.edit_label {\r\n /deep/.el-input__inner {\r\n background: #f5faff;\r\n border: 0px;\r\n padding: 0px;\r\n }\r\n}\r\n/deep/.opicon {\r\n font-weight: bold;\r\n padding: 5px;\r\n color: #3895fe;\r\n}\r\n.tpl_title {\r\n font-size: 18px;\r\n margin: 20px 0;\r\n}\r\n.tpl_form {\r\n margin: 20px;\r\n border: 1px solid #ccc;\r\n border-radius: 20px;\r\n /deep/.el-form-item {\r\n background: none;\r\n }\r\n /deep/.el-form-item__content {\r\n width: 100%;\r\n }\r\n}\r\n.survey_logo {\r\n position: relative;\r\n top: 15px;\r\n left: 20px;\r\n}\r\n.result_dialog .el-dialog{\r\n width: 40%;\r\n margin-top:20vh!important;\r\n}\r\n.result-item{\r\n height: 35px;\r\n .label{\r\n font-weight: 600;\r\n }\r\n}\r\n// 上传\r\n\r\n/deep/.avatar-uploader .el-upload {\r\n width: 148px;\r\n height: 148px;\r\n line-height: 148px;\r\n border: 1px dashed #d9d9d9;\r\n border-radius: 6px;\r\n cursor: pointer;\r\n position: relative;\r\n overflow: hidden;\r\n .avatar {\r\n width: 100%;\r\n height: auto;\r\n }\r\n}\r\n.avatar-uploader .el-upload:hover {\r\n border-color: #409eff;\r\n}\r\n.avatar-uploader-icon {\r\n font-size: 28px;\r\n color: #8c939d;\r\n width: 68px;\r\n height: 68px;\r\n line-height: 68px;\r\n text-align: center;\r\n}\r\n.avatar {\r\n width: 68px;\r\n height: 68px;\r\n display: block;\r\n}\r\n/deep/.speaker_avatar .el-upload {\r\n width: 80px;\r\n height: 80px;\r\n line-height: 80px;\r\n}\r\n.hotel_imgs {\r\n /deep/.el-upload--picture-card {\r\n width: 79px;\r\n height: 79px;\r\n line-height: 79px;\r\n }\r\n}\r\n</style>\r\n<template>\r\n <section>\r\n <p><span>刊群导览></span>学科</p>\r\n <div class=\"content\">\r\n <div class=\"filter\">\r\n <el-form\r\n size=\"small\"\r\n label-width=\"70px\"\r\n :inline=\"true\"\r\n label-position=\"left\"\r\n >\r\n <el-form-item label=\"\">\r\n <el-input\r\n clearable\r\n placeholder=\"请输入标题\"\r\n v-model=\"form.name\"\r\n @clear=\"getData\"\r\n ></el-input>\r\n </el-form-item>\r\n <el-form-item>\r\n <el-button type=\"primary\" @click=\"search\">搜索</el-button>\r\n </el-form-item>\r\n <el-form-item style=\"float: right\">\r\n <el-button @click=\"add\" type=\"primary\">添加学科</el-button>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n <el-table\r\n class=\"table\"\r\n :data=\"list\"\r\n height=\"50vh\"\r\n border\r\n v-loading=\"loading\"\r\n default-expand-all\r\n row-key=\"id\"\r\n style=\"width: 100%\"\r\n >\r\n <el-table-column prop=\"name\" label=\"学科名称\"> </el-table-column>\r\n <el-table-column prop=\"desc\" label=\"学科简介\" width=\"1200px\"></el-table-column>\r\n <el-table-column prop=\"journal_name\" label=\"期刊数量\"></el-table-column>\r\n <el-table-column prop=\"zip\" width=\"150\" label=\"操作\">\r\n <template slot-scope=\"scope\">\r\n <el-button class=\"edit\" type=\"text\" @click=\"edit(scope.row)\"\r\n >编辑</el-button\r\n >\r\n <el-button class=\"del\" @click=\"del(scope.row.id)\" type=\"text\"\r\n >删除</el-button\r\n >\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <Page\r\n ref=\"pageButton\"\r\n :current=\"form.page\"\r\n :page_size=\"form.page_size\"\r\n :total=\"total\"\r\n @pageChange=\"gopage\"\r\n />\r\n </div>\r\n <!--新增编辑-->\r\n <el-dialog\r\n class='fu-dialog'\r\n :title=\"dialogTitle\"\r\n :close-on-click-modal=\"false\"\r\n :visible.sync=\"dialogVisible\"\r\n >\r\n <el-form\r\n size=\"small\"\r\n class=\"preview\"\r\n :inline=\"false\"\r\n label-width=\"80px\"\r\n :model=\"form1\"\r\n ref=\"form1\"\r\n :rules=\"rules\"\r\n >\r\n <el-form-item label=\"学科名称\" prop=\"name\">\r\n <el-input v-model=\"form1.name\" placeholder=\"请输入学科名称\" maxlength=\"50\" show-word-limit></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"学科简介\" prop=\"desc\">\r\n <el-input type=\"textarea\" v-model=\"form1.desc\" placeholder=\"请输入学科简介\"></el-input>\r\n </el-form-item>\r\n </el-form>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <el-button size=\"small\" type=\"primary\" @click=\"save\">确 定</el-button>\r\n </span>\r\n </el-dialog>\r\n </section>\r\n</template>\r\n<script>\r\nimport Page from \"../../components/Page\";\r\nimport fuEditor from '../../components/fuEditor'\r\nexport default {\r\n components: {\r\n Page,\r\n fuEditor\r\n },\r\n data() {\r\n return {\r\n form: { name: \"\", page: 1, page_size: 20 },\r\n total: 1,\r\n list: [{ name: \"2333\" }],\r\n loading: false,\r\n dialogTitle:\"\",\r\n dialogVisible:false,\r\n rules: {\r\n name: [{ required: true, message: \"请输入学科名称\", trigger: \"blur\" }],\r\n desc: [{ required: true, message: \"请输入学科简介\", trigger: \"blur\" }]\r\n },\r\n form1:{}\r\n };\r\n },\r\n methods: {\r\n //封面\r\n handleAvatarSuccess(res, file) {\r\n this.form1.img = file.response.data;\r\n console.log(this.form1.img);\r\n },\r\n search() {\r\n this.getData();\r\n },\r\n add() {\r\n this.form1 = {};\r\n this.dialogVisible = true;\r\n this.dialogTitle = \"添加主办单位\";\r\n },\r\n addArticle(){\r\n this.$router.push({path:'/article/article/add'})\r\n },\r\n gopage(size) {\r\n if (size) {\r\n this.form.page_size = size;\r\n }\r\n this.form.page = this.$refs.pageButton.page;\r\n this.getData();\r\n },\r\n getData() {\r\n var parm = this.form;\r\n this.loading = true;\r\n this.$api.getSubjectList(parm).then((res) => {\r\n console.log(res)\r\n this.list = res.data.data.list;\r\n this.loading = false;\r\n });\r\n },\r\n del(id) {\r\n this.$confirm(\"确定删除吗\", \"提示\", {\r\n type: \"warning\",\r\n }).then(() => {\r\n this.$api.delSubject({ id: id }).then((res) => {\r\n this.$message({\r\n message: \"删除成功\",\r\n type: \"success\",\r\n });\r\n this.getData();\r\n });\r\n });\r\n },\r\n edit(row) {\r\n this.form1 = row\r\n this.dialogVisible = true\r\n },\r\n save() {\r\n this.$refs[\"form1\"].validate((valid) => {\r\n if (valid) {\r\n let parm = this.form1;\r\n let id = this.form1.id;\r\n parm.receiver_id = JSON.stringify(parm.receiver_id);\r\n if (id) {\r\n this.$api.updateSubject(parm).then((res) => {\r\n if (res.data.code == 0) {\r\n this.$message({\r\n type: \"success\",\r\n message: \"保存成功!\",\r\n });\r\n } else {\r\n this.$message.error(\"保存失败!\");\r\n }\r\n this.getData();\r\n this.dialogVisible = false;\r\n });\r\n } else {\r\n this.$api.addSubject(parm).then((res) => {\r\n if (res.data.code == 0) {\r\n this.$message({\r\n type: \"success\",\r\n message: \"保存成功!\",\r\n });\r\n } else {\r\n this.$message.error(\"保存失败!\");\r\n }\r\n this.getData();\r\n this.dialogVisible = false;\r\n });\r\n }\r\n }\r\n });\r\n },\r\n },\r\n created() {\r\n this.getData();\r\n },\r\n};\r\n</script>\r\n","import mod from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Subject.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/index.js??vue-loader-options!./Subject.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Subject.vue?vue&type=template&id=193c1b9a&scoped=true&\"\nimport script from \"./Subject.vue?vue&type=script&lang=js&\"\nexport * from \"./Subject.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Subject.vue?vue&type=style&index=0&id=193c1b9a&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/_vue-loader@15.9.6@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"193c1b9a\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}