chunk-9afa31b0.bcae5c07.js.map 22 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/common/detail.vue?1769","webpack:///src/views/common/detail.vue","webpack:///./src/views/common/detail.vue?7207","webpack:///./src/views/common/detail.vue","webpack:///./src/views/common/detail.vue?12b0"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","data","name","on","$event","$router","go","staticStyle","text","_e","journal","journaluser_realname","journaluser_phone","style","workflow_records","length","_l","item","index","key","class","flow_index","color","ctime","nativeOn","step","record_id","desc","post_status","journal_fourface","downloadFourFace","word","imageChange","file","filelist","handleRemove","journal_fourface_list","ref","show_record","post","staticRenderFns","components","temp","active","title","open","query","list","form","progress","role","review_remark","review_attach","url","img_list","methods","$api","id","getData","i","push","$message","error","getWorkflow","then","res","flow","flag","forEach","review","form1","addWorkflow","code","tmp_fourface_list","mounted","$route","created","localStorage","getItem","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACE,YAAY,QAAQ,CAACF,EAAG,gBAAgB,CAACG,MAAM,CAAC,UAAY,MAAM,CAACH,EAAG,qBAAqB,CAACJ,EAAIQ,GAAG,UAAUJ,EAAG,qBAAqB,CAACJ,EAAIQ,GAAG,UAAUJ,EAAG,qBAAqB,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,KAAKC,UAAU,GAAGP,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,QAAQK,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIc,QAAQC,IAAI,MAAM,CAACf,EAAIQ,GAAG,QAASR,EAAQ,KAAEI,EAAG,KAAK,CAACE,YAAY,WAAWU,YAAY,CAAC,OAAS,WAAW,CAAChB,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIiB,SAASjB,EAA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AAR,iBACQ,IAAIiE,EAAO,EAAnB,sBAIQ,IAHKC,GAAQD,IACX,EAAV,uBAEYA,EAAM,CACRA,EAAO,EAAjB,gCACU,EAAV,wBACU,IAAK,IAAf,mBACgBP,GAAK,EAArB,WACcO,EAAKP,GAAGrC,MAAQ,UAEhB4C,EAAKP,GAAGrC,MAAQ,GAGpB,EAAV,wBAEA,8BACU2C,EAAIhE,KAAKA,KAAK4B,iBAAiBuC,SAAQ,SAAjD,GACY,IAAZ,qBACY,EAAZ,4BACclE,KAAd,EACcmD,IAAd,WAOIgB,OAtGJ,WAsGA,WACUrB,EAAOxD,KAAK8E,MAChBtB,EAAKG,cAAgB3D,KAAK2D,cAC1BH,EAAKI,cAAgB5D,KAAK4D,cAC1B5D,KAAKgE,KAAKe,YAAYvB,GAAMgB,MAAK,SAAvC,GAC6B,GAAjBC,EAAIhE,KAAKuE,MACX,EAAV,2CACU,EAAV,gBAEU,EAAV,mCAIIjC,KAnHJ,SAmHA,cAQA,KACM/C,KAAK4C,sBAAsBgC,SAAQ,SAAzC,GACQ,EAAR,eAEMpB,EAAKnB,iBAAmB4C,EAMxBjF,KAAKgE,KAAKe,YAAYvB,GAAMgB,MAAK,SAAvC,GAC6B,GAAjBC,EAAIhE,KAAKuE,MACX,EAAV,2CACU,EAAV,gBAEU,EAAV,oCAKEE,QA7KF,WA8KQlF,KAAKmF,OAAO7B,MAAMW,KACpBjE,KAAKsD,MAAMW,GAAKjE,KAAKmF,OAAO7B,MAAMW,GAClCjE,KAAKkE,YAGTkB,QAnLF,WAoLIpF,KAAK0D,KAAO2B,aAAaC,QAAQ,UCnV8Z,I,wBCQ/bC,EAAY,eACd,EACAzF,EACAkD,GACA,EACA,KACA,KACA,MAIa,aAAAuC,E,2CCnBf,W","file":"js/chunk-9afa31b0.bcae5c07.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"tjfx\"},[_c('el-breadcrumb',{attrs:{\"separator\":\"/\"}},[_c('el-breadcrumb-item',[_vm._v(\"审读管理\")]),_c('el-breadcrumb-item',[_vm._v(\"四封审读\")]),_c('el-breadcrumb-item',[_vm._v(_vm._s(_vm.data.name))])],1),_c('div',{staticClass:\"content\"},[_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.$router.go(-1)}}},[_vm._v(\"返回\")]),(_vm.text)?_c('h1',{staticClass:\"sh_title\",staticStyle:{\"margin\":\"10vh 0\"}},[_vm._v(_vm._s(_vm.text))]):_vm._e(),(_vm.data.id)?_c('h1',{staticClass:\"sh_title\"},[_vm._v(_vm._s(_vm.data.name))]):_vm._e(),(_vm.data.id)?_c('el-row',{staticStyle:{\"padding\":\"10px\"}},[_c('el-col',{staticStyle:{\"background\":\"#f5f5f5\",\"padding\":\"10px\"},attrs:{\"span\":6}},[_vm._v(\"\\n 期刊名称: \"+_vm._s(_vm.data.journal)),_c('br'),_c('br'),_vm._v(\"\\n 期刊负责人: \"+_vm._s(_vm.data.journaluser_realname)),_c('br'),_c('br'),_vm._v(\"\\n 负责人电话:\"+_vm._s(_vm.data.journaluser_phone)),_c('br'),_c('br'),_c('b',[_vm._v(\"审读工作流程:\")]),_c('br'),_c('br'),(_vm.data.workflow_records)?_c('div',{style:('height:' + _vm.data.workflow_records.length * 100 + 'px')},[_c('el-timeline',_vm._l((_vm.data.workflow_records),function(item,index){return _c('el-timeline-item',{key:index,class:_vm.flow_index == index ? 'active' : '',staticStyle:{\"cursor\":\"pointer\"},attrs:{\"color\":item.color,\"timestamp\":item.ctime},nativeOn:{\"click\":function($event){return _vm.step(item.record_id, index)}}},[_vm._v(\"\\n \"+_vm._s(item.desc)+\"\\n \")])}),1)],1):_vm._e()]),_c('el-col',{staticClass:\"wj\",attrs:{\"span\":18}},[(_vm.data.post_status>0&&_vm.data.journal_fourface&&_vm.data.journal_fourface.length>0)?_c('div',[_c('p',[_vm._v(\"\\n \"+_vm._s(_vm.data.journal)+\"四封图片:   \\n \"),(_vm.data.post_status > 0)?_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.downloadFourFace(_vm.data)}}},[_vm._v(\"下载四封图片\")]):_vm._e()],1),_c('br'),(_vm.data.journal_fourface)?_c('ul',_vm._l((_vm.data.journal_fourface),function(item,index){return _c('li',{key:index},[_c('el-image',{staticStyle:{\"width\":\"100px\"},attrs:{\"src\":item,\"preview-src-list\":_vm.data.journal_fourface}}),_c('br'),_vm._v(\"\\n \"+_vm._s(_vm.word[index])+\"\\n \")],1)}),0):_vm._e()]):_c('div',[_c('p',[_vm._v(\"上传期刊四封图片:\")]),_c('br'),_c('el-upload',{attrs:{\"action\":\"/api/admin/uploadfile\",\"list-type\":\"picture-card\",\"on-success\":_vm.imageChange,\"on-remove\":function (file, filelist) { return _vm.handleRemove(file, filelist); },\"file-list\":_vm.journal_fourface_list}},[_c('i',{staticClass:\"el-icon-plus\"})])],1),_c('temp',{ref:\"temp\",attrs:{\"show_record\":_vm.show_record,\"show_head\":true,\"info\":_vm.data},on:{\"post\":_vm.post}})],1)],1):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang='scss'>\r\n.sh_title {\r\n font-size: 28px;\r\n text-align: center;\r\n padding: 0 0 30px;\r\n font-weight: 300;\r\n color: #333;\r\n}\r\n.wj {\r\n padding-left: 20px;\r\n & > p {\r\n color: #666;\r\n margin-bottom: 10px;\r\n }\r\n li {\r\n display: inline-block;\r\n list-style: none;\r\n text-align: center;\r\n color: #999;\r\n margin-right: 20px;\r\n margin-bottom: 20px;\r\n img {\r\n border: 1px solid #409eff;\r\n }\r\n }\r\n .el-icon-question {\r\n font-size: 20px;\r\n color: #409eff;\r\n position: relative;\r\n top: 2px;\r\n }\r\n .result {\r\n border: 2px solid #ddd;\r\n border-radius: 5px;\r\n padding: 10px;\r\n margin: 20px 0 0;\r\n }\r\n .reresult {\r\n background: #f7f8fc;\r\n padding: 10px;\r\n margin-top: 10px;\r\n line-height: 32px;\r\n p {\r\n color: #666;\r\n }\r\n .result {\r\n margin: 0;\r\n }\r\n }\r\n}\r\n.el-timeline-item {\r\n padding-top: 10px;\r\n}\r\n.el-timeline-item.active {\r\n background: #edebeb;\r\n // padding-top: 10px;\r\n border-radius: 4px;\r\n}\r\n</style>\r\n<template>\r\n <!-- 详情 -->\r\n <section class=\"tjfx\">\r\n <el-breadcrumb separator=\"/\">\r\n <el-breadcrumb-item>审读管理</el-breadcrumb-item>\r\n <el-breadcrumb-item>四封审读</el-breadcrumb-item>\r\n <el-breadcrumb-item>{{ data.name }}</el-breadcrumb-item>\r\n </el-breadcrumb>\r\n <div class=\"content\">\r\n <el-button type=\"text\" @click=\"$router.go(-1)\">返回</el-button>\r\n <h1 v-if=\"text\" class=\"sh_title\" style=\"margin: 10vh 0\">{{ text }}</h1>\r\n <h1 v-if=\"data.id\" class=\"sh_title\">{{ data.name }}</h1>\r\n <el-row v-if=\"data.id\" style=\"padding: 10px\">\r\n <el-col :span=\"6\" style=\"background: #f5f5f5; padding: 10px\">\r\n 期刊名称: {{ data.journal }}<br /><br />\r\n 期刊负责人: {{ data.journaluser_realname }}<br /><br />\r\n 负责人电话:{{ data.journaluser_phone }}<br /><br />\r\n <b>审读工作流程:</b><br /><br />\r\n <div\r\n v-if=\"data.workflow_records\"\r\n :style=\"'height:' + data.workflow_records.length * 100 + 'px'\"\r\n >\r\n <el-timeline>\r\n <el-timeline-item\r\n style=\"cursor: pointer\"\r\n v-for=\"(item, index) in data.workflow_records\"\r\n :class=\"flow_index == index ? 'active' : ''\"\r\n :key=\"index\"\r\n :color=\"item.color\"\r\n @click.native=\"step(item.record_id, index)\"\r\n :timestamp=\"item.ctime\"\r\n >\r\n {{ item.desc }}\r\n </el-timeline-item>\r\n </el-timeline>\r\n </div>\r\n </el-col>\r\n <el-col :span=\"18\" class=\"wj\">\r\n <div v-if=\"data.post_status>0&&data.journal_fourface&&data.journal_fourface.length>0\">\r\n <p>\r\n {{ data.journal }}四封图片: &nbsp;&nbsp;\r\n <el-button\r\n v-if=\"data.post_status > 0\"\r\n type=\"primary\"\r\n size=\"mini\"\r\n @click=\"downloadFourFace(data)\"\r\n >下载四封图片</el-button\r\n >\r\n </p>\r\n <br />\r\n <ul v-if=\"data.journal_fourface\">\r\n <li v-for=\"(item, index) in data.journal_fourface\" :key=\"index\">\r\n <el-image\r\n style=\"width: 100px\"\r\n :src=\"item\"\r\n :preview-src-list=\"data.journal_fourface\"\r\n >\r\n </el-image\r\n ><br />\r\n {{ word[index] }}\r\n </li>\r\n </ul>\r\n </div>\r\n <div v-else>\r\n <p>上传期刊四封图片:</p>\r\n <br />\r\n <el-upload\r\n action=\"/api/admin/uploadfile\"\r\n list-type=\"picture-card\"\r\n :on-success=\"imageChange\"\r\n :on-remove=\"(file, filelist) => handleRemove(file, filelist)\"\r\n :file-list = \"journal_fourface_list\"\r\n >\r\n <i class=\"el-icon-plus\"></i>\r\n </el-upload>\r\n </div>\r\n <temp\r\n ref=\"temp\"\r\n :show_record=\"show_record\"\r\n @post=\"post\"\r\n :show_head=\"true\"\r\n :info=\"data\"\r\n />\r\n <!-- <div style=\"text-align:center;\">\r\n <el-button v-if='data.post_status==0' type=\"primary\" @click=\"post\">提交</el-button>\r\n </div> -->\r\n\r\n <!-- <div class=\"reresult\">\r\n 审核退回原因:\r\n <p>专家组长1:2020-01-01 10:10:20 </p>\r\n <p>原因详见每题下边的批注信息</p>\r\n </div> -->\r\n </el-col>\r\n </el-row>\r\n </div>\r\n </section>\r\n</template>\r\n\r\n<script>\r\nimport temp from \"../../components/template\";\r\nexport default {\r\n components: {\r\n temp,\r\n },\r\n data() {\r\n return {\r\n text: \"\",\r\n active: 0,\r\n title: \"申请复检原因\",\r\n word: [\"一\", \"二\", \"三\", \"四\"],\r\n open: false,\r\n query: { record_id: -1 },\r\n list: [],\r\n form: { name: \"\" },\r\n progress: 1,\r\n data: {},\r\n journal_fourface: [],\r\n journal_fourface_list: [],\r\n role: \"\",\r\n review_remark: \"\",\r\n review_attach: \"\",\r\n show_record: false,\r\n flow_index: 999,\r\n url:\r\n \"https://tederen.oss-cn-shanghai.aliyuncs.com/Axure/zhongkeyuan/03_2021/sifengshendu_04_jb/images/%E9%A2%84%E8%A7%88%E5%B0%81%E5%9B%9B1/u2979.jpg\",\r\n img_list: [\r\n \"https://tederen.oss-cn-shanghai.aliyuncs.com/Axure/zhongkeyuan/03_2021/sifengshendu_04_jb/images/%E9%A2%84%E8%A7%88%E5%B0%81%E5%9B%9B1/u2979.jpg\",\r\n ],\r\n };\r\n },\r\n methods: {\r\n downloadFourFace(data) {\r\n this.$api\r\n .downloadFourFace({\r\n journal:data.journal,\r\n journal_fourface:data.journal_fourface\r\n })\r\n .then((res) => {\r\n var elink = document.createElement(\"a\");\r\n let blob = new Blob([res.data], {\r\n type: \"application/zip,charset=UTF-8\",\r\n });\r\n let objUrl = URL.createObjectURL(blob);\r\n let file_name = decodeURIComponent(\r\n res.headers[\"content-disposition\"].split(\"=\")[1]\r\n );\r\n console.log(file_name);\r\n elink.download = file_name;\r\n elink.style.display = \"none\";\r\n elink.href = objUrl;\r\n document.body.appendChild(elink);\r\n elink.click();\r\n document.body.removeChild(elink);\r\n this.download_loading = false;\r\n });\r\n },\r\n step(id, index) {\r\n this.flow_index = index;\r\n this.query.record_id = id;\r\n this.getData(1);\r\n if(!this.data.workflow_records){\r\n return false\r\n }\r\n let i = this.data.workflow_records.length - 1;\r\n if (this.data.workflow_records[i].record_id == id) {\r\n this.show_record = false;\r\n } else {\r\n this.show_record = true;\r\n }\r\n },\r\n //图片上传\r\n handleRemove(file, filelist) {\r\n // let imgs = [];\r\n // for (let i = 0; i < filelist.length; i++) {\r\n // imgs.push(filelist[i].response.data);\r\n // }\r\n // this.journal_fourface = imgs;\r\n\r\n this.journal_fourface_list = filelist\r\n },\r\n imageChange(data) {\r\n // if (this.journal_fourface.length < 4) {\r\n // this.journal_fourface.push(data.data);\r\n // } else {\r\n // this.$message.error(\"只能上传4张封面\");\r\n // }\r\n if (this.journal_fourface_list.length < 10) {\r\n let name = data.data.split(\"/\").pop()\r\n let url = data.data\r\n this.journal_fourface_list.push({\r\n name:name,\r\n url:url\r\n });\r\n } else {\r\n this.$message.error(\"只能上传4张封面\");\r\n }\r\n },\r\n getData(flag) {\r\n this.$api.getWorkflow(this.query).then((res) => {\r\n if (!res.data.data) {\r\n this.text = \"-暂无数据-\";\r\n return false;\r\n }\r\n this.data = res.data.data;\r\n var flow = this.data.workflow_records;\r\n if (!flag && flow) {\r\n this.flow_index = flow.length - 1;\r\n }\r\n if (flow) {\r\n flow = this.data.workflow_records.reverse();\r\n this.data.workflow_records = flow;\r\n for (let i = 0; i < flow.length; i++) {\r\n if (i == this.flow_index) {\r\n flow[i].color = \"#0bbd87\";\r\n } else {\r\n flow[i].color = \"\";\r\n }\r\n }\r\n this.data.workflow_records = flow;\r\n }\r\n if(res.data.data.journal_fourface){\r\n res.data.data.journal_fourface.forEach((item)=>{\r\n let name = item.split(\"/\").pop()\r\n this.journal_fourface_list.push({\r\n name:name,\r\n url:item\r\n })\r\n })\r\n }\r\n });\r\n },\r\n\r\n review() {\r\n var form = this.form1;\r\n form.review_remark = this.review_remark;\r\n form.review_attach = this.review_attach;\r\n this.$api.addWorkflow(form).then((res) => {\r\n if (res.data.code == 0) {\r\n this.$message({ message: \"申请成功!\", type: \"success\" });\r\n this.$router.go(-1);\r\n } else {\r\n this.$message.error(res.data.message);\r\n }\r\n });\r\n },\r\n post(form) {\r\n // if (this.data.journal_fourface&&this.data.journal_fourface.length>0) {\r\n // form.journal_fourface = this.data.journal_fourface;\r\n // } else {\r\n // form.journal_fourface = this.journal_fourface;\r\n // }\r\n\r\n // 组装journal_fourface\r\n let tmp_fourface_list = []\r\n this.journal_fourface_list.forEach((item)=>{\r\n tmp_fourface_list.push(item.url)\r\n })\r\n form.journal_fourface = tmp_fourface_list\r\n\r\n // if(form.journal_fourface.length<4 && this.role == 1){\r\n // this.$message.error('请上传4张封面图片');\r\n // return false;\r\n // }\r\n this.$api.addWorkflow(form).then((res) => {\r\n if (res.data.code == 0) {\r\n this.$message({ message: \"操作成功!\", type: \"success\" });\r\n this.$router.go(-1);\r\n } else {\r\n this.$message.error(res.data.message);\r\n }\r\n });\r\n },\r\n },\r\n mounted() {\r\n if (this.$route.query.id) {\r\n this.query.id = this.$route.query.id;\r\n this.getData();\r\n }\r\n },\r\n created() {\r\n this.role = localStorage.getItem(\"role\");\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!./detail.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!./detail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./detail.vue?vue&type=template&id=02916fb4&\"\nimport script from \"./detail.vue?vue&type=script&lang=js&\"\nexport * from \"./detail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./detail.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","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!./detail.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}