12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e77f1fec"],{"0353":function(e,t,a){"use strict";var n=a("6bf8"),r=RegExp.prototype.exec,i=String.prototype.replace,l=r,o="lastIndex",c=function(){var e=/a/,t=/b*/g;return r.call(e,"a"),r.call(t,"a"),0!==e[o]||0!==t[o]}(),s=void 0!==/()??/.exec("")[1],u=c||s;u&&(l=function(e){var t,a,l,u,p=this;return s&&(a=new RegExp("^"+p.source+"$(?!\\s)",n.call(p))),c&&(t=p[o]),l=r.call(p,e),c&&l&&(p[o]=p.global?l.index+l[0].length:t),s&&l&&l.length>1&&i.call(l[0],a,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(l[u]=void 0)})),l}),e.exports=l},"129d":function(e,t,a){"use strict";a("a210")},1663:function(e,t,a){var n=a("212e"),r=a("3ab0");e.exports=function(e){return function(t,a){var i,l,o=String(r(t)),c=n(a),s=o.length;return c<0||c>=s?e?"":void 0:(i=o.charCodeAt(c),i<55296||i>56319||c+1===s||(l=o.charCodeAt(c+1))<56320||l>57343?e?o.charAt(c):i:e?o.slice(c,c+2):l-56320+(i-55296<<10)+65536)}}},"21d9":function(e,t,a){var n=a("3a4c"),r=a("065e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},"27cd":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"person"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},["examiner_leader"!=e.cur?a("el-button",{staticStyle:{float:"right","margin-top":"5px"},attrs:{size:"mini",type:"info"},on:{click:e.all}},[e._v("全选")]):e._e(),"examiner"==e.cur?a("p",{staticClass:"title"},[e._v("专家库")]):a("p",{staticClass:"title"},[e._v("接收者")]),a("el-input",{attrs:{placeholder:"搜索","suffix-icon":"el-icon-search"},on:{input:e.getData},model:{value:e.query.realname,callback:function(t){e.$set(e.query,"realname",t)},expression:"query.realname"}}),a("ul",{staticClass:"people"},e._l(e.list,(function(t,n){return a("li",{key:n,on:{click:function(a){t.checked=!t.checked,e.id=t.id}}},[t.avatar?a("img",{attrs:{src:t.avatar,alt:""}}):e._e(),t.realname?a("font",[e._v(e._s(t.realname))]):a("font",[e._v(e._s(t.name))]),t.college?a("span",[e._v(e._s(t.college))]):e._e(),t.journal?a("span",[e._v(e._s(t.journal))]):e._e(),"examiner_leader"==e.cur?a("el-radio",{attrs:{label:t.id},model:{value:e.id,callback:function(t){e.id=t},expression:"id"}},[e._v(" ")]):a("el-checkbox",{model:{value:t.checked,callback:function(a){e.$set(t,"checked",a)},expression:"item.checked"}})],1)})),0)],1),"examiner_leader"!=e.cur?a("el-col",{attrs:{span:12}},[a("p",{staticClass:"title",staticStyle:{"margin-bottom":"50px"}},[e._v("已选 "),a("el-button",{staticStyle:{float:"right","margin-top":"5px"},attrs:{size:"mini",type:"info"},on:{click:e.clear}},[e._v("清除")])],1),a("ul",{staticClass:"people"},[e._l(e.list,(function(t,n){return[t.checked?a("li",{key:n},[t.avatar?a("img",{attrs:{src:t.avatar,alt:""}}):e._e(),t.realname?a("font",[e._v(e._s(t.realname))]):a("font",[e._v(e._s(t.name))]),t.college?a("span",[e._v(e._s(t.college))]):e._e(),t.journal?a("span",[e._v(e._s(t.journal))]):e._e(),a("i",{staticClass:"el-icon-error",on:{click:function(e){t.checked=!1}}})],1):e._e()]}))],2)]):e._e()],1)],1)},r=[],i=(a("fc02"),{props:{type:"",cur:"",cur_data:""},data:function(){return{search:"",query:{realname:""},checked:"",list:[],id:4,ids:[]}},watch:{type:function(e){this.id="",this.getData()},cur:function(e){this.id="",this.getData()},cur_data:function(e){e&&(console.log(e),"examiner_leader"==this.cur?this.id=parseInt(e):this.ids=e.split(","),this.getData())}},methods:{getData:function(){var e=this;1==this.type?this.$api.searchExamineList(this.query).then((function(t){var a=t.data.data;a=a||[];for(var n=0;n<a.length;n++)e.ids&&e.ids.indexOf(String(a[n].id))>=0?a[n].checked=!0:a[n].checked=!1;e.list=a})):this.$api.receiverList(this.query).then((function(t){var a=t.data.data;a=a||[],console.log(a);for(var n=0;n<a.length;n++)e.ids&&e.ids.indexOf(String(a[n].id))>=0?a[n].checked=!0:a[n].checked=!1;e.list=a}))},all:function(){for(var e=this.list,t=0;t<e.length;t++)this.$set(e[t],"checked",!0);this.list=e},clear:function(){for(var e=this.list,t=0;t<e.length;t++)this.$set(e[t],"checked",!1);this.list=e},submitForm:function(){for(var e,t=this.list,a=[],n=[],r=0;r<t.length;r++)t[r].checked&&(a.push(t[r].id),n.push(t[r].realname)),t[r].id==this.id&&(e=t[r].realname);return"examiner_leader"==this.cur?{id:String(this.id),name:e}:{id:a.join(","),name:n.join(",")}}},created:function(){this.cur_data&&this.cur_data.length>0&&("examiner_leader"==this.cur?this.id=parseInt(this.cur_data):this.ids=this.cur_data.split(",")),this.getData()}}),l=i,o=(a("f5bc"),a("5d22")),c=Object(o["a"])(l,n,r,!1,null,null,null);t["a"]=c.exports},"285b":function(e,t,a){var n=a("35d4"),r=a("5edc"),i=a("3471"),l=a("5d10"),o=a("4fd4"),c=a("83d3"),s=Object.getOwnPropertyDescriptor;t.f=a("26df")?s:function(e,t){if(e=i(e),t=l(t,!0),c)try{return s(e,t)}catch(a){}if(o(e,t))return r(!n.f.call(e,t),e[t])}},"43ec":function(e,t,a){"use strict";var n=a("1663")(!0);e.exports=function(e,t,a){return t+(a?n(e,t).length:1)}},"5dc3":function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},6948:function(e,t,a){},"6bf8":function(e,t,a){"use strict";var n=a("a86f");e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"6eba":function(e,t,a){"use strict";a("6948")},"804d":function(e,t,a){var n=a("9cff"),r=a("cea2"),i=a("839a")("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},9973:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-pagination",{attrs:{background:"","page-size":e.page_size?e.page_size:20,"current-page":e.current,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"total,sizes,prev, pager, next",total:e.total},on:{"current-change":e.getData,"size-change":e.handleSizeChange}})},r=[],i={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(e){console.log(e),this.page=e,this.$emit("pageChange")},handleSizeChange:function(e){this.$emit("pageChange",e)}},created:function(){}},l=i,o=(a("129d"),a("5d22")),c=Object(o["a"])(l,n,r,!1,null,null,null);t["a"]=c.exports},a210:function(e,t,a){},a83a:function(e,t,a){var n=a("9cff"),r=a("e0ff").set;e.exports=function(e,t,a){var i,l=t.constructor;return l!==a&&"function"==typeof l&&(i=l.prototype)!==a.prototype&&n(i)&&r&&r(e,i),e}},af18:function(e,t,a){},b722:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"sf"},[a("el-breadcrumb",{attrs:{separator:"/"}},[a("el-breadcrumb-item",[e._v("审读管理")]),a("el-breadcrumb-item",{attrs:{to:{path:"/index"}}},[e._v("四封审读")]),a("el-breadcrumb-item",[e._v("审核组成员")])],1),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",{staticClass:"input-with-select",attrs:{placeholder:"请输入内容"},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}},[a("el-select",{staticStyle:{width:"80px"},attrs:{slot:"prepend",placeholder:"帐号"},slot:"prepend",model:{value:e.query.type,callback:function(t){e.$set(e.query,"type",t)},expression:"query.type"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"帐号",value:"name"}}),a("el-option",{attrs:{label:"姓名",value:"realname"}}),a("el-option",{attrs:{label:"电话",value:"phone"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getData},slot:"append"})],1)],1),a("el-form-item",[a("el-select",{staticStyle:{width:"80px"},attrs:{clearable:"",placeholder:"性别"},on:{change:e.getData},model:{value:e.query.sex,callback:function(t){e.$set(e.query,"sex",t)},expression:"query.sex"}},[a("el-option",{attrs:{label:"男",value:"男"}}),a("el-option",{attrs:{label:"女",value:"女"}})],1)],1),a("el-form-item",[a("el-select",{staticStyle:{width:"130px"},attrs:{clearable:"",placeholder:"职称"},on:{change:e.getData},model:{value:e.query.title,callback:function(t){e.$set(e.query,"title",t)},expression:"query.title"}},[a("el-option",{attrs:{label:"编审",value:"编审"}}),a("el-option",{attrs:{label:"副编审",value:"副编审"}})],1)],1),a("el-form-item",[a("el-select",{staticStyle:{width:"130px"},attrs:{clearable:"",placeholder:"所属单位",filterable:""},on:{change:e.getData},model:{value:e.query.college,callback:function(t){e.$set(e.query,"college",t)},expression:"query.college"}},e._l(e.collegeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1)],1),a("el-form-item",[a("el-select",{staticStyle:{width:"150px"},attrs:{clearable:"",placeholder:"所属期刊",filterable:""},on:{change:e.getData},model:{value:e.query.journal,callback:function(t){e.$set(e.query,"journal",t)},expression:"query.journal"}},e._l(e.journalList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getData}},[e._v("搜索")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.open=!0,e.title="添加人员"}}},[e._v("添加人员")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,height:"59vh"}},[a("el-table-column",{attrs:{align:"center",label:"序号",prop:"id"}}),a("el-table-column",{attrs:{align:"center",label:"帐号",width:"120",prop:"name"}}),a("el-table-column",{attrs:{align:"center",label:"姓名",width:"120",prop:"realname"}}),a("el-table-column",{attrs:{align:"center",label:"性别",prop:"sex"}}),a("el-table-column",{attrs:{align:"center",label:"单位",prop:"college"}}),a("el-table-column",{attrs:{align:"center",label:"职称",prop:"title"}}),a("el-table-column",{attrs:{align:"center",label:"电话",prop:"phone"}}),a("el-table-column",{attrs:{align:"center",label:"邮箱",prop:"email"}}),a("el-table-column",{attrs:{align:"center",label:"权限",prop:"role"}}),a("el-table-column",{attrs:{align:"center",label:"所属期刊",prop:"journal"}}),a("el-table-column",{attrs:{align:"center",label:"劳务标准",prop:"wages"}}),a("el-table-column",{attrs:{width:"150",label:"审读工作统计",align:"center",prop:"createAt"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-view"},on:{click:function(a){return e.$router.push({path:"/group/analysis",query:{id:t.row.id}})}}},[e._v("\n 查看详情\n ")])]}}])}),a("el-table-column",{attrs:{align:"center",label:"添加时间",prop:""}}),a("el-table-column",{attrs:{label:"操作",width:"100",fixed:"right",align:"center",prop:"createAt"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"danger",size:"mini",disabled:"组长"==t.row.role},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),a("Page",{ref:"pageButton",attrs:{current:e.query.page,page_size:e.query.page_size,total:e.total},on:{pageChange:e.gopage}})],1),a("el-dialog",{attrs:{title:e.title,visible:e.open,width:"800px"},on:{"update:visible":function(t){e.open=t}}},[a("person",{ref:"per",attrs:{type:1}}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.open1=!1,e.sure()}}},[e._v("确 定")])],1)],1)],1)},r=[],i=(a("e680"),a("9973")),l=a("27cd"),o={components:{person:l["a"],Page:i["a"]},data:function(){return{loading:!1,total:0,query:{page:1,page_size:10},form:{},list:[{}],open:!1,open1:!1,title:"",rules:{name:[{required:!0,message:"标题不能为空",trigger:"blur"}]},collegeList:[],journalList:[]}},methods:{gopage:function(e){e&&(this.query.page_size=e),this.query.page=this.$refs.pageButton.page,this.getData()},sure:function(){var e=this,t={};t.worksheet_id=Number(this.query.id),t.examiner_id=this.$refs.per.submitForm().id,this.$api.addWorksheetexpert(t).then((function(t){0==t.data.code?(e.$message({message:"添加成功!",type:"success"}),e.getData(),e.open=!1):e.$message.error(t.data.message)}))},getData:function(){var e=this;this.$api.getJournalList({}).then((function(t){e.journalList=t.data.data})),this.$api.getCollegeList({}).then((function(t){e.collegeList=t.data.data})),this.loading=!0,this.$api.getWorkexpertList(this.query).then((function(t){e.list=t.data.data.list,e.total=t.data.data.total,e.loading=!1}))},handleDelete:function(e){var t=this;this.$confirm("确定删除吗?","提示",{type:"warning"}).then((function(){t.$api.delWorksheetexpert({worksheet_id:t.query.id,examiner_id:e.id}).then((function(e){t.getData(),t.$message({message:"删除成功!",type:"success"})}))}))}},created:function(){var e=this.$route.query.id;this.$route.query.id&&(this.query.id=e,this.getData())}},c=o,s=(a("6eba"),a("5d22")),u=Object(s["a"])(c,n,r,!1,null,null,null);t["default"]=u.exports},bf73:function(e,t,a){"use strict";var n=a("0353");a("e99b")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},c46f:function(e,t,a){"use strict";a("bf73");var n=a("84e8"),r=a("065d"),i=a("0926"),l=a("3ab0"),o=a("839a"),c=a("0353"),s=o("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),p=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var a="ab".split(e);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();e.exports=function(e,t,a){var f=o(e),d=!i((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),h=d?!i((function(){var t=!1,a=/a/;return a.exec=function(){return t=!0,null},"split"===e&&(a.constructor={},a.constructor[s]=function(){return a}),a[f](""),!t})):void 0;if(!d||!h||"replace"===e&&!u||"split"===e&&!p){var g=/./[f],v=a(l,f,""[e],(function(e,t,a,n,r){return t.exec===c?d&&!r?{done:!0,value:g.call(t,a,n)}:{done:!0,value:e.call(a,t,n)}:{done:!1}})),m=v[0],b=v[1];n(String.prototype,e,m),r(RegExp.prototype,f,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},e0ff:function(e,t,a){var n=a("9cff"),r=a("a86f"),i=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=a("1e4d")(Function.call,a("285b").f(Object.prototype,"__proto__").set,2),n(e,[]),t=!(e instanceof Array)}catch(r){t=!0}return function(e,a){return i(e,a),t?e.__proto__=a:n(e,a),e}}({},!1):void 0),check:i}},e680:function(e,t,a){"use strict";var n=a("0b34"),r=a("4fd4"),i=a("cea2"),l=a("a83a"),o=a("5d10"),c=a("0926"),s=a("21d9").f,u=a("285b").f,p=a("bb8b").f,f=a("eb34").trim,d="Number",h=n[d],g=h,v=h.prototype,m=i(a("7ee3")(v))==d,b="trim"in String.prototype,y=function(e){var t=o(e,!1);if("string"==typeof t&&t.length>2){t=b?t.trim():f(t,3);var a,n,r,i=t.charCodeAt(0);if(43===i||45===i){if(a=t.charCodeAt(2),88===a||120===a)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+t}for(var l,c=t.slice(2),s=0,u=c.length;s<u;s++)if(l=c.charCodeAt(s),l<48||l>r)return NaN;return parseInt(c,n)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof h&&(m?c((function(){v.valueOf.call(a)})):i(a)!=d)?l(new g(y(t)),a,h):y(t)};for(var x,_=a("26df")?s(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;_.length>k;k++)r(g,x=_[k])&&!r(h,x)&&p(h,x,u(g,x));h.prototype=v,v.constructor=h,a("84e8")(n,d,h)}},eb34:function(e,t,a){var n=a("e99b"),r=a("3ab0"),i=a("0926"),l=a("5dc3"),o="["+l+"]",c="
",s=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),p=function(e,t,a){var r={},o=i((function(){return!!l[e]()||c[e]()!=c})),s=r[e]=o?t(f):l[e];a&&(r[a]=s),n(n.P+n.F*o,"String",r)},f=p.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(s,"")),2&t&&(e=e.replace(u,"")),e};e.exports=p},f417:function(e,t,a){"use strict";var n=a("d445"),r=RegExp.prototype.exec;e.exports=function(e,t){var a=e.exec;if("function"===typeof a){var i=a.call(e,t);if("object"!==typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},f5bc:function(e,t,a){"use strict";a("af18")},fc02:function(e,t,a){"use strict";var n=a("804d"),r=a("a86f"),i=a("1b0b"),l=a("43ec"),o=a("201c"),c=a("f417"),s=a("0353"),u=a("0926"),p=Math.min,f=[].push,d="split",h="length",g="lastIndex",v=4294967295,m=!u((function(){RegExp(v,"y")}));a("c46f")("split",2,(function(e,t,a,u){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[h]||2!="ab"[d](/(?:ab)*/)[h]||4!="."[d](/(.?)(.?)/)[h]||"."[d](/()()/)[h]>1||""[d](/.?/)[h]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!n(e))return a.call(r,e,t);var i,l,o,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,d=void 0===t?v:t>>>0,m=new RegExp(e.source,u+"g");while(i=s.call(m,r)){if(l=m[g],l>p&&(c.push(r.slice(p,i.index)),i[h]>1&&i.index<r[h]&&f.apply(c,i.slice(1)),o=i[0][h],p=l,c[h]>=d))break;m[g]===i.index&&m[g]++}return p===r[h]?!o&&m.test("")||c.push(""):c.push(r.slice(p)),c[h]>d?c.slice(0,d):c}:"0"[d](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,n){var r=e(this),i=void 0==a?void 0:a[t];return void 0!==i?i.call(a,r,n):b.call(String(r),a,n)},function(e,t){var n=u(b,e,this,t,b!==a);if(n.done)return n.value;var s=r(e),f=String(this),d=i(s,RegExp),h=s.unicode,g=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(m?"y":"g"),y=new d(m?s:"^(?:"+s.source+")",g),x=void 0===t?v:t>>>0;if(0===x)return[];if(0===f.length)return null===c(y,f)?[f]:[];var _=0,k=0,w=[];while(k<f.length){y.lastIndex=m?k:0;var q,$=c(y,m?f:f.slice(k));if(null===$||(q=p(o(y.lastIndex+(m?0:k)),f.length))===_)k=l(f,k,h);else{if(w.push(f.slice(_,k)),w.length===x)return w;for(var E=1;E<=$.length-1;E++)if(w.push($[E]),w.length===x)return w;k=_=q}}return w.push(f.slice(_)),w}]}))}}]);
- //# sourceMappingURL=chunk-e77f1fec.e70c396f.js.map
|