app.2ec946682d105758bf57.js 200 KB

1
  1. webpackJsonp([48],{"/W30":function(e,t){},"0+ql":function(e,t){},"1Uhe":function(e,t){},"2uFj":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s});var i={},a=function(e){i=e},o="/page/login?redirect=http%3a%2f%2fcrowd.dev.mooctest.net%2f%23%2fhome",s="/page/register"},"3Kss":function(e,t,n){"use strict";var i={0:"IOS",1:"ANDROID",2:"WEB"},a={name:"Project-Item",props:{projectItem:{}},data:function(){return{project:this.projectItem,platformType:i}},mounted:function(){},methods:{goToProjectDetail:function(e){this.$router.push({name:"Project",params:{projectId:e}})}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"project-item-container"},[i("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[i("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[i("el-badge",{staticClass:"item",attrs:{value:e.project.statusVO.text,type:e.project.statusVO.style}},[i("img",{staticClass:"project-cover",attrs:{src:n("x9fL")}})])],1),e._v(" "),i("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[e._v(e._s(e.project.name))]),e._v(" "),i("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[i("span",{class:["badge"],staticStyle:{"font-size":"10px"}},[e._v(e._s(e.project.platform))])]),e._v(" "),i("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[i("div",{staticClass:"badge"},[e._v("¥"+e._s(e.project.budget))])]),e._v(" "),i("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[i("div",[e._v(e._s(e.project.joinCount))])]),e._v(" "),i("el-col",{attrs:{span:4,type:"flex",align:"middle",justify:"center"}},[e.project.needHandle?i("el-badge",{staticClass:"item",attrs:{"is-dot":""}},[i("span",{staticClass:"btn btn-small btn-info",on:{click:function(t){return e.goToProjectDetail(e.project.id)}}},[e._v("查看详情")])]):e._e(),e._v(" "),e.project.needHandle?e._e():i("span",{staticClass:"btn btn-small btn-info",on:{click:function(t){return e.goToProjectDetail(e.project.id)}}},[e._v("查看详情")])],1)],1)],1)},staticRenderFns:[]};var s=n("VU/8")(a,o,!1,function(e){n("t/kO")},"data-v-1aa30882",null);t.a=s.exports},"5W1q":function(e,t){},"7BN6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("SQ4B"),a=n("b9vf"),o=n("qI5z"),s=n("vGYV"),r={name:"ProjectAdd",data:function(){return{userId:0,user:{},loading:!1,dialogVisible:!1,isModifyMode:!0,serviceType:[],platforms:[],isFormSubmit:!0,downloadFile:"",project:{name:"",description:"",contactName:"",contactPhone:"",platform:[],type:[],requireDoc:[],requireDocUrl:"",file:[],fileUrl:"",excelFile:[],excelFileUrl:"",price:"",datetime:""},projectList:[{id:null,name:"广东省农产品商贸交易服务平台",code:"PROJ-2020070820055",userId:20473,regionalManagerId:99222,projectDistributionTypeId:1,fieldType:"KJFW",applicationType:"WEB",type:"GNCS",linkMan:"张三",linkManMobile:"13512345678",description:"本平台提供农产品网上供求信息的发布、在线交易服务等功能,帮助用户快速捕获商机,具备开设网上交易会和网上农博会,为用户提供更广阔的宣传平台。",projectFile:"",requirementFile:"",distributionProvince:"江苏",distributionCity:"南京",valuationStandard:"1200元/(人天)",quotedPrice:3e4,fixedPrice:3e4,restPrice:null,entrustUnit:"广东省农村信息中心",status:4,deadTime:"2020-07-08T12:16:34.695+0000",endTime:"2020-07-08T12:16:34.695+0000",isDeleted:0,joinCount:1,createTime:null,crowdTestTaskList:[{id:null,name:"广东省农产品商贸交易服务平台-GNCS",code:"TASK-GNCS-2020070820008",crowdTestProjectCode:"PROJ-2020070820055",evaluationAgencyId:1,type:"GNCS",description:"本平台提供农产品网上供求信息的发布、在线交易服务等功能,帮助用户快速捕获商机,具备开设网上交易会和网上农博会,为用户提供更广阔的宣传平台。",requirementFile:"",distributionType:0,distributionProvince:null,distributionCity:null,quotedPrice:3e4,fixedPrice:3e4,status:4,fullStatus:0,deadTime:"2020-07-08T12:16:34.695+0000",endTime:"2020-07-08T12:16:34.695+0000",isDeleted:0,createTime:null,participantCount:1,acceptedCount:1,participantHasCommittedCount:1,acceptedUserList:[{id:null,taskCode:"TASK-GNCS-2020070820008",userId:20473,quotedPrice:0,hasReport:1,distributionType:1,isAccepted:1,acceptTime:null,isCommitted:1,user:null,commitTaskTime:"2020-07-08T12:16:34.695+0000",commitReportTime:"2020-07-08T12:16:34.695+0000",crowdTestReportList:[{id:null,name:"广东省农产品商贸交易服务平台-GNCS测试报告",code:"REPORT-2020070820089",userId:20473,dependencyCode:"TASK-GNCS-2020070820008",type:"测试报告",scope:1,testObject:null,description:null,content:"对平台的供求信息发布、在线交易、网上上交易会等模块进行了功能性测试,所有测试项均符合项目需求规格说明书的要求",file:null,conclusion:"通过",isDeleted:0,createTime:null}]}]}],crowdTestReportForProject:{id:null,name:"广东省农产品商贸交易服务平台测试报告",code:"REPORT-2020070820090",userId:null,dependencyCode:"PROJ-2020070820055",type:"GNCS",scope:0,testObject:"广东省农产品商贸交易服务平台",description:"本平台提供农产品网上供求信息的发布、在线交易服务等功能,帮助用户快速捕获商机,具备开设网上交易会和网上农博会,为用户提供更广阔的宣传平台。",content:"对平台的供求信息发布、在线交易、网上上交易会等模块进行了功能性测试,所有测试项均符合项目需求规格说明书的要求",file:null,conclusion:"通过",isDeleted:0,createTime:null}}],excelFile:{},rules:{},pickerOptions:{shortcuts:[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"昨天",onClick:function(e){var t=new Date;t.setTime(t.getTime()-864e5),e.$emit("pick",t)}},{text:"一周前",onClick:function(e){var t=new Date;t.setTime(t.getTime()-6048e5),e.$emit("pick",t)}}]},tableData:[{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1517 弄"},{date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄"},{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1516 弄"}]}},mounted:function(){var e=this;this.$nextTick(function(){e.init()})},methods:{init:function(){this.setServiceType(),this.setPlatformType(),this.setUserInfo(),this.setTemplateExcel()},loadData:function(){},modifyInfo:function(){this.isModifyMode=!0},submitInfo:function(){var e=this;this.showLoading();var t={userId:this.user.userVO.id,name:this.project.name,description:this.project.description,contactName:this.project.contactName,contactPhone:this.project.contactPhone,platform:this.project.platform,type:this.project.type,doc:this.project.requireDocUrl,file:this.project.fileUrl,price:this.project.price,datetime:this.project.datetime};i.a.post(a.a.PROJECT.ADD_PROJECT,t).then(function(t){e.hideLoading(),e.createProjectByFormSuccessConfirm(),console.log(t)}).catch(function(t){e.hideLoading(),Object(o.a)("error",t.data)})},handleRemove:function(e,t){console.log(e,t)},handleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件,本次选择了 "+e.length+" 个文件,共选择了 "+(e.length+t.length)+" 个文件")},beforeRemove:function(e,t){},beforeFileUpload:function(){},uploadProjectCreateExcelFile:function(e){var t=this;if(null!=Object(s.J)("user")){this.showLoading();var n=new FormData;n.append("file",e.file),i.a.upload(a.a.PROJECT.ADD_PROJECT_BY_EXCEL_PRE.replace("{userId}",this.user.userVO.id),n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){console.log(e),t.projectList=e.data,t.hideLoading(),t.showDialog()}).catch(function(e){console.log("打印错误信息!!!"),console.log(e.response.data),Object(o.a)("error",e.response.data),t.hideLoading()})}else Object(o.a)("warning","请登录")},uploadRequireDoc:function(e){var t=this,n=new FormData;n.append("file",e.file),i.a.upload(a.a.FILE.REQUIREMENT_FILE.replace("{userId}",this.user.userVO.id),n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){console.log("上传成功"),t.project.requireDocUrl=e.data,console.log(e.data),Object(o.a)("success","上传成功")}).catch(function(e){Object(o.a)("error",e.data)})},uploadApkFile:function(e){var t=this,n=new FormData;n.append("file",e.file),i.a.upload(a.a.FILE.APK.replace("{userId}",this.user.userVO.id),n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){console.log("上传成功"),t.project.fileUrl=e.data,console.log(e),Object(o.a)("success","上传成功")}).catch(function(e){Object(o.a)("error",e.data)})},handleDialogClose:function(e){this.hideDialog(),this.project.excelFile=[]},hindDialog:function(){this.hideDialog()},ensureSubmitExcel:function(){var e=this;null!=Object(s.J)("user")?(this.hideDialog(),this.showLoading(),this.project.excelFile=[],i.a.post(a.a.PROJECT.ADD_PROJECT_BY_EXCEL,this.projectList).then(function(t){Object(o.a)("success","添加成功"),e.hideLoading()}).catch(function(t){Object(o.a)("error",t.data),e.hideLoading()})):Object(o.a)("warning","请登录")},showDialog:function(){this.dialogVisible=!0},hideDialog:function(){this.dialogVisible=!1},setServiceType:function(){var e=this;Object(s.r)().then(function(t){e.serviceType=t})},setPlatformType:function(){var e=this;Object(s.p)().then(function(t){e.platforms=t})},createProjectByFormSuccessConfirm:function(){var e=this;this.$confirm("项目创建成功,是否跳转至主页?","提示",{confirmButtonText:"跳转至主页",cancelButtonText:"继续创建项目",type:"success"}).then(function(){e.$router.push({name:"Home"})}).catch(function(){e.resetForm()})},resetForm:function(){this.project={name:"",description:"",contactName:"",contactPhone:"",platform:[],type:[],requireDoc:[],requireDocUrl:"",file:[],fileUrl:"",excelFile:[],excelFileUrl:"",price:"",datetime:""}},setUserInfo:function(){this.user=Object(s.J)("user")},setTemplateExcel:function(){this.showLoading(),Object(s.x)(this.setTemplateExcelSuccess,this.setTemplateExcelFail)},setTemplateExcelSuccess:function(e){this.hideLoading(),this.downloadFile=e.fileUrl},setTemplateExcelFail:function(e){this.hideLoading(),Object(o.a)("error","加载模板文件失败:"+e.data)},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1}},watch:{serviceType:function(e){this.serviceType=e}},created:function(){}},c={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"create-container"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"create-body"},[n("div",{staticClass:"title"},[e._v("创建项目")]),e._v(" "),n("el-tabs",{attrs:{tabPosition:"top",type:"card"}},[n("el-tab-pane",{attrs:{label:"批量创建项目"}},[n("el-form",{ref:"project",staticClass:"demo-report",attrs:{model:e.project,rules:e.rules,"label-width":"12%"}},[n("el-form-item",{attrs:{prop:"file",label:"Excel模板文件"}},[n("a",{attrs:{href:e.downloadFile}},[n("el-link",{attrs:{underline:!1,type:"primary"}},[n("i",{staticClass:"el-icon-document"}),e._v("下载文档\n ")])],1)]),e._v(" "),n("el-form-item",{attrs:{type:"file",prop:"file",label:"Excel文件"}},[e.isModifyMode?n("el-upload",{staticClass:"upload-demo",staticStyle:{width:"400px"},attrs:{drag:"",action:"","on-remove":e.handleRemove,"before-remove":e.beforeRemove,limit:1,"on-exceed":e.handleExceed,"before-upload":e.beforeFileUpload,"http-request":e.uploadProjectCreateExcelFile,"file-list":e.project.excelFile}},[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或\n "),n("em",[e._v("点击上传")])])]):e._e()],1),e._v(" "),e.isModifyMode?n("el-form-item",[n("div",{staticClass:"btn btn-primary btn-info",on:{click:function(t){return e.ensureSubmitExcel()}}},[e._v("确认提交")])]):e._e()],1),e._v(" "),n("el-dialog",{attrs:{title:"您添加的项目",visible:e.dialogVisible,width:"80%","before-close":e.handleDialogClose,center:""},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("span",[n("el-table",{staticStyle:{width:"auto"},attrs:{data:e.projectList}},[n("el-table-column",{attrs:{prop:"name",label:"项目名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"platform",label:"领域类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.fieldType))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"name",label:"应用类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.applicationType))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"platform",label:"测试类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.type))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"platform",label:"委托单位"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.entrustUnit))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"linkMan",label:"项目联系人"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.linkMan))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"linkManMobile",label:"联系方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.linkManMobile))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"description",label:"项目需求描述"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.description))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"description",label:"计价标准"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.valuationStandard))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"description",label:"测试报告内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.crowdTestReportForProject.content))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"description",label:"测试报告结论"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.crowdTestReportForProject.conclusion))])]}}])})],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.handleDialogClose}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.hindDialog}},[e._v("确认")])],1)])],1)],1)],1)])},staticRenderFns:[]};var l=n("VU/8")(r,c,!1,function(e){n("njb+")},"data-v-40a5e8f4",null);t.default=l.exports},"7ZMr":function(e,t){},"9od8":function(e,t,n){"use strict";var i={0:"已结束",1:"进行中"},a={name:"Task-Item",props:{task:{}},data:function(){return{taskTable:this.task,taskStatus:i}},mounted:function(){},methods:{goToTaskDetail:function(e,t){this.$router.push({name:"Task",params:{projectId:e,taskId:t}})}},watch:{task:function(){this.taskTable=this.task}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"task-item-container"},[i("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[i("el-col",{attrs:{span:5,type:"flex",align:"middle",justify:"center"}},[i("el-badge",{staticClass:"item",attrs:{value:e.taskTable.statusVO.text,type:e.taskTable.statusVO.style}},[i("img",{staticClass:"task-cover",attrs:{src:n("x9fL")}})])],1),e._v(" "),i("el-col",{attrs:{span:4,type:"flex",align:"middle",justify:"center"}},[e._v(e._s(e.taskTable.title))]),e._v(" "),i("el-col",{attrs:{span:4,type:"flex",align:"middle",justify:"center"}},[i("div",{staticClass:"badge",attrs:{type:"flex",align:"middle",justify:"center"}},[e._v("\n "+e._s(e.taskTable.serviceType)+"\n ")])]),e._v(" "),i("el-col",{attrs:{span:4,type:"flex",align:"middle",justify:"center"}},[e._v("¥"+e._s(null==e.taskTable.quotePrice?0:e.taskTable.quotePrice))]),e._v(" "),i("el-col",{attrs:{span:4,type:"flex",align:"middle",justify:"center"}},[e._v("\n "+e._s(e.taskTable.acceptedCount)+" / "+e._s(e.taskTable.participantCount)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[i("span",{staticClass:"btn btn-medium btn-info",on:{click:function(t){return e.goToTaskDetail(e.taskTable.projectId,e.taskTable.id)}}},[e._v("查看详情")])])],1)],1)},staticRenderFns:[]};var s=n("VU/8")(a,o,!1,function(e){n("nn7h")},"data-v-3ae99029",null);t.a=s.exports},AHgd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("BO1k"),a=n.n(i),o=n("SQ4B"),s=n("b9vf"),r=n("dlH2"),c=n("atWu"),l=n.n(c),u=n("siQe"),d=n("qI5z"),p=n("vGYV"),m={name:"ProjectCreate",components:{provincecity:r.a},data:function(){var e=this;return{dialogVisible:!1,user:{},loading:!1,tabPosition:"top",institutionArray:[],fields:[{code:"",name:""}],platforms:[{code:"",name:""}],serviceType:[{code:"",name:""}],resourceType:u.a,project:{userId:0,name:"",contactName:"",contactPhone:"",type:[],platform:"",valuationStandard:"",field:"",desc:"",doc:[],file:[],requireDocUrl:"",fileUrl:"",resource:"0",location:{provinceCode:"3200",cityCode:""},institution:{},datetime:"",price:"",usage:"",budget:""},pickerOptions:{disabledDate:function(e){return e.getTime()<=Date.now()},shortcuts:[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"明天",onClick:function(e){var t=new Date;t.setTime(t.getTime()+864e5),e.$emit("pick",t)}},{text:"一周后",onClick:function(e){var t=new Date;t.setTime(t.getTime()+6048e5),e.$emit("pick",t)}}]},rules:{name:[{required:!0,message:"请输入项目名称",trigger:"blur"},{min:5,max:50,message:"项目名称长度在 5 到 50 个字符",trigger:"blur"}],contactName:[{required:!0,message:"请输入联系人姓名",trigger:"blur"}],contactPhone:[{required:!0,message:"请输入手机号",trigger:"blur"},{min:11,max:11,message:"请输入正确的手机号",trigger:"blur"},{validator:function(t,n,i){e.checkPhoneNumber(n)?i():i(new Error("手机号输入有误"))},trigger:"blur"}],type:[{required:!0,message:"请至少选择一种测试类型",trigger:"change"}],platform:[{required:!0,message:"请至少选择一个应用类型",trigger:"change"}],field:[{required:!0,message:"请至少选择一个领域类型",trigger:"change"}],desc:[{required:!1,message:"请填写描述",trigger:"blur"}],budget:[{required:!0,message:"预算不可为空",trigger:"blur"},{validator:function(e,t,n){parseInt(t)<0?n(new Error("请输入不小于0的数")):n()},trigger:"blur"}],resource:[{required:!0},{validator:function(t,n,i){0==n&&null==e.project.institution.id?i(new Error("定向发布至少要选择一个区域管理员")):i()},trigger:"change"}],datetime:[{required:!0,message:"截止时间不可为空",trigger:"blur"}]}}},mounted:function(){var e=this;this.$nextTick(function(){e.init()})},watch:{serviceType:function(e){this.serviceType=e},institutionArray:function(e){this.institutionArray=e},deep:!0},methods:{updateLocation:function(e){var t="",n="",i=!0,o=!1,s=void 0;try{for(var r,c=a()(l.a.provinces);!(i=(r=c.next()).done);i=!0){var u=r.value;if(u.code===e.provinceCode){t=u.name;var d=!0,p=!1,m=void 0;try{for(var h,f=a()(u.cities);!(d=(h=f.next()).done);d=!0){var v=h.value;if(v.code===e.cityCode){n=v.name;break}}}catch(e){p=!0,m=e}finally{try{!d&&f.return&&f.return()}finally{if(p)throw m}}}}}catch(e){o=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw s}}return t+" / "+n},locationChange:function(e,t){(e||t)&&(this.project.location={provinceCode:e,cityCode:t})},init:function(){this.setServiceType(),this.setFields(),this.setPlatforms(),this.setInstitution(),this.setUserInfo()},submitForm:function(){var e=this;this.$refs.project.validate(function(t){if(!t)return console.log(t),e.hideLoading(),Object(d.a)("error","表单填写错误!"),!1;e.showLoading();var n=Object(p.A)(e.project.location.provinceCode,e.project.location.cityCode),i={userId:e.user.userVO.id,name:e.project.name,type:e.project.type,platform:e.project.platform,field:e.project.field,desc:e.project.desc,valuationStandard:e.project.valuationStandard,resource:e.project.resource,location:n,institution:e.project.institution.id,contactName:e.project.contactName,contactPhone:e.project.contactPhone,doc:e.project.requireDocUrl,file:e.project.fileUrl,budget:e.project.budget,datetime:e.project.datetime,usage:e.project.usage,price:e.project.price};console.log(i),o.a.post(s.a.PROJECT.CREATE_PROJECT,i).then(function(t){e.hideLoading(),e.createProjectSuccess(t.projectDetails.id)}).catch(function(t){e.hideLoading(),Object(d.a)("error",t.data)})})},resetForm:function(e){this.$refs[e].resetFields(),this.project.name="",this.project.type=[],this.project.platform="",this.project.field="",this.project.desc="",this.project.valuationStandard="",this.project.file="",this.project.doc="",this.project.contactName="",this.project.contactPhone="",this.project.resource="非定向",this.project.institution="",this.project.datetime="",this.project.price="",this.project.usage="",this.project.budget=""},beforeApkUpload:function(e){return!0},beforeApkUploadError:function(){this.$message.error("上传文件只能是exe,dmg,apk格式!")},beforeFileUpload:function(e){return!0},beforeFileUploadError:function(){this.$message.error("上传文件只能是 PDF 、 DOC 、DOCX 、XLS、TXT、XLSX 格式!")},loadData:function(){var e=this;o.a.get(s.a.PAGE.PROJECT_DETAIL_PAGE).then(function(t){e.project=t.project})},handleRemove:function(e,t){},handleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件,本次选择了 "+e.length+" 个文件,共选择了 "+(e.length+t.length)+" 个文件")},beforeRemove:function(e,t){},uploadRequireDoc:function(e){var t=this;this.showLoading();var n=new FormData;n.append("file",e.file),o.a.upload(s.a.FILE.REQUIREMENT_FILE.replace("{userId}",this.user.userVO.id),n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){t.hideLoading(),Object(d.a)("success","需求文档上传成功"),t.project.requireDocUrl=e.data}).catch(function(e){t.hideLoading(),t.project.doc=[],Object(d.a)("error","需求文档上传失败:"+e.data)})},uploadApkFile:function(e){var t=this;this.showLoading();var n=new FormData;n.append("file",e.file),o.a.upload(s.a.FILE.APK.replace("{userId}",this.user.userVO.id),n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){t.hideLoading(),Object(d.a)("success","文件上传成功"),t.project.fileUrl=e.data,console.log(e)}).catch(function(e){t.hideLoading(),t.project.file=[],Object(d.a)("error","文件上传失败:"+e.data)})},setServiceType:function(){var e=this;Object(p.r)().then(function(t){e.serviceType=t})},setFields:function(){var e=this;Object(p.l)().then(function(t){e.fields=t})},setPlatforms:function(){var e=this;Object(p.p)().then(function(t){e.platforms=t})},setInstitution:function(){var e=this;Object(p.o)().then(function(t){e.institutionArray=t})},setUserInfo:function(){this.user=Object(p.J)("user")},createProjectSuccess:function(e){var t=this;this.$alert("项目创建成功","创建成功",{confirmButtonText:"确定",callback:function(n){t.$router.push({name:"Project",params:{projectId:e}})}})},checkPhoneNumber:function(e){return/^1[3456789]\d{9}$/.test(e)},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1}}},h={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"create-container"},[n("div",{staticClass:"title h1"},[e._v("创建项目")]),e._v(" "),n("div",{staticClass:"create-body"},[n("el-form",{ref:"project",staticClass:"demo-project",attrs:{model:e.project,rules:e.rules,"label-width":"12%"}},[n("el-form-item",{attrs:{label:"项目名称",prop:"name"}},[n("el-input",{attrs:{size:"small",placeholder:"请输入项目名称"},model:{value:e.project.name,callback:function(t){e.$set(e.project,"name",t)},expression:"project.name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"联系人",prop:"contactName"}},[n("el-input",{attrs:{size:"small",placeholder:"请输入联系人姓名"},model:{value:e.project.contactName,callback:function(t){e.$set(e.project,"contactName",t)},expression:"project.contactName"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"手机号",prop:"contactPhone"}},[n("el-input",{attrs:{size:"small",placeholder:"请输入联系人电话"},model:{value:e.project.contactPhone,callback:function(t){e.$set(e.project,"contactPhone",t)},expression:"project.contactPhone"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"预算",prop:"budget"}},[n("el-input",{attrs:{size:"small",type:"number",placeholder:"请输入项目预算"},model:{value:e.project.budget,callback:function(t){e.$set(e.project,"budget",t)},expression:"project.budget"}},[n("template",{slot:"append"},[e._v("¥")])],2)],1),e._v(" "),n("el-form-item",{attrs:{label:"计价标准",prop:"valuationStandard"}},[n("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",placeholder:"请输入项目的计价标准(eg:1200/人天)"},model:{value:e.project.valuationStandard,callback:function(t){e.$set(e.project,"valuationStandard",t)},expression:"project.valuationStandard"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"需求描述",prop:"desc"}},[n("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",placeholder:"请输入对项目的描述"},model:{value:e.project.desc,callback:function(t){e.$set(e.project,"desc",t)},expression:"project.desc"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"领域类型",prop:"field"}},[n("el-radio-group",{model:{value:e.project.field,callback:function(t){e.$set(e.project,"field",t)},expression:"project.field"}},e._l(e.fields,function(t,i){return n("span",{key:i},[n("el-radio",{attrs:{label:t.code}},[e._v(e._s(t.name)+"    ")])],1)}),0)],1),e._v(" "),n("el-form-item",{attrs:{label:"应用类型",prop:"platform"}},[n("el-radio-group",{model:{value:e.project.platform,callback:function(t){e.$set(e.project,"platform",t)},expression:"project.platform"}},e._l(e.platforms,function(t,i){return n("span",{key:i},[n("el-radio",{attrs:{label:t.code}},[e._v(e._s(t.name)+"    ")])],1)}),0)],1),e._v(" "),n("el-form-item",{attrs:{label:"测试类型",prop:"type"}},[n("el-checkbox-group",{model:{value:e.project.type,callback:function(t){e.$set(e.project,"type",t)},expression:"project.type"}},e._l(e.serviceType,function(t,i){return n("span",{key:i},[n("el-checkbox",{attrs:{label:t.code,name:"type"}},[e._v(e._s(t.name)+"    ")])],1)}),0)],1),e._v(" "),n("el-form-item",{attrs:{label:"项目可见性",prop:"resource"}},[n("el-tabs",{staticStyle:{"max-height":"200px"},attrs:{"tab-position":e.tabPosition},model:{value:e.project.resource,callback:function(t){e.$set(e.project,"resource",t)},expression:"project.resource"}},[n("el-tab-pane",{attrs:{label:e.resourceType[0],name:"0"}},[n("el-radio-group",{attrs:{prop:"institution"},model:{value:e.project.institution,callback:function(t){e.$set(e.project,"institution",t)},expression:"project.institution"}},e._l(e.institutionArray,function(t,i){return n("el-radio",{key:i,attrs:{label:t,name:"type"}},[e._v(e._s(t.name)+"\n ")])}),1)],1),e._v(" "),n("el-tab-pane",{attrs:{label:e.resourceType[1],name:"1"}},[n("provincecity",{ref:"addFormProvince",attrs:{provinceCode:e.project.location.provinceCode,cityCode:e.project.location.cityCode},on:{selectChange:e.locationChange}})],1),e._v(" "),n("el-tab-pane",{attrs:{label:e.resourceType[2],name:"2"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"需求文档",prop:"doc"}},[n("el-upload",{staticClass:"upload-demo",staticStyle:{width:"400px"},attrs:{drag:"",action:"","on-remove":e.handleRemove,"before-remove":e.beforeRemove,limit:1,"on-exceed":e.handleExceed,"before-upload":e.beforeFileUpload,"http-request":e.uploadRequireDoc,"file-list":e.project.doc}},[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或\n "),n("em",[e._v("点击上传")])])])],1),e._v(" "),n("el-form-item",{attrs:{label:"安装包",prop:"file"}},[n("el-upload",{staticClass:"upload-demo",staticStyle:{width:"400px"},attrs:{drag:"",action:"","on-remove":e.handleRemove,limit:1,"on-exceed":e.handleExceed,"before-upload":e.beforeApkUpload,"http-request":e.uploadApkFile,"file-list":e.project.file}},[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或\n "),n("em",[e._v("点击上传")])])])],1),e._v(" "),n("el-form-item",{attrs:{label:"项目截止时间",prop:"datetime"}},[n("div",{staticClass:"block"},[n("el-date-picker",{attrs:{size:"small",type:"datetime",placeholder:"选择截止时间",align:"right","picker-options":e.pickerOptions},model:{value:e.project.datetime,callback:function(t){e.$set(e.project,"datetime",t)},expression:"project.datetime"}})],1)]),e._v(" "),n("el-form-item",[n("div",{staticClass:"btn btn-medium btn-info",on:{click:function(t){return e.submitForm("project")}}},[e._v("立即申请")])])],1)],1)])},staticRenderFns:[]};var f=n("VU/8")(m,h,!1,function(e){n("7ZMr")},"data-v-8f5fe390",null);t.default=f.exports},Fcpd:function(e,t){},GVWZ:function(e,t){},GYip:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("pFYg"),a=n.n(i),o=n("SlAU"),s=n("SQ4B"),r=n("b9vf"),c=n("siQe"),l=n("dlH2"),u=n("qI5z"),d=n("XLwt"),p=n.n(d),m=n("vGYV"),h={name:"Project",components:{provincecity:l.a,ReportList:o.a},data:function(){var e=this;return{showTaskList:!0,acceptedUserList:[],projectId:0,user:{},loading:!1,tabPosition:"top",institutionArray:[],isModifyMode:!1,platforms:[],fields:[],resourceType:c.a,serviceType:[],projectOperationControl:{confirmFinish:!1,createTask:!1,finish:!1,receive:!1,reject:!1,update:!1,uploadReport:!1},project:{userId:0,name:"",type:[],platform:"",valuationStandard:"",entrustUnit:"",field:"",desc:"",resource:"",location:"",institution:{},contactName:"",contactPhone:"",doc:[],requireDocUrl:"",file:[],fileUrl:"",budget:"",price:"",datetime:"",usage:"",status:""},task:[],progress:[],reportList:[],pickerOptions:{disabledDate:function(e){return e.getTime()<=Date.now()},shortcuts:[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"明天",onClick:function(e){var t=new Date;t.setTime(t.getTime()+864e5),e.$emit("pick",t)}},{text:"一周后",onClick:function(e){var t=new Date;t.setTime(t.getTime()+6048e5),e.$emit("pick",t)}}]},rules:{name:[{required:!0,message:"请输入项目名称",trigger:"blur"},{min:5,max:50,message:"项目名称长度在 5 到 50 个字符",trigger:"blur"}],contactName:[{required:!0,message:"请输入联系人姓名",trigger:"blur"}],contactPhone:[{required:!0,message:"请输入手机号",trigger:"blur"},{min:11,max:11,message:"请输入正确的手机号",trigger:"blur"},{validator:function(t,n,i){e.checkPhoneNumber(n)?i():i(new Error("手机号输入有误"))},trigger:"blur"}],type:[{type:"array",required:!0,message:"请至少选择一种测试类型",trigger:"change"}],platform:[{required:!0,message:"请选择一个应用类型",trigger:"change"}],field:[{required:!0,message:"请选择一个领域类型",trigger:"change"}],desc:[{required:!1,message:"请填写描述",trigger:"blur"}],budget:[{required:!0,message:"预算不可为空",trigger:"blur"},{validator:function(e,t,n){t<0?n(new Error("请输入不小于0的数")):n()},trigger:"blur"}],resource:[{required:!0},{validator:function(t,n,i){0==n&&null==e.project.institution?i(new Error("定向发布至少要选择一个区域管理员")):i()},trigger:"change"}],datetime:[{required:!0,message:"截止时间不可为空",trigger:"blur"}]}}},mounted:function(){var e=this;this.$nextTick(function(){e.init()})},watch:{serviceType:function(e){this.serviceType=e},institutionArray:function(e){this.institutionArray=e},deep:!0},methods:{updateLocation:function(e){var t=Object(m.A)(e.provinceCode,e.cityCode);return t.provinceCode+" / "+t.cityCode},init:function(){this.projectId=this.$route.params.projectId,this.setServiceType(),this.setFields(),this.setPlatformType(),this.setInstitutions(),this.setUserInfo(),this.loadData()},setEcharts:function(){var e=p.a.init(document.getElementById("pieImage")),t={tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},legend:{orient:"vertical",x:"left",data:["已完成","进行中"]},series:[{name:"任务状态",type:"pie",radius:["50%","70%"],avoidLabelOverlap:!1,label:{normal:{show:!1,position:"center"},emphasis:{show:!0,textStyle:{fontSize:"30",fontWeight:"bold"}}},labelLine:{normal:{show:!1}},data:this.progress,color:["#909399","#409EFF"]}]};e.setOption(t)},submitForm:function(e){var t=this;this.$refs.project.validate(function(e){if(!e)return Object(u.a)("error","表单填写错误!"),!1;t.showLoading();var n={userId:t.user.userVO.id,name:t.project.name,type:t.project.type,platform:t.project.platform,valuationStandard:t.project.valuationStandard,entrustUnit:t.project.entrustUnit,field:t.project.field,desc:t.project.desc,resource:t.project.resource,location:Object(m.A)(t.project.location.provinceCode,t.project.location.cityCode),institution:null==t.project.institution?null:t.project.institution.id,contactName:t.project.contactName,contactPhone:t.project.contactPhone,doc:t.project.requireDocUrl,file:t.project.fileUrl,budget:t.project.budget,price:t.project.price,datetime:t.project.datetime,usage:t.project.usage};console.log(n),s.a.put(r.a.PROJECT.UPDATE_PROJECT.replace("{projectId}",t.projectId),n).then(function(e){console.log(e),t.projectId=e.projectDetails.id,t.project.name=e.projectDetails.name,t.project.contactName=e.projectDetails.contactName,t.project.contactPhone=e.projectDetails.contactPhone,t.project.type=e.projectDetails.type,t.project.platform=e.projectDetails.platform,t.project.valuationStandard=e.projectDetails.valuationStandard,t.project.entrustUnit=e.projectDetails.entrustUnit,t.project.field=e.projectDetails.field,t.project.desc=e.projectDetails.desc,t.project.doc=[],t.project.file=[],t.project.resource=e.projectDetails.resource,t.project.location=Object(m.z)(e.projectDetails.location.provinceCode,e.projectDetails.location.cityCode),t.project.institution=e.projectDetails.institution,t.project.datetime=new Date(e.projectDetails.datetime),t.project.price=e.projectDetails.price,t.project.budget=e.projectDetails.budget,t.project.usage=e.projectDetails.usage,t.project.fileUrl=e.projectDetails.file,t.project.requireDocUrl=e.projectDetails.doc,t.task=e.taskList,t.reportList=e.reportList,t.isModifyMode=!1,t.hideLoading(),Object(u.a)("success","项目修改成功")}).catch(function(e){t.hideLoading(),Object(u.a)("error",e.data),console.log(e)})})},resetForm:function(e){this.$refs[e].resetFields(),this.project.name="",this.project.type=[],this.project.platform="",this.project.valuationStandard="",this.project.entrustUnit="",this.project.field="",this.project.desc="",this.project.doc="",this.project.file="",this.project.contactName="",this.project.contactPhone="",this.project.resource="2",this.project.institution="",this.project.datetime="",this.project.price="",this.project.usage="",this.project.budget=""},modifyForm:function(){this.isModifyMode=!0},receiveProject:function(){var e=this;this.$confirm("确认接收项目?","提示",{confirmButtonText:"确认接收",cancelButtonText:"取消",type:"success"}).then(function(){e.showLoading(),console.log("接收项目"),Object(m.F)(e.projectId,e.user.userVO.id,e.receiveProjectSuccess,e.receiveProjectFail)}).catch(function(){})},receiveProjectSuccess:function(e){this.hideLoading(),Object(u.a)("success","项目接收成功!"),this.projectOperationControl=e.projectOperationControl,this.project.status=e.projectDetails.status,this.project.institution=e.projectDetails.institution},receiveProjectFail:function(e){this.hideLoading(),Object(u.a)("error","接收项目失败:"+e.data)},rejectProject:function(){var e=this;this.$confirm("确认拒绝项目?","提示",{confirmButtonText:"确认拒绝",cancelButtonText:"取消",type:"success"}).then(function(){e.showLoading(),Object(m.H)(e.projectId,e.rejectProjectSuccess,e.rejectProjectFail)}).catch(function(){})},rejectProjectSuccess:function(e){this.hideLoading(),Object(u.a)("success","拒绝项目成功")},rejectProjectFail:function(e){this.hideLoading(),Object(u.a)("error","拒绝项目失败:"+e.data)},submitProjectRequest:function(){var e=this;this.$confirm("确认提交项目?","提示",{confirmButtonText:"确认提交",cancelButtonText:"取消",type:"success"}).then(function(){e.showLoading(),Object(m.L)(e.projectId,e.submitProjectRequestSuccess,e.submitProjectRequestFail)}).catch(function(){})},submitProjectRequestSuccess:function(e){this.hideLoading(),Object(u.a)("success","项目提交成功!"),this.loadData(),this.projectOperationControl=e.projectOperationControl,this.project.status=e.projectDetails.status,this.project.institution=e.projectDetails.institution},submitProjectRequestFail:function(e){this.hideLoading(),Object(u.a)("error","提交项目失败:"+e.data)},endProject:function(){var e=this;this.$confirm("确认结束项目?","提示",{confirmButtonText:"确认结束",cancelButtonText:"取消",type:"success"}).then(function(){e.showLoading(),Object(m.f)(e.projectId,e.endProjectSuccess,e.endProjectFail)}).catch(function(){})},endProjectSuccess:function(e){this.hideLoading(),Object(u.a)("success","项目提交成功!"),this.loadData(),this.projectOperationControl=e.projectOperationControl,this.project.status=e.projectDetails.status,this.project.institution=e.projectDetails.institution},endProjectFail:function(e){this.hideLoading(),Object(u.a)("error","结束项目失败:"+e.data)},cancelMode:function(e){this.isModifyMode=!1,this.loadData()},goToTaskDetail:function(e,t){this.$router.push({name:"Task",params:{projectId:e,taskId:t}})},createNewTask:function(){this.$router.push({name:"TaskCreate",params:{projectId:this.projectId}})},createReport:function(){this.$router.push({name:"ProjectReportCreate",params:{scope:0,dependencyCode:this.projectId,projectId:this.projectId}})},handleDelete:function(e,t){var n=this;this.$confirm("确认删除该任务?").then(function(e){console.log(t),console.log(n.projectId),Object(m.e)(n.projectId,t,n.deleteTaskSuccess,n.deleteTaskFail)}).catch(function(e){Object(u.a)("error","删除失败")})},deleteTaskSuccess:function(e){Object(u.a)("success","删除成功")},deleteTaskFail:function(e){console.log(e),Object(u.a)("error","删除失败:"+e)},beforeApkUpload:function(e){return!0},beforeFileUpload:function(e){return!0},beforeFileUploadError:function(){this.$message.error("上传文件只能是 PDF 、 DOC 、DOCX 、XLS、TXT、XLSX 格式!")},analyseDemand:function(){this.$router.push({name:"AnalyseDemand"})},handleAccept:function(e,t){console.log("接收")},handleReject:function(e,t){console.log("拒绝")},loadData:function(){var e=this;this.showLoading(),s.a.get(r.a.PROJECT.GET_PROJECT.replace("{projectId}",this.projectId)).then(function(t){console.log(t),console.log(a()(t.projectDetails.field)),e.projectId=t.projectDetails.id,e.project.name=t.projectDetails.name,e.project.contactName=t.projectDetails.contactName,e.project.contactPhone=t.projectDetails.contactPhone,e.project.type=t.projectDetails.type,e.project.platform=t.projectDetails.platform,e.project.valuationStandard=t.projectDetails.valuationStandard,e.project.entrustUnit=t.projectDetails.entrustUnit,e.project.field=t.projectDetails.field,console.log(t.projectDetails.field),console.log(e.project.field),e.project.desc=t.projectDetails.desc,e.project.doc=[],e.project.file=[],e.project.resource=t.projectDetails.resource,e.project.location=Object(m.z)(t.projectDetails.location.provinceCode,t.projectDetails.location.cityCode),e.project.institution=t.projectDetails.institution,e.project.datetime=new Date(t.projectDetails.datetime),e.project.price=t.projectDetails.price,e.project.budget=t.projectDetails.budget,e.project.usage=t.projectDetails.usage,e.project.fileUrl=t.projectDetails.file,e.project.requireDocUrl=t.projectDetails.doc,e.project.userId=t.projectDetails.userId,e.project.status=t.projectDetails.status,e.project.statusVO=t.projectDetails.statusVO,e.task=t.taskList,e.reportList=t.reportList,e.projectOperationControl=t.projectOperationControl,e.progress=t.progress,console.log(e.project),e.hideLoading(),e.handleShowTaskListOrNot();for(var n=0;n<e.progress.length;n++)if(0!=e.progress[n].value){e.setEcharts();break}}).catch(function(t){e.hideLoading()})},handleShowTaskListOrNot:function(){Object(m.J)("user").userVO.id===this.project.userId&&(this.showTaskList=!1)},locationChange:function(e,t){(e||t)&&(this.project.location={provinceCode:e,cityCode:t})},handleRemove:function(e,t){console.log(e,t)},handleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件,本次选择了 "+e.length+" 个文件,共选择了 "+(e.length+t.length)+" 个文件")},beforeRemove:function(e,t){},beforeUploadRequireDoc:function(){},beforeUploadApkFile:function(){},uploadRequireDoc:function(e){var t=this;this.showLoading();var n=new FormData;n.append("file",e.file),s.a.upload(r.a.FILE.REQUIREMENT_FILE.replace("{userId}",this.user.userVO.id),n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){t.project.requireDocUrl=e.data,t.hideLoading(),Object(u.a)("success","需求文档上传成功")}).catch(function(e){t.hideLoading(),Object(u.a)("error","需求文档上传失败:"+e.data)})},uploadApkFile:function(e){var t=this;this.showLoading();var n=new FormData;n.append("file",e.file),s.a.upload(r.a.FILE.APK.replace("{userId}",this.user.userVO.id),n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){t.project.fileUrl=e.data,t.hideLoading(),Object(u.a)("success","文件上传成功")}).catch(function(e){t.hideLoading(),t.project.file=[],Object(u.a)("error","文件上传失败")})},setServiceType:function(){var e=this;Object(m.r)().then(function(t){e.serviceType=t})},setPlatformType:function(){var e=this;Object(m.p)().then(function(t){e.platforms=t})},setFields:function(){var e=this;Object(m.l)().then(function(t){e.fields=t})},setInstitutions:function(){var e=this;Object(m.o)().then(function(t){e.institutionArray=t}).catch(function(e){Object(u.a)("error","获取institution失败"+e.data)})},setUserInfo:function(){this.user=Object(m.J)("user")},checkPhoneNumber:function(e){return/^1[3456789]\d{9}$/.test(e)},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},reformDate:function(e){return Object(m.w)(e)},dateFormat:function(e,t){var n={"M+":(e=new Date(e)).getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[i]:("00"+n[i]).substr((""+n[i]).length)));return t}}},f={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"create-container"},[e.isModifyMode?e._e():n("div",{staticClass:"title h1"},[e._v("项目")]),e._v(" "),n("div",{staticClass:"create-body"},[n("el-row",{attrs:{type:"flex",align:"middle",justify:"start"}},[n("el-col",{attrs:{span:15}},[e.isModifyMode?e._e():n("div",{staticClass:"title h2"},[e._v("基本信息")]),e._v(" "),e.isModifyMode?e._e():n("div",{staticClass:"el-form-item"},[n("label",{staticClass:"el-form-item__label",staticStyle:{width:"30%"}},[e._v("编号")]),e._v(" "),n("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"30%"}},[n("div",[e._v(e._s(e.projectId))])])]),e._v(" "),n("el-form",{ref:"project",staticClass:"demo-project",attrs:{model:e.project,rules:e.rules,"label-width":"30%"}},[n("el-form-item",{attrs:{label:"项目名称",prop:"name"}},[e.isModifyMode?n("el-input",{attrs:{size:"small"},model:{value:e.project.name,callback:function(t){e.$set(e.project,"name",t)},expression:"project.name"}}):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",{staticStyle:{"margin-right":"5px"}},[e._v(e._s(e.project.name))]),e._v(" "),e.isModifyMode?e._e():n("el-tag",{attrs:{type:e.project.statusVO&&e.project.statusVO.style}},[e._v("\n "+e._s(e.project.statusVO?e.project.statusVO.text:"")+"\n ")])],1),e._v(" "),n("el-form-item",{attrs:{size:"small",label:"联系人",prop:"contactName"}},[e.isModifyMode?n("el-input",{attrs:{placeholder:"请输入联系人姓名"},model:{value:e.project.contactName,callback:function(t){e.$set(e.project,"contactName",t)},expression:"project.contactName"}}):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[e._v(e._s(e.project.contactName))])],1),e._v(" "),n("el-form-item",{attrs:{size:"small",label:"联系人电话",prop:"contactPhone"}},[e.isModifyMode?n("el-input",{attrs:{placeholder:"请输入联系人电话"},model:{value:e.project.contactPhone,callback:function(t){e.$set(e.project,"contactPhone",t)},expression:"project.contactPhone"}}):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[e._v(e._s(e.project.contactPhone))])],1),e._v(" "),n("el-form-item",{attrs:{size:"small",label:"预算",prop:"budget"}},[e.isModifyMode?n("el-input",{attrs:{type:"number"},model:{value:e.project.budget,callback:function(t){e.$set(e.project,"budget",t)},expression:"project.budget"}},[e._v("\n ¥\n "),n("template",{slot:"append"})],2):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[e._v("¥"+e._s(e.project.budget))])],1),e._v(" "),n("el-form-item",{attrs:{label:"计价标准",prop:"valuationStandard"}},[e.isModifyMode?n("el-input",{staticStyle:{width:"400px"},attrs:{autosize:"",type:"textarea"},model:{value:e.project.valuationStandard,callback:function(t){e.$set(e.project,"valuationStandard",t)},expression:"project.valuationStandard"}}):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[e._v(e._s(e.project.valuationStandard?e.project.valuationStandard:"暂无"))])],1),e._v(" "),e.project.institution?n("el-form-item",{attrs:{size:"small",label:"区域管理员",prop:"institution"}},[e.isModifyMode?e._e():n("span",[e._v(e._s(e.project.institution))])]):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"需求描述"}},[e.isModifyMode?n("el-input",{staticStyle:{width:"400px"},attrs:{autosize:"",type:"textarea"},model:{value:e.project.desc,callback:function(t){e.$set(e.project,"desc",t)},expression:"project.desc"}}):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[e._v(e._s(e.project.desc?e.project.desc:"暂无"))])],1),e._v(" "),n("el-form-item",{attrs:{label:"领域类型",prop:"field"}},[e.isModifyMode?n("el-radio-group",{model:{value:e.project.field,callback:function(t){e.$set(e.project,"field",t)},expression:"project.field"}},e._l(e.fields,function(t,i){return n("span",{key:i},[n("el-radio",{staticStyle:{margin:"3px"},attrs:{label:t.name}},[e._v(e._s(t.name)+"    ")])],1)}),0):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",{staticClass:"badge"},[e._v("\n "+e._s(e.project.field))])],1),e._v(" "),n("el-form-item",{attrs:{label:"应用类型",prop:"platform"}},[e.isModifyMode?n("el-radio-group",{model:{value:e.project.platform,callback:function(t){e.$set(e.project,"platform",t)},expression:"project.platform"}},e._l(e.platforms,function(t,i){return n("span",{key:i},[n("el-radio",{staticStyle:{margin:"3px"},attrs:{label:t.name}},[e._v(e._s(t.name)+"    ")])],1)}),0):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",{staticClass:"badge"},[e._v("\n "+e._s(e.project.platform))])],1),e._v(" "),n("el-form-item",{attrs:{label:"测试类型",prop:"type"}},[e.isModifyMode?n("el-checkbox-group",{model:{value:e.project.type,callback:function(t){e.$set(e.project,"type",t)},expression:"project.type"}},e._l(e.serviceType,function(t,i){return n("span",{key:i},[n("el-checkbox",{attrs:{label:t.name,name:"type"}},[e._v(e._s(t.name)+"  ")])],1)}),0):e._e(),e._v(" "),e._l(e.project.type,function(t){return e.isModifyMode?e._e():n("span",{staticClass:"badge"},[e._v(e._s(t))])})],2),e._v(" "),n("el-form-item",{attrs:{label:"项目可见性",prop:"resource"}},[e.isModifyMode?e._e():n("div",["1"==e.project.resource?n("div",[e._v(e._s(e.updateLocation(e.project.location)))]):e._e(),e._v(" "),"0"==e.project.resource?n("div",[e._v("定向")]):e._e(),e._v(" "),"2"==e.project.resource?n("div",[e._v(e._s(e.resourceType[e.project.resource]))]):e._e()]),e._v(" "),e.isModifyMode?n("el-tabs",{staticStyle:{"max-height":"200px"},attrs:{"tab-position":e.tabPosition},model:{value:e.project.resource,callback:function(t){e.$set(e.project,"resource",t)},expression:"project.resource"}},[n("el-tab-pane",{attrs:{label:e.resourceType[0],name:0}},[n("el-radio-group",{model:{value:e.project.institution,callback:function(t){e.$set(e.project,"institution",t)},expression:"project.institution"}},e._l(e.institutionArray,function(t,i){return n("el-radio",{key:i,attrs:{label:t,name:"type"}},[e._v("\n "+e._s(t.name)+"\n ")])}),1)],1),e._v(" "),n("el-tab-pane",{attrs:{label:e.resourceType[1],name:1}},[n("provincecity",{ref:"addFormProvince",attrs:{provinceCode:null==e.project.location?"3200":e.project.location.provinceCode,cityCode:null==e.project.location?"3201":e.project.location.cityCode},on:{selectChange:e.locationChange}})],1),e._v(" "),n("el-tab-pane",{attrs:{label:e.resourceType[2],name:2}})],1):e._e()],1),e._v(" "),n("el-form-item",{attrs:{label:"需求文档",prop:"doc"}},[e.isModifyMode?n("el-upload",{staticClass:"upload-demo",staticStyle:{width:"400px"},attrs:{drag:"",action:"","on-remove":e.handleRemove,"before-remove":e.beforeRemove,limit:1,"on-exceed":e.handleExceed,"before-upload":e.beforeFileUpload,"http-request":e.uploadRequireDoc,"file-list":e.project.doc}},[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或\n "),n("em",[e._v("点击上传")])])]):e._e(),e._v(" "),n("span",[null!=e.project.requireDocUrl&&""!=e.project.requireDocUrl?n("a",{attrs:{href:e.project.requireDocUrl}},[n("el-link",{attrs:{underline:!1,type:"primary"}},[n("i",{staticClass:"el-icon-document"}),e._v("下载文档")])],1):e._e(),e._v(" "),null==e.project.requireDocUrl||""==e.project.requireDocUrl?n("i",{staticClass:"el-icon-document"},[e._v("暂无文档")]):e._e()])],1),e._v(" "),n("el-form-item",{attrs:{label:"安装包",prop:"file"}},[e.isModifyMode?n("el-upload",{staticClass:"upload-demo",staticStyle:{width:"400px"},attrs:{drag:"",action:"","on-remove":e.handleRemove,"before-remove":e.beforeRemove,limit:1,"on-exceed":e.handleExceed,"before-upload":e.beforeApkUpload,"http-request":e.uploadApkFile,"file-list":e.project.file}},[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或\n "),n("em",[e._v("点击上传")])])]):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[null!=e.project.fileUrl&&""!=e.project.fileUrl?n("a",{attrs:{href:e.project.fileUrl}},[n("el-link",{attrs:{underline:!1,type:"primary"}},[n("i",{staticClass:"el-icon-document"}),e._v("下载文件")])],1):e._e(),e._v(" "),null==e.project.fileUrl||""==e.project.fileUrl?n("i",{staticClass:"el-icon-document"},[e._v("暂无文件")]):e._e()])],1),e._v(" "),e.project.entrustUnit?n("el-form-item",{attrs:{label:"委托单位",prop:"entrustUnit"}},[e.isModifyMode?n("el-input",{staticStyle:{width:"400px"},attrs:{autosize:"",type:"textarea"},model:{value:e.project.entrustUnit,callback:function(t){e.$set(e.project,"entrustUnit",t)},expression:"project.entrustUnit"}}):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[e._v(e._s(e.project.entrustUnit))])],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"项目截止时间",prop:"datetime"}},[e.isModifyMode?n("div",{staticClass:"block"},[n("el-date-picker",{attrs:{size:"small",type:"datetime",placeholder:"选择截止时间",align:"right","picker-options":e.pickerOptions},model:{value:e.project.datetime,callback:function(t){e.$set(e.project,"datetime",t)},expression:"project.datetime"}})],1):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[e._v(e._s(e.dateFormat(new Date(e.project.datetime),"yyyy-MM-dd HH:mm:ss")))])]),e._v(" "),e.isModifyMode?n("el-form-item",[n("div",{staticClass:"btn btn-small btn-info",on:{click:function(t){return e.submitForm("project")}}},[e._v("确认修改")]),e._v(" "),n("div",{staticClass:"btn btn-small",on:{click:function(t){return e.cancelMode("project")}}},[e._v("取消")])]):e._e(),e._v(" "),e.isModifyMode?e._e():n("el-form-item",[e.projectOperationControl.confirmFinish?n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.endProject()}}},[e._v("\n 结束项目\n ")]):e._e(),e._v(" "),e.projectOperationControl.finish?n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.submitProjectRequest()}}},[e._v("\n 提交项目\n ")]):e._e(),e._v(" "),e.projectOperationControl.receive?n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.receiveProject()}}},[e._v("\n 接收项目\n ")]):e._e(),e._v(" "),e.projectOperationControl.reject?n("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return e.rejectProject()}}},[e._v("\n 拒绝项目\n ")]):e._e(),e._v(" "),e.projectOperationControl.update?n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.modifyForm()}}},[e._v("\n 修改项目\n ")]):e._e(),e._v(" "),e.projectOperationControl.createTask?n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.createNewTask()}}},[e._v("\n 新建任务\n ")]):e._e(),e._v(" "),e.projectOperationControl.uploadReport?n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.createReport()}}},[e._v("\n 上传报告\n ")]):e._e()],1)],1)],1),e._v(" "),n("el-col",{staticStyle:{height:"500px","min-width":"500px"},attrs:{span:5,id:"pieImage"}})],1)],1),e._v(" "),!e.isModifyMode&&e.showTaskList?n("div",{staticClass:"create-body"},[n("div",{staticClass:"title h2"},[e._v("任务列表")]),e._v(" "),n("div",{staticClass:"task-list"},[n("el-table",{staticStyle:{width:"100%"},attrs:{showHeader:!0,stripe:!0,data:e.task}},[n("el-table-column",{attrs:{prop:"title",label:"任务名称",title:"任务名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.title))])]}}],null,!1,1808518502)}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"datetime",sortable:"",label:"任务截止时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.reformDate(new Date(t.row.datetime))))])]}}],null,!1,1218876058)}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"resource",label:"任务可见性"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"==t.row.resource?n("div",[e._v(e._s(t.row.location.provinceCode)+"/"+e._s(t.row.location.cityCode)+"\n ")]):e._e(),e._v(" "),"0"==t.row.resource?n("div",[e._v(e._s(t.row.institution))]):e._e(),e._v(" "),"2"==t.row.resource?n("div",[e._v(e._s(e.resourceType[t.row.resource]))]):e._e()]}}],null,!1,272867355)}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"type",label:"测试类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"badge"},[e._v(e._s(t.row.serviceType))])]}}],null,!1,1308410647)}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tag",{attrs:{type:t.row.statusVO.style}},[e._v(e._s(t.row.statusVO.text))])]}}],null,!1,3362157250)}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"btn btn-small btn-info",on:{click:function(n){return e.goToTaskDetail(e.projectId,t.row.id)}}},[e._v("查看详情\n ")])]}}],null,!1,3792660473)})],1)],1)]):e._e(),e._v(" "),e.isModifyMode?e._e():n("div",{staticClass:"create-body"},[n("div",{staticClass:"title h2"},[e._v("项目报告")]),e._v(" "),n("report-list",{attrs:{reports:e.reportList,taskId:null,projectId:e.projectId}})],1)])},staticRenderFns:[]};var v=n("VU/8")(h,f,!1,function(e){n("XzoA")},"data-v-ee26ce84",null);t.default=v.exports},IYzk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("siQe"),a=n("dlH2"),o=n("SlAU"),s=n("XLwt"),r=n.n(s),c=(n("4f4F"),n("LK9V"),{name:"TaskCloud",props:["info"],data:function(){return{chart:null}},mounted:function(){this.initChart()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=r.a.init(document.getElementById("taskWordCloud"),{width:"auto",height:"500px"});var e={backgroundColor:"#fff",series:[{type:"wordCloud",gridSize:10,sizeRange:[14,60],rotationRange:[0,0],textStyle:{normal:{color:function(){return"rgb("+Math.round(255*Math.random())+", "+Math.round(255*Math.random())+", "+Math.round(255*Math.random())+")"}}},grid:{x:10,y:10,x2:10,y2:10,height:"500px",width:"100%"},left:0,top:0,right:0,bottom:0,width:"100%",height:"100%",data:this.info}]};this.chart.setOption(e)}}}),l={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticStyle:{height:"457px",width:"100%"},attrs:{id:"taskWordCloud"}})},staticRenderFns:[]};var u=n("VU/8")(c,l,!1,function(e){n("0+ql")},"data-v-668294d8",null).exports,d=n("SQ4B"),p=n("b9vf"),m=n("qI5z"),h=n("vGYV"),f={name:"Task",components:{provincecity:a.a,ReportList:o.a,TaskCloud:u},data:function(){var e=this;return{currType:{},user:{},serviceName:"",showBD:!0,rolesPermissions:{},loading:!1,isModifyMode:!1,institutionArray:[],tabPosition:"top",resourceType:i.a,serviceType:[],taskId:"",projectId:"",taskOperationControl:{confirmFinish:!1,finish:!1,receive:!1,update:!1,uploadReport:!1,writeReport:!1,taskDemonstrate:!1,taskRecommend:!1},crowdReportUrl:"",wordCloud:[],task:{agencyId:"",status:"",name:"",desc:"",serviceType:"",resource:"",location:{},institution:{},datetime:"",quotePrice:"",fixedPrice:"",doc:[],requireDocUrl:"",participantCount:1,title:"",description:"",endPoint:{serverCode:"",token:""}},reportList:[],pickerOptions:{shortcuts:[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"昨天",onClick:function(e){var t=new Date;t.setTime(t.getTime()-864e5),e.$emit("pick",t)}},{text:"一周前",onClick:function(e){var t=new Date;t.setTime(t.getTime()-6048e5),e.$emit("pick",t)}}]},rules:{title:[{required:!0,message:"请输入任务名称",trigger:"blur"},{min:5,max:50,message:"任务名称长度在 5 到 50 个字符",trigger:"blur"}],serviceType:[{required:!0,message:"测试类型不可为空",trigger:"change"}],description:[{required:!0,message:"请填写描述",trigger:"blur"}],quotePrice:[{required:!0,message:"预算不可为空",trigger:"blur"},{validator:function(e,t,n){t<0?n(new Error("请输入不小于0的数")):n()},trigger:"blur"}],resource:[{required:!0},{validator:function(t,n,i){0==n&&null==e.task.institution.id?i(new Error("定向发布至少要选择一个测评机构")):i()},trigger:"change"}],endPoint:[{validator:function(t,n,i){1===e.currType.type&&""===e.task.endPoint.serverCode?i(new Error("请填写对应得服务序列号")):i()},trigger:["change","blur"]}],datetime:[{required:!0,message:"截止时间不可为空",trigger:"blur"}]},acceptedUserList:[],shortLink:"",editShortLink:!1}},watch:{institutionArray:function(e){this.institutionArray=e},serviceType:function(e){this.serviceType=e},deep:!0},mounted:function(){var e=this;this.$nextTick(function(){e.init()})},methods:{gotoDataboard:function(){window.open(this.task.endPoint.token)},getTaskDataBoard:function(){var e=this;this.showLoading(),d.a.put("/api/project/"+this.projectId+"/task/"+this.taskId+"/addToken",{token:this.shortLink}).then(function(t){e.taskOperationControl=t.taskOperationControl,e.task.endPoint=t.crowdTaskVO.endPointVO,e.shortLink=t.crowdTaskVO.endPointVO.token,""!=e.shortLink&&(e.editShortLink=!1),e.hideLoading()})},getServiceByCode:function(e){var t=this.serviceType.filter(function(t){return t.code===e});return t&&t[0]&&t[0].name},handleTestTypeChange:function(e){var t=this.serviceType.filter(function(t){return t.code===e});this.currType=t[0]?t[0]:{},0===this.currType.type&&this.$refs.task.clearValidate("endPoint")},init:function(){this.taskId=this.$route.params.taskId,this.projectId=this.$route.params.projectId,this.setUserInfo(),this.setServiceType(),this.getTaskDetail(),this.getWordCloud(),this.setInstitutions()},gotoWriteReport:function(){window.open(this.crowdReportUrl,"_blank")},toProject:function(){this.$router.push({name:"Project",params:{projectId:this.projectId}})},modifyForm:function(){this.isModifyMode=!0},cancelMode:function(){this.isModifyMode=!1},resetForm:function(){this.task.name="",this.task.desc="",this.task.quotePrice="",this.task.fixedPrice="",this.task.type="",this.task.resource="2",this.task.location={provinceCode:"",cityCode:""},this.task.institution="",this.task.datetime="",this.task.participantCount=1},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},setUserInfo:function(){this.user=Object(h.J)("user"),this.rolesPermissions=Object(h.J)("rolesPermissions"),Object(h.J)("rolesPermissions").isRegionManager||Object(h.J)("rolesPermissions").isSystemAdministrator?this.showBD=!0:this.showBD=!1},setServiceType:function(){var e=this;Object(h.r)().then(function(t){e.serviceType=t}).catch(function(e){Object(m.a)("error","加载测试类型失败")})},setInstitutions:function(){var e=this;Object(h.j)().then(function(t){e.institutionArray=t}).catch(function(e){Object(m.a)("error","获取机构列表失败")})},getTaskDetail:function(){this.showLoading(),Object(h.C)(this.projectId,this.taskId,this.getTaskDetailSuccess,this.getTaskDetailFail)},getWordCloud:function(){Object(h.D)(this.projectId,this.taskId,this.getTaskCloudSuccess,this.getTaskCloudFail)},getTaskCloudSuccess:function(e){this.wordCloud=e.data},getTaskCloudFail:function(e){Object(m.a)("error",e)},getTaskDetailSuccess:function(e){this.hideLoading(),this.taskId=e.crowdTaskVO.id,this.projectId=e.crowdTaskVO.projectId,this.task.title=e.crowdTaskVO.title,this.task.description=e.crowdTaskVO.description,this.task.serviceType=e.crowdTaskVO.serviceType,this.task.resource=e.crowdTaskVO.resource.toString(),this.task.location=Object(h.z)(e.crowdTaskVO.location.provinceCode,e.crowdTaskVO.location.cityCode),this.task.institution=e.crowdTaskVO.institution,this.task.datetime=new Date(e.crowdTaskVO.datetime),this.task.quotePrice=e.crowdTaskVO.quotePrice,this.task.acceptedCount=e.crowdTaskVO.acceptedCount,this.task.participantCount=e.crowdTaskVO.participantCount,this.task.fixedPrice=e.crowdTaskVO.fixedPrice,this.task.doc=[],this.task.requireDocUrl=e.crowdTaskVO.requirementFile,this.task.agencyId=e.crowdTaskVO.agencyId,this.task.status=e.crowdTaskVO.status,this.task.statusVO=e.crowdTaskVO.statusVO,this.task.endPoint=e.crowdTaskVO.endPointVO?e.crowdTaskVO.endPointVO:{serverCode:""},this.taskOperationControl=e.taskOperationControl,this.acceptedUserList=e.acceptedUserList,this.crowdReportUrl=e.crowdTaskVO.writeReportUrl,this.handleFormatReport(this.acceptedUserList),this.handleTestTypeChange(e.crowdTaskVO.serviceType),this.serviceName=this.getServiceByCode(e.crowdTaskVO.serviceType),e.crowdTaskVO.endPointVO&&(e.crowdTaskVO.endPointVO.token?(this.shortLink=e.crowdTaskVO.endPointVO.token,this.editShortLink=!1):this.editShortLink=!0)},getTaskDetailFail:function(e){this.hideLoading()},handleFormatReport:function(e){var t=this;e.map(function(e){e.crowdReportVOS&&e.crowdReportVOS.map(function(n){n.userName=e.userVO.userName,t.reportList.push(n)})})},dateFormat:function(e,t){var n={"M+":(e=new Date(e)).getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[i]:("00"+n[i]).substr((""+n[i]).length)));return t},updateTask:function(){var e=this;this.$refs.task.validate(function(t){if(!t)return Object(m.a)("error","表单填写有误!"),!1;e.showLoading();var n={name:e.task.title,desc:e.task.description,type:e.task.serviceType,resource:e.task.resource,location:null==e.task.location?{}:Object(h.A)(e.task.location.provinceCode,e.task.location.cityCode),institution:e.task.institution?e.task.institution.id:null,datetime:e.task.datetime,quotePrice:e.task.quotePrice,fixedPrice:e.task.fixedPrice,requirementFile:e.task.requireDocUrl,participantCount:e.task.participantCount,endPoint:e.task.endPoint};Object(h.Q)(e.projectId,e.taskId,n,e.updateTaskSuccess,e.updateTaskFail)})},updateTaskSuccess:function(e){this.cancelMode(),this.taskId=e.crowdTaskVO.id,this.projectId=e.crowdTaskVO.projectId,this.task.title=e.crowdTaskVO.title,this.task.description=e.crowdTaskVO.description,this.task.serviceType=e.crowdTaskVO.serviceType,this.task.resource=e.crowdTaskVO.resource,this.task.location=null==e.crowdTaskVO.location?{provinceCode:3200,cityCode:3201}:Object(h.z)(e.crowdTaskVO.location.provinceCode,e.crowdTaskVO.location.cityCode),this.task.institution=e.crowdTaskVO.institution,this.task.datetime=new Date(e.crowdTaskVO.datetime),this.task.quotePrice=e.crowdTaskVO.quotePrice,this.task.fixedPrice=e.crowdTaskVO.fixedPrice,this.task.doc=[],this.task.requireDocUrl=e.crowdTaskVO.requirementFile,this.task.participantCount=e.crowdTaskVO.participantCount,this.task.endPoint=e.crowdTaskVO.endPointVO?e.crowdTaskVO.endPointVO:{serverCode:""},this.task.createTime=e.crowdTaskVO.createTime,this.reportList=e.crowdReportVOList,this.crowdReportUrl=e.crowdTaskVO.writeReportUrl,this.acceptedUserList=e.acceptedUserList,this.handleTestTypeChange(e.crowdTaskVO.serviceType),this.serviceName=this.getServiceByCode(e.crowdTaskVO.serviceType),this.hideLoading(),Object(m.a)("success","修改成功")},updateTaskFail:function(e){Object(m.a)("error","修改失败:"+e.data),this.hideLoading()},uploadRequireDoc:function(e){var t=this,n=new FormData;n.append("file",e.file),d.a.upload(p.a.FILE.REQUIREMENT_FILE.replace("{userId}",this.user.userVO.id),n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){Object(m.a)("success","上传成功"),t.uploadRequireDocSuccess(e)}).catch(function(e){Object(m.a)("error","上传失败:"+e.data),t.uploadRequireDocFail(e)})},uploadRequireDocSuccess:function(e){this.hideLoading(),console.log("上传成功"),this.task.requireDocUrl=e.data,console.log(e.data)},uploadRequireDocFail:function(e){this.hideLoading(),Object(m.a)("error","任务需求文档上传失败:"+e.data)},beforeRemove:function(e,t){},handleRemove:function(e,t){console.log(e,t)},handleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件,本次选择了 "+e.length+" 个文件,共选择了 "+(e.length+t.length)+" 个文件")},receiveTask:function(){var e=this;this.$confirm("确认接收任务?","提示",{confirmButtonText:"确认接收",cancelButtonText:"取消",type:"success"}).then(function(){e.showLoading(),Object(h.G)(e.projectId,e.taskId,e.user.userVO.id,e.receiveTaskSuccess,e.receiveTaskFail)}).catch(function(){})},receiveTaskSuccess:function(e){this.hideLoading(),this.getTaskDetail(),Object(m.a)("success","接收任务成功"),this.taskOperationControl=e.taskOperationControl,this.task.status=e.crowdTaskVO.status,this.task.institution=e.crowdTaskVO.institution},receiveTaskFail:function(e){this.hideLoading(),Object(m.a)("error","接收任务失败:"+e.data)},recommendTask:function(){var e={title:this.task.title,description:this.task.description,participantCount:this.task.participantCount,quotePrice:this.task.quotePrice,requirementFile:this.task.requireDocUrl,serviceType:this.task.serviceType,createTime:this.task.createTime,datetime:this.task.datetime};d.a.post("/recommendationtest/querywithparam",e).then(function(e){window.open("http://59.42.10.54:7477/userinformation.html")})},rejectTask:function(){var e=this;this.$confirm("确认拒绝任务?拒绝后将不能再接收该任务","提示",{confirmButtonText:"确认拒绝",cancelButtonText:"取消",type:"success"}).then(function(){e.showLoading(),Object(h.I)(e.projectId,e.taskId,e.rejectTaskSuccess,e.rejectTaskFail)}).catch(function(){})},rejectTaskSuccess:function(e){this.hideLoading(),this.$router.push({name:"Mine"}),Object(m.a)("success","拒绝任务成功,已为您自动跳转到个人中心")},rejectTaskFail:function(e){this.hideLoading(),Object(m.a)("error","拒绝任务失败:"+e.data)},submitTaskRequest:function(){var e=this;this.$confirm("确认提交任务?提交后将不能再修改","提示",{confirmButtonText:"确认提交",cancelButtonText:"取消",type:"success"}).then(function(){e.showLoading(),Object(h.M)(e.projectId,e.taskId,e.submitTaskRequestSuccess,e.submitTaskRequestFail)}).catch(function(){})},submitTaskRequestSuccess:function(e){this.hideLoading(),console.log(e),this.taskOperationControl=e.taskOperationControl,this.task.status=e.crowdTaskVO.status,this.task.institution=e.crowdTaskVO.institution,Object(m.a)("success","提交任务成功,等待区域管理员审核"),this.getTaskDetail()},submitTaskRequestFail:function(e){this.hideLoading(),Object(m.a)("error","提交任务失败:"+e.data)},endTask:function(){var e=this;this.$confirm("确认结束任务?","提示",{confirmButtonText:"确认结束",cancelButtonText:"取消",type:"success"}).then(function(){e.getTaskDetail(),e.showLoading(),Object(h.g)(e.projectId,e.taskId,e.endTaskSuccess,e.endTaskFail)}).catch(function(){})},endTaskSuccess:function(e){this.hideLoading(),this.taskOperationControl=e.taskOperationControl,this.task.status=e.crowdTaskVO.status,this.task.institution=e.crowdTaskVO.institution,Object(m.a)("success","结束任务成功!"),this.getTaskDetail()},endTaskFail:function(e){this.hideLoading(),Object(m.a)("error","结束任务失败:"+e.data)},toCreateReport:function(){this.$router.push({name:"TaskReportCreate",params:{scope:1,dependencyCode:this.taskId,projectId:this.projectId,taskId:this.taskId}})},reformDate:function(e){return Object(h.w)(e)}}},v={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"create-container"},[e.isModifyMode?e._e():n("div",{staticClass:"title h1"},[e._v("任务")]),e._v(" "),n("div",{staticClass:"create-body"},[e.isModifyMode?e._e():n("div",{staticClass:"title h2"},[e._v("基本信息")]),e._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:15}},[n("el-form",{ref:"task",staticClass:"demo-task",staticStyle:{margin:"0 80px"},attrs:{model:e.task,rules:e.rules,"label-width":"120px"}},[n("el-form-item",{staticStyle:{width:"700px"},attrs:{label:"任务名称",prop:"title"}},[e.isModifyMode?n("el-input",{attrs:{size:"small"},model:{value:e.task.title,callback:function(t){e.$set(e.task,"title",t)},expression:"task.title"}}):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[e._v(e._s(e.task.title))]),e._v(" "),e.isModifyMode?e._e():n("el-tag",{attrs:{type:e.task.statusVO&&e.task.statusVO.style}},[e._v(e._s(e.task.statusVO?e.task.statusVO.text:"")+"\n ")])],1),e._v(" "),n("el-form-item",{staticStyle:{width:"700px"},attrs:{label:"任务描述",prop:"description"}},[e.isModifyMode?n("el-input",{attrs:{autosize:"",type:"textarea"},model:{value:e.task.description,callback:function(t){e.$set(e.task,"description",t)},expression:"task.description"}}):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[e._v(e._s(e.task.description?e.task.description:"暂无"))])],1),e._v(" "),n("el-form-item",{staticStyle:{width:"700px"},attrs:{label:"任务报价",prop:"quotePrice"}},[e.isModifyMode?n("el-input",{attrs:{size:"small",type:"number"},model:{value:e.task.quotePrice,callback:function(t){e.$set(e.task,"quotePrice",t)},expression:"task.quotePrice"}},[n("template",{slot:"append"},[e._v("¥")])],2):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[e._v("¥"+e._s(e.task.quotePrice))])],1),e._v(" "),n("el-form-item",{attrs:{label:"测试类型",prop:"serviceType"}},[e.isModifyMode?n("el-radio-group",{on:{change:e.handleTestTypeChange},model:{value:e.task.serviceType,callback:function(t){e.$set(e.task,"serviceType",t)},expression:"task.serviceType"}},e._l(e.serviceType,function(t,i){return n("span",{key:i},[n("el-radio",{attrs:{label:t.code,name:"serviceType"}},[e._v(e._s(t.name))])],1)}),0):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",{staticClass:"badge"},[e._v(e._s(e.serviceName))])],1),e._v(" "),e.showBD&&e.task.endPoint&&1===e.currType.type?n("el-form-item",{staticStyle:{width:"700px"},attrs:{label:"服务序列号",prop:"endPoint"}},[e.isModifyMode?n("el-input",{attrs:{label:"examId"},model:{value:e.task.endPoint.serverCode,callback:function(t){e.$set(e.task.endPoint,"serverCode",t)},expression:"task.endPoint.serverCode"}}):e._e(),e._v(" "),!e.isModifyMode&&e.showBD?n("span",[e._v(e._s(e.task.endPoint.serverCode))]):e._e()],1):e._e(),e._v(" "),n("el-form-item",{staticStyle:{width:"700px"},attrs:{label:"任务可见性",prop:"resource"}},[e.isModifyMode?e._e():n("div",[0==e.task.resource?n("div",[e._v("定向")]):e._e(),e._v(" "),2==e.task.resource?n("div",[e._v(e._s(e.resourceType[e.task.resource]))]):e._e()]),e._v(" "),e.isModifyMode?n("el-tabs",{staticStyle:{"max-height":"200px"},attrs:{"tab-position":e.tabPosition},model:{value:e.task.resource,callback:function(t){e.$set(e.task,"resource",t)},expression:"task.resource"}},[n("el-tab-pane",{attrs:{label:e.resourceType[0],name:"0"}},[n("el-radio-group",{on:{change:e.handleTestTypeChange},model:{value:e.task.institution,callback:function(t){e.$set(e.task,"institution",t)},expression:"task.institution"}},e._l(e.institutionArray,function(t,i){return n("el-radio",{key:i,attrs:{label:t,name:"type"}},[e._v(e._s(t.evaluationAgencyName)+"\n ")])}),1)],1),e._v(" "),n("el-tab-pane",{attrs:{label:e.resourceType[2],name:"2"}})],1):e._e()],1),e._v(" "),e.isModifyMode&&"0"!==e.task.resource&&0===e.currType.type?n("el-form-item",{attrs:{label:"领取人数",prop:"contactPhone"}},[n("el-input-number",{attrs:{min:1,max:1e3,label:"领取人数"},model:{value:e.task.participantCount,callback:function(t){e.$set(e.task,"participantCount",t)},expression:"task.participantCount"}})],1):e._e(),e._v(" "),e.isModifyMode&&"0"!==e.task.resource&&1===e.currType.type?n("el-form-item",{attrs:{label:"领取人数",prop:"contactPhone"}},[n("el-input-number",{attrs:{min:2,max:1e3,label:"领取人数"},model:{value:e.task.participantCount,callback:function(t){e.$set(e.task,"participantCount",t)},expression:"task.participantCount"}})],1):e._e(),e._v(" "),e.isModifyMode?e._e():n("el-form-item",{attrs:{label:"领取人数",prop:"quotePrice"}},[e._v("\n "+e._s(e.task.acceptedCount)+"/"+e._s(e.task.participantCount)+"\n ")]),e._v(" "),n("el-form-item",{attrs:{label:"需求文档",prop:"doc"}},[e.isModifyMode?n("el-upload",{staticClass:"upload-demo",staticStyle:{width:"400px"},attrs:{drag:"",action:"","on-remove":e.handleRemove,"before-remove":e.beforeRemove,limit:1,"on-exceed":e.handleExceed,"http-request":e.uploadRequireDoc,"file-list":e.task.doc}},[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或\n "),n("em",[e._v("点击上传")])])]):e._e(),e._v(" "),n("span",[null==e.task.requireDocUrl||""==e.task.requireDocUrl?n("span",[n("i",{staticClass:"el-icon-document"}),e._v("暂无文件\n ")]):e._e(),e._v(" "),null!=e.task.requireDocUrl&&""!=e.task.requireDocUrl?n("span",[n("a",{attrs:{href:e.task.requireDocUrl}},[n("el-link",{attrs:{underline:!1,type:"primary"}},[n("i",{staticClass:"el-icon-document"}),e._v("下载文档")])],1)]):e._e()])],1),e._v(" "),n("el-form-item",{attrs:{label:"任务截止时间",prop:"datetime"}},[e.isModifyMode?n("div",{staticClass:"block"},[n("el-date-picker",{attrs:{size:"small",type:"datetime",placeholder:"选择截止时间",align:"right","picker-options":e.pickerOptions},model:{value:e.task.datetime,callback:function(t){e.$set(e.task,"datetime",t)},expression:"task.datetime"}})],1):e._e(),e._v(" "),e.isModifyMode?e._e():n("span",[e._v(e._s(e.dateFormat(new Date(e.task.datetime),"yyyy-MM-dd HH:mm:ss")))])]),e._v(" "),e.isModifyMode?n("el-form-item",[n("div",{staticClass:"btn btn-small btn-info",on:{click:function(t){return e.updateTask()}}},[e._v("确认修改")]),e._v(" "),n("div",{staticClass:"btn btn-small",on:{click:function(t){return e.cancelMode()}}},[e._v("取消")])]):e._e(),e._v(" "),e.editShortLink&&e.task.endPoint.serverCode&&e.taskOperationControl.confirmFinish?n("el-form-item",{attrs:{label:"任务面板链接",props:"shortLink"}},[n("el-input",{staticStyle:{width:"800px"},attrs:{placeholder:"请输入短链接生成任务报告"},model:{value:e.shortLink,callback:function(t){e.shortLink=t},expression:"shortLink"}},[n("template",{slot:"append"},[n("el-button",{on:{click:function(t){return e.getTaskDataBoard()}}},[e._v("确定")])],1)],2)],1):e._e(),e._v(" "),e.shortLink&&!e.editShortLink?n("el-form-item",{attrs:{label:"任务面板链接",props:"shortLink"}},[e._v("\n "+e._s(e.shortLink)+"\n "),e.taskOperationControl.confirmFinish?n("i",{staticClass:"el-icon-edit",on:{click:function(t){e.editShortLink=!0}}}):e._e()]):e._e(),e._v(" "),e.isModifyMode?e._e():n("el-form-item",[n("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.toProject()}}},[e._v("项目详情")]),e._v(" "),n("el-popover",{attrs:{placement:"top-start",title:"确认结束?",width:"200",trigger:"hover",content:"测评机构已提交结束申请,请确认是否结束该任务"}},[e.taskOperationControl.confirmFinish?n("el-button",{attrs:{slot:"reference",type:"success",size:"mini"},on:{click:function(t){return e.endTask()}},slot:"reference"},[e._v("确认结束\n ")]):e._e()],1),e._v(" "),n("el-popover",{attrs:{placement:"top-start",title:"确认提交?",width:"200",trigger:"hover",content:"提交任务后不可更改,等待区域管理员验收"}},[e.taskOperationControl.finish?n("el-button",{attrs:{slot:"reference",type:"primary",size:"mini"},on:{click:function(t){return e.submitTaskRequest()}},slot:"reference"},[e._v("提交任务\n ")]):e._e()],1),e._v(" "),n("el-popover",{attrs:{placement:"top-start",title:"确认拒绝?",width:"200",trigger:"hover",content:"拒绝后不可再接收此任务,且该任务对您不可见"}},[e.taskOperationControl.reject?n("el-button",{attrs:{slot:"reference",type:"danger",size:"mini"},on:{click:function(t){return e.rejectTask()}},slot:"reference"},[e._v("拒绝任务\n ")]):e._e()],1),e._v(" "),n("el-popover",{attrs:{placement:"top-start",title:"确认接收?",width:"200",trigger:"hover",content:"接收任务后请认真完成!"}},[e.taskOperationControl.receive?n("el-button",{attrs:{slot:"reference",type:"primary",size:"mini"},on:{click:function(t){return e.receiveTask()}},slot:"reference"},[e._v("接收任务\n ")]):e._e()],1),e._v(" "),e.taskOperationControl.writeReport?n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.gotoWriteReport()}}},[e._v("填写报告\n ")]):e._e(),e._v(" "),e.taskOperationControl.update?n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.modifyForm()}}},[e._v("修改任务\n ")]):e._e(),e._v(" "),e.taskOperationControl.taskRecommend?n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.recommendTask()}}},[e._v("任务推荐\n ")]):e._e(),e._v(" "),e.taskOperationControl.uploadReport?n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.toCreateReport()}}},[e._v("\n 上传报告\n ")]):e._e(),e._v(" "),e.taskOperationControl.taskDemonstrate?n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(t){return e.gotoDataboard()}}},[e._v("\n 任务面板\n ")]):e._e()],1)],1)],1),e._v(" "),n("el-col",{attrs:{span:9}},[e.wordCloud.length?n("TaskCloud",{attrs:{info:e.wordCloud}}):e._e()],1)],1)],1),e._v(" "),e.isModifyMode?e._e():n("div",{staticClass:"create-body"},[n("div",{staticClass:"title h2"},[e._v("用户报告列表")]),e._v(" "),n("el-collapse",{staticStyle:{margin:"0 30px"},attrs:{accordion:""}},e._l(e.acceptedUserList,function(t,i){return n("el-collapse-item",{key:t.id},[n("template",{slot:"title"},[n("el-row",{staticStyle:{width:"100%","font-size":"16px"}},[n("el-col",{attrs:{span:6}},[e._v(e._s(t.userVO.userName))]),e._v(" "),n("el-col",{attrs:{span:6}},[e._v(e._s(t.userVO.email))]),e._v(" "),n("el-col",{attrs:{span:6}},[t.crowdReportVOS?n("el-tag",{attrs:{type:"success"}},[e._v("已提交报告")]):e._e(),e._v(" "),t.crowdReportVOS?e._e():n("el-tag",{attrs:{type:"info"}},[e._v("未提交报告")])],1),e._v(" "),n("el-col",{attrs:{span:6}},[t.isCommitted?n("el-tag",{attrs:{type:"success"}},[e._v("已提交任务")]):e._e(),e._v(" "),t.isCommitted?e._e():n("el-tag",{attrs:{type:"info"}},[e._v("未提交任务")])],1)],1)],1),e._v(" "),n("report-list",{attrs:{reports:t.crowdReportVOS,taskId:e.taskId,projectId:e.projectId}})],2)}),1)],1)])},staticRenderFns:[]};var g=n("VU/8")(f,v,!1,function(e){n("dTSN")},"data-v-4e5a9fb5",null);t.default=g.exports},"N+6r":function(e,t){},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("7+uW"),a=n("SQ4B"),o=n("Dd8w"),s=n.n(o),r=n("vGYV"),c=n("b9vf"),l=n("NYxO"),u=n("2uFj"),d={name:"Header2.0",data:function(){return{user:{},loading:!1,fullScreenLoading:!0,loginUrl:u.b,registerUrl:u.c,authInfo:{},isShowAuthCheckingDialog:!1,isShowAuthRejectDialog:!1,isShowAuthPassDialog:!1,openNavBar:!1,defaultValue:r.c,userIdentity:"",isLogin:!1,rolesPermissions:{},city:""}},watch:{"user.authStatus":function(e){this.user.authStatus=e},deep:!0},methods:s()({},Object(l.b)(["setUser"]),{gotoHome:function(){this.$router.push("/home")},openNavBarFunc:function(){this.openNavBar=!this.openNavBar},getAddress:function(){var e=this;a.a.get(c.a.USER.GET_ADDRESS).then(function(t){e.city=t.city}).catch(function(t){e.hideLoading(),notify("error","获取定位失败:"+t.data)})},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},setUserInfo:function(){var e=this;this.showLoading(),null==Object(r.J)("user")?(Object(r.K)("rolesPermissions",{isRegionManager:!1,isIndividualUser:!1,isEnterpriseUser:!1,isAgency:!1,isSystemAdministrator:!1}),Object(r.v)().then(function(t){Object(r.K)("user",t),e.setUser(t),e.user=t,Object(r.K)("rolesPermissions",Object(r.B)(t.roleList)),e.rolesPermissions=Object(r.J)("rolesPermissions"),console.log("用户信息加载成功"),e.isLogin=!0,e.hideLoading()}).catch(function(t){console.log("用户信息加载失败"),e.hideLoading()})):(this.user=Object(r.J)("user"),this.rolesPermissions=Object(r.J)("rolesPermissions"),this.isLogin=!0),this.hideLoading()},getCurrentUserSuccess:function(e){Object(r.K)("user",e),this.user=e,Object(r.K)("rolesPermissions",Object(r.B)(e.roleList)),this.rolesPermissions=Object(r.J)("rolesPermissions"),console.log("用户信息加载成功"),this.isLogin=!0,this.fullScreenLoading=!1},getCurrentUserFail:function(e){console.log("用户信息加载失败"),this.fullScreenLoading=!1},userLogout:function(){var e=this;this.isLogin=!1,Object(r.E)().then(function(t){console.log(e.$route.fullPath),e.$route.fullPath.includes("/home")?location.reload():e.$router.push("/home")})},handleClickAuthReject:function(){"agency"==this.user.userVO.authType&&this.$router.push({name:"AgencyAuthentication",params:{userId:this.user.userVO.id}}),"enterprise"==this.user.userVO.authType&&this.$router.push({name:"EnterpriseAuthentication",params:{userId:this.user.userVO.id}}),"personal"==this.user.userVO.authType&&this.$router.push({name:"IndividualAuthentication",params:{userId:this.user.userVO.id}})},handleClickAuthPass:function(){this.user.personalAuthVO?this.$router.push({name:"IndividualAuthentication",params:{userId:this.user.userVO.id}}):this.user.agencyVO?this.$router.push({name:"AgencyAuthentication",params:{userId:this.user.userVO.id}}):this.user.enterpriseAuthVO&&this.$router.push({name:"EnterpriseAuthentication",params:{userId:this.user.userVO.id}})},handleClickAuthChecking:function(){"agency"==this.user.userVO.authType&&this.$router.push({name:"AgencyAuthentication",params:{userId:this.user.userVO.id}}),"enterprise"==this.user.userVO.authType&&this.$router.push({name:"EnterpriseAuthentication",params:{userId:this.user.userVO.id}}),"personal"==this.user.userVO.authType&&this.$router.push({name:"IndividualAuthentication",params:{userId:this.user.userVO.id}})},showAuthRejectDialog:function(){this.isShowAuthRejectDialog=!0},showAuthPassDialog:function(){this.isShowAuthPassDialog=!0},showAuthCheckingDialog:function(){this.isShowAuthCheckingDialog=!0},hideAuthRejectDialog:function(){this.isShowAuthRejectDialog=!1},hideAuthPassDialog:function(){this.isShowAuthPassDialog=!1},hideAuthCheckingDialog:function(){this.isShowAuthCheckingDialog=!1},deleteOldAuthInfo:function(){var e=this;this.hideAuthCheckingDialog(),this.hideAuthRejectDialog(),this.hideAuthPassDialog(),this.showLoading(),Object(r.d)().then(function(t){e.hideLoading(),notify("success","成功删除认证信息")}).catch(function(t){e.hideLoading(),notify("error","删除认证信息失败:"+t.data)})},getAuthInfo:function(){this.showLoading(),"agency"==this.user.userVO.authType&&Object(r.s)(this.user.userVO.id,this.getCurrentAgencyAuthInfoSuccess,this.getCurrentAgencyAuthInfoFail),"personal"==this.user.userVO.authType&&Object(r.u)(this.user.userVO.id,this.getCurrentIndividualAuthenInfoSuccess,this.getCurrentIndividualAuthenInfoFail),"enterprise"==this.user.userVO.authType&&Object(r.t)(this.user.userVO.id,this.getCurrentEnterpriseAuthInfoSuccess,this.getCurrentEnterpriseAuthInfoFail)},getCurrentAgencyAuthInfoSuccess:function(){this.hideLoading()},getCurrentAgencyAuthInfoFail:function(){this.hideLoading()},getCurrentIndividualAuthenInfoSuccess:function(){this.hideLoading()},getCurrentIndividualAuthenInfoFail:function(){this.hideLoading()},getCurrentEnterpriseAuthInfoSuccess:function(){this.hideLoading()},getCurrentEnterpriseAuthInfoFail:function(){this.hideLoading()},handleUpdateAuthInfo:function(){this.hideAuthPassDialog(),this.hideAuthRejectDialog(),this.hideAuthCheckingDialog(),"personal"==this.user.userVO.authType&&this.$router.push({name:"IndividualAuthentication",params:{userId:this.authInfo.userId}}),"enterprise"==this.authInfo.type&&this.$router.push({name:"EnterpriseAuthentication",params:{userId:this.authInfo.userId}}),"agency"==this.authInfo.type&&this.$router.push({name:"AgencyAuthentication",params:{userId:this.authInfo.userId}})}}),created:function(){var e=this;this.$root.$on("user",function(t){e.user=t})},beforeMount:function(){this.getAddress(),this.setUserInfo()}},p={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"header-nav"},[n("div",{staticClass:"container"},[n("div",{staticClass:"nav-location pull-left"},[n("i",{staticClass:"el-icon-location-outline",staticStyle:{"margin-right":"5px"}}),e._v(" "),e.city&&""!=e.city?n("span",{staticStyle:{"line-height":"34px"}},[e._v(e._s(e.city))]):n("span",{staticStyle:{"line-height":"34px"}},[e._v("暂无")])]),e._v(" "),n("div",{staticClass:"nav-list pull-right"},[n("ul",[n("li",[n("a",{staticStyle:{cursor:"pointer"},on:{click:e.gotoHome}},[e._v("首页")])]),e._v("\n    |   \n "),n("li"),e.isLogin?n("li",[n("el-dropdown",[n("span",{staticClass:"el-dropdown-link",staticStyle:{color:"rgb(153,153,153)"}},[e._v("\n "+e._s(e.user.userVO.name)),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",[n("router-link",{attrs:{to:{path:"/personal/mine"}}},[n("el-link",{attrs:{icon:"el-icon-user",underline:!1}},[e._v("\n 个人中心\n ")])],1)],1),e._v(" "),e.rolesPermissions.isSystemAdministrator?n("el-dropdown-item",[n("router-link",{attrs:{to:{name:"AuthenticationManage"}}},[n("el-link",{attrs:{icon:"el-icon-view",underline:!1}},[e._v("\n 审核认证信息\n ")])],1)],1):e._e(),e._v(" "),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.userLogout()}}},[e._v("登出")])],1)],1)],1):e._e(),e._v(" "),e.isLogin?e._e():n("li",[n("a",{attrs:{href:e.loginUrl}},[e._v("请登录")])]),e._v("\n    |   \n "),e.isLogin?e._e():n("li",[n("a",{attrs:{href:e.registerUrl}},[e._v("免费注册")])]),e._v(" "),e.isLogin?n("li",[e.isLogin?e._e():n("span",[e._v("   |   ")]),e._v(" "),e.isLogin?n("router-link",{attrs:{to:"/mine"}},[n("a",{staticClass:"dropdown-toggle nav-link",attrs:{"data-toggle":"dropdown"}},[n("span",[e._v("我的众测")])])]):e._e()],1):e._e(),e._v(" "),e.isLogin&&e.rolesPermissions.isSystemAdministrator?n("span",[e._v("   |   ")]):e._e(),e._v(" "),e.isLogin&&e.rolesPermissions.isSystemAdministrator?n("li",[e.isLogin?n("router-link",{attrs:{to:"/statistics"}},[n("span",[e._v("机构统计")])]):e._e()],1):e._e(),e._v(" "),e.isLogin&&e.rolesPermissions.isSystemAdministrator?n("span",[e._v("   |   ")]):e._e(),e._v(" "),e.isLogin&&e.rolesPermissions.isSystemAdministrator?n("li",[n("a",{attrs:{href:"http://47.98.174.59:8101/home"}},[e._v("后台管理")])]):e._e()])])])])},staticRenderFns:[]};var m=n("VU/8")(d,p,!1,function(e){n("qxEW")},"data-v-f4e0ae6c",null).exports,h={name:"Footer2.0",data:function(){return{logo_white:u.a.logo_white,footer_title_one:u.a.footer_title_one,footer_title_two:u.a.footer_title_two,footer_provider_number:u.a.footer_provider_number,footer_mobile:u.a.footer_mobile,footer_fax:u.a.footer_fax,footer_email:u.a.footer_email,footer_QRcode:u.a.footer_QRcode}}},f={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footer-nav"},[n("div",{staticClass:"container"},[n("el-row",{staticStyle:{height:"120px"}},[n("el-col",{staticClass:"nav-logo-block",attrs:{span:5}},[n("div",{staticClass:"nav-title-wrapper"},[n("img",{staticClass:"nav-logo",attrs:{src:e.logo_white,alt:"logo"}}),e._v(" "),n("div",{staticClass:"nav-title"},[e._v("\n "+e._s(e.footer_title_one)),n("br"),e._v("\n "+e._s(e.footer_title_two)+"\n ")])])]),e._v(" "),n("el-col",{staticStyle:{"padding-left":"15%"},attrs:{span:19}},[n("div",{staticClass:"copyright-block pull-left",staticStyle:{margin:"12px 0"}},[e._v("\n 版权所有©信息产品及科技服务集成化众测服务平台与应用项目组"),n("br"),e._v(" "),n("a",{staticStyle:{color:"white","font-size":"16px"},attrs:{href:"http://www.beian.miit.gov.cn/"}},[e._v(e._s(e.footer_provider_number))]),n("br"),e._v("\n 电话:"+e._s(e.footer_mobile)+" 传真:"+e._s(e.footer_fax)+"1"),n("br"),e._v("\n 电子邮箱:"+e._s(e.footer_email)+"\n ")]),e._v(" "),n("div",{staticClass:"code-block pull-right"},[n("img",{staticClass:"mooctest-code",staticStyle:{width:"110px",height:"110px",display:"block"},attrs:{src:e.footer_QRcode,alt:"QRcode"}}),e._v(" "),n("div",{staticStyle:{width:"110px","text-align":"center"}},[e._v("官方微信公众号")])])])],1)],1)])},staticRenderFns:[]};var v=n("VU/8")(h,f,!1,function(e){n("Fcpd")},"data-v-5cf92ec0",null).exports,g=n("qI5z"),_={name:"HomeSlice",data:function(){return{user:{},home_background_url:u.a.home_background_url,isLogin:!1,loading:!1,title:u.a.title,subtitle:u.a.subtitle}},methods:{showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},loadData:function(){null!=Object(r.J)("user")&&(this.isLogin=!0,this.user=Object(r.J)("user").userVO)},checkCreateProjectAuth:function(){var e=this;this.isLogin?this.isLogin&&(this.showLoading(),a.a.get(c.a.USER.IS_PART.replace("{userId}",this.user.id)).then(function(t){console.log(t),e.hideLoading(),e.$router.push("/project/create")}).catch(function(t){e.hideLoading(),Object(g.a)("error",t.data)})):(console.log("请登录后访问"),Object(g.a)("warning","请登录后访问"))},checkCreateTaskAuth:function(){var e=this;this.isLogin?this.isLogin&&(this.showLoading(),a.a.get(c.a.USER.IS_AGENCY.replace("{userId}",this.user.id)).then(function(t){console.log(t),e.hideLoading(),e.$router.push("/square")}).catch(function(t){e.hideLoading(),Object(g.a)("error",t.data)})):(console.log("请登录后访问"),Object(g.a)("warning","请登录后访问"))},goToCreateProject:function(){this.checkCreateProjectAuth()},goToCreateTask:function(){this.checkCreateTaskAuth()}},mounted:function(){this.loadData()}},y={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"home-slice",style:{backgroundImage:"url("+e.home_background_url+")"}},[n("el-row",{staticStyle:{"padding-top":"40px"}},[n("div",{staticClass:"slice-wrapper"},[n("div",{staticClass:"slice-title"},[e._v(e._s(e.title))]),e._v(" "),n("div",{staticClass:"slice-info"},[n("span",{staticClass:"line"}),e._v(" "),n("span",{staticClass:"txt"},[e._v(e._s(e.subtitle))]),e._v(" "),n("span",{staticClass:"line"})]),e._v(" "),n("div",[n("el-button",{staticClass:"crowd-btn publish-btn",on:{click:e.goToCreateProject}},[e._v("发布项目")]),e._v(" "),n("el-button",{staticClass:"crowd-btn participate-btn",on:{click:e.goToCreateTask}},[e._v("参与众测")])],1)])])],1)},staticRenderFns:[]};var j={name:"App",components:{HeaderContainer:m,FooterContainer:v,HomeSlice:n("VU/8")(_,y,!1,function(e){n("v6wT")},"data-v-4fb1e962",null).exports},data:function(){return{}},methods:{setUserInfo:function(){}},computed:{showSlice:function(){if("/home"===this.$route.path||"/"===this.$route.path)return!0}}},b={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"body-content"},[this.showSlice?t("home-slice"):this._e(),this._v(" "),t("header-container"),this._v(" "),t("div",{staticClass:"container-wrapper"},[this._t("default",[t("div",{staticClass:"main-container"},[t("router-view")],1)])],2),this._v(" "),t("footer-container")],1)},staticRenderFns:[]};var k=n("VU/8")(j,b,!1,function(e){n("GVWZ")},null,null).exports,T=n("/ocq"),C={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card"},[e._m(0),e._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"card-title",attrs:{title:e.item.title}},[e._v(e._s(e.item.title))]),e._v(" "),n("div",{staticClass:"card-desc"}),e._v(" "),n("div",{staticClass:"card-action"},[n("div",{staticClass:"btn btn-small btn-info",on:{click:function(t){return e.goToTaskDetail(e.item.projectId,e.item.id)}}},[e._v("查看详情")]),e._v(" "),n("div",{staticClass:"participate-num"})])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"card-header card-header-image"},[t("a",{attrs:{href:"#"}},[t("img",{attrs:{src:n("x9fL"),alt:""}})])])}]};var I={name:"InstitutionRank",props:{item:{}},data:function(){return{tableData:this.item,defaultValue:r.c}},watch:{item:function(){this.tableData=this.item}}},x={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,showHeader:!0,border:""}},[n("el-table-column",{attrs:{type:"index",width:"50",label:"排名"}}),e._v(" "),n("el-table-column",{attrs:{prop:"logo",width:"auto",label:"机构logo"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("img",{staticClass:"logo-img",attrs:{src:null==t.row.logo?e.defaultValue.image:t.row.logo}})]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"name",label:"机构名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"institution-name",staticStyle:{"font-size":"12px"}},[e._v(e._s(t.row.name))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"name",label:"金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"institution-name",staticStyle:{"font-size":"12px"}},[e._v("\n "+e._s(t.row.allTaskPrice)+"\n ")])]}}])})],1)],1)},staticRenderFns:[]};var w={name:"PersonRank",props:{item:{}},data:function(){return{tableData:this.item,defaultValue:r.c}},watch:{item:function(){this.tableData=this.item}}},E={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,showHeader:!0,border:""}},[n("el-table-column",{attrs:{type:"index",width:"50",label:"排名"}}),e._v(" "),n("el-table-column",{attrs:{prop:"logo",width:"auto",label:"头像"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("img",{staticClass:"user-img",attrs:{src:null==t.row.logo?e.defaultValue.image:t.row.logo}})]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"name",label:"用户名"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"institution-style",staticStyle:{"font-size":"12px"}},[e._v(e._s(t.row.name))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"number",label:"金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"institution-style",staticStyle:{"font-size":"12px"}},[e._v("\n "+e._s(t.row.allProjectPrice)+"\n ")])]}}])})],1)],1)},staticRenderFns:[]};var A={name:"Home",components:{TaskCard:n("VU/8")({name:"Task-Card",props:{item:{}},data:function(){return{}},mounted:function(){},watch:{item:function(){}},methods:{goToTaskDetail:function(e,t){this.$router.push({name:"Task",params:{projectId:e,taskId:t}})}}},C,!1,function(e){n("1Uhe")},"data-v-a828dd82",null).exports,InstitutionRank:n("VU/8")(I,x,!1,function(e){n("ttDY")},"data-v-c19f4194",null).exports,PersonRank:n("VU/8")(w,E,!1,function(e){n("mfJG")},"data-v-d7e036a2",null).exports},data:function(){return{user:null,loading:!1,defaultValue:r.c,hotTaskList:[],institutionRank:[],personRank:[],imgList:[],rolesPermissions:{},statisticsData:{userNum:100,agencyNum:200,deviceNum:345,projectNum:23,taskNum:123},systemStatistics:[{},{},{},{},{},{},{},{}]}},mounted:function(){var e=this;console.log("mine mount"),this.$nextTick(function(){e.init()})},methods:{init:function(){this.setUserInfo(),this.loadData()},loadData:function(){var e=this;this.showLoading(),console.log("loadData"),a.a.get(c.a.PAGE.HOME_PAGE).then(function(t){console.log(t),e.hideLoading(),e.hotTaskList=t.hotTaskList,e.institutionRank=t.agencyRank,e.personRank=t.userRank,e.imgList=t.imgList,e.systemStatistics=t.systemStatistics}).catch(function(t){e.hideLoading(),Object(g.a)("error","主页加载失败,请稍后重试")})},setUserInfo:function(){this.user=Object(r.J)("user"),this.rolesPermissions=Object(r.J)("rolesPermissions")},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},getStatisticsData:function(){var e=this;Object(r.y)().then(function(t){e.statisticsData=t}).catch(function(e){Object(g.a)("error","统计数据加载失败")})},getStatisticsDataSuccess:function(){},getStatisticsDataFail:function(){}},created:function(){},watch:{rolesPermissions:function(e){console.log(this.rolesPermissions),console.log(e),this.rolesPermissions=e}}},O={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"home-container"},[n("div",{staticClass:"home-banner-wrap"},[n("el-carousel",{attrs:{height:"400px",interval:1e4,arrow:"always"}},e._l(e.imgList,function(t,i){return n("el-carousel-item",{key:i},[n("img",{staticClass:"banner_back banner_back_1",attrs:{src:t}}),e._v(" "),null!=e.user&&null!=e.rolesPermissions&&(e.rolesPermissions.isAgency||e.rolesPermissions.isIndividualUser||e.rolesPermissions.isSystemAdministrator||e.rolesPermissions.isEnterpriseUser)?n("router-link",{attrs:{to:{name:"ProjectCreate"}}},[n("el-button",{staticClass:"btn-home-apply",attrs:{type:"primary"}},[e._v("创建项目")])],1):e._e()],1)}),1)],1),e._v(" "),n("div",{staticClass:"home-body-wrap"},[n("div",{staticClass:"title h2"},[e._v("系统统计信息")]),e._v(" "),n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[n("el-card",{staticClass:"box-card",staticStyle:{"margin-right":"40px","background-color":"#20A0FF"},attrs:{shadow:"hover"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticStyle:{"font-size":"30px",color:"white"}},[n("i",{staticClass:"el-icon-user"})])]),e._v(" "),n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18,type:"flex",align:"middle",justify:"start"}},[n("span",{staticStyle:{"font-size":"50px",color:"white"}},[e._v(e._s(e.systemStatistics[0].value))])]),e._v(" "),n("el-col",{staticStyle:{"text-align":"left","padding-left":"20px"},attrs:{span:20,type:"flex",align:"bottom",justify:"end"}},[n("span",{staticStyle:{"font-size":"16px",color:"white"},attrs:{type:"success",underline:!1}},[e._v(e._s(e.systemStatistics[0].name)+" ")])])],1)],1)],1),e._v(" "),n("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[n("el-card",{staticClass:"box-card",staticStyle:{"margin-right":"40px","background-color":"#13CE66"},attrs:{shadow:"hover"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticStyle:{"font-size":"30px",color:"white"}},[n("i",{staticClass:"el-icon-setting"})])]),e._v(" "),n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18,type:"flex",align:"middle",justify:"start"}},[n("span",{staticStyle:{"font-size":"50px",color:"white"}},[e._v(e._s(e.systemStatistics[1].value))])]),e._v(" "),n("el-col",{staticStyle:{"text-align":"left","padding-left":"20px"},attrs:{span:20,type:"flex",align:"bottom",justify:"end"}},[n("span",{staticStyle:{"font-size":"16px",color:"white"},attrs:{type:"success",underline:!1}},[e._v(e._s(e.systemStatistics[1].name)+" ")])])],1)],1)],1),e._v(" "),n("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[n("el-card",{staticClass:"box-card",staticStyle:{"margin-right":"40px","background-color":"#F7BA2A"},attrs:{shadow:"hover"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticStyle:{"font-size":"30px",color:"white"}},[n("i",{staticClass:"el-icon-user-solid"})])]),e._v(" "),n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18,type:"flex",align:"middle",justify:"start"}},[n("span",{staticStyle:{"font-size":"50px",color:"white"}},[e._v(e._s(e.systemStatistics[2].value))])]),e._v(" "),n("el-col",{staticStyle:{"text-align":"left","padding-left":"20px"},attrs:{span:20,type:"flex",align:"bottom",justify:"end"}},[n("span",{staticStyle:{"font-size":"16px",color:"white"},attrs:{type:"success",underline:!1}},[e._v(e._s(e.systemStatistics[2].name)+" ")])])],1)],1)],1),e._v(" "),n("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[n("el-card",{staticClass:"box-card",staticStyle:{"margin-right":"40px","background-color":"#FF4949"},attrs:{shadow:"hover"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticStyle:{"font-size":"30px",color:"white"}},[n("i",{staticClass:"el-icon-cpu"})])]),e._v(" "),n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18,type:"flex",align:"middle",justify:"start"}},[n("span",{staticStyle:{"font-size":"50px",color:"white"}},[e._v(e._s(e.systemStatistics[3].value))])]),e._v(" "),n("el-col",{staticStyle:{"text-align":"left","padding-left":"20px"},attrs:{span:20,type:"flex",align:"bottom",justify:"end"}},[n("span",{staticStyle:{"font-size":"16px",color:"white"},attrs:{type:"success",underline:!1}},[e._v(e._s(e.systemStatistics[3].name)+" ")])])],1)],1)],1)],1),e._v(" "),n("el-row",{staticStyle:{"font-size":"14px","margin-top":"15px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[n("el-card",{staticClass:"box-card",staticStyle:{"margin-right":"40px","background-color":"#20A0FF"},attrs:{shadow:"hover"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticStyle:{"font-size":"30px",color:"white"}},[n("i",{staticClass:"el-icon-coin"})])]),e._v(" "),n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18,type:"flex",align:"middle",justify:"start"}},[n("span",{staticStyle:{"font-size":"50px",color:"white"}},[e._v(e._s(e.systemStatistics[4].value))])]),e._v(" "),n("el-col",{staticStyle:{"text-align":"left","padding-left":"20px"},attrs:{span:20,type:"flex",align:"bottom",justify:"end"}},[n("span",{staticStyle:{"font-size":"16px",color:"white"},attrs:{type:"success",underline:!1}},[e._v(e._s(e.systemStatistics[4].name)+" ")])])],1)],1)],1),e._v(" "),n("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[n("el-card",{staticClass:"box-card",staticStyle:{"margin-right":"40px","background-color":"#13CE66",color:"white"},attrs:{shadow:"hover"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticStyle:{"font-size":"30px",color:"white"}},[n("i",{staticClass:"el-icon-bank-card"})])]),e._v(" "),n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18,type:"flex",align:"middle",justify:"start"}},[n("span",{staticStyle:{"font-size":"50px",color:"white"}},[e._v(e._s(e.systemStatistics[5].value))])]),e._v(" "),n("el-col",{staticStyle:{"text-align":"left","padding-left":"20px"},attrs:{span:20,type:"flex",align:"bottom",justify:"end"}},[n("span",{staticStyle:{"font-size":"16px",color:"white"},attrs:{type:"success",underline:!1}},[e._v(e._s(e.systemStatistics[5].name)+" ")])])],1)],1)],1),e._v(" "),n("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[n("el-card",{staticClass:"box-card",staticStyle:{"margin-right":"40px","background-color":"#F7BA2A"},attrs:{shadow:"hover"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticStyle:{"font-size":"30px",color:"white"}},[n("i",{staticClass:"el-icon-notebook-1"})])]),e._v(" "),n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18,type:"flex",align:"middle",justify:"start"}},[n("span",{staticStyle:{"font-size":"50px",color:"white"}},[e._v(e._s(e.systemStatistics[6].value))])]),e._v(" "),n("el-col",{staticStyle:{"text-align":"left","padding-left":"20px"},attrs:{span:20,type:"flex",align:"bottom",justify:"end"}},[n("span",{staticStyle:{"font-size":"16px",color:"white"},attrs:{type:"success",underline:!1}},[e._v(e._s(e.systemStatistics[6].name)+" ")])])],1)],1)],1),e._v(" "),n("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[n("el-card",{staticClass:"box-card",staticStyle:{"margin-right":"40px","background-color":"#FF4949"},attrs:{shadow:"hover"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticStyle:{"font-size":"30px",color:"white"}},[n("i",{staticClass:"el-icon-notebook-2"})])]),e._v(" "),n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:18,type:"flex",align:"middle",justify:"start"}},[n("span",{staticStyle:{"font-size":"50px",color:"white"}},[e._v(e._s(e.systemStatistics[7].value))])]),e._v(" "),n("el-col",{staticStyle:{"text-align":"left","padding-left":"20px"},attrs:{span:20,type:"flex",align:"bottom",justify:"end"}},[n("span",{staticStyle:{"font-size":"16px",color:"white"},attrs:{type:"success",underline:!1}},[e._v(e._s(e.systemStatistics[7].name))])])],1)],1)],1)],1)],1),e._v(" "),n("div",{staticClass:"home-body-wrap"},[n("div",{staticClass:"home-block"},[n("div",{staticClass:"title"},[e._v("\n 热门任务\n "),n("span",{staticClass:"more-info"},[n("router-link",{attrs:{to:"/square"}},[e._v("更多任务>")])],1)]),e._v(" "),n("el-row",{attrs:{gutter:20}},e._l(e.hotTaskList,function(e,t){return n("el-col",{key:t,attrs:{span:6}},[n("task-card",{attrs:{item:e}})],1)}),1)],1),e._v(" "),n("div",{staticClass:"home-block"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{xs:20,sm:20,md:20,lg:12,xl:12}},[n("div",{staticClass:"title"},[e._v("机构排名")]),e._v(" "),n("institution-rank",{attrs:{item:e.institutionRank}})],1),e._v(" "),n("el-col",{attrs:{xs:20,sm:20,md:20,lg:12,xl:12}},[n("div",{staticClass:"title"},[e._v("用户排名")]),e._v(" "),n("person-rank",{attrs:{item:e.personRank}})],1)],1)],1)])])},staticRenderFns:[]};n("VU/8")(A,O,!1,function(e){n("nbBP")},"data-v-d7929e5e",null).exports,n("djVU"),n("IYzk"),n("eCJx"),n("GYip"),n("AHgd"),n("hwS5"),n("7BN6"),n("d32V");i.default.use(T.a);var S=new T.a({linkActiveClass:"active",routes:[{path:"/",name:"Home",component:function(e){return Promise.all([n.e(0),n.e(1)]).then(function(){var t=[n("bYRQ")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1,showSlice:!0}},{path:"/home",name:"Home",component:function(e){return Promise.all([n.e(0),n.e(1)]).then(function(){var t=[n("bYRQ")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1,showSlice:!0}},{path:"/mine",name:"Mine",component:function(e){return new Promise(function(e){e()}).then(function(){var t=[n("djVU")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/project/create",name:"ProjectCreate",component:function(e){return new Promise(function(e){e()}).then(function(){var t=[n("AHgd")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/project/:projectId",name:"Project",component:function(e){return new Promise(function(e){e()}).then(function(){var t=[n("GYip")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/project/:projectId/task/create",name:"TaskCreate",component:function(e){return new Promise(function(e){e()}).then(function(){var t=[n("eCJx")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/project/:projectId/task/:taskId",name:"Task",component:function(e){return new Promise(function(e){e()}).then(function(){var t=[n("IYzk")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/project/:projectId/analyse",name:"AnalyseDemand",component:function(e){return new Promise(function(e){e()}).then(function(){var t=[n("hwS5")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/project/:projectId/report/create",name:"ProjectReportCreate",component:function(e){return n.e(28).then(function(){var t=[n("3FFa")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/project/:projectId/task/:taskId/report/create",name:"TaskReportCreate",component:function(e){return n.e(19).then(function(){var t=[n("tFWN")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/project/:projectId/task/:taskId/report/:reportId",name:"TaskReport",component:function(e){return n.e(36).then(function(){var t=[n("3H+J")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/project/:projectId/report/:reportId",name:"ProjectReport",component:function(e){return n.e(43).then(function(){var t=[n("zWxZ")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/greenChannel/addProject",name:"ProjectAdd",component:function(e){return new Promise(function(e){e()}).then(function(){var t=[n("7BN6")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/greenChannel/addAgency",name:"AgencyAdd",component:function(e){return new Promise(function(e){e()}).then(function(){var t=[n("d32V")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/authentication/individual/create",name:"IndividualAuthenticationCreate",component:function(e){return n.e(20).then(function(){var t=[n("spP7")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/authentication/enterprise/create",name:"EnterpriseAuthenticationCreate",component:function(e){return n.e(32).then(function(){var t=[n("wot2")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/authentication/agency/create",name:"AgencyAuthenticationCreate",component:function(e){return n.e(29).then(function(){var t=[n("F14N")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/authentication/individual/:userId",name:"IndividualAuthentication",component:function(e){return n.e(16).then(function(){var t=[n("ygwZ")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/authentication/enterprise/:userId",name:"EnterpriseAuthentication",component:function(e){return n.e(41).then(function(){var t=[n("onCQ")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/authentication/agency/:userId",name:"AgencyAuthentication",component:function(e){return n.e(31).then(function(){var t=[n("yWUp")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/authentication/index",name:"AuthenticationIndex",component:function(e){return n.e(46).then(function(){var t=[n("bkCi")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/authentication/manage",name:"AuthenticationManage",component:function(e){return n.e(45).then(function(){var t=[n("LCtm")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/square",name:"Square",component:function(e){return Promise.all([n.e(0),n.e(5)]).then(function(){var t=[n("VrKt")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/popular/list",name:"PopularProjectAndTaskList",component:function(e){return Promise.all([n.e(0),n.e(4)]).then(function(){var t=[n("66XA")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/technology",name:"Technology",component:function(e){return Promise.all([n.e(0),n.e(2)]).then(function(){var t=[n("mLJg")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/technology/more",name:"TechnologyMore",component:function(e){return Promise.all([n.e(0),n.e(7)]).then(function(){var t=[n("0S8L")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/expert/list",name:"ExpertList",component:function(e){return Promise.all([n.e(0),n.e(12)]).then(function(){var t=[n("BD3q")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/agency/list/show",name:"AgencyList",component:function(e){return Promise.all([n.e(0),n.e(24)]).then(function(){var t=[n("kpxo")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/agency/resident/list",name:"AgencyResidentList",component:function(e){return Promise.all([n.e(0),n.e(26)]).then(function(){var t=[n("XKFH")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/competition/list",name:"CompetitionList",component:function(e){return Promise.all([n.e(0),n.e(33)]).then(function(){var t=[n("jz06")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/crowd/list",name:"CrowdList",component:function(e){return Promise.all([n.e(0),n.e(25)]).then(function(){var t=[n("d7MI")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/user/list",name:"UserList",component:function(e){return Promise.all([n.e(0),n.e(44)]).then(function(){var t=[n("BT2Y")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/resource/list",name:"ResourceList",component:function(e){return Promise.all([n.e(0),n.e(17)]).then(function(){var t=[n("WjcP")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/crowd/detail",name:"CrowdDetail",component:function(e){return Promise.all([n.e(0),n.e(22)]).then(function(){var t=[n("RzzK")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/agency/detail",name:"NewAgencyDetail",component:function(e){return n.e(39).then(function(){var t=[n("IPr/")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/user/detail",name:"UserDetail",component:function(e){return n.e(8).then(function(){var t=[n("Tuln")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/resource/detail",name:"ResourceDetail",component:function(e){return n.e(38).then(function(){var t=[n("I4pI")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/expert/detail",name:"ExpertDetail",component:function(e){return n.e(37).then(function(){var t=[n("Zm7D")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/field/detail",name:"FieldDetail",component:function(e){return n.e(40).then(function(){var t=[n("LmNr")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/test/type/detail",name:"TestTypeDetail",component:function(e){return n.e(35).then(function(){var t=[n("LcfZ")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1}},{path:"/personal",name:"UserCenter",component:function(e){return n.e(6).then(function(){var t=[n("pc6a")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{title:"",requireAuth:!1},children:[{path:"/personal/mine",component:function(e){return n.e(15).then(function(){var t=[n("g/QW")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/personal/qualification",component:function(e){return n.e(10).then(function(){var t=[n("4Cda")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/personal/bankCard",component:function(e){return n.e(13).then(function(){var t=[n("dZ7a")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/personal/modifyPsw",component:function(e){return n.e(30).then(function(){var t=[n("TTk0")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/personal/phoneBinding",component:function(e){return n.e(3).then(function(){var t=[n("rZWl")];e.apply(null,t)}.bind(this)).catch(n.oe)},children:[{path:"/personal/phoneBinding/binding",component:function(e){return n.e(23).then(function(){var t=[n("uavL")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/personal/phoneBinding/rebinding",component:function(e){return n.e(21).then(function(){var t=[n("4z3q")];e.apply(null,t)}.bind(this)).catch(n.oe)}}]},{path:"/personal/mailBinding",component:function(e){return n.e(11).then(function(){var t=[n("G4OE")];e.apply(null,t)}.bind(this)).catch(n.oe)},children:[{path:"/personal/mailBinding/binding",component:function(e){return n.e(18).then(function(){var t=[n("0/wi")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/personal/mailBinding/rebinding",component:function(e){return n.e(42).then(function(){var t=[n("WL6l")];e.apply(null,t)}.bind(this)).catch(n.oe)}}]},{path:"/personal/authentication",component:function(e){return n.e(9).then(function(){var t=[n("lkys")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/personal/authentication/enterprise",component:function(e){return n.e(34).then(function(){var t=[n("CECe")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/personal/authentication/individual",component:function(e){return n.e(14).then(function(){var t=[n("QX2f")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"",redirect:"/personal/mine"}]},{path:"/statistics",component:function(e){return n.e(27).then(function(){var t=[n("62VE")];e.apply(null,t)}.bind(this)).catch(n.oe)}}]});n("5W1q"),n("qn6L");i.default.use(l.a);var P=new l.a.Store({state:{isLogin:!1,techArticleList:["sss"],activeTab:"",homeData:{},user:{}},mutations:{setTechArticleList:function(e,t){P.state.techArticleList=t},setActiveTab:function(e,t){P.state.activeTab=t},setHomeData:function(e,t){P.state.homeData=t},setUserInfo:function(e,t){P.state.user=t}},actions:{setTechArticleList:function(e,t){(0,e.commit)("setTechArticleList",t)},setActiveTab:function(e,t){(0,e.commit)("setActiveTab",t)},setHomeData:function(e,t){(0,e.commit)("setHomeData",t)},setUser:function(e,t){(0,e.commit)("setUserInfo",t)}},getters:{getTechArticleList:function(){return P.state.techArticleList},getActiveTab:function(){return P.state.activeTab},getHomeData:function(){return P.state.homeData},getUserInfo:function(){return P.state.user}},modules:{}}),L=P,R=n("PJh5"),D=n.n(R),U=(n("HHn+"),n("XLwt")),N=n.n(U),M=n("fZjL"),F=n.n(M),q=n("zL8q"),V=this;i.default.prototype.$moment=D.a,i.default.prototype.$echarts=N.a,i.default.use(q.Carousel),i.default.use(q.CarouselItem),i.default.use(q.Row),i.default.use(q.Col),i.default.use(q.Table),i.default.use(q.TableColumn),i.default.use(q.Form),i.default.use(q.FormItem),i.default.use(q.Button),i.default.use(q.ButtonGroup),i.default.use(q.Menu),i.default.use(q.Submenu),i.default.use(q.MenuItem),i.default.use(q.MenuItemGroup),i.default.use(q.Input),i.default.use(q.InputNumber),i.default.use(q.Radio),i.default.use(q.RadioGroup),i.default.use(q.RadioButton),i.default.use(q.Checkbox),i.default.use(q.CheckboxButton),i.default.use(q.CheckboxGroup),i.default.use(q.DatePicker),i.default.use(q.TimeSelect),i.default.use(q.TimePicker),i.default.use(q.Switch),i.default.use(q.Select),i.default.use(q.Option),i.default.use(q.Upload),i.default.use(q.Tabs),i.default.use(q.TabPane),i.default.use(q.Collapse),i.default.use(q.CollapseItem),i.default.use(q.Dialog),i.default.use(q.Card),i.default.use(q.Tag),i.default.use(q.Avatar),i.default.use(q.Pagination),i.default.use(q.Link),i.default.use(q.Loading),i.default.use(q.Tooltip),i.default.use(q.Dropdown),i.default.use(q.DropdownItem),i.default.use(q.DropdownMenu),i.default.use(q.Image),i.default.use(q.Badge),i.default.use(q.Popover),i.default.use(q.Progress),i.default.use(q.Steps),i.default.use(q.Step),i.default.use(q.Divider),i.default.use(q.Alert),i.default.prototype.$msgbox=q.MessageBox,i.default.prototype.$alert=q.MessageBox.alert,i.default.prototype.$confirm=q.MessageBox.confirm,i.default.prototype.$prompt=q.MessageBox.prompt,i.default.prototype.$notify=q.Notification,i.default.prototype.$message=q.Message,i.default.config.productionTip=!1,a.a.get("/api/common/configuration").then(function(e){var t=function(e){var t={};return F()(e).forEach(function(n){var i=JSON.parse(e[n]);t[F()(i)[0]]=i[F()(i)[0]]}),t}(e.data&&e.data.configurationList);V.homeDataNoCache=t,Object(u.d)(t),Object(r.K)("config",t),new i.default({el:"#app",router:S,data:{Bus:new i.default},components:{App:k},template:"<App/>",store:L})}).catch(function(e){console.log(e),Object(g.a)("error",e.data)})},SQ4B:function(e,t,n){"use strict";var i=n("//Fk"),a=n.n(i),o=n("mvHQ"),s=n.n(o),r=n("mtWM"),c=n.n(r);(void 0).API_ROOT;function l(e){return e}function u(e){return JSON.parse(s()(e))}c.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",t.a={post:function(e,t){return new a.a(function(n,i){c.a.post(l(e),u(t)).then(function(e){n(e.data)}).catch(function(e){i(e.response)})})},get:function(e){return new a.a(function(t,n){c.a.get(l(e)).then(function(e){t(e.data)}).catch(function(e){n(e.response)})})},put:function(e,t){return new a.a(function(n,i){c.a.put(l(e),JSON.parse(s()(t))).then(function(e){n(e.data)}).catch(function(e){i(e.response)})})},delete:function(e,t){return new a.a(function(n,i){c.a.delete(l(e),{data:u(t)}).then(function(e){n(e)}).catch(function(e){i(e)})})},upload:function(e,t,n){return new a.a(function(i,a){c.a.post(l(e),t,n).then(function(e){i(e)}).catch(function(e){a(e)})})}}},SlAU:function(e,t,n){"use strict";var i={name:"report-list",props:{reports:{},projectId:"",taskId:""},data:function(){return{editIndex:-1,reportList:null==this.reports?[]:this.reports,pid:this.projectId,tid:this.taskId}},methods:{handleEdit:function(e,t){null==this.tid?this.$router.push({name:"ProjectReport",params:{reportId:t.code,projectId:this.pid}}):this.$router.push({name:"TaskReport",params:{reportId:t.code,projectId:this.pid,taskId:this.tid}})},handleDelete:function(e,t){this.reportList.splice(e,1)},cancelEdit:function(e,t){this.editIndex=-1},handleRemove:function(e,t){console.log(e,t)},handleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件,本次选择了 "+e.length+" 个文件,共选择了 "+(e.length+t.length)+" 个文件")},beforeRemove:function(e,t){return this.$confirm("确定移除 "+e.name+"?")},beforeFileUpload:function(){}},watch:{reports:function(){this.reportList=this.reports},projectId:function(){this.pid=this.projectId},taskId:function(){this.tid=this.taskId}}},a={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"report-container"},[n("el-table",{staticStyle:{width:"100%"},attrs:{showHeader:!0,data:e.reportList}},[n("el-table-column",{attrs:{prop:"name",label:"报告名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"type",label:"报告类型",title:"报告类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticClass:"badge"},[e._v(e._s(t.row.type))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"file",sortable:"",label:"报告文件"},scopedSlots:e._u([{key:"default",fn:function(t){return[null==t.row.content||""==t.row.content?n("span",[e._v("暂无文件")]):e._e(),e._v(" "),null!=t.row.content?n("a",{attrs:{href:t.row.file,target:"_blank"}},[n("i",{staticClass:"fa fa-file-text-o"}),e._v(" "+e._s(t.row.content))]):e._e()]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"btn btn-small btn-info",on:{click:function(n){return e.handleEdit(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1)],1)},staticRenderFns:[]};var o=n("VU/8")(i,a,!1,function(e){n("/W30")},"data-v-7f1c1662",null);t.a=o.exports},XzoA:function(e,t){},atWu:function(e,t){e.exports={provinces:[{name:"北京市",level:"1",code:"1100",cities:[{name:"北京市",level:"1",code:"1100"}]},{name:"天津市",level:"1",code:"1200",cities:[{name:"天津市",level:"1",code:"1200"}]},{name:"河北省",level:"1",code:"1300",cities:[{name:"石家庄市",level:"2",code:"1301"},{name:"唐山市",level:"3",code:"1302"},{name:"秦皇岛市",level:"3",code:"1303"},{name:"邯郸市",level:"3",code:"1304"},{name:"邢台市",level:"3",code:"1305"},{name:"保定市",level:"3",code:"1306"},{name:"张家口市",level:"3",code:"1307"},{name:"承德市",level:"3",code:"1308"},{name:"沧州市",level:"3",code:"1309"},{name:"廊坊市",level:"3",code:"1310"},{name:"衡水市",level:"3",code:"1311"}]},{name:"山西省",level:"1",code:"1400",cities:[{name:"太原市",level:"2",code:"1401"},{name:"大同市",level:"3",code:"1402"},{name:"阳泉市",level:"3",code:"1403"},{name:"长治市",level:"3",code:"1404"},{name:"晋城市",level:"3",code:"1405"},{name:"朔州市",level:"3",code:"1406"},{name:"晋中市",level:"3",code:"1407"},{name:"运城市",level:"3",code:"1408"},{name:"忻州市",level:"3",code:"1409"},{name:"临汾市",level:"3",code:"1410"},{name:"吕梁市",level:"3",code:"1411"}]},{name:"内蒙古自治区",level:"1",code:"1500",cities:[{name:"呼和浩特市",level:"2",code:"1501"},{name:"包头市",level:"3",code:"1502"},{name:"乌海市",level:"3",code:"1503"},{name:"赤峰市",level:"3",code:"1504"},{name:"通辽市",level:"3",code:"1505"},{name:"鄂尔多斯市",level:"3",code:"1506"},{name:"呼伦贝尔市",level:"3",code:"1507"},{name:"巴彦淖尔市",level:"3",code:"1508"},{name:"乌兰察布市",level:"3",code:"1509"},{name:"兴安盟",level:"3",code:"1522"},{name:"锡林郭勒盟",level:"3",code:"1525"},{name:"阿拉善盟",level:"3",code:"1529"}]},{name:"辽宁省",level:"1",code:"2100",cities:[{name:"沈阳市",level:"2",code:"2101"},{name:"大连市",level:"3",code:"2102"},{name:"鞍山市",level:"3",code:"2103"},{name:"抚顺市",level:"3",code:"2104"},{name:"本溪市",level:"3",code:"2105"},{name:"丹东市",level:"3",code:"2106"},{name:"锦州市",level:"3",code:"2107"},{name:"营口市",level:"3",code:"2108"},{name:"阜新市",level:"3",code:"2109"},{name:"辽阳市",level:"3",code:"2110"},{name:"盘锦市",level:"3",code:"2111"},{name:"铁岭市",level:"3",code:"2112"},{name:"朝阳市",level:"3",code:"2113"},{name:"葫芦岛市",level:"3",code:"2114"}]},{name:"吉林省",level:"1",code:"2200",cities:[{name:"长春市",level:"2",code:"2201"},{name:"吉林市",level:"3",code:"2202"},{name:"四平市",level:"3",code:"2203"},{name:"辽源市",level:"3",code:"2204"},{name:"通化市",level:"3",code:"2205"},{name:"白山市",level:"3",code:"2206"},{name:"松原市",level:"3",code:"2207"},{name:"白城市",level:"3",code:"2208"},{name:"延边朝鲜族自治州",level:"3",code:"2224"}]},{name:"黑龙江省",level:"1",code:"2300",cities:[{name:"哈尔滨市",level:"2",code:"2301"},{name:"齐齐哈尔市",level:"3",code:"2302"},{name:"鸡西市",level:"3",code:"2303"},{name:"鹤岗市",level:"3",code:"2304"},{name:"双鸭山市",level:"3",code:"2305"},{name:"大庆市",level:"3",code:"2306"},{name:"伊春市",level:"3",code:"2307"},{name:"佳木斯市",level:"3",code:"2308"},{name:"七台河市",level:"3",code:"2309"},{name:"牡丹江市",level:"3",code:"2310"},{name:"黑河市",level:"3",code:"2311"},{name:"绥化市",level:"3",code:"2312"},{name:"大兴安岭地区",level:"3",code:"2327"}]},{name:"上海市",level:"1",code:"3100",cities:[{name:"上海市",level:"1",code:"3100"}]},{name:"江苏省",level:"1",code:"3200",cities:[{name:"南京市",level:"2",code:"3201"},{name:"无锡市",level:"3",code:"3202"},{name:"徐州市",level:"3",code:"3203"},{name:"常州市",level:"3",code:"3204"},{name:"苏州市",level:"3",code:"3205"},{name:"南通市",level:"3",code:"3206"},{name:"连云港市",level:"3",code:"3207"},{name:"淮安市",level:"3",code:"3208"},{name:"盐城市",level:"3",code:"3209"},{name:"扬州市",level:"3",code:"3210"},{name:"镇江市",level:"3",code:"3211"},{name:"泰州市",level:"3",code:"3212"},{name:"宿迁市",level:"3",code:"3213"}]},{name:"浙江省",level:"1",code:"3300",cities:[{name:"杭州市",level:"2",code:"3301"},{name:"宁波市",level:"3",code:"3302"},{name:"温州市",level:"3",code:"3303"},{name:"嘉兴市",level:"3",code:"3304"},{name:"湖州市",level:"3",code:"3305"},{name:"绍兴市",level:"3",code:"3306"},{name:"金华市",level:"3",code:"3307"},{name:"衢州市",level:"3",code:"3308"},{name:"舟山市",level:"3",code:"3309"},{name:"台州市",level:"3",code:"3310"},{name:"丽水市",level:"3",code:"3311"}]},{name:"安徽省",level:"1",code:"3400",cities:[{name:"合肥市",level:"2",code:"3401"},{name:"芜湖市",level:"3",code:"3402"},{name:"蚌埠市",level:"3",code:"3403"},{name:"淮南市",level:"3",code:"3404"},{name:"马鞍山市",level:"3",code:"3405"},{name:"淮北市",level:"3",code:"3406"},{name:"铜陵市",level:"3",code:"3407"},{name:"安庆市",level:"3",code:"3408"},{name:"黄山市",level:"3",code:"3410"},{name:"滁州市",level:"3",code:"3411"},{name:"阜阳市",level:"3",code:"3412"},{name:"宿州市",level:"3",code:"3413"},{name:"巢湖市",level:"3",code:"3414"},{name:"六安市",level:"3",code:"3415"},{name:"亳州市",level:"3",code:"3416"},{name:"池州市",level:"3",code:"3417"},{name:"宣城市",level:"3",code:"3418"}]},{name:"福建省",level:"1",code:"3500",cities:[{name:"福州市",level:"2",code:"3501"},{name:"厦门市",level:"3",code:"3502"},{name:"莆田市",level:"3",code:"3503"},{name:"三明市",level:"3",code:"3504"},{name:"泉州市",level:"3",code:"3505"},{name:"漳州市",level:"3",code:"3506"},{name:"南平市",level:"3",code:"3507"},{name:"龙岩市",level:"3",code:"3508"},{name:"宁德市",level:"3",code:"3509"}]},{name:"江西省",level:"1",code:"3600",cities:[{name:"南昌市",level:"2",code:"3601"},{name:"景德镇市",level:"3",code:"3602"},{name:"萍乡市",level:"3",code:"3603"},{name:"九江市",level:"3",code:"3604"},{name:"新余市",level:"3",code:"3605"},{name:"鹰潭市",level:"3",code:"3606"},{name:"赣州市",level:"3",code:"3607"},{name:"吉安市",level:"3",code:"3608"},{name:"宜春市",level:"3",code:"3609"},{name:"抚州市",level:"3",code:"3610"},{name:"上饶市",level:"3",code:"3611"}]},{name:"山东省",level:"1",code:"3700",cities:[{name:"济南市",level:"2",code:"3701"},{name:"青岛市",level:"3",code:"3702"},{name:"淄博市",level:"3",code:"3703"},{name:"枣庄市",level:"3",code:"3704"},{name:"东营市",level:"3",code:"3705"},{name:"烟台市",level:"3",code:"3706"},{name:"潍坊市",level:"3",code:"3707"},{name:"济宁市",level:"3",code:"3708"},{name:"泰安市",level:"3",code:"3709"},{name:"威海市",level:"3",code:"3710"},{name:"日照市",level:"3",code:"3711"},{name:"莱芜市",level:"3",code:"3712"},{name:"临沂市",level:"3",code:"3713"},{name:"德州市",level:"3",code:"3714"},{name:"聊城市",level:"3",code:"3715"},{name:"滨州市",level:"3",code:"3716"},{name:"菏泽市",level:"3",code:"3717"}]},{name:"河南省",level:"1",code:"4100",cities:[{name:"郑州市",level:"2",code:"4101"},{name:"开封市",level:"3",code:"4102"},{name:"洛阳市",level:"3",code:"4103"},{name:"平顶山市",level:"3",code:"4104"},{name:"安阳市",level:"3",code:"4105"},{name:"鹤壁市",level:"3",code:"4106"},{name:"新乡市",level:"3",code:"4107"},{name:"焦作市",level:"3",code:"4108"},{name:"濮阳市",level:"3",code:"4109"},{name:"许昌市",level:"3",code:"4110"},{name:"漯河市",level:"3",code:"4111"},{name:"三门峡市",level:"3",code:"4112"},{name:"南阳市",level:"3",code:"4113"},{name:"商丘市",level:"3",code:"4114"},{name:"信阳市",level:"3",code:"4115"},{name:"周口市",level:"3",code:"4116"},{name:"驻马店市",level:"3",code:"4117"}]},{name:"湖北省",level:"1",code:"4200",cities:[{name:"武汉市",level:"2",code:"4201"},{name:"黄石市",level:"3",code:"4202"},{name:"十堰市",level:"3",code:"4203"},{name:"宜昌市",level:"3",code:"4205"},{name:"襄樊市",level:"3",code:"4206"},{name:"鄂州市",level:"3",code:"4207"},{name:"荆门市",level:"3",code:"4208"},{name:"孝感市",level:"3",code:"4209"},{name:"荆州市",level:"3",code:"4210"},{name:"黄冈市",level:"3",code:"4211"},{name:"咸宁市",level:"3",code:"4212"},{name:"随州市",level:"3",code:"4213"},{name:"恩施土家族苗族自治州",level:"3",code:"4228"}]},{name:"湖南省",level:"1",code:"4300",cities:[{name:"长沙市",level:"2",code:"4301"},{name:"株洲市",level:"3",code:"4302"},{name:"湘潭市",level:"3",code:"4303"},{name:"衡阳市",level:"3",code:"4304"},{name:"邵阳市",level:"3",code:"4305"},{name:"岳阳市",level:"3",code:"4306"},{name:"常德市",level:"3",code:"4307"},{name:"张家界市",level:"3",code:"4308"},{name:"益阳市",level:"3",code:"4309"},{name:"郴州市",level:"3",code:"4310"},{name:"永州市",level:"3",code:"4311"},{name:"怀化市",level:"3",code:"4312"},{name:"娄底市",level:"3",code:"4313"},{name:"湘西土家族苗族自治州",level:"3",code:"4331"}]},{name:"广东省",level:"1",code:"4400",cities:[{name:"广州市",level:"2",code:"4401"},{name:"韶关市",level:"3",code:"4402"},{name:"深圳市",level:"3",code:"4403"},{name:"珠海市",level:"3",code:"4404"},{name:"汕头市",level:"3",code:"4405"},{name:"佛山市",level:"3",code:"4406"},{name:"江门市",level:"3",code:"4407"},{name:"湛江市",level:"3",code:"4408"},{name:"茂名市",level:"3",code:"4409"},{name:"肇庆市",level:"3",code:"4412"},{name:"惠州市",level:"3",code:"4413"},{name:"梅州市",level:"3",code:"4414"},{name:"汕尾市",level:"3",code:"4415"},{name:"河源市",level:"3",code:"4416"},{name:"阳江市",level:"3",code:"4417"},{name:"清远市",level:"3",code:"4418"},{name:"东莞市",level:"3",code:"4419"},{name:"中山市",level:"3",code:"4420"},{name:"潮州市",level:"3",code:"4451"},{name:"揭阳市",level:"3",code:"4452"},{name:"云浮市",level:"3",code:"4453"}]},{name:"广西壮族自治区",level:"1",code:"4500",cities:[{name:"南宁市",level:"2",code:"4501"},{name:"柳州市",level:"3",code:"4502"},{name:"桂林市",level:"3",code:"4503"},{name:"梧州市",level:"3",code:"4504"},{name:"北海市",level:"3",code:"4505"},{name:"防城港市",level:"3",code:"4506"},{name:"钦州市",level:"3",code:"4507"},{name:"贵港市",level:"3",code:"4508"},{name:"玉林市",level:"3",code:"4509"},{name:"百色市",level:"3",code:"4510"},{name:"贺州市",level:"3",code:"4511"},{name:"河池市",level:"3",code:"4512"},{name:"来宾市",level:"3",code:"4513"},{name:"崇左市",level:"3",code:"4514"}]},{name:"海南省",level:"1",code:"4600",cities:[{name:"海口市",level:"2",code:"4601"},{name:"三亚市",level:"3",code:"4602"}]},{name:"重庆市",level:"1",code:"5000",cities:[{name:"重庆市",level:"1",code:"5000"}]},{name:"四川省",level:"1",code:"5100",cities:[{name:"成都市",level:"2",code:"5101"},{name:"自贡市",level:"3",code:"5103"},{name:"攀枝花市",level:"3",code:"5104"},{name:"泸州市",level:"3",code:"5105"},{name:"德阳市",level:"3",code:"5106"},{name:"绵阳市",level:"3",code:"5107"},{name:"广元市",level:"3",code:"5108"},{name:"遂宁市",level:"3",code:"5109"},{name:"内江市",level:"3",code:"5110"},{name:"乐山市",level:"3",code:"5111"},{name:"南充市",level:"3",code:"5113"},{name:"眉山市",level:"3",code:"5114"},{name:"宜宾市",level:"3",code:"5115"},{name:"广安市",level:"3",code:"5116"},{name:"达州市",level:"3",code:"5117"},{name:"雅安市",level:"3",code:"5118"},{name:"巴中市",level:"3",code:"5119"},{name:"资阳市",level:"3",code:"5120"},{name:"阿坝藏族羌族自治州",level:"3",code:"5132"},{name:"甘孜藏族自治州",level:"3",code:"5133"},{name:"凉山彝族自治州",level:"3",code:"5134"}]},{name:"贵州省",level:"1",code:"5200",cities:[{name:"贵阳市",level:"2",code:"5201"},{name:"六盘水市",level:"3",code:"5202"},{name:"遵义市",level:"3",code:"5203"},{name:"安顺市",level:"3",code:"5204"},{name:"铜仁地区",level:"3",code:"5222"},{name:"黔西南布依族苗族自治州",level:"3",code:"5223"},{name:"毕节地区",level:"3",code:"5224"},{name:"黔东南苗族侗族自治州",level:"3",code:"5226"},{name:"黔南布依族苗族自治州",level:"3",code:"5227"}]},{name:"云南省",level:"1",code:"5300",cities:[{name:"昆明市",level:"2",code:"5301"},{name:"曲靖市",level:"3",code:"5303"},{name:"玉溪市",level:"3",code:"5304"},{name:"保山市",level:"3",code:"5305"},{name:"昭通市",level:"3",code:"5306"},{name:"丽江市",level:"3",code:"5307"},{name:"普洱市",level:"3",code:"5308"},{name:"临沧市",level:"3",code:"5309"},{name:"楚雄彝族自治州",level:"3",code:"5323"},{name:"红河哈尼族彝族自治州",level:"3",code:"5325"},{name:"文山壮族苗族自治州",level:"3",code:"5326"},{name:"西双版纳傣族自治州",level:"3",code:"5328"},{name:"大理白族自治州",level:"3",code:"5329"},{name:"德宏傣族景颇族自治州",level:"3",code:"5331"},{name:"怒江傈僳族自治州",level:"3",code:"5333"},{name:"迪庆藏族自治州",level:"3",code:"5334"}]},{name:"西藏自治区",level:"1",code:"5400",cities:[{name:"拉萨市",level:"2",code:"5401"},{name:"昌都地区",level:"3",code:"5421"},{name:"山南地区",level:"3",code:"5422"},{name:"日喀则地区",level:"3",code:"5423"},{name:"那曲地区",level:"3",code:"5424"},{name:"阿里地区",level:"3",code:"5425"},{name:"林芝地区",level:"3",code:"5426"}]},{name:"陕西省",level:"1",code:"6100",cities:[{name:"西安市",level:"2",code:"6101"},{name:"铜川市",level:"3",code:"6102"},{name:"宝鸡市",level:"3",code:"6103"},{name:"咸阳市",level:"3",code:"6104"},{name:"渭南市",level:"3",code:"6105"},{name:"延安市",level:"3",code:"6106"},{name:"汉中市",level:"3",code:"6107"},{name:"榆林市",level:"3",code:"6108"},{name:"安康市",level:"3",code:"6109"},{name:"商洛市",level:"3",code:"6110"}]},{name:"甘肃省",level:"1",code:"6200",cities:[{name:"兰州市",level:"2",code:"6201"},{name:"嘉峪关市",level:"3",code:"6202"},{name:"金昌市",level:"3",code:"6203"},{name:"白银市",level:"3",code:"6204"},{name:"天水市",level:"3",code:"6205"},{name:"武威市",level:"3",code:"6206"},{name:"张掖市",level:"3",code:"6207"},{name:"平凉市",level:"3",code:"6208"},{name:"酒泉市",level:"3",code:"6209"},{name:"庆阳市",level:"3",code:"6210"},{name:"定西市",level:"3",code:"6211"},{name:"陇南市",level:"3",code:"6212"},{name:"临夏回族自治州",level:"3",code:"6229"},{name:"甘南藏族自治州",level:"3",code:"6230"}]},{name:"青海省",level:"1",code:"6300",cities:[{name:"西宁市",level:"2",code:"6301"},{name:"海东地区",level:"3",code:"6321"},{name:"海北藏族自治州",level:"3",code:"6322"},{name:"黄南藏族自治州",level:"3",code:"6323"},{name:"海南藏族自治州",level:"3",code:"6325"},{name:"果洛藏族自治州",level:"3",code:"6326"},{name:"玉树藏族自治州",level:"3",code:"6327"},{name:"海西蒙古族藏族自治州",level:"3",code:"6328"}]},{name:"宁夏回族自治区",level:"1",code:"6400",cities:[{name:"银川市",level:"2",code:"6401"},{name:"石嘴山市",level:"3",code:"6402"},{name:"吴忠市",level:"3",code:"6403"},{name:"固原市",level:"3",code:"6404"},{name:"中卫市",level:"3",code:"6405"}]},{name:"新疆维吾尔自治区",level:"1",code:"6500",cities:[{name:"乌鲁木齐市",level:"2",code:"6501"},{name:"克拉玛依市",level:"3",code:"6502"},{name:"吐鲁番地区",level:"3",code:"6521"},{name:"哈密地区",level:"3",code:"6522"},{name:"昌吉回族自治州",level:"3",code:"6523"},{name:"博尔塔拉蒙古自治州",level:"3",code:"6527"},{name:"巴音郭楞蒙古自治州",level:"3",code:"6528"},{name:"阿克苏地区",level:"3",code:"6529"},{name:"克孜勒苏柯尔克孜自治州",level:"3",code:"6530"},{name:"喀什地区",level:"3",code:"6531"},{name:"和田地区",level:"3",code:"6532"},{name:"伊犁哈萨克自治州",level:"3",code:"6540"},{name:"塔城地区",level:"3",code:"6542"},{name:"阿勒泰地区",level:"3",code:"6543"}]},{name:"台湾省",level:"1",code:"7100",cities:[{name:"台湾省",level:"1",code:"7100"}]},{name:"香港特别行政区",level:"1",code:"8100",cities:[{name:"香港特别行政区",level:"1",code:"8100"}]},{name:"澳门特别行政区",level:"1",code:"8200",cities:[{name:"澳门特别行政区",level:"1",code:"8200"}]}]}},b9vf:function(e,t,n){"use strict";t.a={PROJECT:{GET_PROJECT:"/api/project/{projectId}/",CREATE_PROJECT:"/api/project/",UPDATE_PROJECT:"/api/project/{projectId}/",DELETE_PROJECT:"/api/project/{projectId}/",ADD_PROJECT:"/api/greenChannel/project/",ADD_PROJECT_BY_EXCEL_PRE:"/api/greenChannel/excel/{userId}/projects",ADD_PROJECT_BY_EXCEL:"/api/greenChannel/projects",ACCEPT_PROJECT:"/api/project/{projectId}/regionManager/{userId}",REJECT_PROJECT:"/api/project/{projectId}/status/rejected",SUBMIT_PROJECT:"/api/project/{projectId}/status/committed",END_PROJECT:"/api/project/{projectId}/status/finished",MORE_HOT_PROJECT:"/api/square/hotProject/list",CROWD_PROJECT:"/api/common/index/crowd/project/{code}"},TASK:{GET_TASK:"/api/project/{projectId}/task/{taskId}/",CREATE_TASK:"/api/project/{projectId}/task/",UPDATE_TASK:"/api/project/{projectId}/task/{taskId}/",DELETE_TASK:"/api/project/{projectId}/task/{taskId}/",ACCEPT_TASK:"/api/project/{projectId}/task/{taskId}/agency/{userId}",REJECT_TASK:"/api/project/{projectId}/task/{taskId}/status/reject",SUBMIT_TASK:"/api/project/{projectId}/task/{taskId}/status/commit",END_TASK:"/api/project/{projectId}/task/{taskId}/status/finished",MORE_HOT_TASK:"/api/square/hotTasks/list",GET_TASK_CLOUD:"/api/project/{projectId}/task/{taskId}/word"},REPORT:{GET_TASK_REPORT:"/api/project/{projectId}/task/{taskId}/report/{reportId}/",GET_PROJECT_REPORT:"/api/project/{projectId}/report/{reportId}/",CREATE_TASK_REPORT:"/api/project/{projectId}/task/{taskId}/report/",CREATE_PROJECT_REPORT:"/api/project/{projectId}/report/",UPDATE_TASK_REPORT:"/api/project/{projectId}/task/{taskId}/report/{reportId}/",UPDATE_PROJECT_REPORT:"/api/project/{projectId}/report/{reportId}/",DELETE_TASK_REPORT:"/api/project/{projectId}/task/{taskId}/report/{reportId}/",DELETE_PROJECT_REPORT:""},FILE:{REQUIREMENT_FILE:"/api/files/requirementfile/{userId}/",APK:"/api/files/apk/{userId}/",UPLOAD_REPORT_FILE:"/api/files/report/{userId}/",UPLOAD_EXCEL:"",UPLOAD_IMAGE:"/api/files/image/{userId}/",GET_TEMPLATE_EXCEL_FILE:""},USER:{ADD_AGENCY:"/api/greenChannel/agency/",GET_CURRENT_USER:"/api/common/currentUser/",GET_USER_IDENTITY:"",GET_AUTH_URLS:"",LOGOUT:"/api/common/logout",SUBMIT_INDIVIDUAL_AUTHENTICATION_INFO:"/api/user/{userId}/personalAuth/",SUBMIT_ENTERPRISE_AUTHENTICATION_INFO:"/api/user/{userId}/enterpriseAuth",SUBMIT_AGENCY_AUTHENTICATION_INFO:"/api/user/{userId}/agency/",UPDATE_INDIVIDUAL_AUTHENTICATION_INFO:"/api/user/{userId}/personalAuth",UPDATE_ENTERPRISE_AUTHENTICATION_INFO:"/api/user/{userId}/enterpriseAuth",UPDATE_AGENCY_AUTHENTICATION_INFO:"/api/user/{userId}/agency/",UPDATE_AGENCY_RESOURCE_AND_ABILITY:"/api/user/{userId}/agency/resource",GET_INDIVIDUAL_AUTHENTICATION_INFO:"/api/user/{userId}/personalAuth",GET_ENTERPRISE_AUTHENTICATION_INFO:"/api/user/{userId}/enterpriseAuth",GET_AGENCY_AUTHENTICATION_INFO:"/api/user/{userId}/agency",GET_AGENCY_AUTHENTICATION_INFO_COMMON:"/api/user/{userId}/agency/common",GET_ALL_HANDLING_AUTH_INFO:"/api/user/authentication/handling",GET_ALL_HANDLED_AUTH_INFO:"/api/user/authentication/handled",PASS_AGENCY_AUTH:"/api/user/{userId}/agency/status/accept",PASS_ENTERPRISE_AUTH:"/api/user/{userId}/enterpriseAuth/status/accept",PASS_INDIVIDUAL_AUTH:"/api/user/{userId}/personalAuth/status/accept",REJECT_AGENCY_AUTH:"/api/user/{userId}/agency/status/reject",REJECT_ENTERPRISE_AUTH:"/api/user/{userId}/enterpriseAuth/status/reject",REJECT_INDIVIDUAL_AUTH:"/api/user/{userId}/personalAuth/status/reject",GET_DETAIL:"/api/user/detail/{userId}",GET_ADDRESS:"/api/index/address",IS_PART:"/api/common/check/create/project/{userId}",IS_AGENCY:"/api/common/check/accept/task/{userId}"},PAGE:{HOME_PAGE:"/api/common/index/",SQUARE_PAGE:"/api/task/",MY_CROWD_TEST_PAGE:"/api/common/mycrowd/{userId}",TASK_DETAIL_PAGE:"/api/page/taskDetail/{taskId}/",PROJECT_DETAIL_PAGE:"/api/project/{projectId}/",REPORT_DETAIL_PAGE:"/api/page/reportDetail/{reportId}/"},AGENCY:{GET_DETAIL:"/api/agency/{agencyId}"},RESOURCE:{GET_DETAIL:"/api/common/index/resource/{code}"},EXPERT:{GET_DETAIL:"/api/common/index/expert/{id}"},TECHNOLOGY:{GET_MORE:"/api/technical/more"},GENERAL:{GET_ALL_INSTITUTIONS:"/api/regionalManager",GET_ALL_AGENCIES:"/api/agency/list",GET_ALL_ApplicationType:"/api/list/application",GET_ALL_TestType:"/api/list/type",GET_ALL_Filed:"/api/list/filed"}}},d32V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("SQ4B"),a=n("b9vf"),o=n("qI5z"),s=n("vGYV"),r={name:"AgencyAdd",data:function(){var e=this;return{user:{},userId:0,loading:!1,isModifyMode:!0,dialogVisible:!1,serviceTypes:[],resourceTypes:[],agency:{mobile:"",email:"",name:"",bankAccount:"",address:"",evaluationAgencyAbilityList:[],evaluationAgencyResourceList:[{id:0,type:"",name:"",totalNum:0,availableNum:0}],professionalsCount:0,professionalsFreeCount:0,serversCount:0,serversFreeCount:0,devicesCount:0,devicesFreeCount:0,photo:[],photoUrl:"",password:"",username:""},rules:{name:[{required:!0,message:"请输入测评机构名称",trigger:"blur"}],mobile:[{required:!0,message:"请输入手机号",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱地址",trigger:"blur"}],bankAccount:[{required:!0,message:"请输入银行卡账户",trigger:"blur"},{validator:function(t,n,i){e.checkNumber(n)?i():i(new Error("银行卡账户输入有误"))},trigger:"blur"}],address:[{required:!0,message:"请输入机构地址",trigger:"blur"}],evaluationAgencyAbilityList:[{type:"array",required:!0,message:"请至少选择一个机构能力",trigger:"change"}],evaluationAgencyResourceList:[{validator:function(e,t,n){var i=!1;if(null==t||0==t.length)n(new Error("机构资源不可为空"));else for(var a=0;a<t.length;a++)if(""==t[a].name){i=!0;break}i?n(new Error("资源名称不可为空")):n()},trigger:"blur"}],photoUrl:[{validator:function(e,t,n){null==t||""==t?n(new Error("机构logo不可为空")):n()},trigger:"blur"}]},tableData:[{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1517 弄"},{date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄"},{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1516 弄"}]}},mounted:function(){var e=this;this.$nextTick(function(){e.init()})},methods:{init:function(){this.setServiceTypes(),this.setResourceTypes(),this.setUserInfo()},loadData:function(){},modifyInfo:function(){this.isModifyMode=!0},submitInfo:function(){var e=this;this.$refs.agency.validate(function(t){if(!t)return Object(o.a)("error","表单填写错误!"),!1;e.showLoading();var n={mobile:e.agency.mobile,evaluationAgencyName:e.agency.name,bankAccount:e.agency.bankAccount,address:e.agency.address,evaluationAgencyAbilityList:e.agency.evaluationAgencyAbilityList,evaluationAgencyResourceList:e.agency.evaluationAgencyResourceList,agencyPhoto:e.agency.photoUrl,email:e.agency.email};i.a.post(a.a.USER.ADD_AGENCY,n).then(function(t){e.hideLoading(),console.log(t),e.agency.password=t.userVO.password,e.agency.username=t.userVO.userName,e.agency.mobile=t.userVO.mobile,e.showDialog()}).catch(function(t){e.hideLoading(),Object(o.a)("error",t.data)})})},cancelModify:function(){this.isModifyMode=!1},handleRemove:function(e,t){console.log(e,t)},handleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件,本次选择了 "+e.length+" 个文件,共选择了 "+(e.length+t.length)+" 个文件")},beforeRemove:function(e,t){},beforeFileUpload:function(){},uploadFile:function(e){var t=this,n=new FormData;n.append("file",e.file),i.a.upload(a.a.FILE.UPLOAD_IMAGE.replace("{userId}",this.user.userVO.id),n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){t.agency.photoUrl=e.data,console.log(e.data),Object(o.a)("success","上传成功"),t.$refs.agency.validateField("photoUrl")}).catch(function(e){Object(o.a)("error",e.data)})},handleDialogClose:function(e){var t=this;this.$confirm("确认退出?退出前请记录下登录账号和密码,否则无法找回!!!").then(function(e){t.hideDialog()}).catch(function(e){})},showDialog:function(){this.dialogVisible=!0},hideDialog:function(){this.dialogVisible=!1,this.resetForm()},toLogin:function(){this.hideDialog(),this.$router.push({name:"Home"})},resetForm:function(){this.agency={mobile:"",email:"",name:"",bankAccount:"",address:"",evaluationAgencyAbilityList:"",evaluationAgencyResourceList:"",photo:[],photoUrl:"",password:"",username:""}},setServiceTypes:function(){this.serviceTypes=Object(s.i)()},addAgencyResource:function(){var e={id:this.agency.evaluationAgencyResourceList.length,type:this.resourceTypes[0],name:"",totalNum:0,availableNum:0};this.agency.evaluationAgencyResourceList.push(e)},removeAgencyResource:function(e){this.agency.evaluationAgencyResourceList.splice(e,1);for(var t=0;t<this.agency.evaluationAgencyResourceList.length;t++)this.agency.evaluationAgencyResourceList[t].id=t},setResourceTypes:function(){this.resourceTypes=Object(s.k)()},checkAgencyResourceVaild:function(){if(0===this.agency.evaluationAgencyResourceList.length)return!0;for(var e=0;e<this.agency.evaluationAgencyResourceList.length;e++){var t=this.agency.evaluationAgencyResourceList[e];if(""===t.type)return Object(o.a)("error","资源类型不能为空"),!1;if(""===t.name)return Object(o.a)("error","资源名称不能为空"),!1;if(t.totalNum<t.availableNum)return Object(o.a)("error","资源总数量不能低于可用数量"),!1}return!0},setUserInfo:function(){this.user=Object(s.J)("user")},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},checkNumber:function(e){return/^\d+$/.test(e)}},created:function(){}},c={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"create-container"},[n("div",{staticClass:"create-body"},[n("div",{staticClass:"title"},[e._v("添加机构")]),e._v(" "),n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"agency",staticClass:"demo-report",attrs:{model:e.agency,rules:e.rules,"label-width":"12%"}},[n("el-form-item",{attrs:{label:"机构名称",prop:"name"}},[e.isModifyMode?n("el-input",{attrs:{size:"small"},model:{value:e.agency.name,callback:function(t){e.$set(e.agency,"name",t)},expression:"agency.name"}}):e._e()],1),e._v(" "),n("el-form-item",{attrs:{size:"small",label:"机构电话",prop:"mobile"}},[e.isModifyMode?n("el-input",{model:{value:e.agency.mobile,callback:function(t){e.$set(e.agency,"mobile",t)},expression:"agency.mobile"}}):e._e()],1),e._v(" "),n("el-form-item",{attrs:{size:"small",label:"机构邮箱",prop:"email"}},[e.isModifyMode?n("el-input",{model:{value:e.agency.email,callback:function(t){e.$set(e.agency,"email",t)},expression:"agency.email"}}):e._e()],1),e._v(" "),n("el-form-item",{attrs:{size:"small",label:"地址",prop:"address"}},[e.isModifyMode?n("el-input",{model:{value:e.agency.address,callback:function(t){e.$set(e.agency,"address",t)},expression:"agency.address"}}):e._e()],1),e._v(" "),n("el-form-item",{attrs:{label:"测评机构能力",prop:"evaluationAgencyAbilityList"}},[e.isModifyMode?n("el-checkbox-group",{model:{value:e.agency.evaluationAgencyAbilityList,callback:function(t){e.$set(e.agency,"evaluationAgencyAbilityList",t)},expression:"agency.evaluationAgencyAbilityList"}},e._l(e.serviceTypes,function(t,i){return n("span",{key:i},[n("el-checkbox",{attrs:{label:t,name:"evaluationAgencyAbilityList"}},[e._v(e._s(t)+"    ")])],1)}),0):e._e()],1),e._v(" "),n("el-form-item",{attrs:{label:"测评机构资源",prop:"evaluationAgencyResourceList"}},[e._l(e.agency.evaluationAgencyResourceList,function(t){return n("span",{key:t.id},[e._v("\n 资源类型: "),n("el-select",{staticStyle:{width:"15%","margin-bottom":"10px"},attrs:{size:"small",placeholder:"请选择",value:t.type},model:{value:t.type,callback:function(n){e.$set(t,"type",n)},expression:"item.type"}},e._l(e.resourceTypes,function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})}),1),e._v("\n 资源名称: "),n("el-input",{staticStyle:{width:"15%"},attrs:{size:"small"},model:{value:t.name,callback:function(n){e.$set(t,"name",n)},expression:"item.name"}}),e._v("\n 总量: "),n("el-input-number",{attrs:{size:"small",min:0},model:{value:t.totalNum,callback:function(n){e.$set(t,"totalNum",n)},expression:"item.totalNum"}}),e._v("\n 可用数量: "),n("el-input-number",{attrs:{size:"small",min:0,max:t.totalNum},model:{value:t.availableNum,callback:function(n){e.$set(t,"availableNum",n)},expression:"item.availableNum"}}),e._v(" "),n("el-button",{attrs:{size:"small",type:"danger",icon:"el-icon-delete"},on:{click:function(n){return e.removeAgencyResource(t.id)}}}),e._v(" "),n("br")],1)}),e._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-circle-plus",plain:"",size:"mini"},on:{click:e.addAgencyResource}},[e._v("添加资源\n ")])],2),e._v(" "),n("el-form-item",{attrs:{prop:"photoUrl",label:"机构logo"}},[e.isModifyMode?n("el-upload",{staticClass:"avatar-uploader",attrs:{"show-file-list":!1,action:"https://jsonplaceholder.typicode.com/posts/","before-upload":e.beforeFileUpload,"http-request":e.uploadFile,"file-list":e.agency.photo}},[e.agency.photoUrl?n("img",{staticClass:"avatar",attrs:{src:e.agency.photoUrl}}):n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]):e._e()],1),e._v(" "),e.isModifyMode?n("el-form-item",[n("div",{staticClass:"btn btn-primary btn-info",on:{click:function(t){return e.submitInfo()}}},[e._v("提交")])]):e._e()],1),e._v(" "),n("el-dialog",{attrs:{title:"测评机构添加成功",visible:e.dialogVisible,width:"30%","before-close":e.handleDialogClose,center:""},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("span",[n("el-card",{staticClass:"box-card",attrs:{shadow:"always"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("您添加的机构信息")])]),e._v(" "),n("div",{staticClass:"text item"},[n("ul",{staticStyle:{"list-style-type":"none"}},[n("li",[e._v("机构名称:"+e._s(e.agency.name))]),e._v(" "),n("li",[e._v("机构电话:"+e._s(e.agency.mobile))]),e._v(" "),n("li",[e._v("地址:"+e._s(e.agency.address))]),e._v(" "),n("li",[e._v("邮箱:"+e._s(e.agency.email))])])])]),e._v(" "),n("br"),e._v(" "),n("el-card",{staticClass:"box-card",attrs:{shadow:"always"}},[n("div",{staticClass:"text item"},[e._v("\n 您可以使用以下的账号密码登录系统:\n "),n("ul",{staticStyle:{"list-style-type":"none"}},[n("li",[e._v("账号:"+e._s(e.agency.email))]),e._v(" "),n("li",[e._v("密码:"+e._s(e.agency.mobile))])]),e._v("\n 也可以使用手机号"+e._s(e.agency.mobile)+"验证码登录\n ")])])],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.handleDialogClose}},[e._v("返 回")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.toLogin}},[e._v("去登录")])],1)])],1)])},staticRenderFns:[]};var l=n("VU/8")(r,c,!1,function(e){n("kK74")},"data-v-39f2d584",null);t.default=l.exports},dTSN:function(e,t){},djVU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("9od8"),a=n("3Kss"),o=n("SQ4B"),s=n("b9vf"),r=n("qI5z"),c=n("vGYV"),l=n("XLwt"),u=n.n(l),d={name:"Mine",components:{TaskItem:i.a,ProjectItem:a.a},watch:{user:function(e){this.user=e},rolesPermissions:function(e){this.rolesPermissions=e},deep:!0},data:function(){return{statisticData:{},loading:!1,unFinishedTaskList:[],finishedTaskList:[],appliedProjectList:[],myProjects:[],handlingProjects:[],acceptableProjects:[],defaultValue:c.c,myProjectNoticeCount:0,processProjectNoticeCount:0,acceptableProjectNoticeCount:0,rolesPermissions:{isRegionManager:!1,isIndividualUser:!1,isEnterpriseUser:!1,isAgency:!1,isSystemAdministrator:!1},user:{userVO:{id:"",name:"",photo:"",roleList:[]}},isLogin:!1,showCreateData:!1,showAcceptData:!1}},mounted:function(){var e=this;this.$nextTick(function(){console.log("nexttick"),e.init(),e.checkCreateProjectAuth(),e.checkAcceptTaskAuth()})},methods:{init:function(){this.setUserInfo(),this.setRolesPermissions(),this.loadData()},loadData:function(){var e=this;this.showLoading(),o.a.get(s.a.PAGE.MY_CROWD_TEST_PAGE.replace("{userId}",this.user.userVO.id)).then(function(t){e.hideLoading(),e.statisticData=t,e.processProjectNoticeCount=null==t.processProjectNoticeCount?0:t.processProjectNoticeCount,e.myProjectNoticeCount=null==t.myProjectNoticeCount?0:t.myProjectNoticeCount,e.acceptableProjectNoticeCount=null==t.acceptableProjectNoticeCount?0:t.acceptableProjectNoticeCount,null!=t.unfinishedTasks&&t.unfinishedTasks.length>0&&(e.unFinishedTaskList=t.unfinishedTasks),null!=t.finishedTasks&&t.finishedTasks.length>0&&(e.finishedTaskList=t.finishedTasks),null!=t.myProjects&&t.myProjects.length>0&&(e.myProjects=t.myProjects),null!=t.handlingProjects&&t.handlingProjects.length>0&&(e.handlingProjects=t.handlingProjects),null!=t.acceptableProjects&&t.acceptableProjects.length>0&&(e.acceptableProjects=t.acceptableProjects)}).catch(function(t){e.hideLoading(),Object(r.a)("error","加载失败,请稍后重试")})},setUserInfo:function(){null!=Object(c.J)("user")&&(this.isLogin=!0,this.user=Object(c.J)("user"))},setRolesPermissions:function(){this.rolesPermissions=Object(c.J)("rolesPermissions")},setEcharts:function(){u.a.init(document.getElementById("myChart")).setOption({title:{text:""},tooltip:{},legend:{data:["接收项目数量","完成项目数量","接收任务数量","完成任务数量","发布项目数量"]},grid:{left:"5%",right:"8%",bottom:"3%",top:"10%",containLabel:!0},toolbox:{feature:{saveAsImage:{title:"保存为图片",name:"我的众测"}},right:"20px"},xAxis:{type:"category",boundaryGap:!1,data:["2020年1月","2020年2月","2020年3月","2020年4月","2020年5月","2020年6月","2020年7月"]},yAxis:{type:"value"},series:[{name:"接收项目数量",type:"line",stack:"总量",data:[2,3,3,2,4,5,6]},{name:"完成项目数量",type:"line",stack:"总量",data:[2,3,3,2,4,5,6]},{name:"接收任务数量",type:"line",stack:"总量",data:[22,33,41,14,55,33,41]},{name:"完成任务数量",type:"line",stack:"总量",data:[21,33,31,14,39,33,32]},{name:"发布项目数量",type:"line",stack:"总量",data:[2,3,1,0,1,2,2]}]})},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},handleTabClick:function(e){e.name,e.name,console.log(e)},checkCreateProjectAuth:function(){var e=this;this.isLogin&&o.a.get(s.a.USER.IS_PART.replace("{userId}",this.user.userVO.id)).then(function(t){t&&(e.showCreateData=!0)}).catch(function(e){})},checkAcceptTaskAuth:function(){var e=this;this.isLogin&&o.a.get(s.a.USER.IS_AGENCY.replace("{userId}",this.user.userVO.id)).then(function(t){t&&(e.showAcceptData=!0)}).catch(function(e){})}},created:function(){}},p={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mine-container"},[n("div",{staticClass:"project-statistics"},[e.showAcceptData?n("el-card",{staticClass:"project-statistics-card",attrs:{shadow:"hover"}},[n("div",{staticClass:"project-statistics-card-title"},[e._v("未完成任务数")]),e._v(" "),n("div",{staticClass:"project-statistics-card-number"},[e._v(e._s(e.statisticData.unfinishedTaskCount||0))])]):e._e(),e._v(" "),e.showAcceptData?n("el-card",{staticClass:"project-statistics-card",attrs:{shadow:"hover"}},[n("div",{staticClass:"project-statistics-card-title"},[e._v("已完成任务数")]),e._v(" "),n("div",{staticClass:"project-statistics-card-number"},[e._v(e._s(e.statisticData.finishedTaskCount||0))])]):e._e(),e._v(" "),e.showCreateData?n("el-card",{staticClass:"project-statistics-card",attrs:{shadow:"hover"}},[n("div",{staticClass:"project-statistics-card-title"},[e._v("发布项目数")]),e._v(" "),n("div",{staticClass:"project-statistics-card-number"},[e._v(e._s(e.statisticData.myProjectCount||0))])]):e._e(),e._v(" "),e.showCreateData?n("el-card",{staticClass:"project-statistics-card",attrs:{shadow:"hover"}},[n("div",{staticClass:"project-statistics-card-title"},[e._v("接收项目数")]),e._v(" "),n("div",{staticClass:"project-statistics-card-number"},[e._v(e._s(e.statisticData.handlingProjectCount||0))])]):e._e(),e._v(" "),e.showCreateData?n("el-card",{staticClass:"project-statistics-card",attrs:{shadow:"hover"}},[n("div",{staticClass:"project-statistics-card-title"},[e._v("可接收项目数")]),e._v(" "),n("div",{staticClass:"project-statistics-card-number"},[e._v(e._s(e.statisticData.acceptableProjectCount||0))])]):e._e()],1),e._v(" "),n("div",{staticClass:"mine-body",staticStyle:{"text-align":"center"}},[n("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"90%","margin-left":"5%"},attrs:{value:"myProject"},on:{"tab-click":e.handleTabClick}},[n("el-tab-pane",{attrs:{name:"unFinishedTask"}},[n("span",{attrs:{slot:"label"},slot:"label"},[n("el-badge",{staticClass:"item",staticStyle:{"margin-top":"10px","margin-bottom":"25px","font-size":"16px"}},[e._v("未完成任务")])],1),e._v(" "),null!=e.unFinishedTaskList&&0!=e.unFinishedTaskList.length?n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{attrs:{span:5}},[e._v("任务封面")]),e._v(" "),n("el-col",{attrs:{span:4}},[e._v("任务名称")]),e._v(" "),n("el-col",{attrs:{span:4}},[e._v("测试类型")]),e._v(" "),n("el-col",{attrs:{span:4}},[e._v("任务预算")]),e._v(" "),n("el-col",{attrs:{span:4}},[e._v("领取人数")]),e._v(" "),n("el-col",{attrs:{span:3}},[e._v("操作")])],1):e._e(),e._v(" "),null==e.unFinishedTaskList||0==e.unFinishedTaskList.length?n("span",[e._v(" 暂无任务 ")]):e._e(),e._v(" "),e._l(e.unFinishedTaskList,function(t,i){return null!=e.unFinishedTaskList||e.unFinishedTaskList.length>0?n("task-item",{key:i,attrs:{task:t}}):e._e()})],2),e._v(" "),n("el-tab-pane",{attrs:{name:"finishedTask"}},[n("span",{attrs:{slot:"label"},slot:"label"},[n("el-badge",{staticClass:"item",staticStyle:{"margin-top":"10px","margin-bottom":"25px","font-size":"16px"}},[e._v("已完成任务")])],1),e._v(" "),null!=e.finishedTaskList&&0!=e.finishedTaskList.length?n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{attrs:{span:5}},[e._v("任务封面")]),e._v(" "),n("el-col",{attrs:{span:4}},[e._v("任务名称")]),e._v(" "),n("el-col",{attrs:{span:4}},[e._v("测试类型")]),e._v(" "),n("el-col",{attrs:{span:4}},[e._v("任务预算")]),e._v(" "),n("el-col",{attrs:{span:4}},[e._v("领取人数")]),e._v(" "),n("el-col",{attrs:{span:3}},[e._v("操作")])],1):e._e(),e._v(" "),null==e.finishedTaskList||0==e.finishedTaskList.length?n("span",[e._v(" 暂无任务 ")]):e._e(),e._v(" "),e._l(e.finishedTaskList,function(t,i){return null!=e.finishedTaskList||e.finishedTaskList.length>0?n("task-item",{key:i,attrs:{task:t}}):e._e()})],2),e._v(" "),n("el-tab-pane",{attrs:{name:"myProject"}},[n("span",{attrs:{slot:"label"},slot:"label"},[e.myProjectNoticeCount>0?n("el-badge",{staticClass:"item",staticStyle:{height:"auto","margin-top":"10px","margin-bottom":"25px","font-size":"16px"},attrs:{value:e.myProjectNoticeCount}},[e._v("发布项目数")]):e._e(),e._v(" "),null==e.myProjectNoticeCount||0==e.myProjectNoticeCount?n("el-badge",{staticClass:"item",staticStyle:{"margin-top":"10px","margin-bottom":"25px","font-size":"16px"}},[e._v("发布项目数")]):e._e()],1),e._v(" "),null==e.myProjects||0==e.myProjects.length?n("span",[e._v(" 暂无项目 ")]):e._e(),e._v(" "),null!=e.myProjects&&0!=e.myProjects.length?n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[e._v("项目图片")]),e._v(" "),n("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[e._v("项目名称")]),e._v(" "),n("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[e._v("应用类型")]),e._v(" "),n("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[e._v("项目预算")]),e._v(" "),n("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[e._v("参与人数")]),e._v(" "),n("el-col",{attrs:{span:4,type:"flex",align:"middle",justify:"center"}},[e._v("操作")])],1):e._e(),e._v(" "),e._l(e.myProjects,function(t,i){return null!=e.myProjects||e.myProjects.length>0?n("project-item",{key:i,attrs:{projectItem:t}}):e._e()})],2),e._v(" "),n("el-tab-pane",{attrs:{name:"handlingProject"}},[n("span",{attrs:{slot:"label"},slot:"label"},[e.processProjectNoticeCount>0?n("el-badge",{staticClass:"item",staticStyle:{"margin-top":"10px","margin-bottom":"25px","font-size":"16px"},attrs:{value:e.processProjectNoticeCount}},[e._v("接收项目数")]):e._e(),e._v(" "),null==e.processProjectNoticeCount||0==e.processProjectNoticeCount?n("el-badge",{staticClass:"item",staticStyle:{"margin-top":"10px","margin-bottom":"25px","font-size":"16px"}},[e._v("接收项目数")]):e._e()],1),e._v(" "),null!=e.handlingProjects&&0!=e.handlingProjects.length?n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{attrs:{span:6}},[e._v("项目图片")]),e._v(" "),n("el-col",{attrs:{span:6}},[e._v("项目名称")]),e._v(" "),n("el-col",{attrs:{span:3}},[e._v("应用类型")]),e._v(" "),n("el-col",{attrs:{span:3}},[e._v("项目预算")]),e._v(" "),n("el-col",{attrs:{span:3}},[e._v("参与人数")]),e._v(" "),n("el-col",{attrs:{span:4}},[e._v("操作")])],1):e._e(),e._v(" "),null==e.handlingProjects||0==e.handlingProjects.length?n("span",[e._v(" 暂无项目 ")]):e._e(),e._v(" "),e._l(e.handlingProjects,function(t,i){return null!=e.handlingProjects||e.handlingProjects.length>0?n("project-item",{key:i,attrs:{projectItem:t}}):e._e()})],2),e._v(" "),n("el-tab-pane",{attrs:{name:"acceptableProject"}},[n("span",{attrs:{slot:"label"},slot:"label"},[e.acceptableProjectNoticeCount>0?n("el-badge",{staticClass:"item",staticStyle:{"margin-top":"10px","margin-bottom":"25px","font-size":"16px"},attrs:{value:e.acceptableProjectNoticeCount}},[e._v("可接收项目")]):e._e(),e._v(" "),null==e.acceptableProjectNoticeCount||0==e.acceptableProjectNoticeCount?n("el-badge",{staticClass:"item",staticStyle:{"margin-top":"10px","margin-bottom":"25px","font-size":"16px"}},[e._v("可接收项目")]):e._e()],1),e._v(" "),null!=e.acceptableProjects&&0!=e.acceptableProjects.length?n("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[n("el-col",{attrs:{span:6}},[e._v("项目图片")]),e._v(" "),n("el-col",{attrs:{span:6}},[e._v("项目名称")]),e._v(" "),n("el-col",{attrs:{span:3}},[e._v("应用类型")]),e._v(" "),n("el-col",{attrs:{span:3}},[e._v("项目预算")]),e._v(" "),n("el-col",{attrs:{span:3}},[e._v("参与人数")]),e._v(" "),n("el-col",{attrs:{span:4}},[e._v("操作")])],1):e._e(),e._v(" "),null==e.acceptableProjects||0==e.acceptableProjects.length?n("span",[e._v(" 暂无项目 ")]):e._e(),e._v(" "),e._l(e.acceptableProjects,function(t,i){return null!=e.acceptableProjects||e.acceptableProjects.length>0?n("project-item",{key:i,attrs:{projectItem:t}}):e._e()})],2)],1)],1)])},staticRenderFns:[]};var m=n("VU/8")(d,p,!1,function(e){n("N+6r")},"data-v-3aecb08f",null);t.default=m.exports},dlH2:function(e,t,n){"use strict";var i=n("BO1k"),a=n.n(i),o=n("atWu"),s=n.n(o),r={name:"provinceCity",props:{provinceCode:{type:String,default:""},cityCode:{type:String,default:""},isModifyMode:{type:Boolean,default:!1}},created:function(){this.provinces=s.a.provinces},mounted:function(){var e=this;this.$nextTick(function(){e.province=e.provinceCode,e.provinceChanged(e.provinceCode),e.city=e.cityCode})},data:function(){return{loadingCity:!1,province:"",city:"",provinces:[],cities:[]}},methods:{provinceChanged:function(e){if(""!==e){this.loadingCity=!0;var t=!0,n=!1,i=void 0;try{for(var o,s=a()(this.provinces);!(t=(o=s.next()).done);t=!0){var r=o.value;if(r.code===e){this.cities=r.cities,this.city="",this.loadingCity=!1;break}}}catch(e){n=!0,i=e}finally{try{!t&&s.return&&s.return()}finally{if(n)throw i}}}else this.cities=[],this.city="";this.$emit("selectChange",this.province,this.city)},cityChanged:function(e){this.$emit("selectChange",this.province,this.city)},resetProviceCity:function(e,t){this.cities=[],e&&t?(this.province=e,this.provinceChanged(this.province),this.city=t):(this.province="",this.city="")}},watch:{data:function(){this.province=this.provinceCode,this.city=this.cityCode}}},c={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"province-city"},[n("el-form-item",{staticClass:"page-form-item",staticStyle:{width:"calc(20% - 20px)"},attrs:{"label-width":"20%",label:"省:",prop:"status"}},[n("el-select",{attrs:{placeholder:"请选择",disabled:e.isModifyMode},on:{change:e.provinceChanged},model:{value:e.province,callback:function(t){e.province=t},expression:"province"}},e._l(e.provinces,function(e){return n("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})}),1)],1),e._v(" "),n("el-form-item",{staticClass:"page-form-item",staticStyle:{width:"calc(30% - 20px)","margin-right":"0px"},attrs:{"label-width":"20%",label:"市:",prop:"status"}},[n("el-select",{attrs:{loading:e.loadingCity,placeholder:"请选择",disabled:e.isModifyMode},on:{change:e.cityChanged},model:{value:e.city,callback:function(t){e.city=t},expression:"city"}},[n("el-option",{key:"",attrs:{label:"请选择",value:""}}),e._v(" "),e._l(e.cities,function(e){return n("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})],2)],1)],1)},staticRenderFns:[]};var l=n("VU/8")(r,c,!1,function(e){n("sD+T")},"data-v-3652e642",null);t.a=l.exports},eCJx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("BO1k"),a=n.n(i),o=n("dlH2"),s=n("atWu"),r=n.n(s),c=n("SQ4B"),l=n("b9vf"),u=n("siQe"),d=n("qI5z"),p=n("vGYV"),m={name:"Task",components:{provincecity:o.a},data:function(){var e=this;return{currType:{},user:{},projectId:0,institutionArray:[],tabPosition:"top",resourceType:u.a,loading:!1,serviceType:[],task:{name:"",desc:"",type:"",resource:"",institution:"",datetime:"",quotePrice:"",fixedPrice:"",doc:[],requireDocUrl:"",participantCount:1,endPoint:{serverCode:""}},pickerOptions:{shortcuts:[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"昨天",onClick:function(e){var t=new Date;t.setTime(t.getTime()-864e5),e.$emit("pick",t)}},{text:"一周前",onClick:function(e){var t=new Date;t.setTime(t.getTime()-6048e5),e.$emit("pick",t)}}]},rules:{name:[{required:!0,message:"请输入任务名称",trigger:"blur"},{min:5,max:50,message:"任务名称长度在 5 到 50 个字符",trigger:"blur"}],type:[{required:!0,message:"测试类型不可为空"}],desc:[{required:!0,message:"请填写描述",trigger:"blur"}],quotePrice:[{required:!0,message:"预算不可为空",trigger:"blur"},{validator:function(e,t,n){parseInt(t)<0?n(new Error("请输入不小于0的数")):n()},trigger:"blur"}],resource:[{required:!0},{validator:function(t,n,i){0==n&&null==e.task.institution.id?i(new Error("定向发布至少要选择一个测评机构")):i()},trigger:"change"}],endPoint:[{validator:function(t,n,i){1===e.currType.type&&""===e.task.endPoint.serverCode?i(new Error("请填写对应得服务序列号")):i()},trigger:["change","blur"]}],datetime:[{required:!0,message:"截止时间不可为空",trigger:"blur"}]}}},watch:{serviceType:function(e){this.serviceType=e},institution:function(e){this.institution=e},deep:!0},mounted:function(){var e=this;this.$nextTick(function(){e.init()})},methods:{handleTestTypeChange:function(e){var t=this.serviceType.filter(function(t){return t.code===e});this.currType=t[0]?t[0]:{},0===this.currType.type?this.$refs.task.clearValidate("endPoint"):this.task.resource="2"},init:function(){this.projectId=this.$route.params.projectId,this.setServiceType(),this.setInstitutions(),this.setUserInfo()},updateLocation:function(e){var t="",n="",i=!0,o=!1,s=void 0;try{for(var c,l=a()(r.a.provinces);!(i=(c=l.next()).done);i=!0){var u=c.value;if(u.code===e.provinceCode){t=u.name;var d=!0,p=!1,m=void 0;try{for(var h,f=a()(u.cities);!(d=(h=f.next()).done);d=!0){var v=h.value;if(v.code===e.cityCode){n=v.name;break}}}catch(e){p=!0,m=e}finally{try{!d&&f.return&&f.return()}finally{if(p)throw m}}}}}catch(e){o=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}return t+" / "+n},submitForm:function(e){var t=this;this.$refs.task.validate(function(e){if(!e)return Object(d.a)("error","表单填写有误!"),!1;t.showLoading();var n={name:t.task.name,desc:t.task.desc,type:t.task.type,resource:t.task.resource,institution:"0"==t.task.resource?t.task.institution.id:null,datetime:t.task.datetime,quotePrice:t.task.quotePrice,fixedPrice:t.task.fixedPrice,requirementFile:t.task.requireDocUrl,participantCount:t.task.participantCount,endPoint:t.task.endPoint};c.a.post(l.a.TASK.CREATE_TASK.replace("{projectId}",t.projectId),n).then(function(e){console.log(e),t.hideLoading(),t.createTaskSuccess(e.crowdTaskVO.id)}).catch(function(e){console.log(e),t.hideLoading(),Object(d.a)("error",e.data)})})},resetForm:function(e){this.$refs.addFormProvince.resetProviceCity(),this.$refs[e].resetFields(),this.task.name="",this.task.desc="",this.task.type="",this.task.resource="广场",this.task.location={provinceCode:"",cityCode:""},this.task.institution="",this.task.datetime="",this.task.participantCount=1},locationChange:function(e,t){(e||t)&&(this.task.location={provinceCode:e,cityCode:t})},cancelCreate:function(){if(window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)},handleRemove:function(e,t){console.log(e,t)},handleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件,本次选择了 "+e.length+" 个文件,共选择了 "+(e.length+t.length)+" 个文件")},beforeRemove:function(e,t){},beforeFileUpload:function(e){console.log(e);var t="application/pdf"===e.type,n="application/vnd.openxmlformats-officedocument.wordprocessingml.document"===e.type,i="application/vnd.ms-excel"===e.type,a="application/x-xls"===e.type,o="text/plain"===e.type,s="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===e.type;return n||i||t||o||a||s||this.$message.error("上传文件只能是 PDF 、 DOC 、DOCX 、XLS、TXT、XLSX 格式!"),n||i||t||o||a||s},uploadRequireDoc:function(e){var t=this;this.showLoading();var n=new FormData;n.append("file",e.file),c.a.upload(l.a.FILE.REQUIREMENT_FILE.replace("{userId}",this.user.userVO.id),n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){t.hideLoading(),Object(d.a)("success","上传成功"),t.task.requireDocUrl=e.data,console.log(e.data)}).catch(function(e){t.hideLoading(),Object(d.a)("error","上传失败:"+e.data)})},setServiceType:function(){var e=this;Object(p.r)().then(function(t){e.serviceType=t})},setInstitutions:function(){var e=this;Object(p.j)().then(function(t){e.institutionArray=t,console.log(e.institutionArray)}).catch(function(e){Object(d.a)("error","测评机构加载失败")})},setUserInfo:function(){this.user=Object(p.J)("user")},createTaskSuccess:function(e){var t=this;this.$alert("任务创建成功","创建成功",{confirmButtonText:"确定",callback:function(n){t.$router.push({name:"Task",params:{projectId:t.projectId,taskId:e}})}})},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1}}},h={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"create-container"},[n("div",{staticClass:"title h1"},[e._v("创建任务")]),e._v(" "),n("div",{staticClass:"create-body"},[n("el-form",{ref:"task",staticClass:"demo-task",staticStyle:{margin:"0 100px"},attrs:{model:e.task,rules:e.rules,"label-width":"120px"}},[n("el-form-item",{staticStyle:{width:"700px"},attrs:{label:"任务名称",prop:"name"}},[n("el-input",{attrs:{size:"small"},model:{value:e.task.name,callback:function(t){e.$set(e.task,"name",t)},expression:"task.name"}})],1),e._v(" "),n("el-form-item",{staticStyle:{width:"700px"},attrs:{label:"任务描述",prop:"desc"}},[n("el-input",{staticStyle:{width:"400px"},attrs:{autosize:"",type:"textarea"},model:{value:e.task.desc,callback:function(t){e.$set(e.task,"desc",t)},expression:"task.desc"}})],1),e._v(" "),n("el-form-item",{staticStyle:{width:"700px"},attrs:{label:"任务报价",prop:"quotePrice"}},[n("el-input",{attrs:{size:"small",type:"number"},model:{value:e.task.quotePrice,callback:function(t){e.$set(e.task,"quotePrice",t)},expression:"task.quotePrice"}},[n("template",{slot:"append"},[e._v("¥")])],2)],1),e._v(" "),n("el-form-item",{attrs:{label:"测试类型",prop:"type"}},[n("el-radio-group",{on:{change:e.handleTestTypeChange},model:{value:e.task.type,callback:function(t){e.$set(e.task,"type",t)},expression:"task.type"}},e._l(e.serviceType,function(t,i){return n("span",{key:i},[n("el-radio",{attrs:{label:t.code,name:"type"}},[e._v(e._s(t.name))])],1)}),0)],1),e._v(" "),1==e.currType.type?n("el-form-item",{staticStyle:{width:"700px"},attrs:{label:"服务序列号",prop:"endPoint"}},[n("el-input",{attrs:{label:"serverCode"},model:{value:e.task.endPoint.serverCode,callback:function(t){e.$set(e.task.endPoint,"serverCode",t)},expression:"task.endPoint.serverCode"}})],1):e._e(),e._v(" "),0==e.currType.type?n("el-form-item",{staticStyle:{width:"700px"},attrs:{label:"任务可见性",prop:"resource"}},[n("el-tabs",{staticStyle:{width:"800px"},attrs:{"tab-position":e.tabPosition},model:{value:e.task.resource,callback:function(t){e.$set(e.task,"resource",t)},expression:"task.resource"}},[n("el-tab-pane",{attrs:{label:e.resourceType[0],name:"0"}},[n("el-radio-group",{model:{value:e.task.institution,callback:function(t){e.$set(e.task,"institution",t)},expression:"task.institution"}},e._l(e.institutionArray,function(t,i){return n("el-radio",{key:i,attrs:{label:t,name:"type"}},[e._v(e._s(t.evaluationAgencyName)+"\n ")])}),1)],1),e._v(" "),n("el-tab-pane",{attrs:{label:e.resourceType[2],name:"2"}})],1)],1):e._e(),e._v(" "),1==e.currType.type?n("el-form-item",{staticStyle:{width:"700px"},attrs:{label:"任务可见性",prop:"resource",required:""}},[n("el-tabs",{staticStyle:{width:"800px"},attrs:{"tab-position":e.tabPosition,value:"2"},model:{value:e.task.resource,callback:function(t){e.$set(e.task,"resource",t)},expression:"task.resource"}},[n("el-tab-pane",{attrs:{label:e.resourceType[2],name:"2"}})],1)],1):e._e(),e._v(" "),"0"!==e.task.resource&&0===e.currType.type?n("el-form-item",{attrs:{label:"领取人数",prop:"contactPhone"}},[n("el-input-number",{attrs:{min:1,max:1e3,label:"领取人数"},model:{value:e.task.participantCount,callback:function(t){e.$set(e.task,"participantCount",t)},expression:"task.participantCount"}})],1):e._e(),e._v(" "),"0"!==e.task.resource&&1===e.currType.type?n("el-form-item",{attrs:{label:"领取人数",prop:"contactPhone"}},[n("el-input-number",{attrs:{min:2,max:1e3,label:"领取人数"},model:{value:e.task.participantCount,callback:function(t){e.$set(e.task,"participantCount",t)},expression:"task.participantCount"}})],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"需求文档",prop:"doc"}},[n("el-upload",{staticClass:"upload-demo",staticStyle:{width:"400px"},attrs:{drag:"",action:"","on-remove":e.handleRemove,"before-remove":e.beforeRemove,limit:1,"on-exceed":e.handleExceed,"before-upload":e.beforeFileUpload,"http-request":e.uploadRequireDoc,"file-list":e.task.doc}},[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或\n "),n("em",[e._v("点击上传")])])])],1),e._v(" "),n("el-form-item",{attrs:{size:"small",label:"任务截止时间",prop:"datetime"}},[n("div",{staticClass:"block"},[n("el-date-picker",{attrs:{type:"datetime",placeholder:"选择截止时间",align:"right","picker-options":e.pickerOptions},model:{value:e.task.datetime,callback:function(t){e.$set(e.task,"datetime",t)},expression:"task.datetime"}})],1)]),e._v(" "),n("el-form-item",[n("div",{staticClass:"btn btn-medium btn-info",on:{click:function(t){return e.submitForm("task")}}},[e._v("立即创建")]),e._v(" "),n("div",{staticClass:"btn btn-medium",on:{click:function(t){return e.cancelCreate("task")}}},[e._v("取消")])])],1)],1)])},staticRenderFns:[]};var f=n("VU/8")(m,h,!1,function(e){n("ekxq")},"data-v-7d8de065",null);t.default=f.exports},ekxq:function(e,t){},hwS5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("SQ4B"),a=n("b9vf"),o={name:"AnalyseDemand",data:function(){return{analyseDemand:{feasibilityReport:"",priceAuditReport:""},rules:{feasibilityReport:[{required:!0,message:"请上传可行性分析报告",trigger:"change"}],priceAuditReport:[{required:!0,message:"请上传价格审核报告",trigger:"change"}]}}},methods:{submitForm:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;console.log(t.analyseDemand),i.a.get(a.a.PROJECT.CREATE_ANALYSE_DEMAND_SUBMIT,t.analyseDemand).then(function(e){console.log(e),console.log(t.analyseDemand)})})},resetForm:function(e){this.$refs[e].resetFields(),this.analyseDemand.feasibilityReport="",this.analyseDemand.priceAuditReport=""},back:function(){if(window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)}}},s={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"create-container"},[n("div",{staticClass:"title h1"},[e._v("分析需求")]),e._v(" "),n("div",{staticClass:"create-body"},[n("el-form",{ref:"analyseDemand",staticClass:"demo-report",attrs:{model:e.analyseDemand,rules:e.rules,"label-width":"12%"}},[n("el-form-item",{attrs:{label:"可行性分析报告",prop:"feasibilityReport"}},[n("el-upload",{staticClass:"upload-demo",attrs:{drag:"",action:"https://jsonplaceholder.typicode.com/posts/",multiple:""}},[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或\n "),n("em",[e._v("点击上传")])]),e._v(" "),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传报告文档")])])],1),e._v(" "),n("el-form-item",{attrs:{label:"价格审核报告",prop:"priceAuditReport"}},[n("el-upload",{staticClass:"upload-demo",attrs:{drag:"",action:"https://jsonplaceholder.typicode.com/posts/",multiple:""}},[n("i",{staticClass:"el-icon-upload"}),e._v(" "),n("div",{staticClass:"el-upload__text"},[e._v("\n 将文件拖到此处,或\n "),n("em",[e._v("点击上传")])]),e._v(" "),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传报告文档")])])],1),e._v(" "),n("el-form-item",[n("div",{staticClass:"btn btn-medium btn-info",on:{click:function(t){return e.submitForm("analyseDemand")}}},[e._v("提交")]),e._v(" "),n("div",{staticClass:"btn btn-medium",on:{click:function(t){return e.back()}}},[e._v("返回")])])],1)],1)])},staticRenderFns:[]};var r=n("VU/8")(o,s,!1,function(e){n("k4SM")},"data-v-13faaa1b",null);t.default=r.exports},k4SM:function(e,t){},kK74:function(e,t){},mfJG:function(e,t){},nbBP:function(e,t){},"njb+":function(e,t){},nn7h:function(e,t){},qI5z:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("zL8q"),a=(n.n(i),function(e,t,n){n="消息";switch(e){case"success":n="成功";break;case"warning":n="提醒";break;case"info":n="消息";break;case"error":n="错误";break;default:n="消息"}return Object(i.Notification)({title:n,message:t,type:e,duration:3e3})})},qn6L:function(e,t){},qxEW:function(e,t){},"sD+T":function(e,t){},siQe:function(e,t,n){"use strict";t.a={0:"定向",1:"区域",2:"广场"}},"t/kO":function(e,t){},ttDY:function(e,t){},uslO:function(e,t,n){var i={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn-bd":"1C9R","./bn-bd.js":"1C9R","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-in":"yJfC","./en-in.js":"yJfC","./en-nz":"dyB6","./en-nz.js":"dyB6","./en-sg":"NYST","./en-sg.js":"NYST","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-mx":"USNP","./es-mx.js":"USNP","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fil":"rMbQ","./fil.js":"rMbQ","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./ga":"U5Iz","./ga.js":"U5Iz","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-deva":"VGQH","./gom-deva.js":"VGQH","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it-ch":"/E8D","./it-ch.js":"/E8D","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ku":"kI9l","./ku.js":"kI9l","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./oc-lnc":"KOFO","./oc-lnc.js":"KOFO","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tk":"+WRH","./tk.js":"+WRH","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-mo":"+WA1","./zh-mo.js":"+WA1","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};function a(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}a.keys=function(){return Object.keys(i)},a.resolve=o,e.exports=a,a.id="uslO"},v6wT:function(e,t){},vGYV:function(e,t,n){"use strict";var i=n("//Fk"),a=n.n(i),o=n("SQ4B"),s=n("b9vf"),r=function(e,t){return o.a.get(s.a.USER.GET_CURRENT_USER)},c=function(e){var t="RegionalManager",n="generalUser",i="enterpriseUser",a="evaluationAgency",o="SystemAdministrator",s={isRegionManager:!1,isIndividualUser:!1,isEnterpriseUser:!1,isAgency:!1,isSystemAdministrator:!1};return e.includes(t)&&(s.isRegionManager=!0,s.isEnterpriseUser=!0,s.isIndividualUser=!0),e.includes(a)&&(s.isAgency=!0,s.isEnterpriseUser=!0,s.isIndividualUser=!0),e.includes(i)&&(s.isEnterpriseUser=!0),e.includes(n)&&(s.isIndividualUser=!0),e.includes(o)&&(s.isSystemAdministrator=!0,s.isRegionManager=!0,s.isAgency=!0,s.isEnterpriseUser=!0,s.isIndividualUser=!0),s},l=function(){return sessionStorage.removeItem("user"),sessionStorage.removeItem("rolesPermissions"),o.a.get(s.a.USER.LOGOUT)},u=function(){return["/","/home","/square","/mine","/project/create","/project/:projectId","/project/:projectId/task/create","/project/:projectId/task/:taskId","/project/:projectId/analyse","/report/create","/report/:reportId","/greenChannel/addProject","/greenChannel/addAgency","/authentication/individual","/authentication/enterprise","/authentication/agency","/authentication/index"]},d=function(e,t,n,i){o.a.post(s.a.USER.SUBMIT_INDIVIDUAL_AUTHENTICATION_INFO.replace("{userId}",e),t).then(function(e){n(e)}).catch(function(e){i(e)})},p=function(e,t,n,i){o.a.post(s.a.USER.SUBMIT_ENTERPRISE_AUTHENTICATION_INFO.replace("{userId}",e),t).then(function(e){n(e)}).catch(function(e){i(e)})},m=function(e,t,n,i){o.a.post(s.a.USER.SUBMIT_AGENCY_AUTHENTICATION_INFO.replace("{userId}",e),t).then(function(e){n(e)}).catch(function(e){i(e)})},h=function(e,t){o.a.get(s.a.USER.GET_ALL_HANDLING_AUTH_INFO).then(function(t){e(t)}).catch(function(e){t(e)})},f=function(e,t){o.a.get(s.a.USER.GET_ALL_HANDLED_AUTH_INFO).then(function(t){e(t)}).catch(function(e){t(e)})},v=function(e,t,n){o.a.get(s.a.USER.GET_INDIVIDUAL_AUTHENTICATION_INFO.replace("{userId}",e)).then(function(e){t(e)}).catch(function(e){n(e)})},g=function(e,t,n){o.a.get(s.a.USER.GET_ENTERPRISE_AUTHENTICATION_INFO.replace("{userId}",e)).then(function(e){t(e)}).catch(function(e){n(e)})},_=function(e,t,n){o.a.get(s.a.USER.GET_AGENCY_AUTHENTICATION_INFO.replace("{userId}",e)).then(function(e){t(e)}).catch(function(e){n(e)})},y=function(e,t,n){o.a.get(s.a.USER.GET_AGENCY_AUTHENTICATION_INFO_COMMON.replace("{userId}",e)).then(function(e){t(e)}).catch(function(e){n(e)})},j=function(){var e={type:"企业",id:1,userId:3,bankAccount:"621000999000999000",address:"江苏科技大厦1901",status:"",rejectReason:"",createTime:"",companyName:"慕测呀",legalPersonName:"郭超啊",businessLicensePhoto:null,unifiedSocialCreditCode:"1900000000086"};return new a.a(function(t){t(e)})},b=function(){var e={};return new a.a(function(t){t(e)})},k=function(e,t,n,i){o.a.put(s.a.USER.UPDATE_INDIVIDUAL_AUTHENTICATION_INFO.replace("{userId}",e),t).then(function(e){n(e)}).catch(function(e){i(e)})},T=function(e,t,n,i){o.a.put(s.a.USER.UPDATE_AGENCY_AUTHENTICATION_INFO.replace("{userId}",e),t).then(function(e){n(e)}).catch(function(e){i(e)})},C=function(e,t,n,i){o.a.post(s.a.USER.UPDATE_AGENCY_RESOURCE_AND_ABILITY.replace("{userId}",e),t).then(function(e){n(e)}).catch(function(e){i(e)})},I=function(e,t,n,i){o.a.put(s.a.USER.UPDATE_ENTERPRISE_AUTHENTICATION_INFO.replace("{userId}",e),t).then(function(e){n(e)}).catch(function(e){i(e)})},x=function(e,t,n,i){"agency"==e&&o.a.put(s.a.USER.PASS_AGENCY_AUTH.replace("{userId}",t),{}).then(function(e){n(e)}).catch(function(e){i(e)}),"personal"==e&&o.a.put(s.a.USER.PASS_INDIVIDUAL_AUTH.replace("{userId}",t),{}).then(function(e){n(e)}).catch(function(e){i(e)}),"enterprise"==e&&o.a.put(s.a.USER.PASS_ENTERPRISE_AUTH.replace("{userId}",t),{}).then(function(e){n(e)}).catch(function(e){i(e)})},w=function(e,t,n,i,a){"agency"==e&&o.a.put(s.a.USER.REJECT_AGENCY_AUTH.replace("{userId}",t),n).then(function(e){i(e)}).catch(function(e){a(e)}),"personal"==e&&o.a.put(s.a.USER.REJECT_INDIVIDUAL_AUTH.replace("{userId}",t),n).then(function(e){i(e)}).catch(function(e){a(e)}),"enterprise"==e&&o.a.put(s.a.USER.REJECT_ENTERPRISE_AUTH.replace("{userId}",t),n).then(function(e){i(e)}).catch(function(e){a(e)})},E=function(e){return o.a.post(s.a.PROJECT.CREATE_PROJECT,e)},A=function(e,t){return o.a.put(s.a.PROJECT.UPDATE_PROJECT.replace("{projectId}",t),e)},O=function(e){o.a.get(s.a.PROJECT.GET_PROJECT.replace("{projectId}",e))},S=function(e,t,n){o.a.put(s.a.PROJECT.DELETE_PROJECT.replace("{projectId}",e),{}).then(function(e){t(e)}).catch(function(e){n(e)})},P=function(e,t,n,i){console.log("调用"),o.a.put(s.a.PROJECT.ACCEPT_PROJECT.replace("{projectId}",e).replace("{userId}",t),{}).then(function(e){console.log(e),n(e)}).catch(function(e){console.log(e),i(e)})},L=function(e,t,n){o.a.put(s.a.PROJECT.REJECT_PROJECT.replace("{projectId}",e),{}).then(function(e){t(e)}).catch(function(e){n(e)})},R=function(e,t,n){o.a.put(s.a.PROJECT.SUBMIT_PROJECT.replace("{projectId}",e),{}).then(function(e){t(e)}).catch(function(e){n(e)})},D=function(e,t,n){o.a.put(s.a.PROJECT.END_PROJECT.replace("{projectId}",e),{}).then(function(e){t(e)}).catch(function(e){n(e)})},U=function(e,t){return o.a.post(s.a.TASK.CREATE_TASK.replace("{projectId}",e),t)},N=function(e,t,n,i,a){o.a.put(s.a.TASK.UPDATE_TASK.replace("{projectId}",e).replace("{taskId}",t),n).then(function(e){i(e)}).catch(function(e){a(e)})},M=function(e,t,n,i){o.a.get(s.a.TASK.GET_TASK.replace("{projectId}",e).replace("{taskId}",t),{}).then(function(e){n(e)}).catch(function(e){i(e)})},F=function(e,t,n){o.a.get(s.a.TASK.GET_TASK_CLOUD.replace("{projectId}",e).replace("{taskId}",t),{}).then(function(e){n(e)}).catch(function(e){console.log(e)})},q=function(e,t,n,i){o.a.put(s.a.TASK.DELETE_TASK.replace("{projectId}",e).replace("taskId",t),{}).then(function(e){n(e)}).catch(function(e){i(e)})},V=function(e,t,n,i,a){o.a.put(s.a.TASK.ACCEPT_TASK.replace("{projectId}",e).replace("{taskId}",t).replace("{userId}",n),{}).then(function(e){i(e)}).catch(function(e){a(e)})},$=function(e,t,n,i){o.a.put(s.a.TASK.SUBMIT_TASK.replace("{projectId}",e).replace("{taskId}",t),{}).then(function(e){n(e)}).catch(function(e){i(e)})},z=function(e,t,n,i){o.a.put(s.a.TASK.REJECT_TASK.replace("{projectId}",e).replace("{taskId}",t),{}).then(function(e){n(e)}).catch(function(e){i(e)})},G=function(e,t,n,i){o.a.put(s.a.TASK.END_TASK.replace("{projectId}",e).replace("{taskId}",t),{}).then(function(e){n(e)}).catch(function(e){i(e)})},B=function(){},H=function(){},J=function(){},K=function(){},Y=function(){},W=function(){},Q=function(e,t,n,i){o.a.put(s.a.REPORT.DELETE_PROJECT_REPORT.replace("{projectId}",e).replace("{reportId}",t),{}).then(function(e){n(e)}).catch(function(e){i(e)})},X=function(e,t,n,i,a){o.a.put(s.a.REPORT.DELETE_TASK_REPORT.replace("{projectId}",e).replace("{taskId}",t).replace("{reportId}",n),{}).then(function(e){i(e)}).catch(function(e){a(e)})},Z=function(e,t){var n=new FormData;return n.append("file",t),o.a.upload(e,n,{headers:{"Content-Type":"multipart/form-data"}})},ee=function(e,t,n){var i=new FormData;i.append("file",e),o.a.upload(s.a.FILE.UPLOAD_IMAGE,i,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){t(e)}).catch(function(e){n(e)})},te=function(){},ne=function(){},ie=function(e,t,n){var i=e.name.split(".")[e.name.split(".").length-1].toLowerCase();return t.includes(i)||n(),t.includes(i)},ae=n("mvHQ"),oe=n.n(ae),se=n("atWu"),re=n.n(se),ce=function(e,t){sessionStorage.setItem(e,oe()(t))},le=function(e){return JSON.parse(sessionStorage.getItem(e))},ue=function(){return o.a.get(s.a.USER.GET_USER_IDENTITY)},de=function(){return["接口测试","兼容性测试","可靠性测试","稳定性测试","功能测试","性能测试","安全测试","易用性测试","应用故障诊断","应用漏洞扫描","代码安全审计","风险评估","等保测评","评估评价","定制测试"]},pe=function(){return["人力资源","服务器资源","专用设备"]},me=function(){var e=["可行性报告","测试方案","测试报告","缺陷报告","用例报告","其他"];return new a.a(function(t){t(e)})},he=function(){return o.a.get(s.a.GENERAL.GET_ALL_Filed)},fe=function(){return o.a.get(s.a.GENERAL.GET_ALL_ApplicationType)},ve=function(){return o.a.get(s.a.GENERAL.GET_ALL_TestType)},ge=function(){return o.a.get(s.a.GENERAL.GET_ALL_INSTITUTIONS)},_e=function(){return o.a.get(s.a.GENERAL.GET_ALL_AGENCIES)},ye=function(e,t){for(var n=0;n<re.a.provinces.length;n++)if(re.a.provinces[n].code==e)for(var i=0;i<re.a.provinces[n].cities.length;i++)if(re.a.provinces[n].cities[i].code==t)return{provinceCode:re.a.provinces[n].name,cityCode:re.a.provinces[n].cities[i].name}},je=function(e,t){for(var n=0;n<re.a.provinces.length;n++)if(re.a.provinces[n].name==e)for(var i=0;i<re.a.provinces[n].cities.length;i++)if(re.a.provinces[n].cities[i].name==t)return{provinceCode:re.a.provinces[n].code,cityCode:re.a.provinces[n].cities[i].code}},be=function(e,t){var n={fileUrl:"http://mooctest-crowd-service.oss-cn-hangzhou.aliyuncs.com/Others/%E9%A1%B9%E7%9B%AE%E6%95%B0%E6%8D%AE%E4%B8%8A%E6%8A%A5%E6%A8%A1%E6%9D%BF.xlsx"};new a.a(function(e){e(n)}).then(function(t){e(t)}).catch(function(e){t(e)})};Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e};var ke=function(e){return e.Format("yyyy-MM-dd hh:mm:ss")},Te=function(){var e={userNum:100,agencyNum:200,deviceNum:345,projectNum:23,taskNum:123};return new a.a(function(t){t(e)})};n.d(t,"c",function(){return Ce}),n.d(t,"d",function(){return b}),n.d(t,"n",function(){return h}),n.d(t,"m",function(){return f}),n.d(t,!1,function(){return u}),n.d(t,!1,function(){return j}),n.d(t,"v",function(){return r}),n.d(t,"B",function(){return c}),n.d(t,"E",function(){return l}),n.d(t,"N",function(){return T}),n.d(t,"O",function(){return I}),n.d(t,"P",function(){return k}),n.d(t,"R",function(){return m}),n.d(t,"S",function(){return p}),n.d(t,"T",function(){return d}),n.d(t,"u",function(){return v}),n.d(t,"t",function(){return g}),n.d(t,"s",function(){return _}),n.d(t,"h",function(){return y}),n.d(t,"a",function(){return x}),n.d(t,"b",function(){return w}),n.d(t,!1,function(){return C}),n.d(t,!1,function(){return E}),n.d(t,!1,function(){return S}),n.d(t,"f",function(){return D}),n.d(t,!1,function(){return O}),n.d(t,"F",function(){return P}),n.d(t,"H",function(){return L}),n.d(t,"L",function(){return R}),n.d(t,!1,function(){return A}),n.d(t,!1,function(){return U}),n.d(t,"e",function(){return q}),n.d(t,"g",function(){return G}),n.d(t,"C",function(){return M}),n.d(t,"G",function(){return V}),n.d(t,"I",function(){return z}),n.d(t,"M",function(){return $}),n.d(t,"Q",function(){return N}),n.d(t,"D",function(){return F}),n.d(t,!1,function(){return B}),n.d(t,!1,function(){return H}),n.d(t,!1,function(){return Q}),n.d(t,!1,function(){return X}),n.d(t,!1,function(){return Y}),n.d(t,!1,function(){return W}),n.d(t,!1,function(){return J}),n.d(t,!1,function(){return K}),n.d(t,!1,function(){return ee}),n.d(t,!1,function(){return Z}),n.d(t,!1,function(){return ie}),n.d(t,!1,function(){return te}),n.d(t,!1,function(){return ne}),n.d(t,"i",function(){return de}),n.d(t,"j",function(){return _e}),n.d(t,"k",function(){return pe}),n.d(t,"o",function(){return ge}),n.d(t,"p",function(){return fe}),n.d(t,"l",function(){return he}),n.d(t,"q",function(){return me}),n.d(t,"r",function(){return ve}),n.d(t,"x",function(){return be}),n.d(t,"z",function(){return je}),n.d(t,"A",function(){return ye}),n.d(t,!1,function(){return ue}),n.d(t,"J",function(){return le}),n.d(t,"K",function(){return ce}),n.d(t,"w",function(){return ke}),n.d(t,"y",function(){return Te});var Ce={name:"普通用户",image:"http://www.mooctest.net/assets/img/mooctest.png"}},x9fL:function(e,t,n){e.exports=n.p+"static/img/home_ban1.365aa94.jpg"}},["NHnr"]);