diff --git a/index.html b/index.html index eb70363f..acbac5e5 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -LOCKING | 云建筑
\ No newline at end of file +LOCKING | 云建筑
\ No newline at end of file diff --git a/static/css/chunk-43a9a3bd.99769e2a.css b/static/css/chunk-60e599c5.3a63cf19.css similarity index 91% rename from static/css/chunk-43a9a3bd.99769e2a.css rename to static/css/chunk-60e599c5.3a63cf19.css index 47ce9697..f45e4815 100644 --- a/static/css/chunk-43a9a3bd.99769e2a.css +++ b/static/css/chunk-60e599c5.3a63cf19.css @@ -1 +1 @@ -.rt-2[data-v-a9676b70]{top:2px!important}.rt-0[data-v-a9676b70]{top:0!important}.rt-4[data-v-a9676b70]{top:4px!important}.empty[data-v-a9676b70]{background-color:#eaeaea}.people-item[data-v-a9676b70]{display:flex;position:relative;z-index:9;box-sizing:border-box;text-align:center;width:64px;padding:0 0 8px 0}.people-item .people-wrap[data-v-a9676b70]{position:relative;top:4px;border-radius:50%;margin:0 auto;width:100%}.people-item .people[data-v-a9676b70]{border-radius:50%}.active-manager-mark .people-name[data-v-a9676b70]{top:-2px}.people-item .el-icon-plus[data-v-a9676b70]{display:block;text-align:center;height:48px;line-height:48px;font-size:24px;color:#999b9d}.proj-avatarface[data-v-a9676b70]{vertical-align:bottom;width:48px;height:48px;border-radius:50%;overflow:hidden;background-color:#f6f6f6}.people-name[data-v-a9676b70]{position:relative;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:16px;line-height:16px;color:#111315;font-size:12px;text-align:center;font-family:PingFangSC-Regular;margin:8px auto 0}.add-btn[data-v-a9676b70]{cursor:pointer;margin:0 4px}.stand-place[data-v-a16fdaa0]{width:64px;height:72px}.add_nest[data-v-a16fdaa0]{position:absolute;right:10px;bottom:-6px;z-index:9;width:64px;height:80px;box-sizing:border-box}.add_nest .add_nest_box[data-v-a16fdaa0]{cursor:pointer;width:64px;height:64px;box-sizing:border-box;border:1px solid #7850ff;border-radius:8px}.add_nest .add_nest_box .el-icon-plus[data-v-a16fdaa0]{font-size:24px;color:#7850ff}.add_nest .add_nest_box p[data-v-a16fdaa0]{color:#7850ff;font-size:14px;text-align:center;margin-top:10px}.opacity-5[data-v-a16fdaa0]{opacity:.5}.user-perm-text[data-v-a16fdaa0]{margin:0 0 0 8px}.notclick[data-v-a16fdaa0]{cursor:not-allowed!important;opacity:.5}.notclick .avtarface[data-v-a16fdaa0]{cursor:not-allowed}.allopacity[data-v-a16fdaa0]{opacity:1}.noManagerText[data-v-a16fdaa0]{font-size:0}.active-folder .people-item[data-v-a16fdaa0]{cursor:pointer}.folder-name[data-v-a16fdaa0]{height:20px;line-height:20px;margin:0 0 6px 12px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.adjust-position[data-v-a16fdaa0]{position:relative;left:4px}.folder-wrap[data-v-a16fdaa0]{position:relative;padding:6px 0 0 0;margin:12px 0 0 0;border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)}.edit-btn[data-v-a16fdaa0]{position:absolute;top:4px;right:4px;width:64px;height:24px;line-height:24px;font-size:14px;text-align:center;font-family:PingFangSC-Regular;color:#979797;border-radius:4px;background-color:#fff;border:.5px solid #979797;cursor:pointer}.adjust-margin[data-v-a16fdaa0]{margin-bottom:0}.mb-6[data-v-a16fdaa0]{margin:0 0 6px 0}.hori-line[data-v-58e87d7b]{border:.5px solid #eaeaea;margin:13px 0 0 0}.member-list[data-v-58e87d7b]{width:100%;min-width:375px;max-width:375px;background-color:#fcfcfc;border-top-left-radius:8px;border-top-right-radius:8px;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.member-list .top-title[data-v-58e87d7b]{height:50px;line-height:50px;padding:0 0 0 24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.member-list .search-bar[data-v-58e87d7b]{position:relative;margin:6px 15px 7px;padding:0 5px}.member-list .search-bar .search-icon[data-v-58e87d7b]{position:absolute;left:10px;width:22px;height:22px;background:url(/static/img/搜索.svg) 50%/100%;margin:4px 0}.member-list .search-bar .search-input[data-v-58e87d7b]{box-sizing:border-box;outline:none;width:100%;height:30px;padding:0 0 0 30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;cursor:not-allowed}.member-list .content-wrap[data-v-58e87d7b]{padding:0 0 0 8px;overflow-y:scroll;height:calc(100vh - 177px)}.member-list .content-wrap .company-title[data-v-58e87d7b]{margin:12px 0 10px 16px;height:22px;line-height:22px;color:#32323c;font-size:18px;text-align:left;font-family:PingFangSC-Regular}.member-list .content-wrap .dept-name[data-v-58e87d7b]{margin:0 0 0 16px;flex:1}.member-list .people-wrap[data-v-58e87d7b]{padding:0 0 40px 0}.search-input[data-v-58e87d7b]::-webkit-input-placeholder{font-size:14px;font-family:Courier New,Courier,monospace;color:rgba(0,0,0,.56);height:20px!important;line-height:20px!important}.user-info-item[data-v-58e87d7b]:hover{background-color:rgba(50,50,60,.1)}.user-info-item[data-v-58e87d7b]{display:flex;padding:0 16px;height:44px;line-height:44px;align-items:center;cursor:pointer;border-radius:8px}.user-info-item .avatar-img[data-v-58e87d7b]{width:32px;height:32px;border-radius:50%;margin:0 13px 0 0}.user-info-item .user-info-name[data-v-58e87d7b]{flex:1;font-size:14px;font-family:PingFangSC-Regular}.member-list .el-collapse-item__wrap{border-bottom:none!important}.dept-select-all-btn .el-checkbox__label{padding:0 0 0 6px!important;margin:0 8px 0 0}.member-list .el-collapse{border:none!important}.member-list .el-collapse-item__arrow{position:relative;left:2px}.el-checkbox.dept-select-all-btn{position:absolute;right:15px}.member-list .el-collapse-item__header{height:44px!important;line-height:44px!important;border:none!important;position:relative}.user-info-item .el-checkbox__inner{width:20px;height:20px;color:#cbcbce}.member-list .el-collapse-item__header{margin:0 4px 0 0!important}.check-all-wrap{display:flex;align-items:center;margin:0 10px 0 0}.check-all-wrap .checkbox{width:10px;height:10px;margin:0 6px 0 0}.checkbox{float:right;width:20px;height:20px;border:1px solid #cbcbce;border-radius:50%}.checkbox.checked{background-color:#7850ff}.member-list .app-header-content{background-color:#f8f8f8}.empty-people-tips{font-size:16px;text-align:center;margin:20px 0}.slot_btn[data-v-37d14612]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.set_position[data-v-37d14612]{position:relative;border-top-right-radius:8px;border-top-left-radius:8px;box-shadow:none}.template_info_title[data-v-37d14612]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf}.template_select_content[data-v-37d14612]{height:calc(100vh - 100px);overflow-y:scroll}.template_select_content .template_info[data-v-37d14612]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf;transition:all .3s;cursor:pointer}.template_select_content .template_info .template_info_name[data-v-37d14612]{margin-left:38px;font-size:14px}.template_select_content .template_info .check_box[data-v-37d14612]{display:inline-block;width:28px;height:28px;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);background-color:#cbcbce;box-shadow:undefined,inset 0 1px 3px 0 rgba(0,0,0,.15)}.template_select_content .template_info .check_box.checked[data-v-37d14612]{background-color:#7850ff;text-align:center;line-height:28px;color:#fff}.template_select_content .template_info .check_box.checked .el-icon-check[data-v-37d14612]{display:inline-block}.template_select_content .template_info .check_box .el-icon-check[data-v-37d14612]{display:none}.template_info[data-v-37d14612]:hover{background-color:rgba(50,50,60,.15)}.edit-template-btn[data-v-37d14612],.to-distwork-btn[data-v-37d14612]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.template_improve .summary-wrap[data-v-37d14612]{height:calc(100vh - 116px);overflow:scroll;padding:0 24px;margin:16px 0 0 0;background-color:#fcfcfc}.template_improve .summary-wrap .prop-value-input[data-v-37d14612]{width:80%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.item[data-v-37d14612]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.item .item-title[data-v-37d14612]{color:#62492f;width:24%;text-align:right}.item .item-value[data-v-37d14612]{margin:0 0 0 12px}.item .item-value[data-v-37d14612]:not(.cover-img-wrap){flex:1}.set-header-position[data-v-37d14612]{position:relative!important;color:#32323c!important;z-index:99}.adjust-title-position[data-v-37d14612]{position:relative;top:11px}.proj_manage[data-v-bbfdfbe8]{width:100%;height:100%;padding:0 64px;box-sizing:border-box}.proj_manage .proj_manage_content[data-v-bbfdfbe8]{width:100%;height:100%;position:relative}.projModule[data-v-bbfdfbe8]{width:50%;min-width:660px;height:100%;right:0;position:absolute;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.finish-edit-btn[data-v-bbfdfbe8]{position:relative;left:-24px;cursor:pointer;background-color:#7850ff;color:#fff;border-radius:8px;height:32px;line-height:32px;text-align:center;font-size:14px;padding:0 10px;margin:9px 0}.question[data-v-bbfdfbe8]{display:flex;align-items:center;position:relative;left:24px;width:100%;color:#4b4d4f;font-size:13px;text-align:left;font-family:PingFangSC-Regular}.question .ques-icon[data-v-bbfdfbe8]{display:inline-block;width:20px;height:20px;background:url(/static/img/了解工作负责人.svg);cursor:pointer}.question .ques-text[data-v-bbfdfbe8]{margin:0 0 0 8px}.manager-tips[data-v-bbfdfbe8]{position:absolute;top:8px;left:24px;right:24px;z-index:99;text-align:center;padding:0 24px;height:84px;border-radius:8px;border:1px solid #449aff;background-color:#fcfcfc}.manager-tips .close-icon[data-v-bbfdfbe8]{position:absolute;right:5px;top:5px;width:20px;height:20px;background:url(/static/img/了解负责人关闭.svg);cursor:pointer}.manager-tips .tips-text[data-v-bbfdfbe8]{margin:24px 0 0 0;color:#32323c;font-size:14px;font-family:PingFangSC-Regular}.content-wrap[data-v-bbfdfbe8]{display:flex;align-items:flex-start;justify-content:center;padding:0 64px;background-color:#ebebeb}.content-wrap .graph-left-part[data-v-bbfdfbe8],.content-wrap .right-part[data-v-bbfdfbe8]{width:50%;min-width:480px;max-width:660px}.right-part[data-v-bbfdfbe8]{box-sizing:border-box;border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden;background-color:#fcfcfc;transition:width .5s ease;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.right-part .proj-desc[data-v-bbfdfbe8]{background-color:#fcfcfc;min-height:calc(100vh - 96px)}.right-part .proj-desc .title[data-v-bbfdfbe8]{position:relative;left:-24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.right-part .proj-desc .proj-desc-wrap[data-v-bbfdfbe8]{padding:0 24px;height:calc(100vh - 126px);overflow:scroll;background-color:#f8f8f8}.right-part .proj-desc .proj-desc-wrap .cover-container[data-v-bbfdfbe8]{height:226px;margin:0 0 32px 0;border-radius:8px}.right-part .proj-desc .proj-desc-wrap .cover-container .cover-img-wrap[data-v-bbfdfbe8]{position:relative;width:293px;height:226px;overflow:hidden;border-radius:8px;box-shadow:0 7px 16px 0 rgba(0,0,0,.2)}.right-part .proj-desc .proj-desc-wrap .cover-container .cover-img-wrap .cover-img[data-v-bbfdfbe8]{position:absolute;top:50%;left:50%;height:100%;border-radius:8px;transform:translate(-50%,-50%)}.right-part .proj-desc .proj-desc-wrap .cover-container .edit-cover-btn[data-v-bbfdfbe8]{position:absolute;left:12px;bottom:12px;width:64px;height:28px;line-height:28px;border-radius:4px;background-color:#fff;border:.5px solid #979797;color:#32323c;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.right-part .proj-desc .proj-desc-wrap .proj-main-template+.item-value[data-v-bbfdfbe8]{position:relative;top:-2.5px;color:#32323c;font-size:18px}.right-part .item[data-v-bbfdfbe8]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.right-part .item .item-title[data-v-bbfdfbe8]{color:#62492f;width:24%;text-align:right}.right-part .item .item-value[data-v-bbfdfbe8]{margin:0 0 0 12px}.right-part .item .item-value[data-v-bbfdfbe8]:not(.cover-img-wrap){flex:1}.edit-template-btn[data-v-bbfdfbe8],.to-distwork-btn[data-v-bbfdfbe8]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.header-bottom-shadow[data-v-bbfdfbe8]:after{content:"";display:block;width:100%;height:30px;background:linear-gradient(rgba(0,0,0,.06),transparent)}.adjust-title-position[data-v-bbfdfbe8]{position:relative;top:11px}.distwork-page[data-v-bbfdfbe8]{position:relative}.right-part .part-wrap[data-v-bbfdfbe8]{padding:0 4px 0 12px;height:calc(100vh - 126px);overflow-y:scroll;background-color:#f8f8f8}.right-part .part-wrap .proj-manager-row[data-v-bbfdfbe8]{margin:0 0 8px 0}.right-part .part-wrap .only-manager-see[data-v-bbfdfbe8]:hover{border-radius:8px;background-color:rgba(50,50,60,.1)}.right-part .part-wrap .row-title[data-v-bbfdfbe8]{padding:6px 0 0 0;margin:10px 0 6px 12px;height:20px;line-height:20px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.template-summary[data-v-bbfdfbe8]{background-color:#f8f8f8}.template-summary .summary-wrap[data-v-bbfdfbe8]{height:calc(100vh - 142px);overflow:scroll;padding:0 24px;margin:16px 0 0 0;background-color:#f8f8f8}.template-summary .summary-wrap .prop-value-input[data-v-bbfdfbe8]{width:100%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.set-right-part-width[data-v-bbfdfbe8]{min-width:300px;width:63.768%!important;margin-right:10px}.set-personnel-list-width[data-v-bbfdfbe8]{min-width:375px;max-width:375px;width:36.231%!important;transition:width 2.5s ease}.set-header-position[data-v-bbfdfbe8]{position:relative!important;color:#32323c!important;z-index:99}.template-detail-btn[data-v-bbfdfbe8]{height:40px;line-height:40px;border-radius:8px;color:#32323c;background-color:#fff;border:.5px solid #979797;text-align:center;margin:15px 12px 8px;cursor:pointer}.proj-detail .app-header-center{font-size:20px}.proj-summary .back_title{color:#0c0d10;font-size:15px;font-family:PingFangSC-Regular}.proj-detail .right-part .app-header-back-btn{background:url(/static/img/yiyunicon.png) no-repeat -28px -84px!important}.plain-folder-list{padding:0 0 28px 0}.right-part .app-header-content{background-color:#f8f8f8}.manager-folder-wrap{border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)} \ No newline at end of file +.rt-2[data-v-a9676b70]{top:2px!important}.rt-0[data-v-a9676b70]{top:0!important}.rt-4[data-v-a9676b70]{top:4px!important}.empty[data-v-a9676b70]{background-color:#eaeaea}.people-item[data-v-a9676b70]{display:flex;position:relative;z-index:9;box-sizing:border-box;text-align:center;width:64px;padding:0 0 8px 0}.people-item .people-wrap[data-v-a9676b70]{position:relative;top:4px;border-radius:50%;margin:0 auto;width:100%}.people-item .people[data-v-a9676b70]{border-radius:50%}.active-manager-mark .people-name[data-v-a9676b70]{top:-2px}.people-item .el-icon-plus[data-v-a9676b70]{display:block;text-align:center;height:48px;line-height:48px;font-size:24px;color:#999b9d}.proj-avatarface[data-v-a9676b70]{vertical-align:bottom;width:48px;height:48px;border-radius:50%;overflow:hidden;background-color:#f6f6f6}.people-name[data-v-a9676b70]{position:relative;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:16px;line-height:16px;color:#111315;font-size:12px;text-align:center;font-family:PingFangSC-Regular;margin:8px auto 0}.add-btn[data-v-a9676b70]{cursor:pointer;margin:0 4px}.stand-place[data-v-40f58de2]{width:64px;height:72px}.add_nest[data-v-40f58de2]{position:absolute;right:10px;bottom:-6px;z-index:9;width:64px;height:80px;box-sizing:border-box}.add_nest .add_nest_box[data-v-40f58de2]{cursor:pointer;width:64px;height:64px;box-sizing:border-box;border:1px solid #7850ff;border-radius:8px}.add_nest .add_nest_box .el-icon-plus[data-v-40f58de2]{font-size:24px;color:#7850ff}.add_nest .add_nest_box p[data-v-40f58de2]{color:#7850ff;font-size:14px;text-align:center;margin-top:10px}.opacity-5[data-v-40f58de2]{opacity:.5}.user-perm-text[data-v-40f58de2]{margin:0 0 0 8px}.notclick[data-v-40f58de2]{cursor:not-allowed!important;opacity:.5}.notclick .avtarface[data-v-40f58de2]{cursor:not-allowed}.allopacity[data-v-40f58de2]{opacity:1}.noManagerText[data-v-40f58de2]{font-size:0}.active-folder .people-item[data-v-40f58de2]{cursor:pointer}.folder-name[data-v-40f58de2]{height:20px;line-height:20px;margin:0 0 6px 12px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.adjust-position[data-v-40f58de2]{position:relative;left:4px}.folder-wrap[data-v-40f58de2]{position:relative;padding:6px 0 0 0;margin:12px 0 0 0;border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)}.edit-btn[data-v-40f58de2]{position:absolute;top:4px;right:4px;width:64px;height:24px;line-height:24px;font-size:14px;text-align:center;font-family:PingFangSC-Regular;color:#979797;border-radius:4px;background-color:#fff;border:.5px solid #979797;cursor:pointer}.adjust-margin[data-v-40f58de2]{margin-bottom:0}.mb-6[data-v-40f58de2]{margin:0 0 6px 0}.hori-line[data-v-58e87d7b]{border:.5px solid #eaeaea;margin:13px 0 0 0}.member-list[data-v-58e87d7b]{width:100%;min-width:375px;max-width:375px;background-color:#fcfcfc;border-top-left-radius:8px;border-top-right-radius:8px;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.member-list .top-title[data-v-58e87d7b]{height:50px;line-height:50px;padding:0 0 0 24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.member-list .search-bar[data-v-58e87d7b]{position:relative;margin:6px 15px 7px;padding:0 5px}.member-list .search-bar .search-icon[data-v-58e87d7b]{position:absolute;left:10px;width:22px;height:22px;background:url(/static/img/搜索.svg) 50%/100%;margin:4px 0}.member-list .search-bar .search-input[data-v-58e87d7b]{box-sizing:border-box;outline:none;width:100%;height:30px;padding:0 0 0 30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;cursor:not-allowed}.member-list .content-wrap[data-v-58e87d7b]{padding:0 0 0 8px;overflow-y:scroll;height:calc(100vh - 177px)}.member-list .content-wrap .company-title[data-v-58e87d7b]{margin:12px 0 10px 16px;height:22px;line-height:22px;color:#32323c;font-size:18px;text-align:left;font-family:PingFangSC-Regular}.member-list .content-wrap .dept-name[data-v-58e87d7b]{margin:0 0 0 16px;flex:1}.member-list .people-wrap[data-v-58e87d7b]{padding:0 0 40px 0}.search-input[data-v-58e87d7b]::-webkit-input-placeholder{font-size:14px;font-family:Courier New,Courier,monospace;color:rgba(0,0,0,.56);height:20px!important;line-height:20px!important}.user-info-item[data-v-58e87d7b]:hover{background-color:rgba(50,50,60,.1)}.user-info-item[data-v-58e87d7b]{display:flex;padding:0 16px;height:44px;line-height:44px;align-items:center;cursor:pointer;border-radius:8px}.user-info-item .avatar-img[data-v-58e87d7b]{width:32px;height:32px;border-radius:50%;margin:0 13px 0 0}.user-info-item .user-info-name[data-v-58e87d7b]{flex:1;font-size:14px;font-family:PingFangSC-Regular}.member-list .el-collapse-item__wrap{border-bottom:none!important}.dept-select-all-btn .el-checkbox__label{padding:0 0 0 6px!important;margin:0 8px 0 0}.member-list .el-collapse{border:none!important}.member-list .el-collapse-item__arrow{position:relative;left:2px}.el-checkbox.dept-select-all-btn{position:absolute;right:15px}.member-list .el-collapse-item__header{height:44px!important;line-height:44px!important;border:none!important;position:relative}.user-info-item .el-checkbox__inner{width:20px;height:20px;color:#cbcbce}.member-list .el-collapse-item__header{margin:0 4px 0 0!important}.check-all-wrap{display:flex;align-items:center;margin:0 10px 0 0}.check-all-wrap .checkbox{width:10px;height:10px;margin:0 6px 0 0}.checkbox{float:right;width:20px;height:20px;border:1px solid #cbcbce;border-radius:50%}.checkbox.checked{background-color:#7850ff}.member-list .app-header-content{background-color:#f8f8f8}.empty-people-tips{font-size:16px;text-align:center;margin:20px 0}.slot_btn[data-v-37d14612]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.set_position[data-v-37d14612]{position:relative;border-top-right-radius:8px;border-top-left-radius:8px;box-shadow:none}.template_info_title[data-v-37d14612]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf}.template_select_content[data-v-37d14612]{height:calc(100vh - 100px);overflow-y:scroll}.template_select_content .template_info[data-v-37d14612]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf;transition:all .3s;cursor:pointer}.template_select_content .template_info .template_info_name[data-v-37d14612]{margin-left:38px;font-size:14px}.template_select_content .template_info .check_box[data-v-37d14612]{display:inline-block;width:28px;height:28px;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);background-color:#cbcbce;box-shadow:undefined,inset 0 1px 3px 0 rgba(0,0,0,.15)}.template_select_content .template_info .check_box.checked[data-v-37d14612]{background-color:#7850ff;text-align:center;line-height:28px;color:#fff}.template_select_content .template_info .check_box.checked .el-icon-check[data-v-37d14612]{display:inline-block}.template_select_content .template_info .check_box .el-icon-check[data-v-37d14612]{display:none}.template_info[data-v-37d14612]:hover{background-color:rgba(50,50,60,.15)}.edit-template-btn[data-v-37d14612],.to-distwork-btn[data-v-37d14612]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.template_improve .summary-wrap[data-v-37d14612]{height:calc(100vh - 116px);overflow:scroll;padding:0 24px;margin:16px 0 0 0;background-color:#fcfcfc}.template_improve .summary-wrap .prop-value-input[data-v-37d14612]{width:80%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.item[data-v-37d14612]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.item .item-title[data-v-37d14612]{color:#62492f;width:24%;text-align:right}.item .item-value[data-v-37d14612]{margin:0 0 0 12px}.item .item-value[data-v-37d14612]:not(.cover-img-wrap){flex:1}.set-header-position[data-v-37d14612]{position:relative!important;color:#32323c!important;z-index:99}.adjust-title-position[data-v-37d14612]{position:relative;top:11px}.proj_manage[data-v-bbfdfbe8]{width:100%;height:100%;padding:0 64px;box-sizing:border-box}.proj_manage .proj_manage_content[data-v-bbfdfbe8]{width:100%;height:100%;position:relative}.projModule[data-v-bbfdfbe8]{width:50%;min-width:660px;height:100%;right:0;position:absolute;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.finish-edit-btn[data-v-bbfdfbe8]{position:relative;left:-24px;cursor:pointer;background-color:#7850ff;color:#fff;border-radius:8px;height:32px;line-height:32px;text-align:center;font-size:14px;padding:0 10px;margin:9px 0}.question[data-v-bbfdfbe8]{display:flex;align-items:center;position:relative;left:24px;width:100%;color:#4b4d4f;font-size:13px;text-align:left;font-family:PingFangSC-Regular}.question .ques-icon[data-v-bbfdfbe8]{display:inline-block;width:20px;height:20px;background:url(/static/img/了解工作负责人.svg);cursor:pointer}.question .ques-text[data-v-bbfdfbe8]{margin:0 0 0 8px}.manager-tips[data-v-bbfdfbe8]{position:absolute;top:8px;left:24px;right:24px;z-index:99;text-align:center;padding:0 24px;height:84px;border-radius:8px;border:1px solid #449aff;background-color:#fcfcfc}.manager-tips .close-icon[data-v-bbfdfbe8]{position:absolute;right:5px;top:5px;width:20px;height:20px;background:url(/static/img/了解负责人关闭.svg);cursor:pointer}.manager-tips .tips-text[data-v-bbfdfbe8]{margin:24px 0 0 0;color:#32323c;font-size:14px;font-family:PingFangSC-Regular}.content-wrap[data-v-bbfdfbe8]{display:flex;align-items:flex-start;justify-content:center;padding:0 64px;background-color:#ebebeb}.content-wrap .graph-left-part[data-v-bbfdfbe8],.content-wrap .right-part[data-v-bbfdfbe8]{width:50%;min-width:480px;max-width:660px}.right-part[data-v-bbfdfbe8]{box-sizing:border-box;border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden;background-color:#fcfcfc;transition:width .5s ease;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.right-part .proj-desc[data-v-bbfdfbe8]{background-color:#fcfcfc;min-height:calc(100vh - 96px)}.right-part .proj-desc .title[data-v-bbfdfbe8]{position:relative;left:-24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.right-part .proj-desc .proj-desc-wrap[data-v-bbfdfbe8]{padding:0 24px;height:calc(100vh - 126px);overflow:scroll;background-color:#f8f8f8}.right-part .proj-desc .proj-desc-wrap .cover-container[data-v-bbfdfbe8]{height:226px;margin:0 0 32px 0;border-radius:8px}.right-part .proj-desc .proj-desc-wrap .cover-container .cover-img-wrap[data-v-bbfdfbe8]{position:relative;width:293px;height:226px;overflow:hidden;border-radius:8px;box-shadow:0 7px 16px 0 rgba(0,0,0,.2)}.right-part .proj-desc .proj-desc-wrap .cover-container .cover-img-wrap .cover-img[data-v-bbfdfbe8]{position:absolute;top:50%;left:50%;height:100%;border-radius:8px;transform:translate(-50%,-50%)}.right-part .proj-desc .proj-desc-wrap .cover-container .edit-cover-btn[data-v-bbfdfbe8]{position:absolute;left:12px;bottom:12px;width:64px;height:28px;line-height:28px;border-radius:4px;background-color:#fff;border:.5px solid #979797;color:#32323c;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.right-part .proj-desc .proj-desc-wrap .proj-main-template+.item-value[data-v-bbfdfbe8]{position:relative;top:-2.5px;color:#32323c;font-size:18px}.right-part .item[data-v-bbfdfbe8]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.right-part .item .item-title[data-v-bbfdfbe8]{color:#62492f;width:24%;text-align:right}.right-part .item .item-value[data-v-bbfdfbe8]{margin:0 0 0 12px}.right-part .item .item-value[data-v-bbfdfbe8]:not(.cover-img-wrap){flex:1}.edit-template-btn[data-v-bbfdfbe8],.to-distwork-btn[data-v-bbfdfbe8]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.header-bottom-shadow[data-v-bbfdfbe8]:after{content:"";display:block;width:100%;height:30px;background:linear-gradient(rgba(0,0,0,.06),transparent)}.adjust-title-position[data-v-bbfdfbe8]{position:relative;top:11px}.distwork-page[data-v-bbfdfbe8]{position:relative}.right-part .part-wrap[data-v-bbfdfbe8]{padding:0 4px 0 12px;height:calc(100vh - 126px);overflow-y:scroll;background-color:#f8f8f8}.right-part .part-wrap .proj-manager-row[data-v-bbfdfbe8]{margin:0 0 8px 0}.right-part .part-wrap .only-manager-see[data-v-bbfdfbe8]:hover{border-radius:8px;background-color:rgba(50,50,60,.1)}.right-part .part-wrap .row-title[data-v-bbfdfbe8]{padding:6px 0 0 0;margin:10px 0 6px 12px;height:20px;line-height:20px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.template-summary[data-v-bbfdfbe8]{background-color:#f8f8f8}.template-summary .summary-wrap[data-v-bbfdfbe8]{height:calc(100vh - 142px);overflow:scroll;padding:0 24px;margin:16px 0 0 0;background-color:#f8f8f8}.template-summary .summary-wrap .prop-value-input[data-v-bbfdfbe8]{width:100%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.set-right-part-width[data-v-bbfdfbe8]{min-width:300px;width:63.768%!important;margin-right:10px}.set-personnel-list-width[data-v-bbfdfbe8]{min-width:375px;max-width:375px;width:36.231%!important;transition:width 2.5s ease}.set-header-position[data-v-bbfdfbe8]{position:relative!important;color:#32323c!important;z-index:99}.template-detail-btn[data-v-bbfdfbe8]{height:40px;line-height:40px;border-radius:8px;color:#32323c;background-color:#fff;border:.5px solid #979797;text-align:center;margin:15px 12px 8px;cursor:pointer}.proj-detail .app-header-center{font-size:20px}.proj-summary .back_title{color:#0c0d10;font-size:15px;font-family:PingFangSC-Regular}.proj-detail .right-part .app-header-back-btn{background:url(/static/img/yiyunicon.png) no-repeat -28px -84px!important}.plain-folder-list{padding:0 0 28px 0}.right-part .app-header-content{background-color:#f8f8f8}.manager-folder-wrap{border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)} \ No newline at end of file diff --git a/static/js/app.25f18fde.js b/static/js/app.b148b4c0.js similarity index 96% rename from static/js/app.25f18fde.js rename to static/js/app.b148b4c0.js index 40df5fdb..f0d8b1af 100644 --- a/static/js/app.25f18fde.js +++ b/static/js/app.b148b4c0.js @@ -1 +1 @@ -(function(e){function n(n){for(var a,r,i=n[0],u=n[1],s=n[2],d=0,l=[];d4&&void 0!==arguments[4]?arguments[4]:[];return{platformType:e,orgId:n,orgLogo:a,orgName:t,accessList:r}}var o={CompanyConsole:"company_console",ProjectManager:"project_manager"};function c(e,n){return-1!==e.indexOf(n)}},"1d40":function(e,n,t){"use strict";(function(e){t("99af"),t("4de4"),t("7db0"),t("c975"),t("a15b"),t("d81d"),t("fb6a"),t("b0c0"),t("d3b7"),t("07ac"),t("ac1f"),t("5319"),t("1276");var a=t("5530"),r=(t("96cf"),t("1da1")),o=t("b775"),c=t("3de1"),i=t("2ef0"),u=t("2b0e"),s=!!e.electron,d=5,l=5,f=[],p=[],h=[],m=[],b=function(){f=[],p=[],h=[],m=[]},k=function(){},g=function(e){var n=new WebSocket("ws://127.0.0.1:7777/".concat(e));return n.on=n.addEventListener,n},y=function(e,n){return new Promise((function(t,a){e.on("open",(function(){e.send(n)})),e.on("message",(function(n){t(n),e.close()})),e.on("error",(function(e){return a(e)}))}))},v=function(e){return s?e:k},w={isClient:s,init:v((function(){console.log("客户端 electron API 检测:",e.electron)})),keepLiveTest:v((function(n,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i["identity"],r=g("keeplive"),o=1,c=null,u=e.electron.ipcRenderer;function s(){n(!0),r.send(o)}u.on("detectWindowSize",(function(){t((arguments.length<=1?void 0:arguments[1])||!1)})),r.on("open",(function(){c=setInterval(s,2e3)})),r.on("close",(function(){clearInterval(c),n(!1)})),r.on("error",(function(){a(),n(!1)}))})),shrinkBrowserWindow:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("shrink-browser-window");case 3:case"end":return n.stop()}}),n)})))),enlargeBrowserWindow:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("enlarge-browser-window");case 3:case"end":return n.stop()}}),n)})))),unmaxBrowserWindow:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("unmax-browser-window");case 3:case"end":return n.stop()}}),n)})))),closeBrowserWindow:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("close-browser-window");case 3:case"end":return n.stop()}}),n)})))),isMaxWindowNow:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("is-max-window-now");case 3:return a=n.sent,n.abrupt("return",a);case 5:case"end":return n.stop()}}),n)})))),initClientConfig:v((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i["identity"],t=g("initClientConfig");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return u["default"].prototype.$notify({message:"请联系企业管理员检查存储节点配置项。",type:["error"]}),void n(e)}))})),checkForUpdates:v((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i["identity"],n=g("checkForUpdates"),t=1;n.on("open",(function(){n.send(t)})),n.on("message",(function(n){if("-1"===n.data)return u["default"].prototype.$notify({message:"已是最新版本。",type:["success"]}),void e(n)}))})),clientOpenFileWith:v((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i["identity"],t=g("openFileWith");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return u["default"].prototype.$notify({message:"服务端出现错误, 请稍后重试。",type:["error"]}),void n(e)})),t.on("error",n)})),login:function(){},logout:function(){},entryProject:v(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n,t,a,r,o){var c,u,s,d=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return c=d.length>5&&void 0!==d[5]?d[5]:i["identity"],e.next=3,y(g("init"),[t,n].join("|"));case 3:u=e.sent,r(u.data),s=g("subscriptionFileChange"),s.on("open",(function(){s.send(n)})),s.on("message",a),s.on("error",c),o(s);case 10:case"end":return e.stop()}}),e)})));return function(n,t,a,r,o){return e.apply(this,arguments)}}()),leaveProject:v((function(e){e.close(),b()})),downloadFile:v((function(e,n,t,a,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:i["identity"],d=function i(){var d=g("download"),l={API:"download",Action:"下载文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(o["b"])("operation/record",l),d.on("open",(function(){var r={API:"open",Action:"打开文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(o["b"])("operation/record",r),d.send([e,n,t,a].join("|"))})),d.on("message",(function(e){return"-1"===e.data?(u["default"].prototype.$notify({message:"".concat(t,",网络请求失败。"),type:["warning","download"],title:"文件下载失败"}),void s(e)):"-2"===e.data?(c["d"].error("请先关闭本地文件后再下载"),void s(e)):void r(e,d)})),d.on("error",(function(e){s(e)})),d.on("close",(function(){if(h=h.filter((function(e){return e!==i})),m.length){var e=m.shift();h.push(e),e()}}))};h.length>=l?m.push(d):(h.push(d),d())})),analyzeSystemPath:v(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var t,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,y(g("getFolderFileInfo"),n);case 2:return t=e.sent,e.prev=3,a=JSON.parse(t.data),r=Object.values(a).map((function(e){var n=e.name,t=e.extension,a=e.relativePath,r=e.absolutePath,o=0===t.indexOf(".")?t.slice(1):t,c=n.slice(0,-t.length);return{fileName:c,extension:o,relativePath:a.split("\\").filter(i["identity"]).join("/"),fullPath:r}})),e.abrupt("return",r);case 9:return e.prev=9,e.t0=e["catch"](3),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(n){return e.apply(this,arguments)}}()),chooseFiles:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("project-choose-files");case 3:if(a=n.sent,r=a.canceled,o=a.filePaths,!r){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",o);case 8:case"end":return n.stop()}}),n)})))),chooseFolders:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("project-choose-folders");case 3:if(a=n.sent,r=a.canceled,o=a.filePaths,!r){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",o);case 8:case"end":return n.stop()}}),n)})))),uploadFile:v(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var t,s,l,h,m,b,k,y,v,w,C,O,j,I,N,S,x,P,_,L,E,R,A,G,$;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=n.creator,s=n.projectId,l=n.projectName,h=n.folderId,m=n.folderName,b=n.folderLevelId,k=n.distFileRelativePath,y=void 0===k?"":k,v=n.fileName,w=n.fileExtension,C=n.sourceFilePath,O=n.fileList,j=n.onSuccess,I=n.onProgress,N=void 0===I?i["identity"]:I,S=n.onError,x=void 0===S?i["identity"]:S,P=n.successAllHandler,_=n.totalReadyUploadNum,L=n.tempNumWrap,E=w?"".concat(v,".").concat(w):v,R="".concat(m).concat(y?"/".concat(y):""),A=O.find((function(e){return y===e.relativePath&&"".concat(e.archName).concat(e.extension?".".concat(e.extension):"")===E})),G=A?Object(c["c"])(Object(a["a"])(Object(a["a"])({},A),{},{ModifyUserId:sessionStorage.userId})):{ArchName:v,CreateUserId:sessionStorage.userId,Extension:w,FolderId:h,FolderLevelId:b,Id:"upload:".concat("".concat(Math.random()).slice(2,8)),ProjId:s,RelativePath:y,Status:2,Version:1},N({process:0},G),$=function e(){var n=function(){if(f=f.filter((function(n){return n!==e})),p.length){var n=p.shift();f.push(n),n()}x.apply(void 0,arguments)},i=function(){if(f=f.filter((function(n){return n!==e})),p.length){var n=p.shift();f.push(n),n()}j.apply(void 0,arguments)},s=g("upload");s.on("open",(function(){var e="",n="",a=!1,r=[C,E,l,R.replace(/\//g,"\\"),e,n,t,a].join("|");s.send(r),N({process:0},G)})),s.on("message",function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var r,d,l,f,p,h,m;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("-1"!==t.data){e.next=4;break}return c["d"].error("文件上传失败"),n(t,G),e.abrupt("return");case 4:if("-2"!==t.data){e.next=8;break}return c["d"].error("请先关闭本地文件后再上传"),n(t,G),e.abrupt("return");case 8:if(e.prev=8,r=JSON.parse(t.data),d=r.size,l=r.process,f=r.hash,p=r.commitHistoryHash,N(r,G),100===l&&f){e.next=14;break}return e.abrupt("return");case 14:return s.close(),G.FileSize=+d,G.IpfsCid=f,h=Object(a["a"])({},G),A||delete h.Id,A?(h.HistoryCurrentIpfsCid=p,h.HistoryPreIpfsCid=""):h.HistoryCurrentIpfsCid=p,e.next=22,Object(o["b"])("file/".concat(A?"updateFile":"addFile"),h);case 22:if(m=e.sent,Object(o["c"])(m),0===m.Code){e.next=27;break}return n(m,G),e.abrupt("return");case 27:L.tempNumCount+=1,L.tempNumCount==_&&(u["default"].prototype.$notify({type:["success","upload"],title:"文件上传成功",message:"".concat(G.ArchName)}),P()),i(G),e.next=36;break;case 32:e.prev=32,e.t0=e["catch"](8),console.error("socket-upload-file parse data have error:",e.t0),n(e.t0,G);case 36:case"end":return e.stop()}}),e,null,[[8,32]])})));return function(n){return e.apply(this,arguments)}}()),s.on("error",(function(e){n(e,G)}))},f.length>=d?p.push($):(f.push($),$());case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),updateFile:v((function(e,n,t,a,u,s,d,l,f,p){var h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:i["identity"],m=arguments.length>11&&void 0!==arguments[11]?arguments[11]:i["identity"],b=g("upload"),k=e.archName,y=e.extension,v=(e.id,"".concat(k).concat(y?".".concat(y):"")),w="".concat(n,"\\").concat(a,"\\").concat(v);b.on("open",(function(){var e=[w,v,t,a,u,s,d,l].join("|");b.send(e)})),b.on("message",function(){var n=Object(r["a"])(regeneratorRuntime.mark((function n(t){var a,r,s,d,l,k,g;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("-1"!==t.data){n.next=4;break}return c["d"].error("文件上传失败"),m(t),n.abrupt("return");case 4:if("-2"!==t.data){n.next=8;break}return c["d"].error("请先关闭本地文件后再上传"),m(t),n.abrupt("return");case 8:if(n.prev=8,a=JSON.parse(t.data),console.log("progressData"),r=a.size,s=a.process,d=a.hash,l=a.commitHistoryHash,h(a),100===s&&d){n.next=15;break}return n.abrupt("return");case 15:return b.close(),k=Object(c["c"])(Object(i["cloneDeep"])(e)),k.ModifyUserId=sessionStorage.userId,k.HistoryPreIpfsCid=u,k.HistoryCurrentIpfsCid=l,f||(k.Size=+r,k.IpfsCid=d),n.next=23,Object(o["b"])("file/updateFile",k);case 23:return g=n.sent,Object(o["c"])(g),f&&(k.IpfsCid=d,k.Size=+r),p(k),n.abrupt("return");case 30:n.prev=30,n.t0=n["catch"](8),console.error("socket-update-file parse data have error:",t);case 33:case"end":return n.stop()}}),n,null,[[8,30]])})));return function(e){return n.apply(this,arguments)}}()),b.on("error",(function(n){m(n,e)}))})),queryCommitHistory:v((function(e,n,t){var a=g("queryCommitHistory");a.on("open",(function(){a.send([e,n].join("|"))})),a.on("message",(function(e){if("-1"===e.data)return c["d"].error("查询历史文件失败"),void t([]);var n=JSON.parse(e.data),a=Object.values(n);t(a)}))})),editCommitHistoryMilestone:v((function(e,n,t,a,r){var o=g("editCommitHistoryMilestone");o.on("open",(function(){o.send([e,n,t,a].join("|"))})),o.on("message",(function(e){if("-1"!==e.data){var n=e.data;console.log("lcb",n),r(n)}else c["d"].error("设置里程碑失败")}))})),openFile:v((function(n){var t=e.electron.shell;t.openPath(n)})),openFolder:v((function(n){var t=e.electron.shell;t.showItemInFolder(n)}))};n["a"]=w}).call(this,t("c8ba"))},"1f09":function(e,n,t){},"3de1":function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return c})),t.d(n,"e",(function(){return i})),t.d(n,"d",(function(){return u})),t.d(n,"a",(function(){return s}));t("99af"),t("13d5"),t("fb6a"),t("4fad"),t("d3b7");var a=t("3835"),r=t("2b0e");function o(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],o=t[1];return e["".concat(r[0].toLocaleLowerCase()).concat(r.slice(1))]=o,e}),{})}function c(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],o=t[1];return e["".concat(r[0].toLocaleUpperCase()).concat(r.slice(1))]=o,e}),{})}var i=function(e){return new Promise((function(n){return setTimeout(n,e)}))},u={success:function(e){r["default"].prototype.$notify({message:e,type:["success"],duration:2500})},error:function(e){r["default"].prototype.$notify({message:e,type:["error"],duration:2500})},info:function(e){r["default"].prototype.$notify({message:e,type:"info",offset:100,duration:2500})},warning:function(e){r["default"].prototype.$notify({message:e,type:["warning"],duration:2500})}};function s(e,n){var t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},"41cb":function(e,n,t){"use strict";t("b0c0"),t("d3b7");var a=t("2b0e"),r=t("8c4f"),o={login:"LOCKING | 登录",project:"LOCKING | 项目编辑",platform:"LOCKING | 平台选择",template:"LOCKING | 模板控制台",projnotice:"LOCKING | 更新提醒",notFound:"404 | 未找到该页面",workspace:"LOCKING | 项目详情",search:"LOCKING | 搜索",recycle:"LOCKING | 回收站",cloud:"LOCKING | 云盘",cloudrecycle:"LOCKING | 云回收站",cloudsource:"LOCKING | 云资源管理器",company:"LOCKING | 企业后台",message2:"LOCKING | 企业后台",company_message:"LOCKING | 平台消息",company_user:"LOCKING | 通讯录",company_project:"LOCKING | 项目管理",company_template:"LOCKING | 模板与应用",company_setting:"LOCKING | 通用设置",company_template_detail:"LOCKING | 模板查看",company_app:"LOCKING | 应用",company_template_market:"LOCKING | 应用市场",system:"LOCKING | 总后台",system_template:"LOCKING | 流程模板",system_template_mind:"LOCKING | 思维导图",system_template_matrix:"LOCKING | 矩阵模板",system_runmanage:"LOCKING | 运行管理",system_appcenter:"LOCKING | 应用管理",system_setting:"LOCKING | 总体权限",system_appinfo:"LOCKING | 应用介绍",system_template_file:"流程模板 | 样板文件"};a["default"].use(r["a"]);var c=new r["a"]({mode:"hash",routes:[{path:"/",name:"login",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-347878ae")]).then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-4c803a36")]).then(t.bind(null,"46a4"))}},{path:"/projdetail",name:"projdetail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-3fbc85f3"),t.e("chunk-43a9a3bd")]).then(t.bind(null,"47c5"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-55f85da7")]).then(t.bind(null,"1670"))}},{path:"/notification",name:"notification",component:function(){return Promise.resolve().then(t.bind(null,"d2ad"))}},{path:"/newproject",name:"newproject",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-3fbc85f3"),t.e("chunk-3261285a")]).then(t.bind(null,"a341"))}},{path:"/watchlink",name:"watchlink",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-62c7e6db")]).then(t.bind(null,"80fb"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-2b38f122")]).then(t.bind(null,"0a7f"))}},{path:"/index",name:"index",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-50365d46")]).then(t.bind(null,"011a"))}},{path:"/projnotice",name:"projnotice",component:function(){return t.e("chunk-05bf99c1").then(t.bind(null,"00ec"))}},{path:"/email",name:"email",component:function(){return t.e("chunk-2d0ac90d").then(t.bind(null,"19a0"))}},{path:"/workspace",name:"workspace",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-3fbc85f3"),t.e("chunk-34589b20"),t.e("chunk-16cd29cf")]).then(t.bind(null,"11f4"))}},{path:"/recycle",name:"recycle",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-584d398d")]).then(t.bind(null,"8b1e"))}},{path:"/history",name:"history",component:function(){return Promise.all([t.e("chunk-34589b20"),t.e("chunk-2d0d2af5")]).then(t.bind(null,"a2d2"))}},{path:"/cloud",name:"cloud",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-23d16c0d")]).then(t.bind(null,"4488"))}},{path:"/cloudrecycle",name:"cloudrecycle",component:function(){return t.e("chunk-2d224b2b").then(t.bind(null,"e0f0"))}},{path:"/cloudsource",name:"cloudsource",component:function(){return t.e("chunk-2d0c061a").then(t.bind(null,"4217"))}},{path:"/company",name:"company",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-3ccf94d4")]).then(t.bind(null,"db21"))},redirect:{name:"company_home"},children:[{path:"home",name:"company_home",component:function(){return t.e("chunk-309e49e4").then(t.bind(null,"345a"))}},{path:"message",name:"company_message",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0cf6a4")]).then(t.bind(null,"642b"))}},{path:"user",name:"company_user",component:function(){return t.e("chunk-145b0de7").then(t.bind(null,"29c0"))}},{path:"project",name:"company_project",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-038ce22f")]).then(t.bind(null,"e984"))}},{path:"template",name:"company_template",component:function(){return t.e("chunk-5e79f418").then(t.bind(null,"4083"))}},{path:"template/detail",name:"company_template_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-4a5d94c9"),t.e("chunk-802699f8")]).then(t.bind(null,"df39"))}},{path:"template/market",name:"company_template_market",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-4a5d94c9"),t.e("chunk-655d6881")]).then(t.bind(null,"be38"))}},{path:"setting",name:"company_setting",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-1fe39068")]).then(t.bind(null,"cda4"))}},{path:"app",name:"company_app",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0b3688")]).then(t.bind(null,"27f3"))}}]},{path:"/template",name:"template",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-ef8ce8b2")]).then(function(){var n=[t("65b7")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/template/create",name:"template_create",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-74b26ff1")]).then(function(){var n=[t("d235")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/system",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-da5f603a")]).then(t.bind(null,"f364"))},redirect:{name:"system_customer"},children:[{path:"customer",name:"system_customer",component:function(){return t.e("chunk-550c5be4").then(t.bind(null,"f851"))}},{path:"template",name:"system_template",component:function(){return t.e("chunk-78390ace").then(t.bind(null,"81b5"))}},{path:"runmanage",name:"system_runmanage",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-11067227")]).then(t.bind(null,"d798"))}},{path:"template/matrix",name:"system_template_matrix",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-12a7ad0b")]).then(t.bind(null,"2275"))}},{path:"template/mind",name:"system_template_mind",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-a821f8e4")]).then(t.bind(null,"bccc"))}},{path:"template/tempfile",name:"system_template_file",component:function(){return t.e("chunk-28990618").then(t.bind(null,"f1f7"))}},{path:"appcenter",name:"system_appcenter",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0e148e")]).then(t.bind(null,"7a7e"))}},{path:"appinfo",name:"system_appinfo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d21b850")]).then(t.bind(null,"bfb8"))}},{path:"setting",name:"system_setting",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-1fe40532")]).then(t.bind(null,"ddca"))}},{path:"*",redirect:{name:"system_customer"}}]},{path:"*",name:"notfound",component:function(){return t.e("chunk-05a1125b").then(t.bind(null,"9403"))}}]});c.beforeEach((function(e,n,t){"/"===e.path||sessionStorage.getItem("userId")?t():t({path:"/"})})),c.afterEach((function(e){window.document.title=o[e.name]||"LOCKING | 云建筑"}));n["a"]=c},"51b0":function(e,n,t){},"53be":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("4de4"),t("e260"),t("e6cf"),t("cca6"),t("a79d");var a=t("2b0e"),r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view",{ref:"mainpage",staticClass:"mt-40",class:{"mt-64":e.setMarginTop,"calc-height":e.setMarginTop,"workspace-bigbody":e.$route.path.indexOf("/workspace")>=0,"mt-76":"newproject"==e.$route.name||"projdetail"==e.$route.name},attrs:{id:"bigbody"}})],1)},o=[],c=(t("c975"),t("b0c0"),t("1d40")),i={components:{},name:"App",data:function(){return{header_show:!0,companyName:"",mypath:"/",showIndexOption:!1,showHelpPage:!1,searchName:"",isShowOutWorkSpace:!1,outWorkSpace:!1,isClient:c["a"].isClient,onlineStatus:!1,state:this.$store.state}},created:function(){var e=this;console.log("版本编译时间:","2021.03.22 14:51"),null!=document.getElementById("Loading")&&null!=document.getElementById("Loading").nodeName&&""!=document.getElementById("Loading").nodeName&&document.body.removeChild(document.getElementById("Loading")),"login"!=this.$route.name&&"notfound"!=this.$route.name&&"platform"!==this.$route.name||(this.header_show=!1),this.isClient&&c["a"].keepLiveTest((function(n){e.onlineStatus=n,e.$store.changeGatewayState(n),sessionStorage.setItem("isOnLine",String(n&&navigator.onLine))}),(function(n){e.$store.state.isMaxWindowSize=n}))},computed:{setMarginTop:function(){return this.isClient||"workspace"==this.$route.name},currentRoutePath:function(){return this.$route.path}},mounted:function(){window.addEventListener("scroll",this.handleScroll,!0)},methods:{handleScroll:function(){},showOption:function(){this.showIndexOption=!0},showHelp:function(){this.showHelpPage=!0},closeShowOption:function(){this.showIndexOption=!1,this.showHelpPage=!1},closeWorkSet:function(){"workspace"==this.$route.name&&this.$refs["mainpage"].closeAppManagePain()},getSearchName:function(e){this.searchName=e},getIsShowOutWorkSpace:function(e){this.outWorkSpace=!1,this.isShowOutWorkSpace=e},getOutWorkSpace:function(e){this.outWorkSpace=e}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)},watch:{$route:function(e){this.mypath=e.path},currentRoutePath:function(e){e.indexOf("projdetail")>=0?document.body.classList.add("set-bgc"):document.body.classList.remove("set-bgc")}}},u=i,s=(t("5c0b"),t("e18a"),t("6964"),t("2877")),d=Object(s["a"])(u,r,o,!1,null,"4cc0f4ba",null),l=d.exports,f=t("41cb"),p=t("5c96"),h=t.n(p),m=(t("0fae"),t("96cf"),t("1da1")),b=t("b775"),k=t("0f13"),g=t("3de1"),y=function(){return{gatewayState:!1,isMaxWindowSize:!1,client:c["a"].isClient?"桌面端":"WEB端"}},v=function(){return{isLogin:!1,accountId:void 0,accountName:void 0,userName:void 0,platformList:[],currentPlatform:{},currentCompanyId:void 0,avator:void 0,userInfo:{}}},w=function(){var e=Object.assign(y(),v());try{var n=JSON.parse(sessionStorage.getItem("user")),t=sessionStorage.getItem("companyId"),a=JSON.parse(sessionStorage.getItem("platform")||"{}");n&&n.accountId&&(e.isLogin=!0,Object.assign(e,n),e.currentCompanyId=t,e.currentPlatform=a)}catch(r){console.log("加载session数据失败"),e=Object.assign(y(),v())}return e},C={state:w(),setCurrentPlatform:function(e){this.state.currentPlatform=e,this.state.currentCompanyId=e.orgId,sessionStorage.companyId=e.orgId,sessionStorage.platform=JSON.stringify(e),sessionStorage.CompanyName=JSON.parse(sessionStorage.platform).orgName,sessionStorage.accountName=JSON.parse(sessionStorage.user).accountName;var n={API:"authentication/login",Action:"登录",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.accountName,Source:sessionStorage.client};Object(b["b"])("operation/record",n)},setIsMaxWindowSize:function(e){this.state.isMaxWindowSize=e},changeGatewayState:function(e){this.state.gatewayState=e},login:function(e,n){var t=this;return Object(m["a"])(regeneratorRuntime.mark((function a(){var r,o,c,i,u,s,d,l,f,p,h,m,y,v,w,C,O,j,I;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(b["b"])("authentication/login",{UserName:e,PassWord:n});case 2:if(r=a.sent,o=0===r.Code,o){a.next=6;break}return a.abrupt("return",r);case 6:if(t.state.isLogin=!0,c=Object(g["b"])(r.Data||{}),delete c.userExt,i=c.companyId,u=c.cnName,s=c.id,d=c.permission,l=c.backgroundPermission,f=[],p={accountId:s,accountName:e,userName:u,platformList:f,userInfo:c},h=3===l,m=2===l,!h){a.next=18;break}f.push(Object(k["d"])(k["b"].MANAGE_CENTER,i,"LOCKING 总后台",void 0,[])),a.next=29;break;case 18:return a.next=20,Object(b["b"])("company/queryFrontDeskCompanyById",{id:i});case 20:if(y=a.sent,0===y.Code){a.next=23;break}return a.abrupt("return",y);case 23:v=y.Data,w=void 0===v?{}:v,C=w.company,O=C.LogoUrl,j=C.CompanyName,I=[],m&&I.push(k["a"].CompanyConsole),1===d&&I.push(k["a"].ProjectManager),f.push(Object(k["d"])(k["b"].COMPANY,i,j,O,I));case 29:return t.state.isLogin=!0,Object.assign(t.state,p),sessionStorage.client=t.state.client,sessionStorage.userId=s,sessionStorage.accountId=s,sessionStorage.user=JSON.stringify(p),a.abrupt("return",{Code:r.Code,Data:p});case 36:case"end":return a.stop()}}),a)})))()},logout:function(){var e={API:"authentication/loginOut",Action:"注销",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.accountName,Source:sessionStorage.client};Object(b["b"])("operation/record",e),this.state=Object.assign(this.state,v()),Object(b["b"])("authentication/loginOut"),sessionStorage.clear()}},O=t("2f62"),j=t("a78e"),I=t.n(j),N=t("5ab9"),S=function(e){return Object(N["a"])(e)||"/static/img/avator_default.svg"},x=function(e,n){var t="avator"===n?"/static/img/avator_default.svg":"";return Object(N["a"])(e)||t},P=t("caf9"),_=t("32ed"),L=t.n(_),E=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.src,expression:"src"}]})},R=[],A={props:{src:String}},G=A,$=Object(s["a"])(G,E,R,!1,null,null,null),T=$.exports,M=(t("856b"),t("d903"),t("c610"),t("935a"),t("51b0"),t("53be"),t("1f94"),t("d2ad")),K=a["default"].extend(M["default"]),F=document.createElement("div");F.style="position: fixed; right: 32px; top: 68px;z-index:99999",document.body.appendChild(F);var W=function(e){var n=new K({propsData:e});n.vm=n.$mount(),F.appendChild(n.vm.$el)},H=W;a["default"].use(h.a),a["default"].use(P["a"]),a["default"].use(O["a"]),a["default"].prototype.$cookie=I.a,a["default"].component("ImgLazy",T),a["default"].prototype.$axios=b["a"],a["default"].prototype.$fetch=b["a"],a["default"].prototype.$fetchApi=b["b"],a["default"].filter("resolveImg",x),a["default"].filter("resolveAvator",S),a["default"].prototype.$bus=new a["default"],a["default"].prototype.$notify=H,a["default"].use(L.a),a["default"].config.productionTip=!1,new a["default"]({router:f["a"],store:C,render:function(e){return e(l)}}).$mount("#app")},"5ab9":function(e,n,t){"use strict";t.d(n,"c",(function(){return u})),t.d(n,"b",(function(){return s})),t.d(n,"a",(function(){return l}));t("99af"),t("c975"),t("ac1f"),t("1276"),t("96cf");var a=t("1da1"),r=t("9b15"),o=t("2ef0"),c=new r({region:"oss-cn-hangzhou",accessKeyId:"LTAI4G2BEDNpfdLmquYYMaMV",accessKeySecret:"tPhAL3qAgF9Tq67h73snAmwu8iPZ5t",bucket:"yiyun-client-files",secure:!0}),i=function(e){return"".concat((new Date).getTime(),"/").concat(e)},u=function(e){return"oss://".concat(e)};function s(e,n){return d.apply(this,arguments)}function d(){return d=Object(a["a"])(regeneratorRuntime.mark((function e(n,t){var a,r,o,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.length>2&&void 0!==u[2]?u[2]:{},e.prev=1,r=i(n),e.next=5,c.multipartUpload(r,t,a);case 5:return o=e.sent,e.abrupt("return",o);case 9:return e.prev=9,e.t0=e["catch"](1),console.error("file upload failed:",e.t0),e.abrupt("return",null);case 13:case"end":return e.stop()}}),e,null,[[1,9]])}))),d.apply(this,arguments)}var l=Object(o["memoize"])((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(0!==e.indexOf("oss://"))return e;var t=e.substr(6),a=n||t.split("/").pop();try{var r=3600,o=c.signatureUrl(t,{expires:r,response:{"content-disposition":'attachment; filename="'.concat(a,'"')}});return setTimeout((function(){l.cache.delete(e)}),1e3*r),o}catch(i){return null}}))},"5b49":function(e,n,t){"use strict";var a=t("1f09"),r=t.n(a);r.a},"5c0b":function(e,n,t){"use strict";var a=t("9c0c"),r=t.n(a);r.a},6964:function(e,n,t){"use strict";var a=t("7dff"),r=t.n(a);r.a},"7dff":function(e,n,t){},"856b":function(e,n,t){},"935a":function(e,n,t){},"99e1":function(e,n,t){"use strict";var a=t("f225"),r=t.n(a);r.a},"9c0c":function(e,n,t){},b775:function(e,n,t){"use strict";t.d(n,"b",(function(){return d})),t.d(n,"c",(function(){return f}));t("99af"),t("c975"),t("fb6a"),t("d3b7"),t("ac1f"),t("25f0"),t("1276"),t("96cf");var a=t("3835"),r=t("1da1"),o=t("bc3a"),c=t.n(o),i=t("2b0e"),u=t("41cb"),s=t("3de1");function d(e,n,t){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(n,t,r){var o,i,u,s,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=p(n),i=Object(a["a"])(o,2),u=i[0],s=i[1],e.prev=1,e.next=4,"GET"===u?c.a.get(s,{params:t},r):c.a.post(s,t,r);case 4:return d=e.sent,e.abrupt("return",d.data);case 8:if(e.prev=8,e.t0=e["catch"](1),!e.t0.response||!e.t0.response.status){e.next=16;break}e.t1=e.t0.response.status,e.next=404===e.t1?14:15;break;case 14:return e.abrupt("return",{Code:404,Msg:"找不到指定的服务。"});case 15:return e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 16:return console.error(e.t0),e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 18:case"end":return e.stop()}}),e,null,[[1,8]])}))),l.apply(this,arguments)}function f(e){if(0!==e.Code){var n=e.Code?e.Code.toString():"",t="error";404===e.Code&&(t="warning"),i["default"].prototype.$notify({message:e.Msg,title:n+"错误",type:t})}return e}function p(e){var n=e.split("/"),t=Object(a["a"])(n,1),r=t[0],o=-1!==["template","project","folder","file","templateCompany"].indexOf(r)?"pms":"cms",c="api/".concat(o,"/").concat("authentication"===r?"":"v1/").concat(e),i="GET";switch(e){case"authentication/login":case"authentication/passwordCheck":case"company/addCompany":case"company/queryGeneralOverview":case"company/queryProviceTree":case"company/updateCompanyById":case"company/link/addCompanyLink":case"company/link/updateCompanyLink":case"dept/addDept":case"dept/updateDept":case"user/addUser":case"user/resetPassWord":case"user/updateUser":case"template/createTemplate":case"template/fileExchange":case"template/updateTemplate":case"template/uploadingXmind":case"template/addTemplateNodeModelFile":case"template/createNestedRelevance":case"template/connectNestTemplateFolder":case"folder/createSubfolder":case"project/createProject":case"project/editProject":case"project/assignedWork":case"file/addArchMilesStone":case"file/addFile":case"file/updateFile":case"file/fileCoordinationChange":case"file/setShareFile":case"operation/record":case"file/updateProjArchiveHistory":case"templateCompany/addTemplateCompany":case"project/addProjectGobalConfig":i="POST";break;default:i="GET";break}return[i,c]}c.a.defaults.withCredentials=!0,c.a.interceptors.request.use((function(e){return 0===e.url.indexOf("api/")&&(e.url="".concat("/api/").concat(e.url.slice(4))),e}),(function(e){return Promise.reject(e)})),c.a.interceptors.response.use((function(e){return e}),(function(e){if(e.response)switch(e.response.status){case 401:"/"!=u["a"].currentRoute.fullPath&&(s["d"].error("登录超时,请重新登录"),sessionStorage.clear(),u["a"].push({path:"/"}));break}return Promise.reject(e)})),n["a"]=c.a},c610:function(e,n,t){},d2ad:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("transition",{attrs:{name:"fade"}},[e.show?t("div",{staticClass:"notification_box"},[Array.isArray(e.type)?t("div",{staticClass:"notification_img"},[t("img",{class:e.type[1]?"leftIcon":""+e.typeList[e.type[0]].class,attrs:{src:e.typeList[e.type[0]].imgSrc,alt:""}}),e.type[1]?t("img",{staticClass:"righticon",attrs:{src:e.typeList[e.type[1]].imgSrc,alt:""}}):e._e()]):t("div",{staticClass:"notification_img"},[t("img",{class:e.typeList[e.type].class,attrs:{src:e.typeList[e.type].imgSrc,alt:""}})]),t("div",{staticClass:"notification_msg"},[t("div",{staticClass:"notification_msg_content"},[t("div",{staticClass:"notification_title",class:{hidden:!e.title}},[e._v(e._s(e.title))]),t("div",{staticClass:"notification_context",class:{middle:!e.title}},[e._v(e._s(e.message))])]),t("p",{staticClass:"closeBtn",attrs:{href:""},on:{click:e.handleClose}},[t("img",{attrs:{src:"/static/img/删除.svg",alt:""}})])])]):e._e()])},r=[],o=(t("a9e3"),function(e,n){return{imgSrc:"/static/img/"+e,class:n}}),c={success:o("success.svg","notifyIcon"),error:o("严重警示.svg","notifyIcon"),warning:o("事件警示.svg","notifyIcon"),"file-txt":o("file_txt.png","fileIcon"),"file-pdf":o("file_pdf.png","fileIcon"),"file-word":o("file_word.png","fileIcon"),"file-excel":o("file_excel.png","fileIcon"),"file-ppt":o("file_ppt.png","fileIcon"),upload:o("upload.png","notifyIcon"),download:o("download.svg","notifyIcon"),cooperation:o("download.svg","notifyIcon")},i={name:"Notification",props:{type:{},inItem:{type:Boolean,defalt:!1},offset:{type:Number,default:100},title:{type:String,default:""},message:{type:String,default:""},duration:{type:Number,default:3e3}},data:function(){return{show:!1,typeList:c,timer:""}},watch:{show:function(e){var n=this;e||setTimeout((function(){n.destroyElement()}),1e3)}},methods:{destroyElement:function(){this.$destroy(!0),this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},handleClose:function(){this.show=!1}},created:function(){var e=this;this.timer=setTimeout((function(){e.show=!1}),this.duration)},mounted:function(){this.show=!0},beforeDestroy:function(){clearTimeout(this.timer)}},u=i,s=(t("5b49"),t("99e1"),t("2877")),d=Object(s["a"])(u,a,r,!1,null,"3a7b0566",null);n["default"]=d.exports},d903:function(e,n,t){},e01b:function(e,n,t){},e18a:function(e,n,t){"use strict";var a=t("e01b"),r=t.n(a);r.a},f225:function(e,n,t){}}); \ No newline at end of file +(function(e){function n(n){for(var a,r,i=n[0],u=n[1],s=n[2],d=0,l=[];d4&&void 0!==arguments[4]?arguments[4]:[];return{platformType:e,orgId:n,orgLogo:a,orgName:t,accessList:r}}var o={CompanyConsole:"company_console",ProjectManager:"project_manager"};function c(e,n){return-1!==e.indexOf(n)}},"1d40":function(e,n,t){"use strict";(function(e){t("99af"),t("4de4"),t("7db0"),t("c975"),t("a15b"),t("d81d"),t("fb6a"),t("b0c0"),t("d3b7"),t("07ac"),t("ac1f"),t("5319"),t("1276");var a=t("5530"),r=(t("96cf"),t("1da1")),o=t("b775"),c=t("3de1"),i=t("2ef0"),u=t("2b0e"),s=!!e.electron,d=5,l=5,f=[],p=[],h=[],m=[],b=function(){f=[],p=[],h=[],m=[]},k=function(){},g=function(e){var n=new WebSocket("ws://127.0.0.1:7777/".concat(e));return n.on=n.addEventListener,n},y=function(e,n){return new Promise((function(t,a){e.on("open",(function(){e.send(n)})),e.on("message",(function(n){t(n),e.close()})),e.on("error",(function(e){return a(e)}))}))},v=function(e){return s?e:k},w={isClient:s,init:v((function(){console.log("客户端 electron API 检测:",e.electron)})),keepLiveTest:v((function(n,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i["identity"],r=g("keeplive"),o=1,c=null,u=e.electron.ipcRenderer;function s(){n(!0),r.send(o)}u.on("detectWindowSize",(function(){t((arguments.length<=1?void 0:arguments[1])||!1)})),r.on("open",(function(){c=setInterval(s,2e3)})),r.on("close",(function(){clearInterval(c),n(!1)})),r.on("error",(function(){a(),n(!1)}))})),shrinkBrowserWindow:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("shrink-browser-window");case 3:case"end":return n.stop()}}),n)})))),enlargeBrowserWindow:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("enlarge-browser-window");case 3:case"end":return n.stop()}}),n)})))),unmaxBrowserWindow:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("unmax-browser-window");case 3:case"end":return n.stop()}}),n)})))),closeBrowserWindow:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("close-browser-window");case 3:case"end":return n.stop()}}),n)})))),isMaxWindowNow:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("is-max-window-now");case 3:return a=n.sent,n.abrupt("return",a);case 5:case"end":return n.stop()}}),n)})))),initClientConfig:v((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i["identity"],t=g("initClientConfig");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return u["default"].prototype.$notify({message:"请联系企业管理员检查存储节点配置项。",type:["error"]}),void n(e)}))})),checkForUpdates:v((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i["identity"],n=g("checkForUpdates"),t=1;n.on("open",(function(){n.send(t)})),n.on("message",(function(n){if("-1"===n.data)return u["default"].prototype.$notify({message:"已是最新版本。",type:["success"]}),void e(n)}))})),clientOpenFileWith:v((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i["identity"],t=g("openFileWith");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return u["default"].prototype.$notify({message:"服务端出现错误, 请稍后重试。",type:["error"]}),void n(e)})),t.on("error",n)})),login:function(){},logout:function(){},entryProject:v(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n,t,a,r,o){var c,u,s,d=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return c=d.length>5&&void 0!==d[5]?d[5]:i["identity"],e.next=3,y(g("init"),[t,n].join("|"));case 3:u=e.sent,r(u.data),s=g("subscriptionFileChange"),s.on("open",(function(){s.send(n)})),s.on("message",a),s.on("error",c),o(s);case 10:case"end":return e.stop()}}),e)})));return function(n,t,a,r,o){return e.apply(this,arguments)}}()),leaveProject:v((function(e){e.close(),b()})),downloadFile:v((function(e,n,t,a,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:i["identity"],d=function i(){var d=g("download"),l={API:"download",Action:"下载文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(o["b"])("operation/record",l),d.on("open",(function(){var r={API:"open",Action:"打开文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(o["b"])("operation/record",r),d.send([e,n,t,a].join("|"))})),d.on("message",(function(e){return"-1"===e.data?(u["default"].prototype.$notify({message:"".concat(t,",网络请求失败。"),type:["warning","download"],title:"文件下载失败"}),void s(e)):"-2"===e.data?(c["d"].error("请先关闭本地文件后再下载"),void s(e)):void r(e,d)})),d.on("error",(function(e){s(e)})),d.on("close",(function(){if(h=h.filter((function(e){return e!==i})),m.length){var e=m.shift();h.push(e),e()}}))};h.length>=l?m.push(d):(h.push(d),d())})),analyzeSystemPath:v(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var t,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,y(g("getFolderFileInfo"),n);case 2:return t=e.sent,e.prev=3,a=JSON.parse(t.data),r=Object.values(a).map((function(e){var n=e.name,t=e.extension,a=e.relativePath,r=e.absolutePath,o=0===t.indexOf(".")?t.slice(1):t,c=n.slice(0,-t.length);return{fileName:c,extension:o,relativePath:a.split("\\").filter(i["identity"]).join("/"),fullPath:r}})),e.abrupt("return",r);case 9:return e.prev=9,e.t0=e["catch"](3),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(n){return e.apply(this,arguments)}}()),chooseFiles:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("project-choose-files");case 3:if(a=n.sent,r=a.canceled,o=a.filePaths,!r){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",o);case 8:case"end":return n.stop()}}),n)})))),chooseFolders:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=e.electron.ipcRenderer,n.next=3,t.invoke("project-choose-folders");case 3:if(a=n.sent,r=a.canceled,o=a.filePaths,!r){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",o);case 8:case"end":return n.stop()}}),n)})))),uploadFile:v(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var t,s,l,h,m,b,k,y,v,w,C,O,j,I,N,S,x,P,_,L,E,R,A,G,$;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=n.creator,s=n.projectId,l=n.projectName,h=n.folderId,m=n.folderName,b=n.folderLevelId,k=n.distFileRelativePath,y=void 0===k?"":k,v=n.fileName,w=n.fileExtension,C=n.sourceFilePath,O=n.fileList,j=n.onSuccess,I=n.onProgress,N=void 0===I?i["identity"]:I,S=n.onError,x=void 0===S?i["identity"]:S,P=n.successAllHandler,_=n.totalReadyUploadNum,L=n.tempNumWrap,E=w?"".concat(v,".").concat(w):v,R="".concat(m).concat(y?"/".concat(y):""),A=O.find((function(e){return y===e.relativePath&&"".concat(e.archName).concat(e.extension?".".concat(e.extension):"")===E})),G=A?Object(c["c"])(Object(a["a"])(Object(a["a"])({},A),{},{ModifyUserId:sessionStorage.userId})):{ArchName:v,CreateUserId:sessionStorage.userId,Extension:w,FolderId:h,FolderLevelId:b,Id:"upload:".concat("".concat(Math.random()).slice(2,8)),ProjId:s,RelativePath:y,Status:2,Version:1},N({process:0},G),$=function e(){var n=function(){if(f=f.filter((function(n){return n!==e})),p.length){var n=p.shift();f.push(n),n()}x.apply(void 0,arguments)},i=function(){if(f=f.filter((function(n){return n!==e})),p.length){var n=p.shift();f.push(n),n()}j.apply(void 0,arguments)},s=g("upload");s.on("open",(function(){var e="",n="",a=!1,r=[C,E,l,R.replace(/\//g,"\\"),e,n,t,a].join("|");s.send(r),N({process:0},G)})),s.on("message",function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var r,d,l,f,p,h,m;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("-1"!==t.data){e.next=4;break}return c["d"].error("文件上传失败"),n(t,G),e.abrupt("return");case 4:if("-2"!==t.data){e.next=8;break}return c["d"].error("请先关闭本地文件后再上传"),n(t,G),e.abrupt("return");case 8:if(e.prev=8,r=JSON.parse(t.data),d=r.size,l=r.process,f=r.hash,p=r.commitHistoryHash,N(r,G),100===l&&f){e.next=14;break}return e.abrupt("return");case 14:return s.close(),G.FileSize=+d,G.IpfsCid=f,h=Object(a["a"])({},G),A||delete h.Id,A?(h.HistoryCurrentIpfsCid=p,h.HistoryPreIpfsCid=""):h.HistoryCurrentIpfsCid=p,e.next=22,Object(o["b"])("file/".concat(A?"updateFile":"addFile"),h);case 22:if(m=e.sent,Object(o["c"])(m),0===m.Code){e.next=27;break}return n(m,G),e.abrupt("return");case 27:L.tempNumCount+=1,L.tempNumCount==_&&(u["default"].prototype.$notify({type:["success","upload"],title:"文件上传成功",message:"".concat(G.ArchName)}),P()),i(G),e.next=36;break;case 32:e.prev=32,e.t0=e["catch"](8),console.error("socket-upload-file parse data have error:",e.t0),n(e.t0,G);case 36:case"end":return e.stop()}}),e,null,[[8,32]])})));return function(n){return e.apply(this,arguments)}}()),s.on("error",(function(e){n(e,G)}))},f.length>=d?p.push($):(f.push($),$());case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),updateFile:v((function(e,n,t,a,u,s,d,l,f,p){var h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:i["identity"],m=arguments.length>11&&void 0!==arguments[11]?arguments[11]:i["identity"],b=g("upload"),k=e.archName,y=e.extension,v=(e.id,"".concat(k).concat(y?".".concat(y):"")),w="".concat(n,"\\").concat(a,"\\").concat(v);b.on("open",(function(){var e=[w,v,t,a,u,s,d,l].join("|");b.send(e)})),b.on("message",function(){var n=Object(r["a"])(regeneratorRuntime.mark((function n(t){var a,r,s,d,l,k,g;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("-1"!==t.data){n.next=4;break}return c["d"].error("文件上传失败"),m(t),n.abrupt("return");case 4:if("-2"!==t.data){n.next=8;break}return c["d"].error("请先关闭本地文件后再上传"),m(t),n.abrupt("return");case 8:if(n.prev=8,a=JSON.parse(t.data),console.log("progressData"),r=a.size,s=a.process,d=a.hash,l=a.commitHistoryHash,h(a),100===s&&d){n.next=15;break}return n.abrupt("return");case 15:return b.close(),k=Object(c["c"])(Object(i["cloneDeep"])(e)),k.ModifyUserId=sessionStorage.userId,k.HistoryPreIpfsCid=u,k.HistoryCurrentIpfsCid=l,f||(k.Size=+r,k.IpfsCid=d),n.next=23,Object(o["b"])("file/updateFile",k);case 23:return g=n.sent,Object(o["c"])(g),f&&(k.IpfsCid=d,k.Size=+r),p(k),n.abrupt("return");case 30:n.prev=30,n.t0=n["catch"](8),console.error("socket-update-file parse data have error:",t);case 33:case"end":return n.stop()}}),n,null,[[8,30]])})));return function(e){return n.apply(this,arguments)}}()),b.on("error",(function(n){m(n,e)}))})),queryCommitHistory:v((function(e,n,t){var a=g("queryCommitHistory");a.on("open",(function(){a.send([e,n].join("|"))})),a.on("message",(function(e){if("-1"===e.data)return c["d"].error("查询历史文件失败"),void t([]);var n=JSON.parse(e.data),a=Object.values(n);t(a)}))})),editCommitHistoryMilestone:v((function(e,n,t,a,r){var o=g("editCommitHistoryMilestone");o.on("open",(function(){o.send([e,n,t,a].join("|"))})),o.on("message",(function(e){if("-1"!==e.data){var n=e.data;console.log("lcb",n),r(n)}else c["d"].error("设置里程碑失败")}))})),openFile:v((function(n){var t=e.electron.shell;t.openPath(n)})),openFolder:v((function(n){var t=e.electron.shell;t.showItemInFolder(n)}))};n["a"]=w}).call(this,t("c8ba"))},"1f09":function(e,n,t){},"3de1":function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return c})),t.d(n,"e",(function(){return i})),t.d(n,"d",(function(){return u})),t.d(n,"a",(function(){return s}));t("99af"),t("13d5"),t("fb6a"),t("4fad"),t("d3b7");var a=t("3835"),r=t("2b0e");function o(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],o=t[1];return e["".concat(r[0].toLocaleLowerCase()).concat(r.slice(1))]=o,e}),{})}function c(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],o=t[1];return e["".concat(r[0].toLocaleUpperCase()).concat(r.slice(1))]=o,e}),{})}var i=function(e){return new Promise((function(n){return setTimeout(n,e)}))},u={success:function(e){r["default"].prototype.$notify({message:e,type:["success"],duration:2500})},error:function(e){r["default"].prototype.$notify({message:e,type:["error"],duration:2500})},info:function(e){r["default"].prototype.$notify({message:e,type:"info",offset:100,duration:2500})},warning:function(e){r["default"].prototype.$notify({message:e,type:["warning"],duration:2500})}};function s(e,n){var t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},"41cb":function(e,n,t){"use strict";t("b0c0"),t("d3b7");var a=t("2b0e"),r=t("8c4f"),o={login:"LOCKING | 登录",project:"LOCKING | 项目编辑",platform:"LOCKING | 平台选择",template:"LOCKING | 模板控制台",projnotice:"LOCKING | 更新提醒",notFound:"404 | 未找到该页面",workspace:"LOCKING | 项目详情",search:"LOCKING | 搜索",recycle:"LOCKING | 回收站",cloud:"LOCKING | 云盘",cloudrecycle:"LOCKING | 云回收站",cloudsource:"LOCKING | 云资源管理器",company:"LOCKING | 企业后台",message2:"LOCKING | 企业后台",company_message:"LOCKING | 平台消息",company_user:"LOCKING | 通讯录",company_project:"LOCKING | 项目管理",company_template:"LOCKING | 模板与应用",company_setting:"LOCKING | 通用设置",company_template_detail:"LOCKING | 模板查看",company_app:"LOCKING | 应用",company_template_market:"LOCKING | 应用市场",system:"LOCKING | 总后台",system_template:"LOCKING | 流程模板",system_template_mind:"LOCKING | 思维导图",system_template_matrix:"LOCKING | 矩阵模板",system_runmanage:"LOCKING | 运行管理",system_appcenter:"LOCKING | 应用管理",system_setting:"LOCKING | 总体权限",system_appinfo:"LOCKING | 应用介绍",system_template_file:"流程模板 | 样板文件"};a["default"].use(r["a"]);var c=new r["a"]({mode:"hash",routes:[{path:"/",name:"login",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-347878ae")]).then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-4c803a36")]).then(t.bind(null,"46a4"))}},{path:"/projdetail",name:"projdetail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-3fbc85f3"),t.e("chunk-60e599c5")]).then(t.bind(null,"47c5"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-55f85da7")]).then(t.bind(null,"1670"))}},{path:"/notification",name:"notification",component:function(){return Promise.resolve().then(t.bind(null,"d2ad"))}},{path:"/newproject",name:"newproject",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-3fbc85f3"),t.e("chunk-3261285a")]).then(t.bind(null,"a341"))}},{path:"/watchlink",name:"watchlink",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-62c7e6db")]).then(t.bind(null,"80fb"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-2b38f122")]).then(t.bind(null,"0a7f"))}},{path:"/index",name:"index",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-50365d46")]).then(t.bind(null,"011a"))}},{path:"/projnotice",name:"projnotice",component:function(){return t.e("chunk-05bf99c1").then(t.bind(null,"00ec"))}},{path:"/email",name:"email",component:function(){return t.e("chunk-2d0ac90d").then(t.bind(null,"19a0"))}},{path:"/workspace",name:"workspace",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-3fbc85f3"),t.e("chunk-34589b20"),t.e("chunk-16cd29cf")]).then(t.bind(null,"11f4"))}},{path:"/recycle",name:"recycle",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-584d398d")]).then(t.bind(null,"8b1e"))}},{path:"/history",name:"history",component:function(){return Promise.all([t.e("chunk-34589b20"),t.e("chunk-2d0d2af5")]).then(t.bind(null,"a2d2"))}},{path:"/cloud",name:"cloud",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-23d16c0d")]).then(t.bind(null,"4488"))}},{path:"/cloudrecycle",name:"cloudrecycle",component:function(){return t.e("chunk-2d224b2b").then(t.bind(null,"e0f0"))}},{path:"/cloudsource",name:"cloudsource",component:function(){return t.e("chunk-2d0c061a").then(t.bind(null,"4217"))}},{path:"/company",name:"company",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-3ccf94d4")]).then(t.bind(null,"db21"))},redirect:{name:"company_home"},children:[{path:"home",name:"company_home",component:function(){return t.e("chunk-309e49e4").then(t.bind(null,"345a"))}},{path:"message",name:"company_message",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0cf6a4")]).then(t.bind(null,"642b"))}},{path:"user",name:"company_user",component:function(){return t.e("chunk-145b0de7").then(t.bind(null,"29c0"))}},{path:"project",name:"company_project",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-038ce22f")]).then(t.bind(null,"e984"))}},{path:"template",name:"company_template",component:function(){return t.e("chunk-5e79f418").then(t.bind(null,"4083"))}},{path:"template/detail",name:"company_template_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-4a5d94c9"),t.e("chunk-802699f8")]).then(t.bind(null,"df39"))}},{path:"template/market",name:"company_template_market",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-4a5d94c9"),t.e("chunk-655d6881")]).then(t.bind(null,"be38"))}},{path:"setting",name:"company_setting",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-1fe39068")]).then(t.bind(null,"cda4"))}},{path:"app",name:"company_app",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0b3688")]).then(t.bind(null,"27f3"))}}]},{path:"/template",name:"template",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-ef8ce8b2")]).then(function(){var n=[t("65b7")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/template/create",name:"template_create",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-74b26ff1")]).then(function(){var n=[t("d235")];e.apply(null,n)}.bind(this)).catch(t.oe)}},{path:"/system",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-da5f603a")]).then(t.bind(null,"f364"))},redirect:{name:"system_customer"},children:[{path:"customer",name:"system_customer",component:function(){return t.e("chunk-550c5be4").then(t.bind(null,"f851"))}},{path:"template",name:"system_template",component:function(){return t.e("chunk-78390ace").then(t.bind(null,"81b5"))}},{path:"runmanage",name:"system_runmanage",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-11067227")]).then(t.bind(null,"d798"))}},{path:"template/matrix",name:"system_template_matrix",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-12a7ad0b")]).then(t.bind(null,"2275"))}},{path:"template/mind",name:"system_template_mind",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-638e5b5a"),t.e("chunk-a821f8e4")]).then(t.bind(null,"bccc"))}},{path:"template/tempfile",name:"system_template_file",component:function(){return t.e("chunk-28990618").then(t.bind(null,"f1f7"))}},{path:"appcenter",name:"system_appcenter",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d0e148e")]).then(t.bind(null,"7a7e"))}},{path:"appinfo",name:"system_appinfo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-2d21b850")]).then(t.bind(null,"bfb8"))}},{path:"setting",name:"system_setting",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-1fe40532")]).then(t.bind(null,"ddca"))}},{path:"*",redirect:{name:"system_customer"}}]},{path:"*",name:"notfound",component:function(){return t.e("chunk-05a1125b").then(t.bind(null,"9403"))}}]});c.beforeEach((function(e,n,t){"/"===e.path||sessionStorage.getItem("userId")?t():t({path:"/"})})),c.afterEach((function(e){window.document.title=o[e.name]||"LOCKING | 云建筑"}));n["a"]=c},"51b0":function(e,n,t){},"53be":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("4de4"),t("e260"),t("e6cf"),t("cca6"),t("a79d");var a=t("2b0e"),r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view",{ref:"mainpage",staticClass:"mt-40",class:{"mt-64":e.setMarginTop,"calc-height":e.setMarginTop,"workspace-bigbody":e.$route.path.indexOf("/workspace")>=0,"mt-76":"newproject"==e.$route.name||"projdetail"==e.$route.name},attrs:{id:"bigbody"}})],1)},o=[],c=(t("c975"),t("b0c0"),t("1d40")),i={components:{},name:"App",data:function(){return{header_show:!0,companyName:"",mypath:"/",showIndexOption:!1,showHelpPage:!1,searchName:"",isShowOutWorkSpace:!1,outWorkSpace:!1,isClient:c["a"].isClient,onlineStatus:!1,state:this.$store.state}},created:function(){var e=this;console.log("版本编译时间:","2021.03.22 15:21"),null!=document.getElementById("Loading")&&null!=document.getElementById("Loading").nodeName&&""!=document.getElementById("Loading").nodeName&&document.body.removeChild(document.getElementById("Loading")),"login"!=this.$route.name&&"notfound"!=this.$route.name&&"platform"!==this.$route.name||(this.header_show=!1),this.isClient&&c["a"].keepLiveTest((function(n){e.onlineStatus=n,e.$store.changeGatewayState(n),sessionStorage.setItem("isOnLine",String(n&&navigator.onLine))}),(function(n){e.$store.state.isMaxWindowSize=n}))},computed:{setMarginTop:function(){return this.isClient||"workspace"==this.$route.name},currentRoutePath:function(){return this.$route.path}},mounted:function(){window.addEventListener("scroll",this.handleScroll,!0)},methods:{handleScroll:function(){},showOption:function(){this.showIndexOption=!0},showHelp:function(){this.showHelpPage=!0},closeShowOption:function(){this.showIndexOption=!1,this.showHelpPage=!1},closeWorkSet:function(){"workspace"==this.$route.name&&this.$refs["mainpage"].closeAppManagePain()},getSearchName:function(e){this.searchName=e},getIsShowOutWorkSpace:function(e){this.outWorkSpace=!1,this.isShowOutWorkSpace=e},getOutWorkSpace:function(e){this.outWorkSpace=e}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)},watch:{$route:function(e){this.mypath=e.path},currentRoutePath:function(e){e.indexOf("projdetail")>=0?document.body.classList.add("set-bgc"):document.body.classList.remove("set-bgc")}}},u=i,s=(t("5c0b"),t("e18a"),t("6964"),t("2877")),d=Object(s["a"])(u,r,o,!1,null,"4cc0f4ba",null),l=d.exports,f=t("41cb"),p=t("5c96"),h=t.n(p),m=(t("0fae"),t("96cf"),t("1da1")),b=t("b775"),k=t("0f13"),g=t("3de1"),y=function(){return{gatewayState:!1,isMaxWindowSize:!1,client:c["a"].isClient?"桌面端":"WEB端"}},v=function(){return{isLogin:!1,accountId:void 0,accountName:void 0,userName:void 0,platformList:[],currentPlatform:{},currentCompanyId:void 0,avator:void 0,userInfo:{}}},w=function(){var e=Object.assign(y(),v());try{var n=JSON.parse(sessionStorage.getItem("user")),t=sessionStorage.getItem("companyId"),a=JSON.parse(sessionStorage.getItem("platform")||"{}");n&&n.accountId&&(e.isLogin=!0,Object.assign(e,n),e.currentCompanyId=t,e.currentPlatform=a)}catch(r){console.log("加载session数据失败"),e=Object.assign(y(),v())}return e},C={state:w(),setCurrentPlatform:function(e){this.state.currentPlatform=e,this.state.currentCompanyId=e.orgId,sessionStorage.companyId=e.orgId,sessionStorage.platform=JSON.stringify(e),sessionStorage.CompanyName=JSON.parse(sessionStorage.platform).orgName,sessionStorage.accountName=JSON.parse(sessionStorage.user).accountName;var n={API:"authentication/login",Action:"登录",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.accountName,Source:sessionStorage.client};Object(b["b"])("operation/record",n)},setIsMaxWindowSize:function(e){this.state.isMaxWindowSize=e},changeGatewayState:function(e){this.state.gatewayState=e},login:function(e,n){var t=this;return Object(m["a"])(regeneratorRuntime.mark((function a(){var r,o,c,i,u,s,d,l,f,p,h,m,y,v,w,C,O,j,I;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(b["b"])("authentication/login",{UserName:e,PassWord:n});case 2:if(r=a.sent,o=0===r.Code,o){a.next=6;break}return a.abrupt("return",r);case 6:if(t.state.isLogin=!0,c=Object(g["b"])(r.Data||{}),delete c.userExt,i=c.companyId,u=c.cnName,s=c.id,d=c.permission,l=c.backgroundPermission,f=[],p={accountId:s,accountName:e,userName:u,platformList:f,userInfo:c},h=3===l,m=2===l,!h){a.next=18;break}f.push(Object(k["d"])(k["b"].MANAGE_CENTER,i,"LOCKING 总后台",void 0,[])),a.next=29;break;case 18:return a.next=20,Object(b["b"])("company/queryFrontDeskCompanyById",{id:i});case 20:if(y=a.sent,0===y.Code){a.next=23;break}return a.abrupt("return",y);case 23:v=y.Data,w=void 0===v?{}:v,C=w.company,O=C.LogoUrl,j=C.CompanyName,I=[],m&&I.push(k["a"].CompanyConsole),1===d&&I.push(k["a"].ProjectManager),f.push(Object(k["d"])(k["b"].COMPANY,i,j,O,I));case 29:return t.state.isLogin=!0,Object.assign(t.state,p),sessionStorage.client=t.state.client,sessionStorage.userId=s,sessionStorage.accountId=s,sessionStorage.user=JSON.stringify(p),a.abrupt("return",{Code:r.Code,Data:p});case 36:case"end":return a.stop()}}),a)})))()},logout:function(){var e={API:"authentication/loginOut",Action:"注销",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.accountName,Source:sessionStorage.client};Object(b["b"])("operation/record",e),this.state=Object.assign(this.state,v()),Object(b["b"])("authentication/loginOut"),sessionStorage.clear()}},O=t("2f62"),j=t("a78e"),I=t.n(j),N=t("5ab9"),S=function(e){return Object(N["a"])(e)||"/static/img/avator_default.svg"},x=function(e,n){var t="avator"===n?"/static/img/avator_default.svg":"";return Object(N["a"])(e)||t},P=t("caf9"),_=t("32ed"),L=t.n(_),E=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.src,expression:"src"}]})},R=[],A={props:{src:String}},G=A,$=Object(s["a"])(G,E,R,!1,null,null,null),T=$.exports,M=(t("856b"),t("d903"),t("c610"),t("935a"),t("51b0"),t("53be"),t("1f94"),t("d2ad")),K=a["default"].extend(M["default"]),F=document.createElement("div");F.style="position: fixed; right: 32px; top: 68px;z-index:99999",document.body.appendChild(F);var W=function(e){var n=new K({propsData:e});n.vm=n.$mount(),F.appendChild(n.vm.$el)},H=W;a["default"].use(h.a),a["default"].use(P["a"]),a["default"].use(O["a"]),a["default"].prototype.$cookie=I.a,a["default"].component("ImgLazy",T),a["default"].prototype.$axios=b["a"],a["default"].prototype.$fetch=b["a"],a["default"].prototype.$fetchApi=b["b"],a["default"].filter("resolveImg",x),a["default"].filter("resolveAvator",S),a["default"].prototype.$bus=new a["default"],a["default"].prototype.$notify=H,a["default"].use(L.a),a["default"].config.productionTip=!1,new a["default"]({router:f["a"],store:C,render:function(e){return e(l)}}).$mount("#app")},"5ab9":function(e,n,t){"use strict";t.d(n,"c",(function(){return u})),t.d(n,"b",(function(){return s})),t.d(n,"a",(function(){return l}));t("99af"),t("c975"),t("ac1f"),t("1276"),t("96cf");var a=t("1da1"),r=t("9b15"),o=t("2ef0"),c=new r({region:"oss-cn-hangzhou",accessKeyId:"LTAI4G2BEDNpfdLmquYYMaMV",accessKeySecret:"tPhAL3qAgF9Tq67h73snAmwu8iPZ5t",bucket:"yiyun-client-files",secure:!0}),i=function(e){return"".concat((new Date).getTime(),"/").concat(e)},u=function(e){return"oss://".concat(e)};function s(e,n){return d.apply(this,arguments)}function d(){return d=Object(a["a"])(regeneratorRuntime.mark((function e(n,t){var a,r,o,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.length>2&&void 0!==u[2]?u[2]:{},e.prev=1,r=i(n),e.next=5,c.multipartUpload(r,t,a);case 5:return o=e.sent,e.abrupt("return",o);case 9:return e.prev=9,e.t0=e["catch"](1),console.error("file upload failed:",e.t0),e.abrupt("return",null);case 13:case"end":return e.stop()}}),e,null,[[1,9]])}))),d.apply(this,arguments)}var l=Object(o["memoize"])((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(0!==e.indexOf("oss://"))return e;var t=e.substr(6),a=n||t.split("/").pop();try{var r=3600,o=c.signatureUrl(t,{expires:r,response:{"content-disposition":'attachment; filename="'.concat(a,'"')}});return setTimeout((function(){l.cache.delete(e)}),1e3*r),o}catch(i){return null}}))},"5b49":function(e,n,t){"use strict";var a=t("1f09"),r=t.n(a);r.a},"5c0b":function(e,n,t){"use strict";var a=t("9c0c"),r=t.n(a);r.a},6964:function(e,n,t){"use strict";var a=t("7dff"),r=t.n(a);r.a},"7dff":function(e,n,t){},"856b":function(e,n,t){},"935a":function(e,n,t){},"99e1":function(e,n,t){"use strict";var a=t("f225"),r=t.n(a);r.a},"9c0c":function(e,n,t){},b775:function(e,n,t){"use strict";t.d(n,"b",(function(){return d})),t.d(n,"c",(function(){return f}));t("99af"),t("c975"),t("fb6a"),t("d3b7"),t("ac1f"),t("25f0"),t("1276"),t("96cf");var a=t("3835"),r=t("1da1"),o=t("bc3a"),c=t.n(o),i=t("2b0e"),u=t("41cb"),s=t("3de1");function d(e,n,t){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(n,t,r){var o,i,u,s,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=p(n),i=Object(a["a"])(o,2),u=i[0],s=i[1],e.prev=1,e.next=4,"GET"===u?c.a.get(s,{params:t},r):c.a.post(s,t,r);case 4:return d=e.sent,e.abrupt("return",d.data);case 8:if(e.prev=8,e.t0=e["catch"](1),!e.t0.response||!e.t0.response.status){e.next=16;break}e.t1=e.t0.response.status,e.next=404===e.t1?14:15;break;case 14:return e.abrupt("return",{Code:404,Msg:"找不到指定的服务。"});case 15:return e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 16:return console.error(e.t0),e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 18:case"end":return e.stop()}}),e,null,[[1,8]])}))),l.apply(this,arguments)}function f(e){if(0!==e.Code){var n=e.Code?e.Code.toString():"",t="error";404===e.Code&&(t="warning"),i["default"].prototype.$notify({message:e.Msg,title:n+"错误",type:t})}return e}function p(e){var n=e.split("/"),t=Object(a["a"])(n,1),r=t[0],o=-1!==["template","project","folder","file","templateCompany"].indexOf(r)?"pms":"cms",c="api/".concat(o,"/").concat("authentication"===r?"":"v1/").concat(e),i="GET";switch(e){case"authentication/login":case"authentication/passwordCheck":case"company/addCompany":case"company/queryGeneralOverview":case"company/queryProviceTree":case"company/updateCompanyById":case"company/link/addCompanyLink":case"company/link/updateCompanyLink":case"dept/addDept":case"dept/updateDept":case"user/addUser":case"user/resetPassWord":case"user/updateUser":case"template/createTemplate":case"template/fileExchange":case"template/updateTemplate":case"template/uploadingXmind":case"template/addTemplateNodeModelFile":case"template/createNestedRelevance":case"template/connectNestTemplateFolder":case"folder/createSubfolder":case"project/createProject":case"project/editProject":case"project/assignedWork":case"file/addArchMilesStone":case"file/addFile":case"file/updateFile":case"file/fileCoordinationChange":case"file/setShareFile":case"operation/record":case"file/updateProjArchiveHistory":case"templateCompany/addTemplateCompany":case"project/addProjectGobalConfig":i="POST";break;default:i="GET";break}return[i,c]}c.a.defaults.withCredentials=!0,c.a.interceptors.request.use((function(e){return 0===e.url.indexOf("api/")&&(e.url="".concat("/api/").concat(e.url.slice(4))),e}),(function(e){return Promise.reject(e)})),c.a.interceptors.response.use((function(e){return e}),(function(e){if(e.response)switch(e.response.status){case 401:"/"!=u["a"].currentRoute.fullPath&&(s["d"].error("登录超时,请重新登录"),sessionStorage.clear(),u["a"].push({path:"/"}));break}return Promise.reject(e)})),n["a"]=c.a},c610:function(e,n,t){},d2ad:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("transition",{attrs:{name:"fade"}},[e.show?t("div",{staticClass:"notification_box"},[Array.isArray(e.type)?t("div",{staticClass:"notification_img"},[t("img",{class:e.type[1]?"leftIcon":""+e.typeList[e.type[0]].class,attrs:{src:e.typeList[e.type[0]].imgSrc,alt:""}}),e.type[1]?t("img",{staticClass:"righticon",attrs:{src:e.typeList[e.type[1]].imgSrc,alt:""}}):e._e()]):t("div",{staticClass:"notification_img"},[t("img",{class:e.typeList[e.type].class,attrs:{src:e.typeList[e.type].imgSrc,alt:""}})]),t("div",{staticClass:"notification_msg"},[t("div",{staticClass:"notification_msg_content"},[t("div",{staticClass:"notification_title",class:{hidden:!e.title}},[e._v(e._s(e.title))]),t("div",{staticClass:"notification_context",class:{middle:!e.title}},[e._v(e._s(e.message))])]),t("p",{staticClass:"closeBtn",attrs:{href:""},on:{click:e.handleClose}},[t("img",{attrs:{src:"/static/img/删除.svg",alt:""}})])])]):e._e()])},r=[],o=(t("a9e3"),function(e,n){return{imgSrc:"/static/img/"+e,class:n}}),c={success:o("success.svg","notifyIcon"),error:o("严重警示.svg","notifyIcon"),warning:o("事件警示.svg","notifyIcon"),"file-txt":o("file_txt.png","fileIcon"),"file-pdf":o("file_pdf.png","fileIcon"),"file-word":o("file_word.png","fileIcon"),"file-excel":o("file_excel.png","fileIcon"),"file-ppt":o("file_ppt.png","fileIcon"),upload:o("upload.png","notifyIcon"),download:o("download.svg","notifyIcon"),cooperation:o("download.svg","notifyIcon")},i={name:"Notification",props:{type:{},inItem:{type:Boolean,defalt:!1},offset:{type:Number,default:100},title:{type:String,default:""},message:{type:String,default:""},duration:{type:Number,default:3e3}},data:function(){return{show:!1,typeList:c,timer:""}},watch:{show:function(e){var n=this;e||setTimeout((function(){n.destroyElement()}),1e3)}},methods:{destroyElement:function(){this.$destroy(!0),this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},handleClose:function(){this.show=!1}},created:function(){var e=this;this.timer=setTimeout((function(){e.show=!1}),this.duration)},mounted:function(){this.show=!0},beforeDestroy:function(){clearTimeout(this.timer)}},u=i,s=(t("5b49"),t("99e1"),t("2877")),d=Object(s["a"])(u,a,r,!1,null,"3a7b0566",null);n["default"]=d.exports},d903:function(e,n,t){},e01b:function(e,n,t){},e18a:function(e,n,t){"use strict";var a=t("e01b"),r=t.n(a);r.a},f225:function(e,n,t){}}); \ No newline at end of file diff --git a/static/js/chunk-038ce22f.35b704a7.js b/static/js/chunk-038ce22f.8b4aa8ab.js similarity index 100% rename from static/js/chunk-038ce22f.35b704a7.js rename to static/js/chunk-038ce22f.8b4aa8ab.js diff --git a/static/js/chunk-05a1125b.e5438160.js b/static/js/chunk-05a1125b.5e7a002d.js similarity index 100% rename from static/js/chunk-05a1125b.e5438160.js rename to static/js/chunk-05a1125b.5e7a002d.js diff --git a/static/js/chunk-05bf99c1.8a358071.js b/static/js/chunk-05bf99c1.2ca39780.js similarity index 100% rename from static/js/chunk-05bf99c1.8a358071.js rename to static/js/chunk-05bf99c1.2ca39780.js diff --git a/static/js/chunk-11067227.978c0fb7.js b/static/js/chunk-11067227.43ac3134.js similarity index 100% rename from static/js/chunk-11067227.978c0fb7.js rename to static/js/chunk-11067227.43ac3134.js diff --git a/static/js/chunk-12a7ad0b.dc2ae12f.js b/static/js/chunk-12a7ad0b.ce745a8d.js similarity index 100% rename from static/js/chunk-12a7ad0b.dc2ae12f.js rename to static/js/chunk-12a7ad0b.ce745a8d.js diff --git a/static/js/chunk-145b0de7.f497dc0f.js b/static/js/chunk-145b0de7.d9a8462b.js similarity index 100% rename from static/js/chunk-145b0de7.f497dc0f.js rename to static/js/chunk-145b0de7.d9a8462b.js diff --git a/static/js/chunk-16cd29cf.8661a1f7.js b/static/js/chunk-16cd29cf.2200473c.js similarity index 100% rename from static/js/chunk-16cd29cf.8661a1f7.js rename to static/js/chunk-16cd29cf.2200473c.js diff --git a/static/js/chunk-1fe39068.8ac29753.js b/static/js/chunk-1fe39068.42d0a9aa.js similarity index 100% rename from static/js/chunk-1fe39068.8ac29753.js rename to static/js/chunk-1fe39068.42d0a9aa.js diff --git a/static/js/chunk-1fe40532.4722373d.js b/static/js/chunk-1fe40532.e2d1a8d4.js similarity index 100% rename from static/js/chunk-1fe40532.4722373d.js rename to static/js/chunk-1fe40532.e2d1a8d4.js diff --git a/static/js/chunk-23d16c0d.bc2b5a5a.js b/static/js/chunk-23d16c0d.09869855.js similarity index 100% rename from static/js/chunk-23d16c0d.bc2b5a5a.js rename to static/js/chunk-23d16c0d.09869855.js diff --git a/static/js/chunk-28990618.f18c14ff.js b/static/js/chunk-28990618.51182dfd.js similarity index 100% rename from static/js/chunk-28990618.f18c14ff.js rename to static/js/chunk-28990618.51182dfd.js diff --git a/static/js/chunk-2b38f122.c1e6ee94.js b/static/js/chunk-2b38f122.704e037c.js similarity index 100% rename from static/js/chunk-2b38f122.c1e6ee94.js rename to static/js/chunk-2b38f122.704e037c.js diff --git a/static/js/chunk-2d0ac90d.22471421.js b/static/js/chunk-2d0ac90d.57e27f61.js similarity index 100% rename from static/js/chunk-2d0ac90d.22471421.js rename to static/js/chunk-2d0ac90d.57e27f61.js diff --git a/static/js/chunk-2d0b3688.aaf50e33.js b/static/js/chunk-2d0b3688.3ad53188.js similarity index 100% rename from static/js/chunk-2d0b3688.aaf50e33.js rename to static/js/chunk-2d0b3688.3ad53188.js diff --git a/static/js/chunk-2d0c061a.28b4bfdc.js b/static/js/chunk-2d0c061a.fb634297.js similarity index 100% rename from static/js/chunk-2d0c061a.28b4bfdc.js rename to static/js/chunk-2d0c061a.fb634297.js diff --git a/static/js/chunk-2d0cf6a4.01f31b12.js b/static/js/chunk-2d0cf6a4.e502a19c.js similarity index 100% rename from static/js/chunk-2d0cf6a4.01f31b12.js rename to static/js/chunk-2d0cf6a4.e502a19c.js diff --git a/static/js/chunk-2d0e148e.15c6e69e.js b/static/js/chunk-2d0e148e.33509416.js similarity index 100% rename from static/js/chunk-2d0e148e.15c6e69e.js rename to static/js/chunk-2d0e148e.33509416.js diff --git a/static/js/chunk-2d21b850.3ab2efe4.js b/static/js/chunk-2d21b850.dd713c42.js similarity index 100% rename from static/js/chunk-2d21b850.3ab2efe4.js rename to static/js/chunk-2d21b850.dd713c42.js diff --git a/static/js/chunk-2d224b2b.6525c811.js b/static/js/chunk-2d224b2b.2d5b62e0.js similarity index 100% rename from static/js/chunk-2d224b2b.6525c811.js rename to static/js/chunk-2d224b2b.2d5b62e0.js diff --git a/static/js/chunk-309e49e4.88cc237b.js b/static/js/chunk-309e49e4.4daf4c79.js similarity index 100% rename from static/js/chunk-309e49e4.88cc237b.js rename to static/js/chunk-309e49e4.4daf4c79.js diff --git a/static/js/chunk-3261285a.0d25704e.js b/static/js/chunk-3261285a.9b8049f1.js similarity index 100% rename from static/js/chunk-3261285a.0d25704e.js rename to static/js/chunk-3261285a.9b8049f1.js diff --git a/static/js/chunk-34589b20.7103bf2c.js b/static/js/chunk-34589b20.4e7deec2.js similarity index 100% rename from static/js/chunk-34589b20.7103bf2c.js rename to static/js/chunk-34589b20.4e7deec2.js diff --git a/static/js/chunk-347878ae.fbdbd0ad.js b/static/js/chunk-347878ae.ff831286.js similarity index 100% rename from static/js/chunk-347878ae.fbdbd0ad.js rename to static/js/chunk-347878ae.ff831286.js diff --git a/static/js/chunk-3ccf94d4.dfad4f30.js b/static/js/chunk-3ccf94d4.3cdaf64c.js similarity index 100% rename from static/js/chunk-3ccf94d4.dfad4f30.js rename to static/js/chunk-3ccf94d4.3cdaf64c.js diff --git a/static/js/chunk-3fbc85f3.99af10e4.js b/static/js/chunk-3fbc85f3.66c665d3.js similarity index 100% rename from static/js/chunk-3fbc85f3.99af10e4.js rename to static/js/chunk-3fbc85f3.66c665d3.js diff --git a/static/js/chunk-43a9a3bd.025502f8.js b/static/js/chunk-43a9a3bd.025502f8.js deleted file mode 100644 index 610ea159..00000000 --- a/static/js/chunk-43a9a3bd.025502f8.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-43a9a3bd"],{"14b7":function(e,t,s){},2532:function(e,t,s){"use strict";var r=s("23e7"),i=s("5a34"),a=s("1d80"),n=s("ab13");r({target:"String",proto:!0,forced:!n("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},"30c5":function(e,t,s){},"45fc":function(e,t,s){"use strict";var r=s("23e7"),i=s("b727").some,a=s("a640"),n=s("ae40"),o=a("some"),l=n("some");r({target:"Array",proto:!0,forced:!o||!l},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"47c5":function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"proj-detail"},[s("app-header",{attrs:{theme:"basis",isShowTopBar:!0,backBtnTitle:e.isEnterEdit?"":"退出项目编辑",showUserCenter:!1,showBackBtn:!e.isEnterEdit,onBackBtnClick:e.returnToProjListPage}}),s("div",{staticClass:"content-wrap",class:{"set-content-wrap":e.isEnterEdit}},[e.isEnterEdit?e._e():s("div",{staticClass:"graph-left-part"}),s("div",{staticClass:"right-part",class:{"set-right-part-width":e.isEnterEdit}},[!e.isShowDistWorkPage&&e.isShowStartProjDesc?s("div",{ref:"projdesc",staticClass:"proj-desc adjust-top-radius"},[s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{showUserCenter:!1}},[s("div",{staticClass:"title",attrs:{slot:"left"},slot:"left"},[e._v("项目概况")]),s("div",{staticClass:"to-distwork-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.handleShowDistWorkPage(t)}},slot:"right"},[e._v("开始")])]),s("div",{staticClass:"proj-desc-wrap"},[s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("项目名称")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("项目负责")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateUserName))])]),s("div",{staticClass:"item cover-container"},[s("div",{staticClass:"item-title"},[e._v("封面")]),s("div",{staticClass:"item-value cover-img-wrap use-relative",style:e.showBackground(e.coverSrc)},[s("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[s("div",[e._v("编辑")])])],1)]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title proj-main-template"},[e._v("项目主要模板")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("模板负责")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("创建时间")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),e._l(e.listProjProp,(function(t){return s("div",{key:t.TempPropId,staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),s("div",{staticClass:"item-value"},[e._v(e._s(t.PropValue))])])}))],2)],1):e._e(),e.isShowDistWorkPage&&!e.isShowTemplateSummary?s("div",{staticClass:"distwork-page"},[e.isEnterEdit?s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isDistWorkPartScroll},attrs:{title:"指派工作",showUserCenter:!1}},[s("div",{staticClass:"finish-edit-btn",attrs:{slot:"left"},on:{click:function(t){return t.stopPropagation(),e.finishEditClick(t)}},slot:"left"},[e._v("完成编辑")]),s("div",{staticClass:"question",attrs:{slot:"right"},slot:"right"},[s("i",{staticClass:"ques-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),s("span",{staticClass:"ques-text"},[e._v("了解工作负责人")])])]):s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isDistWorkPartScroll},attrs:{backBtnTitle:"项目概况",onBackBtnClick:e.showProjDetailClick,title:e.nowProject.TempName,showUserCenter:!1,showBackBtn:!0}}),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowManagerTips,expression:"isShowManagerTips"}],staticClass:"manager-tips"},[s("i",{staticClass:"close-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),s("div",{staticClass:"tips-text"},[e._v("工作负责人将有权管理“负责工作中的成员”,点击用户头像变更工作负责人。")])]),s("div",{ref:"distworkpart",staticClass:"part-wrap"},[e.isEnterEdit?e._e():s("div",{staticClass:"template-detail-btn",on:{click:function(t){t.stopPropagation(),e.isShowTemplateSummary=!0,e.isEnterEditPropValue=!1}}},[e._v("模板概况")]),e.isProjManager?s("div",{staticClass:"manager-folder-wrap",class:{"active-folder mb-36":e.isEditProjManager,"only-manager-see folder-click":!e.isEnterEdit}},[s("div",{staticClass:"row-title"},[e._v("项目管理权限")]),s("div",{staticClass:"proj-manager-row use-relative",on:{click:function(t){return t.stopPropagation(),e.activeManagerClick(t)}}},[e.isEnterEdit&&e.isEditProjManager?e._e():s("div",{staticClass:"use-relative ml-4 clear-fix"},[s("div",{staticClass:"use-relative fl"},[s("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{user:e.currUser,isShowManagerMark:e.isEnterEdit}})],1),s("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),s("div",{staticClass:"use-flex fl"},[e.listManagerUser&&e.listManagerUser.length>0?s("div",{staticClass:"use-flex fl"},e._l(e.filterManageFromListUser(e.currUser.id,e.listManagerUser),(function(t){return s("people-item",{key:t.id,attrs:{user:t,isEnterEdit:e.isEnterEdit}})})),1):e._e(),!e.isEnterEdit&&e.isProjCreator?s("people-item",{nativeOn:{click:function(t){return t.stopPropagation(),e.addProjManager(t)}}}):e._e()],1)]),e.isEnterEdit&&e.isEditProjManager?s("div",{staticClass:"use-relative ml-4 use-flex"},[s("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]):e._e(),s("plain-folder-list",{staticClass:"plain-folder-list",attrs:{nestNodeList:e.nestNodeList,isEnterEdit:e.isEnterEdit,id:e.userId,lastFolderId:e.lastFolderId,folderList:e.listNewFolder,allManager:e.currUser,allManagerChild:e.listManagerUser,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists,activeFolderId:e.activeFolderId,selectedUser:e.selectedUser,isProjManager:e.isProjManager}})],1)],1):e._e(),e.isShowTemplateSummary?s("div",{staticClass:"template-summary"},[s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isTemplateDescScroll},attrs:{backBtnTitle:"返回",theme:"",onBackBtnClick:e.returnToDistWorkClick,title:e.nowProject.TempName,showUserCenter:!1,showBackBtn:!0}},[s("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.handleEditTemplate(t)}},slot:"right"},[e._v(" "+e._s(e.isEnterEditPropValue?"完成编辑":"修改")+" ")])]),Object.keys(e.nowProject).length>0?s("div",{ref:"templatedesc",staticClass:"summary-wrap"},[s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("模板负责")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("创建时间")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("工程名称")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjName))])]),e._l(e.listProjProp,(function(t){return s("div",{key:t.TempPropId,staticClass:"item"},[s("div",{staticClass:"item-title",class:{"adjust-title-position":e.isEnterEditPropValue}},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),s("div",{staticClass:"item-value"},[e.isEnterEditPropValue?s("input",{directives:[{name:"model",rawName:"v-model",value:t.PropValue,expression:"prop.PropValue"}],staticClass:"prop-value-input",attrs:{type:"text"},domProps:{value:t.PropValue},on:{input:function(s){s.target.composing||e.$set(t,"PropValue",s.target.value)}}}):s("div",[e._v(e._s(t.PropValue))])])])}))],2):e._e()],1):e._e(),e.isStartEditNestTemp?s("nest-temp",{attrs:{isTemNestInProp:e.isTemNest,nestNodeFolder:e.nestNodeFolder},on:{enterDistWork:e.enterDistWork}}):e._e()],1),e.isEnterEdit?s("div",{staticClass:"personnel-list-part",class:{"set-personnel-list-width":e.isEnterEdit}},[s("personnel-list",{attrs:{treeList:e.memberTree,selectedKeys:e.selectedMemberKeys},on:{select:e.onSelectMembers}})],1):e._e()])],1)},i=[],a=(s("4de4"),s("7db0"),s("c740"),s("4160"),s("caad"),s("a15b"),s("d81d"),s("fb6a"),s("a434"),s("d3b7"),s("ac1f"),s("2532"),s("3ca3"),s("1276"),s("159b"),s("ddb0"),s("4f96")),n=s("3835"),o=s("5530"),l=s("2909"),c=(s("96cf"),s("1da1")),d=s("5ab9"),u=s("b1f3"),h=s("f96e"),p=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",e._l(e.folderList,(function(t){return s("div",{key:t.id},[s("div",[s("div",{ref:"activeFolder",refInFor:!0,staticClass:"folder-wrap folder-hover",class:{"active-folder":t.id==e.activeFolderId&&e.isEnterEdit,"folder-click":!e.isEnterEdit},on:{click:function(s){return s.stopPropagation(),e.activeFolderClick(t)}}},[s("div",{staticClass:"folder-name",class:{"opacity-5":!e.isAllowedAssignedStaffFolder}},[s("span",[e._v(e._s(t.folderName))]),e.isProjManager?e._e():s("span",{staticClass:"user-perm-text"})]),e.isEnterEdit&&e.activeFolderId===t.id?e._e():s("div",{staticClass:"clear-fix border-box",class:{"mb-36":t.id===e.activeFolderId&&e.isEnterEdit,"ml-4":!e.isEnterEdit,"adjust-position":e.isEnterEdit}},[s("div",{staticClass:"fl"},[t.manageUser&&0==t.manageUser.length?s("div",[e.isAllowedAssignedFolder(t)?s("div",{staticClass:"use-relative"},[e.isEnterEdit?s("people-item"):s("people-item",{class:{"mr-8":!e.isEnterEdit},nativeOn:{click:function(s){s.stopPropagation(),e.aloneAddUserForFolder(t),e.enterEditFolderClick(t)}}})],1):s("div",{staticClass:"notclick"},[s("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{isShowEmptyAvatar:!0}})],1)]):s("div",{staticClass:"use-flex"},e._l(t.manageUser,(function(r,i){return s("div",{key:r.id},[s("div",{staticClass:"use-relative"},[s("people-item",{class:{notclick:!e.isAllowedAssignedStaffFolder(t),"mr-8":!e.isEnterEdit},attrs:{user:r,isShowManagerMark:e.isEnterEdit}})],1)])})),0)]),s("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),s("div",{staticClass:"use-flex",class:{"mb-6":e.isEnterEdit&&e.activeFolderId!==t.id}},[e._l(e.listUserComputed(t.listUser),(function(r){return s("div",{key:r.id,class:{notclick:!(e.isAllowedAssignedStaffFolder(t)||e.isStaff(t))}},[s("people-item",{attrs:{user:r,isEnterEdit:e.isEnterEdit}})],1)})),t.manageUser&&t.manageUser.length>0&&e.isAllowedAssignedStaffFolder(t)?s("div",{staticClass:"add-btn"},[e.isEnterEdit?e._e():s("people-item",{nativeOn:{click:function(s){s.stopPropagation(),e.aloneAddUserOnlyStaff(t),e.enterEditFolderClick(t)}}})],1):e._e(),e.isNest(t.nodeId)?s("div",{staticClass:"stand-place"}):e._e(),e.isNest(t.nodeId)&&!e.isEnterEdit?s("div",{staticClass:"add_nest"},[s("div",{staticClass:"add_nest_box",on:{click:function(s){return s.stopPropagation(),e.enterNestTemp(t)}}},[s("i",{staticClass:"el-icon-plus"}),s("p",[e._v("嵌套模板")])])]):e._e()],2)]),e.isEnterEdit&&e.activeFolderId==t.id?s("div",{staticClass:"use-relative ml-4 mb-36 use-flex border-box",class:{"adjust-margin":t.id===e.lastFolderId}},[s("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]),t.listChildren&&t.listChildren.length>0?[s("plain-folder-list",{attrs:{folderList:t.listChildren,id:e.id,lastFolderId:e.lastFolderId,allManager:e.allManager,allManagerChild:e.allManagerChild,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists,isEnterEdit:e.isEnterEdit,activeFolderId:e.activeFolderId,selectedUser:e.selectedUser,isProjManager:e.isProjManager,nestNodeList:e.nestNodeList}})]:e._e()],2)})),0)},m=[],f=(s("45fc"),function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"people-item",attrs:{title:e.user.cnName}},[s("div",{staticClass:"people-wrap",class:{"rt-0":e.isShowManagerMark}},[s("div",{staticClass:"people"},[Object.keys(e.user).length>0?s("img",{staticClass:"proj-avatarface",class:{"manager-mark":e.isShowManagerMark},attrs:{src:e._f("resolveAvator")(e.user.headImgUrl),alt:""}}):e.isShowEmptyAvatar?s("img",{staticClass:"proj-avatarface empty",attrs:{src:"/static/img/暂无2.svg",alt:""}}):s("div",{staticClass:"add-btn"},[s("i",{staticClass:"el-icon-plus proj-avatarface"})])]),s("div",{staticClass:"people-name",class:{"rt-2":e.isEnterEdit&&e.isShowManagerMark,"rt-4":e.isEnterEdit&&!e.isShowManagerMark}},[e._v(e._s(e.user.cnName))])])])}),v=[],g={data:function(){return{}},computed:{},props:{user:{type:Object,default:function(){return{}}},isShowManagerMark:{type:Boolean,default:!1},isEnterEdit:{type:Boolean,default:!1},isShowEmptyAvatar:{type:Boolean,defualt:!1}},methods:{}},C=g,P=(s("8015"),s("2877")),w=Object(P["a"])(C,f,v,!1,null,"a9676b70",null),E=w.exports,j=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"temp-selected-user-list",style:{height:e.showAdjustHeight}},[s("div",{ref:"membersView",staticClass:"use-flex"},[e._l(e.memberList,(function(t){return s("div",{key:t.id,staticClass:"use-relative"},[s("people-item",{class:{"active-manager-mark":2==t.folderPerm},attrs:{user:t},nativeOn:{click:function(s){return s.stopPropagation(),e.changeManagerClick(t)}}}),2==t.folderPerm?s("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")]):e._e()],1)})),0==e.memberList.length?s("div",{staticClass:"use-relative",on:{click:function(t){return t.stopPropagation(),e.openPersonnelListClick(t)}}},[s("people-item",{staticClass:"active-manager-mark"}),s("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")])],1):e._e()],2)])},k=[],b={data:function(){return{selectedUserListEl:null,selectedUserListElWidth:0,selectedUserListElHeight:0,renderHeight:0,isAdjustHeight:!1}},components:{PeopleItem:E},props:{memberList:{type:Array,default:function(){return[]}}},mounted:function(){var e=this;document.body.addEventListener("resize",(function(){e.adjustHeightOperate()})),this.selectedUserListEl=this.$refs.membersView,this.selectedUserListEl&&(this.selectedUserListElWidth=this.selectedUserListEl.clientWidth,this.selectedUserListElHeight=this.selectedUserListEl.clientHeight,this.adjustHeightOperate())},computed:{selectedUserListLength:function(){return this.memberList.length},showAdjustHeight:function(){return this.isAdjustHeight?"".concat(this.selectedUserListElHeight-31,"px"):"auto"}},watch:{memberList:{immediate:!0,handler:function(e){if(e.length>0){var t=e.find((function(e){return e.folderPerm&&2==e.folderPerm}));t||(e[0].folderPerm=2,this.$emit("setFirstPeopleToManager",e[0]))}}},selectedUserListLength:function(e){var t=this;setTimeout((function(){t.selectedUserListElWidth=t.selectedUserListEl.clientWidth,t.selectedUserListElHeight=t.selectedUserListEl.clientHeight,t.adjustHeightOperate()}),50)}},methods:{openPersonnelListClick:function(){this.$bus.$emit("openPersonnelListClick")},changeManagerClick:function(e){this.$emit("changeManagerClick",e),this.adjustHeightOperate()},adjustHeightOperate:function(){this.isAdjustHeight=!1;var e=parseInt(this.selectedUserListElWidth/64),t=this.selectedUserListLength,s=t/e,r=0;if(s<=1)return this.isAdjustHeight=!0,void(this.renderHeight=this.selectedUserListElHeight-31);for(var i=0;i0&&this.allManagerChild.find((function(e){return e.id==t.id}))||this.allChildrenLists.length>0&&this.allChildrenLists.includes(e)},isAllowedAssignedStaffFolder:function(e){return e.manageUser&&e.manageUser.length>0&&e.manageUser[0].id==this.id||this.isAllowedAssignedFolder(e)},isStaff:function(e){var t=this;return e.listUser.some((function(e){return e.id===t.id}))}},computed:{listUserComputed:function(){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}}}},T=D,I=(s("e2bf"),Object(P["a"])(T,p,m,!1,null,"a16fdaa0",null)),N=I.exports,M=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"member-list"},[s("div",{staticClass:"top-title"},[e._v("选择成员")]),e._m(0),s("div",{staticClass:"hori-line"}),s("div",{staticClass:"content-wrap"},[s("div",{staticClass:"people-wrap"},[s("el-collapse",{model:{value:e.activeCompanyName,callback:function(t){e.activeCompanyName=t},expression:"activeCompanyName"}},e._l(e.treeList,(function(t){return s("el-collapse-item",{key:t.id,attrs:{name:t.id}},[s("template",{slot:"title"},[s("span",{staticClass:"company-title"},[e._v(e._s(t.label))])]),t.hasChildren?s("el-collapse",{model:{value:e.activeDeptNameList,callback:function(t){e.activeDeptNameList=t},expression:"activeDeptNameList"}},e._l(t.children,(function(t){return s("el-collapse-item",{directives:[{name:"show",rawName:"v-show",value:t.hasChildren,expression:"deptNode.hasChildren"}],key:t.id,attrs:{name:t.id}},[s("template",{staticClass:"dept-entry",slot:"title"},[s("span",{staticClass:"dept-name"},[e._v(e._s(t.label))]),s("div",{staticClass:"check-all-wrap",on:{click:function(s){return s.stopPropagation(),e.toggleAllDept(t)}}},[s("div",{staticClass:"checkbox",class:{checked:e.deptNodeSelectedMap[t.id]}}),s("span",[e._v("全选")])])]),e._l(t.children,(function(t){return s("div",{key:t.id,staticClass:"user-info-item",attrs:{label:t.label},on:{click:function(s){return s.stopPropagation(),e.toggleMember(t)}}},[s("img",{staticClass:"avatar-img",attrs:{src:e._f("resolveAvator")(t.data.headImgUrl),alt:""}}),s("span",{staticClass:"user-info-name"},[e._v(e._s(t.label))]),s("div",{staticClass:"checkbox",class:{checked:e.isSelected(t.id)}})])}))],2)})),1):s("div",{staticClass:"empty-people-tips"},[e._v("暂未添加人员")])],2)})),1)],1)])])},_=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"search-bar"},[s("i",{staticClass:"search-icon"}),s("input",{staticClass:"search-input",attrs:{placeholder:"搜索功能正在内测中",disabled:""}})])}],F={data:function(){var e=this.treeList[0],t=e?[e.id]:[],s=e?e.mapChildren((function(e){return e.id})):[];return this.clacAllSelected(),{ischeckAll:!1,activeCompanyName:t,activeDeptNameList:s}},methods:{isSelected:function(e){return!!this.selectedKeys.find((function(t){return t===e}))},isChildrenAllSelected:function(e){var t=this.selectedKeys;return e.everyChildren((function(e){return t.find((function(t){return t===e.id}))}))},toggleAllDept:function(e){var t=!this.deptNodeSelectedMap[e.id];this.$emit("select",e.children,t)},toggleMember:function(e){var t=!this.isSelected(e.id);this.$emit("select",[e],t)},clacAllSelected:function(){var e=this,t={};this.treeList.forEach((function(s){s.mapChildren((function(s){var r=e.isChildrenAllSelected(s);r&&(t[s.id]=!0)}))})),this.deptNodeSelectedMap=t}},props:{treeList:{type:Array,default:function(){return[]}},selectedKeys:{type:Array,default:function(){return[]}}},watch:{selectedKeys:{immediate:!0,handler:function(e){this.clacAllSelected()}},treeList:{immediate:!0,handler:function(e){this.clacAllSelected()}}}},L=F,O=(s("e040"),s("c8e2"),Object(P["a"])(L,M,_,!1,null,"58e87d7b",null)),x=O.exports,$=s("9e5b"),A=s("93d6"),W=s("2ef0"),B=(s("a623"),s("ade3")),R=s("d4ec");function H(e,t){for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:Y;return this.hasChildren?(this.children.sort(e),this):this}},{key:"mapChildren",value:function(e){return this.hasChildren?this.children.map(e):[]}},{key:"everyChildren",value:function(e){return!!this.hasChildren&&this.children.every(e)}},{key:"hasChildren",get:function(){return this.children&&!!this.children.length}}]),e}(),Q=s("a06e"),X=s("b0f9"),Z=s("5a0c"),ee=s.n(Z),te=s("aa58"),se={data:function(){return{nestNodeFolder:{},nestNodeList:[],nowProject:{},listProjProp:[],cnName:"",selectedUser:[],selectedManageUser:[],isShowFirstPage:!0,isShowSecondPage:!1,isShowThreePage:!1,InitData:{},listNewFolder:[],oldFolderList:[],oldPlainFolderList:[],listDept:[],curProjCreatePeop:[],currWorkName:"",newProjFolderIndex:1,tempIndex:0,isShowdivid2:!1,currSelectData:[],currUser:{},isShowManager:!0,listManagerUser:[],oldListManagerUser:[],isProjManager:!1,isProjCreator:!1,currListDeptUserData:[],userList:[],memberTree:[],finishBtnClickCount:0,userId:sessionStorage.userId,allChildrenLists:[],isShowStartProjDesc:!0,isShowTemplateSummary:!1,isShowDistWorkPage:!1,isEnterEdit:!1,distWorkPartEl:null,isDistWorkPartScroll:!1,dlastScrollTime:null,isProjDescScroll:!1,projDescEl:null,isTemplateDescScroll:!1,templateDescEl:null,tlastScrollTime:null,isEditProjManager:!1,activeFolderId:"",activeFolder:null,coverSrc:"/static/img/faceImg/face01.png",isStartEditNestTemp:!1,isTemNest:!1,activeDeptName:"",isShowManagerTips:!1,isEnterEditPropValue:!1,isDistworkDone:!1,isDistworkSuccess:!1,lastFolderId:"",originPropListCopy:[],selectedMemberKeys:[]}},components:{AppHeader:h["a"],TopHeader:u["a"],PlainFolderList:N,PeopleItem:E,PersonnelList:x,TempSelectedUserList:y,FileUploader:$["a"],NestTemp:te["a"]},updated:function(){this.$refs.projdesc&&(this.projDescEl=this.$refs.projdesc,this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll),this.projDescEl.addEventListener("scroll",this.watchProjDescScroll)),this.$refs.distworkpart&&(this.distWorkPartEl=this.$refs.distworkpart,this.distWorkPartEl.removeEventListener("scroll",this.watchDistWorkPartScroll),this.distWorkPartEl.addEventListener("scroll",this.watchDistWorkPartScroll)),this.$refs.templateDescEl&&(this.templateDescEl=this.$refs.templatedesc,this.templateDescEl.removeEventListener("scroll",this.watchTemplateDescScroll),this.templateDescEl.addEventListener("scroll",this.watchTemplateDescScroll))},mounted:function(){this.isShowDistWorkPage=this.$route.query.isShowDistworkPage?this.$route.query.isShowDistworkPage:this.isShowDistworkPage,this.isShowStartProjDesc=!this.isShowDistWorkPage,this._getUserInfo(sessionStorage.userId),this.projInfo(sessionStorage.projId),this.cnName=JSON.parse(sessionStorage.user).cnName,this.fetchProjectDetail(),this.getNestNode(sessionStorage.templateID),this.projDescEl=this.$refs.projdesc,this.projDescEl&&this.projDescEl.addEventListener("scroll",this.watchProjDescScroll),this.distWorkPartEl=this.$refs.distworkpart,this.distWorkPartEl&&this.distWorkPartEl.addEventListener("scroll",this.watchDistWorkPartScroll),this.templateDescEl=this.$refs.templatedesc,this.templateDescEl&&this.templateDescEl.addEventListener("scroll",this.watchTemplateDescScroll),this.$bus.$on("enterEditFolderClick",this.enterEditFolderClick),this.$bus.$on("activeFolderClick",this.activeFolderClick),this.$bus.$on("changeManagerClick",this.changeManagerClick),this.$bus.$on("setFirstPeopleToManager",this.setFirstPeopleToManager),this.$bus.$on("enterNestTemp",this.enterNestTemp)},beforeDestroy:function(){this.projDescEl&&this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll),this.distWorkPartEl&&this.distWorkPartEl.removeEventListener("scroll",this.watchDistWorkPartScroll),this.templateDescEl&&this.templateDescEl.removeEventListener("scroll",this.watchTemplateDescScroll),this.$bus.$off("enterEditFolderClick",this.enterEditFolderClick),this.$bus.$off("activeFolderClick",this.activeFolderClick),this.$bus.$off("changeManagerClick",this.changeManagerClick),this.$bus.$off("setFirstPeopleToManager",this.setFirstPeopleToManager),this.$bus.$off("enterNestTemp",this.enterNestTemp)},methods:{showBackground:function(e){var t=this.$options.filters["resolveImg"],s=t(e);return{background:"center/cover no-repeat url(".concat(s,")")}},handleShowDistWorkPage:function(){this.isShowDistWorkPage=!0},handleEditTemplate:function(){this.isEnterEditPropValue=!this.isEnterEditPropValue,this.isEnterEditPropValue||(this.originPropListCopy=this.listProjProp,this.$notify({type:["success"],message:"修改模板概况成功"}))},enterNestTemp:function(e){this.isShowDistWorkPage=!1,this.isShowStartProjDesc=!1,this.isShowTemplateSummary=!1,this.isStartEditNestTemp=!0,this.isTemNest=!0,this.nestNodeFolder=e},enterDistWork:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isShowDistWorkPage=!0,e.isShowStartProjDesc=!0,e.isShowTemplateSummary=!1,e.isStartEditNestTemp=!1,e.isTemNest=!1,e.fetchProjectDetail();case 6:case"end":return t.stop()}}),t)})))()},returnToProjListPage:function(){this.isDistworkDone&&this.isDistworkSuccess&&this.$notify({message:"工作指派完成。",type:["success"]}),this.$router.push({path:"/index"}).catch((function(e){return console.log(e)}))},getNestNode:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function s(){var r,i,a,n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=function(e,t){e.forEach(function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(s){var r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,X["l"](s.TemplateId);case 2:r=e.sent,i=r.Data||[],i.length>0&&t.push.apply(t,Object(l["a"])(i));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},s.next=3,X["l"](e);case 3:r=s.sent,i=r.Data||[],a=Object(l["a"])(r.Data),n(i,a),t.nestNodeList=a;case 8:case"end":return s.stop()}}),s)})))()},projInfo:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function s(){var r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,Q["c"](e);case 2:if(r=s.sent,-1!=r.Code){s.next=6;break}return t.$notify({type:["error"],message:"项目概况信息查询失败"}),s.abrupt("return");case 6:t.nowProject=r.Data||{},t.nowProject.ProjCreateTime=ee()(t.nowProject.ProjCreateTime).format("YYYY/MM/DD"),t.nowProject=Object(o["a"])({},t.nowProject),t.listProjProp=r.Data.CustomProps||[],t.listProjProp=Object(l["a"])(t.listProjProp),t.originPropListCopy=Object(W["cloneDeep"])(t.listProjProp),t.coverSrc=r.Data.ShowImgUrl;case 13:case"end":return s.stop()}}),s)})))()},coverUploadSuccess:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function s(){var r,i,a;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return r=Object(d["c"])(e.ossUrl),t.coverSrc=r,i={ProjId:sessionStorage.projId,ImgUrl:t.coverSrc},s.next=5,Object(Q["b"])(i);case 5:a=s.sent,-1==a.Code&&t.$notify({message:"封面修改失败。",type:"success"});case 7:case"end":return s.stop()}}),s)})))()},setSystemCoverRandom:function(){},returnToDistWorkClick:function(){var e=this;this.isEnterEditPropValue?this.$confirm("是否保存当前项目的模板概况信息","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isShowTemplateSummary=!1,e.originPropListCopy=e.listProjProp;case 2:case"end":return t.stop()}}),t)})))).catch((function(){e.listProjProp=e.originPropListCopy})):this.isShowTemplateSummary=!1},showProjDetailClick:function(){this.isShowDistWorkPage=!1,this.isShowStartProjDesc=!0},setFirstPeopleToManager:function(e){0==this.selectedManageUser.length&&0!==this.selectedUser.length&&this.selectedManageUser.push(e)},filterManageFromListUser:function(e,t){return t.filter((function(t){return t.id!==e}))},watchProjDescScroll:function(){this.isProjDescScroll=this.projDescEl.scrollTop>0},watchTemplateDescScroll:function(){this.isTemplateDescScroll=this.templateDescEl.scrollTop>0},watchDistWorkPartScroll:function(){this.isDistWorkPartScroll=this.distWorkPartEl.scrollTop>0},activeManagerClick:function(){this.isProjCreator&&(this.isEditProjManager=!0,this.enterEditOperate(),this.activeFolderId="",this.activeFolder=null,this.addProjManager())},activeFolderClick:function(e){this.isEditProjManager=!1,this.activeFolderId=e.id,this.activeFolder=e,e.listUser&&0==e.listUser.length?this.aloneAddUserForFolder(e):this.aloneAddUserOnlyStaff(e)},enterEditFolderClick:function(e){this.activeFolderId=e.id,this.activeFolder=e,this.enterEditOperate()},enterEditOperate:function(){this.isEnterEdit=!0},finishEditClick:function(){this.isDistworkDone=!0,this.isEnterEdit=!1,this.selectedManageUser=[],this.selectedUser=[],this.isEditProjManager&&(this.isEditProjManager=!1),this.createFolders(),this.activeDeptName=""},addProjMangerBtnClick:function(){this.isEditProjManager=!0,this.enterEditOperate()},_getUserInfo:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function s(){var r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,Object(A["f"])(e);case 3:return s.sent,s.next=6,Object(A["f"])(sessionStorage.createUserID);case 6:r=s.sent,t.curProjCreatePeop=r.cnName+" 指派了新工作,请完成工作指派",1==sessionStorage.allocated&&(t.curProjCreatePeop="项目管理"),s.next=14;break;case 11:s.prev=11,s.t0=s["catch"](0),console.log(s.t0);case 14:case"end":return s.stop()}}),s,null,[[0,11]])})))()},isAllowedDelete:function(e){return!(!this.listManagerUser.includes(e)&&this.currUser.id!==e.id&&this.InitData.manageUser&&this.InitData.manageUser.length>0&&this.InitData.manageUser[0].id==sessionStorage.userId&&!this.allChildrenLists.includes(this.InitData)&&e.id==this.InitData.manageUser[0].id)},changeManagerClick:function(e){var t=this;if(this.isEditProjManager)this.$notify({message:"项目负责人无法更换。",type:"warning",offset:100,duration:5e3});else{var s=this.listManagerUser.map((function(e){return e.id}))||[];!s.includes(sessionStorage.userId)&&this.currUser.id!==sessionStorage.userId&&this.InitData.manageUser&&this.InitData.manageUser.length>0&&this.InitData.manageUser[0].id==sessionStorage.userId&&!this.allChildrenLists.includes(this.InitData)?this.$notify({message:"没有权限更换工作负责人。",type:"warning",offset:100,duration:5e3}):this.selectedUser.forEach((function(s){s.folderPerm=s.id===e.id?2:1,2===s.folderPerm&&t.InitData&&t.InitData.manageUser&&t.InitData.manageUser.splice(0,1,s)}))}},aloneAddUserForFolder:function(e){this.currSelectData=e,this.currWorkName=e.folderName,null==e.listUser&&(e.listUser=[]),this.InitData=e,this.setFolderPerm(e),this.selectedUser=e.listUser,this.selectedManageUser=e.manageUser,this.isShowSecondPage=!0,this.isShowFirstPage=!1},setFolderPerm:function(e){var t=e.listUser;this.selectedMemberKeys=t.map((function(e){return e.id}))},aloneAddUserOnlyStaff:function(e){this.isShowManager=!0,this.currWorkName=e.folderName,null==e.listUser&&(e.listUser=[]),this.InitData=e,this.setFolderPerm(e),this.selectedUser=e.listUser,this.selectedManageUser=e.manageUser,this.isShowThreePage=!0,this.isShowFirstPage=!1},addProjManager:function(){var e=this;this.activeFolderId="",this.isEditProjManager=!0,this.enterEditOperate(),this.isShowManager=!1;var t={listUser:[]};t.listUser=this.listManagerUser;var s=t.listUser.find((function(t){return t.id===e.currUser.id}));s&&0!=t.listUser.length||(this.currUser.folderPerm=2,t.listUser.unshift(this.currUser)),this.setFolderPerm(t),this.selectedUser=t.listUser,this.selectedManageUser=this.listManagerUser},onSelectMembers:function(e,t){var s=this,r=Object(l["a"])(this.selectedMemberKeys);e.forEach((function(e){var i=Object(W["cloneDeep"])(e.data),a=function(){s.checkDeptUserName(i,t),i.folderPerm=1,1==s.selectedUser.length&&1==t&&(i.folderPerm=2)};if(t){if(r.find((function(t){return t===e.id})))return;return r.push(e.id),void a()}if(s.isAllowedDelete(i))if(s.isEditProjManager&&i.id===s.currUser.id)s.$notify({message:"不可以移除项目创建者。",type:"warning",offset:100,duration:5e3});else{if(r=r.filter((function(e){return i.id!==e})),s.activeFolder&&s.activeFolder.manageUser.find((function(e){return e.id===i.id})))return s.removeManageUser(i),void s.activeFolder.manageUser.splice(0);if(s.isEditProjManager){var n=s.listManagerUser.findIndex((function(e){return e.id===i.id}));n>-1&&s.listManagerUser.splice(n,1)}a()}else s.$notify({message:"不能移除自己。",type:"warning",offset:100,duration:5e3})})),this.selectedMemberKeys=r},removeManageUser:function(e){e.folderPerm=1,this.selectedManageUser.splice(0,1);for(var t=0;t0&&(e.manageUser[0].folderPerm=2,e.listUser.unshift(e.manageUser[0])),e.listChildren&&e.listChildren.length>0&&t.getfolderPerm(e.listChildren)}))},getPlainOldFolderList:function(){var e=[];function t(s){s.length>0&&s.forEach((function(s){e.push(s),s.listChildren&&s.listChildren.length>0&&t(s.listChildren)}))}t(this.oldFolderList),this.oldPlainFolderList=e,this.lastFolderId=this.oldPlainFolderList[this.oldPlainFolderList.length-1].id},fetchProjectDetail:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var s,r,i,a,o,l,c,d,u,h,p,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e.$store.state.currentCompanyId,t.next=3,Promise.all([e.$fetchApi("folder/queryNodeFolderListByProjectId",{projectId:sessionStorage.projId}),G(s)]);case 3:r=t.sent,i=Object(n["a"])(r,2),a=i[0],o=i[1],l=o.treeList,c=o.memberMap,d=a.Data||{},u=d.folder,h=d.manager,e.memberTree=l,e.listManagerUser=h.map((function(e){var t;return null===(t=c[e.UserId])||void 0===t?void 0:t.data})),e.listManagerUser.length&&(e.currUser=e.listManagerUser[0]||{},e.isProjCreator=e.currUser.id===e.userId,e.listManagerUser=e.listManagerUser.slice(1),e.isProjManager=!!e.listManagerUser.find((function(t){return t.id==e.userId}))||e.currUser.id==e.userId),e.oldListManagerUser=Object(W["cloneDeep"])(e.listManagerUser),p=Object(W["uniqBy"])(u,"Id"),m=re(p,c),e.getfolderPerm(m),e.listNewFolder=m,e.oldFolderList=Object(W["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList(),e.getAllChildrenLists(e.listNewFolder,e.userId,e.allChildrenLists);case 21:case"end":return t.stop()}}),t)})))()},getChildren:function(e,t){var s=this;e.forEach((function(e){t.push(e),e.listChildren.length>0&&s.getChildren(e.listChildren,t)}))},getAllChildrenLists:function(e,t,s){var r=this;e.forEach((function(e){e.manageUser.length>0&&e.manageUser[0].id==t&&e.listChildren&&e.listChildren.length>0&&r.getChildren(e.listChildren,s)}))},createFolders:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var s,r,i,a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=function(e){e.length>0&&e.forEach((function(e){var t={FolderId:"",ManagerUserId:"",GeneralId:"",OldManager:"",OldGeneralId:""};t.FolderId=e.id;var a=[];t.ManagerUserId=e.manageUser.length>0?e.manageUser.map((function(e){return a.push(e.id),e.id})).join(","):"";var n=e.listUser.filter((function(e){return!a.includes(e.id)}));t.GeneralId=e.listUser.length>0?n.map((function(e){return e.id})).join(","):"";var o=r.find((function(t){return t.id==e.id})),l=o.manageUser.length>0?o.manageUser[0].id:"";t.OldManager=l,t.OldGeneralId=o.listUser.length>0?o.listUser.filter((function(e){return e.id!==l})).map((function(e){return e.id})).join(","):"",s.Work.push(t),i(e.listChildren)}))},s={Id:sessionStorage.createUserID,ProjId:sessionStorage.projId,ProjectManagerId:"",OldProjectManagerId:e.oldListManagerUser.map((function(e){return e.id})).join(","),Work:[]},s.ProjectManagerId=e.listManagerUser.length>0?e.listManagerUser.map((function(e){if(e.id!==sessionStorage.createUserID)return e.id})).join(","):"",r=e.oldPlainFolderList,i(e.listNewFolder),t.next=7,Object(Q["a"])(s);case 7:a=t.sent,n=e,0===a.Code?(e.isDistworkSuccess=!0,e.oldFolderList=Object(W["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList()):(e.isDistworkSuccess=!1,n.$notify({message:"服务器异常,工作指派失败。",type:["error"],duration:5e3}));case 10:case"end":return t.stop()}}),t)})))()}}};function re(e,t){var s=Object(a["a"])(e),r=s[0],i=(s[1],s.slice(2)),n=r.Id,l=[],c={};return i.forEach((function(e){var s=Object(K["b"])(e);c[s.id]=s,s.listChildren=[],s.listUser=s.oldGeneralId.split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(o["a"])({},t[e].data)})),s.manageUser=("0"===s.oldManager?"":s.oldManager).split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(o["a"])({},t[e].data)}));var r=s.superId;if(r!==n){var i=c[r];i&&i.listChildren.push(s)}else l.push(s)})),l}var ie=se,ae=(s("d5c4"),s("685f"),Object(P["a"])(ie,r,i,!1,null,"bbfdfbe8",null));t["default"]=ae.exports},"4f96":function(e,t,s){"use strict";s.d(t,"a",(function(){return o}));var r=s("0d21"),i=s("db90"),a=s("06c5"),n=s("3d8c");function o(e){return Object(r["a"])(e)||Object(i["a"])(e)||Object(a["a"])(e)||Object(n["a"])()}},"5a34":function(e,t,s){var r=s("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a5f":function(e,t,s){"use strict";var r=s("f290"),i=s.n(r);i.a},6690:function(e,t,s){},"685f":function(e,t,s){"use strict";var r=s("14b7"),i=s.n(r);i.a},8015:function(e,t,s){"use strict";var r=s("e3e1"),i=s.n(r);i.a},"8ed8":function(e,t,s){},a06e:function(e,t,s){"use strict";s.d(t,"d",(function(){return a})),s.d(t,"c",(function(){return o})),s.d(t,"b",(function(){return c})),s.d(t,"a",(function(){return u})),s.d(t,"e",(function(){return p}));s("96cf");var r=s("1da1"),i=s("b775");function a(e){return n.apply(this,arguments)}function n(){return n=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/queryProjectListByUserId",{userId:t});case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}function o(e){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/queryProjectInfoByProjId",{projId:t});case 2:return s=e.sent,e.abrupt("return",s);case 4:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function c(e){return d.apply(this,arguments)}function d(){return d=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/editProject",t);case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function u(e){return h.apply(this,arguments)}function h(){return h=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/assignedWork",t);case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function p(e){return m.apply(this,arguments)}function m(){return m=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/searchProject",{projName:t});case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}},a623:function(e,t,s){"use strict";var r=s("23e7"),i=s("b727").every,a=s("a640"),n=s("ae40"),o=a("every"),l=n("every");r({target:"Array",proto:!0,forced:!o||!l},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},aa58:function(e,t,s){"use strict";var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e.isTemNest?s("div",{staticClass:"template_nest"},[s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isNestTempScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"取消",onBackBtnClick:e.enterDistWork,title:"为“"+e.title+"”添加新模板"}},[s("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.enterNestTempImprove()}},slot:"right"},[e._v(" 选定模板 ")])]),s("div",{ref:"nestTemplateDesc",staticClass:"template_select_content"},[s("div",{staticClass:"template_connect"},[e._m(0),e._l(e.NestTemplateList,(function(t,r){return s("div",{key:t.Id,staticClass:"template_info",on:{click:function(s){return e.isChecked(r,t)}}},[s("div",{staticClass:"check_box",class:{checked:e.checkedIndex==r}},[s("i",{staticClass:"el-icon-check"})]),s("span",{staticClass:"template_info_name"},[e._v(e._s(t.TemplateName))])])}))],2)])],1):e._e(),e.isNestTemImprove?s("div",{staticClass:"template_improve"},[s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isTempImproveScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"选择模板",onBackBtnClick:e.enterSelectNestTemp,title:"完善模板信息"}},[s("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.addNestTemplate()}},slot:"right"},[e._v(" 创建 ")])]),s("div",{ref:"tempImproveDesc",staticClass:"summary-wrap"},[s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("模板名称")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.selectTemplate.TemplateName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("创建时间")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.createDate))])]),e._l(e.checkNewProjData.CustomProps,(function(t){return s("div",{key:t.Id,staticClass:"item"},[s("div",{staticClass:"item-title adjust-title-position"},[e._v(e._s((t.PropertyName?t.PropertyName:"自定义字段")+":"))]),s("div",{staticClass:"item-value"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.PropValue,expression:"prop.PropValue"}],staticClass:"prop-value-input",attrs:{type:"text"},domProps:{value:t.PropValue},on:{input:function(s){s.target.composing||e.$set(t,"PropValue",s.target.value)}}})])])}))],2)],1):e._e()])},i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"template_info_title"},[s("span",[e._v("已建立交换关系的模板")])])}],a=(s("4160"),s("d81d"),s("159b"),s("96cf"),s("1da1")),n=s("5530"),o=s("2909"),l=s("b0f9"),c=s("b1f3"),d={components:{TopHeader:c["a"]},props:{nestNodeFolder:Object,isTemNestInProp:{type:Boolean,default:!1}},data:function(){return{companyId:sessionStorage.companyId,createDate:(new Date).toLocaleDateString(),title:this.nestNodeFolder.folderName,NestTemplateList:[],isTemNest:!1,isNestTemImprove:!1,isNestTempScroll:!1,nestTemplateDescEl:null,isTempImproveScroll:!1,tempImproveDescEl:null,selectTemplate:{},checkedIndex:0,checkNewProjData:{Proj:{ProjName:"",CompanyId:"",Notice:"",ShowImgUrl:"",TemplateId:"",CreateUserId:"",ModifyUserId:""},Node:{},CustomProps:[]}}},mounted:function(){this.nestTemplateDescEl=this.$refs.nestTemplateDesc,this.nestTemplateDescEl&&this.nestTemplateDescEl.addEventListener("scroll",this.watchNestTempScroll),this.tempImproveDescEl=this.$refs.tempImproveDesc,this.tempImproveDescEl&&this.nestTemplateDescEl.addEventListener("scroll",this.watchTempImproveScroll)},beforeDestroy:function(){this.nestTemplateDescEl&&this.nestTemplateDescEl.removeEventListener("scroll",this.watchNestTempScroll),this.tempImproveDescEl&&this.tempImproveDescEl.removeEventListener("scroll",this.watchTempImproveScroll)},methods:{enterNestTempImprove:function(){this.isTemNest=!1,this.isNestTemImprove=!0,this.getTempProps(this.selectTemplate.TemplateId)},enterSelectNestTemp:function(){this.isTemNest=!0,this.isNestTemImprove=!1},getTempProps:function(e){var t=this;l["n"](e).then((function(e){e.Data.propertys.forEach((function(e,s){t.checkNewProjData.CustomProps[s]={},t.checkNewProjData.CustomProps[s]["TempPropId"]=e.Id,t.checkNewProjData.CustomProps[s]["PropertyName"]=e.PropertyName,t.checkNewProjData.CustomProps[s]["PropValue"]="";var r=t.checkNewProjData.CustomProps;t.checkNewProjData.CustomProps=Object(o["a"])(r)})),t.checkNewProjData=Object(n["a"])({},t.checkNewProjData)}))},enterDistWork:function(){this.$emit("enterDistWork")},addNestTemplate:function(){var e=this;this.$confirm("重要提示:一旦确定模板并创建后,您将无法删除模板。","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"error"}).then(Object(a["a"])(regeneratorRuntime.mark((function t(){var s,r,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,l["p"](e.selectTemplate.TemplateId);case 2:return s=t.sent,r=s.Data,i={ProjId:e.nestNodeFolder.projId,NodeId:e.nestNodeFolder.nodeId,FolderId:e.nestNodeFolder.id,TemplateId:e.nestNodeFolder.templateId,NestJsmindData:r},t.next=7,l["b"](i);case 7:a=t.sent,0===a.Code&&(e.$notify({message:"“".concat(e.selectTemplate.TemplateName,"”模板嵌套成功。"),type:["success"]}),e.$emit("enterDistWork"));case 9:case"end":return t.stop()}}),t)})))).catch((function(e){return console.log(e)}))},isChecked:function(e,t){this.checkedIndex=e,this.selectTemplate=t},getNestTemplate:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["m"](t.companyId);case 2:s=e.sent,t.NestTemplateList=(s.Data||[]).map((function(e){return e.TemplateName=e.TempName,e.TemplateId=e.Id,e})),t.NestTemplateList&&t.NestTemplateList.length&&"{}"===JSON.stringify(t.selectTemplate)&&(t.selectTemplate=t.NestTemplateList[0],t.checkedIndex=0);case 5:case"end":return e.stop()}}),e)})))()},watchNestTempScroll:function(){this.isNestTempScroll=this.nestTemplateDescEl.scrollTop>0},watchTempImproveScroll:function(){this.isTempImproveScroll=this.tempImproveDescEl.scrollTop>0}},watch:{isTemNestInProp:{handler:function(e){this.isTemNest=e,e&&this.getNestTemplate(this.nestNodeFolder.nodeId)},immediate:!0},isNestTempScroll:function(e){var t=this;e&&setTimeout((function(){t.nestTemplateDescEl=t.$refs.nestTemplateDesc,t.nestTemplateDescEl&&t.nestTemplateDescEl.addEventListener("scroll",t.watchNestTempScroll)}),50)}}},u=d,h=(s("5a5f"),s("2877")),p=Object(h["a"])(u,r,i,!1,null,"37d14612",null);t["a"]=p.exports},ab13:function(e,t,s){var r=s("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(s){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},c740:function(e,t,s){"use strict";var r=s("23e7"),i=s("b727").findIndex,a=s("44d2"),n=s("ae40"),o="findIndex",l=!0,c=n(o);o in[]&&Array(1)[o]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!c},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},c8e2:function(e,t,s){"use strict";var r=s("8ed8"),i=s.n(r);i.a},caad:function(e,t,s){"use strict";var r=s("23e7"),i=s("4d64").includes,a=s("44d2"),n=s("ae40"),o=n("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!o},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},d4ec:function(e,t,s){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}s.d(t,"a",(function(){return r}))},d5c4:function(e,t,s){"use strict";var r=s("dcd6"),i=s.n(r);i.a},dcd6:function(e,t,s){},e040:function(e,t,s){"use strict";var r=s("30c5"),i=s.n(r);i.a},e2bf:function(e,t,s){"use strict";var r=s("6690"),i=s.n(r);i.a},e3e1:function(e,t,s){},f290:function(e,t,s){}}]); \ No newline at end of file diff --git a/static/js/chunk-4a5d94c9.e3a0e01c.js b/static/js/chunk-4a5d94c9.b8e7e531.js similarity index 100% rename from static/js/chunk-4a5d94c9.e3a0e01c.js rename to static/js/chunk-4a5d94c9.b8e7e531.js diff --git a/static/js/chunk-4c803a36.efc7fcaf.js b/static/js/chunk-4c803a36.8d7988af.js similarity index 100% rename from static/js/chunk-4c803a36.efc7fcaf.js rename to static/js/chunk-4c803a36.8d7988af.js diff --git a/static/js/chunk-50365d46.13a70c9b.js b/static/js/chunk-50365d46.c9056eaa.js similarity index 100% rename from static/js/chunk-50365d46.13a70c9b.js rename to static/js/chunk-50365d46.c9056eaa.js diff --git a/static/js/chunk-550c5be4.f07edcbb.js b/static/js/chunk-550c5be4.e96090f8.js similarity index 100% rename from static/js/chunk-550c5be4.f07edcbb.js rename to static/js/chunk-550c5be4.e96090f8.js diff --git a/static/js/chunk-55f85da7.f7fbc02d.js b/static/js/chunk-55f85da7.da9ec335.js similarity index 100% rename from static/js/chunk-55f85da7.f7fbc02d.js rename to static/js/chunk-55f85da7.da9ec335.js diff --git a/static/js/chunk-584d398d.062e3908.js b/static/js/chunk-584d398d.095781ad.js similarity index 100% rename from static/js/chunk-584d398d.062e3908.js rename to static/js/chunk-584d398d.095781ad.js diff --git a/static/js/chunk-5e79f418.356b6c03.js b/static/js/chunk-5e79f418.335b8d01.js similarity index 100% rename from static/js/chunk-5e79f418.356b6c03.js rename to static/js/chunk-5e79f418.335b8d01.js diff --git a/static/js/chunk-60e599c5.d949b0e5.js b/static/js/chunk-60e599c5.d949b0e5.js new file mode 100644 index 00000000..1ab06666 --- /dev/null +++ b/static/js/chunk-60e599c5.d949b0e5.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60e599c5"],{"14b7":function(e,t,s){},2532:function(e,t,s){"use strict";var r=s("23e7"),i=s("5a34"),a=s("1d80"),n=s("ab13");r({target:"String",proto:!0,forced:!n("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},"30c5":function(e,t,s){},"45fc":function(e,t,s){"use strict";var r=s("23e7"),i=s("b727").some,a=s("a640"),n=s("ae40"),o=a("some"),l=n("some");r({target:"Array",proto:!0,forced:!o||!l},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"47c5":function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"proj-detail"},[s("app-header",{attrs:{theme:"basis",isShowTopBar:!0,backBtnTitle:e.isEnterEdit?"":"退出项目编辑",showUserCenter:!1,showBackBtn:!e.isEnterEdit,onBackBtnClick:e.returnToProjListPage}}),s("div",{staticClass:"content-wrap",class:{"set-content-wrap":e.isEnterEdit}},[e.isEnterEdit?e._e():s("div",{staticClass:"graph-left-part"}),s("div",{staticClass:"right-part",class:{"set-right-part-width":e.isEnterEdit}},[!e.isShowDistWorkPage&&e.isShowStartProjDesc?s("div",{ref:"projdesc",staticClass:"proj-desc adjust-top-radius"},[s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{showUserCenter:!1}},[s("div",{staticClass:"title",attrs:{slot:"left"},slot:"left"},[e._v("项目概况")]),s("div",{staticClass:"to-distwork-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.handleShowDistWorkPage(t)}},slot:"right"},[e._v("开始")])]),s("div",{staticClass:"proj-desc-wrap"},[s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("项目名称")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("项目负责")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateUserName))])]),s("div",{staticClass:"item cover-container"},[s("div",{staticClass:"item-title"},[e._v("封面")]),s("div",{staticClass:"item-value cover-img-wrap use-relative",style:e.showBackground(e.coverSrc)},[s("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[s("div",[e._v("编辑")])])],1)]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title proj-main-template"},[e._v("项目主要模板")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("模板负责")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("创建时间")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),e._l(e.listProjProp,(function(t){return s("div",{key:t.TempPropId,staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),s("div",{staticClass:"item-value"},[e._v(e._s(t.PropValue))])])}))],2)],1):e._e(),e.isShowDistWorkPage&&!e.isShowTemplateSummary?s("div",{staticClass:"distwork-page"},[e.isEnterEdit?s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isDistWorkPartScroll},attrs:{title:"指派工作",showUserCenter:!1}},[s("div",{staticClass:"finish-edit-btn",attrs:{slot:"left"},on:{click:function(t){return t.stopPropagation(),e.finishEditClick(t)}},slot:"left"},[e._v("完成编辑")]),s("div",{staticClass:"question",attrs:{slot:"right"},slot:"right"},[s("i",{staticClass:"ques-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),s("span",{staticClass:"ques-text"},[e._v("了解工作负责人")])])]):s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isDistWorkPartScroll},attrs:{backBtnTitle:"项目概况",onBackBtnClick:e.showProjDetailClick,title:e.nowProject.TempName,showUserCenter:!1,showBackBtn:!0}}),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowManagerTips,expression:"isShowManagerTips"}],staticClass:"manager-tips"},[s("i",{staticClass:"close-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),s("div",{staticClass:"tips-text"},[e._v("工作负责人将有权管理“负责工作中的成员”,点击用户头像变更工作负责人。")])]),s("div",{ref:"distworkpart",staticClass:"part-wrap"},[e.isEnterEdit?e._e():s("div",{staticClass:"template-detail-btn",on:{click:function(t){t.stopPropagation(),e.isShowTemplateSummary=!0,e.isEnterEditPropValue=!1}}},[e._v("模板概况")]),e.isProjManager?s("div",{staticClass:"manager-folder-wrap",class:{"active-folder mb-36":e.isEditProjManager,"only-manager-see folder-click":!e.isEnterEdit}},[s("div",{staticClass:"row-title"},[e._v("项目管理权限")]),s("div",{staticClass:"proj-manager-row use-relative",on:{click:function(t){return t.stopPropagation(),e.activeManagerClick(t)}}},[e.isEnterEdit&&e.isEditProjManager?e._e():s("div",{staticClass:"use-relative ml-4 clear-fix"},[s("div",{staticClass:"use-relative fl"},[s("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{user:e.currUser,isShowManagerMark:e.isEnterEdit}})],1),s("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),s("div",{staticClass:"use-flex fl"},[e.listManagerUser&&e.listManagerUser.length>0?s("div",{staticClass:"use-flex fl"},e._l(e.filterManageFromListUser(e.currUser.id,e.listManagerUser),(function(t){return s("people-item",{key:t.id,attrs:{user:t,isEnterEdit:e.isEnterEdit}})})),1):e._e(),!e.isEnterEdit&&e.isProjCreator?s("people-item",{nativeOn:{click:function(t){return t.stopPropagation(),e.addProjManager(t)}}}):e._e()],1)]),e.isEnterEdit&&e.isEditProjManager?s("div",{staticClass:"use-relative ml-4 use-flex"},[s("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]):e._e(),s("plain-folder-list",{staticClass:"plain-folder-list",attrs:{nestNodeList:e.nestNodeList,isEnterEdit:e.isEnterEdit,id:e.userId,lastFolderId:e.lastFolderId,folderList:e.listNewFolder,allManager:e.currUser,allManagerChild:e.listManagerUser,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists,activeFolderId:e.activeFolderId,selectedUser:e.selectedUser,isProjManager:e.isProjManager}})],1)],1):e._e(),e.isShowTemplateSummary?s("div",{staticClass:"template-summary"},[s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isTemplateDescScroll},attrs:{backBtnTitle:"返回",theme:"",onBackBtnClick:e.returnToDistWorkClick,title:e.nowProject.TempName,showUserCenter:!1,showBackBtn:!0}},[s("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.handleEditTemplate(t)}},slot:"right"},[e._v(" "+e._s(e.isEnterEditPropValue?"完成编辑":"修改")+" ")])]),Object.keys(e.nowProject).length>0?s("div",{ref:"templatedesc",staticClass:"summary-wrap"},[s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("模板负责")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("创建时间")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("工程名称")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjName))])]),e._l(e.listProjProp,(function(t){return s("div",{key:t.TempPropId,staticClass:"item"},[s("div",{staticClass:"item-title",class:{"adjust-title-position":e.isEnterEditPropValue}},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),s("div",{staticClass:"item-value"},[e.isEnterEditPropValue?s("input",{directives:[{name:"model",rawName:"v-model",value:t.PropValue,expression:"prop.PropValue"}],staticClass:"prop-value-input",attrs:{type:"text"},domProps:{value:t.PropValue},on:{input:function(s){s.target.composing||e.$set(t,"PropValue",s.target.value)}}}):s("div",[e._v(e._s(t.PropValue))])])])}))],2):e._e()],1):e._e(),e.isStartEditNestTemp?s("nest-temp",{attrs:{isTemNestInProp:e.isTemNest,nestNodeFolder:e.nestNodeFolder},on:{enterDistWork:e.enterDistWork}}):e._e()],1),e.isEnterEdit?s("div",{staticClass:"personnel-list-part",class:{"set-personnel-list-width":e.isEnterEdit}},[s("personnel-list",{attrs:{treeList:e.memberTree,selectedKeys:e.selectedMemberKeys},on:{select:e.onSelectMembers}})],1):e._e()])],1)},i=[],a=(s("4de4"),s("7db0"),s("c740"),s("4160"),s("caad"),s("a15b"),s("d81d"),s("fb6a"),s("a434"),s("d3b7"),s("ac1f"),s("2532"),s("3ca3"),s("1276"),s("159b"),s("ddb0"),s("4f96")),n=s("3835"),o=s("5530"),l=s("2909"),c=(s("96cf"),s("1da1")),d=s("5ab9"),u=s("b1f3"),h=s("f96e"),p=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",e._l(e.folderList,(function(t){return s("div",{key:t.id},[s("div",[s("div",{ref:"activeFolder",refInFor:!0,staticClass:"folder-wrap folder-hover",class:{"active-folder":t.id==e.activeFolderId&&e.isEnterEdit,"folder-click":!e.isEnterEdit},on:{click:function(s){return s.stopPropagation(),e.activeFolderClick(t)}}},[s("div",{staticClass:"folder-name",class:{"opacity-5":!e.isAllowedAssignedStaffFolder}},[s("span",[e._v(e._s(t.folderName))]),e.isProjManager?e._e():s("span",{staticClass:"user-perm-text"})]),e.isEnterEdit&&e.activeFolderId===t.id?e._e():s("div",{staticClass:"clear-fix border-box",class:{"mb-36":t.id===e.activeFolderId&&e.isEnterEdit,"ml-4":!e.isEnterEdit,"adjust-position":e.isEnterEdit}},[s("div",{staticClass:"fl"},[t.manageUser&&0==t.manageUser.length?s("div",[e.isAllowedAssignedFolder(t)?s("div",{staticClass:"use-relative"},[e.isEnterEdit?s("people-item"):s("people-item",{class:{"mr-8":!e.isEnterEdit},nativeOn:{click:function(s){s.stopPropagation(),e.aloneAddUserForFolder(t),e.enterEditFolderClick(t)}}})],1):s("div",{staticClass:"notclick"},[s("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{isShowEmptyAvatar:!0}})],1)]):s("div",{staticClass:"use-flex"},e._l(t.manageUser,(function(r,i){return s("div",{key:r.id},[s("div",{staticClass:"use-relative"},[s("people-item",{class:{notclick:!e.isAllowedAssignedStaffFolder(t),"mr-8":!e.isEnterEdit},attrs:{user:r,isShowManagerMark:e.isEnterEdit}})],1)])})),0)]),s("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),s("div",{staticClass:"use-flex",class:{"mb-6":e.isEnterEdit&&e.activeFolderId!==t.id}},[e._l(e.listUserComputed(t.listUser),(function(r){return s("div",{key:r.id,class:{notclick:!(e.isAllowedAssignedStaffFolder(t)||e.isStaff(t))}},[s("people-item",{attrs:{user:r,isEnterEdit:e.isEnterEdit}})],1)})),t.manageUser&&t.manageUser.length>0&&e.isAllowedAssignedStaffFolder(t)?s("div",{staticClass:"add-btn"},[e.isEnterEdit?e._e():s("people-item",{nativeOn:{click:function(s){s.stopPropagation(),e.aloneAddUserOnlyStaff(t),e.enterEditFolderClick(t)}}})],1):e._e(),e.canNest(t)?s("div",{staticClass:"stand-place"}):e._e(),e.canNest(t)&&!e.isEnterEdit?s("div",{staticClass:"add_nest"},[s("div",{staticClass:"add_nest_box",on:{click:function(s){return s.stopPropagation(),e.enterNestTemp(t)}}},[s("i",{staticClass:"el-icon-plus"}),s("p",[e._v("嵌套模板")])])]):e._e()],2)]),e.isEnterEdit&&e.activeFolderId==t.id?s("div",{staticClass:"use-relative ml-4 mb-36 use-flex border-box",class:{"adjust-margin":t.id===e.lastFolderId}},[s("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]),t.listChildren&&t.listChildren.length>0?[s("plain-folder-list",{attrs:{folderList:t.listChildren,id:e.id,lastFolderId:e.lastFolderId,allManager:e.allManager,allManagerChild:e.allManagerChild,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists,isEnterEdit:e.isEnterEdit,activeFolderId:e.activeFolderId,selectedUser:e.selectedUser,isProjManager:e.isProjManager,nestNodeList:e.nestNodeList}})]:e._e()],2)})),0)},m=[],f=(s("45fc"),function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"people-item",attrs:{title:e.user.cnName}},[s("div",{staticClass:"people-wrap",class:{"rt-0":e.isShowManagerMark}},[s("div",{staticClass:"people"},[Object.keys(e.user).length>0?s("img",{staticClass:"proj-avatarface",class:{"manager-mark":e.isShowManagerMark},attrs:{src:e._f("resolveAvator")(e.user.headImgUrl),alt:""}}):e.isShowEmptyAvatar?s("img",{staticClass:"proj-avatarface empty",attrs:{src:"/static/img/暂无2.svg",alt:""}}):s("div",{staticClass:"add-btn"},[s("i",{staticClass:"el-icon-plus proj-avatarface"})])]),s("div",{staticClass:"people-name",class:{"rt-2":e.isEnterEdit&&e.isShowManagerMark,"rt-4":e.isEnterEdit&&!e.isShowManagerMark}},[e._v(e._s(e.user.cnName))])])])}),v=[],g={data:function(){return{}},computed:{},props:{user:{type:Object,default:function(){return{}}},isShowManagerMark:{type:Boolean,default:!1},isEnterEdit:{type:Boolean,default:!1},isShowEmptyAvatar:{type:Boolean,defualt:!1}},methods:{}},C=g,P=(s("8015"),s("2877")),w=Object(P["a"])(C,f,v,!1,null,"a9676b70",null),E=w.exports,j=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"temp-selected-user-list",style:{height:e.showAdjustHeight}},[s("div",{ref:"membersView",staticClass:"use-flex"},[e._l(e.memberList,(function(t){return s("div",{key:t.id,staticClass:"use-relative"},[s("people-item",{class:{"active-manager-mark":2==t.folderPerm},attrs:{user:t},nativeOn:{click:function(s){return s.stopPropagation(),e.changeManagerClick(t)}}}),2==t.folderPerm?s("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")]):e._e()],1)})),0==e.memberList.length?s("div",{staticClass:"use-relative",on:{click:function(t){return t.stopPropagation(),e.openPersonnelListClick(t)}}},[s("people-item",{staticClass:"active-manager-mark"}),s("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")])],1):e._e()],2)])},k=[],b={data:function(){return{selectedUserListEl:null,selectedUserListElWidth:0,selectedUserListElHeight:0,renderHeight:0,isAdjustHeight:!1}},components:{PeopleItem:E},props:{memberList:{type:Array,default:function(){return[]}}},mounted:function(){var e=this;document.body.addEventListener("resize",(function(){e.adjustHeightOperate()})),this.selectedUserListEl=this.$refs.membersView,this.selectedUserListEl&&(this.selectedUserListElWidth=this.selectedUserListEl.clientWidth,this.selectedUserListElHeight=this.selectedUserListEl.clientHeight,this.adjustHeightOperate())},computed:{selectedUserListLength:function(){return this.memberList.length},showAdjustHeight:function(){return this.isAdjustHeight?"".concat(this.selectedUserListElHeight-31,"px"):"auto"}},watch:{memberList:{immediate:!0,handler:function(e){if(e.length>0){var t=e.find((function(e){return e.folderPerm&&2==e.folderPerm}));t||(e[0].folderPerm=2,this.$emit("setFirstPeopleToManager",e[0]))}}},selectedUserListLength:function(e){var t=this;setTimeout((function(){t.selectedUserListElWidth=t.selectedUserListEl.clientWidth,t.selectedUserListElHeight=t.selectedUserListEl.clientHeight,t.adjustHeightOperate()}),50)}},methods:{openPersonnelListClick:function(){this.$bus.$emit("openPersonnelListClick")},changeManagerClick:function(e){this.$emit("changeManagerClick",e),this.adjustHeightOperate()},adjustHeightOperate:function(){this.isAdjustHeight=!1;var e=parseInt(this.selectedUserListElWidth/64),t=this.selectedUserListLength,s=t/e,r=0;if(s<=1)return this.isAdjustHeight=!0,void(this.renderHeight=this.selectedUserListElHeight-31);for(var i=0;i0&&this.allManagerChild.find((function(e){return e.id==t.id}))||this.allChildrenLists.length>0&&this.allChildrenLists.includes(e)},isAllowedAssignedStaffFolder:function(e){return e.manageUser&&e.manageUser.length>0&&e.manageUser[0].id==this.id||this.isAllowedAssignedFolder(e)},isStaff:function(e){var t=this;return e.listUser.some((function(e){return e.id===t.id}))}},computed:{listUserComputed:function(){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}}}},T=D,I=(s("fa9b"),Object(P["a"])(T,p,m,!1,null,"40f58de2",null)),N=I.exports,M=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"member-list"},[s("div",{staticClass:"top-title"},[e._v("选择成员")]),e._m(0),s("div",{staticClass:"hori-line"}),s("div",{staticClass:"content-wrap"},[s("div",{staticClass:"people-wrap"},[s("el-collapse",{model:{value:e.activeCompanyName,callback:function(t){e.activeCompanyName=t},expression:"activeCompanyName"}},e._l(e.treeList,(function(t){return s("el-collapse-item",{key:t.id,attrs:{name:t.id}},[s("template",{slot:"title"},[s("span",{staticClass:"company-title"},[e._v(e._s(t.label))])]),t.hasChildren?s("el-collapse",{model:{value:e.activeDeptNameList,callback:function(t){e.activeDeptNameList=t},expression:"activeDeptNameList"}},e._l(t.children,(function(t){return s("el-collapse-item",{directives:[{name:"show",rawName:"v-show",value:t.hasChildren,expression:"deptNode.hasChildren"}],key:t.id,attrs:{name:t.id}},[s("template",{staticClass:"dept-entry",slot:"title"},[s("span",{staticClass:"dept-name"},[e._v(e._s(t.label))]),s("div",{staticClass:"check-all-wrap",on:{click:function(s){return s.stopPropagation(),e.toggleAllDept(t)}}},[s("div",{staticClass:"checkbox",class:{checked:e.deptNodeSelectedMap[t.id]}}),s("span",[e._v("全选")])])]),e._l(t.children,(function(t){return s("div",{key:t.id,staticClass:"user-info-item",attrs:{label:t.label},on:{click:function(s){return s.stopPropagation(),e.toggleMember(t)}}},[s("img",{staticClass:"avatar-img",attrs:{src:e._f("resolveAvator")(t.data.headImgUrl),alt:""}}),s("span",{staticClass:"user-info-name"},[e._v(e._s(t.label))]),s("div",{staticClass:"checkbox",class:{checked:e.isSelected(t.id)}})])}))],2)})),1):s("div",{staticClass:"empty-people-tips"},[e._v("暂未添加人员")])],2)})),1)],1)])])},_=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"search-bar"},[s("i",{staticClass:"search-icon"}),s("input",{staticClass:"search-input",attrs:{placeholder:"搜索功能正在内测中",disabled:""}})])}],F={data:function(){var e=this.treeList[0],t=e?[e.id]:[],s=e?e.mapChildren((function(e){return e.id})):[];return this.clacAllSelected(),{ischeckAll:!1,activeCompanyName:t,activeDeptNameList:s}},methods:{isSelected:function(e){return!!this.selectedKeys.find((function(t){return t===e}))},isChildrenAllSelected:function(e){var t=this.selectedKeys;return e.everyChildren((function(e){return t.find((function(t){return t===e.id}))}))},toggleAllDept:function(e){var t=!this.deptNodeSelectedMap[e.id];this.$emit("select",e.children,t)},toggleMember:function(e){var t=!this.isSelected(e.id);this.$emit("select",[e],t)},clacAllSelected:function(){var e=this,t={};this.treeList.forEach((function(s){s.mapChildren((function(s){var r=e.isChildrenAllSelected(s);r&&(t[s.id]=!0)}))})),this.deptNodeSelectedMap=t}},props:{treeList:{type:Array,default:function(){return[]}},selectedKeys:{type:Array,default:function(){return[]}}},watch:{selectedKeys:{immediate:!0,handler:function(e){this.clacAllSelected()}},treeList:{immediate:!0,handler:function(e){this.clacAllSelected()}}}},L=F,O=(s("e040"),s("c8e2"),Object(P["a"])(L,M,_,!1,null,"58e87d7b",null)),x=O.exports,$=s("9e5b"),A=s("93d6"),W=s("2ef0"),B=(s("a623"),s("ade3")),R=s("d4ec");function H(e,t){for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:Y;return this.hasChildren?(this.children.sort(e),this):this}},{key:"mapChildren",value:function(e){return this.hasChildren?this.children.map(e):[]}},{key:"everyChildren",value:function(e){return!!this.hasChildren&&this.children.every(e)}},{key:"hasChildren",get:function(){return this.children&&!!this.children.length}}]),e}(),Q=s("a06e"),X=s("b0f9"),Z=s("5a0c"),ee=s.n(Z),te=s("aa58"),se={data:function(){return{nestNodeFolder:{},nestNodeList:[],nowProject:{},listProjProp:[],cnName:"",selectedUser:[],selectedManageUser:[],isShowFirstPage:!0,isShowSecondPage:!1,isShowThreePage:!1,InitData:{},listNewFolder:[],oldFolderList:[],oldPlainFolderList:[],listDept:[],curProjCreatePeop:[],currWorkName:"",newProjFolderIndex:1,tempIndex:0,isShowdivid2:!1,currSelectData:[],currUser:{},isShowManager:!0,listManagerUser:[],oldListManagerUser:[],isProjManager:!1,isProjCreator:!1,currListDeptUserData:[],userList:[],memberTree:[],finishBtnClickCount:0,userId:sessionStorage.userId,allChildrenLists:[],isShowStartProjDesc:!0,isShowTemplateSummary:!1,isShowDistWorkPage:!1,isEnterEdit:!1,distWorkPartEl:null,isDistWorkPartScroll:!1,dlastScrollTime:null,isProjDescScroll:!1,projDescEl:null,isTemplateDescScroll:!1,templateDescEl:null,tlastScrollTime:null,isEditProjManager:!1,activeFolderId:"",activeFolder:null,coverSrc:"/static/img/faceImg/face01.png",isStartEditNestTemp:!1,isTemNest:!1,activeDeptName:"",isShowManagerTips:!1,isEnterEditPropValue:!1,isDistworkDone:!1,isDistworkSuccess:!1,lastFolderId:"",originPropListCopy:[],selectedMemberKeys:[]}},components:{AppHeader:h["a"],TopHeader:u["a"],PlainFolderList:N,PeopleItem:E,PersonnelList:x,TempSelectedUserList:y,FileUploader:$["a"],NestTemp:te["a"]},updated:function(){this.$refs.projdesc&&(this.projDescEl=this.$refs.projdesc,this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll),this.projDescEl.addEventListener("scroll",this.watchProjDescScroll)),this.$refs.distworkpart&&(this.distWorkPartEl=this.$refs.distworkpart,this.distWorkPartEl.removeEventListener("scroll",this.watchDistWorkPartScroll),this.distWorkPartEl.addEventListener("scroll",this.watchDistWorkPartScroll)),this.$refs.templateDescEl&&(this.templateDescEl=this.$refs.templatedesc,this.templateDescEl.removeEventListener("scroll",this.watchTemplateDescScroll),this.templateDescEl.addEventListener("scroll",this.watchTemplateDescScroll))},mounted:function(){this.isShowDistWorkPage=this.$route.query.isShowDistworkPage?this.$route.query.isShowDistworkPage:this.isShowDistworkPage,this.isShowStartProjDesc=!this.isShowDistWorkPage,this._getUserInfo(sessionStorage.userId),this.projInfo(sessionStorage.projId),this.cnName=JSON.parse(sessionStorage.user).cnName,this.fetchProjectDetail(),this.getNestNode(sessionStorage.templateID),this.projDescEl=this.$refs.projdesc,this.projDescEl&&this.projDescEl.addEventListener("scroll",this.watchProjDescScroll),this.distWorkPartEl=this.$refs.distworkpart,this.distWorkPartEl&&this.distWorkPartEl.addEventListener("scroll",this.watchDistWorkPartScroll),this.templateDescEl=this.$refs.templatedesc,this.templateDescEl&&this.templateDescEl.addEventListener("scroll",this.watchTemplateDescScroll),this.$bus.$on("enterEditFolderClick",this.enterEditFolderClick),this.$bus.$on("activeFolderClick",this.activeFolderClick),this.$bus.$on("changeManagerClick",this.changeManagerClick),this.$bus.$on("setFirstPeopleToManager",this.setFirstPeopleToManager),this.$bus.$on("enterNestTemp",this.enterNestTemp)},beforeDestroy:function(){this.projDescEl&&this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll),this.distWorkPartEl&&this.distWorkPartEl.removeEventListener("scroll",this.watchDistWorkPartScroll),this.templateDescEl&&this.templateDescEl.removeEventListener("scroll",this.watchTemplateDescScroll),this.$bus.$off("enterEditFolderClick",this.enterEditFolderClick),this.$bus.$off("activeFolderClick",this.activeFolderClick),this.$bus.$off("changeManagerClick",this.changeManagerClick),this.$bus.$off("setFirstPeopleToManager",this.setFirstPeopleToManager),this.$bus.$off("enterNestTemp",this.enterNestTemp)},methods:{showBackground:function(e){var t=this.$options.filters["resolveImg"],s=t(e);return{background:"center/cover no-repeat url(".concat(s,")")}},handleShowDistWorkPage:function(){this.isShowDistWorkPage=!0},handleEditTemplate:function(){this.isEnterEditPropValue=!this.isEnterEditPropValue,this.isEnterEditPropValue||(this.originPropListCopy=this.listProjProp,this.$notify({type:["success"],message:"修改模板概况成功"}))},enterNestTemp:function(e){this.isShowDistWorkPage=!1,this.isShowStartProjDesc=!1,this.isShowTemplateSummary=!1,this.isStartEditNestTemp=!0,this.isTemNest=!0,this.nestNodeFolder=e},enterDistWork:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isShowDistWorkPage=!0,e.isShowStartProjDesc=!0,e.isShowTemplateSummary=!1,e.isStartEditNestTemp=!1,e.isTemNest=!1,e.fetchProjectDetail();case 6:case"end":return t.stop()}}),t)})))()},returnToProjListPage:function(){this.isDistworkDone&&this.isDistworkSuccess&&this.$notify({message:"工作指派完成。",type:["success"]}),this.$router.push({path:"/index"}).catch((function(e){return console.log(e)}))},getNestNode:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function s(){var r,i,a,n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=function(e,t){e.forEach(function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(s){var r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,X["l"](s.TemplateId);case 2:r=e.sent,i=r.Data||[],i.length>0&&t.push.apply(t,Object(l["a"])(i));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},s.next=3,X["l"](e);case 3:r=s.sent,i=r.Data||[],a=Object(l["a"])(r.Data),n(i,a),t.nestNodeList=a;case 8:case"end":return s.stop()}}),s)})))()},projInfo:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function s(){var r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,Q["c"](e);case 2:if(r=s.sent,-1!=r.Code){s.next=6;break}return t.$notify({type:["error"],message:"项目概况信息查询失败"}),s.abrupt("return");case 6:t.nowProject=r.Data||{},t.nowProject.ProjCreateTime=ee()(t.nowProject.ProjCreateTime).format("YYYY/MM/DD"),t.nowProject=Object(o["a"])({},t.nowProject),t.listProjProp=r.Data.CustomProps||[],t.listProjProp=Object(l["a"])(t.listProjProp),t.originPropListCopy=Object(W["cloneDeep"])(t.listProjProp),t.coverSrc=r.Data.ShowImgUrl;case 13:case"end":return s.stop()}}),s)})))()},coverUploadSuccess:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function s(){var r,i,a;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return r=Object(d["c"])(e.ossUrl),t.coverSrc=r,i={ProjId:sessionStorage.projId,ImgUrl:t.coverSrc},s.next=5,Object(Q["b"])(i);case 5:a=s.sent,-1==a.Code&&t.$notify({message:"封面修改失败。",type:"success"});case 7:case"end":return s.stop()}}),s)})))()},setSystemCoverRandom:function(){},returnToDistWorkClick:function(){var e=this;this.isEnterEditPropValue?this.$confirm("是否保存当前项目的模板概况信息","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isShowTemplateSummary=!1,e.originPropListCopy=e.listProjProp;case 2:case"end":return t.stop()}}),t)})))).catch((function(){e.listProjProp=e.originPropListCopy})):this.isShowTemplateSummary=!1},showProjDetailClick:function(){this.isShowDistWorkPage=!1,this.isShowStartProjDesc=!0},setFirstPeopleToManager:function(e){0==this.selectedManageUser.length&&0!==this.selectedUser.length&&this.selectedManageUser.push(e)},filterManageFromListUser:function(e,t){return t.filter((function(t){return t.id!==e}))},watchProjDescScroll:function(){this.isProjDescScroll=this.projDescEl.scrollTop>0},watchTemplateDescScroll:function(){this.isTemplateDescScroll=this.templateDescEl.scrollTop>0},watchDistWorkPartScroll:function(){this.isDistWorkPartScroll=this.distWorkPartEl.scrollTop>0},activeManagerClick:function(){this.isProjCreator&&(this.isEditProjManager=!0,this.enterEditOperate(),this.activeFolderId="",this.activeFolder=null,this.addProjManager())},activeFolderClick:function(e){this.isEditProjManager=!1,this.activeFolderId=e.id,this.activeFolder=e,e.listUser&&0==e.listUser.length?this.aloneAddUserForFolder(e):this.aloneAddUserOnlyStaff(e)},enterEditFolderClick:function(e){this.activeFolderId=e.id,this.activeFolder=e,this.enterEditOperate()},enterEditOperate:function(){this.isEnterEdit=!0},finishEditClick:function(){this.isDistworkDone=!0,this.isEnterEdit=!1,this.selectedManageUser=[],this.selectedUser=[],this.isEditProjManager&&(this.isEditProjManager=!1),this.createFolders(),this.activeDeptName=""},addProjMangerBtnClick:function(){this.isEditProjManager=!0,this.enterEditOperate()},_getUserInfo:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function s(){var r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,Object(A["f"])(e);case 3:return s.sent,s.next=6,Object(A["f"])(sessionStorage.createUserID);case 6:r=s.sent,t.curProjCreatePeop=r.cnName+" 指派了新工作,请完成工作指派",1==sessionStorage.allocated&&(t.curProjCreatePeop="项目管理"),s.next=14;break;case 11:s.prev=11,s.t0=s["catch"](0),console.log(s.t0);case 14:case"end":return s.stop()}}),s,null,[[0,11]])})))()},isAllowedDelete:function(e){return!(!this.listManagerUser.includes(e)&&this.currUser.id!==e.id&&this.InitData.manageUser&&this.InitData.manageUser.length>0&&this.InitData.manageUser[0].id==sessionStorage.userId&&!this.allChildrenLists.includes(this.InitData)&&e.id==this.InitData.manageUser[0].id)},changeManagerClick:function(e){var t=this;if(this.isEditProjManager)this.$notify({message:"项目负责人无法更换。",type:"warning",offset:100,duration:5e3});else{var s=this.listManagerUser.map((function(e){return e.id}))||[];!s.includes(sessionStorage.userId)&&this.currUser.id!==sessionStorage.userId&&this.InitData.manageUser&&this.InitData.manageUser.length>0&&this.InitData.manageUser[0].id==sessionStorage.userId&&!this.allChildrenLists.includes(this.InitData)?this.$notify({message:"没有权限更换工作负责人。",type:"warning",offset:100,duration:5e3}):this.selectedUser.forEach((function(s){s.folderPerm=s.id===e.id?2:1,2===s.folderPerm&&t.InitData&&t.InitData.manageUser&&t.InitData.manageUser.splice(0,1,s)}))}},aloneAddUserForFolder:function(e){this.currSelectData=e,this.currWorkName=e.folderName,null==e.listUser&&(e.listUser=[]),this.InitData=e,this.setFolderPerm(e),this.selectedUser=e.listUser,this.selectedManageUser=e.manageUser,this.isShowSecondPage=!0,this.isShowFirstPage=!1},setFolderPerm:function(e){var t=e.listUser;this.selectedMemberKeys=t.map((function(e){return e.id}))},aloneAddUserOnlyStaff:function(e){this.isShowManager=!0,this.currWorkName=e.folderName,null==e.listUser&&(e.listUser=[]),this.InitData=e,this.setFolderPerm(e),this.selectedUser=e.listUser,this.selectedManageUser=e.manageUser,this.isShowThreePage=!0,this.isShowFirstPage=!1},addProjManager:function(){var e=this;this.activeFolderId="",this.isEditProjManager=!0,this.enterEditOperate(),this.isShowManager=!1;var t={listUser:[]};t.listUser=this.listManagerUser;var s=t.listUser.find((function(t){return t.id===e.currUser.id}));s&&0!=t.listUser.length||(this.currUser.folderPerm=2,t.listUser.unshift(this.currUser)),this.setFolderPerm(t),this.selectedUser=t.listUser,this.selectedManageUser=this.listManagerUser},onSelectMembers:function(e,t){var s=this,r=Object(l["a"])(this.selectedMemberKeys);e.forEach((function(e){var i=Object(W["cloneDeep"])(e.data),a=function(){s.checkDeptUserName(i,t),i.folderPerm=1,1==s.selectedUser.length&&1==t&&(i.folderPerm=2)};if(t){if(r.find((function(t){return t===e.id})))return;return r.push(e.id),void a()}if(s.isAllowedDelete(i))if(s.isEditProjManager&&i.id===s.currUser.id)s.$notify({message:"不可以移除项目创建者。",type:"warning",offset:100,duration:5e3});else{if(r=r.filter((function(e){return i.id!==e})),s.activeFolder&&s.activeFolder.manageUser.find((function(e){return e.id===i.id})))return s.removeManageUser(i),void s.activeFolder.manageUser.splice(0);if(s.isEditProjManager){var n=s.listManagerUser.findIndex((function(e){return e.id===i.id}));n>-1&&s.listManagerUser.splice(n,1)}a()}else s.$notify({message:"不能移除自己。",type:"warning",offset:100,duration:5e3})})),this.selectedMemberKeys=r},removeManageUser:function(e){e.folderPerm=1,this.selectedManageUser.splice(0,1);for(var t=0;t0&&(e.manageUser[0].folderPerm=2,e.listUser.unshift(e.manageUser[0])),e.listChildren&&e.listChildren.length>0&&t.getfolderPerm(e.listChildren)}))},getPlainOldFolderList:function(){var e=[];function t(s){s.length>0&&s.forEach((function(s){e.push(s),s.listChildren&&s.listChildren.length>0&&t(s.listChildren)}))}t(this.oldFolderList),this.oldPlainFolderList=e,this.lastFolderId=this.oldPlainFolderList[this.oldPlainFolderList.length-1].id},fetchProjectDetail:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var s,r,i,a,o,l,c,d,u,h,p,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e.$store.state.currentCompanyId,t.next=3,Promise.all([e.$fetchApi("folder/queryNodeFolderListByProjectId",{projectId:sessionStorage.projId}),G(s)]);case 3:r=t.sent,i=Object(n["a"])(r,2),a=i[0],o=i[1],l=o.treeList,c=o.memberMap,d=a.Data||{},u=d.folder,h=d.manager,e.memberTree=l,e.listManagerUser=h.map((function(e){var t;return null===(t=c[e.UserId])||void 0===t?void 0:t.data})),e.listManagerUser.length&&(e.currUser=e.listManagerUser[0]||{},e.isProjCreator=e.currUser.id===e.userId,e.listManagerUser=e.listManagerUser.slice(1),e.isProjManager=!!e.listManagerUser.find((function(t){return t.id==e.userId}))||e.currUser.id==e.userId),e.oldListManagerUser=Object(W["cloneDeep"])(e.listManagerUser),p=Object(W["uniqBy"])(u,"Id"),m=re(p,c),e.getfolderPerm(m),e.listNewFolder=m,e.oldFolderList=Object(W["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList(),e.getAllChildrenLists(e.listNewFolder,e.userId,e.allChildrenLists);case 21:case"end":return t.stop()}}),t)})))()},getChildren:function(e,t){var s=this;e.forEach((function(e){t.push(e),e.listChildren.length>0&&s.getChildren(e.listChildren,t)}))},getAllChildrenLists:function(e,t,s){var r=this;e.forEach((function(e){e.manageUser.length>0&&e.manageUser[0].id==t&&e.listChildren&&e.listChildren.length>0&&r.getChildren(e.listChildren,s)}))},createFolders:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var s,r,i,a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=function(e){e.length>0&&e.forEach((function(e){var t={FolderId:"",ManagerUserId:"",GeneralId:"",OldManager:"",OldGeneralId:""};t.FolderId=e.id;var a=[];t.ManagerUserId=e.manageUser.length>0?e.manageUser.map((function(e){return a.push(e.id),e.id})).join(","):"";var n=e.listUser.filter((function(e){return!a.includes(e.id)}));t.GeneralId=e.listUser.length>0?n.map((function(e){return e.id})).join(","):"";var o=r.find((function(t){return t.id==e.id})),l=o.manageUser.length>0?o.manageUser[0].id:"";t.OldManager=l,t.OldGeneralId=o.listUser.length>0?o.listUser.filter((function(e){return e.id!==l})).map((function(e){return e.id})).join(","):"",s.Work.push(t),i(e.listChildren)}))},s={Id:sessionStorage.createUserID,ProjId:sessionStorage.projId,ProjectManagerId:"",OldProjectManagerId:e.oldListManagerUser.map((function(e){return e.id})).join(","),Work:[]},s.ProjectManagerId=e.listManagerUser.length>0?e.listManagerUser.map((function(e){if(e.id!==sessionStorage.createUserID)return e.id})).join(","):"",r=e.oldPlainFolderList,i(e.listNewFolder),t.next=7,Object(Q["a"])(s);case 7:a=t.sent,n=e,0===a.Code?(e.isDistworkSuccess=!0,e.oldFolderList=Object(W["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList()):(e.isDistworkSuccess=!1,n.$notify({message:"服务器异常,工作指派失败。",type:["error"],duration:5e3}));case 10:case"end":return t.stop()}}),t)})))()}}};function re(e,t){var s=Object(a["a"])(e),r=s[0],i=(s[1],s.slice(2)),n=r.Id,l=[],c={};return i.forEach((function(e){var s=Object(K["b"])(e);c[s.id]=s,s.listChildren=[],s.listUser=s.oldGeneralId.split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(o["a"])({},t[e].data)})),s.manageUser=("0"===s.oldManager?"":s.oldManager).split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(o["a"])({},t[e].data)}));var r=s.superId;if(r!==n){var i=c[r];i&&i.listChildren.push(s)}else l.push(s)})),l}var ie=se,ae=(s("d5c4"),s("685f"),Object(P["a"])(ie,r,i,!1,null,"bbfdfbe8",null));t["default"]=ae.exports},"4ecd":function(e,t,s){},"4f96":function(e,t,s){"use strict";s.d(t,"a",(function(){return o}));var r=s("0d21"),i=s("db90"),a=s("06c5"),n=s("3d8c");function o(e){return Object(r["a"])(e)||Object(i["a"])(e)||Object(a["a"])(e)||Object(n["a"])()}},"5a34":function(e,t,s){var r=s("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a5f":function(e,t,s){"use strict";var r=s("f290"),i=s.n(r);i.a},"685f":function(e,t,s){"use strict";var r=s("14b7"),i=s.n(r);i.a},8015:function(e,t,s){"use strict";var r=s("e3e1"),i=s.n(r);i.a},"8ed8":function(e,t,s){},a06e:function(e,t,s){"use strict";s.d(t,"d",(function(){return a})),s.d(t,"c",(function(){return o})),s.d(t,"b",(function(){return c})),s.d(t,"a",(function(){return u})),s.d(t,"e",(function(){return p}));s("96cf");var r=s("1da1"),i=s("b775");function a(e){return n.apply(this,arguments)}function n(){return n=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/queryProjectListByUserId",{userId:t});case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}function o(e){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/queryProjectInfoByProjId",{projId:t});case 2:return s=e.sent,e.abrupt("return",s);case 4:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function c(e){return d.apply(this,arguments)}function d(){return d=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/editProject",t);case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function u(e){return h.apply(this,arguments)}function h(){return h=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/assignedWork",t);case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function p(e){return m.apply(this,arguments)}function m(){return m=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("project/searchProject",{projName:t});case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}},a623:function(e,t,s){"use strict";var r=s("23e7"),i=s("b727").every,a=s("a640"),n=s("ae40"),o=a("every"),l=n("every");r({target:"Array",proto:!0,forced:!o||!l},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},aa58:function(e,t,s){"use strict";var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e.isTemNest?s("div",{staticClass:"template_nest"},[s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isNestTempScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"取消",onBackBtnClick:e.enterDistWork,title:"为“"+e.title+"”添加新模板"}},[s("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.enterNestTempImprove()}},slot:"right"},[e._v(" 选定模板 ")])]),s("div",{ref:"nestTemplateDesc",staticClass:"template_select_content"},[s("div",{staticClass:"template_connect"},[e._m(0),e._l(e.NestTemplateList,(function(t,r){return s("div",{key:t.Id,staticClass:"template_info",on:{click:function(s){return e.isChecked(r,t)}}},[s("div",{staticClass:"check_box",class:{checked:e.checkedIndex==r}},[s("i",{staticClass:"el-icon-check"})]),s("span",{staticClass:"template_info_name"},[e._v(e._s(t.TemplateName))])])}))],2)])],1):e._e(),e.isNestTemImprove?s("div",{staticClass:"template_improve"},[s("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isTempImproveScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"选择模板",onBackBtnClick:e.enterSelectNestTemp,title:"完善模板信息"}},[s("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.addNestTemplate()}},slot:"right"},[e._v(" 创建 ")])]),s("div",{ref:"tempImproveDesc",staticClass:"summary-wrap"},[s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("模板名称")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.selectTemplate.TemplateName))])]),s("div",{staticClass:"item"},[s("div",{staticClass:"item-title"},[e._v("创建时间")]),s("div",{staticClass:"item-value"},[e._v(e._s(e.createDate))])]),e._l(e.checkNewProjData.CustomProps,(function(t){return s("div",{key:t.Id,staticClass:"item"},[s("div",{staticClass:"item-title adjust-title-position"},[e._v(e._s((t.PropertyName?t.PropertyName:"自定义字段")+":"))]),s("div",{staticClass:"item-value"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.PropValue,expression:"prop.PropValue"}],staticClass:"prop-value-input",attrs:{type:"text"},domProps:{value:t.PropValue},on:{input:function(s){s.target.composing||e.$set(t,"PropValue",s.target.value)}}})])])}))],2)],1):e._e()])},i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"template_info_title"},[s("span",[e._v("已建立交换关系的模板")])])}],a=(s("4160"),s("d81d"),s("159b"),s("96cf"),s("1da1")),n=s("5530"),o=s("2909"),l=s("b0f9"),c=s("b1f3"),d={components:{TopHeader:c["a"]},props:{nestNodeFolder:Object,isTemNestInProp:{type:Boolean,default:!1}},data:function(){return{companyId:sessionStorage.companyId,createDate:(new Date).toLocaleDateString(),title:this.nestNodeFolder.folderName,NestTemplateList:[],isTemNest:!1,isNestTemImprove:!1,isNestTempScroll:!1,nestTemplateDescEl:null,isTempImproveScroll:!1,tempImproveDescEl:null,selectTemplate:{},checkedIndex:0,checkNewProjData:{Proj:{ProjName:"",CompanyId:"",Notice:"",ShowImgUrl:"",TemplateId:"",CreateUserId:"",ModifyUserId:""},Node:{},CustomProps:[]}}},mounted:function(){this.nestTemplateDescEl=this.$refs.nestTemplateDesc,this.nestTemplateDescEl&&this.nestTemplateDescEl.addEventListener("scroll",this.watchNestTempScroll),this.tempImproveDescEl=this.$refs.tempImproveDesc,this.tempImproveDescEl&&this.nestTemplateDescEl.addEventListener("scroll",this.watchTempImproveScroll)},beforeDestroy:function(){this.nestTemplateDescEl&&this.nestTemplateDescEl.removeEventListener("scroll",this.watchNestTempScroll),this.tempImproveDescEl&&this.tempImproveDescEl.removeEventListener("scroll",this.watchTempImproveScroll)},methods:{enterNestTempImprove:function(){this.isTemNest=!1,this.isNestTemImprove=!0,this.getTempProps(this.selectTemplate.TemplateId)},enterSelectNestTemp:function(){this.isTemNest=!0,this.isNestTemImprove=!1},getTempProps:function(e){var t=this;l["n"](e).then((function(e){e.Data.propertys.forEach((function(e,s){t.checkNewProjData.CustomProps[s]={},t.checkNewProjData.CustomProps[s]["TempPropId"]=e.Id,t.checkNewProjData.CustomProps[s]["PropertyName"]=e.PropertyName,t.checkNewProjData.CustomProps[s]["PropValue"]="";var r=t.checkNewProjData.CustomProps;t.checkNewProjData.CustomProps=Object(o["a"])(r)})),t.checkNewProjData=Object(n["a"])({},t.checkNewProjData)}))},enterDistWork:function(){this.$emit("enterDistWork")},addNestTemplate:function(){var e=this;this.$confirm("重要提示:一旦确定模板并创建后,您将无法删除模板。","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"error"}).then(Object(a["a"])(regeneratorRuntime.mark((function t(){var s,r,i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,l["p"](e.selectTemplate.TemplateId);case 2:return s=t.sent,r=s.Data,i={ProjId:e.nestNodeFolder.projId,NodeId:e.nestNodeFolder.nodeId,FolderId:e.nestNodeFolder.id,TemplateId:e.nestNodeFolder.templateId,NestJsmindData:r},t.next=7,l["b"](i);case 7:a=t.sent,0===a.Code&&(e.$notify({message:"“".concat(e.selectTemplate.TemplateName,"”模板嵌套成功。"),type:["success"]}),e.$emit("enterDistWork"));case 9:case"end":return t.stop()}}),t)})))).catch((function(e){return console.log(e)}))},isChecked:function(e,t){this.checkedIndex=e,this.selectTemplate=t},getNestTemplate:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["m"](t.companyId);case 2:s=e.sent,t.NestTemplateList=(s.Data||[]).map((function(e){return e.TemplateName=e.TempName,e.TemplateId=e.Id,e})),t.NestTemplateList&&t.NestTemplateList.length&&"{}"===JSON.stringify(t.selectTemplate)&&(t.selectTemplate=t.NestTemplateList[0],t.checkedIndex=0);case 5:case"end":return e.stop()}}),e)})))()},watchNestTempScroll:function(){this.isNestTempScroll=this.nestTemplateDescEl.scrollTop>0},watchTempImproveScroll:function(){this.isTempImproveScroll=this.tempImproveDescEl.scrollTop>0}},watch:{isTemNestInProp:{handler:function(e){this.isTemNest=e,e&&this.getNestTemplate(this.nestNodeFolder.nodeId)},immediate:!0},isNestTempScroll:function(e){var t=this;e&&setTimeout((function(){t.nestTemplateDescEl=t.$refs.nestTemplateDesc,t.nestTemplateDescEl&&t.nestTemplateDescEl.addEventListener("scroll",t.watchNestTempScroll)}),50)}}},u=d,h=(s("5a5f"),s("2877")),p=Object(h["a"])(u,r,i,!1,null,"37d14612",null);t["a"]=p.exports},ab13:function(e,t,s){var r=s("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(s){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},c740:function(e,t,s){"use strict";var r=s("23e7"),i=s("b727").findIndex,a=s("44d2"),n=s("ae40"),o="findIndex",l=!0,c=n(o);o in[]&&Array(1)[o]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!c},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(o)},c8e2:function(e,t,s){"use strict";var r=s("8ed8"),i=s.n(r);i.a},caad:function(e,t,s){"use strict";var r=s("23e7"),i=s("4d64").includes,a=s("44d2"),n=s("ae40"),o=n("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!o},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},d4ec:function(e,t,s){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}s.d(t,"a",(function(){return r}))},d5c4:function(e,t,s){"use strict";var r=s("dcd6"),i=s.n(r);i.a},dcd6:function(e,t,s){},e040:function(e,t,s){"use strict";var r=s("30c5"),i=s.n(r);i.a},e3e1:function(e,t,s){},f290:function(e,t,s){},fa9b:function(e,t,s){"use strict";var r=s("4ecd"),i=s.n(r);i.a}}]); \ No newline at end of file diff --git a/static/js/chunk-62c7e6db.2a5f4890.js b/static/js/chunk-62c7e6db.e7ca2944.js similarity index 100% rename from static/js/chunk-62c7e6db.2a5f4890.js rename to static/js/chunk-62c7e6db.e7ca2944.js diff --git a/static/js/chunk-638e5b5a.c22e6694.js b/static/js/chunk-638e5b5a.6a87c730.js similarity index 100% rename from static/js/chunk-638e5b5a.c22e6694.js rename to static/js/chunk-638e5b5a.6a87c730.js diff --git a/static/js/chunk-655d6881.2011a00d.js b/static/js/chunk-655d6881.3baa7d4f.js similarity index 100% rename from static/js/chunk-655d6881.2011a00d.js rename to static/js/chunk-655d6881.3baa7d4f.js diff --git a/static/js/chunk-74b26ff1.4a8363ae.js b/static/js/chunk-74b26ff1.38ac535f.js similarity index 100% rename from static/js/chunk-74b26ff1.4a8363ae.js rename to static/js/chunk-74b26ff1.38ac535f.js diff --git a/static/js/chunk-78390ace.20f7d903.js b/static/js/chunk-78390ace.ff88f163.js similarity index 100% rename from static/js/chunk-78390ace.20f7d903.js rename to static/js/chunk-78390ace.ff88f163.js diff --git a/static/js/chunk-7d913a8a.f792825f.js b/static/js/chunk-7d913a8a.16b2cecc.js similarity index 100% rename from static/js/chunk-7d913a8a.f792825f.js rename to static/js/chunk-7d913a8a.16b2cecc.js diff --git a/static/js/chunk-802699f8.471cfcbf.js b/static/js/chunk-802699f8.1e0dff62.js similarity index 100% rename from static/js/chunk-802699f8.471cfcbf.js rename to static/js/chunk-802699f8.1e0dff62.js diff --git a/static/js/chunk-a821f8e4.9665e54d.js b/static/js/chunk-a821f8e4.081a0f2a.js similarity index 100% rename from static/js/chunk-a821f8e4.9665e54d.js rename to static/js/chunk-a821f8e4.081a0f2a.js diff --git a/static/js/chunk-da5f603a.cdc825bc.js b/static/js/chunk-da5f603a.a3f2927f.js similarity index 100% rename from static/js/chunk-da5f603a.cdc825bc.js rename to static/js/chunk-da5f603a.a3f2927f.js diff --git a/static/js/chunk-ef8ce8b2.fd3345c1.js b/static/js/chunk-ef8ce8b2.375336b3.js similarity index 100% rename from static/js/chunk-ef8ce8b2.fd3345c1.js rename to static/js/chunk-ef8ce8b2.375336b3.js