1 line
89 KiB
JavaScript
1 line
89 KiB
JavaScript
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-856e0c5e"],{"0892":function(e,t,i){},"179f":function(e,t,i){"use strict";i.r(t);var s=(i("4160"),i("a15b"),i("b0c0"),i("ac1f"),i("1276"),i("159b"),i("c1df")),n=i.n(s),a=(i("7db0"),i("c740"),i("a630"),i("a434"),i("d3b7"),i("6062"),i("3ca3"),i("ddb0"),i("9778")),r=i("6e94"),l={data:function(){return{styleType:1,addForm:{engineeringName:"",engineeringSurvey:"",engineeringTypeId:"",engineeringTypeName:"",personLiable:"",typeDescribeId:[],planTime:"",buildTime:"",constructionLocation:"",responsibilityCompany:[],securityConstructionSchemeType:!1,specialConstructionSchemeType:!1,technicalDisclosureType:!1,typeDescribeList:[]},pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},options2:[],checkList:[],formLabelWidth:"136px",isDisabled:!1,value:!1,headquartersSn:"",typeOptions:[],contentList:[],describeOptions:[],enterpriseTypeId:1,pageSize:1e3,pageNo:1,projectSn:"",options:[],props:{multiple:!0},props2:{multiple:!0,value:"id",label:"describeName"},cooperatorList:[],fileList:[],fileList2:[],fileList3:[],fileUrl:"",company:""}},created:function(){this.company=COMPANY,this.headquartersSn=JSON.parse(window.sessionStorage.getItem("vuex")).userInfo.headquartersSn,this.projectSn=JSON.parse(window.sessionStorage.getItem("vuex")).userInfo.sn,this.styleType=this.styleType=this.$store.state.userInfo.styleType,this.fileUrl=this.$store.state.FILEURL,this.queryTypeList(),this.getCooperatorList()},methods:{queryTypeList:function(){var e=this;Object(a.G)({sn:this.headquartersSn}).then((function(t){200==t.code&&t.result&&(e.typeOptions=t.result)}))},queryDescribe:function(e){var t=this;Object(a.M)({typeId:e}).then((function(e){200==e.code&&e.result&&(t.describeOptions=e.result)}))},changeType:function(e){var t=this;this.typeOptions.forEach((function(i){i.id==e&&(t.addForm.engineeringTypeName=i.typeName)})),this.addForm.typeDescribeId=[],this.contentList=[],this.typeOptions.forEach((function(i){i.id==e&&t.queryDescribe(e)}))},changeDescribe:function(e){var t=this;this.addForm.typeDescribeList=[],e.join(",").split(",").forEach((function(e){var i=e;t.describeOptions.forEach((function(e){if(e.id==i){var s={id:e.id,describeName:e.describeName};t.addForm.typeDescribeList.push(s)}}))})),Object(a.B)({describeId:e.join(",")}).then((function(e){200==e.code&&e.result&&(t.contentList=e.result)}))},allChildrenCheck:function(e){var t=this;e.allCheck?(e.children.forEach((function(e){t.checkList.push(e.id)})),this.checkList=Array.from(new Set(this.checkList))):e.children.forEach((function(e){var i=e.id;t.checkList.forEach((function(e,s){e==i&&t.checkList.splice(s,1)}))}))},checkChidren:function(e){var t=this,i=[],s=[],n=!0;e.children.forEach((function(e){i.push(e.id)})),i.forEach((function(e){var i=e;-1!=t.checkList.findIndex((function(e,t){return e==i}))?s.push(!0):s.push(!1)})),s.forEach((function(e){e||(n=!1)})),e.allCheck=n},getCooperatorList:function(){var e=this,t={projectSn:this.projectSn,pageNo:this.pageNo,pageSize:this.pageSize,enterpriseTypeId:this.enterpriseTypeId,enterpriseName:""};Object(r.e)(t).then((function(t){200==t.code&&t.result.records.length>0&&(e.cooperatorList=JSON.parse(JSON.stringify(t.result.records)),e.cooperatorList.forEach((function(e){e.value=e.enterpriseName,e.label=e.enterpriseName})),e.options=e.cooperatorList)}))},handleUploadSuccess:function(e,t){this.fileList.push({name:t.name,url:t.response.data[0].imageUrl,iconType:this.getFileType(t.name)})},handleUploadSuccess2:function(e,t){this.fileList2.push({name:t.name,url:t.response.data[0].imageUrl,iconType:this.getFileType(t.name)})},handleUploadSuccess3:function(e,t){this.fileList3.push({name:t.name,url:t.response.data[0].imageUrl,iconType:this.getFileType(t.name)})},downLoadFile:function(e){window.open(this.fileUrl+e)},removeFile:function(e,t){var i=this;this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){1==t?i.fileList.splice(e,1):2==t?i.fileList2.splice(e,1):3==t&&i.fileList3.splic
|