(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-550c5be4"],{"5a0c":function(t,e,i){!function(e,i){t.exports=i()}(0,(function(){"use strict";var t="millisecond",e="second",i="minute",a="hour",n="day",r="week",s="month",o="quarter",l="year",c="date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,d=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p=function(t,e,i){var a=String(t);return!a||a.length>=e?t:""+Array(e+1-a.length).join(i)+t},f={s:p,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),a=Math.floor(i/60),n=i%60;return(e<=0?"+":"-")+p(a,2,"0")+":"+p(n,2,"0")},m:function t(e,i){if(e.date()3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4?arguments[4]:void 0,r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return{id:e,label:i,topNodeId:n,nodeType:t,isLeaf:r,disabled:s,data:a}}var w={elNew:"#app",data:function(){return{radio:"1",User_role:"",activeName:"1",activeName1:"1",currentPain:"1",currentCompany:{},editButtonGroup:"1",treeNav:"1",isShowProInfo:!0,isShowModelList:!1,isModelMatrix:!1,rightTitle:"",value1:"0",proItem:"",el_formLabelcolor:"textlabelgray",listCompanyData:[],companyRules:{companyName:[{required:!0,message:"请输入企业简称",trigger:["blur","change"]}],compAllName:[{required:!0,message:"请输入企业全称",trigger:["blur","change"]}],proviceName:[{required:!0,message:"请选择所属省份",trigger:"change"}],industryName:[{required:!0,message:"请选择所属行业",trigger:"change"}],telphone:[{required:!0,message:"请输入单位电话",trigger:["blur","change"]}],cnName:[{required:!0,message:"请输入法人",trigger:["blur","change"]}],sex:[{required:!0,message:"请选择性别",trigger:"change"}],phone:[{required:!0,message:"请输入手机号",trigger:["blur","change"]}],email:[{required:!0,message:"请输入邮箱",trigger:["blur","change"]}],ipfsApi:[{max:64,required:!0,message:"请输入64个字数之内的任意字符串",trigger:["blur","change"]}],ipfsBootstrap:[{max:1024,required:!0,message:"请输入1024个字数之内的任意字符串",trigger:["blur","change"]}]},industryOptions:[{value:"建筑行业",label:"建筑行业"},{value:"施工行业",label:"施工行业"},{value:"绿色建筑行业",label:"绿色建筑行业"}],proviceOptions:[],boolEdit:!1,roles:[{value:"管理、编辑、下载",label:"角色1"},{value:"编辑、下载",label:"角色2"},{value:"只读",label:"角色3"}],form:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""},UserInfoData:[{Userhead:"",UserName:"LiLei",UserJob:"设计师",UserPart:"设计部",UserTel:"18298355447",UserEmail:"18298355447@163.com"}],companyAppData:[{AppName:"应用名称",AppUserNumber:"10",AppUsedFrequency:"1/天"},{AppName:"应用名称",AppUserNumber:"10",AppUsedFrequency:"1/天"}],filterTreeText:"",overallsituation:{},data:[{id:1,label:"项目与模板概况",className:"el-icon-models"},{id:2,label:"项目名称",className:"el-icon-floder"},{id:3,label:"项目名称",className:"el-icon-floder"},{id:4,label:"项目名称",className:"el-icon-floder"}],defaultProps:{children:"children",label:"label"},listWorkFolderTable:[{flagIcon:1,nodeName:"工作文件夹名称"},{flagIcon:2,nodeName:"工作文件夹名称"}],CompanyInfo:"",initCompanyRecord:{}}},mounted:function(){this.loadSysinfo(),this.listCompany(),this.loadIndustury(),this.loadProvinces()},computed:{selectedIndustyId:function(){return this.currentCompany.industryID},selectProvinceId:function(){return this.currentCompany.proviceID}},methods:{loadProvinces:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("provice/queryAllProvice");case 2:i=e.sent,t.proviceOptions=(i.Data||[]).map((function(t){return{id:t.Id,label:t.ProviceName}}));case 4:case"end":return e.stop()}}),e)})))()},renderContent:function(t,e){var i=e.node,a=e.data;e.store;return t("span",{class:"treeItembox"},[t("i",{class:a.className},[" "])," ",t("span",[" ",i.label," "])," ",t("em",{class:"fr Icon_EC mark_disable mt-5 mr-5"},[" "])," "])},handleNodeClick:function(t){},loadCompanyInfo:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e,i.next=3,f(t);case 3:a=i.sent,e.currentCompany=a,e.initCompanyRecord=Object(r["a"])({},a);case 6:case"end":return i.stop()}}),i)})))()},loadSysinfo:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var i,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t,e.next=3,t.$fetch.post("api/cms/v1/company/queryGeneralOverview");case 3:a=e.sent,n=a.data.Data||{},i.overallsituation={CompanyCount:n.companyNum,UserCount:n.userNum};case 6:case"end":return e.stop()}}),e)})))()},listCompany:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t,e.next=3,u();case 3:i=e.sent,{label:"总体概况",id:"default",data:{}},t.listCompanyData=[{label:"总体概况",id:"default",data:{}}].concat(i);case 6:case"end":return e.stop()}}),e)})))()},nodeClick:function(t){this.boolEdit=!1,"company"===t.nodeType?(this.currentCompany=t.data,this.rightTitle=t.label,this.currentPain=2,this.editButtonGroup=1,this.loadCompanyInfo(t.id)):this.currentPain=1},loadIndustury:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t,e.next=3,t.$fetchApi("industry/queryAllIndustry");case 3:i=e.sent,a=(i.Data||[]).map((function(t){return{industryID:t.Id,name:t.Name}})),t.industryOptions=a;case 6:case"end":return e.stop()}}),e)})))()},updateSave:function(){var t=this;this.$refs["form"].validate(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(i){var a,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log("valid",i),i){e.next=3;break}return e.abrupt("return");case 3:return a=t,t.currentCompany.modifyUserID=sessionStorage.userId,e.next=7,h(t.currentCompany);case 7:if(n=e.sent,s=0===n.Code,s){e.next=12;break}return t.$notify({message:n.Msg,type:["warning"]}),e.abrupt("return");case 12:a.$notify({message:"企业“".concat(t.currentCompany.companyName,"”已完成修改。"),type:["success"],duration:2500}),a.listCompany(),t.initCompanyRecord=Object(r["a"])({},t.currentCompany),t.el_formLabelcolor="textlabelgray",t.editButtonGroup=1,t.boolEdit=!1,t.rightTitle=t.currentCompany.companyName;case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},backMain:function(){this.currentPain=1},backUserComInfo:function(){this.currentPain=2},editCompanyClick:function(){this.el_formLabelcolor="textlabelblock",this.rightTitle="编辑企业:"+this.currentCompany.companyName,this.editButtonGroup=2,this.boolEdit=!0},disableCompanyClick:function(t){var e=this,i=this,a="",n="warning";0==t?a="启用":(a="禁用",n="error"),this.$confirm("".concat(a,"的企业将").concat("禁用"==a?"无法":"有权","访问LOCKING, 确定").concat(a,"企业“").concat(this.currentCompany.companyName,"”吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",type:n}).then(Object(s["a"])(regeneratorRuntime.mark((function n(){var r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.currentCompany.modifyUserID=sessionStorage.userId,e.currentCompany.disable=t,n.next=4,x(e.currentCompany.companyID,t);case 4:if(r=n.sent,s=0===r.Code,s){n.next=9;break}return i.$notify({type:"error",message:r.Msg,offset:100,duration:5e3}),n.abrupt("return");case 9:i.$notify({message:"企业“".concat(e.currentCompany.companyName,"”已").concat(a,"。"),type:["success"],duration:2500});case 10:case"end":return n.stop()}}),n)})))).catch((function(){}))},deleteCompanyClick:function(){var t=this,e=this;this.$confirm("确定删除企业“".concat(this.currentCompany.companyName,"”吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(s["a"])(regeneratorRuntime.mark((function i(){var a,n,r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=t.currentCompany.companyID,i.next=3,t.$fetchApi("company/deleteCompanyById",{id:a});case 3:n=i.sent,r=0===n.Code,r?(e.currentPain=1,e.$notify({message:"企业“".concat(t.currentCompany.companyName,"”已删除。"),type:["success"],duration:2500}),e.listCompany()):e.$notify({type:"error",message:n.Data,offset:100,duration:5e3});case 6:case"end":return i.stop()}}),i)})))).catch((function(){}))},updateCancel:function(){this.$refs["form"].resetFields(),this.currentCompany=Object(r["a"])({},this.initCompanyRecord),this.boolEdit=!1,this.editButtonGroup=1,this.rightTitle=this.currentCompany.companyName,this.el_formLabelcolor="textlabelgray"},formatTooltip:function(t){return t/100},showIndustryDetai:function(){this.boolEdit=!1,this.el_formLabelcolor="textlabelgray",this.currentPain=2},limitManage:function(){this.currentPain=3},addCompany:function(){3!=this.editButtonGroup&&(this.currentPain=2,this.editButtonGroup=3,this.boolEdit=!0,this.currentCompany={},this.rightTitle="新增企业",this.el_formLabelcolor="textlabelblock")},addCancel:function(){this.currentPain=1,this.editButtonGroup=2,this.boolEdit=!1,this.el_formLabelcolor="textlabelgray"},addSave:function(){var t=this;this.$refs["form"].validate(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(i){var a,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i){e.next=2;break}return e.abrupt("return");case 2:return a=t,t.currentCompany.createUserID=sessionStorage.userId,t.currentCompany.modifyUserID=sessionStorage.userId,e.next=7,y(t.currentCompany);case 7:if(n=e.sent,r=0===n.Code,r){e.next=12;break}return a.$notify({type:"error",message:n.Msg,offset:100,duration:5e3}),e.abrupt("return");case 12:a.$notify({message:"企业“".concat(t.currentCompany.companyName,"”已完成添加。"),type:["success"],duration:2500}),t.currentPain=1,t.el_formLabelcolor="textlabelgray",t.boolEdit=!1,t.listCompany();case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},filterTreeNode:function(t,e){return!t||-1!==e.label.indexOf(t)},scanProModel:function(){this.currentPain="4",this.treeNav="1"},initProInfo:function(){this.isShowProInfo=!1,this.isShowModelList=!1,this.isModelMatrix=!1},goShowModelList:function(){this.initProInfo(),this.isShowModelList=!0,this.treeNav="2"},goModelMatrix:function(){this.initProInfo(),this.isModelMatrix=!0,this.treeNav="2"},backcomInfo:function(){this.initProInfo(),this.isShowProInfo=!0,this.treeNav="1"},backcomInfodesc:function(){this.backcomInfo(),this.currentPain="2"}},watch:{filterTreeText:function(t){this.$refs.tree.filter(t)},selectedIndustyId:function(t){var e=this,i=this.industryOptions.find((function(t){return t.industryID===e.currentCompany.industryID}));i&&(this.currentCompany.industryName=i.name)},selectProvinceId:function(){var t=this,e=this.proviceOptions.find((function(e){return e.id===t.currentCompany.proviceID}));e&&(this.currentCompany.proviceName=e.label)}}},$=w,E=(i("ad3d"),i("2877")),B=Object(E["a"])($,a,n,!1,null,"dc6ae7f6",null);e["default"]=B.exports},fd87:function(t,e,i){}}]); //# sourceMappingURL=chunk-550c5be4.ce4296dd.js.map