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}
{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")])],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:"",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;a0&&(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