From e21b0bf8183f59e1f7778d5be3fe091e407e497b Mon Sep 17 00:00:00 2001 From: zhengzhou Date: Fri, 12 Mar 2021 14:50:34 +0800 Subject: [PATCH] 'build' --- dist/index.html | 2 +- ....d799159c.css => chunk-2840b8b8.cd92a992.css} | 2 +- dist/static/css/chunk-4a5d94c9.100d49dc.css | 1 + dist/static/css/chunk-5e79f418.d5fe49e6.css | 1 + dist/static/css/chunk-655d6881.60d63f7b.css | 1 + ....946d3591.css => chunk-7d913a8a.946d3591.css} | 0 dist/static/css/chunk-802699f8.b81af110.css | 1 + dist/static/js/app.03155211.js | 1 + dist/static/js/app.4b9f57ac.js | 1 - ...2f.d52f52a6.js => chunk-038ce22f.c4dd6636.js} | 0 ...5b.b70d8222.js => chunk-05a1125b.3108a6ac.js} | 0 ...c1.ad769061.js => chunk-05bf99c1.42708950.js} | 0 ...27.fd7bc2ca.js => chunk-11067227.5301aa59.js} | 0 ...0b.26670564.js => chunk-12a7ad0b.1bac7946.js} | 2 +- ...e7.0768f911.js => chunk-145b0de7.5349d788.js} | 0 dist/static/js/chunk-1662b2cc.05f5eee7.js | 1 - ...ce.19226c6e.js => chunk-1eaf12ce.0f7fb6f6.js} | 0 ...68.1871aad5.js => chunk-1fe39068.eda2fdd1.js} | 0 ...32.2dbac6c8.js => chunk-1fe40532.a7db8e91.js} | 0 ...0d.628582b8.js => chunk-23d16c0d.fd15670c.js} | 0 ...1e.af387646.js => chunk-2840b8b8.9f392124.js} | 16 ++++++++-------- dist/static/js/chunk-28990618.2157b7f4.js | 1 + dist/static/js/chunk-28990618.899622cd.js | 1 - ...22.31d9a0f5.js => chunk-2b38f122.61e03de3.js} | 0 ...0d.c996a7a1.js => chunk-2d0ac90d.e8208153.js} | 0 ...88.c678f61a.js => chunk-2d0b3688.cb3a93ca.js} | 0 ...1a.678e838f.js => chunk-2d0c061a.698b2818.js} | 0 ...a4.4f266e68.js => chunk-2d0cf6a4.e70e9875.js} | 0 dist/static/js/chunk-2d0dddf0.e77cfc6a.js | 1 - ...8e.1ad61f1e.js => chunk-2d0e148e.72511dc8.js} | 0 dist/static/js/chunk-2d207f39.13e2668b.js | 1 - ...50.13aa5d85.js => chunk-2d21b850.598c1f15.js} | 0 ...2b.acbbe993.js => chunk-2d224b2b.052e87ba.js} | 0 ...e4.d538ec96.js => chunk-309e49e4.d948d4f1.js} | 0 dist/static/js/chunk-3261285a.00856acb.js | 1 + dist/static/js/chunk-3261285a.b93fddd2.js | 1 - ...ae.154aa5f7.js => chunk-347878ae.47e6d8f9.js} | 0 ...d4.1667d95c.js => chunk-3ccf94d4.72adece4.js} | 2 +- dist/static/js/chunk-3fbc85f3.331e06cd.js | 1 - dist/static/js/chunk-3fbc85f3.fd30866f.js | 1 + dist/static/js/chunk-4a5d94c9.8cd926f9.js | 1 + ...36.c42e11ac.js => chunk-4c803a36.7bddece5.js} | 0 ...e4.857ba9cb.js => chunk-550c5be4.cfedd08d.js} | 0 ...8d.b1f975fd.js => chunk-584d398d.4efa8ffb.js} | 0 dist/static/js/chunk-5e79f418.5d961cee.js | 1 + ...5a.5ba57e63.js => chunk-638e5b5a.b2f51abe.js} | 0 dist/static/js/chunk-655d6881.0f0e3dfc.js | 1 + ...b9.5444617b.js => chunk-6a615eb9.8416994b.js} | 2 +- ...ae.b77419fd.js => chunk-6cb025ae.b96f0205.js} | 0 ...f1.19058c6a.js => chunk-74b26ff1.5a929340.js} | 0 ...ce.887dc9d4.js => chunk-78390ace.35745896.js} | 2 +- dist/static/js/chunk-7a18b3e4.4656f19e.js | 1 + dist/static/js/chunk-7a18b3e4.61cf14fc.js | 1 - ...ca.35af715b.js => chunk-7d913a8a.dc2ae5a5.js} | 2 +- dist/static/js/chunk-802699f8.293ef25a.js | 1 + ...70.00478e67.js => chunk-805bd970.9d041445.js} | 0 ...3a.5cf0acfb.js => chunk-da5f603a.b4ed00a8.js} | 0 ...38.e25d8dd3.js => chunk-e8c15138.3db22f01.js} | 2 +- ...b2.9002bee5.js => chunk-ef8ce8b2.3c90d250.js} | 0 59 files changed, 29 insertions(+), 24 deletions(-) rename dist/static/css/{chunk-33d2c21e.d799159c.css => chunk-2840b8b8.cd92a992.css} (88%) create mode 100644 dist/static/css/chunk-4a5d94c9.100d49dc.css create mode 100644 dist/static/css/chunk-5e79f418.d5fe49e6.css create mode 100644 dist/static/css/chunk-655d6881.60d63f7b.css rename dist/static/css/{chunk-131f93ca.946d3591.css => chunk-7d913a8a.946d3591.css} (100%) create mode 100644 dist/static/css/chunk-802699f8.b81af110.css create mode 100644 dist/static/js/app.03155211.js delete mode 100644 dist/static/js/app.4b9f57ac.js rename dist/static/js/{chunk-038ce22f.d52f52a6.js => chunk-038ce22f.c4dd6636.js} (100%) rename dist/static/js/{chunk-05a1125b.b70d8222.js => chunk-05a1125b.3108a6ac.js} (100%) rename dist/static/js/{chunk-05bf99c1.ad769061.js => chunk-05bf99c1.42708950.js} (100%) rename dist/static/js/{chunk-11067227.fd7bc2ca.js => chunk-11067227.5301aa59.js} (100%) rename dist/static/js/{chunk-12a7ad0b.26670564.js => chunk-12a7ad0b.1bac7946.js} (61%) rename dist/static/js/{chunk-145b0de7.0768f911.js => chunk-145b0de7.5349d788.js} (100%) delete mode 100644 dist/static/js/chunk-1662b2cc.05f5eee7.js rename dist/static/js/{chunk-1eaf12ce.19226c6e.js => chunk-1eaf12ce.0f7fb6f6.js} (100%) rename dist/static/js/{chunk-1fe39068.1871aad5.js => chunk-1fe39068.eda2fdd1.js} (100%) rename dist/static/js/{chunk-1fe40532.2dbac6c8.js => chunk-1fe40532.a7db8e91.js} (100%) rename dist/static/js/{chunk-23d16c0d.628582b8.js => chunk-23d16c0d.fd15670c.js} (100%) rename dist/static/js/{chunk-33d2c21e.af387646.js => chunk-2840b8b8.9f392124.js} (89%) create mode 100644 dist/static/js/chunk-28990618.2157b7f4.js delete mode 100644 dist/static/js/chunk-28990618.899622cd.js rename dist/static/js/{chunk-2b38f122.31d9a0f5.js => chunk-2b38f122.61e03de3.js} (100%) rename dist/static/js/{chunk-2d0ac90d.c996a7a1.js => chunk-2d0ac90d.e8208153.js} (100%) rename dist/static/js/{chunk-2d0b3688.c678f61a.js => chunk-2d0b3688.cb3a93ca.js} (100%) rename dist/static/js/{chunk-2d0c061a.678e838f.js => chunk-2d0c061a.698b2818.js} (100%) rename dist/static/js/{chunk-2d0cf6a4.4f266e68.js => chunk-2d0cf6a4.e70e9875.js} (100%) delete mode 100644 dist/static/js/chunk-2d0dddf0.e77cfc6a.js rename dist/static/js/{chunk-2d0e148e.1ad61f1e.js => chunk-2d0e148e.72511dc8.js} (100%) delete mode 100644 dist/static/js/chunk-2d207f39.13e2668b.js rename dist/static/js/{chunk-2d21b850.13aa5d85.js => chunk-2d21b850.598c1f15.js} (100%) rename dist/static/js/{chunk-2d224b2b.acbbe993.js => chunk-2d224b2b.052e87ba.js} (100%) rename dist/static/js/{chunk-309e49e4.d538ec96.js => chunk-309e49e4.d948d4f1.js} (100%) create mode 100644 dist/static/js/chunk-3261285a.00856acb.js delete mode 100644 dist/static/js/chunk-3261285a.b93fddd2.js rename dist/static/js/{chunk-347878ae.154aa5f7.js => chunk-347878ae.47e6d8f9.js} (100%) rename dist/static/js/{chunk-3ccf94d4.1667d95c.js => chunk-3ccf94d4.72adece4.js} (53%) delete mode 100644 dist/static/js/chunk-3fbc85f3.331e06cd.js create mode 100644 dist/static/js/chunk-3fbc85f3.fd30866f.js create mode 100644 dist/static/js/chunk-4a5d94c9.8cd926f9.js rename dist/static/js/{chunk-4c803a36.c42e11ac.js => chunk-4c803a36.7bddece5.js} (100%) rename dist/static/js/{chunk-550c5be4.857ba9cb.js => chunk-550c5be4.cfedd08d.js} (100%) rename dist/static/js/{chunk-584d398d.b1f975fd.js => chunk-584d398d.4efa8ffb.js} (100%) create mode 100644 dist/static/js/chunk-5e79f418.5d961cee.js rename dist/static/js/{chunk-638e5b5a.5ba57e63.js => chunk-638e5b5a.b2f51abe.js} (100%) create mode 100644 dist/static/js/chunk-655d6881.0f0e3dfc.js rename dist/static/js/{chunk-6a615eb9.5444617b.js => chunk-6a615eb9.8416994b.js} (70%) rename dist/static/js/{chunk-6cb025ae.b77419fd.js => chunk-6cb025ae.b96f0205.js} (100%) rename dist/static/js/{chunk-74b26ff1.19058c6a.js => chunk-74b26ff1.5a929340.js} (100%) rename dist/static/js/{chunk-78390ace.887dc9d4.js => chunk-78390ace.35745896.js} (86%) create mode 100644 dist/static/js/chunk-7a18b3e4.4656f19e.js delete mode 100644 dist/static/js/chunk-7a18b3e4.61cf14fc.js rename dist/static/js/{chunk-131f93ca.35af715b.js => chunk-7d913a8a.dc2ae5a5.js} (99%) create mode 100644 dist/static/js/chunk-802699f8.293ef25a.js rename dist/static/js/{chunk-805bd970.00478e67.js => chunk-805bd970.9d041445.js} (100%) rename dist/static/js/{chunk-da5f603a.5cf0acfb.js => chunk-da5f603a.b4ed00a8.js} (100%) rename dist/static/js/{chunk-e8c15138.e25d8dd3.js => chunk-e8c15138.3db22f01.js} (99%) rename dist/static/js/{chunk-ef8ce8b2.9002bee5.js => chunk-ef8ce8b2.3c90d250.js} (100%) diff --git a/dist/index.html b/dist/index.html index 5a090c49..bd5ba4ea 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -LOCKING | 云建筑
\ No newline at end of file +LOCKING | 云建筑
\ No newline at end of file diff --git a/dist/static/css/chunk-33d2c21e.d799159c.css b/dist/static/css/chunk-2840b8b8.cd92a992.css similarity index 88% rename from dist/static/css/chunk-33d2c21e.d799159c.css rename to dist/static/css/chunk-2840b8b8.cd92a992.css index 1fe7c3cc..ff475d63 100644 --- a/dist/static/css/chunk-33d2c21e.d799159c.css +++ b/dist/static/css/chunk-2840b8b8.cd92a992.css @@ -1 +1 @@ -.search-wrap[data-v-df8317c6]{position:relative;z-index:2}.search-entry[data-v-df8317c6]{position:absolute;right:0;cursor:pointer;width:29px;height:29px}.set-high-index[data-v-df8317c6]{z-index:3}.search-bar[data-v-df8317c6]{position:relative;overflow:hidden;width:32px;height:32px;transition:width .15s ease-in}.search-bar .search-active-img[data-v-df8317c6],.search-bar .search-img[data-v-df8317c6]{width:29px;height:29px}.search-bar .search-input[data-v-df8317c6]{box-sizing:border-box;color:#32323c;height:30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;padding:0 32px}.search-bar .close-icon[data-v-df8317c6],.search-bar .search-icon[data-v-df8317c6]{position:absolute;top:50%;transform:translateY(-50%);width:22px;height:22px;cursor:pointer}.search-bar .search-icon[data-v-df8317c6]{left:7px;background:url(/static/img/搜索.svg) 50%/100%}.search-bar .close-icon[data-v-df8317c6]{right:5px;background:url(/static/img/删除.svg) 50%/100%}.hide-search-bar[data-v-df8317c6]{width:0}.show-search-bar[data-v-df8317c6]{width:235px}.change-btn[data-v-d5ff7aba]{display:flex;width:100%;padding:2px 0;background-color:#d1d2d3;border-radius:4px}.change-btn .btn[data-v-d5ff7aba]{flex:1;height:28px;line-height:28px;cursor:pointer;margin:0 2px;text-align:center;font-size:14px}.change-btn .active-btn[data-v-d5ff7aba]{color:#32323c;border-radius:4px;background-color:#fcfcfc;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.slot_btn[data-v-2e9a13da]{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-2e9a13da]{position:relative;border-top-right-radius:8px;border-top-left-radius:8px;box-shadow:none}.template_info_title[data-v-2e9a13da]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf}.template_select_content[data-v-2e9a13da]{height:calc(100vh - 100px);overflow-y:scroll}.template_select_content .template_info[data-v-2e9a13da]{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-2e9a13da]{margin-left:38px;font-size:14px}.template_select_content .template_info .check_box[data-v-2e9a13da]{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-2e9a13da]{background-color:#7850ff;text-align:center;line-height:28px;color:#fff}.template_select_content .template_info .check_box.checked .el-icon-check[data-v-2e9a13da]{display:inline-block}.template_select_content .template_info .check_box .el-icon-check[data-v-2e9a13da]{display:none}.template_info[data-v-2e9a13da]:hover{background-color:rgba(50,50,60,.15)}.edit-template-btn[data-v-2e9a13da],.to-distwork-btn[data-v-2e9a13da]{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-2e9a13da]{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-2e9a13da]{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-2e9a13da]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.item .item-title[data-v-2e9a13da]{color:#62492f;width:24%;text-align:right}.item .item-value[data-v-2e9a13da]{margin:0 0 0 12px}.item .item-value[data-v-2e9a13da]:not(.cover-img-wrap){flex:1}.set-header-position[data-v-2e9a13da]{position:relative!important;color:#32323c!important;z-index:99}.adjust-title-position[data-v-2e9a13da]{position:relative;top:11px}.use-flex2[data-v-3cfc48e6]{display:flex;flex-wrap:nowrap;align-items:center}.worklinkBtngroup button[data-v-3cfc48e6]{flex-shrink:0}.worklink-wrap[data-v-3cfc48e6]{display:flex;margin:0 auto}.nowfolder-wrap[data-v-3cfc48e6]{position:relative;display:flex;align-items:center;height:44px;line-height:44px;cursor:pointer}.nowfolder-wrap .jump-icon-wrap[data-v-3cfc48e6]{width:20px;height:20px;border-radius:4px;background-color:#e1e1e2;margin:0 8px 0 12px;cursor:pointer}.nowfolder-wrap .jump-icon[data-v-3cfc48e6]{width:100%;height:100%;vertical-align:top;border-radius:4px}.workline-wrap[data-v-3cfc48e6]{background-color:#f0f0f0}.has-next-node[data-v-3cfc48e6],.has-prev-node[data-v-3cfc48e6]{width:20px;height:20px;border-radius:4px;background-color:#fafafa;margin:0 8px;cursor:pointer;overflow:hidden}.next-icon[data-v-3cfc48e6],.prev-icon[data-v-3cfc48e6]{width:100%;height:100%;vertical-align:top;cursor:pointer}.prev-icon[data-v-3cfc48e6]{transform:rotate(90deg)}.next-icon[data-v-3cfc48e6]{transform:rotate(-90deg)}.now-folder-text[data-v-3cfc48e6]{max-width:157px}.other-folder-text[data-v-3cfc48e6]{max-width:110px}.use-ellipsis[data-v-3cfc48e6]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hide-folder[data-v-3cfc48e6]{display:none}.adjust-btn-pos[data-v-3cfc48e6]{text-align:left;padding:0 31px}.height-0[data-v-3cfc48e6]{height:0}.set-transition[data-v-3cfc48e6]{transition:transform .5s ease}.right-line[data-v-76b9a2f1]{width:1px;height:100px;background-color:#ebebeb}.temp-file-container[data-v-76b9a2f1]{max-height:200px;overflow:scroll;background-color:#f1f1f1;padding:20px 10px 12px;text-align:left}.temp-file-container .temp-file[data-v-76b9a2f1]{background-color:#fff}.temp-file-container .temp-file[data-v-76b9a2f1]:hover{background-color:#d5d5d6}.temp-file-container[data-v-76b9a2f1]::-webkit-scrollbar{width:8px;height:8px;border-radius:4px}.temp-file-container[data-v-76b9a2f1]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#adadad}.temp-file-container[data-v-76b9a2f1]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.title-head[data-v-76b9a2f1]{padding:19px 24px}.title-head .title-text[data-v-76b9a2f1]{color:#32323c;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.new-template-file-dialog .title-text[data-v-76b9a2f1]{font-size:18px}.yiyunwenjian_imgbox[data-v-76b9a2f1]{position:absolute;top:0;left:0;width:136px;height:200px;text-align:center}.new-btn[data-v-76b9a2f1]{position:relative;width:64px;height:64px;margin:39px auto 33px;border-radius:16px;background-color:#fff;box-shadow:0 2px 5px 0 rgba(0,0,0,.2)}.new-btn .draw-line[data-v-76b9a2f1]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:2px;background-color:#999b9d;width:30px}.new-btn .vert[data-v-76b9a2f1]{transform:translate(-50%,-50%) rotate(90deg)}.newbtn-text[data-v-76b9a2f1]{height:20px;line-height:20px;color:rgba(0,0,0,.56);font-size:14px;text-align:center;font-family:PingFangSC-Regular}.no-left-margin[data-v-76b9a2f1]{margin-left:0!important}.lottie-svg[data-v-1f22bc7a]{display:inline-block}.lottie-svg[data-v-1f22bc7a] svg{position:static}.readytodownload-icon[data-v-31749f17]{position:relative;top:40px;margin:0 auto}.progress-circle[data-v-31749f17],.readytodownload-icon[data-v-31749f17]{width:45px;height:45px;background-color:#fff;border-radius:50%}.progress-circle .bg-pic[data-v-31749f17],.progress-circle[data-v-31749f17],.readytodownload-icon img[data-v-31749f17]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.progress-circle svg[data-v-31749f17]{position:relative!important}.progress-circle svg .el-progress-circle__track[data-v-31749f17]{stroke:#fff!important}.have-modified-icon[data-v-31749f17]{background-color:#cccdd7}.function-disabled[data-v-31749f17]{color:#adadad}.function-disabled[data-v-31749f17]:hover{cursor:not-allowed;background-color:#ecf5ff;color:#a7a8b7}.filePreview[data-v-31749f17]{position:absolute;width:200px;height:200px;top:0;left:50%;background-color:red}.have-modified-icon[data-v-31749f17],.isonselect[data-v-31749f17]{border-radius:50%}.yijianIcon[data-v-31749f17]{color:#fff;line-height:24px;top:0;left:0}.gray[data-v-31749f17]{-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%);filter:gray}.file-extension-tip[data-v-31749f17]{position:absolute;right:32px;top:98px;color:#32323c;font-size:18px;text-align:right;font-family:PingFangSC-Regular}.loding-mask-parent{position:relative}.loding-mask-parent .el-loading-mask{z-index:1!important}.set-loding-mask-position{position:absolute;left:0;top:0;bottom:0;right:0}.yiyun_wenjian_list_add:hover{background-color:transparent!important;cursor:default}.loding-mask-parent .el-loading-mask{border-radius:8px;background-color:hsla(0,0%,100%,.15)}.loding-mask-parent .el-loading-spinner svg{position:relative}.loding-mask-parent .el-loading-spinner{margin-top:-18px!important}.remind-color{color:#2869e6!important}.folderRightMenu li[data-v-047996e3]{white-space:nowrap}.isonselect[data-v-047996e3]{border-radius:50%}.yijianIcon[data-v-047996e3]{color:#fff;line-height:24px;top:0;left:0}.keep-sync[data-v-047996e3]{width:40px;height:40px;position:relative;top:55px;border-radius:50%;-webkit-animation:keep-rotation-data-v-047996e3 .8s linear infinite;animation:keep-rotation-data-v-047996e3 .8s linear infinite}@-webkit-keyframes keep-rotation-data-v-047996e3{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes keep-rotation-data-v-047996e3{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.rt-2[data-v-6e81672d]{top:2px!important}.rt-0[data-v-6e81672d]{top:0!important}.rt-4[data-v-6e81672d]{top:4px!important}.empty[data-v-6e81672d]{background-color:#eaeaea}.people-item[data-v-6e81672d]{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-6e81672d]{position:relative;top:4px;border-radius:50%;margin:0 auto;width:100%}.people-item .people[data-v-6e81672d]{border-radius:50%}.active-manager-mark .people-name[data-v-6e81672d]{top:-2px}.people-item .el-icon-plus[data-v-6e81672d]{display:block;text-align:center;height:48px;line-height:48px;font-size:24px;color:#999b9d}.proj-avatarface[data-v-6e81672d]{vertical-align:bottom;width:48px;height:48px;border-radius:50%;overflow:hidden;background-color:#f6f6f6}.people-name[data-v-6e81672d]{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-6e81672d]{cursor:pointer;margin:0 4px}textarea[data-v-447c10a7]{resize:none;outline:none}.blur-bg[data-v-447c10a7]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(50,50,60,.32);z-index:10;filter:blur(15px) brightness(1.5) grayscale(.2) contrast(.8)}.commit-judge-box[data-v-447c10a7]{position:fixed;z-index:11;left:0;right:0;margin:0 auto;top:180px;width:680px;box-sizing:border-box;color:#f0f0f0}.commit-judge-box .commit-wrap[data-v-447c10a7]{height:248px;background-color:#f0f0f0;border-radius:8px}.commit-judge-box .title-bar[data-v-447c10a7]{display:flex;justify-content:space-between;padding:0 0 0 16px;height:48px;line-height:48px;font-size:18px;font-family:PingFangSC-Semibold;text-shadow:0 0 #32323c;border-top-left-radius:8px;border-top-right-radius:8px;color:#32323c;background-color:#fcfcfc}.commit-judge-box .title-bar .left-title[data-v-447c10a7]{display:flex}.commit-judge-box .title-bar .status-icon[data-v-447c10a7]{width:28px;height:28px;background-color:#4ae2a6;margin:10px 6px 10px 0}.commit-judge-box .close-icon[data-v-447c10a7]{position:relative;width:48px}.commit-judge-box .commit-operate-box[data-v-447c10a7]{display:flex;justify-content:space-between}.commit-judge-box .commit-operate-box .file-info[data-v-447c10a7]{width:136px;text-align:center;font-family:PingFangSC-Regular;margin:0 16px 0 0;cursor:default}.commit-judge-box .commit-operate-box .file-info .file-name[data-v-447c10a7]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all;text-overflow:ellipsis;font-size:14px;margin:0 0 4px 0;color:#32323c}.commit-judge-box .commit-operate-box .file-info .file-version[data-v-447c10a7]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;word-break:break-all;text-overflow:ellipsis;font-size:11px;height:13px;line-height:13px;color:#2869e6}.commit-judge-box .commit-operate-box .commit-part .milestone-wrap[data-v-447c10a7]{display:flex;height:52px;align-items:center}.commit-judge-box .commit-operate-box .commit-part .milestone-logo[data-v-447c10a7]{width:20px;height:20px;margin:0 8px;border-radius:8px;background-color:#f0f0f0;border:.5px solid #d1d2d3}.commit-judge-box .commit-operate-box .commit-part .milestone-tips[data-v-447c10a7]{color:rgba(0,0,0,.56);font-size:13px;height:18px;line-height:18px;font-family:PingFangSC-Regular}.commit-judge-box .commit-operate-box .commit-part .remark-content[data-v-447c10a7]{box-sizing:border-box;width:512px;height:76px;overflow:auto;margin:0 16px 24px 0;padding:8px;border-radius:8px;color:rgba(0,0,0,.5);background-color:#e9e9eb;border:.5px solid #aeaeae}.commit-judge-box .commit-operate-box .commit-part .operate-btn[data-v-447c10a7]{display:flex;height:32px;line-height:32px;font-size:16px;text-align:center;font-family:PingFangSC-Regular;cursor:pointer}.commit-judge-box .commit-operate-box .commit-part .operate-btn .cancel-btn[data-v-447c10a7]{width:248px;margin:0 16px 0 0;border-radius:8px;color:#32323c;background-color:#fff;border:.5px solid #d1d2d3}.commit-judge-box .commit-operate-box .commit-part .operate-btn .commit-btn[data-v-447c10a7]{width:248px;border-radius:8px;color:#fff;background-color:#7850ff;box-shadow:0 4px 10px 0 rgba(0,0,0,.1),0 2px 5px 0 rgba(0,0,0,.16)}.commit-judge-box .look-coop-wrap[data-v-447c10a7]{text-align:center}.commit-judge-box .look-coop-target[data-v-447c10a7]{display:inline-block;margin:16px 0 9px 0;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Medium;cursor:pointer}.commit-judge-box .look-coop-target .look-icon[data-v-447c10a7]{vertical-align:top;width:26px}.commit-judge-box .coop-wrap[data-v-447c10a7]{border-radius:8px}.commit-judge-box .coop-wrap .coop-people-list[data-v-447c10a7]{max-height:240px;overflow:auto;background-color:#f0f0f0;border-bottom-left-radius:8px;border-bottom-right-radius:8px}.commit-judge-box .coop-wrap .coop-people-list .folder-item[data-v-447c10a7]{padding:6px 0 6px 12px}.commit-judge-box .coop-wrap .coop-people-list .work-name[data-v-447c10a7]{padding:5px 0 0 12px;height:20px;line-height:20px;color:#32323c;font-size:14px;font-family:PingFangSC-Regular}.commit-judge-box .coop-wrap .coop-people-list .coop-people[data-v-447c10a7]{padding:0 0 0 8px}.flex-1[data-v-447c10a7]{display:flex;flex-wrap:wrap;flex:1}.mt-16[data-v-447c10a7]{margin:16px 0 0 0}.coop-people-list[data-v-447c10a7]::-webkit-scrollbar,.remark-content[data-v-447c10a7]::-webkit-scrollbar{width:8px;height:8px;border-radius:4px}.coop-people-list[data-v-447c10a7]::-webkit-scrollbar-thumb,.remark-content[data-v-447c10a7]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#adadad}.coop-people-list[data-v-447c10a7]::-webkit-scrollbar-thumb:window-inactive,.remark-content[data-v-447c10a7]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.milestone-switch .el-switch__core{height:22px!important}.milestone-switch .el-switch__core:after{box-sizing:border-box!important;top:-4px!important;left:-13px;width:28px!important;height:28px!important}.section_item.section_item_aside_fl{overflow:hidden}.el-message-box--center .el-message-box__status.el-icon-warning{position:absolute;left:0}.youbian,.yywenjiantitle_text1{position:relative;top:2px}.youbian{color:#a7a8b7}.app-header-style{background-color:#f0f0f0}.app-header-style .app-header-content-right{display:flex}.titleBox[data-v-58a969d0]{position:relative}.app-header-style[data-v-58a969d0]{background-color:#f0f0f0}.titlebar_head[data-v-58a969d0]{flex-direction:column}.yiyun_section_top[data-v-58a969d0]{overflow:visible}.folder_breadcrumb[data-v-58a969d0] .el-breadcrumb__item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:18px;display:inline-block;height:40px;line-height:40px}.folder_breadcrumb[data-v-58a969d0] .el-breadcrumb__item .el-breadcrumb__separator{color:#a7a8b7}.folder_breadcrumb[data-v-58a969d0] .el-breadcrumb__item:not(:last-child){cursor:pointer}[data-v-58a969d0] .readytodownload-icon{position:relative;top:40px;margin:0 auto}[data-v-58a969d0] .progress-circle,[data-v-58a969d0] .readytodownload-icon{width:45px;height:45px;background-color:#fff;border-radius:50%}[data-v-58a969d0] .progress-circle,[data-v-58a969d0] .progress-circle .bg-pic,[data-v-58a969d0] .readytodownload-icon img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-58a969d0] .progress-circle svg{position:relative!important}[data-v-58a969d0] .progress-circle svg .el-progress-circle__track{stroke:#fff!important}.filePreview[data-v-58a969d0]{text-align:center}.filePreview video[data-v-58a969d0]{width:820px;height:600px}.img-container[data-v-58a969d0]{margin:0 auto}.temp-file-dialog .guide-template-file-name[data-v-58a969d0]{color:#000;font-size:14px;font-family:PingFangSC-Regular;padding:16px;text-align:center}.temp-file-dialog .el-dialog{background-color:#fcfcfc}.temp-file-dialog .el-dialog .el-dialog__header{padding:19px 0}.temp-file-dialog .el-dialog .el-dialog__body{padding:0!important}.temp-file-dialog .el-dialog .el-dialog__body .el-form{padding:20px 0 0 0;background-color:#f1f1f1}.temp-file-dialog .el-dialog .el-dialog__body .el-form .el-form-item{margin:0 0 0 0}.temp-file-dialog .el-dialog .el-form-item__content{padding:0 16px}.temp-file-dialog .el-dialog .el-form-item__content .el-input__inner{background-color:#ddd;margin:0 0 20px 0}.temp-file-dialog .el-dialog .dialog-footer{display:flex;justify-content:space-between;padding:16px}.temp-file-dialog .el-dialog .el-dialog__footer{padding:0}.temp-file-dialog .el-dialog .el-dialog__footer .el-button{border-radius:8px}.set-bg[data-v-58a969d0]{background-color:#f6f6f6}.operate-bar[data-v-58a969d0]{width:162px;margin:28px auto 15px}.search-res-page-wrap[data-v-58a969d0]{margin:0 64px;box-sizing:border-box}.out-wrap[data-v-58a969d0]{height:calc(100vh - 131px);overflow:scroll}.out-wrap[data-v-58a969d0]::-webkit-scrollbar{width:8px;border-radius:4px}.out-wrap[data-v-58a969d0]::-webkit-scrollbar-thumb{border-radius:10px;height:10px;background-color:#adadad}.out-wrap[data-v-58a969d0]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.no-file-tips[data-v-58a969d0]{font-size:22px;text-align:center;margin:100px auto}.my-workline[data-v-58a969d0]{text-align:center}.adjust-workline-pos-client[data-v-58a969d0]{position:relative;top:-12px}.adjust-workline-pos-web[data-v-58a969d0]{position:relative;top:-2.5px}.ml-4-mt-20[data-v-58a969d0]{margin:20px 0 0 4px}.height-0[data-v-58a969d0]{height:0}.layout_content2[data-v-58a969d0]{height:calc(100vh - 64px)}.coopBox-max-height[data-v-58a969d0]{height:300px}.workspace-header .app-header-center[data-v-58a969d0]{-webkit-app-region:no-drag}.set-workarea-height[data-v-58a969d0]{height:calc(100vh - 364px)!important}#workspace .yiyun_section_warp[data-v-58a969d0]{margin:0 0 0 64px;overflow:visible!important}.conflit-message-box .el-icon-close:before{content:"\e6db"!important} \ No newline at end of file +.search-wrap[data-v-df8317c6]{position:relative;z-index:2}.search-entry[data-v-df8317c6]{position:absolute;right:0;cursor:pointer;width:29px;height:29px}.set-high-index[data-v-df8317c6]{z-index:3}.search-bar[data-v-df8317c6]{position:relative;overflow:hidden;width:32px;height:32px;transition:width .15s ease-in}.search-bar .search-active-img[data-v-df8317c6],.search-bar .search-img[data-v-df8317c6]{width:29px;height:29px}.search-bar .search-input[data-v-df8317c6]{box-sizing:border-box;color:#32323c;height:30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;padding:0 32px}.search-bar .close-icon[data-v-df8317c6],.search-bar .search-icon[data-v-df8317c6]{position:absolute;top:50%;transform:translateY(-50%);width:22px;height:22px;cursor:pointer}.search-bar .search-icon[data-v-df8317c6]{left:7px;background:url(/static/img/搜索.svg) 50%/100%}.search-bar .close-icon[data-v-df8317c6]{right:5px;background:url(/static/img/删除.svg) 50%/100%}.hide-search-bar[data-v-df8317c6]{width:0}.show-search-bar[data-v-df8317c6]{width:235px}.change-btn[data-v-d5ff7aba]{display:flex;width:100%;padding:2px 0;background-color:#d1d2d3;border-radius:4px}.change-btn .btn[data-v-d5ff7aba]{flex:1;height:28px;line-height:28px;cursor:pointer;margin:0 2px;text-align:center;font-size:14px}.change-btn .active-btn[data-v-d5ff7aba]{color:#32323c;border-radius:4px;background-color:#fcfcfc;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.slot_btn[data-v-2e9a13da]{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-2e9a13da]{position:relative;border-top-right-radius:8px;border-top-left-radius:8px;box-shadow:none}.template_info_title[data-v-2e9a13da]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf}.template_select_content[data-v-2e9a13da]{height:calc(100vh - 100px);overflow-y:scroll}.template_select_content .template_info[data-v-2e9a13da]{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-2e9a13da]{margin-left:38px;font-size:14px}.template_select_content .template_info .check_box[data-v-2e9a13da]{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-2e9a13da]{background-color:#7850ff;text-align:center;line-height:28px;color:#fff}.template_select_content .template_info .check_box.checked .el-icon-check[data-v-2e9a13da]{display:inline-block}.template_select_content .template_info .check_box .el-icon-check[data-v-2e9a13da]{display:none}.template_info[data-v-2e9a13da]:hover{background-color:rgba(50,50,60,.15)}.edit-template-btn[data-v-2e9a13da],.to-distwork-btn[data-v-2e9a13da]{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-2e9a13da]{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-2e9a13da]{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-2e9a13da]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.item .item-title[data-v-2e9a13da]{color:#62492f;width:24%;text-align:right}.item .item-value[data-v-2e9a13da]{margin:0 0 0 12px}.item .item-value[data-v-2e9a13da]:not(.cover-img-wrap){flex:1}.set-header-position[data-v-2e9a13da]{position:relative!important;color:#32323c!important;z-index:99}.adjust-title-position[data-v-2e9a13da]{position:relative;top:11px}.use-flex2[data-v-3cfc48e6]{display:flex;flex-wrap:nowrap;align-items:center}.worklinkBtngroup button[data-v-3cfc48e6]{flex-shrink:0}.worklink-wrap[data-v-3cfc48e6]{display:flex;margin:0 auto}.nowfolder-wrap[data-v-3cfc48e6]{position:relative;display:flex;align-items:center;height:44px;line-height:44px;cursor:pointer}.nowfolder-wrap .jump-icon-wrap[data-v-3cfc48e6]{width:20px;height:20px;border-radius:4px;background-color:#e1e1e2;margin:0 8px 0 12px;cursor:pointer}.nowfolder-wrap .jump-icon[data-v-3cfc48e6]{width:100%;height:100%;vertical-align:top;border-radius:4px}.workline-wrap[data-v-3cfc48e6]{background-color:#f0f0f0}.has-next-node[data-v-3cfc48e6],.has-prev-node[data-v-3cfc48e6]{width:20px;height:20px;border-radius:4px;background-color:#fafafa;margin:0 8px;cursor:pointer;overflow:hidden}.next-icon[data-v-3cfc48e6],.prev-icon[data-v-3cfc48e6]{width:100%;height:100%;vertical-align:top;cursor:pointer}.prev-icon[data-v-3cfc48e6]{transform:rotate(90deg)}.next-icon[data-v-3cfc48e6]{transform:rotate(-90deg)}.now-folder-text[data-v-3cfc48e6]{max-width:157px}.other-folder-text[data-v-3cfc48e6]{max-width:110px}.use-ellipsis[data-v-3cfc48e6]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hide-folder[data-v-3cfc48e6]{display:none}.adjust-btn-pos[data-v-3cfc48e6]{text-align:left;padding:0 31px}.height-0[data-v-3cfc48e6]{height:0}.set-transition[data-v-3cfc48e6]{transition:transform .5s ease}.right-line[data-v-76b9a2f1]{width:1px;height:100px;background-color:#ebebeb}.temp-file-container[data-v-76b9a2f1]{max-height:200px;overflow:scroll;background-color:#f1f1f1;padding:20px 10px 12px;text-align:left}.temp-file-container .temp-file[data-v-76b9a2f1]{background-color:#fff}.temp-file-container .temp-file[data-v-76b9a2f1]:hover{background-color:#d5d5d6}.temp-file-container[data-v-76b9a2f1]::-webkit-scrollbar{width:8px;height:8px;border-radius:4px}.temp-file-container[data-v-76b9a2f1]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#adadad}.temp-file-container[data-v-76b9a2f1]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.title-head[data-v-76b9a2f1]{padding:19px 24px}.title-head .title-text[data-v-76b9a2f1]{color:#32323c;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.new-template-file-dialog .title-text[data-v-76b9a2f1]{font-size:18px}.yiyunwenjian_imgbox[data-v-76b9a2f1]{position:absolute;top:0;left:0;width:136px;height:200px;text-align:center}.new-btn[data-v-76b9a2f1]{position:relative;width:64px;height:64px;margin:39px auto 33px;border-radius:16px;background-color:#fff;box-shadow:0 2px 5px 0 rgba(0,0,0,.2)}.new-btn .draw-line[data-v-76b9a2f1]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:2px;background-color:#999b9d;width:30px}.new-btn .vert[data-v-76b9a2f1]{transform:translate(-50%,-50%) rotate(90deg)}.newbtn-text[data-v-76b9a2f1]{height:20px;line-height:20px;color:rgba(0,0,0,.56);font-size:14px;text-align:center;font-family:PingFangSC-Regular}.no-left-margin[data-v-76b9a2f1]{margin-left:0!important}.lottie-svg[data-v-1f22bc7a]{display:inline-block}.lottie-svg[data-v-1f22bc7a] svg{position:static}.readytodownload-icon[data-v-31749f17]{position:relative;top:40px;margin:0 auto}.progress-circle[data-v-31749f17],.readytodownload-icon[data-v-31749f17]{width:45px;height:45px;background-color:#fff;border-radius:50%}.progress-circle .bg-pic[data-v-31749f17],.progress-circle[data-v-31749f17],.readytodownload-icon img[data-v-31749f17]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.progress-circle svg[data-v-31749f17]{position:relative!important}.progress-circle svg .el-progress-circle__track[data-v-31749f17]{stroke:#fff!important}.have-modified-icon[data-v-31749f17]{background-color:#cccdd7}.function-disabled[data-v-31749f17]{color:#adadad}.function-disabled[data-v-31749f17]:hover{cursor:not-allowed;background-color:#ecf5ff;color:#a7a8b7}.filePreview[data-v-31749f17]{position:absolute;width:200px;height:200px;top:0;left:50%;background-color:red}.have-modified-icon[data-v-31749f17],.isonselect[data-v-31749f17]{border-radius:50%}.yijianIcon[data-v-31749f17]{color:#fff;line-height:24px;top:0;left:0}.gray[data-v-31749f17]{-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%);filter:gray}.file-extension-tip[data-v-31749f17]{position:absolute;right:32px;top:98px;color:#32323c;font-size:18px;text-align:right;font-family:PingFangSC-Regular}.loding-mask-parent{position:relative}.loding-mask-parent .el-loading-mask{z-index:1!important}.set-loding-mask-position{position:absolute;left:0;top:0;bottom:0;right:0}.yiyun_wenjian_list_add:hover{background-color:transparent!important;cursor:default}.loding-mask-parent .el-loading-mask{border-radius:8px;background-color:hsla(0,0%,100%,.15)}.loding-mask-parent .el-loading-spinner svg{position:relative}.loding-mask-parent .el-loading-spinner{margin-top:-18px!important}.remind-color{color:#2869e6!important}.folderRightMenu li[data-v-047996e3]{white-space:nowrap}.isonselect[data-v-047996e3]{border-radius:50%}.yijianIcon[data-v-047996e3]{color:#fff;line-height:24px;top:0;left:0}.keep-sync[data-v-047996e3]{width:40px;height:40px;position:relative;top:55px;border-radius:50%;-webkit-animation:keep-rotation-data-v-047996e3 .8s linear infinite;animation:keep-rotation-data-v-047996e3 .8s linear infinite}@-webkit-keyframes keep-rotation-data-v-047996e3{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes keep-rotation-data-v-047996e3{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.rt-2[data-v-6e81672d]{top:2px!important}.rt-0[data-v-6e81672d]{top:0!important}.rt-4[data-v-6e81672d]{top:4px!important}.empty[data-v-6e81672d]{background-color:#eaeaea}.people-item[data-v-6e81672d]{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-6e81672d]{position:relative;top:4px;border-radius:50%;margin:0 auto;width:100%}.people-item .people[data-v-6e81672d]{border-radius:50%}.active-manager-mark .people-name[data-v-6e81672d]{top:-2px}.people-item .el-icon-plus[data-v-6e81672d]{display:block;text-align:center;height:48px;line-height:48px;font-size:24px;color:#999b9d}.proj-avatarface[data-v-6e81672d]{vertical-align:bottom;width:48px;height:48px;border-radius:50%;overflow:hidden;background-color:#f6f6f6}.people-name[data-v-6e81672d]{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-6e81672d]{cursor:pointer;margin:0 4px}textarea[data-v-447c10a7]{resize:none;outline:none}.blur-bg[data-v-447c10a7]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(50,50,60,.32);z-index:10;filter:blur(15px) brightness(1.5) grayscale(.2) contrast(.8)}.commit-judge-box[data-v-447c10a7]{position:fixed;z-index:11;left:0;right:0;margin:0 auto;top:180px;width:680px;box-sizing:border-box;color:#f0f0f0}.commit-judge-box .commit-wrap[data-v-447c10a7]{height:248px;background-color:#f0f0f0;border-radius:8px}.commit-judge-box .title-bar[data-v-447c10a7]{display:flex;justify-content:space-between;padding:0 0 0 16px;height:48px;line-height:48px;font-size:18px;font-family:PingFangSC-Semibold;text-shadow:0 0 #32323c;border-top-left-radius:8px;border-top-right-radius:8px;color:#32323c;background-color:#fcfcfc}.commit-judge-box .title-bar .left-title[data-v-447c10a7]{display:flex}.commit-judge-box .title-bar .status-icon[data-v-447c10a7]{width:28px;height:28px;background-color:#4ae2a6;margin:10px 6px 10px 0}.commit-judge-box .close-icon[data-v-447c10a7]{position:relative;width:48px}.commit-judge-box .commit-operate-box[data-v-447c10a7]{display:flex;justify-content:space-between}.commit-judge-box .commit-operate-box .file-info[data-v-447c10a7]{width:136px;text-align:center;font-family:PingFangSC-Regular;margin:0 16px 0 0;cursor:default}.commit-judge-box .commit-operate-box .file-info .file-name[data-v-447c10a7]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all;text-overflow:ellipsis;font-size:14px;margin:0 0 4px 0;color:#32323c}.commit-judge-box .commit-operate-box .file-info .file-version[data-v-447c10a7]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;word-break:break-all;text-overflow:ellipsis;font-size:11px;height:13px;line-height:13px;color:#2869e6}.commit-judge-box .commit-operate-box .commit-part .milestone-wrap[data-v-447c10a7]{display:flex;height:52px;align-items:center}.commit-judge-box .commit-operate-box .commit-part .milestone-logo[data-v-447c10a7]{width:20px;height:20px;margin:0 8px;border-radius:8px;background-color:#f0f0f0;border:.5px solid #d1d2d3}.commit-judge-box .commit-operate-box .commit-part .milestone-tips[data-v-447c10a7]{color:rgba(0,0,0,.56);font-size:13px;height:18px;line-height:18px;font-family:PingFangSC-Regular}.commit-judge-box .commit-operate-box .commit-part .remark-content[data-v-447c10a7]{box-sizing:border-box;width:512px;height:76px;overflow:auto;margin:0 16px 24px 0;padding:8px;border-radius:8px;color:rgba(0,0,0,.5);background-color:#e9e9eb;border:.5px solid #aeaeae}.commit-judge-box .commit-operate-box .commit-part .operate-btn[data-v-447c10a7]{display:flex;height:32px;line-height:32px;font-size:16px;text-align:center;font-family:PingFangSC-Regular;cursor:pointer}.commit-judge-box .commit-operate-box .commit-part .operate-btn .cancel-btn[data-v-447c10a7]{width:248px;margin:0 16px 0 0;border-radius:8px;color:#32323c;background-color:#fff;border:.5px solid #d1d2d3}.commit-judge-box .commit-operate-box .commit-part .operate-btn .commit-btn[data-v-447c10a7]{width:248px;border-radius:8px;color:#fff;background-color:#7850ff;box-shadow:0 4px 10px 0 rgba(0,0,0,.1),0 2px 5px 0 rgba(0,0,0,.16)}.commit-judge-box .look-coop-wrap[data-v-447c10a7]{text-align:center}.commit-judge-box .look-coop-target[data-v-447c10a7]{display:inline-block;margin:16px 0 9px 0;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Medium;cursor:pointer}.commit-judge-box .look-coop-target .look-icon[data-v-447c10a7]{vertical-align:top;width:26px}.commit-judge-box .coop-wrap[data-v-447c10a7]{border-radius:8px}.commit-judge-box .coop-wrap .coop-people-list[data-v-447c10a7]{max-height:240px;overflow:auto;background-color:#f0f0f0;border-bottom-left-radius:8px;border-bottom-right-radius:8px}.commit-judge-box .coop-wrap .coop-people-list .folder-item[data-v-447c10a7]{padding:6px 0 6px 12px}.commit-judge-box .coop-wrap .coop-people-list .work-name[data-v-447c10a7]{padding:5px 0 0 12px;height:20px;line-height:20px;color:#32323c;font-size:14px;font-family:PingFangSC-Regular}.commit-judge-box .coop-wrap .coop-people-list .coop-people[data-v-447c10a7]{padding:0 0 0 8px}.flex-1[data-v-447c10a7]{display:flex;flex-wrap:wrap;flex:1}.mt-16[data-v-447c10a7]{margin:16px 0 0 0}.coop-people-list[data-v-447c10a7]::-webkit-scrollbar,.remark-content[data-v-447c10a7]::-webkit-scrollbar{width:8px;height:8px;border-radius:4px}.coop-people-list[data-v-447c10a7]::-webkit-scrollbar-thumb,.remark-content[data-v-447c10a7]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#adadad}.coop-people-list[data-v-447c10a7]::-webkit-scrollbar-thumb:window-inactive,.remark-content[data-v-447c10a7]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.milestone-switch .el-switch__core{height:22px!important}.milestone-switch .el-switch__core:after{box-sizing:border-box!important;top:-4px!important;left:-13px;width:28px!important;height:28px!important}.section_item.section_item_aside_fl{overflow:hidden}.el-message-box--center .el-message-box__status.el-icon-warning{position:absolute;left:0}.youbian,.yywenjiantitle_text1{position:relative;top:2px}.youbian{color:#a7a8b7}.app-header-style{background-color:#f0f0f0}.app-header-style .app-header-content-right{display:flex}.titleBox[data-v-72f8ea89]{position:relative}.app-header-style[data-v-72f8ea89]{background-color:#f0f0f0}.titlebar_head[data-v-72f8ea89]{flex-direction:column}.yiyun_section_top[data-v-72f8ea89]{overflow:visible}.folder_breadcrumb[data-v-72f8ea89] .el-breadcrumb__item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:18px;display:inline-block;height:40px;line-height:40px}.folder_breadcrumb[data-v-72f8ea89] .el-breadcrumb__item .el-breadcrumb__separator{color:#a7a8b7}.folder_breadcrumb[data-v-72f8ea89] .el-breadcrumb__item:not(:last-child){cursor:pointer}[data-v-72f8ea89] .readytodownload-icon{position:relative;top:40px;margin:0 auto}[data-v-72f8ea89] .progress-circle,[data-v-72f8ea89] .readytodownload-icon{width:45px;height:45px;background-color:#fff;border-radius:50%}[data-v-72f8ea89] .progress-circle,[data-v-72f8ea89] .progress-circle .bg-pic,[data-v-72f8ea89] .readytodownload-icon img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-72f8ea89] .progress-circle svg{position:relative!important}[data-v-72f8ea89] .progress-circle svg .el-progress-circle__track{stroke:#fff!important}.filePreview[data-v-72f8ea89]{text-align:center}.filePreview video[data-v-72f8ea89]{width:820px;height:600px}.img-container[data-v-72f8ea89]{margin:0 auto}.temp-file-dialog .guide-template-file-name[data-v-72f8ea89]{color:#000;font-size:14px;font-family:PingFangSC-Regular;padding:16px;text-align:center}.temp-file-dialog .el-dialog{background-color:#fcfcfc}.temp-file-dialog .el-dialog .el-dialog__header{padding:19px 0}.temp-file-dialog .el-dialog .el-dialog__body{padding:0!important}.temp-file-dialog .el-dialog .el-dialog__body .el-form{padding:20px 0 0 0;background-color:#f1f1f1}.temp-file-dialog .el-dialog .el-dialog__body .el-form .el-form-item{margin:0 0 0 0}.temp-file-dialog .el-dialog .el-form-item__content{padding:0 16px}.temp-file-dialog .el-dialog .el-form-item__content .el-input__inner{background-color:#ddd;margin:0 0 20px 0}.temp-file-dialog .el-dialog .dialog-footer{display:flex;justify-content:space-between;padding:16px}.temp-file-dialog .el-dialog .el-dialog__footer{padding:0}.temp-file-dialog .el-dialog .el-dialog__footer .el-button{border-radius:8px}.set-bg[data-v-72f8ea89]{background-color:#f6f6f6}.operate-bar[data-v-72f8ea89]{width:162px;margin:28px auto 15px}.search-res-page-wrap[data-v-72f8ea89]{margin:0 64px;box-sizing:border-box}.out-wrap[data-v-72f8ea89]{height:calc(100vh - 131px);overflow:scroll}.out-wrap[data-v-72f8ea89]::-webkit-scrollbar{width:8px;border-radius:4px}.out-wrap[data-v-72f8ea89]::-webkit-scrollbar-thumb{border-radius:10px;height:10px;background-color:#adadad}.out-wrap[data-v-72f8ea89]::-webkit-scrollbar-thumb:window-inactive{background-color:#adadad}.no-file-tips[data-v-72f8ea89]{font-size:22px;text-align:center;margin:100px auto}.my-workline[data-v-72f8ea89]{text-align:center}.adjust-workline-pos-client[data-v-72f8ea89]{position:relative;top:-12px}.adjust-workline-pos-web[data-v-72f8ea89]{position:relative;top:-2.5px}.ml-4-mt-20[data-v-72f8ea89]{margin:20px 0 0 4px}.height-0[data-v-72f8ea89]{height:0}.layout_content2[data-v-72f8ea89]{height:calc(100vh - 64px)}.coopBox-max-height[data-v-72f8ea89]{height:300px}.workspace-header .app-header-center[data-v-72f8ea89]{-webkit-app-region:no-drag}.set-workarea-height[data-v-72f8ea89]{height:calc(100vh - 364px)!important}#workspace .yiyun_section_warp[data-v-72f8ea89]{margin:0 0 0 64px;overflow:visible!important}.conflit-message-box .el-icon-close:before{content:"\e6db"!important} \ No newline at end of file diff --git a/dist/static/css/chunk-4a5d94c9.100d49dc.css b/dist/static/css/chunk-4a5d94c9.100d49dc.css new file mode 100644 index 00000000..4f00c47d --- /dev/null +++ b/dist/static/css/chunk-4a5d94c9.100d49dc.css @@ -0,0 +1 @@ +.hide-state[data-v-06f5aedd]{visibility:hidden}.black[data-v-06f5aedd]{color:#fff!important}.white-color[data-v-06f5aedd],.white[data-v-06f5aedd]{background-color:#fcfcfc}.white[data-v-06f5aedd]{box-shadow:0 1px 2px 0 rgba(0,0,0,.2)}.app-header div[data-v-06f5aedd]{box-sizing:border-box}.app-header[data-v-06f5aedd]{position:fixed;top:0;width:100%;z-index:9}.app-header-top[data-v-06f5aedd]{position:relative;-webkit-app-region:drag;display:flex;justify-content:space-between;height:24px;line-height:24px;padding:0 0 0 45px}.app-header-top .top-center[data-v-06f5aedd]{flex:1}.app-header-top .top-left[data-v-06f5aedd],.app-header-top .top-right[data-v-06f5aedd]{display:flex;align-items:center;-webkit-app-region:no-drag}.app-header-top .top-left .dot[data-v-06f5aedd]{width:8px;height:8px;border-radius:50%}.app-header-top .online[data-v-06f5aedd]{background-color:#4ae2a6}.app-header-top .offline[data-v-06f5aedd]{background-color:#d6243a}.app-header-top .top-left .state[data-v-06f5aedd]{color:rgba(0,0,0,.56);font-size:11px;font-family:PingFangSC-Regular;margin:0 0 0 11px;cursor:default}.app-header-top .top-right .close[data-v-06f5aedd],.app-header-top .top-right .min[data-v-06f5aedd],.app-header-top .top-right .my-max[data-v-06f5aedd]{position:relative;width:40px;height:24px;cursor:pointer}.app-header-top .top-right .min[data-v-06f5aedd]:hover,.app-header-top .top-right .my-max[data-v-06f5aedd]:hover{background-color:#d4d4d5}.app-header-top .top-right .close[data-v-06f5aedd]:hover{background-color:#d0021b}.app-header-content[data-v-06f5aedd]{display:flex;justify-content:space-between;position:relative;-webkit-app-region:drag;height:40px;width:100%;padding:0 46px 0 64px;font-size:16px}.app-header-content-right[data-v-06f5aedd]{display:flex;align-items:center}.app-header-content-right>div[data-v-06f5aedd],.app-header-content-right>span[data-v-06f5aedd]{margin-left:12px}.app-header-content-left[data-v-06f5aedd]{line-height:40px}.app-header-center[data-v-06f5aedd]{position:absolute;left:50%;transform:translateX(-50%);line-height:40px;font-size:18px;color:#32323c}.app-header-back-btn[data-v-06f5aedd]{position:absolute;left:36px;top:50%;transform:translateY(-50%);margin:auto 0;z-index:9}.black-bg-color[data-v-06f5aedd]{background-color:#32323c}.inRecycle[data-v-06f5aedd]{color:#9c22ff}.adjust-content-pos[data-v-06f5aedd]{position:relative;top:-10px}.stand-place[data-v-06f5aedd]{position:absolute;width:100%;top:0;left:0;right:0;bottom:0} \ No newline at end of file diff --git a/dist/static/css/chunk-5e79f418.d5fe49e6.css b/dist/static/css/chunk-5e79f418.d5fe49e6.css new file mode 100644 index 00000000..8431ac43 --- /dev/null +++ b/dist/static/css/chunk-5e79f418.d5fe49e6.css @@ -0,0 +1 @@ +.adminnavBox[data-v-75440960]{cursor:default}.template_list .template_grid[data-v-75440960]{display:grid;grid-template-columns:repeat(auto-fill,300px);row-gap:32px;-moz-column-gap:20px;column-gap:20px;justify-content:space-between;overflow:initial;padding-bottom:20px}.template_list .template_grid .card[data-v-75440960]{height:160px;border-radius:16px;background-color:#fff;border:.5px solid #979797;padding:24px;box-sizing:border-box;transition:transform .2s linear;transform:scale(1);cursor:pointer}.template_list .template_grid .card[data-v-75440960]:not(.add):hover{transform:scale(1.05);border-color:transparent}.template_list .template_grid .card.add[data-v-75440960]{background-color:transparent}.template_list .template_grid .card_inner[data-v-75440960]{position:relative;height:100%}.template_list .template_grid .card_title[data-v-75440960]{position:absolute;left:0;bottom:0;width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.template_list .template_grid .card_right[data-v-75440960]{position:absolute;top:0;bottom:0;right:0;margin:auto 0;width:100px;height:100px}.template_list .template_grid .card_icon[data-v-75440960]{font-size:100px;line-height:100px;color:#7850ff} \ No newline at end of file diff --git a/dist/static/css/chunk-655d6881.60d63f7b.css b/dist/static/css/chunk-655d6881.60d63f7b.css new file mode 100644 index 00000000..e5887d47 --- /dev/null +++ b/dist/static/css/chunk-655d6881.60d63f7b.css @@ -0,0 +1 @@ +.template_market[data-v-7f690d34]{width:100%;height:100%;padding-top:14px;box-sizing:border-box}.template_market .card[data-v-7f690d34]{margin:0 60px;height:100%;width:calc(100% - 120px);border-radius:8px 8px 0 0;background-color:#fcfcfc;box-shadow:0 3px 11px 1px rgba(0,0,0,.06);overflow:hidden}.template_market .card_left[data-v-7f690d34]{display:inline-block;vertical-align:top;height:100%;width:320px;background-color:#f9f9f9;border-right:1px solid #e1e1e1;box-sizing:border-box}.template_market .card_left .list[data-v-7f690d34]{height:calc(100% - 72px);overflow:auto}.template_market .card_left .list_item[data-v-7f690d34]{height:44px;line-height:44px;padding:0 10px 0 24px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border-bottom:1px solid #cccdd7;cursor:pointer}.template_market .card_left .list_item[data-v-7f690d34]:hover,.template_market .card_left .list_item_active[data-v-7f690d34]{background-color:rgba(50,50,60,.1)}.template_market .card_right[data-v-7f690d34]{position:relative;display:inline-block;vertical-align:top;height:100%;width:calc(100% - 320px);overflow:auto}.template_market .card_search_box[data-v-7f690d34]{height:72px;border-bottom:1px solid #cccdd7;padding:22px 24px;box-sizing:border-box}.template_market .card .float_title[data-v-7f690d34]{position:absolute;top:0;left:0;right:0;height:44px;line-height:44px;background-color:#fff;padding-left:24px}.template_market .card .block_label[data-v-7f690d34]{height:44px;padding-left:24px;color:#32323c;line-height:44px;border-bottom:1px solid #cccdd7}.template_market .card .block_item_box[data-v-7f690d34]{display:flex;justify-content:space-between;flex-wrap:wrap}.template_market .card .block_item[data-v-7f690d34]{box-sizing:border-box;flex:0 0 476px;position:relative;display:inline-block;vertical-align:top;width:50%;padding:24px}.template_market .card .block_item.empty[data-v-7f690d34]{cursor:default}.template_market .card .block_item_logo[data-v-7f690d34]{font-size:60px;line-height:60px;color:#7850ff}.template_market .card .block_item_split_line[data-v-7f690d34]{position:absolute;top:-1px;left:104px;right:24px;height:1px;transform:scaleY(.5);background-color:#cccdd7}.template_market .card .block_item_left[data-v-7f690d34]{display:inline-block;vertical-align:top;width:60px;height:100px;cursor:pointer}.template_market .card .block_item_right[data-v-7f690d34]{box-sizing:border-box;position:relative;display:inline-block;vertical-align:top;padding-left:20px;width:calc(100% - 60px)}.template_market .card .block_item_right_intro[data-v-7f690d34],.template_market .card .block_item_right_label[data-v-7f690d34]{width:256px;cursor:pointer}.template_market .card .block_item_right_label[data-v-7f690d34]{line-height:27px;font-size:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.template_market .card .block_item_right_intro[data-v-7f690d34]{margin-top:6px;height:103px;overflow:auto;font-size:14px;color:#666;word-break:break-all}.template_market .card .block_item_right_button[data-v-7f690d34]{position:absolute;right:0;top:0}.template_market[data-v-7f690d34] .el-input_mini .el-input__inner{border-color:#c4c4c4}.template_market[data-v-7f690d34] .el-input_mini .el-input__inner:hover{border-color:#8c00ff} \ No newline at end of file diff --git a/dist/static/css/chunk-131f93ca.946d3591.css b/dist/static/css/chunk-7d913a8a.946d3591.css similarity index 100% rename from dist/static/css/chunk-131f93ca.946d3591.css rename to dist/static/css/chunk-7d913a8a.946d3591.css diff --git a/dist/static/css/chunk-802699f8.b81af110.css b/dist/static/css/chunk-802699f8.b81af110.css new file mode 100644 index 00000000..24da6454 --- /dev/null +++ b/dist/static/css/chunk-802699f8.b81af110.css @@ -0,0 +1 @@ +.template_detail[data-v-46308725]{height:100%}.template_detail .viewer[data-v-46308725]{display:inline-block;vertical-align:top;width:60%;height:calc(100% - 40px);margin-top:20px;box-sizing:border-box}.template_detail .template_info_popup[data-v-46308725]{display:inline-block;vertical-align:top;width:660px;width:calc(40% - 80px);margin-top:15px;margin-left:20px;height:calc(100% - 15px);background-color:#fcfcfc;box-shadow:0 3px 11px 1px rgba(0,0,0,.06);border-radius:8px 8px 0 0}.template_detail .template_info_popup .popup_line[data-v-46308725]{height:.5px;background-color:#cccdd7}.template_detail .template_info_popup .popup_head[data-v-46308725]{display:flex;justify-content:space-between;padding:0 24px;line-height:56px;height:56px}.template_detail .template_info_popup .popup_head .icon-gerenshezhi[data-v-46308725]{font-size:36px;color:#7850ff;line-height:inherit}.template_detail .template_info_popup .popup_head_center[data-v-46308725]{color:#32323c;font-size:20px}.template_detail .template_info_popup .popup_block[data-v-46308725]{padding:15px 24px}.template_detail .template_info_popup .popup_block_title[data-v-46308725]{font-size:13px;line-height:18px;color:#7a7b89}.template_detail .template_info_popup .popup_block_text[data-v-46308725]{font-size:14px;color:#32323c;line-height:20px;margin-top:15px}.template_detail .template_info_popup .popup_block_tags[data-v-46308725]{margin-top:13px}.template_detail .template_info_popup .popup_block_tag[data-v-46308725]{display:inline-block;margin-right:16px;margin-bottom:16px;padding:0 15px;line-height:32px;font-size:14px;border:.5px solid #a7a8b7;border-radius:21px}.template_detail .template_info_popup .popup_block_items[data-v-46308725]{margin-top:13px}.template_detail .template_info_popup .popup_block_item[data-v-46308725]{display:inline-block;vertical-align:top;width:50%}.template_detail .template_info_popup .popup_block_item>div[data-v-46308725]:first-child{font-size:12px;line-height:16px;color:#666}.template_detail .template_info_popup .popup_block_item>div[data-v-46308725]:first-child:after{content:":"}.template_detail .template_info_popup .popup_block_item>div[data-v-46308725]:last-child{font-size:14px;line-height:20px;margin-top:4px;color:#32323c;text-overflow:ellipsis;white-space:nowrap;overflow:hidden} \ No newline at end of file diff --git a/dist/static/js/app.03155211.js b/dist/static/js/app.03155211.js new file mode 100644 index 00000000..89ee3d42 --- /dev/null +++ b/dist/static/js/app.03155211.js @@ -0,0 +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){var o,c,u,s=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=s.length>4&&void 0!==s[4]?s[4]:i["identity"],e.next=3,y(g("init"),[t,n].join("|"));case 3:return c=e.sent,r(c.data),u=g("subscriptionFileChange"),u.on("open",(function(){u.send(n)})),u.on("message",a),u.on("error",o),e.abrupt("return",u);case 10:case"end":return e.stop()}}),e)})));return function(n,t,a,r){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,I,j,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,I=n.onSuccess,j=n.onProgress,N=void 0===j?i["identity"]:j,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()}I.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-e8c15138")]).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-6cb025ae")]).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-1eaf12ce")]).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-6a615eb9")]).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-805bd970"),t.e("chunk-2840b8b8")]).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-805bd970"),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-7a18b3e4")]).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.12 14:49"),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,I,j;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,I=C.CompanyName,j=[],m&&j.push(k["a"].CompanyConsole),1===d&&j.push(k["a"].ProjectManager),f.push(Object(k["d"])(k["b"].COMPANY,i,I,O,j));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"),I=t("a78e"),j=t.n(I),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=j.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":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/dist/static/js/app.4b9f57ac.js b/dist/static/js/app.4b9f57ac.js deleted file mode 100644 index f096085b..00000000 --- a/dist/static/js/app.4b9f57ac.js +++ /dev/null @@ -1 +0,0 @@ -(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 c={CompanyConsole:"company_console",ProjectManager:"project_manager"};function o(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")),c=t("b775"),o=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=[]},g=function(){},k=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:g},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=k("keeplive"),c=1,o=null,u=e.electron.ipcRenderer;function s(){n(!0),r.send(c)}u.on("detectWindowSize",(function(){t((arguments.length<=1?void 0:arguments[1])||!1)})),r.on("open",(function(){o=setInterval(s,2e3)})),r.on("close",(function(){clearInterval(o),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=k("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=k("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=k("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){var c,o,u,s=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return c=s.length>4&&void 0!==s[4]?s[4]:i["identity"],e.next=3,y(k("init"),[t,n].join("|"));case 3:return o=e.sent,r(o.data),u=k("subscriptionFileChange"),u.on("open",(function(){u.send(n)})),u.on("message",a),u.on("error",c),e.abrupt("return",u);case 10:case"end":return e.stop()}}),e)})));return function(n,t,a,r){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=k("download"),l={API:"download",Action:"下载文件",CompanyName:sessionStorage.CompanyName,Subject:t,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(c["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(c["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?(o["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(k("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,c=0===t.indexOf(".")?t.slice(1):t,o=n.slice(0,-t.length);return{fileName:o,extension:c,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,c;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,c=a.filePaths,!r){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",c);case 8:case"end":return n.stop()}}),n)})))),chooseFolders:v(Object(r["a"])(regeneratorRuntime.mark((function n(){var t,a,r,c;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,c=a.filePaths,!r){n.next=7;break}return n.abrupt("return",null);case 7:return n.abrupt("return",c);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,g,y,v,w,O,C,I,j,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,g=n.distFileRelativePath,y=void 0===g?"":g,v=n.fileName,w=n.fileExtension,O=n.sourceFilePath,C=n.fileList,I=n.onSuccess,j=n.onProgress,N=void 0===j?i["identity"]:j,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=C.find((function(e){return y===e.relativePath&&"".concat(e.archName).concat(e.extension?".".concat(e.extension):"")===E})),G=A?Object(o["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()}I.apply(void 0,arguments)},s=k("upload");s.on("open",(function(){var e="",n="",a=!1,r=[O,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 o["d"].error("文件上传失败"),n(t,G),e.abrupt("return");case 4:if("-2"!==t.data){e.next=8;break}return o["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(c["b"])("file/".concat(A?"updateFile":"addFile"),h);case 22:if(m=e.sent,Object(c["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=k("upload"),g=e.archName,y=e.extension,v=(e.id,"".concat(g).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,g,k;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("-1"!==t.data){n.next=4;break}return o["d"].error("文件上传失败"),m(t),n.abrupt("return");case 4:if("-2"!==t.data){n.next=8;break}return o["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(),g=Object(o["c"])(Object(i["cloneDeep"])(e)),g.ModifyUserId=sessionStorage.userId,g.HistoryPreIpfsCid=u,g.HistoryCurrentIpfsCid=l,f||(g.Size=+r,g.IpfsCid=d),n.next=23,Object(c["b"])("file/updateFile",g);case 23:return k=n.sent,Object(c["c"])(k),f&&(g.IpfsCid=d,g.Size=+r),p(g),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=k("queryCommitHistory");a.on("open",(function(){a.send([e,n].join("|"))})),a.on("message",(function(e){if("-1"===e.data)return o["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 c=k("editCommitHistoryMilestone");c.on("open",(function(){c.send([e,n,t,a].join("|"))})),c.on("message",(function(e){if("-1"!==e.data){var n=e.data;console.log("lcb",n),r(n)}else o["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 c})),t.d(n,"c",(function(){return o})),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 c(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],c=t[1];return e["".concat(r[0].toLocaleLowerCase()).concat(r.slice(1))]=c,e}),{})}function o(e){return Object.entries(e).reduce((function(e,n){var t=Object(a["a"])(n,2),r=t[0],c=t[1];return e["".concat(r[0].toLocaleUpperCase()).concat(r.slice(1))]=c,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"),c={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 o=new r["a"]({mode:"hash",routes:[{path:"/",name:"login",component:function(){return Promise.all([t.e("chunk-131f93ca"),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-131f93ca"),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-131f93ca"),t.e("chunk-638e5b5a"),t.e("chunk-3fbc85f3"),t.e("chunk-e8c15138")]).then(t.bind(null,"47c5"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-131f93ca"),t.e("chunk-638e5b5a"),t.e("chunk-6cb025ae")]).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-131f93ca"),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-131f93ca"),t.e("chunk-638e5b5a"),t.e("chunk-1eaf12ce")]).then(t.bind(null,"80fb"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-131f93ca"),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-131f93ca"),t.e("chunk-638e5b5a"),t.e("chunk-6a615eb9")]).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-131f93ca"),t.e("chunk-638e5b5a"),t.e("chunk-3fbc85f3"),t.e("chunk-805bd970"),t.e("chunk-33d2c21e")]).then(t.bind(null,"11f4"))}},{path:"/recycle",name:"recycle",component:function(){return Promise.all([t.e("chunk-131f93ca"),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-805bd970"),t.e("chunk-2d0d2af5")]).then(t.bind(null,"a2d2"))}},{path:"/cloud",name:"cloud",component:function(){return Promise.all([t.e("chunk-131f93ca"),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-131f93ca"),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-131f93ca"),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-131f93ca"),t.e("chunk-038ce22f")]).then(t.bind(null,"e984"))}},{path:"template",name:"company_template",component:function(){return Promise.all([t.e("chunk-131f93ca"),t.e("chunk-2d0dddf0")]).then(t.bind(null,"82dd"))}},{path:"template/detail",name:"company_template_detail",component:function(){return t.e("chunk-1662b2cc").then(t.bind(null,"ce1d"))}},{path:"template/market",name:"company_template_market",component:function(){return Promise.all([t.e("chunk-131f93ca"),t.e("chunk-2d207f39")]).then(t.bind(null,"a35f"))}},{path:"setting",name:"company_setting",component:function(){return Promise.all([t.e("chunk-131f93ca"),t.e("chunk-1fe39068")]).then(t.bind(null,"cda4"))}},{path:"app",name:"company_app",component:function(){return Promise.all([t.e("chunk-131f93ca"),t.e("chunk-2d0b3688")]).then(t.bind(null,"27f3"))}}]},{path:"/template",name:"template",component:function(e){return Promise.all([t.e("chunk-131f93ca"),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-131f93ca"),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-131f93ca"),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-131f93ca"),t.e("chunk-11067227")]).then(t.bind(null,"d798"))}},{path:"template/matrix",name:"system_template_matrix",component:function(){return Promise.all([t.e("chunk-131f93ca"),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-131f93ca"),t.e("chunk-638e5b5a"),t.e("chunk-7a18b3e4")]).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-131f93ca"),t.e("chunk-2d0e148e")]).then(t.bind(null,"7a7e"))}},{path:"appinfo",name:"system_appinfo",component:function(){return Promise.all([t.e("chunk-131f93ca"),t.e("chunk-2d21b850")]).then(t.bind(null,"bfb8"))}},{path:"setting",name:"system_setting",component:function(){return Promise.all([t.e("chunk-131f93ca"),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"))}}]});o.beforeEach((function(e,n,t){"/"===e.path||sessionStorage.getItem("userId")?t():t({path:"/"})})),o.afterEach((function(e){window.document.title=c[e.name]||"LOCKING | 云建筑"}));n["a"]=o},"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)},c=[],o=(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:o["a"].isClient,onlineStatus:!1,state:this.$store.state}},created:function(){var e=this;console.log("版本编译时间:","2021.03.10 14:29"),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&&o["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,c,!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"),g=t("0f13"),k=t("3de1"),y=function(){return{gatewayState:!1,isMaxWindowSize:!1,client:o["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},O={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,c,o,i,u,s,d,l,f,p,h,m,y,v,w,O,C,I,j;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,c=0===r.Code,c){a.next=6;break}return a.abrupt("return",r);case 6:if(t.state.isLogin=!0,o=Object(k["b"])(r.Data||{}),delete o.userExt,i=o.companyId,u=o.cnName,s=o.id,d=o.permission,l=o.backgroundPermission,f=[],p={accountId:s,accountName:e,userName:u,platformList:f,userInfo:o},h=3===l,m=2===l,!h){a.next=18;break}f.push(Object(g["d"])(g["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,O=w.company,C=O.LogoUrl,I=O.CompanyName,j=[],m&&j.push(g["a"].CompanyConsole),1===d&&j.push(g["a"].ProjectManager),f.push(Object(g["d"])(g["b"].COMPANY,i,I,C,j));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()}},C=t("2f62"),I=t("a78e"),j=t.n(I),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(C["a"]),a["default"].prototype.$cookie=j.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:O,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"),c=t("2ef0"),o=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,c,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,o.multipartUpload(r,t,a);case 5:return c=e.sent,e.abrupt("return",c);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(c["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,c=o.signatureUrl(t,{expires:r,response:{"content-disposition":'attachment; filename="'.concat(a,'"')}});return setTimeout((function(){l.cache.delete(e)}),1e3*r),c}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"),c=t("bc3a"),o=t.n(c),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 c,i,u,s,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return c=p(n),i=Object(a["a"])(c,2),u=i[0],s=i[1],e.prev=1,e.next=4,"GET"===u?o.a.get(s,{params:t},r):o.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],c=-1!==["template","project","folder","file"].indexOf(r)?"pms":"cms",o="api/".concat(c,"/").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":i="POST";break;default:i="GET";break}return[i,o]}o.a.defaults.withCredentials=!0,o.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)})),o.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"]=o.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=[],c=(t("a9e3"),function(e,n){return{imgSrc:"/static/img/"+e,class:n}}),o={success:c("success.svg","notifyIcon"),error:c("严重警示.svg","notifyIcon"),warning:c("事件警示.svg","notifyIcon"),"file-txt":c("file_txt.png","fileIcon"),"file-pdf":c("file_pdf.png","fileIcon"),"file-word":c("file_word.png","fileIcon"),"file-excel":c("file_excel.png","fileIcon"),"file-ppt":c("file_ppt.png","fileIcon"),upload:c("upload.png","notifyIcon"),download:c("download.svg","notifyIcon"),cooperation:c("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:o,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/dist/static/js/chunk-038ce22f.d52f52a6.js b/dist/static/js/chunk-038ce22f.c4dd6636.js similarity index 100% rename from dist/static/js/chunk-038ce22f.d52f52a6.js rename to dist/static/js/chunk-038ce22f.c4dd6636.js diff --git a/dist/static/js/chunk-05a1125b.b70d8222.js b/dist/static/js/chunk-05a1125b.3108a6ac.js similarity index 100% rename from dist/static/js/chunk-05a1125b.b70d8222.js rename to dist/static/js/chunk-05a1125b.3108a6ac.js diff --git a/dist/static/js/chunk-05bf99c1.ad769061.js b/dist/static/js/chunk-05bf99c1.42708950.js similarity index 100% rename from dist/static/js/chunk-05bf99c1.ad769061.js rename to dist/static/js/chunk-05bf99c1.42708950.js diff --git a/dist/static/js/chunk-11067227.fd7bc2ca.js b/dist/static/js/chunk-11067227.5301aa59.js similarity index 100% rename from dist/static/js/chunk-11067227.fd7bc2ca.js rename to dist/static/js/chunk-11067227.5301aa59.js diff --git a/dist/static/js/chunk-12a7ad0b.26670564.js b/dist/static/js/chunk-12a7ad0b.1bac7946.js similarity index 61% rename from dist/static/js/chunk-12a7ad0b.26670564.js rename to dist/static/js/chunk-12a7ad0b.1bac7946.js index 48108574..0ab93443 100644 --- a/dist/static/js/chunk-12a7ad0b.26670564.js +++ b/dist/static/js/chunk-12a7ad0b.1bac7946.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-12a7ad0b"],{"01a8":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?n("div",{staticClass:"app-header-top"},[n("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[n("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),n("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),n("div",{staticClass:"top-center"}),n("div",{staticClass:"top-right"},[n("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[n("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),n("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),n("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?n("div",{staticClass:"app-header-top"}):e._e(),n("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),n("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?n("span",{on:{click:e.toRecycle}},[n("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?n("user-center"):e._e()],2)])])},i=[],a=n("1392"),s=n("1d40"),o={components:{UserCenter:a["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:s["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize},isOnLine:function(){return this.$store.state.gatewayState}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){s["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),s["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),s["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){s["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=o,u=(n("8fc1"),n("2877")),l=Object(u["a"])(c,r,i,!1,null,"06f5aedd",null);t["a"]=l.exports},2275:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layout_content"},[n("app-header",{attrs:{showBackBtn:"",theme:"white",title:e.topNodeName,backBtnTitle:"退出矩阵编辑器",onBackBtnClick:e.onBackBtnClick}}),n("section",{staticClass:"title_section mt-10"},[n("div",{staticClass:"EC_col_8"},[n("h3",[e._v(e._s(e.topNodeName))])]),n("div",{staticClass:"EC_col_8"},[n("div",{staticClass:"text_concenter"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMatrixTemplatePane,expression:"isShowMatrixTemplatePane"}]},[n("div",{staticClass:"searhNodeNameconcenter"},[n("el-input",{staticClass:"el-input_mini",attrs:{placeholder:"矩阵搜索","prefix-icon":"icon font_family icon-icon_sousuo searchsize"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searhTempNode(t)}},model:{value:e.searhNodeName,callback:function(t){e.searhNodeName=t},expression:"searhNodeName"}})],1)])])]),n("div",{staticClass:"EC_col_8"}),n("div",{staticClass:"yiyunline"})]),n("section",{staticClass:"yiyun_section1"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"gundontiao"},[n("div",{staticClass:"fixtable"},[n("table",{directives:[{name:"show",rawName:"v-show",value:!!e.nodeList.length,expression:"!!nodeList.length"}],staticClass:"bg1",attrs:{cellspacing:"0",cellpadding:"0"}},[e._m(0)]),n("table",{staticClass:"bg2",attrs:{cellspacing:"0",cellpadding:"0"}},[n("tbody",[n("tr",e._l(e.nodeList,(function(t,r){return n("td",{key:t.id,class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":"",staticStyle:{"background-color":"#e2e2e2"},attrs:{id:t.id}},[n("div",{staticClass:"row-w-130 col-h-30 bg_write"},[n("div",{staticClass:"mark"},[e._v(e._s(r+1))])])])})),0),n("tr",e._l(e.nodeList,(function(t){return n("td",{key:t.id,class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":"",attrs:{id:t.id}},[n("div",{staticClass:"row-w-130 col-h-60 bg_druk"},[n("div",{staticClass:"mark"},[e._v(e._s(t.name))])])])})),0)])]),n("table",{staticClass:"bg3",attrs:{cellspacing:"0",cellpadding:"0"}},[n("tbody",e._l(e.nodeList,(function(t,r){return n("tr",{key:t.id,staticClass:"tdheight",attrs:{id:t.id}},[n("td",{class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":""},[n("div",{staticClass:"row-w-60 col-h-60 bg_write"},[n("div",{staticClass:"mark"},[e._v(e._s(r+1))])])]),n("td",{class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":""},[n("div",{staticClass:"row-w-130 col-h-60 bg_gray_th"},[n("div",{staticClass:"mark"},[e._v(e._s(t.name))])])])])})),0)]),n("table",{staticClass:"bg4 table-unit",attrs:{cellspacing:"0",cellpadding:"0"}},[n("tbody",e._l(e.nodeList,(function(t,r){return n("tr",{key:"row_"+t.id,attrs:{id:t.id}},[e._l(e.nodeList,(function(i,a){return[a===r?n("td",{key:t.id+"_"+i.id,staticClass:"matixEquallyName"},[n("div",{staticClass:"row-w-130 col-h-58"},[n("div",{staticClass:"nullbg",staticStyle:{"text-align":"center","font-size":"12px"}},[e._v(" "+e._s(i.name)+" ")])])]):n("td",{key:t.id+"_"+i.id,class:[a%2==1&&a>r||r%2==1&&ar?"zhuanchu":"zhuanru")+" circle_"+(1==e.Permission?"actived":"defualt")}:{})])})),0)])])]}))],2)})),0)])]),n("context-menu",{staticClass:"automenu",attrs:{id:"MatrixLookInfoMenu",show:e.MatrixLookInfoMenuVisible},on:{"update:show":function(t){return e.MatrixLookInfoMenuVisible=t}}},[n("ul",[n("li",{staticClass:"menu__item"},[e._v(e._s(e.matrixVerticalName))]),n("li",{staticClass:"menu__item"},[n("el-button",{class:e.btnMatrixLookInfo,on:{click:e.matrixRightNodeClick}},[e._v("输出数据")])],1),n("li",{staticClass:"menu__item"},[e._v(e._s(e.matrixHorizontalName))])])])],1)])],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tbody",[n("tr",[n("td",[n("div",{staticClass:"row-w-60 col-h-30 bg_write"})]),n("td",[n("div",{staticClass:"row-w-130 col-h-30 bg_gray_th"},[e._v("接收")])])]),n("tr",[n("td",[n("div",{staticClass:"row-w-60 col-h-60 bg_druk"},[e._v("输出")])]),n("td",[n("div",{staticClass:"row-w-130 col-h-60",staticStyle:{"background-color":"rgb(255, 210, 78)"}},[e._v(" 矩阵节点 ")])])])])}],a=(n("99af"),n("4160"),n("c975"),n("13d5"),n("45fc"),n("b0c0"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("3835")),s=(n("96cf"),n("1da1")),o=n("2b0e"),c=n("f96e"),u=n("a429"),l=n("b0f9"),d=n("3de1");o["default"].use(u["a"]);var p={components:{AppHeader:c["a"]},data:function(){return{MatrixLookInfoMenuVisible:!1,isShowListTemplatePane:!0,isShowMatrixTemplatePane:!1,isShowXmindBtn:!1,el_formLabelcolor:"textlabelgray",listMatirxPermission:[],matrixRightNodeData:"",searhNodeName:"",matrixVerticalName:"",matrixHorizontalName:"",btnMatrixLookInfo:"martixLeaveColor",loading:!1,topNodeId:this.$route.params.id,topNodeName:this.$route.params.name,topNodeTemplateId:this.$route.params.templateId||this.$route.params.id,subTemplateId:this.$route.params.subTemplateId,nodeList:[],unitMap:{},searchedNodeIds:[],targetUnit:{}}},created:function(){this.scanMatrix()},methods:{onBackBtnClick:function(){this.$router.push({name:"system_template",params:{data:this.$route.params.data}})},scanMatrix:function(){0==this.listMatirxPermission.length&&this.getMatirxPermission(),this.isShowMatrixTemplatePane=!0},searhTempNode:function(){var e=this.searhNodeName,t=[];e?(this.nodeList.some((function(n,r){return-1!==n.name.toLowerCase().indexOf(e)&&(t.push(n.id),!0)})),this.searchedNodeIds=t):this.searchedNodeIds=t},matrixRightNodeClick:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.targetUnit,r=Object.assign({},n),r.Permission=1===r.Permission?0:1,t.next=5,l["h"](r);case 5:if(i=t.sent,0===i.Code){t.next=8;break}return t.abrupt("return");case 8:d["d"].success("更新成功"),Object.assign(n,r);case 10:case"end":return t.stop()}}),t)})))()},getMatirxPermission:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,r,i,s,o,c,u,d,p,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.loading=!0,n=e.topNodeId,r=e.topNodeName,i=e.topNodeTemplateId,s=e.subTemplateId,n){t.next=7;break}return t.abrupt("return");case 7:return t.next=9,Promise.all([l["j"](i,n,s),l["o"](s||n)]);case 9:o=t.sent,c=Object(a["a"])(o,2),u=c[0],d=c[1],p=h(d.Data||{}),s&&p.unshift({id:n,name:r}),m=u.Data||[],e.loading=!1,e.nodeList=p,e.unitMap=m.reduce((function(e,t){var n="".concat(t.SysCode,"->").concat(t.PermCode);return t.Editable=t.TemplateId!==s,e[n]=t,e}),{});case 19:case"end":return t.stop()}}),t)})))()},getData:function(e){if(e.listChildren.length>0)for(var t=0;t").concat(n.id),a=r[i];1==a.Permission?this.btnMatrixLookInfo="btnMatrixLookInfo":this.btnMatrixLookInfo="martixLeaveColor",this.matrixVerticalName=t.name,this.matrixHorizontalName=n.name;var s=document.querySelector("#MatrixLookInfoMenu");this.styleMenu(s),this.targetUnit=a,this.loading=!1},canEditUnit:function(e,t){var n=this.unitMap,r="".concat(e.id,"->").concat(t.id),i=n[r]||{Editable:!0};return i.Editable},closeMenu:function(){this.MatrixLookInfoMenuVisible=!1},styleMenu:function(e){event.clientX>1800?e.style.left=event.clientX-100+"px":e.style.left=event.clientX+1+"px",document.addEventListener("click",this.foo),event.clientY>700?1==this.MatrixLookInfoMenuVisible?e.style.top=event.clientY-145+"px":e.style.top=event.clientY-30+"px":e.style.top=event.clientY-55+"px"}},computed:{listCodeComputed:function(){return function(e,t){var n=this.unitMap,r="".concat(e.id,"->").concat(t.id),i=n[r]||{};return i||(i.Id="unknow",console.error("文件交换关系对象匹配失败: 找不到".concat(r,"的交换关系"))),[i]}}}};function h(e){return m(e.children,[])}function m(e,t){return e&&0!==e.length?(e.forEach((function(e){if(!e.isNest){var n={id:e.id,name:e.topic,isNest:e.isNest};t.push(n),m(e.children,t)}})),t):t}var f=p,w=(n("8ad9"),n("2877")),b=Object(w["a"])(f,r,i,!1,null,"3025d232",null);t["default"]=b.exports},"45fc":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").some,a=n("a640"),s=n("ae40"),o=a("some"),c=s("some");r({target:"Array",proto:!0,forced:!o||!c},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4a8f":function(e,t,n){},"8ad9":function(e,t,n){"use strict";var r=n("4a8f"),i=n.n(r);i.a},"8fc1":function(e,t,n){"use strict";var r=n("99ab"),i=n.n(r);i.a},"99ab":function(e,t,n){},b0f9:function(e,t,n){"use strict";n.d(t,"n",(function(){return a})),n.d(t,"s",(function(){return o})),n.d(t,"d",(function(){return u})),n.d(t,"m",(function(){return d})),n.d(t,"p",(function(){return h})),n.d(t,"f",(function(){return f})),n.d(t,"r",(function(){return b})),n.d(t,"l",(function(){return g})),n.d(t,"k",(function(){return k})),n.d(t,"b",(function(){return C})),n.d(t,"o",(function(){return N})),n.d(t,"j",(function(){return M})),n.d(t,"h",(function(){return B})),n.d(t,"i",(function(){return R})),n.d(t,"a",(function(){return L})),n.d(t,"g",(function(){return S})),n.d(t,"c",(function(){return P})),n.d(t,"e",(function(){return q})),n.d(t,"q",(function(){return H}));n("96cf");var r=n("1da1"),i=n("b775");function a(){return s.apply(this,arguments)}function s(){return s=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function u(e){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return p=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function h(e){return m.apply(this,arguments)}function m(){return m=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function f(e){return w.apply(this,arguments)}function w(){return w=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function b(e){return v.apply(this,arguments)}function v(){return v=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/updateTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return x.apply(this,arguments)}function x(){return x=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function k(e){return y.apply(this,arguments)}function y(){return y=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryNestTemplateByNodeId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function C(e){return _.apply(this,arguments)}function _(){return _=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/connectNestTemplateFolder",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function N(e){return O.apply(this,arguments)}function O(){return O=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function M(e,t,n){return j.apply(this,arguments)}function j(){return j=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:n,nestedNodeId:r});case 2:return a=e.sent,e.abrupt("return",Object(i["c"])(a));case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function B(e){return I.apply(this,arguments)}function I(){return I=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/fileExchange",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function R(e){return T.apply(this,arguments)}function T(){return T=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function L(e){return W.apply(this,arguments)}function W(){return W=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/addTemplateNodeModelFile",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function S(e){return E.apply(this,arguments)}function E(){return E=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function P(e){return $.apply(this,arguments)}function $(){return $=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/createNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function q(e){return z.apply(this,arguments)}function z(){return z=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/deleteNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}function H(e){return V.apply(this,arguments)}function V(){return V=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/renameTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}},f96e:function(e,t,n){"use strict";var r=n("01a8");n.d(t,"a",(function(){return r["a"]}))}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-12a7ad0b"],{"01a8":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?n("div",{staticClass:"app-header-top"},[n("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[n("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),n("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),n("div",{staticClass:"top-center"}),n("div",{staticClass:"top-right"},[n("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[n("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),n("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),n("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?n("div",{staticClass:"app-header-top"}):e._e(),n("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),n("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?n("span",{on:{click:e.toRecycle}},[n("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?n("user-center"):e._e()],2)])])},i=[],a=n("1392"),s=n("1d40"),o={components:{UserCenter:a["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:s["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize},isOnLine:function(){return this.$store.state.gatewayState}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){s["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),s["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),s["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){s["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=o,u=(n("8fc1"),n("2877")),l=Object(u["a"])(c,r,i,!1,null,"06f5aedd",null);t["a"]=l.exports},2275:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layout_content"},[n("app-header",{attrs:{showBackBtn:"",theme:"white",title:e.topNodeName,backBtnTitle:"退出矩阵编辑器",onBackBtnClick:e.onBackBtnClick}}),n("section",{staticClass:"title_section mt-10"},[n("div",{staticClass:"EC_col_8"},[n("h3",[e._v(e._s(e.topNodeName))])]),n("div",{staticClass:"EC_col_8"},[n("div",{staticClass:"text_concenter"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMatrixTemplatePane,expression:"isShowMatrixTemplatePane"}]},[n("div",{staticClass:"searhNodeNameconcenter"},[n("el-input",{staticClass:"el-input_mini",attrs:{placeholder:"矩阵搜索","prefix-icon":"icon font_family icon-icon_sousuo searchsize"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searhTempNode(t)}},model:{value:e.searhNodeName,callback:function(t){e.searhNodeName=t},expression:"searhNodeName"}})],1)])])]),n("div",{staticClass:"EC_col_8"}),n("div",{staticClass:"yiyunline"})]),n("section",{staticClass:"yiyun_section1"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"gundontiao"},[n("div",{staticClass:"fixtable"},[n("table",{directives:[{name:"show",rawName:"v-show",value:!!e.nodeList.length,expression:"!!nodeList.length"}],staticClass:"bg1",attrs:{cellspacing:"0",cellpadding:"0"}},[e._m(0)]),n("table",{staticClass:"bg2",attrs:{cellspacing:"0",cellpadding:"0"}},[n("tbody",[n("tr",e._l(e.nodeList,(function(t,r){return n("td",{key:t.id,class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":"",staticStyle:{"background-color":"#e2e2e2"},attrs:{id:t.id}},[n("div",{staticClass:"row-w-130 col-h-30 bg_write"},[n("div",{staticClass:"mark"},[e._v(e._s(r+1))])])])})),0),n("tr",e._l(e.nodeList,(function(t){return n("td",{key:t.id,class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":"",attrs:{id:t.id}},[n("div",{staticClass:"row-w-130 col-h-60 bg_druk"},[n("div",{staticClass:"mark"},[e._v(e._s(t.name))])])])})),0)])]),n("table",{staticClass:"bg3",attrs:{cellspacing:"0",cellpadding:"0"}},[n("tbody",e._l(e.nodeList,(function(t,r){return n("tr",{key:t.id,staticClass:"tdheight",attrs:{id:t.id}},[n("td",{class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":""},[n("div",{staticClass:"row-w-60 col-h-60 bg_write"},[n("div",{staticClass:"mark"},[e._v(e._s(r+1))])])]),n("td",{class:-1!==e.searchedNodeIds.indexOf(t.id)?"highlight":""},[n("div",{staticClass:"row-w-130 col-h-60 bg_gray_th"},[n("div",{staticClass:"mark"},[e._v(e._s(t.name))])])])])})),0)]),n("table",{staticClass:"bg4 table-unit",attrs:{cellspacing:"0",cellpadding:"0"}},[n("tbody",e._l(e.nodeList,(function(t,r){return n("tr",{key:"row_"+t.id,attrs:{id:t.id}},[e._l(e.nodeList,(function(i,a){return[a===r?n("td",{key:t.id+"_"+i.id,staticClass:"matixEquallyName"},[n("div",{staticClass:"row-w-130 col-h-58"},[n("div",{staticClass:"nullbg",staticStyle:{"text-align":"center","font-size":"12px"}},[e._v(" "+e._s(i.name)+" ")])])]):n("td",{key:t.id+"_"+i.id,class:[a%2==1&&a>r||r%2==1&&ar?"zhuanchu":"zhuanru")+" circle_"+(1==e.Permission?"actived":"defualt")}:{})])})),0)])])]}))],2)})),0)])]),n("context-menu",{staticClass:"automenu",attrs:{id:"MatrixLookInfoMenu",show:e.MatrixLookInfoMenuVisible},on:{"update:show":function(t){return e.MatrixLookInfoMenuVisible=t}}},[n("ul",[n("li",{staticClass:"menu__item"},[e._v(e._s(e.matrixVerticalName))]),n("li",{staticClass:"menu__item"},[n("el-button",{class:e.btnMatrixLookInfo,on:{click:e.matrixRightNodeClick}},[e._v("输出数据")])],1),n("li",{staticClass:"menu__item"},[e._v(e._s(e.matrixHorizontalName))])])])],1)])],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tbody",[n("tr",[n("td",[n("div",{staticClass:"row-w-60 col-h-30 bg_write"})]),n("td",[n("div",{staticClass:"row-w-130 col-h-30 bg_gray_th"},[e._v("接收")])])]),n("tr",[n("td",[n("div",{staticClass:"row-w-60 col-h-60 bg_druk"},[e._v("输出")])]),n("td",[n("div",{staticClass:"row-w-130 col-h-60",staticStyle:{"background-color":"rgb(255, 210, 78)"}},[e._v(" 矩阵节点 ")])])])])}],a=(n("99af"),n("4160"),n("c975"),n("13d5"),n("45fc"),n("b0c0"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("3835")),s=(n("96cf"),n("1da1")),o=n("2b0e"),c=n("f96e"),u=n("a429"),l=n("b0f9"),d=n("3de1");o["default"].use(u["a"]);var p={components:{AppHeader:c["a"]},data:function(){return{MatrixLookInfoMenuVisible:!1,isShowListTemplatePane:!0,isShowMatrixTemplatePane:!1,isShowXmindBtn:!1,el_formLabelcolor:"textlabelgray",listMatirxPermission:[],matrixRightNodeData:"",searhNodeName:"",matrixVerticalName:"",matrixHorizontalName:"",btnMatrixLookInfo:"martixLeaveColor",loading:!1,topNodeId:this.$route.params.id,topNodeName:this.$route.params.name,topNodeTemplateId:this.$route.params.templateId||this.$route.params.id,subTemplateId:this.$route.params.subTemplateId,nodeList:[],unitMap:{},searchedNodeIds:[],targetUnit:{}}},created:function(){this.scanMatrix()},methods:{onBackBtnClick:function(){this.$router.push({name:"system_template",params:{data:this.$route.params.data}})},scanMatrix:function(){0==this.listMatirxPermission.length&&this.getMatirxPermission(),this.isShowMatrixTemplatePane=!0},searhTempNode:function(){var e=this.searhNodeName,t=[];e?(this.nodeList.some((function(n,r){return-1!==n.name.toLowerCase().indexOf(e)&&(t.push(n.id),!0)})),this.searchedNodeIds=t):this.searchedNodeIds=t},matrixRightNodeClick:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.targetUnit,r=Object.assign({},n),r.Permission=1===r.Permission?0:1,t.next=5,l["h"](r);case 5:if(i=t.sent,0===i.Code){t.next=8;break}return t.abrupt("return");case 8:d["d"].success("更新成功"),Object.assign(n,r);case 10:case"end":return t.stop()}}),t)})))()},getMatirxPermission:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,r,i,s,o,c,u,d,p,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.loading=!0,n=e.topNodeId,r=e.topNodeName,i=e.topNodeTemplateId,s=e.subTemplateId,n){t.next=7;break}return t.abrupt("return");case 7:return t.next=9,Promise.all([l["j"](i,n,s),l["p"](s||n)]);case 9:o=t.sent,c=Object(a["a"])(o,2),u=c[0],d=c[1],p=h(d.Data||{}),s&&p.unshift({id:n,name:r}),m=u.Data||[],e.loading=!1,e.nodeList=p,e.unitMap=m.reduce((function(e,t){var n="".concat(t.SysCode,"->").concat(t.PermCode);return t.Editable=t.TemplateId!==s,e[n]=t,e}),{});case 19:case"end":return t.stop()}}),t)})))()},getData:function(e){if(e.listChildren.length>0)for(var t=0;t").concat(n.id),a=r[i];1==a.Permission?this.btnMatrixLookInfo="btnMatrixLookInfo":this.btnMatrixLookInfo="martixLeaveColor",this.matrixVerticalName=t.name,this.matrixHorizontalName=n.name;var s=document.querySelector("#MatrixLookInfoMenu");this.styleMenu(s),this.targetUnit=a,this.loading=!1},canEditUnit:function(e,t){var n=this.unitMap,r="".concat(e.id,"->").concat(t.id),i=n[r]||{Editable:!0};return i.Editable},closeMenu:function(){this.MatrixLookInfoMenuVisible=!1},styleMenu:function(e){event.clientX>1800?e.style.left=event.clientX-100+"px":e.style.left=event.clientX+1+"px",document.addEventListener("click",this.foo),event.clientY>700?1==this.MatrixLookInfoMenuVisible?e.style.top=event.clientY-145+"px":e.style.top=event.clientY-30+"px":e.style.top=event.clientY-55+"px"}},computed:{listCodeComputed:function(){return function(e,t){var n=this.unitMap,r="".concat(e.id,"->").concat(t.id),i=n[r]||{};return i||(i.Id="unknow",console.error("文件交换关系对象匹配失败: 找不到".concat(r,"的交换关系"))),[i]}}}};function h(e){return m(e.children,[])}function m(e,t){return e&&0!==e.length?(e.forEach((function(e){if(!e.isNest){var n={id:e.id,name:e.topic,isNest:e.isNest};t.push(n),m(e.children,t)}})),t):t}var f=p,w=(n("8ad9"),n("2877")),b=Object(w["a"])(f,r,i,!1,null,"3025d232",null);t["default"]=b.exports},"45fc":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").some,a=n("a640"),s=n("ae40"),o=a("some"),c=s("some");r({target:"Array",proto:!0,forced:!o||!c},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4a8f":function(e,t,n){},"8ad9":function(e,t,n){"use strict";var r=n("4a8f"),i=n.n(r);i.a},"8fc1":function(e,t,n){"use strict";var r=n("99ab"),i=n.n(r);i.a},"99ab":function(e,t,n){},b0f9:function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"m",(function(){return o})),n.d(t,"t",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"n",(function(){return h})),n.d(t,"q",(function(){return f})),n.d(t,"f",(function(){return b})),n.d(t,"s",(function(){return g})),n.d(t,"l",(function(){return k})),n.d(t,"k",(function(){return C})),n.d(t,"b",(function(){return N})),n.d(t,"p",(function(){return M})),n.d(t,"j",(function(){return B})),n.d(t,"h",(function(){return R})),n.d(t,"i",(function(){return L})),n.d(t,"a",(function(){return S})),n.d(t,"g",(function(){return P})),n.d(t,"c",(function(){return q})),n.d(t,"e",(function(){return H})),n.d(t,"r",(function(){return U}));n("96cf");var r=n("1da1"),i=n("b775");function a(){return s.apply(this,arguments)}function s(){return s=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateByCompanyId",{companyId:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function u(e){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return p=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function h(e){return m.apply(this,arguments)}function m(){return m=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function f(e){return w.apply(this,arguments)}function w(){return w=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function b(e){return v.apply(this,arguments)}function v(){return v=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return x.apply(this,arguments)}function x(){return x=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/updateTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function k(e){return y.apply(this,arguments)}function y(){return y=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function C(e){return _.apply(this,arguments)}function _(){return _=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryNestTemplateByNodeId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function N(e){return O.apply(this,arguments)}function O(){return O=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/connectNestTemplateFolder",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function M(e){return j.apply(this,arguments)}function j(){return j=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function B(e,t,n){return I.apply(this,arguments)}function I(){return I=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:n,nestedNodeId:r});case 2:return a=e.sent,e.abrupt("return",Object(i["c"])(a));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function R(e){return T.apply(this,arguments)}function T(){return T=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/fileExchange",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function L(e){return W.apply(this,arguments)}function W(){return W=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function S(e){return E.apply(this,arguments)}function E(){return E=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/addTemplateNodeModelFile",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function P(e){return $.apply(this,arguments)}function $(){return $=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function q(e){return z.apply(this,arguments)}function z(){return z=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/createNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}function H(e){return V.apply(this,arguments)}function V(){return V=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/deleteNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function U(e){return D.apply(this,arguments)}function D(){return D=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/renameTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}},f96e:function(e,t,n){"use strict";var r=n("01a8");n.d(t,"a",(function(){return r["a"]}))}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-145b0de7.0768f911.js b/dist/static/js/chunk-145b0de7.5349d788.js similarity index 100% rename from dist/static/js/chunk-145b0de7.0768f911.js rename to dist/static/js/chunk-145b0de7.5349d788.js diff --git a/dist/static/js/chunk-1662b2cc.05f5eee7.js b/dist/static/js/chunk-1662b2cc.05f5eee7.js deleted file mode 100644 index 5f2bd130..00000000 --- a/dist/static/js/chunk-1662b2cc.05f5eee7.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1662b2cc"],{"24fb":function(e,n,o){"use strict";function r(e,n){var o=e[1]||"",r=e[3];if(!r)return o;if(n&&"function"===typeof btoa){var d=t(r),s=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[o].concat(s).concat([d]).join("\n")}return[o].join("\n")}function t(e){var n=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n);return"/*# ".concat(o," */")}e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var o=r(n,e);return n[2]?"@media ".concat(n[2]," {").concat(o,"}"):o})).join("")},n.i=function(e,o,r){"string"===typeof e&&(e=[[null,e,""]]);var t={};if(r)for(var d=0;do.parts.length&&(r.parts.length=o.parts.length)}else{var s=[];for(t=0;ti.length&&(r=i.length);var s=[];if(null!=i&&i.length>0)for(var a=n;a0?i("div",{staticClass:"list-group"},t._l(t.filterFilesInWork(t.uploadFileList),(function(e){return i("FileItem",{key:e.id,staticClass:"lisy-group-item",attrs:{file:e,clientDownLoad:t.clientDownLoad,showFileMilestone:t.showFileMilestone,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id]}})})),1):t._e(),t.workFileList&&t.workFileList.length>0?i("div",{staticClass:"list-group"},t._l(t.filterFilesInWork(t.workFileList),(function(e){return i("FileItem",{key:e.id,staticClass:"lisy-group-item",attrs:{file:e,clientDownLoad:t.clientDownLoad,showFileMilestone:t.showFileMilestone,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,tempRightFileId:t.tempRightFileId,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{commitFile:t.showCommitWindow,dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},copyFileBtnClick:function(i){return t.copyWorkFileBtnClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick,deleteFileClick:t.deleteFileClick,checkMilestoneClick:t.checkMilestoneClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),1):t._e(),i("div",{staticClass:"list-group"},t._l(t.filterFoldersInWork(t.subFolderList),(function(e){return i("FolderItem",{key:e.id,attrs:{folder:e,isLoading:t.localFolderLoadStateMap[e.folderPath],activeRightMenuId:t.tempRightFileId,filterFolderList:t.filterFoldersInTarget(t.subFolderList,e),filterFileList:t.filterFilesInTarget(t.workFileList,e)},on:{onRightMenuActive:t.oneFileRightBtnClick,onDownloadAll:t.downloadFolder,commitFolder:t.commitFolder},nativeOn:{dblclick:function(i){return t.intoSubFolder(e,0)}}})})),1)],1)])])])]),i("div",{class:[""+t.neibianju,{"coopBox-max-height":t.isShowShadow&&t.isCollapse}],attrs:{id:"bottomBox"}},[i("div",{staticClass:"titleBox"},[i("span",{staticClass:"yiyun_zhediebtn DevtopIcon"},[i("i",{directives:[{name:"show",rawName:"v-show",value:t.isCollapse,expression:"isCollapse"}],staticClass:"Cicon text_gray icon font_family icon-icon_zhankai",attrs:{title:"展开面板"},on:{click:function(e){return e.stopPropagation(),t.openCopage(e)}}}),i("i",{directives:[{name:"show",rawName:"v-show",value:!t.isCollapse,expression:"!isCollapse"}],staticClass:"Cicon text_gray icon font_family icon-icon_shouqi",attrs:{title:"折叠面板"},on:{click:function(e){return e.stopPropagation(),t.closeCopage(e)}}})]),i("div",{staticClass:"title_warp"},[i("div",{staticClass:" ",attrs:{id:"bignav"}},[i("div",{staticClass:"section_item fl section_item_aside_fl xiangdui"},[i("div",{staticClass:"tabtltlebox"},[i("div",{staticClass:"section_item section_item_aside_fl"},[i("span",{staticClass:"yiyun_text-title-workspace mr-20 ml-8"},[i("el-breadcrumb",{staticClass:"folder_breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[i("el-breadcrumb-item",{nativeOn:{click:function(e){return t.clickBreadcrumb(-1,1)}}},[t._v("协作文件")]),t._l(t.breadcrumbFolderListInCoop,(function(e,n){return i("el-breadcrumb-item",{key:e.id,nativeOn:{click:function(e){return t.clickBreadcrumb(n,1)}}},[t._v(t._s(e.folderName))])}))],2)],1)])])]),t._m(0)]),i("div",{staticClass:"clear"})])]),i("div",{staticClass:"fifleBox",attrs:{id:"coopFileContainer"}},[i("div",{staticClass:"yiyun_section_warp layerout_H3",attrs:{id:"coopFileBox"}},[i("div",{staticClass:"yinyong_warpBox"},[t.isShowStartNodeFolders?i("div",[i("div",{staticClass:"list-group"},t._l(t.exchangeNodeListsInCoop,(function(e){return i("FolderItem",{key:e.id,attrs:{folder:e,isWorkFolder:!1,isLoading:t.localFolderLoadStateMap[e.folderPath],activeRightMenuId:t.tempRightFileId,filterFolderList:t.getRealChildFolderLists(e),filterFileList:t.getRealChildFileLists(e)},on:{onRightMenuActive:t.oneFileRightBtnClick,onDownloadAll:t.downloadFolder,commitFolder:t.commitFolder},nativeOn:{dblclick:function(i){i.stopPropagation(),t.intoSubFolder(e,1),t.isShowStartNodeFolders=!t.isShowStartNodeFolders,t.topFolderInCoop=e}}})})),1)]):i("div",[i("div",{staticClass:"mt-12"},t._l(t.filterFilesInCoop(t.cooperationFileList),(function(e){return i("FileItem",{key:e.id,attrs:{file:e,tempRightFileId:t.tempRightFileId,clientDownLoad:t.clientDownLoad,showFileMilestone:t.showFileMilestone,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),1),i("div",{staticClass:"list-group"},t._l(t.filterFoldersInCoop(t.coopSubFolderList),(function(e){return i("FolderItem",{key:e.id,attrs:{folder:e,isWorkFolder:!1,isLoading:t.localFolderLoadStateMap[e.folderPath],activeRightMenuId:t.tempRightFileId,filterFolderList:t.filterFoldersInTarget(t.coopSubFolderList,e,!0),filterFileList:t.filterFilesInTarget(t.cooperationFileList,e,!0)},on:{onRightMenuActive:t.oneFileRightBtnClick,onDownloadAll:t.downloadFolder,commitFolder:t.commitFolder},nativeOn:{dblclick:function(i){return i.stopPropagation(),t.intoSubFolder(e,1)}}})})),1)])])])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowShadow,expression:"isShowShadow"}],staticClass:"showdowfix",attrs:{id:"bottomoShadow"}})]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.rightMenuvisible,expression:"rightMenuvisible"}],ref:"right-menu",staticClass:"contextmenu",style:{left:t.rightMenuleft+"px",top:t.rightMenuTop+"px"}},[i("ul",{staticClass:"rightMenu"},[i("li",{on:{click:t.newCreateFolderGroup}},[t._v(" 新建文件夹 ")]),t.isClient&&this.localWorkspacePrefix?i("li",{on:{click:t.openNativeCurrentFolder}},[t._v(" 打开本地工作目录 ")]):t._e()])])])],1)],1),i("el-dialog",{attrs:{width:"900px",visible:t.isVideo,"close-on-click-modal":!1},on:{"update:visible":function(e){t.isVideo=e},close:t.videoClose}},[i("div",{staticClass:"filePreview"},[i("video",{attrs:{src:t.videoSrc,controls:"controls"}})])]),i("el-dialog",{attrs:{title:"创建文件夹",visible:t.dialogNewFolderGroup,width:"460px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogNewFolderGroup=e}},nativeOn:{submit:function(t){t.preventDefault()}}},[i("el-form",[i("div",{staticClass:"appImgiconbox"},[i("img",{attrs:{src:"/static/img/folder.png",alt:""}})]),i("el-form-item",[i("el-input",{nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createSubFolder(e)}},model:{value:t.folderGroupData.FolderName,callback:function(e){t.$set(t.folderGroupData,"FolderName",e)},expression:"folderGroupData.FolderName"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogNewFolderGroup=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.createSubFolder()}}},[t._v("确 定")])],1)],1),t.currentSelectTempFile?i("el-dialog",{staticClass:"temp-file-dialog",attrs:{title:t.showNewTemplateFileDialogTitle,visible:t.isShowNewTemplateFileDialog,width:"460px","show-close":!1,"close-on-click-modal":!1},on:{"update:visible":function(e){t.isShowNewTemplateFileDialog=e}},nativeOn:{submit:function(t){t.preventDefault()}}},[i("el-form",[t.oneOf(t.currentSelectTempFile.extension,["doc","docx","dwg","dxf","gif","jpeg","jpg","max","nwc","pdf","png","ppt","pptx","rar","rvt","skp","txt","xls","xlsx","xmind","zip"])?i("div",{staticClass:"appImgiconbox"},[i("img",{attrs:{src:"/static/img/files/file_sample_"+t.currentSelectTempFile.extension+".svg",alt:""}})]):i("div",{staticClass:"img-container"},[t.notPicIcon()?i("div",{staticClass:"defultImage-small",class:t.currentSelectTempFile.extension+"-mid"}):t.picIcon()?i("div",{staticClass:"defultImage-small img_bg-mid"},[i("div",{staticClass:"file_Im gbox-mid"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.currentSelectTempFile.alias,expression:"currentSelectTempFile.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):i("div",{staticClass:"video-small"})]),i("div",{staticClass:"guide-template-file-name"},[t._v(t._s(t.projectName+"_"+t.currentNodeFolder.folderName+"_"+t.currentSelectTempFile.fileName+"."+t.currentSelectTempFile.extension))]),i("el-form-item",[i("el-input",{nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createTemplateFile(e)}},model:{value:t.currentSelectTempFile.fileName,callback:function(e){t.$set(t.currentSelectTempFile,"fileName",e)},expression:"currentSelectTempFile.fileName"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.isShowNewTemplateFileDialog=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.createTemplateFile()}}},[t._v("完成创建")])],1)],1):t._e(),i("commit-judge",{ref:"commit-judge",attrs:{file:t.commitJudgeFile,fileImgClass:t.fileImgClass,isShowCommitJudgeWindow:t.isShowCommitJudgeWindow,coopFolderList:t.coopFolderList},on:{closeCommitJudge:t.closeCommitJudge,finishCommitFile:t.finishCommitFile}}),i("file-milestone",{attrs:{visible:t.checkMilestoneShow,fileMilestoneInfo:t.fileMilestoneInfo,localWorkspacePrefix:t.localWorkspacePrefix,fileHistoryList:t.fileHistoryList,file:t.currentFile},on:{closeMilestonePain:t.closeMilestonePain,makeCopy:t.copyWorkFileBtnClick,openFile:t.fileClick}})],1)},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"section_item fr section_item_aside_fr"},[i("div",{staticClass:"fr ml-10"},[i("span",{staticClass:"bj_label"},[t._v("协作文件均只读")])]),i("div",{staticClass:"fifle_search fr"})])}],s=i("6032"),a=s["a"],o=(i("3dd8"),i("ccb2"),i("f24b"),i("f587"),i("a757"),i("53be8"),i("09c5"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"58a969d0",null),c=l.exports},"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"175e":function(t,e,i){"use strict";var n=i("cdec"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,i,s,a={};return t?(n.forEach(t.split("\n"),(function(t){if(s=t.indexOf(":"),e=n.trim(t.substr(0,s)).toLowerCase(),i=n.trim(t.substr(s+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([i]):a[e]?a[e]+", "+i:i}})),a):a}},2001:function(t,e,i){"use strict";var n=i("a0ba"),r=i.n(n);r.a},"24d7":function(t,e,i){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},2532:function(t,e,i){"use strict";var n=i("23e7"),r=i("5a34"),s=i("1d80"),a=i("ab13");n({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(s(this)).indexOf(r(t),arguments.length>1?arguments[1]:void 0)}})},"29c8":function(t,e,i){"use strict";t.exports=function(t,e,i,n,r){return t.config=e,i&&(t.code=i),t.request=n,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"2b9b":function(t,e,i){"use strict";var n=i("62d3"),r=i("c61b");t.exports=function(t,e){return t&&!n(e)?r(t,e):e}},"2e60":function(t,e,i){},"2f4c":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"search-bar",class:{"show-search-bar":t.isShowSearchBar}},[i("div",{staticClass:"search-entry",class:{"set-high-index":!t.isShowSearchBar},on:{mouseenter:function(e){t.isSearchHover=!0},mouseleave:function(e){t.isSearchHover=!1},click:function(e){return e.stopPropagation(),t.showSearchBar(e)}}},[i("img",{directives:[{name:"show",rawName:"v-show",value:!t.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),i("img",{directives:[{name:"show",rawName:"v-show",value:t.isSearchHover,expression:"isSearchHover"}],staticClass:"vert-hori-center search-active-img",attrs:{src:"/static/img/搜索激活.svg",alt:""}})]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[i("i",{staticClass:"search-icon",on:{click:function(e){return e.stopPropagation(),t.goToSearch(e)}}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.searchContent,expression:"searchContent"}],staticClass:"search-input",attrs:{type:"text",placeholder:t.placeholder,maxlength:"35"},domProps:{value:t.searchContent},on:{keyup:function(e){return e.stopPropagation(),t.enterSearchContent(e)},input:function(e){e.target.composing||(t.searchContent=e.target.value)}}}),i("i",{staticClass:"close-icon",on:{click:function(e){return e.stopPropagation(),t.hideSearchBar(e)}}})])])},r=[],s={data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},props:{placeholder:{type:String,default:"搜索的文本"}},watch:{searchContent:function(t){35==t.length&&this.$emit("maxTextLengthArrived"),this.changeSearchContent()}},methods:{enterSearchContent:function(t){this.searchContent&&13==t.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("changeSearchContent",this.searchContent)},goToSearch:function(){this.$emit("goToSearch")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("hideSearchBar")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("showSearchBar")}}},a=s,o=(i("76ae"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"df8317c6",null);e["a"]=l.exports},3950:function(t,e,i){},"3b6d":function(t,e,i){t.exports=i("9db1")},"3c68":function(t,e,i){"use strict";var n=i("cdec"),r=i("9133"),s=i("0beb"),a=i("2b9b"),o=i("175e"),l=i("7d48"),c=i("e7e6");t.exports=function(t){return new Promise((function(e,u){var h=t.data,d=t.headers;n.isFormData(h)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=t.auth.password||"";d.Authorization="Basic "+btoa(f+":"+m)}var v=a(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),s(v,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?o(p.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?p.response:p.responseText,s={data:n,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};r(e,u,s),p=null}},p.onabort=function(){p&&(u(c("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){u(c("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),u(c(e,t,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var g=i("b391"),y=(t.withCredentials||l(v))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(d[t.xsrfHeaderName]=y)}if("setRequestHeader"in p&&n.forEach(d,(function(t,e){"undefined"===typeof h&&"content-type"===e.toLowerCase()?delete d[e]:p.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),u(t),p=null)})),void 0===h&&(h=null),p.send(h)}))}},"3dd8":function(t,e,i){"use strict";var n=i("56db"),r=i.n(n);r.a},"45fc":function(t,e,i){"use strict";var n=i("23e7"),r=i("b727").some,s=i("a640"),a=i("ae40"),o=s("some"),l=a("some");n({target:"Array",proto:!0,forced:!o||!l},{some:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"466d":function(t,e,i){"use strict";var n=i("d784"),r=i("825a"),s=i("50c4"),a=i("1d80"),o=i("8aa5"),l=i("14c3");n("match",1,(function(t,e,i){return[function(e){var i=a(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i):new RegExp(e)[t](String(i))},function(t){var n=i(e,t,this);if(n.done)return n.value;var a=r(t),c=String(this);if(!a.global)return l(a,c);var u=a.unicode;a.lastIndex=0;var h,d=[],p=0;while(null!==(h=l(a,c))){var f=String(h[0]);d[p]=f,""===f&&(a.lastIndex=o(c,s(a.lastIndex),u)),p++}return 0===p?null:d}]}))},"4d63":function(t,e,i){var n=i("83ab"),r=i("da84"),s=i("94ca"),a=i("7156"),o=i("9bf2").f,l=i("241c").f,c=i("44e7"),u=i("ad6d"),h=i("9f7f"),d=i("6eeb"),p=i("d039"),f=i("69f3").set,m=i("2626"),v=i("b622"),g=v("match"),y=r.RegExp,b=y.prototype,x=/a/g,S=/a/g,C=new y(x)!==x,k=h.UNSUPPORTED_Y,w=n&&s("RegExp",!C||k||p((function(){return S[g]=!1,y(x)!=x||y(S)==S||"/a/i"!=y(x,"i")})));if(w){var V=function(t,e){var i,n=this instanceof V,r=c(t),s=void 0===e;if(!n&&r&&t.constructor===V&&s)return t;C?r&&!s&&(t=t.source):t instanceof V&&(s&&(e=u.call(t)),t=t.source),k&&(i=!!e&&e.indexOf("y")>-1,i&&(e=e.replace(/y/g,"")));var o=a(C?new y(t,e):y(t,e),n?this:b,V);return k&&i&&f(o,{sticky:i}),o},T=function(t){t in V||o(V,t,{configurable:!0,get:function(){return y[t]},set:function(e){y[t]=e}})},P=l(y),I=0;while(P.length>I)T(P[I++]);b.constructor=V,V.prototype=b,d(r,"RegExp",V)}m("RegExp")},"4e5b":function(t,e,i){"use strict";var n=i("c286"),r=i.n(n);r.a},"4f96":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("0d21"),r=i("db90"),s=i("06c5"),a=i("3d8c");function o(t){return Object(n["a"])(t)||Object(r["a"])(t)||Object(s["a"])(t)||Object(a["a"])()}},"51c2":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"change-btn"},t._l(t.titleList,(function(e,n){return i("div",{key:n,staticClass:"btn",class:{"active-btn":t.currentIndex===n},on:{click:function(e){return t.changeContentBtnClick(n)}}},[t._v(" "+t._s(e)+" ")])})),0)},r=[],s={props:{titleList:{type:Array,defualt:function(){return[]}}},data:function(){return{currentIndex:0}},methods:{changeContentBtnClick:function(t){this.currentIndex=t,this.$emit("changeContentBtnClick",t)}}},a=s,o=(i("6fdc"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"d5ff7aba",null);e["a"]=l.exports},"51c6":function(t,e,i){"use strict";var n=i("8957"),r=i.n(n);r.a},"53be8":function(t,e,i){"use strict";var n=i("fdb5"),r=i.n(n);r.a},"56db":function(t,e,i){},"5a34":function(t,e,i){var n=i("44e7");t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5ce4":function(t,e,i){"use strict";var n=i("cdec");t.exports=function(t,e){e=e||{};var i={},r=["url","method","params","data"],s=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(r,(function(t){"undefined"!==typeof e[t]&&(i[t]=e[t])})),n.forEach(s,(function(r){n.isObject(e[r])?i[r]=n.deepMerge(t[r],e[r]):"undefined"!==typeof e[r]?i[r]=e[r]:n.isObject(t[r])?i[r]=n.deepMerge(t[r]):"undefined"!==typeof t[r]&&(i[r]=t[r])})),n.forEach(a,(function(n){"undefined"!==typeof e[n]?i[n]=e[n]:"undefined"!==typeof t[n]&&(i[n]=t[n])}));var o=r.concat(s).concat(a),l=Object.keys(e).filter((function(t){return-1===o.indexOf(t)}));return n.forEach(l,(function(n){"undefined"!==typeof e[n]?i[n]=e[n]:"undefined"!==typeof t[n]&&(i[n]=t[n])})),i}},"5e9c":function(t,e,i){"use strict";var n=i("cdec");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},6032:function(t,e,i){"use strict";(function(t){i("99af"),i("4de4"),i("7db0"),i("c740"),i("4160"),i("a630"),i("caad"),i("c975"),i("a15b"),i("d81d"),i("13d5"),i("fb6a"),i("45fc"),i("4fad"),i("b64b"),i("d3b7"),i("07ac"),i("ac1f"),i("2532"),i("3ca3"),i("5319"),i("1276"),i("159b"),i("ddb0");var n=i("ade3"),r=i("4f96"),s=i("5530"),a=i("2909"),o=i("3835"),l=(i("96cf"),i("1da1")),c=i("2b0e"),u=i("f96e"),h=i("2f4c"),d=i("51c2"),p=(i("0bb4"),i("95f1")),f=i("bf4b"),m=i("ce5b"),v=i.n(m),g=i("1d40"),y=i("93d6"),b=i("b0f9"),x=i("b428"),S=i("3de1"),C=i("7162"),k=i("a2d2"),w=i("8005"),V=i("b332"),T=i("2ef0"),P=i("b775"),I=(i("a35f"),i("745f"));window.jQuery,window.Velocity;c["default"].use(v.a);var _=V["b"].DOWNLOADING,A=V["b"].UPLOADING,O=V["a"].WORKING,E=V["a"].NOT_WORKING,D=function(){return{Id:"",ProjId:"",SuperId:"",LevelId:"",FirstFolderId:"",FolderName:"",TemplateId:"",NodeId:"",SysCode:"",FileCount:0,ChildCount:0,Deleted:0,Customed:0,CreateUserId:"",CreateTime:"",ModifyUserId:"",ModifyTime:""}};function F(t,e){var i=Object(r["a"])(t),n=i[0],a=(i[1],i.slice(2)),o=n.Id,l=[],c={};return a.forEach((function(t){var i=Object(S["b"])(t);c[i.id]=i,i.listChildren=[],i.listUser=i.oldGeneralId.split(",").filter((function(t){return t})).map((function(t){return Object(s["a"])({},e[t])})),i.manageUser=("0"===i.oldManager?"":i.oldManager).split(",").filter((function(t){return t})).map((function(t){return Object(s["a"])({},e[t])}));var n=i.superId;if(n!==o){var r=c[n];r&&r.listChildren.push(i)}else l.push(i)})),l}function M(t){var e=[];function i(t){t.length>0&&t.forEach((function(t){e.push(t),t.listChildren&&t.listChildren.length>0&&i(t.listChildren)}))}return i(t),e}e["a"]={components:{AppHeader:u["a"],SearchBar:h["a"],ChangeBtn:d["a"],WorkLine:p["a"],AddFileButton:f["a"],FileItem:C["a"],FolderItem:w["a"],CommitJudge:I["a"],FileMilestone:k["default"]},data:function(){return{videoSrc:"",isVideo:!1,loading:!1,isClient:g["a"].isClient,userId:sessionStorage.userId,projectId:sessionStorage.projId,projectName:sessionStorage.projName,isShowpageIcon:!0,isCollapse:!0,closepageH:"",showWorkline:!1,nodeFolders:[],currentNodeFolder:{},currentFolder:{},currentFolderInCoop:{},topFolderInCoop:{},rightMenuvisible:!1,rightMenuEl:null,rightMenuleft:0,rightMenuTop:0,dialogNewFolderGroup:!1,folderGroupData:D(),localWorkspacePrefix:"",socketIns:null,timerIns:null,folderMap:{},subFolderMap:{},breadcrumbFolderList:[],breadcrumbFolderListInCoop:[],uploadFileList:[],workFileList:[],listTempFiles:[],currentSelectTempFile:null,isShowNewTemplateFileDialog:!1,workSubFolderList:[],coopSubFolderList:[],tempWorkSubFolderList:[],cooperationFileList:[],neibianju:"neibianju",isShowShadow:!1,localFileHashMap:null,localFileLoadStateMap:{},localFolderLoadStateMap:{},tempRightFileId:"",isShowStartNodeFolders:!0,isfinishGetExchangeNodes:!1,allNodeFolders:[],exchangeNodeListsInCoop:[],exchangeNodeInfoMap:[],reverseLocalFileHashMap:{},currentBtnIndex:0,titleList:["工作文件","协作文件"],isShowSearchBar:!1,searchContent:"",searchWorkFileList:[],searchCoopFileList:[],isAllFileLoaded:!1,hackWorkLine:null,nestTemplateLists:[],isShowCommitJudgeWindow:!1,uesrList:[],listNewFolder:[],plainFolderList:[],exchangeNodeListsTo:[],coopFolderList:[],commitJudgeFile:{},fileImgClass:"defultImage-mid",commitFileControlIpfsCid:"",uploadCommandInfo:{},commitJudgeCom:null,checkMilestoneShow:!1,fileMilestoneInfo:{},fileHistoryList:[],currentFile:{}}},mounted:function(){var t=this;this.getAllNodePeopleInfo(),this.$bus.$on("setMileStoneClick",this.handleMileStoneBtnClick),sessionStorage.pageTitle="工作空间",this.hackWorkLine=this.$refs.hackworkline,this.$nextTick((function(){t.listenBottomHeight()})),this.isClient&&this.initWorkspaceDropEvent(),this.fetchNodeFolders(),this.fetchFoldersByProjId(),this.getNestNode(sessionStorage.templateID),g["a"].entryProject(sessionStorage.projName,sessionStorage.accountName,this.onSocketFileChangeDetected.bind(this),(function(e){t.localWorkspacePrefix=e}),(function(e){t.$notify({message:"本地网关通讯失败",title:"502错误",type:"error"})})).then((function(e){t.socketIns=e})),this.timerIns=setTimeout((function(){t.intervalTask()}),3e3)},destroyed:function(){this.$bus.$off("setMileStoneClick",this.handleMileStoneBtnClick),window.clearTimeout(this.timerIns),this.timerIns=null,g["a"].leaveProject(this.socketIns),sessionStorage.removeItem("nowFolderIndex")},computed:{showTitle:function(){return this.isShowSearchBar&&this.searchContent?"“".concat(this.searchContent,"”搜索结果"):this.projectName},isShowSearchPage:function(){var t=/^\s*$/;return this.isShowSearchBar&&!t.test(this.searchContent)},showNewTemplateFileDialogTitle:function(){return"创建".concat(this.currentSelectTempFile?this.currentSelectTempFile.extension:"","文件")},nowFolderIndex:function(){return this.nodeFolders&&this.nodeFolders.indexOf(this.currentNodeFolder)},nowFolderName:function(){return this.currentNodeFolder.folderName},subFolderList:function(){var t=Object(T["uniqBy"])(this.workSubFolderList.concat(this.tempWorkSubFolderList),(function(t){return t.id}));return t},coopBoxRealHeight:function(){return document.getElementById("coopFileBox")?document.getElementById("coopFileBox").offsetHeight:0}},methods:{lookCoopTarget:function(){var t=this,e=this.plainFolderList.filter((function(e){return t.exchangeNodeListsTo.find((function(t){return e.id==t.id}))}));this.coopFolderList=e},getUserList:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(y["g"])({id:t.$store.state.currentCompanyId,nodeType:"company"},1,1e4);case 2:return i=e.sent,n=i.list,t.userList=n,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))()},getAllNodePeopleInfo:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s,a,l,c,u,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([t.getUserList(),t.$fetchApi("folder/queryAllNodeFolderListByProjectId",{projectId:sessionStorage.projId})]);case 2:i=e.sent,n=Object(o["a"])(i,2),r=n[0],s=n[1],a=r.reduce((function(t,e){return t[e.id]=e,t}),{}),l=s.Data||{},c=l.folder,l.manager,u=Object(T["uniqBy"])(c,"Id"),h=F(u,a),t.listNewFolder=h,t.plainFolderList=M(h);case 12:case"end":return e.stop()}}),e)})))()},handleMileStoneBtnClick:function(t,e){var i=this;return Object(l["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,c,u,h;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=i.localWorkspacePrefix,s=Object(V["f"])(i.currentFile,i.currentNodeFolder),i.localFileHashMap[s]){n.next=4;break}return n.abrupt("return");case 4:return a="".concat(r,"\\").concat(s),o=i.currentFile.id,c="",n.next=9,x["j"](o);case 9:u=n.sent,0==u.Code&&(c=u.Data.CurrentIpfsCid),h="",g["a"].editCommitHistoryMilestone(a,c,e.currentHash,t,function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return h=e,console.log("currentIpfsCid",h),(new Date).getTime(),n={ArchId:i.currentFile.id,CurrentIpfsCid:h,ModifyUserId:sessionStorage.userId,PrevIpfsCid:c},console.log("parms",n),t.next=7,x["n"](n);case 7:r=t.sent,console.log("editRes",r);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 13:case"end":return n.stop()}}),n)})))()},getRealChildFileLists:function(t){return this.exchangeNodeInfoMap[t.id]&&this.exchangeNodeInfoMap[t.id].realChildFileLists||[]},getRealChildFolderLists:function(t){return this.exchangeNodeInfoMap[t.id]&&this.exchangeNodeInfoMap[t.id].realChildFolderLists||[]},getNestNode:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,s,o;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return o=function(t,e){t.forEach(function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(i){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(b["l"])(i.TemplateId);case 2:n=t.sent,r=n.Data||[],r.length>0&&e.push.apply(e,Object(a["a"])(r));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},i.next=3,Object(b["l"])(t);case 3:n=i.sent,r=n.Data||[],s=Object(a["a"])(n.Data),o(r,s),e.nestTemplateLists=s;case 8:case"end":return i.stop()}}),i)})))()},maxTextLengthArrived:function(){this.$notify({message:"请输入35个字之内的搜索内容",type:["warning"]})},changeContentBtnClick:function(t){this.currentBtnIndex=t},changeSearchContent:function(t){this.searchContent=t},hideSearchBar:function(){this.isShowSearchBar=!1,this.searchContent="",this.currentBtnIndex=0},showSearchBar:function(){this.isShowSearchBar=!0},searchForFile:Object(T["debounce"])(Object(l["a"])(regeneratorRuntime.mark((function t(){var e,i,n,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=/^\s*$/,!e.test(this.searchContent)){t.next=5;break}return t.abrupt("return");case 5:return i=this.currentNodeFolder.id,t.next=8,x["l"](i,this.searchContent);case 8:n=t.sent,0===n.Code?(r=n.Data.workFile||[],s=n.Data.coordinationFiles||[],this.searchWorkFileList=r.length>0?r.map((function(t){return Object(S["b"])(t)})):[],this.searchCoopFileList=s.length>0?s.map((function(t){return Object(S["b"])(t)})):[],this.currentBtnIndex=0):this.$notify({type:["error"],message:"查询数据失败, 请稍后重试。"});case 10:case"end":return t.stop()}}),t,this)}))),500),notPicIcon:function(){return!this.oneOf(this.currentSelectTempFile.extension,V["g"])&&!this.oneOf(this.currentSelectTempFile.extension,V["c"])},picIcon:function(){return this.oneOf(this.currentSelectTempFile.extension,V["g"])},createTemplateFile:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s,a,o,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.currentSelectTempFile.fileName,n=t.currentSelectTempFile.extension,r=t.workFileList.findIndex((function(t){return t.archName===i&&t.extension==n})),!(r>-1)){e.next=6;break}return t.$notify({type:"warning",message:"文件名重复 请重新输入。",offset:100,duration:2500}),e.abrupt("return");case 6:return s=new Date,a=t.currentFolder.folderPath?t.currentFolder.folderPath:"",o={id:t.currentSelectTempFile.id,projId:t.projectId,folderId:t.currentNodeFolder.id,archName:i,extension:n,ipfsCid:t.currentSelectTempFile.hash,fileSize:t.currentSelectTempFile.fileSize,folderLevelId:t.currentNodeFolder.levelId,status:0,workStatus:0,commonStatus:0,deleted:t.currentSelectTempFile.deleted,milestone:0,version:0,showUrl:"",createUserId:t.userId,createTime:s,modifyUserId:t.userId,modifyTime:s,isShowRecycle:0,relativePath:a},e.next=11,x["a"](o);case 11:if(l=e.sent,0!=l.Code){e.next=19;break}return t.fetchFolderFiles(),t.isShowNewTemplateFileDialog=!1,t.$notify({message:"文件 “".concat(i,"” 创建成功。"),type:"success",offset:100,duration:2500}),e.abrupt("return");case 19:return t.isShowNewTemplateFileDialog=!1,t.$notify({message:"文件 “".concat(i,"” 创建失败 请稍后重试。"),type:"error",offset:100,duration:2500}),e.abrupt("return");case 22:case"end":return e.stop()}}),e)})))()},fileTempClick:function(t){this.isShowNewTemplateFileDialog=!0,this.currentSelectTempFile=Object(s["a"])({},t)},loadListTempFiles:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.nodeFolders||!t.nodeFolders[t.nowFolderIndex]){e.next=8;break}return i=t.nodeFolders[t.nowFolderIndex].nodeId,e.next=4,Object(b["i"])(i);case 4:if(n=e.sent,0===n.Code){e.next=7;break}return e.abrupt("return");case 7:n.Data.length>0?t.listTempFiles=n.Data.map((function(t){return Object(S["b"])(t)})):t.listTempFiles=[];case 8:case"end":return e.stop()}}),e)})))()},filePreview:function(t,e){var i=this;return Object(l["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,l,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,x["f"](sessionStorage.companyId);case 2:if(r=n.sent,s={API:"company/queryFileOnlineUrlByCompanyId",Action:"打开文件",CompanyName:sessionStorage.CompanyName,Subject:t.archName+"."+t.extension,Source:sessionStorage.client,ProjectName:sessionStorage.projName},Object(P["b"])("operation/record",s),a="http://"+r.Data,2!=e){n.next=14;break}o="http://www.lockingos.org:8012/onlinePreview?url=",l="?fullfilename="+t.archName+"."+t.extension,console.log(o+a+t.ipfsCid+l),c=o+encodeURIComponent(a+t.ipfsCid+l)+"&officePreviewType=pdf",window.open(c,""),n.next=20;break;case 14:if(1!=e){n.next=19;break}i.isVideo=!0,i.videoSrc=a+t.ipfsCid,n.next=20;break;case 19:return n.abrupt("return");case 20:case"end":return n.stop()}}),n)})))()},videoClose:function(){this.videoSrc=""},deleteFolderClick:function(t){var e=this.isClient,i=this.subFolderList,n=this.workFileList,r=this.subFolderMap,s=this.userId,o=this.localFileHashMap,c=this.reverseLocalFileHashMap,u=r[t].folderName,h=this,d=[];function p(t){var e=i.filter((function(e){return e.parentFolderPath==t}));if(0==e.length){var s=n.filter((function(e){return e.relativePath==t})),o=r[t].parentFolderPath;if(""!==o){var l=n.filter((function(t){return t.relativePath==o}));s.push.apply(s,Object(a["a"])(l))}d.push.apply(d,Object(a["a"])(s))}e.forEach((function(t){p(t.id)}))}this.$confirm("确认删除文件夹“".concat(u,"”吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"warning"}).then(Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:p(t),n=d.length,console.log("要删除的文件总数是",n),r=d.find((function(t){return 2==t.workStatus&&t.modifyUserId!==s})),r?h.$notify({message:"“".concat(u,"”文件夹下存在“工作中”文件,删除失败。"),type:"error",offset:100,duration:2500}):(a=0,d.forEach(function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(i){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e&&delete o[c[i.ipfsCid]],t.next=3,x["c"](i.id);case 3:r=t.sent,a=0==r.Code?a+1:a,a==n&&h.$notify({message:"“".concat(u,"”文件夹已删除。"),type:["success"],duration:2500}),h.fetchFolderFiles();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 5:case"end":return i.stop()}}),i)}))))},finishGetExchangeNodes:function(){this.isfinishGetExchangeNodes=!0,this.getExchangeNodes()},getExchangeNodes:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t.currentNodeFolder.listsShareFrom[1],n=t.currentNodeFolder.listsShareFrom[0],r=i.map((function(t){return t.id})),s=n.map((function(t){return t.id})),t.exchangeNodeListsInCoop=t.allNodeFolders.filter((function(t){return r.includes(t.id)})),t.exchangeNodeListsTo=t.allNodeFolders.filter((function(t){return s.includes(t.id)})),t.getExchangeNodesChild();case 7:case"end":return e.stop()}}),e)})))()},getExchangeNodesChild:function(){var t=this,e={};this.exchangeNodeListsInCoop.forEach(function(){var i=Object(l["a"])(regeneratorRuntime.mark((function i(n){var r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:r={},r.realChildFileLists=[],r.realChildFolderLists=[],r.realChildFolderLists=t.filterFoldersInTarget(t.coopSubFolderList,n,n,!0),r.realChildFileLists=t.filterFilesInTarget(t.cooperationFileList,n,n,!0),e[n.id]=r,t.exchangeNodeInfoMap=e;case 7:case"end":return i.stop()}}),i)})));return function(t){return i.apply(this,arguments)}}())},fetchFoldersByProjId:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("folder/queryAllNodeFolderListByProjectId",{projectId:sessionStorage.projId});case 2:i=e.sent,n=Object(r["a"])(i.Data.folder),n[0],n[1],s=n.slice(2),t.allNodeFolders=s.map((function(t){return Object(S["b"])(t)}))||[];case 5:case"end":return e.stop()}}),e)})))()},dealWithCoopFiles:function(t){var e=[],i={};return t.forEach((function(t){var n=t.relativePath;if(n){var r=n.split("/");r.forEach((function(n,s){var a=r.slice(0,s+1).join("/");if(!i[a]){var o=new V["d"](a);o.topFolderId=t.folderId;var l=o.parentFolderPath;e.push(o),i[a]=o,i[l]&&i[l].childCount++}})),i[n].fileCount++}})),e},oneFileRightBtnClick:function(t){this.tempRightFileId=t,this.rightMenuvisible=!1},filterFilesInWork:function(t){var e=this.currentFolder.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.relativePath===i}))},filterFilesInCoop:function(t){var e=this,i=this.currentFolderInCoop.folderPath,n=void 0===i?"":i;return t.filter((function(t){return t.relativePath==n&&t.folderId==e.topFolderInCoop.id}))},filterFilesInTarget:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.topFolderInCoop,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.folderPath,s=void 0===r?"":r;return t.filter((function(t){if(t.relativePath==s){if(!n)return!0;if(t.folderId==i.id)return!0}return!1}))},filterFoldersInWork:function(t){var e=this.currentFolder.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.parentFolderPath===i}))},filterFoldersInCoop:function(t){var e=this,i=this.currentFolderInCoop.folderPath,n=void 0===i?"":i;return t.filter((function(t){return t.parentFolderPath==n&&t.topFolderId==e.topFolderInCoop.id}))},filterFoldersInTarget:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.topFolderInCoop,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.folderPath,s=void 0===r?"":r;return t.filter((function(t){if(t.parentFolderPath==s){if(!n)return!0;if(t.topFolderId==i.id)return!0}return!1}))},oneOf:function(t,e){return-1!==e.indexOf(t)},initWorkspaceDropEvent:function(){var t=document.getElementById("workspace");t.addEventListener("dragenter",this.stopPropagation),t.addEventListener("dragover",this.stopPropagation),t.addEventListener("dragleave",this.stopPropagation),t.addEventListener("drop",this.fileDropEvent,!1)},fileDropEvent:function(t){var e=Object(T["propertyOf"])(t)("dataTransfer.files");if(e&&0!==e.length&&"copyLink"!=t.dataTransfer.effectAllowed){var i=Array.from(e).map((function(t){return t.path}));this.clientUpload(i)}},stopPropagation:function(t){t.stopPropagation(),t.preventDefault()},onfileDragStart:function(e,i){var n=this;if(i.dataTransfer.effectAllowed="move",this.stopPropagation(i),this.isClient){var r=e.nodeName,s=e.id,a=!!r,o=Object(V["f"])(e,this.currentNodeFolder);if(this.localFileHashMap[o]){if(!a){if(e.workStatus===O&&sessionStorage.userId!==e.modifyUserId)return;x["b"](s,O).then((function(t){0===t.Code&&(e.workStatus=O,e.modifyUserId=sessionStorage.userId,n.fetchFolderFiles())}))}var l=t.electron.ipcRenderer;l.invoke("project-file-dnd","".concat(this.localWorkspacePrefix,"\\").concat(o))}}},intervalTask:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.fetchFolderFiles();case 2:t.timerIns&&setTimeout((function(){t.intervalTask()}),3e3);case 3:case"end":return e.stop()}}),e)})))()},onscroll:function(){},listenBottomHeight:function(){var t=document.getElementById("coopFileBox")?document.getElementById("coopFileBox").offsetHeight:0;this.isShowShadow=t>259},onSocketFileChangeDetected:function(t){var e=t.data;try{var i=JSON.parse(e);Object.entries(i).forEach((function(t){var e=Object(o["a"])(t,2),n=e[0],r=e[1];1===r.split(";").length&&(i[n]="".concat(r,";0"))})),this.localFileHashMap=i}catch(n){console.log("socket file change message error:",n)}},addLocalFileRecord:function(t,e){this.localFileHashMap=Object(s["a"])(Object(s["a"])({},this.localFileHashMap),{},Object(n["a"])({},t,"".concat(e,";0")))},updateFileLoadState:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0;t.id;var c={type:e,loadProgress:i,loadSize:r,totalSize:o,unit:l,loadUnit:a,fileRelativePath:t.relativePath||""};this.localFileLoadStateMap=Object(s["a"])(Object(s["a"])({},this.localFileLoadStateMap),{},Object(n["a"])({},t.id,c))},removeFileLoadingState:function(t){console.log("going to remove file: ".concat(t)),delete this.localFileLoadStateMap[t],this.localFileLoadStateMap=Object(s["a"])({},this.localFileLoadStateMap)},goFolderAndBack:function(t){this.goFolder(t),this.hideWorklinkPage()},showWorklinkPage:function(){this.hackWorkLine&&(this.hackWorkLine.isShowworklink=!0,this.hackWorkLine.workheight="workheight"),this.showWorkline=!0},hideWorklinkPage:function(){this.hackWorkLine&&(this.hackWorkLineisShowworklink=!1,this.hackWorkLine.workheight="workheightinit"),this.showWorkline=!1},previousFolder:function(){this.goFolder(this.nowFolderIndex-1),this.isShowStartNodeFolders=!0},nextFolder:function(){this.goFolder(this.nowFolderIndex+1)},goFolder:function(t){var e=this;t<0?S["d"].error("不能再向前了"):t>this.nodeFolders.length-1?S["d"].error("不能再向后了"):(sessionStorage.nowFolderIndex=t,this.currentNodeFolder=this.nodeFolders[t],this.currentNodeFolder!==this.currentFolder&&this.clearCurrentFolderFiles(),this.currentFolder=this.currentNodeFolder,this.currentFolderInCoop=this.currentNodeFolder,this.breadcrumbFolderList=[],this.breadcrumbFolderListInCoop=[],this.fetchFolderFiles(),this.loadListTempFiles(),this.$nextTick((function(){e.listenBottomHeight()})))},intoSubFolder:function(t,e){var i=this;0==e?(this.currentFolder=t,this.breadcrumbFolderList.push(t)):1==e&&(this.currentFolderInCoop=t,this.breadcrumbFolderListInCoop.push(t),this.$nextTick((function(){i.listenBottomHeight()})))},nowFolderClick:function(t){this.goFolder(t),this.isShowStartNodeFolders=!0},fetchNodeFolders:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.userId,n=t.projectId,e.next=4,x["e"](n,i);case 4:if(r=e.sent,s=r.filter((function(t){return t.nodeId!==t.templateId&&"公共文件夹"!==t.folderName})),t.nodeFolders=s,t.copyNodeFolders=Object(T["cloneDeep"])(s),t.folderMap=s.reduce((function(t,e){return t[e.id]=e,t}),{}),s.length){e.next=11;break}return e.abrupt("return");case 11:a=t.$route.params.folderId,a?t.currentNodeFolder=s.find((function(t){return t.id===a}))||s[0]:sessionStorage.nowFolderIndex?t.currentNodeFolder=s[sessionStorage.nowFolderIndex]||s[0]:t.currentNodeFolder=s[0],t.currentFolder=t.currentNodeFolder,t.currentFolderInCoop=t.currentNodeFolder,t.fetchFolderFiles(),t.loadListTempFiles();case 17:case"end":return e.stop()}}),e)})))()},fetchFolderFiles:Object(T["throttle"])(function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){var e,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.currentNodeFolder,i=this.userId,e&&e.id){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,x["d"](e.id,i,e.id);case 6:if(n=t.sent,n){t.next=9;break}return t.abrupt("return");case 9:if(this.currentNodeFolder.id===e.id){t.next=11;break}return t.abrupt("return");case 11:this.workFileList=n.file,this.subFolderMap=Object(s["a"])(Object(s["a"])({},this.subFolderMap),n.folderMap),this.resolveUploadFileList(this.workFileList),this.workSubFolderList=n.folder,this.tempWorkSubFolderList=this.tempWorkSubFolderList.filter((function(t){return!n.folder.some((function(e){return e.id===t.id}))})),this.cooperationFileList=n.coordinationFiles,this.coopSubFolderList=this.dealWithCoopFiles(this.cooperationFileList),this.isShowStartNodeFolders&&this.getExchangeNodesChild(),this.resolveUploadFileList(this.cooperationFileList);case 20:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),1e3),resolveUploadFileList:function(t){var e=this;this.uploadFileList=this.uploadFileList.filter((function(i){var n=t.find((function(t){return t.relativePath===i.relativePath&&t.archName===i.archName&&t.extension===i.extension}));return e.removeFileLoadingState(i.id),!n}))},createSubFolder:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.folderGroupData.FolderName){e.next=3;break}return S["d"].warning("请输入文件夹名称!"),e.abrupt("return");case 3:if(i=t.folderGroupData.FolderName,n=t.currentFolder.folderPath||"",r=n?"".concat(n,"/").concat(i):i,!t.subFolderMap[r]){e.next=9;break}return S["d"].warning("创建失败,已存在同名文件夹!"),e.abrupt("return");case 9:s=new V["d"](r,i,n),t.subFolderMap[r]=s,t.tempWorkSubFolderList.push(s),S["d"].success("文件夹创建成功!"),t.dialogNewFolderGroup=!1;case 14:case"end":return e.stop()}}),e)})))()},newCreateFolderGroup:function(){this.dialogNewFolderGroup=!0,this.folderGroupData=D()},clearCurrentFolderFiles:function(){this.uploadFileList=[],this.workFileList=[],this.workSubFolderList=[],this.tempWorkSubFolderList=[],this.cooperationFileList=[],this.localFileLoadStateMap={},this.localFolderLoadStateMap={},this.tempRightFileId=""},clickBreadcrumb:function(t,e){var i=this;if(0==e){var n=-1===t?this.currentNodeFolder:this.breadcrumbFolderList[t];this.currentFolder=n,this.breadcrumbFolderList=this.breadcrumbFolderList.slice(0,t+1)}else if(1==e){var r=-1===t?this.currentNodeFolder:this.breadcrumbFolderListInCoop[t];this.currentFolderInCoop=r,this.isShowStartNodeFolders=-1===t,this.breadcrumbFolderListInCoop=this.breadcrumbFolderListInCoop.slice(0,t+1),this.$nextTick((function(){i.listenBottomHeight()}))}},selectSystemFiles:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isClient){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,g["a"].chooseFiles();case 4:if(i=e.sent,i){e.next=7;break}return e.abrupt("return");case 7:t.clientUpload(i);case 8:case"end":return e.stop()}}),e)})))()},selectSystemFolders:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isClient){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,g["a"].chooseFolders();case 4:if(i=e.sent,i){e.next=7;break}return e.abrupt("return");case 7:t.clientUpload(i);case 8:case"end":return e.stop()}}),e)})))()},generateVirtualFolder:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t){var i={},n=[],r=this.subFolderMap;Object(V["e"])(t,e,(function(t){if(!r[t]){var e=new V["d"](t);i[e.folderPath]=e,n.push(e)}})),this.subFolderMap=Object(s["a"])(Object(s["a"])({},r),i),this.tempWorkSubFolderList=this.tempWorkSubFolderList.concat(n)}},clientUpload:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,a,o,u,h,d,p,f,m,v,y,b;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Promise.all(t.map((function(t){return g["a"].analyzeSystemPath(t)})));case 2:if(n=i.sent,r=Object(T["flatten"])(n),a=e.currentNodeFolder,o=a.folderName,u=a.levelId,h=a.id,d=e.currentFolder.folderPath,p=void 0===d?"":d,f=e.workFileList,m=r.some((function(t){var e=t.fileName,i=t.extension,n=t.relativePath,r=i?"".concat(e,".").concat(i):e,s="".concat(p?"".concat(p,"\\"):"").concat(n?"".concat(n):"").replace(/(\\)+/g,"/");return f.some((function(t){return s===t.relativePath&&"".concat(t.archName).concat(t.extension?".".concat(t.extension):"")===r}))})),!m){i.next=21;break}return v=!1,i.prev=10,i.next=13,c["default"].prototype.$confirm("监测到文件夹存在同名文件,是否继续上传并覆盖同名文件?","",{showClose:!1,type:"warning"});case 13:v=!0,i.next=19;break;case 16:i.prev=16,i.t0=i["catch"](10),console.log("user canceled");case 19:if(v){i.next=21;break}return i.abrupt("return");case 21:y={tempNumCount:0},b=r?r.length:0,r.forEach((function(t){var i=t.fullPath,n=t.fileName,r=t.extension,a=t.relativePath;e.generateVirtualFolder(a,p);var c=sessionStorage.getItem("accountName"),d={creator:c,projectId:e.projectId,projectName:e.projectName,folderId:h,folderName:o,folderLevelId:u,distFileRelativePath:[p,a].filter((function(t){return t})).join("\\").replace(/(\\)+/g,"/"),fileName:n,fileExtension:r,sourceFilePath:i,fileList:f,onSuccess:function(t){var i=t.ArchName,n=t.IpfsCid,r=t.Extension,s=t.RelativePath,a="".concat(o,"\\").concat(s?"".concat(s.replace(/\//g,"\\"),"\\"):"").concat(i).concat(r?".".concat(r):"");e.addLocalFileRecord(a,n),e.removeFileLoadingState(t.Id),e.fetchFolderFiles()},onProgress:function(t,i){var n=t.process,r=t.hash,s=t.size,a=t.currentSize,o=t.currentUnit,l=t.unit,c=Object(S["b"])(i);r||e.updateFileLoadState(c,A,n,a,o,s,l),-1!==c.id.indexOf("upload:")&&(e.uploadFileList.find((function(t){return t.id===c.id}))||e.uploadFileList.push(c))},onError:function(t,i){e.removeFileLoadingState(i.Id),e.uploadFileList=e.uploadFileList.filter((function(t){return t.id!==i.Id}))},successAllHandler:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.fetchFoldersByProjId();case 2:case"end":return t.stop()}}),t)})));function i(){return t.apply(this,arguments)}return i}()};g["a"].uploadFile(Object(s["a"])(Object(s["a"])({},d),{},{totalReadyUploadNum:b,tempNumWrap:y}))}));case 24:case"end":return i.stop()}}),i,null,[[10,16]])})))()},clientDownLoad:function(t){var e=this;if(this.isClient){var i=t.ipfsCid,n=t.archName,r=t.extension,s=(t.folderId,t.nodeName),a=t.relativePath,o=(this.folderMap,s||this.currentNodeFolder.folderName),l="".concat(n).concat(r?".".concat(r):""),c=!!s,u="".concat(o).concat(c?"\\协作文件":""),h="".concat(u).concat(a?"\\".concat(a):"").replace(/\//g,"\\"),d=Object(V["f"])(t,this.currentNodeFolder),p=function(){e.removeFileLoadingState(t.id)};this.updateFileLoadState(t,_,0),g["a"].downloadFile(i,sessionStorage.projName,l,h,(function(r,s){console.log("receive download file message:",r,s);try{var a=JSON.parse(r.data),o=a.process;a.hash;if(e.updateFileLoadState(t,_,o),100!==o)return;e.addLocalFileRecord(d,i),e.removeFileLoadingState(t.id),e.$notify({type:["success","download"],title:"文件已下载",message:"".concat(n)}),s.close()}catch(l){console.error("socket-download-file parse data have error:",l),p(),s.close()}}),p)}},downloadFolder:function(t){var e=this;this.workFileList.forEach((function(i){0===i.relativePath.indexOf(t.folderPath)&&e.clientDownLoad(i)}))},openNativeCurrentFolder:function(){var t=this.currentNodeFolder.folderName,e="".concat(this.localWorkspacePrefix,"\\").concat(t);g["a"].openFolder(e)},closeCommitJudge:function(){var t=this;this.$confirm("确定取消此次文件 “".concat(this.commitJudgeFile.archName,"” 的提交吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.commitFileControlIpfsCid="",t.isShowCommitJudgeWindow=!1,t.comitJudgeCom=null})).catch((function(t){console.log(t)}))},finishCommitFile:function(){var t=this;if(this.commitJudgeCom=this.$refs["commit-judge"],this.commitJudgeCom&&0==this.commitJudgeCom.remarkContent.length)this.$notify({type:"warning",message:"提交备注不能为空"});else{var e=this.commitJudgeFile,i=Object(V["f"])(e,this.currentNodeFolder),n=this.localFileHashMap[i],r=e.ipfsCid,s=n.split(";"),a=Object(o["a"])(s,2),l=a[0],c=a[1],u=n&&"1"==c&&l!==r;if(console.log(u),u){var h="".concat(e.modifyName,"更新了文件,请选择协同版本。");this.$confirm(h,"",{confirmButtonText:"继续提交我的版本",cancelButtonText:"保留对方版本",showClose:!0,type:"warning",customClass:"conflit-message-box"}).then((function(){t.commitFile(!1)})).catch((function(e){t.commitFile(!0)}))}else this.commitFile(!1);this.isShowCommitJudgeWindow=!1,this.commitFileControlIpfsCid="",this.comitJudgeCom=null}},showCommitWindow:function(t,e){this.isShowCommitJudgeWindow=!0,this.commitJudgeFile=t,this.fileImgClass=e},commitFile:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,a,o,c,u,h,d,p;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e.isClient){i.next=2;break}return i.abrupt("return");case 2:return n=e.commitJudgeFile,i.next=5,x["j"](n.id);case 5:r=i.sent,a=r.Data||{},Object.keys(a).length>0&&(a=Object(S["b"])(a)),e.commitFileControlIpfsCid=a.currentIpfsCid?a.currentIpfsCid:"",o=e.currentNodeFolder,c=o.folderName,o.levelId,o.id,n.archName,n.extension,u=n.id,h=n.relativePath,e.updateFileLoadState(n,A,0),d=function(){e.removeFileLoadingState(n.id)},p=Object(V["f"])(n,e.currentNodeFolder),e.uploadCommandInfo,g["a"].updateFile(n,e.localWorkspacePrefix,e.projectName,"".concat(c).concat(h?"\\".concat(h).replace(/\//g,"\\"):""),e.commitFileControlIpfsCid,e.commitJudgeCom.remarkContent,sessionStorage.getItem("accountName"),e.commitJudgeCom.isMileStone,t,function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(i){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:S["d"].success("".concat(n.archName,",已更新。")),r=i.IpfsCid,e.addLocalFileRecord(p,r),e.removeFileLoadingState(u),e.workFileList=e.workFileList.map((function(t){return t.id===n.id?Object(s["a"])(Object(s["a"])({},t),{},{ipfsCid:r,workStatus:E}):t})),0==e.currentBtnIndex&&e.isShowSearchPage&&(e.searchWorkFileList=e.searchWorkFileList.map((function(t){return t.id===n.id?Object(s["a"])(Object(s["a"])({},t),{},{ipfsCid:r,workStatus:E}):t})));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){var i=t.process,r=t.hash,s=t.size,a=t.currentSize,o=t.currentUnit,l=t.unit;r||e.updateFileLoadState(n,A,i,a,o,s,l)}),d);case 16:case"end":return i.stop()}}),i)})))()},getHistoryFileList:function(t){var e=this,i=function(t){e.fileHistoryList=t};g["a"].queryCommitHistory(t.path,t.hash,i)},commitFolder:function(t){var e="".concat(this.localWorkspacePrefix,"\\").concat(this.currentNodeFolder.folderName).concat(t.folderPath?"\\".concat(t.folderPath):"").replace(/\//g,"\\");this.clientUpload([e])},openFileWith:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,s,a,o;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.localWorkspacePrefix,r=Object(V["f"])(t,e.currentNodeFolder),e.localFileHashMap[r]){i.next=4;break}return i.abrupt("return");case 4:if(s="".concat(n,"\\").concat(r),t.archName,t.extension,t.id,a=t.nodeName,o=!!a,!o){i.next=10;break}return g["a"].clientOpenFileWith(s),i.abrupt("return");case 10:g["a"].clientOpenFileWith(s);case 11:case"end":return i.stop()}}),i)})))()},fileClick:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){var i,n,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.isClient){t.next=2;break}return t.abrupt("return");case 2:if(e.archName,e.extension,e.id,i=e.nodeName,i||this.currentFolder.folderName,n=this.localWorkspacePrefix,!!i,r=Object(V["f"])(e,this.currentNodeFolder),this.localFileHashMap[r]){t.next=9;break}return t.abrupt("return");case 9:s="".concat(n,"\\").concat(r),e.modifyUserId=sessionStorage.userId,g["a"].openFile(s);case 12:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),showFileMilestone:function(t){1!=t.status||t.modifyUserID==sessionStorage.userId?(this.currentMilestone=t,this.dialogFileHistory=!0,this.listMilestones=this.getMilstoneFile(t),console.log(this.listMilestones),this.currentArchID=t.archID):this.$notify({message:"其他人编辑中,不能设置历史文件",type:"warning",offset:100,duration:5e3})},rightShowMenu:function(t,e,i){var n=this;this.$nextTick((function(){n.rightMenuvisible=!0,n.tempRightFileId="currentWorkFolder",n.rightMenuleft=t.clientX,n.rightMenuTop=t.clientY,n.rightMenuEl=n.$refs["right-menu"];var e=document.querySelector("#workspace"),i=e.clientWidth,r=n.rightMenuEl?n.rightMenuEl.clientWidth:0;t.clientX+r>i&&(n.rightMenuleft=t.clientX-r)}))},closeShowMenu:function(){this.rightMenuvisible=!1},openCopage:function(){this.isShowpageIcon=!1,this.isCollapse=!1,this.neibianju="neibianju1",this.closepageH="closepageH"},closeCopage:function(){this.isShowpageIcon=!0,this.isCollapse=!0,this.neibianju="neibianju",this.closepageH=""},copyWorkFileBtnClick:function(t,e){var i=this;return Object(l["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,l,c,u;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=Object(T["cloneDeep"])(t),s=1,a="",e&&(r.archName="".concat(r.archName,"-版本").concat(e)),a=r.archName+"-副本",o=i.workFileList.find((function(t){return t.archName===a}));while(o)a=r.archName+"-副本(".concat(++s,")"),o=i.workFileList.find((function(t){return t.archName===a}));return l="0"+(new Date).getHours(),c="0"+(new Date).getMinutes(),u="0"+(new Date).getSeconds(),l=l.substr(l.length-2),c=c.substr(c.length-2),u=u.substr(u.length-2),r.archName=a+"-"+l+c+u,r.modifyUserId=sessionStorage.userId,r.modifyTime=new Date,r.createUserId=sessionStorage.userId,r.createTime=new Date,r.historyCurrentIpfsCid="",n.next=20,x["a"](r);case 20:i.fetchFolderFiles();case 21:case"end":return n.stop()}}),n)})))()},deleteFileClick:function(t,e,i,n){var r=this;e==sessionStorage.userId?this.$confirm("确认删除“".concat(i,"”吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"warning"}).then(Object(l["a"])(regeneratorRuntime.mark((function e(){var s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,x["c"](t);case 2:if(s=e.sent,0!==s.Code){e.next=14;break}r.$notify({message:"“".concat(i,"”文件已移除。"),type:["success"],duration:2500}),e.t0=regeneratorRuntime.keys(r.localFileHashMap);case 6:if((e.t1=e.t0()).done){e.next=13;break}if(a=e.t1.value,r.localFileHashMap[a]!==n){e.next=11;break}return delete r.localFileHashMap[a],e.abrupt("break",13);case 11:e.next=6;break;case 13:r.fetchFolderFiles();case 14:case"end":return e.stop()}}),e)})))):r.$notify({message:"不能删除其他用户创建的文件。",type:["error"],duration:2500})},checkMilestoneClick:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,s,a,o;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e.checkMilestoneShow=!0,n=e.localWorkspacePrefix,r=Object(V["f"])(t,e.currentNodeFolder),e.localFileHashMap[r]){i.next=5;break}return i.abrupt("return");case 5:return s="".concat(n,"\\").concat(r),e.fileMilestoneInfo.path=s,i.next=9,x["j"](t.id);case 9:a=i.sent,0==a.Code&&(e.fileMilestoneInfo.hash=(null===(o=a.Data)||void 0===o?void 0:o.CurrentIpfsCid)||""),e.getHistoryFileList(e.fileMilestoneInfo),e.currentFile=t;case 13:case"end":return i.stop()}}),i)})))()},closeMilestonePain:function(t){this.checkMilestoneShow=t}},watch:{isShowCommitJudgeWindow:function(t){this.lookCoopTarget()},isShowSearchBar:function(t){t||(0==this.currentBtnIndex?this.searchWorkFileList=[]:1==this.currentBtnIndex&&(this.searchCoopFileList=[]))},searchContent:function(){this.searchForFile()},localFileHashMap:function(t){var e={};for(var i in t)e[t[i]]=i;this.reverseLocalFileHashMap=e},nowFolderIndex:function(){this.isfinishGetExchangeNodes&&this.getExchangeNodes()},rightMenuvisible:function(t){t?document.body.addEventListener("click",this.closeShowMenu):document.body.removeEventListener("click",this.closeShowMenu)},localFileLoadStateMap:function(t){var e={};Object.values(t).forEach((function(t){var i=t.fileRelativePath;i&&Object(V["e"])(i,"",(function(t){e[t]=!0}))})),this.localFolderLoadStateMap=e}}}}).call(this,i("c8ba"))},"62d3":function(t,e,i){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},"640a":function(t,e,i){},"648a":function(t,e,i){"use strict";var n=i("0cf1"),r=i.n(n);r.a},6909:function(t,e,i){},"6c26":function(t,e,i){},"6fdc":function(t,e,i){"use strict";var n=i("640a"),r=i.n(n);r.a},7087:function(t,e,i){},7162:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{on:{dblclick:t.dblclickFile}},[i("div",{ref:"file",staticClass:"yiyun_wenjian_list loding-mask-parent",class:{yiyun_wenjian_list_add:!t.isLocalIpfsCidValidate&&t.isClient},on:{contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),t.fileRightBtnClick(e)}}},[t.isClient?i("div",{staticClass:"set-loding-mask-position"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isClient&&!t.isLocalIpfsCidValidate,expression:"isClient && !isLocalIpfsCidValidate"}],staticClass:"downloadIcon"})]):t._e(),i("div",{staticClass:"use-relative"},[i("div",[t.oneOf(t.file.extension,t.imgExtensionList)||t.oneOf(t.file.extension,t.VideoExtensionList)?t.oneOf(t.file.extension,t.imgExtensionList)?i("div",{ref:"file-img",staticClass:"defultImage-mid img_bg-mid",class:t.fileIsLoading||t.showDownloadMask?"toumin":""},[i("div",{staticClass:"file_Im gbox-mid"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.file.alias,expression:"file.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):i("div",{ref:"file-img",staticClass:"defultImage-mid video-mid",class:t.fileIsLoading||t.showDownloadMask?"toumin":""}):i("div",{ref:"file-img",staticClass:"defultImage-mid",class:t.file.extension+"-mid "+(t.fileIsLoading||t.showDownloadMask?"toumin":"")+" "+(t.oneOf(t.file.extension,t.filePreviewList)," ")})]),t.isClient?[t.showDownloadMask?i("div",{staticClass:"downloadIcon",on:{click:function(e){return t.clientDownLoad(t.file,1)}}},[t._m(0)]):t._e(),t.loadingState.type===t.DOWNLOADING?i("div",{staticClass:"downloadIcon"},[i("div",{staticClass:"progress-circle"},[i("LottieSvg",{staticClass:"bg-pic",attrs:{width:40,height:40,path:"static/img/lottie.download.svg.json"}}),i("el-progress",{attrs:{width:45,height:45,type:"circle","show-text":!1,percentage:t.loadingState.loadProgress,"stroke-width":3,color:"rgb(140, 0, 255)"}})],1)]):t._e(),t.loadingState.type===t.UPLOADING?i("div",{staticClass:"downloadIcon"},[i("div",{staticClass:"progress-circle"},[i("img",{staticClass:"bg-pic",style:{width:"24px"},attrs:{src:"/static/img/upload.png",alt:""}}),i("el-progress",{attrs:{width:45,height:45,type:"circle","show-text":!1,percentage:t.loadingState.loadProgress,"stroke-width":3,color:"rgb(140, 0, 255)"}})],1)]):t._e(),t.fileInLocal&&!t.fileIsLoading?[t.isInWorkFolder&&t.isFileModified?i("div",{staticClass:"yijianxietong have-modified-icon"},[i("i",{staticClass:"icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon",attrs:{title:"文件已经被修改 点击进行文件提交"},on:{click:function(e){return e.stopPropagation(),t.commitFile(e)}}})]):t._e(),t.isFileNeedsUpdate?i("div",{staticClass:"yijianxietong"},[i("i",{staticClass:"blue-icon icon font_family",attrs:{title:"当前文件不是最新的文件 点击获取最新文件"},on:{click:function(e){return t.clientDownLoad(t.file,1)}}})]):t._e(),t.isInWorkFolder&&t.localFileIsLatest?i("div",{staticClass:"yijianxietong isonselect"},[i("i",{staticClass:"icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon",attrs:{title:"已是最新版本"}})]):t._e()]:t._e()]:t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isFileRightMenuVisible,expression:"isFileRightMenuVisible"}],staticClass:"contextmenu",style:{top:t.fileRightMenuTop+"px",left:t.fileRightMenuLeft+"px"}},[i("ul",{ref:"right-menu",staticClass:"rightMenu"},[t.fileInLocal&&t.isClient&&t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.openfileBtnClick(e)}}},[t._v("打开")]):t._e(),t.fileInLocal&&t.isClient&&!t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.openfileBtnClick(e)}}},[t._v("打开")]):t._e(),!t.fileInLocal&&t.isClient?i("li",{staticClass:"function-disabled",attrs:{title:"请先下载文件再打开"}},[t._v("打开")]):t._e(),t.fileInLocal&&t.isClient&&t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.openFileWith(e)}}},[t._v("打开方式")]):t._e(),t.fileInLocal&&t.isClient&&!t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.openFileWith(e)}}},[t._v("打开方式")]):!t.fileInLocal&&t.isClient?i("li",{staticClass:"function-disabled"},[t._v("打开方式")]):t._e(),t.isClient&&t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.copyFileBtnClick(e)}}},[t._v("创建文件副本")]):t._e(),t.isClient&&t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.deleteFileClick(e)}}},[t._v("移动到回收站")]):t._e(),!t.isClient&&t.oneOf(t.file.extension,t.filePreviewList)?i("li",{on:{click:function(e){return e.stopPropagation(),t.filePreview(e)}}},[t._v("在线预览")]):t.isClient||t.oneOf(t.file.extension,t.filePreviewList)?t._e():i("li",{staticClass:"function-disabled",attrs:{title:"暂时不支持此类文件的预览"}},[t._v("在线预览")]),t.isClient&&t.isInWorkFolder&&t.fileInLocal?i("li",{on:{click:function(e){return e.stopPropagation(),t.checkMilestoneClick(e)}}},[t._v("查看历史版本")]):t._e()])]),i("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"top_optionBar"},[i("el-dropdown",[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"icon iconfont icon_small-icon_small_wenjianshezhi settingIcon"})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.isClient&&t.fileInLocal?i("el-dropdown-item",{nativeOn:{click:function(e){return t.fileClick(t.file)}}},[i("span",[t._v("打开")])]):t._e()],1)],1)],1),i("strong",{ref:"file-name",staticClass:"yiyunwenjian_name",attrs:{title:t.file.archName+"."+t.file.extension}},[t._v(t._s(t.file.archName)),i("span",{directives:[{name:"show",rawName:"v-show",value:!t.oneOf(t.file.extension,t.RecExtensionList)&&!t.oneOf(t.file.extension,t.VideoExtensionList),expression:"!oneOf(file.extension, RecExtensionList) && !oneOf(file.extension, VideoExtensionList)"}],staticClass:"file-extension-tip"},[t._v(t._s(t.file.extension))])]),t.isInWorkFolder&&t.file.createUserId!=t.currentUserId?i("span",{staticClass:"yiyunwenjian_infodesc"},[t._v(t._s(t.file.createUserName)+" 创建")]):t._e(),1!=t.file.version?i("span",{staticClass:"visontext",on:{click:function(e){return t.showFileMilestone(t.file)}}},[t._v(" 版本 "+t._s(t.file.version)+" ")]):t._e(),t.isInWorkFolder?t._e():i("span",{staticClass:"yiyunwenjian_infodesc"},[t._v(t._s(t.file.nodeName))]),t.loadingState.type===t.UPLOADING?i("span",{staticClass:"yiyunwenjian_infodesc"},[t._v(t._s((t.loadingState.loadSize||"--")+" "+(t.loadingState.loadUnit||"")+" / "+(t.loadingState.totalSize||"--")+" "+(t.loadingState.unit||"")))]):t._e()],2)])])},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"readytodownload-icon"},[i("img",{staticClass:"imgjuzhong",attrs:{src:"/static/img/download.svg",alt:""}})])}],s=(i("c975"),i("ac1f"),i("1276"),i("3835")),a=i("1d40"),o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("LottieAnimation",t._b({staticClass:"lottie-svg"},"LottieAnimation",t.$attrs,!1))},l=[],c=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.style?i("div",{ref:"lavContainer",style:t.style}):t._e()},u=[],h=(i("a9e3"),i("96cf"),i("1da1")),d=i("94f1"),p=i.n(d),f=i("3b6d"),m=i.n(f),v={props:{path:{required:!0},speed:{type:Number,required:!1,default:1},width:{type:Number,required:!1,default:-1},height:{type:Number,required:!1,default:-1},loop:{type:Boolean,required:!1,default:!0},autoPlay:{type:Boolean,required:!1,default:!0},loopDelayMin:{type:Number,required:!1,default:0},loopDelayMax:{type:Number,required:!1,default:0}},data:function(){return{name:"lottie-animation",rendererSettings:{scaleMode:"centerCrop",clearCanvas:!0,progressiveLoad:!1,hideOnTransparent:!0},anim:null,style:null}},mounted:function(){this.init()},methods:{loadJsonData:function(t){return Object(h["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m.a.get("/"+t).then((function(t){return t.data}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},init:function(){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.style={width:-1!=t.width?"".concat(t.width,"px"):"100%",height:-1!=t.height?"".concat(t.height,"px"):"100%",overflow:"hidden",margin:"0 auto"},e.next=3,t.loadJsonData(t.path);case 3:i=e.sent,t.anim&&t.anim.destroy(),t.anim=p.a.loadAnimation({container:t.$refs.lavContainer,renderer:"svg",loop:t.loop,autoplay:t.autoPlay,animationData:i,rendererSettings:t.rendererSettings}),t.$emit("AnimControl",t.anim),t.anim.setSpeed(t.speed),t.loopDelayMin>0&&(t.anim.loop=!1,t.anim.autoplay=!1,t.executeLoop());case 9:case"end":return e.stop()}}),e)})))()},getRandomInt:function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t},executeLoop:function(){var t=this;this.anim.play(),setTimeout((function(){t.anim.stop(),t.executeLoop()}),this.getRandomInt(this.loopDelayMin,0==this.loopDelayMax?this.loopDelayMin:this.loopDelayMax))}},watch:{path:function(t,e){this.init()}}},g=v,y=i("2877"),b=Object(y["a"])(g,c,u,!1,null,null,null),x=b.exports,S={components:{LottieAnimation:x}},C=S,k=(i("d326"),Object(y["a"])(C,o,l,!1,null,"1f22bc7a",null)),w=k.exports,V=i("b332"),T=["jpg","png","bmp","gif","jpeg"],P=["jpg","png","bmp","gif","jpeg","txt","zip","ae","ai","idml","indd","mp3","pr","ps","sketch","xmind","skp","rvt","rar","nwc","max","dxf","dwg","svfzip","map","supermap","pdf","ppt","pptx","excel","xlsx","xls","doc","docx","word","folder","folder1","folder2"],I=["avi","mov","wav","mp4"],_=["doc","docx","ppt","pptx","xls","xlsx"],A=["jpg","png","bmp","gif","jpeg","doc","docx","ppt","pptx","xls","xlsx","avi","mov","wav","mp4","txt","pdf","dwg"],O=function(t,e){return-1!==e.indexOf(t)},E=V["b"].DOWNLOADING,D=V["b"].UPLOADING,F=V["a"].WORKING,M=V["a"].NOT_WORKING,L={components:{LottieSvg:w},props:{file:{type:Object,default:function(){return{}}},clientDownLoad:Function,nodeFolder:{type:Object,default:function(){return{}}},currentFolder:{type:Object,default:function(){return{}}},showFileMilestone:Function,localFileHashMap:{type:Object,default:function(){return{}}},loadingState:{type:Object,default:function(){return{}}},tempRightFileId:{type:String,default:""}},mounted:function(){this.rightMenuEl=this.$refs["right-menu"],this.fileItemeEL=this.$refs["file"],this.workspaceEl=document.querySelector("#workspace"),this.fileImgEl=this.$refs["file-img"],this.fileImgClass=this.fileImgEl.className},data:function(){return{isClient:a["a"].isClient,currentUserId:sessionStorage.userId,WORKING:F,NOT_WORKING:M,DOWNLOADING:E,UPLOADING:D,imgExtensionList:T,RecExtensionList:P,VideoExtensionList:I,office:_,filePreviewList:A,isFileRightMenuVisible:!1,fileRightMenuLeft:0,fileRightMenuTop:0,rightMenuEl:null,fileItemEl:null,workspaceEl:null,fileImgEl:null,fileImgClass:""}},computed:{fileStoreKey:function(){var t=this.file,e=t.nodeName;t.extension,t.archName,t.relativePath,e?"".concat(e,"\\协作文件"):this.nodeFolder.folderName;return Object(V["f"])(this.file,this.nodeFolder)},isInWorkFolder:function(){var t=this.file;this.currentFolder;return t.folderId===this.nodeFolder.id},isLocalIpfsCidValidate:function(){return!!this.localFileHashMap},localIpfsCid:function(){return this.localFileHashMap&&this.localFileHashMap[this.fileStoreKey]},isWorking:function(){return this.file.workStatus===F},showDownloadMask:function(){return!this.fileIsLoading&&(this.isInWorkFolder?!this.fileInLocal||!this.isFileModified&&(!this.isFileNeedsUpdate&&(this.isInWorkFolder&&this.isFileNeedsUpdate)):!this.fileInLocal)},isFileRemoteUpdate:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0];n[1];return e&&r!==t},isFileNeedsUpdate:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0],a=n[1];return e&&r!==t&&"0"==a},isFileModified:function(){this.file.ipfsCid;var t=this.localIpfsCid,e=t.split(";"),i=Object(s["a"])(e,2),n=(i[0],i[1]);return t&&"1"==n},localFileIsLatest:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0],a=n[1];return e&&r===t&&"0"==a},fileIsDifferent:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0],a=n[1];return e&&"1"==a||e&&r!==t},fileIsLoading:function(){return this.loadingState.type===D||this.loadingState.type===E},fileInLocal:function(){return!!this.localIpfsCid}},methods:{commitFile:function(){this.$emit("commitFile",this.file,this.fileImgClass)},oneOf:O,openFileWith:function(){this.isFileRightMenuVisible=!1,this.$emit("openFileWith")},dblclickFile:function(){this.isClient&&this.isLocalIpfsCidValidate?this.$emit("dblclickFile"):this.isClient||this.filePreview()},fileRightBtnClick:function(t){var e=this;!this.isLocalIpfsCidValidate&&this.isClient||(this.isFileRightMenuVisible=!0,this.$nextTick((function(){e.rightMenuEl=e.$refs["right-menu"],e.fileItemEl=e.$refs["file"];var i=e.fileItemEl.getBoundingClientRect(),n=e.workspaceEl.clientHeight,r=e.workspaceEl.clientWidth,s=e.rightMenuEl.clientHeight,a=e.rightMenuEl.clientWidth,o=document.body.clientHeight,l=document.body.clientWidth-128;e.fileRightMenuLeft=t.clientX-i.left,e.fileRightMenuTop=t.clientY-i.top;var c=e.isInWorkFolder&&t.clientX+a>r,u=e.isInWorkFolder&&t.clientY+s>n,h=t.clientX+a>l,d=t.clientY+s>o;(c||h)&&(e.fileRightMenuLeft=e.fileRightMenuLeft-a),(u||d)&&(e.fileRightMenuTop=e.fileRightMenuTop-s),e.$emit("oneFileRightBtnClick",e.file.id)})))},closeFileRightMenu:function(){this.isFileRightMenuVisible=!1},openfileBtnClick:function(){this.isFileRightMenuVisible=!1,this.$emit("openfileBtnClick",this.file)},copyFileBtnClick:function(){this.isFileRightMenuVisible=!1,this.$emit("copyFileBtnClick",this.file)},deleteFileClick:function(){this.isFileRightMenuVisible=!1,this.$emit("deleteFileClick",this.file.id,this.file.createUserId,this.file.archName,this.file.ipfsCid)},checkMilestoneClick:function(){this.isFileRightMenuVisible=!1,this.$emit("checkMilestoneClick",this.file)},filePreview:function(){var t;t=O(this.file.extension,I)?1:O(this.file.extension,A)?2:0,this.$emit("filePreview",this.file,t),this.isFileRightMenuVisible=!1}},watch:{isFileRightMenuVisible:function(t){t?document.body.addEventListener("click",this.closeFileRightMenu):document.body.removeEventListener("click",this.closeFileRightMenu)},tempRightFileId:function(t){this.isFileRightMenuVisible=t===this.file.id}}},B=L,j=(i("e996"),i("51c6"),Object(y["a"])(B,n,r,!1,null,"31749f17",null));e["a"]=j.exports},"745f":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isShowCommitJudgeWindow?i("div",[i("div",{staticClass:"blur-bg"}),i("div",{staticClass:"commit-judge-box"},[i("div",{staticClass:"commit-wrap"},[i("div",{staticClass:"title-bar"},[t._m(0),i("div",{staticClass:"close-icon"},[i("close-btn",{attrs:{isCloseHover:t.isCommitCloseHover},on:{mouseEnterNow:function(e){t.isCommitCloseHover=!0},mouseLeaveNow:function(e){t.isCommitCloseHover=!1}},nativeOn:{click:function(e){return e.stopPropagation(),t.closeCommitJudge(e)}}})],1)]),i("div",{staticClass:"commit-operate-box"},[i("div",{staticClass:"file-info"},[i("div",{staticClass:"file-img",class:t.fileImgClass}),i("div",{staticClass:"file-name",attrs:{title:t.file.archName}},[t._v(t._s(t.file.archName))])]),i("div",{staticClass:"commit-part"},[i("div",{staticClass:"milestone-wrap"},[i("el-switch",{staticClass:"milestone-switch",attrs:{width:t.switchWidth,"active-color":"#7850FF ","inactive-color":"#C9C9CC"},model:{value:t.isMileStone,callback:function(e){t.isMileStone=e},expression:"isMileStone"}}),i("div",{staticClass:"milestone-logo"}),i("div",{staticClass:"milestone-tips"},[t._v("定义为里程碑文件")])],1),i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.remarkContent,expression:"remarkContent"}],staticClass:"remark-content",attrs:{name:"",id:"",placeholder:"创建备注"},domProps:{value:t.remarkContent},on:{input:function(e){e.target.composing||(t.remarkContent=e.target.value)}}}),i("div",{staticClass:"operate-btn"},[i("div",{staticClass:"cancel-btn",on:{click:function(e){return e.stopPropagation(),t.closeCommitJudge(e)}}},[t._v("取消")]),i("div",{staticClass:"commit-btn",on:{click:function(e){return e.stopPropagation(),t.finishCommitFile(e)}}},[t._v("完成提交")])])])])]),t._e(),t.isShowCoopWindow?i("div",{staticClass:"coop-wrap",class:{"mt-16":t.isShowCoopWindow}},[i("div",{staticClass:"title-bar"},[i("div",[t._v("文件协同至")]),i("div",{staticClass:"close-icon"},[i("close-btn",{attrs:{isCloseHover:t.isCoopCloseHover},on:{mouseEnterNow:function(e){t.isCoopCloseHover=!0},mouseLeaveNow:function(e){t.isCoopCloseHover=!1}},nativeOn:{click:function(e){return e.stopPropagation(),t.closeCoopWindow(e)}}})],1)]),i("div",{staticClass:"coop-people-list"},t._l(t.coopFolderList,(function(e){return i("div",{key:e.id,staticClass:"folder-item"},[i("div",{staticClass:"work-name"},[t._v(t._s(e.folderName))]),i("div",{staticClass:"use-flex ml-4"},[t._l(e.manageUser,(function(t){return i("people-item",{key:t.id,staticClass:"mr-8",attrs:{user:t}})})),0==e.manageUser.length?i("people-item",{attrs:{isShowEmptyAvatar:!0}}):t._e(),i("div",{staticClass:"vertical-line"}),i("div",{staticClass:"flex-1"},t._l(e.listUser,(function(t){return i("people-item",{key:t.id,attrs:{user:t}})})),1)],2)])})),0)]):t._e()])]):t._e()},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"left-title"},[i("div",{staticClass:"status-icon"}),i("div",{staticClass:"title-text"},[t._v("提交文件")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("img",{staticClass:"look-icon",attrs:{src:"/static/img/下拉箭头白色.svg"}})])}],s=i("f8c2"),a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"people-item",attrs:{title:t.user.cnName}},[i("div",{staticClass:"people-wrap",class:{"rt-0":t.isShowManagerMark}},[i("div",{staticClass:"people"},[Object.keys(t.user).length>0?i("img",{staticClass:"proj-avatarface",class:{"manager-mark":t.isShowManagerMark},attrs:{src:t._f("resolveAvator")(t.user.headImgUrl),alt:""}}):t.isShowEmptyAvatar?i("img",{staticClass:"proj-avatarface empty",attrs:{src:"/static/img/暂无2.svg",alt:""}}):i("div",{staticClass:"add-btn"},[i("i",{staticClass:"el-icon-plus proj-avatarface"})])]),i("div",{staticClass:"people-name",class:{"rt-2":t.isEnterEdit&&t.isShowManagerMark,"rt-4":t.isEnterEdit&&!t.isShowManagerMark}},[t._v(t._s(t.user.cnName))])])])},o=[],l={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=l,u=(i("648a"),i("2877")),h=Object(u["a"])(c,a,o,!1,null,"6e81672d",null),d=h.exports,p={data:function(){return{isCommitCloseHover:!1,isCoopCloseHover:!1,isShowCoopWindow:!1,isMileStone:!1,remarkContent:"",switchWidth:52}},components:{CloseBtn:s["a"],PeopleItem:d},mounted:function(){},props:{file:{type:Object,default:function(){return{}}},isShowCommitJudgeWindow:{type:Boolean,default:!1},coopFolderList:{type:Array,default:function(){return[]}},fileImgClass:{type:String,default:""}},methods:{closeCommitJudge:function(){this.$emit("closeCommitJudge"),this.isShowCoopWindow=!1},finishCommitFile:function(){this.$emit("finishCommitFile")},lookCoopTargetClick:function(){this.isShowCoopWindow=!0},closeCoopWindow:function(){this.isShowCoopWindow=!1}}},f=p,m=(i("ddbe"),i("bde5"),Object(u["a"])(f,n,r,!1,null,"447c10a7",null));e["a"]=m.exports},"758c":function(t,e,i){},"76ae":function(t,e,i){"use strict";var n=i("e9b0"),r=i.n(n);r.a},7951:function(t,e,i){},"7c41":function(t,e,i){},"7d48":function(t,e,i){"use strict";var n=i("cdec");t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(t){var n=t;return e&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=r(window.location.href),function(e){var i=n.isString(e)?r(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}()},8005:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"folder",staticClass:"yiyun_wenjian_list lisy-group-item",on:{contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),t.showRightMenu(e)}}},[i("div",{staticClass:"defultImage-mid foldernew-mid"}),i("strong",{staticClass:"yiyunwenjian_name",attrs:{title:t.folder.folderName}},[t._v(t._s(t.folder.folderName))]),i("strong",{staticClass:"visontext"},[t._v(t._s(t.childNumUnderFolder)+"个项目")]),t.isClient?[t.isWorkFolder?i("div",{staticClass:"yijianxietong isonselect"},[i("i",{staticClass:"icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon",on:{click:t.commitFolder}})]):t._e(),t.isLoading?i("div",{staticClass:"downloadIcon"},[i("img",{staticClass:"keep-sync",attrs:{src:"/static/img/保存同步.svg",alt:""}})]):t._e()]:t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:t.rightMenuVisible,expression:"rightMenuVisible"}],ref:"right-menu",staticClass:"contextmenu",style:{top:t.rightMenuTop+"px",left:t.rightMenuLeft+"px"}},[i("ul",{staticClass:"rightMenu folderRightMenu"},[t.isClient?i("li",{on:{click:function(e){return e.stopPropagation(),t.downloadFolder(e)}}},[t._v("从云端更新")]):t._e()])])],2)},r=[],s=(i("c975"),i("b0c0"),i("1d40")),a={components:{},props:{folder:{type:Object,default:function(){return{}}},activeRightMenuId:String,isLoading:{type:Boolean,default:!1},isWorkFolder:{type:Boolean,default:!0},localFileHashMap:{type:Object,default:function(){return{}}},filterFileList:{type:Array,default:function(){return[]}},filterFolderList:{type:Array,default:function(){return[]}}},data:function(){return{isClient:s["a"].isClient,rightMenuVisible:!1,rightMenuLeft:0,rightMenuTop:0,rightMenuEl:null,folderItemEl:null,workspaceEl:null}},computed:{childNumUnderFolder:function(){return this.filterFileList.length+this.filterFolderList.length}},methods:{showRightMenu:function(t){var e=this;this.rightMenuVisible=!0,this.$nextTick((function(){e.rightMenuEl=e.$refs["right-menu"],e.folderItemEl=e.$refs["folder"];var i=!1;e.workspaceEl=document.querySelector("#workspace");var n=e.workspaceEl.clientHeight,r=e.workspaceEl.clientWidth;e.$route.name.indexOf("workspace")>=0&&(i=!0);var s=e.folderItemEl.getBoundingClientRect(),a=e.rightMenuEl.clientHeight,o=e.rightMenuEl.clientWidth,l=document.body.clientHeight,c=document.body.clientWidth-128;e.rightMenuLeft=t.clientX-s.left,e.rightMenuTop=t.clientY-s.top;var u=e.isWorkFolder&&t.clientX+o>r,h=e.isWorkFolder&&t.clientY+a>n,d=t.clientX+o>c,p=t.clientY+a>l;(u&&i||d)&&(e.rightMenuLeft=e.rightMenuLeft-o),(h&&i||p)&&(e.rightMenuTop=e.rightMenuTop-a),e.$emit("onRightMenuActive",e.folder.id)}))},downloadFolder:function(){this.$emit("onDownloadAll",this.folder)},closeRightMenu:function(){this.rightMenuVisible=!1},commitFolder:function(t){t.stopPropagation(),t.preventDefault(),this.$emit("commitFolder",this.folder)},deleteFolderClick:function(){this.$emit("deleteFolderClick",this.folder.id),this.closeRightMenu()}},watch:{rightMenuVisible:function(t){t?document.body.addEventListener("click",this.closeRightMenu):document.body.removeEventListener("click",this.closeRightMenu)},activeRightMenuId:function(t){this.rightMenuVisible=t===this.folder.id}}},o=a,l=(i("ba12"),i("2877")),c=Object(l["a"])(o,n,r,!1,null,"047996e3",null);e["a"]=c.exports},"827b":function(t,e,i){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},"841c":function(t,e,i){"use strict";var n=i("d784"),r=i("825a"),s=i("1d80"),a=i("129f"),o=i("14c3");n("search",1,(function(t,e,i){return[function(e){var i=s(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i):new RegExp(e)[t](String(i))},function(t){var n=i(e,t,this);if(n.done)return n.value;var s=r(t),l=String(this),c=s.lastIndex;a(c,0)||(s.lastIndex=0);var u=o(s,l);return a(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},"84a3":function(t,e,i){"use strict";(function(e){var n=i("cdec"),r=i("fc6b"),s={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function o(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=i("3c68")),t}var l={adapter:o(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){l.headers[t]=n.merge(s)})),t.exports=l}).call(this,i("4362"))},8957:function(t,e,i){},9133:function(t,e,i){"use strict";var n=i("e7e6");t.exports=function(t,e,i){var r=i.config.validateStatus;!r||r(i.status)?t(i):e(n("Request failed with status code "+i.status,i.config,null,i.request,i))}},"94f1":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;"undefined"!==typeof navigator&&function(t,e){__WEBPACK_AMD_DEFINE_RESULT__=function(){return e(t)}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(window||{},(function(window){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};function ProjectInterface(){return{}}(function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1==e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+i[t]+i[e]+i[n]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t].length,n=0;ni.length&&(r=i.length);var s=[];if(null!=i&&i.length>0)for(var a=n;a0?i("div",{staticClass:"list-group"},t._l(t.filterFilesInWork(t.uploadFileList),(function(e){return i("FileItem",{key:e.id,staticClass:"lisy-group-item",attrs:{file:e,clientDownLoad:t.clientDownLoad,showFileMilestone:t.showFileMilestone,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id]}})})),1):t._e(),t.workFileList&&t.workFileList.length>0?i("div",{staticClass:"list-group"},t._l(t.filterFilesInWork(t.workFileList),(function(e){return i("FileItem",{key:e.id,staticClass:"lisy-group-item",attrs:{file:e,clientDownLoad:t.clientDownLoad,showFileMilestone:t.showFileMilestone,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,tempRightFileId:t.tempRightFileId,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{commitFile:t.showCommitWindow,dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},copyFileBtnClick:function(i){return t.copyWorkFileBtnClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick,deleteFileClick:t.deleteFileClick,checkMilestoneClick:t.checkMilestoneClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),1):t._e(),i("div",{staticClass:"list-group"},t._l(t.filterFoldersInWork(t.subFolderList),(function(e){return i("FolderItem",{key:e.id,attrs:{folder:e,isLoading:t.localFolderLoadStateMap[e.folderPath],activeRightMenuId:t.tempRightFileId,filterFolderList:t.filterFoldersInTarget(t.subFolderList,e),filterFileList:t.filterFilesInTarget(t.workFileList,e)},on:{onRightMenuActive:t.oneFileRightBtnClick,onDownloadAll:t.downloadFolder,commitFolder:t.commitFolder},nativeOn:{dblclick:function(i){return t.intoSubFolder(e,0)}}})})),1)],1)])])])]),i("div",{class:[""+t.neibianju,{"coopBox-max-height":t.isShowShadow&&t.isCollapse}],attrs:{id:"bottomBox"}},[i("div",{staticClass:"titleBox"},[i("span",{staticClass:"yiyun_zhediebtn DevtopIcon"},[i("i",{directives:[{name:"show",rawName:"v-show",value:t.isCollapse,expression:"isCollapse"}],staticClass:"Cicon text_gray icon font_family icon-icon_zhankai",attrs:{title:"展开面板"},on:{click:function(e){return e.stopPropagation(),t.openCopage(e)}}}),i("i",{directives:[{name:"show",rawName:"v-show",value:!t.isCollapse,expression:"!isCollapse"}],staticClass:"Cicon text_gray icon font_family icon-icon_shouqi",attrs:{title:"折叠面板"},on:{click:function(e){return e.stopPropagation(),t.closeCopage(e)}}})]),i("div",{staticClass:"title_warp"},[i("div",{staticClass:" ",attrs:{id:"bignav"}},[i("div",{staticClass:"section_item fl section_item_aside_fl xiangdui"},[i("div",{staticClass:"tabtltlebox"},[i("div",{staticClass:"section_item section_item_aside_fl"},[i("span",{staticClass:"yiyun_text-title-workspace mr-20 ml-8"},[i("el-breadcrumb",{staticClass:"folder_breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[i("el-breadcrumb-item",{nativeOn:{click:function(e){return t.clickBreadcrumb(-1,1)}}},[t._v("协作文件")]),t._l(t.breadcrumbFolderListInCoop,(function(e,n){return i("el-breadcrumb-item",{key:e.id,nativeOn:{click:function(e){return t.clickBreadcrumb(n,1)}}},[t._v(t._s(e.folderName))])}))],2)],1)])])]),t._m(0)]),i("div",{staticClass:"clear"})])]),i("div",{staticClass:"fifleBox",attrs:{id:"coopFileContainer"}},[i("div",{staticClass:"yiyun_section_warp layerout_H3",attrs:{id:"coopFileBox"}},[i("div",{staticClass:"yinyong_warpBox"},[t.isShowStartNodeFolders?i("div",[i("div",{staticClass:"list-group"},t._l(t.exchangeNodeListsInCoop,(function(e){return i("FolderItem",{key:e.id,attrs:{folder:e,isWorkFolder:!1,isLoading:t.localFolderLoadStateMap[e.folderPath],activeRightMenuId:t.tempRightFileId,filterFolderList:t.getRealChildFolderLists(e),filterFileList:t.getRealChildFileLists(e)},on:{onRightMenuActive:t.oneFileRightBtnClick,onDownloadAll:t.downloadFolder,commitFolder:t.commitFolder},nativeOn:{dblclick:function(i){i.stopPropagation(),t.intoSubFolder(e,1),t.isShowStartNodeFolders=!t.isShowStartNodeFolders,t.topFolderInCoop=e}}})})),1)]):i("div",[i("div",{staticClass:"mt-12"},t._l(t.filterFilesInCoop(t.cooperationFileList),(function(e){return i("FileItem",{key:e.id,attrs:{file:e,tempRightFileId:t.tempRightFileId,clientDownLoad:t.clientDownLoad,showFileMilestone:t.showFileMilestone,nodeFolder:t.currentNodeFolder,currentFolder:t.currentFolder,localFileHashMap:t.localFileHashMap,loadingState:t.localFileLoadStateMap[e.id],draggable:""},on:{dblclickFile:function(i){return t.fileClick(e)},filePreview:t.filePreview,openFileWith:function(i){return t.openFileWith(e)},openfileBtnClick:function(i){return t.fileClick(e)},oneFileRightBtnClick:t.oneFileRightBtnClick},nativeOn:{dragstart:function(i){return t.onfileDragStart(e,i)}}})})),1),i("div",{staticClass:"list-group"},t._l(t.filterFoldersInCoop(t.coopSubFolderList),(function(e){return i("FolderItem",{key:e.id,attrs:{folder:e,isWorkFolder:!1,isLoading:t.localFolderLoadStateMap[e.folderPath],activeRightMenuId:t.tempRightFileId,filterFolderList:t.filterFoldersInTarget(t.coopSubFolderList,e,!0),filterFileList:t.filterFilesInTarget(t.cooperationFileList,e,!0)},on:{onRightMenuActive:t.oneFileRightBtnClick,onDownloadAll:t.downloadFolder,commitFolder:t.commitFolder},nativeOn:{dblclick:function(i){return i.stopPropagation(),t.intoSubFolder(e,1)}}})})),1)])])])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowShadow,expression:"isShowShadow"}],staticClass:"showdowfix",attrs:{id:"bottomoShadow"}})]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.rightMenuvisible,expression:"rightMenuvisible"}],ref:"right-menu",staticClass:"contextmenu",style:{left:t.rightMenuleft+"px",top:t.rightMenuTop+"px"}},[i("ul",{staticClass:"rightMenu"},[i("li",{on:{click:t.newCreateFolderGroup}},[t._v(" 新建文件夹 ")]),t.isClient&&this.localWorkspacePrefix?i("li",{on:{click:t.openNativeCurrentFolder}},[t._v(" 打开本地工作目录 ")]):t._e()])])])],1)],1),i("el-dialog",{attrs:{width:"900px",visible:t.isVideo,"close-on-click-modal":!1},on:{"update:visible":function(e){t.isVideo=e},close:t.videoClose}},[i("div",{staticClass:"filePreview"},[i("video",{attrs:{src:t.videoSrc,controls:"controls"}})])]),i("el-dialog",{attrs:{title:"创建文件夹",visible:t.dialogNewFolderGroup,width:"460px","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogNewFolderGroup=e}},nativeOn:{submit:function(t){t.preventDefault()}}},[i("el-form",[i("div",{staticClass:"appImgiconbox"},[i("img",{attrs:{src:"/static/img/folder.png",alt:""}})]),i("el-form-item",[i("el-input",{nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createSubFolder(e)}},model:{value:t.folderGroupData.FolderName,callback:function(e){t.$set(t.folderGroupData,"FolderName",e)},expression:"folderGroupData.FolderName"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogNewFolderGroup=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.createSubFolder()}}},[t._v("确 定")])],1)],1),t.currentSelectTempFile?i("el-dialog",{staticClass:"temp-file-dialog",attrs:{title:t.showNewTemplateFileDialogTitle,visible:t.isShowNewTemplateFileDialog,width:"460px","show-close":!1,"close-on-click-modal":!1},on:{"update:visible":function(e){t.isShowNewTemplateFileDialog=e}},nativeOn:{submit:function(t){t.preventDefault()}}},[i("el-form",[t.oneOf(t.currentSelectTempFile.extension,["doc","docx","dwg","dxf","gif","jpeg","jpg","max","nwc","pdf","png","ppt","pptx","rar","rvt","skp","txt","xls","xlsx","xmind","zip"])?i("div",{staticClass:"appImgiconbox"},[i("img",{attrs:{src:"/static/img/files/file_sample_"+t.currentSelectTempFile.extension+".svg",alt:""}})]):i("div",{staticClass:"img-container"},[t.notPicIcon()?i("div",{staticClass:"defultImage-small",class:t.currentSelectTempFile.extension+"-mid"}):t.picIcon()?i("div",{staticClass:"defultImage-small img_bg-mid"},[i("div",{staticClass:"file_Im gbox-mid"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.currentSelectTempFile.alias,expression:"currentSelectTempFile.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):i("div",{staticClass:"video-small"})]),i("div",{staticClass:"guide-template-file-name"},[t._v(t._s(t.projectName+"_"+t.currentNodeFolder.folderName+"_"+t.currentSelectTempFile.fileName+"."+t.currentSelectTempFile.extension))]),i("el-form-item",[i("el-input",{nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createTemplateFile(e)}},model:{value:t.currentSelectTempFile.fileName,callback:function(e){t.$set(t.currentSelectTempFile,"fileName",e)},expression:"currentSelectTempFile.fileName"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.isShowNewTemplateFileDialog=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.createTemplateFile()}}},[t._v("完成创建")])],1)],1):t._e(),i("commit-judge",{ref:"commit-judge",attrs:{file:t.commitJudgeFile,fileImgClass:t.fileImgClass,isShowCommitJudgeWindow:t.isShowCommitJudgeWindow,coopFolderList:t.coopFolderList},on:{closeCommitJudge:t.closeCommitJudge,finishCommitFile:t.finishCommitFile}}),i("file-milestone",{attrs:{visible:t.checkMilestoneShow,fileMilestoneInfo:t.fileMilestoneInfo,localWorkspacePrefix:t.localWorkspacePrefix,fileHistoryList:t.fileHistoryList,file:t.currentFile},on:{closeMilestonePain:t.closeMilestonePain,makeCopy:t.copyWorkFileBtnClick,openFile:t.fileClick}})],1)},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"section_item fr section_item_aside_fr"},[i("div",{staticClass:"fr ml-10"},[i("span",{staticClass:"bj_label"},[t._v("协作文件均只读")])]),i("div",{staticClass:"fifle_search fr"})])}],s=i("6032"),a=s["a"],o=(i("3dd8"),i("bbb3"),i("f24b"),i("f88f"),i("bc4f"),i("6240"),i("09c5"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"72f8ea89",null),c=l.exports},"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"175e":function(t,e,i){"use strict";var n=i("cdec"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,i,s,a={};return t?(n.forEach(t.split("\n"),(function(t){if(s=t.indexOf(":"),e=n.trim(t.substr(0,s)).toLowerCase(),i=n.trim(t.substr(s+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([i]):a[e]?a[e]+", "+i:i}})),a):a}},2001:function(t,e,i){"use strict";var n=i("a0ba"),r=i.n(n);r.a},"24d7":function(t,e,i){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},2532:function(t,e,i){"use strict";var n=i("23e7"),r=i("5a34"),s=i("1d80"),a=i("ab13");n({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(s(this)).indexOf(r(t),arguments.length>1?arguments[1]:void 0)}})},"29c8":function(t,e,i){"use strict";t.exports=function(t,e,i,n,r){return t.config=e,i&&(t.code=i),t.request=n,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"2b9b":function(t,e,i){"use strict";var n=i("62d3"),r=i("c61b");t.exports=function(t,e){return t&&!n(e)?r(t,e):e}},"2e60":function(t,e,i){},"2f4c":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"search-bar",class:{"show-search-bar":t.isShowSearchBar}},[i("div",{staticClass:"search-entry",class:{"set-high-index":!t.isShowSearchBar},on:{mouseenter:function(e){t.isSearchHover=!0},mouseleave:function(e){t.isSearchHover=!1},click:function(e){return e.stopPropagation(),t.showSearchBar(e)}}},[i("img",{directives:[{name:"show",rawName:"v-show",value:!t.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),i("img",{directives:[{name:"show",rawName:"v-show",value:t.isSearchHover,expression:"isSearchHover"}],staticClass:"vert-hori-center search-active-img",attrs:{src:"/static/img/搜索激活.svg",alt:""}})]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[i("i",{staticClass:"search-icon",on:{click:function(e){return e.stopPropagation(),t.goToSearch(e)}}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.searchContent,expression:"searchContent"}],staticClass:"search-input",attrs:{type:"text",placeholder:t.placeholder,maxlength:"35"},domProps:{value:t.searchContent},on:{keyup:function(e){return e.stopPropagation(),t.enterSearchContent(e)},input:function(e){e.target.composing||(t.searchContent=e.target.value)}}}),i("i",{staticClass:"close-icon",on:{click:function(e){return e.stopPropagation(),t.hideSearchBar(e)}}})])])},r=[],s={data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},props:{placeholder:{type:String,default:"搜索的文本"}},watch:{searchContent:function(t){35==t.length&&this.$emit("maxTextLengthArrived"),this.changeSearchContent()}},methods:{enterSearchContent:function(t){this.searchContent&&13==t.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("changeSearchContent",this.searchContent)},goToSearch:function(){this.$emit("goToSearch")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("hideSearchBar")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("showSearchBar")}}},a=s,o=(i("76ae"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"df8317c6",null);e["a"]=l.exports},3950:function(t,e,i){},"3b6d":function(t,e,i){t.exports=i("9db1")},"3c68":function(t,e,i){"use strict";var n=i("cdec"),r=i("9133"),s=i("0beb"),a=i("2b9b"),o=i("175e"),l=i("7d48"),c=i("e7e6");t.exports=function(t){return new Promise((function(e,u){var h=t.data,d=t.headers;n.isFormData(h)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=t.auth.password||"";d.Authorization="Basic "+btoa(f+":"+m)}var v=a(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),s(v,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?o(p.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?p.response:p.responseText,s={data:n,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};r(e,u,s),p=null}},p.onabort=function(){p&&(u(c("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){u(c("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),u(c(e,t,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var g=i("b391"),y=(t.withCredentials||l(v))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(d[t.xsrfHeaderName]=y)}if("setRequestHeader"in p&&n.forEach(d,(function(t,e){"undefined"===typeof h&&"content-type"===e.toLowerCase()?delete d[e]:p.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),u(t),p=null)})),void 0===h&&(h=null),p.send(h)}))}},"3dd8":function(t,e,i){"use strict";var n=i("56db"),r=i.n(n);r.a},"45fc":function(t,e,i){"use strict";var n=i("23e7"),r=i("b727").some,s=i("a640"),a=i("ae40"),o=s("some"),l=a("some");n({target:"Array",proto:!0,forced:!o||!l},{some:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"466d":function(t,e,i){"use strict";var n=i("d784"),r=i("825a"),s=i("50c4"),a=i("1d80"),o=i("8aa5"),l=i("14c3");n("match",1,(function(t,e,i){return[function(e){var i=a(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i):new RegExp(e)[t](String(i))},function(t){var n=i(e,t,this);if(n.done)return n.value;var a=r(t),c=String(this);if(!a.global)return l(a,c);var u=a.unicode;a.lastIndex=0;var h,d=[],p=0;while(null!==(h=l(a,c))){var f=String(h[0]);d[p]=f,""===f&&(a.lastIndex=o(c,s(a.lastIndex),u)),p++}return 0===p?null:d}]}))},4995:function(t,e,i){},"4d63":function(t,e,i){var n=i("83ab"),r=i("da84"),s=i("94ca"),a=i("7156"),o=i("9bf2").f,l=i("241c").f,c=i("44e7"),u=i("ad6d"),h=i("9f7f"),d=i("6eeb"),p=i("d039"),f=i("69f3").set,m=i("2626"),v=i("b622"),g=v("match"),y=r.RegExp,b=y.prototype,x=/a/g,S=/a/g,C=new y(x)!==x,k=h.UNSUPPORTED_Y,w=n&&s("RegExp",!C||k||p((function(){return S[g]=!1,y(x)!=x||y(S)==S||"/a/i"!=y(x,"i")})));if(w){var V=function(t,e){var i,n=this instanceof V,r=c(t),s=void 0===e;if(!n&&r&&t.constructor===V&&s)return t;C?r&&!s&&(t=t.source):t instanceof V&&(s&&(e=u.call(t)),t=t.source),k&&(i=!!e&&e.indexOf("y")>-1,i&&(e=e.replace(/y/g,"")));var o=a(C?new y(t,e):y(t,e),n?this:b,V);return k&&i&&f(o,{sticky:i}),o},T=function(t){t in V||o(V,t,{configurable:!0,get:function(){return y[t]},set:function(e){y[t]=e}})},P=l(y),I=0;while(P.length>I)T(P[I++]);b.constructor=V,V.prototype=b,d(r,"RegExp",V)}m("RegExp")},"4e5b":function(t,e,i){"use strict";var n=i("c286"),r=i.n(n);r.a},"4f96":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("0d21"),r=i("db90"),s=i("06c5"),a=i("3d8c");function o(t){return Object(n["a"])(t)||Object(r["a"])(t)||Object(s["a"])(t)||Object(a["a"])()}},"51c2":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"change-btn"},t._l(t.titleList,(function(e,n){return i("div",{key:n,staticClass:"btn",class:{"active-btn":t.currentIndex===n},on:{click:function(e){return t.changeContentBtnClick(n)}}},[t._v(" "+t._s(e)+" ")])})),0)},r=[],s={props:{titleList:{type:Array,defualt:function(){return[]}}},data:function(){return{currentIndex:0}},methods:{changeContentBtnClick:function(t){this.currentIndex=t,this.$emit("changeContentBtnClick",t)}}},a=s,o=(i("6fdc"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"d5ff7aba",null);e["a"]=l.exports},"51c6":function(t,e,i){"use strict";var n=i("8957"),r=i.n(n);r.a},"56db":function(t,e,i){},"5a34":function(t,e,i){var n=i("44e7");t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5ce4":function(t,e,i){"use strict";var n=i("cdec");t.exports=function(t,e){e=e||{};var i={},r=["url","method","params","data"],s=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(r,(function(t){"undefined"!==typeof e[t]&&(i[t]=e[t])})),n.forEach(s,(function(r){n.isObject(e[r])?i[r]=n.deepMerge(t[r],e[r]):"undefined"!==typeof e[r]?i[r]=e[r]:n.isObject(t[r])?i[r]=n.deepMerge(t[r]):"undefined"!==typeof t[r]&&(i[r]=t[r])})),n.forEach(a,(function(n){"undefined"!==typeof e[n]?i[n]=e[n]:"undefined"!==typeof t[n]&&(i[n]=t[n])}));var o=r.concat(s).concat(a),l=Object.keys(e).filter((function(t){return-1===o.indexOf(t)}));return n.forEach(l,(function(n){"undefined"!==typeof e[n]?i[n]=e[n]:"undefined"!==typeof t[n]&&(i[n]=t[n])})),i}},"5e9c":function(t,e,i){"use strict";var n=i("cdec");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},6032:function(t,e,i){"use strict";(function(t){i("99af"),i("4de4"),i("7db0"),i("c740"),i("4160"),i("a630"),i("caad"),i("c975"),i("a15b"),i("d81d"),i("13d5"),i("fb6a"),i("45fc"),i("4fad"),i("b64b"),i("d3b7"),i("07ac"),i("ac1f"),i("2532"),i("3ca3"),i("5319"),i("1276"),i("159b"),i("ddb0");var n=i("ade3"),r=i("4f96"),s=i("5530"),a=i("2909"),o=i("3835"),l=(i("96cf"),i("1da1")),c=i("2b0e"),u=i("f96e"),h=i("2f4c"),d=i("51c2"),p=(i("0bb4"),i("95f1")),f=i("bf4b"),m=i("ce5b"),v=i.n(m),g=i("1d40"),y=i("93d6"),b=i("b0f9"),x=i("b428"),S=i("3de1"),C=i("7162"),k=i("a2d2"),w=i("8005"),V=i("b332"),T=i("2ef0"),P=i("b775"),I=i("745f");window.jQuery,window.Velocity;c["default"].use(v.a);var A=V["b"].DOWNLOADING,O=V["b"].UPLOADING,E=V["a"].WORKING,_=V["a"].NOT_WORKING,D=function(){return{Id:"",ProjId:"",SuperId:"",LevelId:"",FirstFolderId:"",FolderName:"",TemplateId:"",NodeId:"",SysCode:"",FileCount:0,ChildCount:0,Deleted:0,Customed:0,CreateUserId:"",CreateTime:"",ModifyUserId:"",ModifyTime:""}};function F(t,e){var i=Object(r["a"])(t),n=i[0],a=(i[1],i.slice(2)),o=n.Id,l=[],c={};return a.forEach((function(t){var i=Object(S["b"])(t);c[i.id]=i,i.listChildren=[],i.listUser=i.oldGeneralId.split(",").filter((function(t){return t})).map((function(t){return Object(s["a"])({},e[t])})),i.manageUser=("0"===i.oldManager?"":i.oldManager).split(",").filter((function(t){return t})).map((function(t){return Object(s["a"])({},e[t])}));var n=i.superId;if(n!==o){var r=c[n];r&&r.listChildren.push(i)}else l.push(i)})),l}function M(t){var e=[];function i(t){t.length>0&&t.forEach((function(t){e.push(t),t.listChildren&&t.listChildren.length>0&&i(t.listChildren)}))}return i(t),e}e["a"]={components:{AppHeader:u["a"],SearchBar:h["a"],ChangeBtn:d["a"],WorkLine:p["a"],AddFileButton:f["a"],FileItem:C["a"],FolderItem:w["a"],CommitJudge:I["a"],FileMilestone:k["default"]},data:function(){return{videoSrc:"",isVideo:!1,loading:!1,isClient:g["a"].isClient,userId:sessionStorage.userId,projectId:sessionStorage.projId,projectName:sessionStorage.projName,isShowpageIcon:!0,isCollapse:!0,closepageH:"",showWorkline:!1,nodeFolders:[],currentNodeFolder:{},currentFolder:{},currentFolderInCoop:{},topFolderInCoop:{},rightMenuvisible:!1,rightMenuEl:null,rightMenuleft:0,rightMenuTop:0,dialogNewFolderGroup:!1,folderGroupData:D(),localWorkspacePrefix:"",socketIns:null,timerIns:null,folderMap:{},subFolderMap:{},breadcrumbFolderList:[],breadcrumbFolderListInCoop:[],uploadFileList:[],workFileList:[],listTempFiles:[],currentSelectTempFile:null,isShowNewTemplateFileDialog:!1,workSubFolderList:[],coopSubFolderList:[],tempWorkSubFolderList:[],cooperationFileList:[],neibianju:"neibianju",isShowShadow:!1,localFileHashMap:null,localFileLoadStateMap:{},localFolderLoadStateMap:{},tempRightFileId:"",isShowStartNodeFolders:!0,isfinishGetExchangeNodes:!1,allNodeFolders:[],exchangeNodeListsInCoop:[],exchangeNodeInfoMap:[],reverseLocalFileHashMap:{},currentBtnIndex:0,titleList:["工作文件","协作文件"],isShowSearchBar:!1,searchContent:"",searchWorkFileList:[],searchCoopFileList:[],isAllFileLoaded:!1,hackWorkLine:null,nestTemplateLists:[],isShowCommitJudgeWindow:!1,uesrList:[],listNewFolder:[],plainFolderList:[],exchangeNodeListsTo:[],coopFolderList:[],commitJudgeFile:{},fileImgClass:"defultImage-mid",commitFileControlIpfsCid:"",uploadCommandInfo:{},commitJudgeCom:null,checkMilestoneShow:!1,fileMilestoneInfo:{},fileHistoryList:[],currentFile:{}}},mounted:function(){var t=this;this.getAllNodePeopleInfo(),this.$bus.$on("setMileStoneClick",this.handleMileStoneBtnClick),sessionStorage.pageTitle="工作空间",this.hackWorkLine=this.$refs.hackworkline,this.$nextTick((function(){t.listenBottomHeight()})),this.isClient&&this.initWorkspaceDropEvent(),this.fetchNodeFolders(),this.fetchFoldersByProjId(),this.getNestNode(sessionStorage.templateID),g["a"].entryProject(sessionStorage.projName,sessionStorage.accountName,this.onSocketFileChangeDetected.bind(this),(function(e){t.localWorkspacePrefix=e}),(function(e){t.$notify({message:"本地网关通讯失败",title:"502错误",type:"error"})})).then((function(e){t.socketIns=e})),this.timerIns=setTimeout((function(){t.intervalTask()}),3e3)},destroyed:function(){this.$bus.$off("setMileStoneClick",this.handleMileStoneBtnClick),window.clearTimeout(this.timerIns),this.timerIns=null,g["a"].leaveProject(this.socketIns),sessionStorage.removeItem("nowFolderIndex")},computed:{showTitle:function(){return this.isShowSearchBar&&this.searchContent?"“".concat(this.searchContent,"”搜索结果"):this.projectName},isShowSearchPage:function(){var t=/^\s*$/;return this.isShowSearchBar&&!t.test(this.searchContent)},showNewTemplateFileDialogTitle:function(){return"创建".concat(this.currentSelectTempFile?this.currentSelectTempFile.extension:"","文件")},nowFolderIndex:function(){return this.nodeFolders&&this.nodeFolders.indexOf(this.currentNodeFolder)},nowFolderName:function(){return this.currentNodeFolder.folderName},subFolderList:function(){var t=Object(T["uniqBy"])(this.workSubFolderList.concat(this.tempWorkSubFolderList),(function(t){return t.id}));return t},coopBoxRealHeight:function(){return document.getElementById("coopFileBox")?document.getElementById("coopFileBox").offsetHeight:0}},methods:{lookCoopTarget:function(){var t=this,e=this.plainFolderList.filter((function(e){return t.exchangeNodeListsTo.find((function(t){return e.id==t.id}))}));this.coopFolderList=e},getUserList:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(y["g"])({id:t.$store.state.currentCompanyId,nodeType:"company"},1,1e4);case 2:return i=e.sent,n=i.list,t.userList=n,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))()},getAllNodePeopleInfo:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s,a,l,c,u,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([t.getUserList(),t.$fetchApi("folder/queryAllNodeFolderListByProjectId",{projectId:sessionStorage.projId})]);case 2:i=e.sent,n=Object(o["a"])(i,2),r=n[0],s=n[1],a=r.reduce((function(t,e){return t[e.id]=e,t}),{}),l=s.Data||{},c=l.folder,l.manager,u=Object(T["uniqBy"])(c,"Id"),h=F(u,a),t.listNewFolder=h,t.plainFolderList=M(h);case 12:case"end":return e.stop()}}),e)})))()},handleMileStoneBtnClick:function(t,e){var i=this;return Object(l["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,c,u,h;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=i.localWorkspacePrefix,s=Object(V["f"])(i.currentFile,i.currentNodeFolder),i.localFileHashMap[s]){n.next=4;break}return n.abrupt("return");case 4:return a="".concat(r,"\\").concat(s),o=i.currentFile.id,c="",n.next=9,x["j"](o);case 9:u=n.sent,0==u.Code&&(c=u.Data.CurrentIpfsCid),h="",g["a"].editCommitHistoryMilestone(a,c,e.currentHash,t,function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return h=e,console.log("currentIpfsCid",h),(new Date).getTime(),n={ArchId:i.currentFile.id,CurrentIpfsCid:h,ModifyUserId:sessionStorage.userId,PrevIpfsCid:c},console.log("parms",n),t.next=7,x["n"](n);case 7:r=t.sent,console.log("editRes",r);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 13:case"end":return n.stop()}}),n)})))()},getRealChildFileLists:function(t){return this.exchangeNodeInfoMap[t.id]&&this.exchangeNodeInfoMap[t.id].realChildFileLists||[]},getRealChildFolderLists:function(t){return this.exchangeNodeInfoMap[t.id]&&this.exchangeNodeInfoMap[t.id].realChildFolderLists||[]},getNestNode:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,s,o;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return o=function(t,e){t.forEach(function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(i){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(b["l"])(i.TemplateId);case 2:n=t.sent,r=n.Data||[],r.length>0&&e.push.apply(e,Object(a["a"])(r));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},i.next=3,Object(b["l"])(t);case 3:n=i.sent,r=n.Data||[],s=Object(a["a"])(n.Data),o(r,s),e.nestTemplateLists=s;case 8:case"end":return i.stop()}}),i)})))()},maxTextLengthArrived:function(){this.$notify({message:"请输入35个字之内的搜索内容",type:["warning"]})},changeContentBtnClick:function(t){this.currentBtnIndex=t},changeSearchContent:function(t){this.searchContent=t},hideSearchBar:function(){this.isShowSearchBar=!1,this.searchContent="",this.currentBtnIndex=0},showSearchBar:function(){this.isShowSearchBar=!0},searchForFile:Object(T["debounce"])(Object(l["a"])(regeneratorRuntime.mark((function t(){var e,i,n,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=/^\s*$/,!e.test(this.searchContent)){t.next=5;break}return t.abrupt("return");case 5:return i=this.currentNodeFolder.id,t.next=8,x["l"](i,this.searchContent);case 8:n=t.sent,0===n.Code?(r=n.Data.workFile||[],s=n.Data.coordinationFiles||[],this.searchWorkFileList=r.length>0?r.map((function(t){return Object(S["b"])(t)})):[],this.searchCoopFileList=s.length>0?s.map((function(t){return Object(S["b"])(t)})):[],this.currentBtnIndex=0):this.$notify({type:["error"],message:"查询数据失败, 请稍后重试。"});case 10:case"end":return t.stop()}}),t,this)}))),500),notPicIcon:function(){return!this.oneOf(this.currentSelectTempFile.extension,V["g"])&&!this.oneOf(this.currentSelectTempFile.extension,V["c"])},picIcon:function(){return this.oneOf(this.currentSelectTempFile.extension,V["g"])},createTemplateFile:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s,a,o,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.currentSelectTempFile.fileName,n=t.currentSelectTempFile.extension,r=t.workFileList.findIndex((function(t){return t.archName===i&&t.extension==n})),!(r>-1)){e.next=6;break}return t.$notify({type:"warning",message:"文件名重复 请重新输入。",offset:100,duration:2500}),e.abrupt("return");case 6:return s=new Date,a=t.currentFolder.folderPath?t.currentFolder.folderPath:"",o={id:t.currentSelectTempFile.id,projId:t.projectId,folderId:t.currentNodeFolder.id,archName:i,extension:n,ipfsCid:t.currentSelectTempFile.hash,fileSize:t.currentSelectTempFile.fileSize,folderLevelId:t.currentNodeFolder.levelId,status:0,workStatus:0,commonStatus:0,deleted:t.currentSelectTempFile.deleted,milestone:0,version:0,showUrl:"",createUserId:t.userId,createTime:s,modifyUserId:t.userId,modifyTime:s,isShowRecycle:0,relativePath:a},e.next=11,x["a"](o);case 11:if(l=e.sent,0!=l.Code){e.next=19;break}return t.fetchFolderFiles(),t.isShowNewTemplateFileDialog=!1,t.$notify({message:"文件 “".concat(i,"” 创建成功。"),type:"success",offset:100,duration:2500}),e.abrupt("return");case 19:return t.isShowNewTemplateFileDialog=!1,t.$notify({message:"文件 “".concat(i,"” 创建失败 请稍后重试。"),type:"error",offset:100,duration:2500}),e.abrupt("return");case 22:case"end":return e.stop()}}),e)})))()},fileTempClick:function(t){this.isShowNewTemplateFileDialog=!0,this.currentSelectTempFile=Object(s["a"])({},t)},loadListTempFiles:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.nodeFolders||!t.nodeFolders[t.nowFolderIndex]){e.next=8;break}return i=t.nodeFolders[t.nowFolderIndex].nodeId,e.next=4,Object(b["i"])(i);case 4:if(n=e.sent,0===n.Code){e.next=7;break}return e.abrupt("return");case 7:n.Data.length>0?t.listTempFiles=n.Data.map((function(t){return Object(S["b"])(t)})):t.listTempFiles=[];case 8:case"end":return e.stop()}}),e)})))()},filePreview:function(t,e){var i=this;return Object(l["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,l,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,x["f"](sessionStorage.companyId);case 2:if(r=n.sent,s={API:"company/queryFileOnlineUrlByCompanyId",Action:"打开文件",CompanyName:sessionStorage.CompanyName,Subject:t.archName+"."+t.extension,Source:sessionStorage.client,ProjectName:sessionStorage.projName},Object(P["b"])("operation/record",s),a="http://"+r.Data,2!=e){n.next=14;break}o="http://www.lockingos.org:8012/onlinePreview?url=",l="?fullfilename="+t.archName+"."+t.extension,console.log(o+a+t.ipfsCid+l),c=o+encodeURIComponent(a+t.ipfsCid+l)+"&officePreviewType=pdf",window.open(c,""),n.next=20;break;case 14:if(1!=e){n.next=19;break}i.isVideo=!0,i.videoSrc=a+t.ipfsCid,n.next=20;break;case 19:return n.abrupt("return");case 20:case"end":return n.stop()}}),n)})))()},videoClose:function(){this.videoSrc=""},deleteFolderClick:function(t){var e=this.isClient,i=this.subFolderList,n=this.workFileList,r=this.subFolderMap,s=this.userId,o=this.localFileHashMap,c=this.reverseLocalFileHashMap,u=r[t].folderName,h=this,d=[];function p(t){var e=i.filter((function(e){return e.parentFolderPath==t}));if(0==e.length){var s=n.filter((function(e){return e.relativePath==t})),o=r[t].parentFolderPath;if(""!==o){var l=n.filter((function(t){return t.relativePath==o}));s.push.apply(s,Object(a["a"])(l))}d.push.apply(d,Object(a["a"])(s))}e.forEach((function(t){p(t.id)}))}this.$confirm("确认删除文件夹“".concat(u,"”吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"warning"}).then(Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:p(t),n=d.length,console.log("要删除的文件总数是",n),r=d.find((function(t){return 2==t.workStatus&&t.modifyUserId!==s})),r?h.$notify({message:"“".concat(u,"”文件夹下存在“工作中”文件,删除失败。"),type:"error",offset:100,duration:2500}):(a=0,d.forEach(function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(i){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e&&delete o[c[i.ipfsCid]],t.next=3,x["c"](i.id);case 3:r=t.sent,a=0==r.Code?a+1:a,a==n&&h.$notify({message:"“".concat(u,"”文件夹已删除。"),type:["success"],duration:2500}),h.fetchFolderFiles();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 5:case"end":return i.stop()}}),i)}))))},finishGetExchangeNodes:function(){this.isfinishGetExchangeNodes=!0,this.getExchangeNodes()},getExchangeNodes:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t.currentNodeFolder.listsShareFrom[1],n=t.currentNodeFolder.listsShareFrom[0],r=i.map((function(t){return t.id})),s=n.map((function(t){return t.id})),t.exchangeNodeListsInCoop=t.allNodeFolders.filter((function(t){return r.includes(t.id)})),t.exchangeNodeListsTo=t.allNodeFolders.filter((function(t){return s.includes(t.id)})),t.getExchangeNodesChild();case 7:case"end":return e.stop()}}),e)})))()},getExchangeNodesChild:function(){var t=this,e={};this.exchangeNodeListsInCoop.forEach(function(){var i=Object(l["a"])(regeneratorRuntime.mark((function i(n){var r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:r={},r.realChildFileLists=[],r.realChildFolderLists=[],r.realChildFolderLists=t.filterFoldersInTarget(t.coopSubFolderList,n,n,!0),r.realChildFileLists=t.filterFilesInTarget(t.cooperationFileList,n,n,!0),e[n.id]=r,t.exchangeNodeInfoMap=e;case 7:case"end":return i.stop()}}),i)})));return function(t){return i.apply(this,arguments)}}())},fetchFoldersByProjId:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("folder/queryAllNodeFolderListByProjectId",{projectId:sessionStorage.projId});case 2:i=e.sent,n=Object(r["a"])(i.Data.folder),n[0],n[1],s=n.slice(2),t.allNodeFolders=s.map((function(t){return Object(S["b"])(t)}))||[];case 5:case"end":return e.stop()}}),e)})))()},dealWithCoopFiles:function(t){var e=[],i={};return t.forEach((function(t){var n=t.relativePath;if(n){var r=n.split("/");r.forEach((function(n,s){var a=r.slice(0,s+1).join("/");if(!i[a]){var o=new V["d"](a);o.topFolderId=t.folderId;var l=o.parentFolderPath;e.push(o),i[a]=o,i[l]&&i[l].childCount++}})),i[n].fileCount++}})),e},oneFileRightBtnClick:function(t){this.tempRightFileId=t,this.rightMenuvisible=!1},filterFilesInWork:function(t){var e=this.currentFolder.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.relativePath===i}))},filterFilesInCoop:function(t){var e=this,i=this.currentFolderInCoop.folderPath,n=void 0===i?"":i;return t.filter((function(t){return t.relativePath==n&&t.folderId==e.topFolderInCoop.id}))},filterFilesInTarget:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.topFolderInCoop,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.folderPath,s=void 0===r?"":r;return t.filter((function(t){if(t.relativePath==s){if(!n)return!0;if(t.folderId==i.id)return!0}return!1}))},filterFoldersInWork:function(t){var e=this.currentFolder.folderPath,i=void 0===e?"":e;return t.filter((function(t){return t.parentFolderPath===i}))},filterFoldersInCoop:function(t){var e=this,i=this.currentFolderInCoop.folderPath,n=void 0===i?"":i;return t.filter((function(t){return t.parentFolderPath==n&&t.topFolderId==e.topFolderInCoop.id}))},filterFoldersInTarget:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.topFolderInCoop,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e.folderPath,s=void 0===r?"":r;return t.filter((function(t){if(t.parentFolderPath==s){if(!n)return!0;if(t.topFolderId==i.id)return!0}return!1}))},oneOf:function(t,e){return-1!==e.indexOf(t)},initWorkspaceDropEvent:function(){var t=document.getElementById("workspace");t.addEventListener("dragenter",this.stopPropagation),t.addEventListener("dragover",this.stopPropagation),t.addEventListener("dragleave",this.stopPropagation),t.addEventListener("drop",this.fileDropEvent,!1)},fileDropEvent:function(t){var e=Object(T["propertyOf"])(t)("dataTransfer.files");if(e&&0!==e.length&&"copyLink"!=t.dataTransfer.effectAllowed){var i=Array.from(e).map((function(t){return t.path}));this.clientUpload(i)}},stopPropagation:function(t){t.stopPropagation(),t.preventDefault()},onfileDragStart:function(e,i){var n=this;if(i.dataTransfer.effectAllowed="move",this.stopPropagation(i),this.isClient){var r=e.nodeName,s=e.id,a=!!r,o=Object(V["f"])(e,this.currentNodeFolder);if(this.localFileHashMap[o]){if(!a){if(e.workStatus===E&&sessionStorage.userId!==e.modifyUserId)return;x["b"](s,E).then((function(t){0===t.Code&&(e.workStatus=E,e.modifyUserId=sessionStorage.userId,n.fetchFolderFiles())}))}var l=t.electron.ipcRenderer;l.invoke("project-file-dnd","".concat(this.localWorkspacePrefix,"\\").concat(o))}}},intervalTask:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.fetchFolderFiles();case 2:t.timerIns&&setTimeout((function(){t.intervalTask()}),3e3);case 3:case"end":return e.stop()}}),e)})))()},onscroll:function(){},listenBottomHeight:function(){var t=document.getElementById("coopFileBox")?document.getElementById("coopFileBox").offsetHeight:0;this.isShowShadow=t>259},onSocketFileChangeDetected:function(t){var e=t.data;try{var i=JSON.parse(e);Object.entries(i).forEach((function(t){var e=Object(o["a"])(t,2),n=e[0],r=e[1];1===r.split(";").length&&(i[n]="".concat(r,";0"))})),this.localFileHashMap=i}catch(n){console.log("socket file change message error:",n)}},addLocalFileRecord:function(t,e){this.localFileHashMap=Object(s["a"])(Object(s["a"])({},this.localFileHashMap),{},Object(n["a"])({},t,"".concat(e,";0")))},updateFileLoadState:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0;t.id;var c={type:e,loadProgress:i,loadSize:r,totalSize:o,unit:l,loadUnit:a,fileRelativePath:t.relativePath||""};this.localFileLoadStateMap=Object(s["a"])(Object(s["a"])({},this.localFileLoadStateMap),{},Object(n["a"])({},t.id,c))},removeFileLoadingState:function(t){console.log("going to remove file: ".concat(t)),delete this.localFileLoadStateMap[t],this.localFileLoadStateMap=Object(s["a"])({},this.localFileLoadStateMap)},goFolderAndBack:function(t){this.goFolder(t),this.hideWorklinkPage()},showWorklinkPage:function(){this.hackWorkLine&&(this.hackWorkLine.isShowworklink=!0,this.hackWorkLine.workheight="workheight"),this.showWorkline=!0},hideWorklinkPage:function(){this.hackWorkLine&&(this.hackWorkLineisShowworklink=!1,this.hackWorkLine.workheight="workheightinit"),this.showWorkline=!1},previousFolder:function(){this.goFolder(this.nowFolderIndex-1),this.isShowStartNodeFolders=!0},nextFolder:function(){this.goFolder(this.nowFolderIndex+1)},goFolder:function(t){var e=this;t<0?S["d"].error("不能再向前了"):t>this.nodeFolders.length-1?S["d"].error("不能再向后了"):(sessionStorage.nowFolderIndex=t,this.currentNodeFolder=this.nodeFolders[t],this.currentNodeFolder!==this.currentFolder&&this.clearCurrentFolderFiles(),this.currentFolder=this.currentNodeFolder,this.currentFolderInCoop=this.currentNodeFolder,this.breadcrumbFolderList=[],this.breadcrumbFolderListInCoop=[],this.fetchFolderFiles(),this.loadListTempFiles(),this.$nextTick((function(){e.listenBottomHeight()})))},intoSubFolder:function(t,e){var i=this;0==e?(this.currentFolder=t,this.breadcrumbFolderList.push(t)):1==e&&(this.currentFolderInCoop=t,this.breadcrumbFolderListInCoop.push(t),this.$nextTick((function(){i.listenBottomHeight()})))},nowFolderClick:function(t){this.goFolder(t),this.isShowStartNodeFolders=!0},fetchNodeFolders:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.userId,n=t.projectId,e.next=4,x["e"](n,i);case 4:if(r=e.sent,s=r.filter((function(t){return t.nodeId!==t.templateId&&"公共文件夹"!==t.folderName})),t.nodeFolders=s,t.copyNodeFolders=Object(T["cloneDeep"])(s),t.folderMap=s.reduce((function(t,e){return t[e.id]=e,t}),{}),s.length){e.next=11;break}return e.abrupt("return");case 11:a=t.$route.params.folderId,a?t.currentNodeFolder=s.find((function(t){return t.id===a}))||s[0]:sessionStorage.nowFolderIndex?t.currentNodeFolder=s[sessionStorage.nowFolderIndex]||s[0]:t.currentNodeFolder=s[0],t.currentFolder=t.currentNodeFolder,t.currentFolderInCoop=t.currentNodeFolder,t.fetchFolderFiles(),t.loadListTempFiles();case 17:case"end":return e.stop()}}),e)})))()},fetchFolderFiles:Object(T["throttle"])(function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){var e,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.currentNodeFolder,i=this.userId,e&&e.id){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,x["d"](e.id,i,e.id);case 6:if(n=t.sent,n){t.next=9;break}return t.abrupt("return");case 9:if(this.currentNodeFolder.id===e.id){t.next=11;break}return t.abrupt("return");case 11:this.workFileList=n.file,this.subFolderMap=Object(s["a"])(Object(s["a"])({},this.subFolderMap),n.folderMap),this.resolveUploadFileList(this.workFileList),this.workSubFolderList=n.folder,this.tempWorkSubFolderList=this.tempWorkSubFolderList.filter((function(t){return!n.folder.some((function(e){return e.id===t.id}))})),this.cooperationFileList=n.coordinationFiles,this.coopSubFolderList=this.dealWithCoopFiles(this.cooperationFileList),this.isShowStartNodeFolders&&this.getExchangeNodesChild(),this.resolveUploadFileList(this.cooperationFileList);case 20:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),1e3),resolveUploadFileList:function(t){var e=this;this.uploadFileList=this.uploadFileList.filter((function(i){var n=t.find((function(t){return t.relativePath===i.relativePath&&t.archName===i.archName&&t.extension===i.extension}));return e.removeFileLoadingState(i.id),!n}))},createSubFolder:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.folderGroupData.FolderName){e.next=3;break}return S["d"].warning("请输入文件夹名称!"),e.abrupt("return");case 3:if(i=t.folderGroupData.FolderName,n=t.currentFolder.folderPath||"",r=n?"".concat(n,"/").concat(i):i,!t.subFolderMap[r]){e.next=9;break}return S["d"].warning("创建失败,已存在同名文件夹!"),e.abrupt("return");case 9:s=new V["d"](r,i,n),t.subFolderMap[r]=s,t.tempWorkSubFolderList.push(s),S["d"].success("文件夹创建成功!"),t.dialogNewFolderGroup=!1;case 14:case"end":return e.stop()}}),e)})))()},newCreateFolderGroup:function(){this.dialogNewFolderGroup=!0,this.folderGroupData=D()},clearCurrentFolderFiles:function(){this.uploadFileList=[],this.workFileList=[],this.workSubFolderList=[],this.tempWorkSubFolderList=[],this.cooperationFileList=[],this.localFileLoadStateMap={},this.localFolderLoadStateMap={},this.tempRightFileId=""},clickBreadcrumb:function(t,e){var i=this;if(0==e){var n=-1===t?this.currentNodeFolder:this.breadcrumbFolderList[t];this.currentFolder=n,this.breadcrumbFolderList=this.breadcrumbFolderList.slice(0,t+1)}else if(1==e){var r=-1===t?this.currentNodeFolder:this.breadcrumbFolderListInCoop[t];this.currentFolderInCoop=r,this.isShowStartNodeFolders=-1===t,this.breadcrumbFolderListInCoop=this.breadcrumbFolderListInCoop.slice(0,t+1),this.$nextTick((function(){i.listenBottomHeight()}))}},selectSystemFiles:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isClient){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,g["a"].chooseFiles();case 4:if(i=e.sent,i){e.next=7;break}return e.abrupt("return");case 7:t.clientUpload(i);case 8:case"end":return e.stop()}}),e)})))()},selectSystemFolders:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isClient){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,g["a"].chooseFolders();case 4:if(i=e.sent,i){e.next=7;break}return e.abrupt("return");case 7:t.clientUpload(i);case 8:case"end":return e.stop()}}),e)})))()},generateVirtualFolder:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t){var i={},n=[],r=this.subFolderMap;Object(V["e"])(t,e,(function(t){if(!r[t]){var e=new V["d"](t);i[e.folderPath]=e,n.push(e)}})),this.subFolderMap=Object(s["a"])(Object(s["a"])({},r),i),this.tempWorkSubFolderList=this.tempWorkSubFolderList.concat(n)}},clientUpload:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,a,o,u,h,d,p,f,m,v,y,b;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Promise.all(t.map((function(t){return g["a"].analyzeSystemPath(t)})));case 2:if(n=i.sent,r=Object(T["flatten"])(n),a=e.currentNodeFolder,o=a.folderName,u=a.levelId,h=a.id,d=e.currentFolder.folderPath,p=void 0===d?"":d,f=e.workFileList,m=r.some((function(t){var e=t.fileName,i=t.extension,n=t.relativePath,r=i?"".concat(e,".").concat(i):e,s="".concat(p?"".concat(p,"\\"):"").concat(n?"".concat(n):"").replace(/(\\)+/g,"/");return f.some((function(t){return s===t.relativePath&&"".concat(t.archName).concat(t.extension?".".concat(t.extension):"")===r}))})),!m){i.next=21;break}return v=!1,i.prev=10,i.next=13,c["default"].prototype.$confirm("监测到文件夹存在同名文件,是否继续上传并覆盖同名文件?","",{showClose:!1,type:"warning"});case 13:v=!0,i.next=19;break;case 16:i.prev=16,i.t0=i["catch"](10),console.log("user canceled");case 19:if(v){i.next=21;break}return i.abrupt("return");case 21:y={tempNumCount:0},b=r?r.length:0,r.forEach((function(t){var i=t.fullPath,n=t.fileName,r=t.extension,a=t.relativePath;e.generateVirtualFolder(a,p);var c=sessionStorage.getItem("accountName"),d={creator:c,projectId:e.projectId,projectName:e.projectName,folderId:h,folderName:o,folderLevelId:u,distFileRelativePath:[p,a].filter((function(t){return t})).join("\\").replace(/(\\)+/g,"/"),fileName:n,fileExtension:r,sourceFilePath:i,fileList:f,onSuccess:function(t){var i=t.ArchName,n=t.IpfsCid,r=t.Extension,s=t.RelativePath,a="".concat(o,"\\").concat(s?"".concat(s.replace(/\//g,"\\"),"\\"):"").concat(i).concat(r?".".concat(r):"");e.addLocalFileRecord(a,n),e.removeFileLoadingState(t.Id),e.fetchFolderFiles()},onProgress:function(t,i){var n=t.process,r=t.hash,s=t.size,a=t.currentSize,o=t.currentUnit,l=t.unit,c=Object(S["b"])(i);r||e.updateFileLoadState(c,O,n,a,o,s,l),-1!==c.id.indexOf("upload:")&&(e.uploadFileList.find((function(t){return t.id===c.id}))||e.uploadFileList.push(c))},onError:function(t,i){e.removeFileLoadingState(i.Id),e.uploadFileList=e.uploadFileList.filter((function(t){return t.id!==i.Id}))},successAllHandler:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.fetchFoldersByProjId();case 2:case"end":return t.stop()}}),t)})));function i(){return t.apply(this,arguments)}return i}()};g["a"].uploadFile(Object(s["a"])(Object(s["a"])({},d),{},{totalReadyUploadNum:b,tempNumWrap:y}))}));case 24:case"end":return i.stop()}}),i,null,[[10,16]])})))()},clientDownLoad:function(t){var e=this;if(this.isClient){var i=t.ipfsCid,n=t.archName,r=t.extension,s=(t.folderId,t.nodeName),a=t.relativePath,o=(this.folderMap,s||this.currentNodeFolder.folderName),l="".concat(n).concat(r?".".concat(r):""),c=!!s,u="".concat(o).concat(c?"\\协作文件":""),h="".concat(u).concat(a?"\\".concat(a):"").replace(/\//g,"\\"),d=Object(V["f"])(t,this.currentNodeFolder),p=function(){e.removeFileLoadingState(t.id)};this.updateFileLoadState(t,A,0),g["a"].downloadFile(i,sessionStorage.projName,l,h,(function(r,s){console.log("receive download file message:",r,s);try{var a=JSON.parse(r.data),o=a.process;a.hash;if(e.updateFileLoadState(t,A,o),100!==o)return;e.addLocalFileRecord(d,i),e.removeFileLoadingState(t.id),e.$notify({type:["success","download"],title:"文件已下载",message:"".concat(n)}),s.close()}catch(l){console.error("socket-download-file parse data have error:",l),p(),s.close()}}),p)}},downloadFolder:function(t){var e=this;this.workFileList.forEach((function(i){0===i.relativePath.indexOf(t.folderPath)&&e.clientDownLoad(i)}))},openNativeCurrentFolder:function(){var t=this.currentNodeFolder.folderName,e="".concat(this.localWorkspacePrefix,"\\").concat(t);g["a"].openFolder(e)},closeCommitJudge:function(){var t=this;this.$confirm("确定取消此次文件 “".concat(this.commitJudgeFile.archName,"” 的提交吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.commitFileControlIpfsCid="",t.isShowCommitJudgeWindow=!1,t.comitJudgeCom=null})).catch((function(t){console.log(t)}))},finishCommitFile:function(){var t=this;if(this.commitJudgeCom=this.$refs["commit-judge"],this.commitJudgeCom&&0==this.commitJudgeCom.remarkContent.length)this.$notify({type:"warning",message:"提交备注不能为空"});else{var e=this.commitJudgeFile,i=Object(V["f"])(e,this.currentNodeFolder),n=this.localFileHashMap[i],r=e.ipfsCid,s=n.split(";"),a=Object(o["a"])(s,2),l=a[0],c=a[1],u=n&&"1"==c&&l!==r;if(console.log(u),u){var h="".concat(e.modifyName,"更新了文件,请选择协同版本。");this.$confirm(h,"",{confirmButtonText:"继续提交我的版本",cancelButtonText:"保留对方版本",showClose:!0,type:"warning",customClass:"conflit-message-box"}).then((function(){t.commitFile(!1)})).catch((function(e){t.commitFile(!0)}))}else this.commitFile(!1);this.isShowCommitJudgeWindow=!1,this.commitFileControlIpfsCid="",this.comitJudgeCom=null}},showCommitWindow:function(t,e){this.isShowCommitJudgeWindow=!0,this.commitJudgeFile=t,this.fileImgClass=e},commitFile:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,a,o,c,u,h,d,p;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e.isClient){i.next=2;break}return i.abrupt("return");case 2:return n=e.commitJudgeFile,i.next=5,x["j"](n.id);case 5:r=i.sent,a=r.Data||{},Object.keys(a).length>0&&(a=Object(S["b"])(a)),e.commitFileControlIpfsCid=a.currentIpfsCid?a.currentIpfsCid:"",o=e.currentNodeFolder,c=o.folderName,o.levelId,o.id,n.archName,n.extension,u=n.id,h=n.relativePath,e.updateFileLoadState(n,O,0),d=function(){e.removeFileLoadingState(n.id)},p=Object(V["f"])(n,e.currentNodeFolder),e.uploadCommandInfo,g["a"].updateFile(n,e.localWorkspacePrefix,e.projectName,"".concat(c).concat(h?"\\".concat(h).replace(/\//g,"\\"):""),e.commitFileControlIpfsCid,e.commitJudgeCom.remarkContent,sessionStorage.getItem("accountName"),e.commitJudgeCom.isMileStone,t,function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(i){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:S["d"].success("".concat(n.archName,",已更新。")),r=i.IpfsCid,e.addLocalFileRecord(p,r),e.removeFileLoadingState(u),e.workFileList=e.workFileList.map((function(t){return t.id===n.id?Object(s["a"])(Object(s["a"])({},t),{},{ipfsCid:r,workStatus:_}):t})),0==e.currentBtnIndex&&e.isShowSearchPage&&(e.searchWorkFileList=e.searchWorkFileList.map((function(t){return t.id===n.id?Object(s["a"])(Object(s["a"])({},t),{},{ipfsCid:r,workStatus:_}):t})));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){var i=t.process,r=t.hash,s=t.size,a=t.currentSize,o=t.currentUnit,l=t.unit;r||e.updateFileLoadState(n,O,i,a,o,s,l)}),d);case 16:case"end":return i.stop()}}),i)})))()},getHistoryFileList:function(t){var e=this,i=function(t){e.fileHistoryList=t};g["a"].queryCommitHistory(t.path,t.hash,i)},commitFolder:function(t){var e="".concat(this.localWorkspacePrefix,"\\").concat(this.currentNodeFolder.folderName).concat(t.folderPath?"\\".concat(t.folderPath):"").replace(/\//g,"\\");this.clientUpload([e])},openFileWith:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,s,a,o;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.localWorkspacePrefix,r=Object(V["f"])(t,e.currentNodeFolder),e.localFileHashMap[r]){i.next=4;break}return i.abrupt("return");case 4:if(s="".concat(n,"\\").concat(r),t.archName,t.extension,t.id,a=t.nodeName,o=!!a,!o){i.next=10;break}return g["a"].clientOpenFileWith(s),i.abrupt("return");case 10:g["a"].clientOpenFileWith(s);case 11:case"end":return i.stop()}}),i)})))()},fileClick:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){var i,n,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.isClient){t.next=2;break}return t.abrupt("return");case 2:if(e.archName,e.extension,e.id,i=e.nodeName,i||this.currentFolder.folderName,n=this.localWorkspacePrefix,!!i,r=Object(V["f"])(e,this.currentNodeFolder),this.localFileHashMap[r]){t.next=9;break}return t.abrupt("return");case 9:s="".concat(n,"\\").concat(r),e.modifyUserId=sessionStorage.userId,g["a"].openFile(s);case 12:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),showFileMilestone:function(t){1!=t.status||t.modifyUserID==sessionStorage.userId?(this.currentMilestone=t,this.dialogFileHistory=!0,this.listMilestones=this.getMilstoneFile(t),console.log(this.listMilestones),this.currentArchID=t.archID):this.$notify({message:"其他人编辑中,不能设置历史文件",type:"warning",offset:100,duration:5e3})},rightShowMenu:function(t,e,i){var n=this;this.$nextTick((function(){n.rightMenuvisible=!0,n.tempRightFileId="currentWorkFolder",n.rightMenuleft=t.clientX,n.rightMenuTop=t.clientY,n.rightMenuEl=n.$refs["right-menu"];var e=document.querySelector("#workspace"),i=e.clientWidth,r=n.rightMenuEl?n.rightMenuEl.clientWidth:0;t.clientX+r>i&&(n.rightMenuleft=t.clientX-r)}))},closeShowMenu:function(){this.rightMenuvisible=!1},openCopage:function(){this.isShowpageIcon=!1,this.isCollapse=!1,this.neibianju="neibianju1",this.closepageH="closepageH"},closeCopage:function(){this.isShowpageIcon=!0,this.isCollapse=!0,this.neibianju="neibianju",this.closepageH=""},copyWorkFileBtnClick:function(t,e){var i=this;return Object(l["a"])(regeneratorRuntime.mark((function n(){var r,s,a,o,l,c,u;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=Object(T["cloneDeep"])(t),s=1,a="",e&&(r.archName="".concat(r.archName,"-版本").concat(e)),a=r.archName+"-副本",o=i.workFileList.find((function(t){return t.archName===a}));while(o)a=r.archName+"-副本(".concat(++s,")"),o=i.workFileList.find((function(t){return t.archName===a}));return l="0"+(new Date).getHours(),c="0"+(new Date).getMinutes(),u="0"+(new Date).getSeconds(),l=l.substr(l.length-2),c=c.substr(c.length-2),u=u.substr(u.length-2),r.archName=a+"-"+l+c+u,r.modifyUserId=sessionStorage.userId,r.modifyTime=new Date,r.createUserId=sessionStorage.userId,r.createTime=new Date,r.historyCurrentIpfsCid="",n.next=20,x["a"](r);case 20:i.fetchFolderFiles();case 21:case"end":return n.stop()}}),n)})))()},deleteFileClick:function(t,e,i,n){var r=this;e==sessionStorage.userId?this.$confirm("确认删除“".concat(i,"”吗?"),"",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"warning"}).then(Object(l["a"])(regeneratorRuntime.mark((function e(){var s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,x["c"](t);case 2:if(s=e.sent,0!==s.Code){e.next=14;break}r.$notify({message:"“".concat(i,"”文件已移除。"),type:["success"],duration:2500}),e.t0=regeneratorRuntime.keys(r.localFileHashMap);case 6:if((e.t1=e.t0()).done){e.next=13;break}if(a=e.t1.value,r.localFileHashMap[a]!==n){e.next=11;break}return delete r.localFileHashMap[a],e.abrupt("break",13);case 11:e.next=6;break;case 13:r.fetchFolderFiles();case 14:case"end":return e.stop()}}),e)})))):r.$notify({message:"不能删除其他用户创建的文件。",type:["error"],duration:2500})},checkMilestoneClick:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function i(){var n,r,s,a,o;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e.checkMilestoneShow=!0,n=e.localWorkspacePrefix,r=Object(V["f"])(t,e.currentNodeFolder),e.localFileHashMap[r]){i.next=5;break}return i.abrupt("return");case 5:return s="".concat(n,"\\").concat(r),e.fileMilestoneInfo.path=s,i.next=9,x["j"](t.id);case 9:a=i.sent,0==a.Code&&(e.fileMilestoneInfo.hash=(null===(o=a.Data)||void 0===o?void 0:o.CurrentIpfsCid)||""),e.getHistoryFileList(e.fileMilestoneInfo),e.currentFile=t;case 13:case"end":return i.stop()}}),i)})))()},closeMilestonePain:function(t){this.checkMilestoneShow=t}},watch:{isShowCommitJudgeWindow:function(t){this.lookCoopTarget()},isShowSearchBar:function(t){t||(0==this.currentBtnIndex?this.searchWorkFileList=[]:1==this.currentBtnIndex&&(this.searchCoopFileList=[]))},searchContent:function(){this.searchForFile()},localFileHashMap:function(t){var e={};for(var i in t)e[t[i]]=i;this.reverseLocalFileHashMap=e},nowFolderIndex:function(){this.isfinishGetExchangeNodes&&this.getExchangeNodes()},rightMenuvisible:function(t){t?document.body.addEventListener("click",this.closeShowMenu):document.body.removeEventListener("click",this.closeShowMenu)},localFileLoadStateMap:function(t){var e={};Object.values(t).forEach((function(t){var i=t.fileRelativePath;i&&Object(V["e"])(i,"",(function(t){e[t]=!0}))})),this.localFolderLoadStateMap=e}}}}).call(this,i("c8ba"))},6240:function(t,e,i){"use strict";var n=i("62a3"),r=i.n(n);r.a},"62a3":function(t,e,i){},"62d3":function(t,e,i){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},"640a":function(t,e,i){},"648a":function(t,e,i){"use strict";var n=i("0cf1"),r=i.n(n);r.a},6909:function(t,e,i){},"6c26":function(t,e,i){},"6fdc":function(t,e,i){"use strict";var n=i("640a"),r=i.n(n);r.a},7087:function(t,e,i){},7162:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{on:{dblclick:t.dblclickFile}},[i("div",{ref:"file",staticClass:"yiyun_wenjian_list loding-mask-parent",class:{yiyun_wenjian_list_add:!t.isLocalIpfsCidValidate&&t.isClient},on:{contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),t.fileRightBtnClick(e)}}},[t.isClient?i("div",{staticClass:"set-loding-mask-position"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isClient&&!t.isLocalIpfsCidValidate,expression:"isClient && !isLocalIpfsCidValidate"}],staticClass:"downloadIcon"})]):t._e(),i("div",{staticClass:"use-relative"},[i("div",[t.oneOf(t.file.extension,t.imgExtensionList)||t.oneOf(t.file.extension,t.VideoExtensionList)?t.oneOf(t.file.extension,t.imgExtensionList)?i("div",{ref:"file-img",staticClass:"defultImage-mid img_bg-mid",class:t.fileIsLoading||t.showDownloadMask?"toumin":""},[i("div",{staticClass:"file_Im gbox-mid"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.file.alias,expression:"file.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):i("div",{ref:"file-img",staticClass:"defultImage-mid video-mid",class:t.fileIsLoading||t.showDownloadMask?"toumin":""}):i("div",{ref:"file-img",staticClass:"defultImage-mid",class:t.file.extension+"-mid "+(t.fileIsLoading||t.showDownloadMask?"toumin":"")+" "+(t.oneOf(t.file.extension,t.filePreviewList)," ")})]),t.isClient?[t.showDownloadMask?i("div",{staticClass:"downloadIcon",on:{click:function(e){return t.clientDownLoad(t.file,1)}}},[t._m(0)]):t._e(),t.loadingState.type===t.DOWNLOADING?i("div",{staticClass:"downloadIcon"},[i("div",{staticClass:"progress-circle"},[i("LottieSvg",{staticClass:"bg-pic",attrs:{width:40,height:40,path:"static/img/lottie.download.svg.json"}}),i("el-progress",{attrs:{width:45,height:45,type:"circle","show-text":!1,percentage:t.loadingState.loadProgress,"stroke-width":3,color:"rgb(140, 0, 255)"}})],1)]):t._e(),t.loadingState.type===t.UPLOADING?i("div",{staticClass:"downloadIcon"},[i("div",{staticClass:"progress-circle"},[i("img",{staticClass:"bg-pic",style:{width:"24px"},attrs:{src:"/static/img/upload.png",alt:""}}),i("el-progress",{attrs:{width:45,height:45,type:"circle","show-text":!1,percentage:t.loadingState.loadProgress,"stroke-width":3,color:"rgb(140, 0, 255)"}})],1)]):t._e(),t.fileInLocal&&!t.fileIsLoading?[t.isInWorkFolder&&t.isFileModified?i("div",{staticClass:"yijianxietong have-modified-icon"},[i("i",{staticClass:"icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon",attrs:{title:"文件已经被修改 点击进行文件提交"},on:{click:function(e){return e.stopPropagation(),t.commitFile(e)}}})]):t._e(),t.isFileNeedsUpdate?i("div",{staticClass:"yijianxietong"},[i("i",{staticClass:"blue-icon icon font_family",attrs:{title:"当前文件不是最新的文件 点击获取最新文件"},on:{click:function(e){return t.clientDownLoad(t.file,1)}}})]):t._e(),t.isInWorkFolder&&t.localFileIsLatest?i("div",{staticClass:"yijianxietong isonselect"},[i("i",{staticClass:"icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon",attrs:{title:"已是最新版本"}})]):t._e()]:t._e()]:t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isFileRightMenuVisible,expression:"isFileRightMenuVisible"}],staticClass:"contextmenu",style:{top:t.fileRightMenuTop+"px",left:t.fileRightMenuLeft+"px"}},[i("ul",{ref:"right-menu",staticClass:"rightMenu"},[t.fileInLocal&&t.isClient&&t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.openfileBtnClick(e)}}},[t._v("打开")]):t._e(),t.fileInLocal&&t.isClient&&!t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.openfileBtnClick(e)}}},[t._v("打开")]):t._e(),!t.fileInLocal&&t.isClient?i("li",{staticClass:"function-disabled",attrs:{title:"请先下载文件再打开"}},[t._v("打开")]):t._e(),t.fileInLocal&&t.isClient&&t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.openFileWith(e)}}},[t._v("打开方式")]):t._e(),t.fileInLocal&&t.isClient&&!t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.openFileWith(e)}}},[t._v("打开方式")]):!t.fileInLocal&&t.isClient?i("li",{staticClass:"function-disabled"},[t._v("打开方式")]):t._e(),t.isClient&&t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.copyFileBtnClick(e)}}},[t._v("创建文件副本")]):t._e(),t.isClient&&t.isInWorkFolder?i("li",{on:{click:function(e){return e.stopPropagation(),t.deleteFileClick(e)}}},[t._v("移动到回收站")]):t._e(),!t.isClient&&t.oneOf(t.file.extension,t.filePreviewList)?i("li",{on:{click:function(e){return e.stopPropagation(),t.filePreview(e)}}},[t._v("在线预览")]):t.isClient||t.oneOf(t.file.extension,t.filePreviewList)?t._e():i("li",{staticClass:"function-disabled",attrs:{title:"暂时不支持此类文件的预览"}},[t._v("在线预览")]),t.isClient&&t.isInWorkFolder&&t.fileInLocal?i("li",{on:{click:function(e){return e.stopPropagation(),t.checkMilestoneClick(e)}}},[t._v("查看历史版本")]):t._e()])]),i("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"top_optionBar"},[i("el-dropdown",[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"icon iconfont icon_small-icon_small_wenjianshezhi settingIcon"})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.isClient&&t.fileInLocal?i("el-dropdown-item",{nativeOn:{click:function(e){return t.fileClick(t.file)}}},[i("span",[t._v("打开")])]):t._e()],1)],1)],1),i("strong",{ref:"file-name",staticClass:"yiyunwenjian_name",attrs:{title:t.file.archName+"."+t.file.extension}},[t._v(t._s(t.file.archName)),i("span",{directives:[{name:"show",rawName:"v-show",value:!t.oneOf(t.file.extension,t.RecExtensionList)&&!t.oneOf(t.file.extension,t.VideoExtensionList),expression:"!oneOf(file.extension, RecExtensionList) && !oneOf(file.extension, VideoExtensionList)"}],staticClass:"file-extension-tip"},[t._v(t._s(t.file.extension))])]),t.isInWorkFolder&&t.file.createUserId!=t.currentUserId?i("span",{staticClass:"yiyunwenjian_infodesc"},[t._v(t._s(t.file.createUserName)+" 创建")]):t._e(),1!=t.file.version?i("span",{staticClass:"visontext",on:{click:function(e){return t.showFileMilestone(t.file)}}},[t._v(" 版本 "+t._s(t.file.version)+" ")]):t._e(),t.isInWorkFolder?t._e():i("span",{staticClass:"yiyunwenjian_infodesc"},[t._v(t._s(t.file.nodeName))]),t.loadingState.type===t.UPLOADING?i("span",{staticClass:"yiyunwenjian_infodesc"},[t._v(t._s((t.loadingState.loadSize||"--")+" "+(t.loadingState.loadUnit||"")+" / "+(t.loadingState.totalSize||"--")+" "+(t.loadingState.unit||"")))]):t._e()],2)])])},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"readytodownload-icon"},[i("img",{staticClass:"imgjuzhong",attrs:{src:"/static/img/download.svg",alt:""}})])}],s=(i("c975"),i("ac1f"),i("1276"),i("3835")),a=i("1d40"),o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("LottieAnimation",t._b({staticClass:"lottie-svg"},"LottieAnimation",t.$attrs,!1))},l=[],c=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.style?i("div",{ref:"lavContainer",style:t.style}):t._e()},u=[],h=(i("a9e3"),i("96cf"),i("1da1")),d=i("94f1"),p=i.n(d),f=i("3b6d"),m=i.n(f),v={props:{path:{required:!0},speed:{type:Number,required:!1,default:1},width:{type:Number,required:!1,default:-1},height:{type:Number,required:!1,default:-1},loop:{type:Boolean,required:!1,default:!0},autoPlay:{type:Boolean,required:!1,default:!0},loopDelayMin:{type:Number,required:!1,default:0},loopDelayMax:{type:Number,required:!1,default:0}},data:function(){return{name:"lottie-animation",rendererSettings:{scaleMode:"centerCrop",clearCanvas:!0,progressiveLoad:!1,hideOnTransparent:!0},anim:null,style:null}},mounted:function(){this.init()},methods:{loadJsonData:function(t){return Object(h["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m.a.get("/"+t).then((function(t){return t.data}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},init:function(){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.style={width:-1!=t.width?"".concat(t.width,"px"):"100%",height:-1!=t.height?"".concat(t.height,"px"):"100%",overflow:"hidden",margin:"0 auto"},e.next=3,t.loadJsonData(t.path);case 3:i=e.sent,t.anim&&t.anim.destroy(),t.anim=p.a.loadAnimation({container:t.$refs.lavContainer,renderer:"svg",loop:t.loop,autoplay:t.autoPlay,animationData:i,rendererSettings:t.rendererSettings}),t.$emit("AnimControl",t.anim),t.anim.setSpeed(t.speed),t.loopDelayMin>0&&(t.anim.loop=!1,t.anim.autoplay=!1,t.executeLoop());case 9:case"end":return e.stop()}}),e)})))()},getRandomInt:function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t},executeLoop:function(){var t=this;this.anim.play(),setTimeout((function(){t.anim.stop(),t.executeLoop()}),this.getRandomInt(this.loopDelayMin,0==this.loopDelayMax?this.loopDelayMin:this.loopDelayMax))}},watch:{path:function(t,e){this.init()}}},g=v,y=i("2877"),b=Object(y["a"])(g,c,u,!1,null,null,null),x=b.exports,S={components:{LottieAnimation:x}},C=S,k=(i("d326"),Object(y["a"])(C,o,l,!1,null,"1f22bc7a",null)),w=k.exports,V=i("b332"),T=["jpg","png","bmp","gif","jpeg"],P=["jpg","png","bmp","gif","jpeg","txt","zip","ae","ai","idml","indd","mp3","pr","ps","sketch","xmind","skp","rvt","rar","nwc","max","dxf","dwg","svfzip","map","supermap","pdf","ppt","pptx","excel","xlsx","xls","doc","docx","word","folder","folder1","folder2"],I=["avi","mov","wav","mp4"],A=["doc","docx","ppt","pptx","xls","xlsx"],O=["jpg","png","bmp","gif","jpeg","doc","docx","ppt","pptx","xls","xlsx","avi","mov","wav","mp4","txt","pdf","dwg"],E=function(t,e){return-1!==e.indexOf(t)},_=V["b"].DOWNLOADING,D=V["b"].UPLOADING,F=V["a"].WORKING,M=V["a"].NOT_WORKING,L={components:{LottieSvg:w},props:{file:{type:Object,default:function(){return{}}},clientDownLoad:Function,nodeFolder:{type:Object,default:function(){return{}}},currentFolder:{type:Object,default:function(){return{}}},showFileMilestone:Function,localFileHashMap:{type:Object,default:function(){return{}}},loadingState:{type:Object,default:function(){return{}}},tempRightFileId:{type:String,default:""}},mounted:function(){this.rightMenuEl=this.$refs["right-menu"],this.fileItemeEL=this.$refs["file"],this.workspaceEl=document.querySelector("#workspace"),this.fileImgEl=this.$refs["file-img"],this.fileImgClass=this.fileImgEl.className},data:function(){return{isClient:a["a"].isClient,currentUserId:sessionStorage.userId,WORKING:F,NOT_WORKING:M,DOWNLOADING:_,UPLOADING:D,imgExtensionList:T,RecExtensionList:P,VideoExtensionList:I,office:A,filePreviewList:O,isFileRightMenuVisible:!1,fileRightMenuLeft:0,fileRightMenuTop:0,rightMenuEl:null,fileItemEl:null,workspaceEl:null,fileImgEl:null,fileImgClass:""}},computed:{fileStoreKey:function(){var t=this.file,e=t.nodeName;t.extension,t.archName,t.relativePath,e?"".concat(e,"\\协作文件"):this.nodeFolder.folderName;return Object(V["f"])(this.file,this.nodeFolder)},isInWorkFolder:function(){var t=this.file;this.currentFolder;return t.folderId===this.nodeFolder.id},isLocalIpfsCidValidate:function(){return!!this.localFileHashMap},localIpfsCid:function(){return this.localFileHashMap&&this.localFileHashMap[this.fileStoreKey]},isWorking:function(){return this.file.workStatus===F},showDownloadMask:function(){return!this.fileIsLoading&&(this.isInWorkFolder?!this.fileInLocal||!this.isFileModified&&(!this.isFileNeedsUpdate&&(this.isInWorkFolder&&this.isFileNeedsUpdate)):!this.fileInLocal)},isFileRemoteUpdate:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0];n[1];return e&&r!==t},isFileNeedsUpdate:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0],a=n[1];return e&&r!==t&&"0"==a},isFileModified:function(){this.file.ipfsCid;var t=this.localIpfsCid,e=t.split(";"),i=Object(s["a"])(e,2),n=(i[0],i[1]);return t&&"1"==n},localFileIsLatest:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0],a=n[1];return e&&r===t&&"0"==a},fileIsDifferent:function(){var t=this.file.ipfsCid,e=this.localIpfsCid,i=e.split(";"),n=Object(s["a"])(i,2),r=n[0],a=n[1];return e&&"1"==a||e&&r!==t},fileIsLoading:function(){return this.loadingState.type===D||this.loadingState.type===_},fileInLocal:function(){return!!this.localIpfsCid}},methods:{commitFile:function(){this.$emit("commitFile",this.file,this.fileImgClass)},oneOf:E,openFileWith:function(){this.isFileRightMenuVisible=!1,this.$emit("openFileWith")},dblclickFile:function(){this.isClient&&this.isLocalIpfsCidValidate?this.$emit("dblclickFile"):this.isClient||this.filePreview()},fileRightBtnClick:function(t){var e=this;!this.isLocalIpfsCidValidate&&this.isClient||(this.isFileRightMenuVisible=!0,this.$nextTick((function(){e.rightMenuEl=e.$refs["right-menu"],e.fileItemEl=e.$refs["file"];var i=e.fileItemEl.getBoundingClientRect(),n=e.workspaceEl.clientHeight,r=e.workspaceEl.clientWidth,s=e.rightMenuEl.clientHeight,a=e.rightMenuEl.clientWidth,o=document.body.clientHeight,l=document.body.clientWidth-128;e.fileRightMenuLeft=t.clientX-i.left,e.fileRightMenuTop=t.clientY-i.top;var c=e.isInWorkFolder&&t.clientX+a>r,u=e.isInWorkFolder&&t.clientY+s>n,h=t.clientX+a>l,d=t.clientY+s>o;(c||h)&&(e.fileRightMenuLeft=e.fileRightMenuLeft-a),(u||d)&&(e.fileRightMenuTop=e.fileRightMenuTop-s),e.$emit("oneFileRightBtnClick",e.file.id)})))},closeFileRightMenu:function(){this.isFileRightMenuVisible=!1},openfileBtnClick:function(){this.isFileRightMenuVisible=!1,this.$emit("openfileBtnClick",this.file)},copyFileBtnClick:function(){this.isFileRightMenuVisible=!1,this.$emit("copyFileBtnClick",this.file)},deleteFileClick:function(){this.isFileRightMenuVisible=!1,this.$emit("deleteFileClick",this.file.id,this.file.createUserId,this.file.archName,this.file.ipfsCid)},checkMilestoneClick:function(){this.isFileRightMenuVisible=!1,this.$emit("checkMilestoneClick",this.file)},filePreview:function(){var t;t=E(this.file.extension,I)?1:E(this.file.extension,O)?2:0,this.$emit("filePreview",this.file,t),this.isFileRightMenuVisible=!1}},watch:{isFileRightMenuVisible:function(t){t?document.body.addEventListener("click",this.closeFileRightMenu):document.body.removeEventListener("click",this.closeFileRightMenu)},tempRightFileId:function(t){this.isFileRightMenuVisible=t===this.file.id}}},B=L,j=(i("e996"),i("51c6"),Object(y["a"])(B,n,r,!1,null,"31749f17",null));e["a"]=j.exports},"745f":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isShowCommitJudgeWindow?i("div",[i("div",{staticClass:"blur-bg"}),i("div",{staticClass:"commit-judge-box"},[i("div",{staticClass:"commit-wrap"},[i("div",{staticClass:"title-bar"},[t._m(0),i("div",{staticClass:"close-icon"},[i("close-btn",{attrs:{isCloseHover:t.isCommitCloseHover},on:{mouseEnterNow:function(e){t.isCommitCloseHover=!0},mouseLeaveNow:function(e){t.isCommitCloseHover=!1}},nativeOn:{click:function(e){return e.stopPropagation(),t.closeCommitJudge(e)}}})],1)]),i("div",{staticClass:"commit-operate-box"},[i("div",{staticClass:"file-info"},[i("div",{staticClass:"file-img",class:t.fileImgClass}),i("div",{staticClass:"file-name",attrs:{title:t.file.archName}},[t._v(t._s(t.file.archName))])]),i("div",{staticClass:"commit-part"},[i("div",{staticClass:"milestone-wrap"},[i("el-switch",{staticClass:"milestone-switch",attrs:{width:t.switchWidth,"active-color":"#7850FF ","inactive-color":"#C9C9CC"},model:{value:t.isMileStone,callback:function(e){t.isMileStone=e},expression:"isMileStone"}}),i("div",{staticClass:"milestone-logo"}),i("div",{staticClass:"milestone-tips"},[t._v("定义为里程碑文件")])],1),i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.remarkContent,expression:"remarkContent"}],staticClass:"remark-content",attrs:{name:"",id:"",placeholder:"创建备注"},domProps:{value:t.remarkContent},on:{input:function(e){e.target.composing||(t.remarkContent=e.target.value)}}}),i("div",{staticClass:"operate-btn"},[i("div",{staticClass:"cancel-btn",on:{click:function(e){return e.stopPropagation(),t.closeCommitJudge(e)}}},[t._v("取消")]),i("div",{staticClass:"commit-btn",on:{click:function(e){return e.stopPropagation(),t.finishCommitFile(e)}}},[t._v("完成提交")])])])])]),t._e(),t.isShowCoopWindow?i("div",{staticClass:"coop-wrap",class:{"mt-16":t.isShowCoopWindow}},[i("div",{staticClass:"title-bar"},[i("div",[t._v("文件协同至")]),i("div",{staticClass:"close-icon"},[i("close-btn",{attrs:{isCloseHover:t.isCoopCloseHover},on:{mouseEnterNow:function(e){t.isCoopCloseHover=!0},mouseLeaveNow:function(e){t.isCoopCloseHover=!1}},nativeOn:{click:function(e){return e.stopPropagation(),t.closeCoopWindow(e)}}})],1)]),i("div",{staticClass:"coop-people-list"},t._l(t.coopFolderList,(function(e){return i("div",{key:e.id,staticClass:"folder-item"},[i("div",{staticClass:"work-name"},[t._v(t._s(e.folderName))]),i("div",{staticClass:"use-flex ml-4"},[t._l(e.manageUser,(function(t){return i("people-item",{key:t.id,staticClass:"mr-8",attrs:{user:t}})})),0==e.manageUser.length?i("people-item",{attrs:{isShowEmptyAvatar:!0}}):t._e(),i("div",{staticClass:"vertical-line"}),i("div",{staticClass:"flex-1"},t._l(e.listUser,(function(t){return i("people-item",{key:t.id,attrs:{user:t}})})),1)],2)])})),0)]):t._e()])]):t._e()},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"left-title"},[i("div",{staticClass:"status-icon"}),i("div",{staticClass:"title-text"},[t._v("提交文件")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("img",{staticClass:"look-icon",attrs:{src:"/static/img/下拉箭头白色.svg"}})])}],s=i("f8c2"),a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"people-item",attrs:{title:t.user.cnName}},[i("div",{staticClass:"people-wrap",class:{"rt-0":t.isShowManagerMark}},[i("div",{staticClass:"people"},[Object.keys(t.user).length>0?i("img",{staticClass:"proj-avatarface",class:{"manager-mark":t.isShowManagerMark},attrs:{src:t._f("resolveAvator")(t.user.headImgUrl),alt:""}}):t.isShowEmptyAvatar?i("img",{staticClass:"proj-avatarface empty",attrs:{src:"/static/img/暂无2.svg",alt:""}}):i("div",{staticClass:"add-btn"},[i("i",{staticClass:"el-icon-plus proj-avatarface"})])]),i("div",{staticClass:"people-name",class:{"rt-2":t.isEnterEdit&&t.isShowManagerMark,"rt-4":t.isEnterEdit&&!t.isShowManagerMark}},[t._v(t._s(t.user.cnName))])])])},o=[],l={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=l,u=(i("648a"),i("2877")),h=Object(u["a"])(c,a,o,!1,null,"6e81672d",null),d=h.exports,p={data:function(){return{isCommitCloseHover:!1,isCoopCloseHover:!1,isShowCoopWindow:!1,isMileStone:!1,remarkContent:"",switchWidth:52}},components:{CloseBtn:s["a"],PeopleItem:d},mounted:function(){},props:{file:{type:Object,default:function(){return{}}},isShowCommitJudgeWindow:{type:Boolean,default:!1},coopFolderList:{type:Array,default:function(){return[]}},fileImgClass:{type:String,default:""}},methods:{closeCommitJudge:function(){this.$emit("closeCommitJudge"),this.isShowCoopWindow=!1},finishCommitFile:function(){this.$emit("finishCommitFile")},lookCoopTargetClick:function(){this.isShowCoopWindow=!0},closeCoopWindow:function(){this.isShowCoopWindow=!1}}},f=p,m=(i("ddbe"),i("bde5"),Object(u["a"])(f,n,r,!1,null,"447c10a7",null));e["a"]=m.exports},"76ae":function(t,e,i){"use strict";var n=i("e9b0"),r=i.n(n);r.a},7951:function(t,e,i){},"7d48":function(t,e,i){"use strict";var n=i("cdec");t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(t){var n=t;return e&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=r(window.location.href),function(e){var i=n.isString(e)?r(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}()},8005:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"folder",staticClass:"yiyun_wenjian_list lisy-group-item",on:{contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),t.showRightMenu(e)}}},[i("div",{staticClass:"defultImage-mid foldernew-mid"}),i("strong",{staticClass:"yiyunwenjian_name",attrs:{title:t.folder.folderName}},[t._v(t._s(t.folder.folderName))]),i("strong",{staticClass:"visontext"},[t._v(t._s(t.childNumUnderFolder)+"个项目")]),t.isClient?[t.isWorkFolder?i("div",{staticClass:"yijianxietong isonselect"},[i("i",{staticClass:"icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon",on:{click:t.commitFolder}})]):t._e(),t.isLoading?i("div",{staticClass:"downloadIcon"},[i("img",{staticClass:"keep-sync",attrs:{src:"/static/img/保存同步.svg",alt:""}})]):t._e()]:t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:t.rightMenuVisible,expression:"rightMenuVisible"}],ref:"right-menu",staticClass:"contextmenu",style:{top:t.rightMenuTop+"px",left:t.rightMenuLeft+"px"}},[i("ul",{staticClass:"rightMenu folderRightMenu"},[t.isClient?i("li",{on:{click:function(e){return e.stopPropagation(),t.downloadFolder(e)}}},[t._v("从云端更新")]):t._e()])])],2)},r=[],s=(i("c975"),i("b0c0"),i("1d40")),a={components:{},props:{folder:{type:Object,default:function(){return{}}},activeRightMenuId:String,isLoading:{type:Boolean,default:!1},isWorkFolder:{type:Boolean,default:!0},localFileHashMap:{type:Object,default:function(){return{}}},filterFileList:{type:Array,default:function(){return[]}},filterFolderList:{type:Array,default:function(){return[]}}},data:function(){return{isClient:s["a"].isClient,rightMenuVisible:!1,rightMenuLeft:0,rightMenuTop:0,rightMenuEl:null,folderItemEl:null,workspaceEl:null}},computed:{childNumUnderFolder:function(){return this.filterFileList.length+this.filterFolderList.length}},methods:{showRightMenu:function(t){var e=this;this.rightMenuVisible=!0,this.$nextTick((function(){e.rightMenuEl=e.$refs["right-menu"],e.folderItemEl=e.$refs["folder"];var i=!1;e.workspaceEl=document.querySelector("#workspace");var n=e.workspaceEl.clientHeight,r=e.workspaceEl.clientWidth;e.$route.name.indexOf("workspace")>=0&&(i=!0);var s=e.folderItemEl.getBoundingClientRect(),a=e.rightMenuEl.clientHeight,o=e.rightMenuEl.clientWidth,l=document.body.clientHeight,c=document.body.clientWidth-128;e.rightMenuLeft=t.clientX-s.left,e.rightMenuTop=t.clientY-s.top;var u=e.isWorkFolder&&t.clientX+o>r,h=e.isWorkFolder&&t.clientY+a>n,d=t.clientX+o>c,p=t.clientY+a>l;(u&&i||d)&&(e.rightMenuLeft=e.rightMenuLeft-o),(h&&i||p)&&(e.rightMenuTop=e.rightMenuTop-a),e.$emit("onRightMenuActive",e.folder.id)}))},downloadFolder:function(){this.$emit("onDownloadAll",this.folder)},closeRightMenu:function(){this.rightMenuVisible=!1},commitFolder:function(t){t.stopPropagation(),t.preventDefault(),this.$emit("commitFolder",this.folder)},deleteFolderClick:function(){this.$emit("deleteFolderClick",this.folder.id),this.closeRightMenu()}},watch:{rightMenuVisible:function(t){t?document.body.addEventListener("click",this.closeRightMenu):document.body.removeEventListener("click",this.closeRightMenu)},activeRightMenuId:function(t){this.rightMenuVisible=t===this.folder.id}}},o=a,l=(i("ba12"),i("2877")),c=Object(l["a"])(o,n,r,!1,null,"047996e3",null);e["a"]=c.exports},"827b":function(t,e,i){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},"841c":function(t,e,i){"use strict";var n=i("d784"),r=i("825a"),s=i("1d80"),a=i("129f"),o=i("14c3");n("search",1,(function(t,e,i){return[function(e){var i=s(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i):new RegExp(e)[t](String(i))},function(t){var n=i(e,t,this);if(n.done)return n.value;var s=r(t),l=String(this),c=s.lastIndex;a(c,0)||(s.lastIndex=0);var u=o(s,l);return a(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},"84a3":function(t,e,i){"use strict";(function(e){var n=i("cdec"),r=i("fc6b"),s={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function o(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=i("3c68")),t}var l={adapter:o(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){l.headers[t]=n.merge(s)})),t.exports=l}).call(this,i("4362"))},8957:function(t,e,i){},9133:function(t,e,i){"use strict";var n=i("e7e6");t.exports=function(t,e,i){var r=i.config.validateStatus;!r||r(i.status)?t(i):e(n("Request failed with status code "+i.status,i.config,null,i.request,i))}},"94f1":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;"undefined"!==typeof navigator&&function(t,e){__WEBPACK_AMD_DEFINE_RESULT__=function(){return e(t)}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(window||{},(function(window){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};function ProjectInterface(){return{}}(function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1==e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+i[t]+i[e]+i[n]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t].length,n=0;n0||t>-1e-6&&t<0?n(t*e)/e:t}function E(){var t=this.props,e=O(t[0]),i=O(t[1]),n=O(t[4]),r=O(t[5]),s=O(t[12]),a=O(t[13]);return"matrix("+e+","+i+","+n+","+r+","+s+","+a+")"}return function(){this.reset=r,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=u,this.skewFromAxis=h,this.shear=c,this.scale=d,this.setTransform=p,this.translate=f,this.transform=m,this.applyToPoint=x,this.applyToX=S,this.applyToY=C,this.applyToZ=k,this.applyToPointArray=I,this.applyToTriplePoints=P,this.applyToPointStringified=_,this.toCSS=A,this.to2dCSS=E,this.clone=y,this.cloneFromProps=b,this.equals=g,this.inversePoints=T,this.inversePoint=V,this.getInverseMatrix=w,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();(function(t,e){var i,n=this,r=256,s=6,a=52,o="random",l=e.pow(r,s),c=e.pow(2,a),u=2*c,h=r-1;function d(i,n,a){var h=[];n=!0===n?{entropy:!0}:n||{};var d=v(m(n.entropy?[i,y(t)]:null===i?g():i,3),h),b=new p(h),x=function(){var t=b.g(s),e=l,i=0;while(t=u)t/=2,e/=2,i>>>=1;return(t+i)/e};return x.int32=function(){return 0|b.g(4)},x.quick=function(){return b.g(4)/4294967296},x.double=x,v(y(b.S),t),(n.pass||a||function(t,i,n,r){return r&&(r.S&&f(r,b),t.state=function(){return f(b,{})}),n?(e[o]=t,i):t})(x,d,"global"in n?n.global:this==e,n.state)}function p(t){var e,i=t.length,n=this,s=0,a=n.i=n.j=0,o=n.S=[];i||(t=[i++]);while(s0?i=l:e=l}while(Math.abs(o)>s&&++c=r?v(t,h,e,i):0===d?h:m(t,s,s+l,e,i)}},t}();function extendPrototype(t,e){var i,n,r=t.length;for(i=0;i-.001&&a<.001}function e(e,i,n,r,s,a,o,l,c){if(0===n&&0===a&&0===c)return t(e,i,r,s,o,l);var u,h=Math.sqrt(Math.pow(r-e,2)+Math.pow(s-i,2)+Math.pow(a-n,2)),d=Math.sqrt(Math.pow(o-e,2)+Math.pow(l-i,2)+Math.pow(c-n,2)),p=Math.sqrt(Math.pow(o-r,2)+Math.pow(l-s,2)+Math.pow(c-a,2));return u=h>d?h>p?h-d-p:p-d-h:p>d?p-d-h:d-h-p,u>-1e-4&&u<1e-4}var i=function(){return function(t,e,i,n){var r,s,a,o,l,c,u=defaultCurveSegments,h=0,d=[],p=[],f=bezier_length_pool.newElement();for(a=i.length,r=0;ra?-1:1,c=!0;while(c)if(n[s]<=a&&n[s+1]>a?(o=(a-n[s])/(n[s+1]-n[s]),c=!1):s+=l,s<0||s>=r-1){if(s===r-1)return i[s];c=!1}return i[s]+(i[s+1]-i[s])*o}function l(t,e,i,n,r,s){var a=o(r,s),l=1-a,c=Math.round(1e3*(l*l*l*t[0]+(a*l*l+l*a*l+l*l*a)*i[0]+(a*a*l+l*a*a+a*l*a)*n[0]+a*a*a*e[0]))/1e3,u=Math.round(1e3*(l*l*l*t[1]+(a*l*l+l*a*l+l*l*a)*i[1]+(a*a*l+l*a*a+a*l*a)*n[1]+a*a*a*e[1]))/1e3;return[c,u]}var c=createTypedArray("float32",8);function u(t,e,i,n,r,s,a){r=r<0?0:r>1?1:r;var l=o(r,a);s=s>1?1:s;var u,h=o(s,a),d=t.length,p=1-l,f=1-h,m=p*p*p,v=l*p*p*3,g=l*l*p*3,y=l*l*l,b=p*p*f,x=l*p*f+p*l*f+p*p*h,S=l*l*f+p*l*h+l*p*h,C=l*l*h,k=p*f*f,w=l*f*f+p*h*f+p*f*h,V=l*h*f+p*h*h+l*f*h,T=l*h*h,P=f*f*f,I=h*f*f+f*h*f+f*f*h,_=h*h*f+f*h*h+h*f*h,A=h*h*h;for(u=0;u=0;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)n(t[e].ks.k);else for(s=t[e].ks.k.length,r=0;ri[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&void 0))}var s=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,n=t.length;for(i=0;i=0;i-=1)if("sh"==t[i].ty){if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,n=0;n0&&(u=!1),u){var h=createTag("style");h.setAttribute("f-forigin",n[i].fOrigin),h.setAttribute("f-origin",n[i].origin),h.setAttribute("f-family",n[i].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+n[i].fFamily+"; font-style: normal; src: url('"+n[i].fPath+"');}",e.appendChild(h)}}else if("g"===n[i].fOrigin||1===n[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c=l.t-a){o.h&&(o=l),m=0;break}if(l.t-a>t){m=v;break}v=x||t=x?C.points.length-1:0;for(u=C.points[k].point.length,c=0;c=T&&V=x)i[0]=b[0],i[1]=b[1],i[2]=b[2];else if(t<=S)i[0]=o.s[0],i[1]=o.s[1],i[2]=o.s[2];else{var E=s(o.s),D=s(b),F=(t-S)/(x-S);r(i,n(E,D,F))}else for(v=0;v=x?h=1:t1e-6?(n=Math.acos(r),s=Math.sin(n),a=Math.sin((1-i)*n)/s,o=Math.sin(i*n)/s):(a=1-i,o=i),l[0]=a*c+o*p,l[1]=a*u+o*f,l[2]=a*h+o*m,l[3]=a*d+o*v,l}function r(t,e){var i=e[0],n=e[1],r=e[2],s=e[3],a=Math.atan2(2*n*s-2*i*r,1-2*n*n-2*r*r),o=Math.asin(2*i*n+2*r*s),l=Math.atan2(2*i*s-2*n*r,1-2*i*i-2*r*r);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}function s(t){var e=t[0]*degToRads,i=t[1]*degToRads,n=t[2]*degToRads,r=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(n/2),o=Math.sin(e/2),l=Math.sin(i/2),c=Math.sin(n/2),u=r*s*a-o*l*c,h=o*l*a+r*s*c,d=o*s*a+r*l*c,p=r*l*a-o*s*c;return[h,d,p,u]}function a(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function o(t){var i;if("unidimensional"===this.propType)i=t*this.mult,e(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else{var n=0,r=this.v.length;while(n1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}}function l(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],n=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(i[0]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),n[0]=s.getValueAtTime(s.keyframes[0].t/r,0),n[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(i[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),n[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[s.pv,a.pv],n[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=n=t;this.v.rotate(-Math.atan2(i[1]-n[1],i[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function r(){}function s(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function a(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var n,r=e.or.k.length;for(n=0;n=this._maxLength&&this.doubleArrayLength(),i){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break}(!s[n]||s[n]&&!r)&&(s[n]=point_pool.newElement()),s[n][0]=t,s[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,n,r,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,n,"o",a,o),this.setXYAt(r,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,n=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),r=1);var s,a=this._length-1,o=this._length;for(s=r;s=p[p.length-1].t-this.offsetTime)n=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],s=!0;else{var f,m,v=d,g=p.length-1,y=!0;while(y){if(f=p[v],m=p[v+1],m.t-this.offsetTime>t)break;v=m.t-this.offsetTime)u=1;else if(tn&&e>n)||(this._caching.lastIndex=r=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],c=s.length;for(a=0;an+i);else u=o.s*r<=n?0:(o.s*r-n)/i,h=o.e*r>=n+i?1:(o.e*r-n)/i,l.push([u,h])}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?1:this.s.v<0?0:this.s.v)+r,i=(this.e.v>1?1:this.e.v<0?0:this.e.v)+r,e>i){var s=e;e=i,i=s}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var a,o,l,c,u,h,d=this.shapes.length,p=0;if(i===e)for(a=0;a=0;a-=1)if(f=this.shapes[a],f.shape._mdf){for(m=f.localShapeCollection,m.releaseShapes(),2===this.m&&d>1?(g=this.calculateShapeEdges(e,i,f.totalShapeLength,x,p),x+=f.totalShapeLength):g=[[y,b]],l=g.length,o=0;o=1?v.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(v.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),v.push({s:0,e:f.totalShapeLength*(b-1)}));var S=this.addShapes(f,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var C=f.shape.paths.shapes[f.shape.paths._length-1];if(C.c){var k=S.pop();this.addPaths(S,m),S=this.addShapes(f,v[1],k)}else this.addPaths(S,m),S=this.addShapes(f,v[1])}this.addPaths(S,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var i,n=t.length;for(i=0;ie.e){i.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[r],d[n].v[r],i,o,v),v=!1):(c=bez.getNewSegment(d[n].v[r-1],d[n].v[r],d[n].o[r-1],d[n].i[r],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,l[r-1]),this.addSegmentFromArray(c,i,o,v),v=!1,i.c=!1),f+=a.addedLength,o+=1}if(d[n].c&&l.length){if(a=l[r-1],f<=e.e){var g=l[r-1].addedLength;e.s<=f&&e.e>=f+g?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[0],d[n].v[0],i,o,v),v=!1):(c=bez.getNewSegment(d[n].v[r-1],d[n].v[0],d[n].o[r-1],d[n].i[0],(e.s-f)/g,(e.e-f)/g,l[r-1]),this.addSegmentFromArray(c,i,o,v),v=!1,i.c=!1)}else i.c=!1;f+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[u][0],i.v[u][1],"i",u),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;n0)i-=1,this._elements.unshift(e[i]),1;this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(c):Math.ceil(c),d=(this.tr.v.props,this.pMatrix.props),p=this.rMatrix.props,f=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m,v,g=0;if(c>0){while(gh)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),g-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),g-=u)}n=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,s=this._currentCopies;while(s){if(e=this.elemsData[n].it,i=e[e.length-1].transform.mProps.v.props,v=i.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==g){for((0!==n&&1===r||n!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),m=0;m.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s){var t=0,e=this.data.k.k.length;while(t=o+lt||!f?(y=(o+lt-c)/l.partialLength,$=p.point[0]+(l.point[0]-p.point[0])*y,N=p.point[1]+(l.point[1]-p.point[1])*y,w.translate(-S[0]*P[r].an/200,-S[1]*M/100),u=!1):f&&(c+=l.partialLength,h+=1,h>=f.length&&(h=0,d+=1,m[d]?f=m[d].points:x.v.c?(h=0,d=0,f=m[d].points):(c-=l.partialLength,f=null)),f&&(p=l,l=f[h],v=l.partialLength));j=P[r].an/2-P[r].add,w.translate(-j,0,0)}else j=P[r].an/2-P[r].add,w.translate(-j,0,0),w.translate(-S[0]*P[r].an/200,-S[1]*M/100,0);for(P[r].l/2,E=0;E1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;var n,r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(n=0;ne)break;i+=1}return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){var e,i=FontManager.getCombinedCharacterCodes(),n=[],r=0,s=t.length;while(r=55296&&e<=56319?(e=t.charCodeAt(r+1),e>=56320&&e<=57343?(n.push(t.substr(r,2)),++r):n.push(t.charAt(r))):n.push(t.charAt(r)),r+=1;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,n,r,s,a,o,l,c=this.elem.globalData.fontManager,u=this.data,h=[],d=0,p=u.m.g,f=0,m=0,v=0,g=[],y=0,b=0,x=c.getFontByName(t.f),S=0,C=x.fStyle?x.fStyle.split(" "):[],k="normal",w="normal";for(i=C.length,e=0;eA&&" "!==I[e]?(-1===E?i+=1:e=E,P+=t.finalLineHeight||1.2*t.finalSize,I.splice(e,E===e?1:0,"\r"),E=-1,y=0):(y+=S,y+=T);P+=x.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Ob?y:b,y=-2*T,r="",n=!0,v+=1):r=D,c.chars?(o=c.getCharData(D,x.fStyle,c.getFontByName(t.f).fFamily),S=n?0:o.w*t.finalSize/100):S=c.measureText(r,t.f,t.finalSize)," "===D?F+=S+T:(y+=S+T+F,F=0),h.push({l:S,an:S,add:f,n:n,anIndexes:[],val:r,line:v,animatorJustifyOffset:0}),2==p){if(f+=S,""===r||" "===r||e===i-1){""!==r&&" "!==r||(f-=S);while(m<=e)h[m].an=f,h[m].ind=d,h[m].extra=S,m+=1;d+=1,f=0}}else if(3==p){if(f+=S,""===r||e===i-1){""===r&&(f-=S);while(m<=e)h[m].an=f,h[m].ind=d,h[m].extra=S,m+=1;f=0,d+=1}}else h[d].ind=d,h[d].extra=0,d+=1;if(t.l=h,b=y>b?y:b,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=b,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var M,L,B=u.a;a=B.length;var j,$,N=[];for(s=0;s0?r=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(r,s,a,o).get,c=0,u=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)c=h===u?n>=h?1:0:t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c=l(c);else if(3===d)c=h===u?n>=h?0:1:1-t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c=l(c);else if(4===d)h===u?c=0:(c=t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c<.5?c*=2:c=1-2*(c-.5)),c=l(c);else if(5===d){if(h===u)c=0;else{var p=h-u;n=e(t(0,n+.5-u),h-u);var f=-p/2+n,m=p/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===d?(h===u?c=0:(n=e(t(0,n+.5-u),h-u),c=(1+Math.cos(Math.PI+2*Math.PI*n/(h-u)))/2),c=l(c)):(n>=i(u)&&(c=t(0,e(n-u<0?e(h,1)-(u-n):h-n,1))),c=l(c));return c*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,n=this.s.v/e+i,r=this.e.v/e+i;if(n>r){var s=n;n=r,r=s}this.finalS=n,this.finalE=r}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:r}}(),pool_factory=function(){return function(t,e,i,n){var r=0,s=t,a=createSizedArray(s),o={newElement:l,release:c};function l(){var t;return r?(r-=1,t=a[r]):t=e(),t}function c(t){r===s&&(a=pooling.double(a),s*=2),i&&i(t),a[r]=t,r+=1}return o}}(),pooling=function(){function t(t){return t.concat(createSizedArray(t.length))}return{double:t}}(),point_pool=function(){function t(){return createTypedArray("float32",2)}return pool_factory(8,t)}(),shape_pool=function(){function t(){return new ShapePath}function e(t){var e,i=t._length;for(e=0;e0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(y,"url("+locationHref+"#"+v+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;var n=0,r=t.length;while(n=0;e--)this.elements[e]||(i=this.layers[e],i.ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t)}return this.createNull(t)},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;ei&&"meet"===s||ni&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(ni&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(n>i&&"meet"===s||ni&&"meet"===s||n=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRenderer.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRenderer.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([BaseRenderer],HybridRenderer),HybridRenderer.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRenderer.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}},HybridRenderer.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var n=this.layers[e];if(n.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{var r,s,a,o=0;while(o=t)return this.threeDElements[e].perspectiveElem;e+=1}},HybridRenderer.prototype.createThreeDContainer=function(t,e){var i=createTag("div");styleDiv(i);var n=createTag("div");styleDiv(n),"3d"===e&&(i.style.width=this.globalData.compSize.w+"px",i.style.height=this.globalData.compSize.h+"px",i.style.transformOrigin=i.style.mozTransformOrigin=i.style.webkitTransformOrigin="50% 50%",n.style.transform=n.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"),i.appendChild(n);var r={container:n,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(r),r},HybridRenderer.prototype.build3dContainers=function(){var t,e,i=this.layers.length,n="";for(t=0;t=0;t--)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(t,e){var i=0,n=this.threeDElements.length;while(ia?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,n=(s-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,n=0),this.resizerElem.style.transform=this.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+n+",0,1)"},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,n=this.threeDElements.length;for(t=0;t1&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",a)),i.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,n=this.dynamicProperties.length;for(i=0;it?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t0)l=n.transformers[m].mProps._mdf||l,f--,m--;if(l){f=g-n.styles[u].lvl,m=n.transformers.length-1;while(f>0)p=n.transformers[m].mProps.v.props,d.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),f--,m--}}else d=t;if(h=n.sh.paths,a=h._length,l){for(o="",s=0;s=1?.99:e.h.v<=-1?-.99:e.h.v,b=o*y,x=Math.cos(g+e.a.v)*b+u[0],S=Math.sin(g+e.a.v)*b+u[1];l.setAttribute("fx",x),l.setAttribute("fy",S),c&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",S))}}function c(t,e,i){var n=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(n.pElem.setAttribute("stroke-dasharray",r.dashStr),n.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&n.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return i}();function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVShapeData(t,e,i,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;"rc"==e.ty?r=5:"el"==e.ty?r=6:"sr"==e.ty&&(r=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,r,t);var s,a,o=i.length;for(s=0;s=0;n-=1)i=t.transforms[n].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=s},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e=0;t-=1)this.shapeModifiers[t].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"bevel"},searchProcessedElement:function(t){var e=this.processedElements,i=0,n=e.length;while(i=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this.audio.volume(t)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextElement),SVGTextElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextElement.prototype.buildTextContents=function(t){var e=0,i=t.length,n=[],r="";while(et?this.textSpans[t]:createNS(l?"path":"text"),b<=t&&(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=a,this.layerElement.appendChild(a)),a.style.display="inherit"),u.reset(),u.scale(i.finalSize/100,i.finalSize/100),d&&(o[t].n&&(p=-v,f+=i.yOffset,f+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(i,u,o[t].line,p,f),p+=o[t].l||0,p+=v),l?(y=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily),g=y&&y.data||{},c=g.shapes?g.shapes[0].it:[],d?h+=this.createPathShape(u,c):a.setAttribute("d",this.createPathShape(u,c))):(d&&a.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));d&&a&&a.setAttribute("d",h)}else{var x=this.textContainer,S="start";switch(i.j){case 1:S="end";break;case 2:S="middle";break}x.setAttribute("text-anchor",S),x.setAttribute("letter-spacing",v);var C=this.buildTextContents(i.finalText);for(e=C.length,f=i.ps?i.ps[1]+i.ascent:0,t=0;t1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(d=this.searchProcessedElement(t[o]),d?e[o]=i[d-1]:t[o]._render=a,"fl"==t[o].ty||"st"==t[o].ty||"gf"==t[o].ty||"gs"==t[o].ty)d?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],r),t[o]._render&&n.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"==t[o].ty){if(d)for(c=e[o].it.length,l=0;l=u?f<0?n:r:n+p*Math.pow((s-t)/f,1/i),h[d++]=a,o+=256/(l-1);return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(n),s=i*Math.sin(n);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGEffects(t){var e,i,n=t.data.ef?t.data.ef.length:0,r=createElementID(),s=filtersFactory.createFilter(r),a=0;for(this.filters=[],e=0;eo&&"xMidYMid slice"===l||a=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,n,r=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),t=0;t=0;s-=1){if(l=this.searchProcessedElement(t[s]),l?e[s]=i[l-1]:t[s]._shouldRender=n,"fl"==t[s].ty||"st"==t[s].ty||"gf"==t[s].ty||"gs"==t[s].ty)l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],f),d.push(e[s].style);else if("gr"==t[s].ty){if(l)for(o=e[s].it.length,a=0;a=0;r-=1)"tr"==e[r].ty?(s=i[r].transform,this.renderShapeTransform(t,s)):"sh"==e[r].ty||"el"==e[r].ty||"rc"==e[r].ty||"sr"==e[r].ty?this.renderPath(e[r],i[r]):"fl"==e[r].ty?this.renderFill(e[r],i[r],s):"st"==e[r].ty?this.renderStroke(e[r],i[r],s):"gf"==e[r].ty||"gs"==e[r].ty?this.renderGradientFill(e[r],i[r],s):"gr"==e[r].ty?this.renderShape(s,e[r].it,i[r].it):e[r].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,n,r,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var l=t.transforms.finalTransform;for(r=0;r=1?.99:e.h.v<=-1?-.99:e.h.v,u=o*c,h=Math.cos(l+e.a.v)*u+s[0],d=Math.sin(l+e.a.v)*u+s[1],p=r.createRadialGradient(h,d,0,s[0],s[1],o);var f,m=t.g.p,v=e.g.c,g=1;for(f=0;f=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),a=[r[0]/s,r[1]/s,r[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var h;for(e=this.comp.threeDElements.length,t=0;t=0;i-=1)e[i].animation.destroy(t)}function w(t,e,i){var n,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=r.length;for(n=0;nthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,n=this.animationData.layers,r=n.length,s=t.layers,a=s.length;for(i=0;ithis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.goToAndStop=function(t,e,i){i&&this.name!=i||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,i){this.goToAndStop(t,e,i),this.play()},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===typeof t[0]){var i,n=t.length;for(i=0;ii){var n=i;i=e,e=n}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"===typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,n=Math.min(t.length,e.length),r=0;for(i=0;i.5?c/(2-a-o):c/(a+o),a){case n:e=(r-s)/c+(r1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,n,r=t[0],s=t[1],a=t[2];if(0===s)e=i=n=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,r+1/3),i=hue2rgb(l,o,r),n=hue2rgb(l,o,r-1/3)}return[e,i,n,t[3]]}function linear(t,e,i,n,r){if(void 0!==n&&void 0!==r||(n=e,r=i,e=0,i=1),i=i)return r;var a=i===e?0:(t-e)/(i-e);if(!n.length)return n+(r-n)*a;var o,l=n.length,c=createTypedArray("float32",l);for(o=0;o1){for(n=0;n1?1:e<0?0:e;var a=t(e);if($bm_isInstanceOfArray(r)){var o,l=r.length,c=createTypedArray("float32",l);for(o=0;odata.k[e].t&&tdata.k[e+1].t-t?(i=e+2,n=data.k[e+1].t):(i=e+1,n=data.k[e].t);break}}-1===i&&(i=e+1,n=data.k[e].t)}else i=0,n=0;var s={};return s.index=i,s.time=n/elem.comp.globalData.frameRate,s}function key(t){var e,i,n;if(!data.k.length||"number"===typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var r=data.k[t].hasOwnProperty("s")?data.k[t].s:data.k[t-1].e;for(n=r.length,i=0;ic.length-1)&&(e=c.length-1),r=c[c.length-1-e].t,n=u-r),"pingpong"===t){var h=Math.floor((l-r)/n);if(h%2!==0)return this.getValueAtTime((n-(l-r)%n+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(r/this.comp.globalData.frameRate,0),p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-r)%n+r)/this.comp.globalData.frameRate,0),m=Math.floor((l-r)/n);if(this.pv.length){for(o=new Array(d.length),a=o.length,s=0;s=u)return this.pv;if(i?(n=e?Math.abs(elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-u),r=u+n):((!e||e>c.length-1)&&(e=c.length-1),r=c[e].t,n=r-u),"pingpong"===t){var h=Math.floor((u-l)/n);if(h%2===0)return this.getValueAtTime(((u-l)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(r/this.comp.globalData.frameRate,0),f=this.getValueAtTime((n-(u-l)%n+u)/this.comp.globalData.frameRate,0),m=Math.floor((u-l)/n)+1;if(this.pv.length){for(o=new Array(d.length),a=o.length,s=0;s1?(a-s)/(e-1):1,l=0,c=0;i=this.pv.length?createTypedArray("float32",this.pv.length):0;while(la){var u=o,h=i.c&&o===l-1?0:o+1,d=(a-c)/s[o].addedLength;n=bez.getPointInSegment(i.v[u],i.v[h],i.o[u],i.i[h],d,s[o]);break}c+=s[o].addedLength,o+=1}return n||(n=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),n},vectorOnPath:function(t,e,i){t=1==t?this.v.c?0:.999:t;var n=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),s=r[0]-n[0],a=r[1]-n[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));if(0===o)return[0,0];var l="tangent"===i?[s/o,a/o]:[-a/o,s/o];return l},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],l),extendPrototype([u],c),c.prototype.getValueAtTime=o,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,n,r){var s=h(t,e,i,n,r);return s.propertyIndex=e.ix,s.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,s):4===i&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}})(),function(){function t(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0}TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var n={};return this.copyData(n,t),n.t=i.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=t}();var ShapePathInterface=function(){return function(t,e,i){var n=e.sh;function r(t){if("Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t)return r.path}var s=propertyGroupFactory(r,i);return n.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(r,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r}}(),propertyGroupFactory=function(){return function(t,e){return function(i){return i=void 0===i?1:i,i<=0?t:e(i-1)}}}(),PropertyInterface=function(){return function(t,e){var i={_name:t};function n(t){return t=void 0===t?1:t,t<=0?i:e(--t)}return n}}(),ShapeExpressionInterface=function(){function t(t,e,a){var d,p=[],f=t?t.length:0;for(d=0;d1&&(defaultCurveSegments=t);roundValues(!(defaultCurveSegments>=50))}function inBrowser(){return"undefined"!==typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i0?i("div",{staticClass:"enterLine"},[i("i",{staticClass:"el-icon-caret-bottom bottomenter"})]):t._e()]),i("div",{staticClass:"conterpoint"},[i("button",{class:e.folderName==t.nowFolderName?"currworkbutton ":"workbutton",attrs:{type:"button",title:e.folderName},on:{click:function(e){return t.goFolderAndBack(n)}}},[t._v(" "+t._s(e.folderName)+" ")]),n0?i("div",{staticClass:"bottomlist"},[i("div",{staticClass:"leftlin2"}),i("div",{staticClass:"outPoint"},[t._l(e.listsShareFrom[0],(function(e,n){return i("div",{key:n,staticClass:"linkBtn2 leftlinebox",attrs:{type:"button"},on:{click:function(i){return t.showNewAppManagement(e)}}},[i("i",{staticClass:"leftline"}),i("span",{staticClass:"worllistt2",attrs:{title:e}},[t._v(t._s(e.nodeName))])])})),t._m(0,!0)],2)]):t._e()])})),0)])])])])]),i("div",{staticClass:"clear"}),i("div",{staticClass:"use-flex"},[i("div",{},[i("div",{staticClass:"yiyun-rows overflowinit"},[i("div",[i("div",{staticClass:"workline-wrap"},[i("div",{ref:"allFolderWrapEl",staticClass:"use-flex2 worktitlebox overflowinit use-relative"},[i("div",{staticClass:"worklinkBtngroup use-flex2 set-transition",class:{"height-0":t.isHideWorkFolders},style:t.setTranslate},[t.nowFolderIndex>2&&t.isCalcuteExchangeNode?i("div",{staticClass:"has-prev-node no-drag",on:{click:function(e){return e.stopPropagation(),t.nowFolderClick(t.nowFolderIndex-1)}}},[i("img",{staticClass:"prev-icon no-drag",attrs:{src:"/static/img/下拉箭头.svg"}})]):t._e(),t._l(t.listUserFolders,(function(e,n){return[t.isShowworklink?t._e():i("button",{key:n,ref:"nowFolderEl",refInFor:!0,staticClass:"no-drag",class:{"nowfolder-wrap yiyuntitle nowFolderName":n==t.nowFolderIndex,"yiyuntitle sectitle":n!==t.nowFolderIndex,"hide-folder":Math.abs(n-t.nowFolderIndex)>2},attrs:{type:"button"},on:{click:function(e){return t.nowFolderClick(n)}}},[i("div",{staticClass:"use-ellipsis",class:{"now-folder-text":n===t.nowFolderIndex,"other-folder-text":n!==t.nowFolderIndex}},[t._v(t._s(e.folderName)+" ")]),i("div",{staticClass:"jump-icon-wrap"},[n==t.nowFolderIndex?i("img",{staticClass:"jump-icon",attrs:{src:"/static/img/下拉箭头.svg"},on:{click:function(e){return e.stopPropagation(),t.showWorklinkPage(e)}}}):t._e()])])]})),t.totalNodeNum-t.nowFolderIndex>2&&t.isCalcuteExchangeNode&&t.totalNodeNum>5?i("div",{staticClass:"has-next-node no-drag",on:{click:function(e){return e.stopPropagation(),t.nowFolderClick(t.nowFolderIndex+1)}}},[i("img",{staticClass:"next-icon no-drag",attrs:{src:"/static/img/下拉箭头.svg"}})]):t._e(),i("div",{style:{display:t.divDisplay?"block":"none"}})],2)]),i("div",{staticClass:"yiyun-col-4"})])])])])]),i("div",{staticClass:"clear"})])])},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"outLine"},[i("i",{staticClass:"el-icon-caret-bottom bottomenter"})])}],s=(i("7db0"),i("4160"),i("13d5"),i("fb6a"),i("a9e3"),i("159b"),i("4f96")),a=(i("96cf"),i("1da1")),o=i("b428"),l=(i("3de1"),i("b775"),i("aa58"),{props:{listUserFolders:Array,nestTemplateLists:Array,nowFolderIndex:Number,nowFolderName:String,isShowlink:Boolean,isHideWorkFolders:{type:Boolean,defualt:!1},isCalcuteExchangeNode:{type:Boolean,default:!0}},data:function(){return{acceptIdList:[],sendIdList:[],isShowRightManager:!1,isShowworklink:!1,workheight:"",projId:sessionStorage.projId,groupLength:5,nowFolderEl:null,allFolderWrapEl:null,moveX:0,folderNodeIdMap:null,divDisplay:""}},updated:function(){if(this.nowFolderEl=this.$refs.nowFolderEl?this.$refs.nowFolderEl[this.nowFolderIndex]:null,this.allFolderWrapEl=this.$refs.allFolderWrapEl,this.nowFolderEl&&this.allFolderWrapEl){var t=this.nowFolderEl.offsetLeft,e=this.allFolderWrapEl.clientWidth/2-this.nowFolderEl.clientWidth/2;this.moveX=t-e}},mounted:function(){},methods:{hideWorklinkPage:function(){this.$emit("hideWorklinkPage",!1),this.isShowworklink=!1,this.workheight="workheightinit"},showWorklinkPage:function(){this.$emit("showWorklinkPage",!0),this.isShowworklink=!0,this.workheight="workheight"},showNewAppManagement:function(t){},closeAppManagePain:function(){this.isShowRightManager=!1},previousFolder:function(){this.$emit("previousFolder",!0)},nowFolderClick:function(t){this.$emit("nowFolderClick",t)},showAllAppManagement:function(){this.$emit("showAllAppManagement",!0)},goFolderAndBack:function(t){this.$emit("goFolderAndBack",t),this.hideWorklinkPage()},getNestItem:function(t,e,i){var n=this;t.forEach((function(t){t.children&&t.children.length>0&&(i=t.id,n.getNestItem(t.children,e,i)),t.isNest&&e.push({nodeId:t.id,parentNodeId:i})}))},getFileExchange:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var i,n,r,l,c,u,h,d,p,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("folder/queryAllNodeFolderListByProjectId",{projectId:sessionStorage.projId});case 2:return i=e.sent,n=Object(s["a"])(i.Data.folder),n[0],n[1],r=n.slice(2),l=r.reduce((function(t,e){return t[e.NodeId]={},t[e.NodeId].nodeName=e.FolderName,t[e.NodeId].id=e.Id,t}),{}),c=t.listUserFolders[0].templateId,t.listUserFolders.length,e.next=9,t.$fetchApi("template/queryTemplateNodeByTemplateId",{templateId:c});case 9:u=e.sent,h=u.Data?u.Data.children:[],d=[],t.getNestItem(h,d,p),f={nodeId:null,parentNodeId:c},d.unshift(f),t.folderNodeIdMap=l,d.forEach(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(i){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["g"])(c,i.parentNodeId,i.nodeId);case 2:n=e.sent,t.listUserFolders.forEach((function(t){n.Data.forEach((function(e){t.nodeId==e.PermCode&&1==e.Permission&&t.nodeId!==e.SysCode?t.listsShareFrom[1].push(l[e.SysCode]):t.nodeId==e.SysCode&&1==e.Permission&&t.nodeId!==e.PermCode&&t.listsShareFrom[0].push(l[e.PermCode])}))}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t.nestNodeFileExchangeOperate(c,l),t.nestTemplateLists.forEach(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.nestNodeFileExchangeOperate(i.TemplateId,l);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 19:case"end":return e.stop()}}),e)})))()},nestNodeFileExchangeOperate:function(t,e){var i=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(o["i"])(t);case 2:if(r=n.sent,0===r.Code){n.next=5;break}return n.abrupt("return");case 5:if(s=r.Data,s){n.next=8;break}return n.abrupt("return");case 8:i.listUserFolders.forEach((function(t){s.forEach((function(i){if(t.nodeId==i.PermCode&&1==i.Permission&&t.nodeId!==i.SysCode){var n=t.listsShareFrom[1].find((function(t){return t.nodeId==i.SysCode}));!n&&e[i.SysCode]&&t.listsShareFrom[1].push(e[i.SysCode])}else if(t.nodeId==i.SysCode&&1==i.Permission&&t.nodeId!==i.PermCode){var r=t.listsShareFrom[0].find((function(t){return t.nodeId==i.PermCode}));!r&&e[i.PermCode]&&t.listsShareFrom[0].push(e[i.PermCode])}}))}));case 9:case"end":return n.stop()}}),n)})))()},mergeFolderList:function(t){var e=Object(s["a"])(t),i=e[0],n=e.slice(1),r=i.superId,a=[],o={};return n.forEach((function(t){o[t.id]=t,t.listChildren=[];var e=t.superId;if(e!==r){var i=o[e];i&&i.listChildren.push(t)}else a.push(t)})),a}},computed:{nowFolderShareNodesLen:function(){return this.listUserFolders[this.nowFolderIndex]?this.listUserFolders[this.nowFolderIndex].listsShareFrom[1].length:0},setTranslate:function(){var t={transform:"translate(".concat(-this.moveX,"px, 0)")};return t},totalNodeNum:function(){return this.listUserFolders?this.listUserFolders.length:0}},watch:{moveX:function(t){var e=this;setTimeout((function(){e.divDisplay=!e.divDisplay}),500)},nowFolderIndex:function(t){t>-1&&(this.nowFolderEl=this.$refs.nowFolderEl?this.$refs.nowFolderEl[t]:this.nowFolderEl,this.allFolderWrapEl=this.$refs.allFolderWrapEl)},isShowlink:function(t){0==t&&this.hideWorklinkPage()},totalNodeNum:function(){this.isCalcuteExchangeNode&&this.getFileExchange()},nowFolderShareNodesLen:function(){this.$emit("finishGetExchangeNodes")}}}),c=l,u=(i("ce7d"),i("2877")),h=Object(u["a"])(c,n,r,!1,null,"3cfc48e6",null);e["a"]=h.exports},"9db1":function(t,e,i){"use strict";var n=i("cdec"),r=i("fb32"),s=i("f761"),a=i("5ce4"),o=i("84a3");function l(t){var e=new s(t),i=r(s.prototype.request,e);return n.extend(i,s.prototype,e),n.extend(i,e),i}var c=l(o);c.Axios=s,c.create=function(t){return l(a(c.defaults,t))},c.Cancel=i("827b"),c.CancelToken=i("089b"),c.isCancel=i("a642"),c.all=function(t){return Promise.all(t)},c.spread=i("24d7"),t.exports=c,t.exports.default=c},a0ba:function(t,e,i){},a35f:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"app"}},[i("div",{staticClass:"layout_content"},[t._m(0),i("section",{staticClass:"layout_warp_4"},[i("div",t._l(t.listTemplate,(function(e){return i("div",{key:e.id,staticClass:"EC_col_12"},[i("div",{staticClass:"EC_col_12"},[i("div",{staticClass:"templateBoxItem"},[i("div",{staticClass:"cardBoxItemInner"},[i("h3",{staticClass:"card_title"},[t._v(t._s(e.tempName))]),i("div",{staticClass:"optionBtnlabel"},[i("button",{staticClass:"EC_button normal bt_small primaryopBtn shadow",attrs:{type:"button"},on:{click:function(i){return t.goModelItem(e)}}},[t._v(" 查看 ")])])])])]),i("div",{staticClass:"EC_col_12"},[i("div",{staticClass:"appDesc"},[i("h3",{staticClass:"card_title"}),0==e.status?i("button",{staticClass:"EC_button strong bt_small primaryopBtn addprimaryopBtn fr cicle",attrs:{type:"button"},on:{click:function(i){return t.addTemplate(e)}}},[t._v(" 添加 ")]):t._e(),1==e.status?i("i",{staticClass:"selctIcon fr"}):t._e(),i("div",{staticClass:"clear"}),i("p",{staticClass:"minitext"},[t._v(" "+t._s(e.introduce)+" ")])])])])})),0)])])])},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"title_section"},[i("div",{staticClass:"EC_col_8"},[i("div",{staticClass:"adminnavBox",staticStyle:{"margin-bottom":"0"}},[i("h3",[t._v("添加工作流程模板")])])])])}],s=i("2b0e"),a=i("a429");s["default"].use(a["a"]);var o={elNew:"#app",data:function(){return{listTemplate:[],searchTempName:""}},filters:{},mounted:function(){this.loadTemplateList()},methods:{goModelItem:function(t){this.$router.push({name:"company_template_detail",params:{name:t.tempName,id:t.templateID,data:t,title:"ModelItem"}})},loadTemplateList:function(){var t=this;this.$axios({method:"get",url:encodeURI("/api/templates/common/"+sessionStorage.companyId)}).then((function(e){t.listTemplate=e.data})).catch((function(t){console.log(t)}))},addTemplate:function(t){var e=this,i={companyID:sessionStorage.companyId,templateID:t.templateID,status:1,createUserID:sessionStorage.userId,modifyUserID:sessionStorage.userId};this.$axios({method:"post",url:encodeURI("/api/templates/tempcompany"),data:i}).then((function(t){1==t.data.state?e.$notify({message:"模板添加成功",type:"success",offset:100,duration:2500}):e.$notify({message:t.data.message,type:"error",offset:100,duration:5e3})})).catch((function(t){console.log(t)}))}}},l=o,c=i("2877"),u=Object(c["a"])(l,n,r,!1,null,null,null);e["default"]=u.exports},a642:function(t,e,i){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},a757:function(t,e,i){"use strict";var n=i("e73e"),r=i.n(n);r.a},aa58:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.isTemNest?i("div",{staticClass:"template_nest"},[i("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":t.isNestTempScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"取消",onBackBtnClick:t.enterDistWork,title:"为“"+t.title+"”添加新模板"}},[i("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(e){return e.stopPropagation(),t.enterNestTempImprove()}},slot:"right"},[t._v(" 选定模板 ")])]),i("div",{ref:"nestTemplateDesc",staticClass:"template_select_content"},[i("div",{staticClass:"template_connect"},[t._m(0),t._l(t.NestTemplateList,(function(e,n){return i("div",{key:e.Id,staticClass:"template_info",on:{click:function(i){return t.isChecked(n,e)}}},[i("div",{staticClass:"check_box",class:{checked:t.checkedIndex==n}},[i("i",{staticClass:"el-icon-check"})]),i("span",{staticClass:"template_info_name"},[t._v(t._s(e.TemplateName))])])}))],2)])],1):t._e(),t.isNestTemImprove?i("div",{staticClass:"template_improve"},[i("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":t.isTempImproveScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"选择模板",onBackBtnClick:t.enterSelectNestTemp,title:"完善模板信息"}},[i("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(e){return e.stopPropagation(),t.addNestTemplate()}},slot:"right"},[t._v(" 创建 ")])]),i("div",{ref:"tempImproveDesc",staticClass:"summary-wrap"},[i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("模板名称")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.selectTemplate.TemplateName))])]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("创建时间")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.createDate))])]),t._l(t.checkNewProjData.CustomProps,(function(e){return i("div",{key:e.Id,staticClass:"item"},[i("div",{staticClass:"item-title adjust-title-position"},[t._v(t._s((e.PropertyName?e.PropertyName:"自定义字段")+":"))]),i("div",{staticClass:"item-value"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.PropValue,expression:"prop.PropValue"}],staticClass:"prop-value-input",attrs:{type:"text"},domProps:{value:e.PropValue},on:{input:function(i){i.target.composing||t.$set(e,"PropValue",i.target.value)}}})])])}))],2)],1):t._e()])},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"template_info_title"},[i("span",[t._v("已建立交换关系的模板")])])}],s=(i("4160"),i("159b"),i("96cf"),i("1da1")),a=i("5530"),o=i("2909"),l=i("b0f9"),c=i("b1f3"),u={components:{TopHeader:c["a"]},props:{nestNodeFolder:Object,isTemNestInProp:{type:Boolean,default:!1}},data:function(){return{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(t){var e=this;l["m"](t).then((function(t){t.Data.propertys.forEach((function(t,i){e.checkNewProjData.CustomProps[i]={},e.checkNewProjData.CustomProps[i]["TempPropId"]=t.Id,e.checkNewProjData.CustomProps[i]["PropertyName"]=t.PropertyName,e.checkNewProjData.CustomProps[i]["PropValue"]="";var n=e.checkNewProjData.CustomProps;e.checkNewProjData.CustomProps=Object(o["a"])(n)})),e.checkNewProjData=Object(a["a"])({},e.checkNewProjData)}))},enterDistWork:function(){this.$emit("enterDistWork")},addNestTemplate:function(){var t=this;this.$confirm("重要提示:一旦确定模板并创建后,您将无法删除模板。","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"error"}).then(Object(s["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["o"](t.selectTemplate.TemplateId);case 2:return i=e.sent,n=i.Data,r={ProjId:t.nestNodeFolder.projId,NodeId:t.nestNodeFolder.nodeId,FolderId:t.nestNodeFolder.id,TemplateId:t.nestNodeFolder.templateId,NestJsmindData:n},e.next=7,l["b"](r);case 7:s=e.sent,0===s.Code&&(t.$notify({message:"“".concat(t.selectTemplate.TemplateName,"”模板嵌套成功。"),type:["success"]}),t.$emit("enterDistWork"));case 9:case"end":return e.stop()}}),e)})))).catch((function(t){return console.log(t)}))},isChecked:function(t,e){this.checkedIndex=t,this.selectTemplate=e},getNestTemplate:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var n;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,l["k"](t);case 2:n=i.sent,e.NestTemplateList=n.Data,e.NestTemplateList&&e.NestTemplateList.length&&"{}"===JSON.stringify(e.selectTemplate)&&(e.selectTemplate=e.NestTemplateList[0],e.checkedIndex=0);case 5:case"end":return i.stop()}}),i)})))()},watchNestTempScroll:function(){this.isNestTempScroll=this.nestTemplateDescEl.scrollTop>0},watchTempImproveScroll:function(){this.isTempImproveScroll=this.tempImproveDescEl.scrollTop>0}},watch:{isTemNestInProp:{handler:function(t){this.isTemNest=t,t&&this.getNestTemplate(this.nestNodeFolder.nodeId)},immediate:!0},isNestTempScroll:function(t){var e=this;t&&setTimeout((function(){e.nestTemplateDescEl=e.$refs.nestTemplateDesc,e.nestTemplateDescEl&&e.nestTemplateDescEl.addEventListener("scroll",e.watchNestTempScroll)}),50)}}},h=u,d=(i("4e5b"),i("2877")),p=Object(d["a"])(h,n,r,!1,null,"2e9a13da",null);e["a"]=p.exports},ab13:function(t,e,i){var n=i("b622"),r=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[r]=!1,"/./"[t](e)}catch(n){}}return!1}},b0e8:function(t,e,i){"use strict";var n=i("cdec");t.exports=function(t,e,i){return n.forEach(i,(function(i){t=i(t,e)})),t}},b391:function(t,e,i){"use strict";var n=i("cdec");t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,i,r,s,a){var o=[];o.push(t+"="+encodeURIComponent(e)),n.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),n.isString(r)&&o.push("path="+r),n.isString(s)&&o.push("domain="+s),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},ba12:function(t,e,i){"use strict";var n=i("6909"),r=i.n(n);r.a},bde5:function(t,e,i){"use strict";var n=i("6c26"),r=i.n(n);r.a},bf4b:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"yiyun_wenjian_list nohover no-left-margin"},[i("div",{staticClass:"yiyunwenjian_imgbox ",on:{click:t.showNewFiledialog}},[t._m(0),i("span",{staticClass:"newbtn-text"},[t._v("导入文件")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.isShowNewFiledialog,expression:"isShowNewFiledialog == true"}],staticClass:"dia_8",on:{click:t.hideNewFiledialog}}),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.isShowNewFiledialog,expression:"isShowNewFiledialog == true"}],staticClass:"newfiledialog"},[i("div",{staticClass:"dragareaBox"},[i("div",{staticClass:"dragarea_top uploadBtn",on:{click:function(e){t.selectSystemFiles(),t.isShowNewFiledialog=!1}}},[i("img",{staticClass:"uploadBtnImg",attrs:{src:"static\\img\\upload.png",alt:""}}),i("span",{staticClass:"uploadText"},[t._v("点击上传本地文件")])]),i("div",{staticClass:"right-line"}),i("div",{staticClass:"dragarea_top uploadBtn",on:{click:function(e){t.selectSystemFolders(),t.isShowNewFiledialog=!1}}},[i("img",{staticClass:"uploadBtnImg",attrs:{src:"static\\img\\文件夹.svg",alt:""}}),i("span",{staticClass:"uploadText"},[t._v("点击上传本地文件夹")])])]),t.listTempFiles.length>0?i("div",{staticClass:"creatbox_mid mt-10"},[t._m(1),i("div",{staticClass:"temp-file-container"},[i("ul",{staticClass:"listTemplateList"},t._l(t.listTempFiles,(function(e,n){return i("li",{key:e.id,staticClass:"temp-file",on:{click:function(i){return i.stopPropagation(),t.fileTempClick(e,n)}}},[i("span",{staticClass:"listTemplateTextBig",attrs:{title:e.extension}},[t._v(t._s(e.extension))]),i("span",{staticClass:"listTemplateText"},[t._v(t._s(e.fileName))])])})),0)])]):t._e()])])},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"new-btn"},[i("div",{staticClass:"hori draw-line"}),i("div",{staticClass:"vert draw-line"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title-head"},[i("div",{staticClass:"title-text"},[t._v("从样板文件中创建")])])}],s={props:{oneOf:Function,onButtnClick:Function,selectSystemFiles:Function,selectSystemFolders:Function,listTempFiles:{type:Array,default:function(){return[]}}},data:function(){return{selectedFileIndex:0,isShowNewFiledialog:!1,isShowNewTemplateFileDialog:!1}},methods:{showNewFiledialog:function(){this.isShowNewFiledialog=!0},hideNewFiledialog:function(){this.isShowNewFiledialog=!1},fileTempClick:function(t,e){this.$emit("fileTempClick",t),this.hideNewFiledialog()}}},a=s,o=(i("2001"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"76b9a2f1",null);e["a"]=l.exports},c286:function(t,e,i){},c61b:function(t,e,i){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},c740:function(t,e,i){"use strict";var n=i("23e7"),r=i("b727").findIndex,s=i("44d2"),a=i("ae40"),o="findIndex",l=!0,c=a(o);o in[]&&Array(1)[o]((function(){l=!1})),n({target:"Array",proto:!0,forced:l||!c},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s(o)},caad:function(t,e,i){"use strict";var n=i("23e7"),r=i("4d64").includes,s=i("44d2"),a=i("ae40"),o=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:!o},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},ccb2:function(t,e,i){"use strict";var n=i("7c41"),r=i.n(n);r.a},cdec:function(t,e,i){"use strict";var n=i("fb32"),r=Object.prototype.toString;function s(t){return"[object Array]"===r.call(t)}function a(t){return"undefined"===typeof t}function o(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function h(t){return"string"===typeof t}function d(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function f(t){return"[object Date]"===r.call(t)}function m(t){return"[object File]"===r.call(t)}function v(t){return"[object Blob]"===r.call(t)}function g(t){return"[object Function]"===r.call(t)}function y(t){return p(t)&&g(t.pipe)}function b(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function x(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function S(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),s(t))for(var i=0,n=t.length;i0||t>-1e-6&&t<0?n(t*e)/e:t}function _(){var t=this.props,e=E(t[0]),i=E(t[1]),n=E(t[4]),r=E(t[5]),s=E(t[12]),a=E(t[13]);return"matrix("+e+","+i+","+n+","+r+","+s+","+a+")"}return function(){this.reset=r,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=u,this.skewFromAxis=h,this.shear=c,this.scale=d,this.setTransform=p,this.translate=f,this.transform=m,this.applyToPoint=x,this.applyToX=S,this.applyToY=C,this.applyToZ=k,this.applyToPointArray=I,this.applyToTriplePoints=P,this.applyToPointStringified=A,this.toCSS=O,this.to2dCSS=_,this.clone=y,this.cloneFromProps=b,this.equals=g,this.inversePoints=T,this.inversePoint=V,this.getInverseMatrix=w,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();(function(t,e){var i,n=this,r=256,s=6,a=52,o="random",l=e.pow(r,s),c=e.pow(2,a),u=2*c,h=r-1;function d(i,n,a){var h=[];n=!0===n?{entropy:!0}:n||{};var d=v(m(n.entropy?[i,y(t)]:null===i?g():i,3),h),b=new p(h),x=function(){var t=b.g(s),e=l,i=0;while(t=u)t/=2,e/=2,i>>>=1;return(t+i)/e};return x.int32=function(){return 0|b.g(4)},x.quick=function(){return b.g(4)/4294967296},x.double=x,v(y(b.S),t),(n.pass||a||function(t,i,n,r){return r&&(r.S&&f(r,b),t.state=function(){return f(b,{})}),n?(e[o]=t,i):t})(x,d,"global"in n?n.global:this==e,n.state)}function p(t){var e,i=t.length,n=this,s=0,a=n.i=n.j=0,o=n.S=[];i||(t=[i++]);while(s0?i=l:e=l}while(Math.abs(o)>s&&++c=r?v(t,h,e,i):0===d?h:m(t,s,s+l,e,i)}},t}();function extendPrototype(t,e){var i,n,r=t.length;for(i=0;i-.001&&a<.001}function e(e,i,n,r,s,a,o,l,c){if(0===n&&0===a&&0===c)return t(e,i,r,s,o,l);var u,h=Math.sqrt(Math.pow(r-e,2)+Math.pow(s-i,2)+Math.pow(a-n,2)),d=Math.sqrt(Math.pow(o-e,2)+Math.pow(l-i,2)+Math.pow(c-n,2)),p=Math.sqrt(Math.pow(o-r,2)+Math.pow(l-s,2)+Math.pow(c-a,2));return u=h>d?h>p?h-d-p:p-d-h:p>d?p-d-h:d-h-p,u>-1e-4&&u<1e-4}var i=function(){return function(t,e,i,n){var r,s,a,o,l,c,u=defaultCurveSegments,h=0,d=[],p=[],f=bezier_length_pool.newElement();for(a=i.length,r=0;ra?-1:1,c=!0;while(c)if(n[s]<=a&&n[s+1]>a?(o=(a-n[s])/(n[s+1]-n[s]),c=!1):s+=l,s<0||s>=r-1){if(s===r-1)return i[s];c=!1}return i[s]+(i[s+1]-i[s])*o}function l(t,e,i,n,r,s){var a=o(r,s),l=1-a,c=Math.round(1e3*(l*l*l*t[0]+(a*l*l+l*a*l+l*l*a)*i[0]+(a*a*l+l*a*a+a*l*a)*n[0]+a*a*a*e[0]))/1e3,u=Math.round(1e3*(l*l*l*t[1]+(a*l*l+l*a*l+l*l*a)*i[1]+(a*a*l+l*a*a+a*l*a)*n[1]+a*a*a*e[1]))/1e3;return[c,u]}var c=createTypedArray("float32",8);function u(t,e,i,n,r,s,a){r=r<0?0:r>1?1:r;var l=o(r,a);s=s>1?1:s;var u,h=o(s,a),d=t.length,p=1-l,f=1-h,m=p*p*p,v=l*p*p*3,g=l*l*p*3,y=l*l*l,b=p*p*f,x=l*p*f+p*l*f+p*p*h,S=l*l*f+p*l*h+l*p*h,C=l*l*h,k=p*f*f,w=l*f*f+p*h*f+p*f*h,V=l*h*f+p*h*h+l*f*h,T=l*h*h,P=f*f*f,I=h*f*f+f*h*f+f*f*h,A=h*h*f+f*h*h+h*f*h,O=h*h*h;for(u=0;u=0;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)n(t[e].ks.k);else for(s=t[e].ks.k.length,r=0;ri[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&void 0))}var s=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,n=t.length;for(i=0;i=0;i-=1)if("sh"==t[i].ty){if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,n=0;n0&&(u=!1),u){var h=createTag("style");h.setAttribute("f-forigin",n[i].fOrigin),h.setAttribute("f-origin",n[i].origin),h.setAttribute("f-family",n[i].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+n[i].fFamily+"; font-style: normal; src: url('"+n[i].fPath+"');}",e.appendChild(h)}}else if("g"===n[i].fOrigin||1===n[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c=l.t-a){o.h&&(o=l),m=0;break}if(l.t-a>t){m=v;break}v=x||t=x?C.points.length-1:0;for(u=C.points[k].point.length,c=0;c=T&&V=x)i[0]=b[0],i[1]=b[1],i[2]=b[2];else if(t<=S)i[0]=o.s[0],i[1]=o.s[1],i[2]=o.s[2];else{var _=s(o.s),D=s(b),F=(t-S)/(x-S);r(i,n(_,D,F))}else for(v=0;v=x?h=1:t1e-6?(n=Math.acos(r),s=Math.sin(n),a=Math.sin((1-i)*n)/s,o=Math.sin(i*n)/s):(a=1-i,o=i),l[0]=a*c+o*p,l[1]=a*u+o*f,l[2]=a*h+o*m,l[3]=a*d+o*v,l}function r(t,e){var i=e[0],n=e[1],r=e[2],s=e[3],a=Math.atan2(2*n*s-2*i*r,1-2*n*n-2*r*r),o=Math.asin(2*i*n+2*r*s),l=Math.atan2(2*i*s-2*n*r,1-2*i*i-2*r*r);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}function s(t){var e=t[0]*degToRads,i=t[1]*degToRads,n=t[2]*degToRads,r=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(n/2),o=Math.sin(e/2),l=Math.sin(i/2),c=Math.sin(n/2),u=r*s*a-o*l*c,h=o*l*a+r*s*c,d=o*s*a+r*l*c,p=r*l*a-o*s*c;return[h,d,p,u]}function a(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function o(t){var i;if("unidimensional"===this.propType)i=t*this.mult,e(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else{var n=0,r=this.v.length;while(n1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}}function l(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],n=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(i[0]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),n[0]=s.getValueAtTime(s.keyframes[0].t/r,0),n[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(i[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),n[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[s.pv,a.pv],n[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=n=t;this.v.rotate(-Math.atan2(i[1]-n[1],i[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function r(){}function s(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function a(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var n,r=e.or.k.length;for(n=0;n=this._maxLength&&this.doubleArrayLength(),i){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break}(!s[n]||s[n]&&!r)&&(s[n]=point_pool.newElement()),s[n][0]=t,s[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,n,r,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,n,"o",a,o),this.setXYAt(r,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,n=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),r=1);var s,a=this._length-1,o=this._length;for(s=r;s=p[p.length-1].t-this.offsetTime)n=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],s=!0;else{var f,m,v=d,g=p.length-1,y=!0;while(y){if(f=p[v],m=p[v+1],m.t-this.offsetTime>t)break;v=m.t-this.offsetTime)u=1;else if(tn&&e>n)||(this._caching.lastIndex=r=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],c=s.length;for(a=0;an+i);else u=o.s*r<=n?0:(o.s*r-n)/i,h=o.e*r>=n+i?1:(o.e*r-n)/i,l.push([u,h])}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?1:this.s.v<0?0:this.s.v)+r,i=(this.e.v>1?1:this.e.v<0?0:this.e.v)+r,e>i){var s=e;e=i,i=s}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var a,o,l,c,u,h,d=this.shapes.length,p=0;if(i===e)for(a=0;a=0;a-=1)if(f=this.shapes[a],f.shape._mdf){for(m=f.localShapeCollection,m.releaseShapes(),2===this.m&&d>1?(g=this.calculateShapeEdges(e,i,f.totalShapeLength,x,p),x+=f.totalShapeLength):g=[[y,b]],l=g.length,o=0;o=1?v.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(v.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),v.push({s:0,e:f.totalShapeLength*(b-1)}));var S=this.addShapes(f,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var C=f.shape.paths.shapes[f.shape.paths._length-1];if(C.c){var k=S.pop();this.addPaths(S,m),S=this.addShapes(f,v[1],k)}else this.addPaths(S,m),S=this.addShapes(f,v[1])}this.addPaths(S,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var i,n=t.length;for(i=0;ie.e){i.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[r],d[n].v[r],i,o,v),v=!1):(c=bez.getNewSegment(d[n].v[r-1],d[n].v[r],d[n].o[r-1],d[n].i[r],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,l[r-1]),this.addSegmentFromArray(c,i,o,v),v=!1,i.c=!1),f+=a.addedLength,o+=1}if(d[n].c&&l.length){if(a=l[r-1],f<=e.e){var g=l[r-1].addedLength;e.s<=f&&e.e>=f+g?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[0],d[n].v[0],i,o,v),v=!1):(c=bez.getNewSegment(d[n].v[r-1],d[n].v[0],d[n].o[r-1],d[n].i[0],(e.s-f)/g,(e.e-f)/g,l[r-1]),this.addSegmentFromArray(c,i,o,v),v=!1,i.c=!1)}else i.c=!1;f+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[u][0],i.v[u][1],"i",u),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;n0)i-=1,this._elements.unshift(e[i]),1;this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(c):Math.ceil(c),d=(this.tr.v.props,this.pMatrix.props),p=this.rMatrix.props,f=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m,v,g=0;if(c>0){while(gh)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),g-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),g-=u)}n=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,s=this._currentCopies;while(s){if(e=this.elemsData[n].it,i=e[e.length-1].transform.mProps.v.props,v=i.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==g){for((0!==n&&1===r||n!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),m=0;m.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s){var t=0,e=this.data.k.k.length;while(t=o+lt||!f?(y=(o+lt-c)/l.partialLength,$=p.point[0]+(l.point[0]-p.point[0])*y,N=p.point[1]+(l.point[1]-p.point[1])*y,w.translate(-S[0]*P[r].an/200,-S[1]*M/100),u=!1):f&&(c+=l.partialLength,h+=1,h>=f.length&&(h=0,d+=1,m[d]?f=m[d].points:x.v.c?(h=0,d=0,f=m[d].points):(c-=l.partialLength,f=null)),f&&(p=l,l=f[h],v=l.partialLength));j=P[r].an/2-P[r].add,w.translate(-j,0,0)}else j=P[r].an/2-P[r].add,w.translate(-j,0,0),w.translate(-S[0]*P[r].an/200,-S[1]*M/100,0);for(P[r].l/2,_=0;_1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;var n,r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(n=0;ne)break;i+=1}return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){var e,i=FontManager.getCombinedCharacterCodes(),n=[],r=0,s=t.length;while(r=55296&&e<=56319?(e=t.charCodeAt(r+1),e>=56320&&e<=57343?(n.push(t.substr(r,2)),++r):n.push(t.charAt(r))):n.push(t.charAt(r)),r+=1;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,n,r,s,a,o,l,c=this.elem.globalData.fontManager,u=this.data,h=[],d=0,p=u.m.g,f=0,m=0,v=0,g=[],y=0,b=0,x=c.getFontByName(t.f),S=0,C=x.fStyle?x.fStyle.split(" "):[],k="normal",w="normal";for(i=C.length,e=0;eO&&" "!==I[e]?(-1===_?i+=1:e=_,P+=t.finalLineHeight||1.2*t.finalSize,I.splice(e,_===e?1:0,"\r"),_=-1,y=0):(y+=S,y+=T);P+=x.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Eb?y:b,y=-2*T,r="",n=!0,v+=1):r=D,c.chars?(o=c.getCharData(D,x.fStyle,c.getFontByName(t.f).fFamily),S=n?0:o.w*t.finalSize/100):S=c.measureText(r,t.f,t.finalSize)," "===D?F+=S+T:(y+=S+T+F,F=0),h.push({l:S,an:S,add:f,n:n,anIndexes:[],val:r,line:v,animatorJustifyOffset:0}),2==p){if(f+=S,""===r||" "===r||e===i-1){""!==r&&" "!==r||(f-=S);while(m<=e)h[m].an=f,h[m].ind=d,h[m].extra=S,m+=1;d+=1,f=0}}else if(3==p){if(f+=S,""===r||e===i-1){""===r&&(f-=S);while(m<=e)h[m].an=f,h[m].ind=d,h[m].extra=S,m+=1;f=0,d+=1}}else h[d].ind=d,h[d].extra=0,d+=1;if(t.l=h,b=y>b?y:b,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=b,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var M,L,B=u.a;a=B.length;var j,$,N=[];for(s=0;s0?r=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(r,s,a,o).get,c=0,u=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)c=h===u?n>=h?1:0:t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c=l(c);else if(3===d)c=h===u?n>=h?0:1:1-t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c=l(c);else if(4===d)h===u?c=0:(c=t(0,e(.5/(h-u)+(n-u)/(h-u),1)),c<.5?c*=2:c=1-2*(c-.5)),c=l(c);else if(5===d){if(h===u)c=0;else{var p=h-u;n=e(t(0,n+.5-u),h-u);var f=-p/2+n,m=p/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===d?(h===u?c=0:(n=e(t(0,n+.5-u),h-u),c=(1+Math.cos(Math.PI+2*Math.PI*n/(h-u)))/2),c=l(c)):(n>=i(u)&&(c=t(0,e(n-u<0?e(h,1)-(u-n):h-n,1))),c=l(c));return c*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,n=this.s.v/e+i,r=this.e.v/e+i;if(n>r){var s=n;n=r,r=s}this.finalS=n,this.finalE=r}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:r}}(),pool_factory=function(){return function(t,e,i,n){var r=0,s=t,a=createSizedArray(s),o={newElement:l,release:c};function l(){var t;return r?(r-=1,t=a[r]):t=e(),t}function c(t){r===s&&(a=pooling.double(a),s*=2),i&&i(t),a[r]=t,r+=1}return o}}(),pooling=function(){function t(t){return t.concat(createSizedArray(t.length))}return{double:t}}(),point_pool=function(){function t(){return createTypedArray("float32",2)}return pool_factory(8,t)}(),shape_pool=function(){function t(){return new ShapePath}function e(t){var e,i=t._length;for(e=0;e0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(y,"url("+locationHref+"#"+v+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;var n=0,r=t.length;while(n=0;e--)this.elements[e]||(i=this.layers[e],i.ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t)}return this.createNull(t)},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;ei&&"meet"===s||ni&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(ni&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(n>i&&"meet"===s||ni&&"meet"===s||n=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRenderer.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRenderer.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([BaseRenderer],HybridRenderer),HybridRenderer.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRenderer.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}},HybridRenderer.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var n=this.layers[e];if(n.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{var r,s,a,o=0;while(o=t)return this.threeDElements[e].perspectiveElem;e+=1}},HybridRenderer.prototype.createThreeDContainer=function(t,e){var i=createTag("div");styleDiv(i);var n=createTag("div");styleDiv(n),"3d"===e&&(i.style.width=this.globalData.compSize.w+"px",i.style.height=this.globalData.compSize.h+"px",i.style.transformOrigin=i.style.mozTransformOrigin=i.style.webkitTransformOrigin="50% 50%",n.style.transform=n.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"),i.appendChild(n);var r={container:n,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(r),r},HybridRenderer.prototype.build3dContainers=function(){var t,e,i=this.layers.length,n="";for(t=0;t=0;t--)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(t,e){var i=0,n=this.threeDElements.length;while(ia?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,n=(s-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,n=0),this.resizerElem.style.transform=this.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+n+",0,1)"},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,n=this.threeDElements.length;for(t=0;t1&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",a)),i.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,n=this.dynamicProperties.length;for(i=0;it?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t0)l=n.transformers[m].mProps._mdf||l,f--,m--;if(l){f=g-n.styles[u].lvl,m=n.transformers.length-1;while(f>0)p=n.transformers[m].mProps.v.props,d.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),f--,m--}}else d=t;if(h=n.sh.paths,a=h._length,l){for(o="",s=0;s=1?.99:e.h.v<=-1?-.99:e.h.v,b=o*y,x=Math.cos(g+e.a.v)*b+u[0],S=Math.sin(g+e.a.v)*b+u[1];l.setAttribute("fx",x),l.setAttribute("fy",S),c&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",S))}}function c(t,e,i){var n=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(n.pElem.setAttribute("stroke-dasharray",r.dashStr),n.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&n.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return i}();function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVShapeData(t,e,i,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;"rc"==e.ty?r=5:"el"==e.ty?r=6:"sr"==e.ty&&(r=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,r,t);var s,a,o=i.length;for(s=0;s=0;n-=1)i=t.transforms[n].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=s},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e=0;t-=1)this.shapeModifiers[t].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"bevel"},searchProcessedElement:function(t){var e=this.processedElements,i=0,n=e.length;while(i=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this.audio.volume(t)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextElement),SVGTextElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextElement.prototype.buildTextContents=function(t){var e=0,i=t.length,n=[],r="";while(et?this.textSpans[t]:createNS(l?"path":"text"),b<=t&&(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=a,this.layerElement.appendChild(a)),a.style.display="inherit"),u.reset(),u.scale(i.finalSize/100,i.finalSize/100),d&&(o[t].n&&(p=-v,f+=i.yOffset,f+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(i,u,o[t].line,p,f),p+=o[t].l||0,p+=v),l?(y=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily),g=y&&y.data||{},c=g.shapes?g.shapes[0].it:[],d?h+=this.createPathShape(u,c):a.setAttribute("d",this.createPathShape(u,c))):(d&&a.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));d&&a&&a.setAttribute("d",h)}else{var x=this.textContainer,S="start";switch(i.j){case 1:S="end";break;case 2:S="middle";break}x.setAttribute("text-anchor",S),x.setAttribute("letter-spacing",v);var C=this.buildTextContents(i.finalText);for(e=C.length,f=i.ps?i.ps[1]+i.ascent:0,t=0;t1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(d=this.searchProcessedElement(t[o]),d?e[o]=i[d-1]:t[o]._render=a,"fl"==t[o].ty||"st"==t[o].ty||"gf"==t[o].ty||"gs"==t[o].ty)d?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],r),t[o]._render&&n.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"==t[o].ty){if(d)for(c=e[o].it.length,l=0;l=u?f<0?n:r:n+p*Math.pow((s-t)/f,1/i),h[d++]=a,o+=256/(l-1);return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(n),s=i*Math.sin(n);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGEffects(t){var e,i,n=t.data.ef?t.data.ef.length:0,r=createElementID(),s=filtersFactory.createFilter(r),a=0;for(this.filters=[],e=0;eo&&"xMidYMid slice"===l||a=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,n,r=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),t=0;t=0;s-=1){if(l=this.searchProcessedElement(t[s]),l?e[s]=i[l-1]:t[s]._shouldRender=n,"fl"==t[s].ty||"st"==t[s].ty||"gf"==t[s].ty||"gs"==t[s].ty)l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],f),d.push(e[s].style);else if("gr"==t[s].ty){if(l)for(o=e[s].it.length,a=0;a=0;r-=1)"tr"==e[r].ty?(s=i[r].transform,this.renderShapeTransform(t,s)):"sh"==e[r].ty||"el"==e[r].ty||"rc"==e[r].ty||"sr"==e[r].ty?this.renderPath(e[r],i[r]):"fl"==e[r].ty?this.renderFill(e[r],i[r],s):"st"==e[r].ty?this.renderStroke(e[r],i[r],s):"gf"==e[r].ty||"gs"==e[r].ty?this.renderGradientFill(e[r],i[r],s):"gr"==e[r].ty?this.renderShape(s,e[r].it,i[r].it):e[r].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,n,r,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var l=t.transforms.finalTransform;for(r=0;r=1?.99:e.h.v<=-1?-.99:e.h.v,u=o*c,h=Math.cos(l+e.a.v)*u+s[0],d=Math.sin(l+e.a.v)*u+s[1],p=r.createRadialGradient(h,d,0,s[0],s[1],o);var f,m=t.g.p,v=e.g.c,g=1;for(f=0;f=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),a=[r[0]/s,r[1]/s,r[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var h;for(e=this.comp.threeDElements.length,t=0;t=0;i-=1)e[i].animation.destroy(t)}function w(t,e,i){var n,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=r.length;for(n=0;nthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,n=this.animationData.layers,r=n.length,s=t.layers,a=s.length;for(i=0;ithis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.goToAndStop=function(t,e,i){i&&this.name!=i||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,i){this.goToAndStop(t,e,i),this.play()},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===typeof t[0]){var i,n=t.length;for(i=0;ii){var n=i;i=e,e=n}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"===typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,n=Math.min(t.length,e.length),r=0;for(i=0;i.5?c/(2-a-o):c/(a+o),a){case n:e=(r-s)/c+(r1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,n,r=t[0],s=t[1],a=t[2];if(0===s)e=i=n=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,r+1/3),i=hue2rgb(l,o,r),n=hue2rgb(l,o,r-1/3)}return[e,i,n,t[3]]}function linear(t,e,i,n,r){if(void 0!==n&&void 0!==r||(n=e,r=i,e=0,i=1),i=i)return r;var a=i===e?0:(t-e)/(i-e);if(!n.length)return n+(r-n)*a;var o,l=n.length,c=createTypedArray("float32",l);for(o=0;o1){for(n=0;n1?1:e<0?0:e;var a=t(e);if($bm_isInstanceOfArray(r)){var o,l=r.length,c=createTypedArray("float32",l);for(o=0;odata.k[e].t&&tdata.k[e+1].t-t?(i=e+2,n=data.k[e+1].t):(i=e+1,n=data.k[e].t);break}}-1===i&&(i=e+1,n=data.k[e].t)}else i=0,n=0;var s={};return s.index=i,s.time=n/elem.comp.globalData.frameRate,s}function key(t){var e,i,n;if(!data.k.length||"number"===typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var r=data.k[t].hasOwnProperty("s")?data.k[t].s:data.k[t-1].e;for(n=r.length,i=0;ic.length-1)&&(e=c.length-1),r=c[c.length-1-e].t,n=u-r),"pingpong"===t){var h=Math.floor((l-r)/n);if(h%2!==0)return this.getValueAtTime((n-(l-r)%n+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(r/this.comp.globalData.frameRate,0),p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-r)%n+r)/this.comp.globalData.frameRate,0),m=Math.floor((l-r)/n);if(this.pv.length){for(o=new Array(d.length),a=o.length,s=0;s=u)return this.pv;if(i?(n=e?Math.abs(elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-u),r=u+n):((!e||e>c.length-1)&&(e=c.length-1),r=c[e].t,n=r-u),"pingpong"===t){var h=Math.floor((u-l)/n);if(h%2===0)return this.getValueAtTime(((u-l)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(r/this.comp.globalData.frameRate,0),f=this.getValueAtTime((n-(u-l)%n+u)/this.comp.globalData.frameRate,0),m=Math.floor((u-l)/n)+1;if(this.pv.length){for(o=new Array(d.length),a=o.length,s=0;s1?(a-s)/(e-1):1,l=0,c=0;i=this.pv.length?createTypedArray("float32",this.pv.length):0;while(la){var u=o,h=i.c&&o===l-1?0:o+1,d=(a-c)/s[o].addedLength;n=bez.getPointInSegment(i.v[u],i.v[h],i.o[u],i.i[h],d,s[o]);break}c+=s[o].addedLength,o+=1}return n||(n=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),n},vectorOnPath:function(t,e,i){t=1==t?this.v.c?0:.999:t;var n=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),s=r[0]-n[0],a=r[1]-n[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));if(0===o)return[0,0];var l="tangent"===i?[s/o,a/o]:[-a/o,s/o];return l},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],l),extendPrototype([u],c),c.prototype.getValueAtTime=o,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,n,r){var s=h(t,e,i,n,r);return s.propertyIndex=e.ix,s.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,s):4===i&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}})(),function(){function t(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0}TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var n={};return this.copyData(n,t),n.t=i.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=t}();var ShapePathInterface=function(){return function(t,e,i){var n=e.sh;function r(t){if("Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t)return r.path}var s=propertyGroupFactory(r,i);return n.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(r,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r}}(),propertyGroupFactory=function(){return function(t,e){return function(i){return i=void 0===i?1:i,i<=0?t:e(i-1)}}}(),PropertyInterface=function(){return function(t,e){var i={_name:t};function n(t){return t=void 0===t?1:t,t<=0?i:e(--t)}return n}}(),ShapeExpressionInterface=function(){function t(t,e,a){var d,p=[],f=t?t.length:0;for(d=0;d1&&(defaultCurveSegments=t);roundValues(!(defaultCurveSegments>=50))}function inBrowser(){return"undefined"!==typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i0?i("div",{staticClass:"enterLine"},[i("i",{staticClass:"el-icon-caret-bottom bottomenter"})]):t._e()]),i("div",{staticClass:"conterpoint"},[i("button",{class:e.folderName==t.nowFolderName?"currworkbutton ":"workbutton",attrs:{type:"button",title:e.folderName},on:{click:function(e){return t.goFolderAndBack(n)}}},[t._v(" "+t._s(e.folderName)+" ")]),n0?i("div",{staticClass:"bottomlist"},[i("div",{staticClass:"leftlin2"}),i("div",{staticClass:"outPoint"},[t._l(e.listsShareFrom[0],(function(e,n){return i("div",{key:n,staticClass:"linkBtn2 leftlinebox",attrs:{type:"button"},on:{click:function(i){return t.showNewAppManagement(e)}}},[i("i",{staticClass:"leftline"}),i("span",{staticClass:"worllistt2",attrs:{title:e}},[t._v(t._s(e.nodeName))])])})),t._m(0,!0)],2)]):t._e()])})),0)])])])])]),i("div",{staticClass:"clear"}),i("div",{staticClass:"use-flex"},[i("div",{},[i("div",{staticClass:"yiyun-rows overflowinit"},[i("div",[i("div",{staticClass:"workline-wrap"},[i("div",{ref:"allFolderWrapEl",staticClass:"use-flex2 worktitlebox overflowinit use-relative"},[i("div",{staticClass:"worklinkBtngroup use-flex2 set-transition",class:{"height-0":t.isHideWorkFolders},style:t.setTranslate},[t.nowFolderIndex>2&&t.isCalcuteExchangeNode?i("div",{staticClass:"has-prev-node no-drag",on:{click:function(e){return e.stopPropagation(),t.nowFolderClick(t.nowFolderIndex-1)}}},[i("img",{staticClass:"prev-icon no-drag",attrs:{src:"/static/img/下拉箭头.svg"}})]):t._e(),t._l(t.listUserFolders,(function(e,n){return[t.isShowworklink?t._e():i("button",{key:n,ref:"nowFolderEl",refInFor:!0,staticClass:"no-drag",class:{"nowfolder-wrap yiyuntitle nowFolderName":n==t.nowFolderIndex,"yiyuntitle sectitle":n!==t.nowFolderIndex,"hide-folder":Math.abs(n-t.nowFolderIndex)>2},attrs:{type:"button"},on:{click:function(e){return t.nowFolderClick(n)}}},[i("div",{staticClass:"use-ellipsis",class:{"now-folder-text":n===t.nowFolderIndex,"other-folder-text":n!==t.nowFolderIndex}},[t._v(t._s(e.folderName)+" ")]),i("div",{staticClass:"jump-icon-wrap"},[n==t.nowFolderIndex?i("img",{staticClass:"jump-icon",attrs:{src:"/static/img/下拉箭头.svg"},on:{click:function(e){return e.stopPropagation(),t.showWorklinkPage(e)}}}):t._e()])])]})),t.totalNodeNum-t.nowFolderIndex>2&&t.isCalcuteExchangeNode&&t.totalNodeNum>5?i("div",{staticClass:"has-next-node no-drag",on:{click:function(e){return e.stopPropagation(),t.nowFolderClick(t.nowFolderIndex+1)}}},[i("img",{staticClass:"next-icon no-drag",attrs:{src:"/static/img/下拉箭头.svg"}})]):t._e(),i("div",{style:{display:t.divDisplay?"block":"none"}})],2)]),i("div",{staticClass:"yiyun-col-4"})])])])])]),i("div",{staticClass:"clear"})])])},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"outLine"},[i("i",{staticClass:"el-icon-caret-bottom bottomenter"})])}],s=(i("7db0"),i("4160"),i("13d5"),i("fb6a"),i("a9e3"),i("159b"),i("4f96")),a=(i("96cf"),i("1da1")),o=i("b428"),l=(i("3de1"),i("b775"),i("aa58"),{props:{listUserFolders:Array,nestTemplateLists:Array,nowFolderIndex:Number,nowFolderName:String,isShowlink:Boolean,isHideWorkFolders:{type:Boolean,defualt:!1},isCalcuteExchangeNode:{type:Boolean,default:!0}},data:function(){return{acceptIdList:[],sendIdList:[],isShowRightManager:!1,isShowworklink:!1,workheight:"",projId:sessionStorage.projId,groupLength:5,nowFolderEl:null,allFolderWrapEl:null,moveX:0,folderNodeIdMap:null,divDisplay:""}},updated:function(){if(this.nowFolderEl=this.$refs.nowFolderEl?this.$refs.nowFolderEl[this.nowFolderIndex]:null,this.allFolderWrapEl=this.$refs.allFolderWrapEl,this.nowFolderEl&&this.allFolderWrapEl){var t=this.nowFolderEl.offsetLeft,e=this.allFolderWrapEl.clientWidth/2-this.nowFolderEl.clientWidth/2;this.moveX=t-e}},mounted:function(){},methods:{hideWorklinkPage:function(){this.$emit("hideWorklinkPage",!1),this.isShowworklink=!1,this.workheight="workheightinit"},showWorklinkPage:function(){this.$emit("showWorklinkPage",!0),this.isShowworklink=!0,this.workheight="workheight"},showNewAppManagement:function(t){},closeAppManagePain:function(){this.isShowRightManager=!1},previousFolder:function(){this.$emit("previousFolder",!0)},nowFolderClick:function(t){this.$emit("nowFolderClick",t)},showAllAppManagement:function(){this.$emit("showAllAppManagement",!0)},goFolderAndBack:function(t){this.$emit("goFolderAndBack",t),this.hideWorklinkPage()},getNestItem:function(t,e,i){var n=this;t.forEach((function(t){t.children&&t.children.length>0&&(i=t.id,n.getNestItem(t.children,e,i)),t.isNest&&e.push({nodeId:t.id,parentNodeId:i})}))},getFileExchange:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var i,n,r,l,c,u,h,d,p,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("folder/queryAllNodeFolderListByProjectId",{projectId:sessionStorage.projId});case 2:return i=e.sent,n=Object(s["a"])(i.Data.folder),n[0],n[1],r=n.slice(2),l=r.reduce((function(t,e){return t[e.NodeId]={},t[e.NodeId].nodeName=e.FolderName,t[e.NodeId].id=e.Id,t}),{}),c=t.listUserFolders[0].templateId,t.listUserFolders.length,e.next=9,t.$fetchApi("template/queryTemplateNodeByTemplateId",{templateId:c});case 9:u=e.sent,h=u.Data?u.Data.children:[],d=[],t.getNestItem(h,d,p),f={nodeId:null,parentNodeId:c},d.unshift(f),t.folderNodeIdMap=l,d.forEach(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(i){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["g"])(c,i.parentNodeId,i.nodeId);case 2:n=e.sent,t.listUserFolders.forEach((function(t){n.Data.forEach((function(e){t.nodeId==e.PermCode&&1==e.Permission&&t.nodeId!==e.SysCode?t.listsShareFrom[1].push(l[e.SysCode]):t.nodeId==e.SysCode&&1==e.Permission&&t.nodeId!==e.PermCode&&t.listsShareFrom[0].push(l[e.PermCode])}))}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t.nestNodeFileExchangeOperate(c,l),t.nestTemplateLists.forEach(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.nestNodeFileExchangeOperate(i.TemplateId,l);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 19:case"end":return e.stop()}}),e)})))()},nestNodeFileExchangeOperate:function(t,e){var i=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(o["i"])(t);case 2:if(r=n.sent,0===r.Code){n.next=5;break}return n.abrupt("return");case 5:if(s=r.Data,s){n.next=8;break}return n.abrupt("return");case 8:i.listUserFolders.forEach((function(t){s.forEach((function(i){if(t.nodeId==i.PermCode&&1==i.Permission&&t.nodeId!==i.SysCode){var n=t.listsShareFrom[1].find((function(t){return t.nodeId==i.SysCode}));!n&&e[i.SysCode]&&t.listsShareFrom[1].push(e[i.SysCode])}else if(t.nodeId==i.SysCode&&1==i.Permission&&t.nodeId!==i.PermCode){var r=t.listsShareFrom[0].find((function(t){return t.nodeId==i.PermCode}));!r&&e[i.PermCode]&&t.listsShareFrom[0].push(e[i.PermCode])}}))}));case 9:case"end":return n.stop()}}),n)})))()},mergeFolderList:function(t){var e=Object(s["a"])(t),i=e[0],n=e.slice(1),r=i.superId,a=[],o={};return n.forEach((function(t){o[t.id]=t,t.listChildren=[];var e=t.superId;if(e!==r){var i=o[e];i&&i.listChildren.push(t)}else a.push(t)})),a}},computed:{nowFolderShareNodesLen:function(){return this.listUserFolders[this.nowFolderIndex]?this.listUserFolders[this.nowFolderIndex].listsShareFrom[1].length:0},setTranslate:function(){var t={transform:"translate(".concat(-this.moveX,"px, 0)")};return t},totalNodeNum:function(){return this.listUserFolders?this.listUserFolders.length:0}},watch:{moveX:function(t){var e=this;setTimeout((function(){e.divDisplay=!e.divDisplay}),500)},nowFolderIndex:function(t){t>-1&&(this.nowFolderEl=this.$refs.nowFolderEl?this.$refs.nowFolderEl[t]:this.nowFolderEl,this.allFolderWrapEl=this.$refs.allFolderWrapEl)},isShowlink:function(t){0==t&&this.hideWorklinkPage()},totalNodeNum:function(){this.isCalcuteExchangeNode&&this.getFileExchange()},nowFolderShareNodesLen:function(){this.$emit("finishGetExchangeNodes")}}}),c=l,u=(i("ce7d"),i("2877")),h=Object(u["a"])(c,n,r,!1,null,"3cfc48e6",null);e["a"]=h.exports},"9db1":function(t,e,i){"use strict";var n=i("cdec"),r=i("fb32"),s=i("f761"),a=i("5ce4"),o=i("84a3");function l(t){var e=new s(t),i=r(s.prototype.request,e);return n.extend(i,s.prototype,e),n.extend(i,e),i}var c=l(o);c.Axios=s,c.create=function(t){return l(a(c.defaults,t))},c.Cancel=i("827b"),c.CancelToken=i("089b"),c.isCancel=i("a642"),c.all=function(t){return Promise.all(t)},c.spread=i("24d7"),t.exports=c,t.exports.default=c},a0ba:function(t,e,i){},a642:function(t,e,i){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},aa58:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.isTemNest?i("div",{staticClass:"template_nest"},[i("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":t.isNestTempScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"取消",onBackBtnClick:t.enterDistWork,title:"为“"+t.title+"”添加新模板"}},[i("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(e){return e.stopPropagation(),t.enterNestTempImprove()}},slot:"right"},[t._v(" 选定模板 ")])]),i("div",{ref:"nestTemplateDesc",staticClass:"template_select_content"},[i("div",{staticClass:"template_connect"},[t._m(0),t._l(t.NestTemplateList,(function(e,n){return i("div",{key:e.Id,staticClass:"template_info",on:{click:function(i){return t.isChecked(n,e)}}},[i("div",{staticClass:"check_box",class:{checked:t.checkedIndex==n}},[i("i",{staticClass:"el-icon-check"})]),i("span",{staticClass:"template_info_name"},[t._v(t._s(e.TemplateName))])])}))],2)])],1):t._e(),t.isNestTemImprove?i("div",{staticClass:"template_improve"},[i("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":t.isTempImproveScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"选择模板",onBackBtnClick:t.enterSelectNestTemp,title:"完善模板信息"}},[i("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(e){return e.stopPropagation(),t.addNestTemplate()}},slot:"right"},[t._v(" 创建 ")])]),i("div",{ref:"tempImproveDesc",staticClass:"summary-wrap"},[i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("模板名称")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.selectTemplate.TemplateName))])]),i("div",{staticClass:"item"},[i("div",{staticClass:"item-title"},[t._v("创建时间")]),i("div",{staticClass:"item-value"},[t._v(t._s(t.createDate))])]),t._l(t.checkNewProjData.CustomProps,(function(e){return i("div",{key:e.Id,staticClass:"item"},[i("div",{staticClass:"item-title adjust-title-position"},[t._v(t._s((e.PropertyName?e.PropertyName:"自定义字段")+":"))]),i("div",{staticClass:"item-value"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.PropValue,expression:"prop.PropValue"}],staticClass:"prop-value-input",attrs:{type:"text"},domProps:{value:e.PropValue},on:{input:function(i){i.target.composing||t.$set(e,"PropValue",i.target.value)}}})])])}))],2)],1):t._e()])},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"template_info_title"},[i("span",[t._v("已建立交换关系的模板")])])}],s=(i("4160"),i("159b"),i("96cf"),i("1da1")),a=i("5530"),o=i("2909"),l=i("b0f9"),c=i("b1f3"),u={components:{TopHeader:c["a"]},props:{nestNodeFolder:Object,isTemNestInProp:{type:Boolean,default:!1}},data:function(){return{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(t){var e=this;l["n"](t).then((function(t){t.Data.propertys.forEach((function(t,i){e.checkNewProjData.CustomProps[i]={},e.checkNewProjData.CustomProps[i]["TempPropId"]=t.Id,e.checkNewProjData.CustomProps[i]["PropertyName"]=t.PropertyName,e.checkNewProjData.CustomProps[i]["PropValue"]="";var n=e.checkNewProjData.CustomProps;e.checkNewProjData.CustomProps=Object(o["a"])(n)})),e.checkNewProjData=Object(a["a"])({},e.checkNewProjData)}))},enterDistWork:function(){this.$emit("enterDistWork")},addNestTemplate:function(){var t=this;this.$confirm("重要提示:一旦确定模板并创建后,您将无法删除模板。","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"error"}).then(Object(s["a"])(regeneratorRuntime.mark((function e(){var i,n,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["p"](t.selectTemplate.TemplateId);case 2:return i=e.sent,n=i.Data,r={ProjId:t.nestNodeFolder.projId,NodeId:t.nestNodeFolder.nodeId,FolderId:t.nestNodeFolder.id,TemplateId:t.nestNodeFolder.templateId,NestJsmindData:n},e.next=7,l["b"](r);case 7:s=e.sent,0===s.Code&&(t.$notify({message:"“".concat(t.selectTemplate.TemplateName,"”模板嵌套成功。"),type:["success"]}),t.$emit("enterDistWork"));case 9:case"end":return e.stop()}}),e)})))).catch((function(t){return console.log(t)}))},isChecked:function(t,e){this.checkedIndex=t,this.selectTemplate=e},getNestTemplate:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var n;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,l["k"](t);case 2:n=i.sent,e.NestTemplateList=n.Data,e.NestTemplateList&&e.NestTemplateList.length&&"{}"===JSON.stringify(e.selectTemplate)&&(e.selectTemplate=e.NestTemplateList[0],e.checkedIndex=0);case 5:case"end":return i.stop()}}),i)})))()},watchNestTempScroll:function(){this.isNestTempScroll=this.nestTemplateDescEl.scrollTop>0},watchTempImproveScroll:function(){this.isTempImproveScroll=this.tempImproveDescEl.scrollTop>0}},watch:{isTemNestInProp:{handler:function(t){this.isTemNest=t,t&&this.getNestTemplate(this.nestNodeFolder.nodeId)},immediate:!0},isNestTempScroll:function(t){var e=this;t&&setTimeout((function(){e.nestTemplateDescEl=e.$refs.nestTemplateDesc,e.nestTemplateDescEl&&e.nestTemplateDescEl.addEventListener("scroll",e.watchNestTempScroll)}),50)}}},h=u,d=(i("4e5b"),i("2877")),p=Object(d["a"])(h,n,r,!1,null,"2e9a13da",null);e["a"]=p.exports},ab13:function(t,e,i){var n=i("b622"),r=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[r]=!1,"/./"[t](e)}catch(n){}}return!1}},b0e8:function(t,e,i){"use strict";var n=i("cdec");t.exports=function(t,e,i){return n.forEach(i,(function(i){t=i(t,e)})),t}},b391:function(t,e,i){"use strict";var n=i("cdec");t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,i,r,s,a){var o=[];o.push(t+"="+encodeURIComponent(e)),n.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),n.isString(r)&&o.push("path="+r),n.isString(s)&&o.push("domain="+s),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},ba12:function(t,e,i){"use strict";var n=i("6909"),r=i.n(n);r.a},bbb3:function(t,e,i){"use strict";var n=i("4995"),r=i.n(n);r.a},bc4f:function(t,e,i){"use strict";var n=i("d775"),r=i.n(n);r.a},bde5:function(t,e,i){"use strict";var n=i("6c26"),r=i.n(n);r.a},bf4b:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"yiyun_wenjian_list nohover no-left-margin"},[i("div",{staticClass:"yiyunwenjian_imgbox ",on:{click:t.showNewFiledialog}},[t._m(0),i("span",{staticClass:"newbtn-text"},[t._v("导入文件")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.isShowNewFiledialog,expression:"isShowNewFiledialog == true"}],staticClass:"dia_8",on:{click:t.hideNewFiledialog}}),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.isShowNewFiledialog,expression:"isShowNewFiledialog == true"}],staticClass:"newfiledialog"},[i("div",{staticClass:"dragareaBox"},[i("div",{staticClass:"dragarea_top uploadBtn",on:{click:function(e){t.selectSystemFiles(),t.isShowNewFiledialog=!1}}},[i("img",{staticClass:"uploadBtnImg",attrs:{src:"static\\img\\upload.png",alt:""}}),i("span",{staticClass:"uploadText"},[t._v("点击上传本地文件")])]),i("div",{staticClass:"right-line"}),i("div",{staticClass:"dragarea_top uploadBtn",on:{click:function(e){t.selectSystemFolders(),t.isShowNewFiledialog=!1}}},[i("img",{staticClass:"uploadBtnImg",attrs:{src:"static\\img\\文件夹.svg",alt:""}}),i("span",{staticClass:"uploadText"},[t._v("点击上传本地文件夹")])])]),t.listTempFiles.length>0?i("div",{staticClass:"creatbox_mid mt-10"},[t._m(1),i("div",{staticClass:"temp-file-container"},[i("ul",{staticClass:"listTemplateList"},t._l(t.listTempFiles,(function(e,n){return i("li",{key:e.id,staticClass:"temp-file",on:{click:function(i){return i.stopPropagation(),t.fileTempClick(e,n)}}},[i("span",{staticClass:"listTemplateTextBig",attrs:{title:e.extension}},[t._v(t._s(e.extension))]),i("span",{staticClass:"listTemplateText"},[t._v(t._s(e.fileName))])])})),0)])]):t._e()])])},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"new-btn"},[i("div",{staticClass:"hori draw-line"}),i("div",{staticClass:"vert draw-line"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title-head"},[i("div",{staticClass:"title-text"},[t._v("从样板文件中创建")])])}],s={props:{oneOf:Function,onButtnClick:Function,selectSystemFiles:Function,selectSystemFolders:Function,listTempFiles:{type:Array,default:function(){return[]}}},data:function(){return{selectedFileIndex:0,isShowNewFiledialog:!1,isShowNewTemplateFileDialog:!1}},methods:{showNewFiledialog:function(){this.isShowNewFiledialog=!0},hideNewFiledialog:function(){this.isShowNewFiledialog=!1},fileTempClick:function(t,e){this.$emit("fileTempClick",t),this.hideNewFiledialog()}}},a=s,o=(i("2001"),i("2877")),l=Object(o["a"])(a,n,r,!1,null,"76b9a2f1",null);e["a"]=l.exports},c286:function(t,e,i){},c61b:function(t,e,i){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},c740:function(t,e,i){"use strict";var n=i("23e7"),r=i("b727").findIndex,s=i("44d2"),a=i("ae40"),o="findIndex",l=!0,c=a(o);o in[]&&Array(1)[o]((function(){l=!1})),n({target:"Array",proto:!0,forced:l||!c},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s(o)},caad:function(t,e,i){"use strict";var n=i("23e7"),r=i("4d64").includes,s=i("44d2"),a=i("ae40"),o=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:!o},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},cdec:function(t,e,i){"use strict";var n=i("fb32"),r=Object.prototype.toString;function s(t){return"[object Array]"===r.call(t)}function a(t){return"undefined"===typeof t}function o(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function h(t){return"string"===typeof t}function d(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function f(t){return"[object Date]"===r.call(t)}function m(t){return"[object File]"===r.call(t)}function v(t){return"[object Blob]"===r.call(t)}function g(t){return"[object Function]"===r.call(t)}function y(t){return p(t)&&g(t.pipe)}function b(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function x(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function S(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),s(t))for(var i=0,n=t.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(t,e){var i="function"===typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),a=[];try{while((void 0===e||e-- >0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},o=100,l=5,c=1.7,u=function(t,e,i){var o=Object(n["getOverlapGroupHandler"])(e);return function(t,e,l,c){var u,d,p,g,x,C;if(!l)return o.getVisuals(t,e,l,c);var k=Object(r["getTimestampIdentifier"])(t),w=Object(n["getVisuals"])(e,k),V=y(w,k);try{for(var T=s(V),P=T.next();!P.done;P=T.next()){var I=P.value,_=[];try{for(var A=(p=void 0,s(I.visuals)),O=A.next();!O.done;O=A.next()){var E=O.value,D=b(E,k),F=f(D,_);if(!1===F){var M=v(D,_);M&&(D.parent=M,D.sibling=Object(n["hasOverlap"])(D.start,D.end,M.start,S(M.start,i)),D.index=M.index+1,M.children.push(D))}else{var L=a(m(D,_,F-1,F-1),1),B=(M=L[0],m(D,_,F+1,F+_.length,!0));D.children=B,D.index=F,M&&(D.parent=M,D.sibling=Object(n["hasOverlap"])(D.start,D.end,M.start,S(M.start,i)),M.children.push(D));try{for(var j=(x=void 0,s(B)),$=j.next();!$.done;$=j.next()){var N=$.value;N.parent===M&&(N.parent=D);var R=N.index-D.index<=1;R&&D.sibling&&Object(n["hasOverlap"])(D.start,S(D.start,i),N.start,N.end)&&(N.sibling=!0)}}catch(H){x={error:H}}finally{try{$&&!$.done&&(C=j.return)&&C.call(j)}finally{if(x)throw x.error}}}_.push(D)}}catch(z){p={error:z}}finally{try{O&&!O.done&&(g=A.return)&&g.call(A)}finally{if(p)throw p.error}}h(_,i)}}catch(G){u={error:G}}finally{try{P&&!P.done&&(d=T.return)&&d.call(T)}finally{if(u)throw u.error}}return w.sort((function(t,e){return t.left-e.left||t.event.startTimestampIdentifier-e.event.startTimestampIdentifier})),w}};function h(t,e){var i,n;try{for(var r=s(t),a=r.next();!a.done;a=r.next()){var u=a.value,h=u.visual,p=u.parent,f=x(u)+1,m=p?p.visual.left:0,v=o-m,y=Math.min(l,o/f),b=d(u,t),S=v/(f-u.index+1),C=v/(f-u.index+(u.sibling?1:0))*b;p&&(h.left=u.sibling?m+S:m+y),h.width=g(u,t,e)?o-h.left:Math.min(o-h.left,C*c)}}catch(k){i={error:k}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}}function d(t,e){if(!t.children.length)return 1;var i=t.index+e.length,n=t.children.reduce((function(t,e){return Math.min(t,e.index)}),i);return n-t.index}function p(t,e){var i,r,a=[];try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;Object(n["hasOverlap"])(t.start,t.end,c.start,c.end)&&a.push(c.index)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function f(t,e){var i=p(t,e);i.sort();for(var n=0;n=i&&d.index<=r&&Object(n["hasOverlap"])(t.start,t.end,d.start,d.end)&&c.push(d)}}catch(f){o={error:f}}finally{try{h&&!h.done&&(l=u.return)&&l.call(u)}finally{if(o)throw o.error}}if(a&&c.length>0){var p=c.reduce((function(t,e){return Math.min(t,e.index)}),c[0].index);return c.filter((function(t){return t.index===p}))}return c}function v(t,e){var i,r,a=null;try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;Object(n["hasOverlap"])(t.start,t.end,c.start,c.end)&&(null===a||c.index>a.index)&&(a=c)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function g(t,e,i){var r,a;try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;if(c!==t&&c.index>t.index&&Object(n["hasOverlap"])(t.start,S(t.start,i),c.start,c.end))return!1}}catch(u){r={error:u}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}return!0}function y(t,e){var i,r,o,l,c=[];try{for(var u=s(t),h=u.next();!h.done;h=u.next()){var d=h.value,p=a(Object(n["getNormalizedRange"])(d.event,e),2),f=p[0],m=p[1],v=!1;try{for(var g=(o=void 0,s(c)),y=g.next();!y.done;y=g.next()){var b=y.value;if(Object(n["hasOverlap"])(f,m,b.start,b.end)){b.visuals.push(d),b.end=Math.max(b.end,m),v=!0;break}}}catch(x){o={error:x}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}v||c.push({start:f,end:m,visuals:[d]})}}catch(S){i={error:S}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return c}function b(t,e){var i=a(Object(n["getNormalizedRange"])(t.event,e),2),r=i[0],s=i[1];return{parent:null,sibling:!0,index:0,visual:t,start:r,end:s,children:[]}}function x(t){var e,i,n=t.index;try{for(var r=s(t.children),a=r.next();!a.done;a=r.next()){var o=a.value,l=x(o);l>n&&(n=l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}return n}function S(t,e){var i=t%100,n=i+e,r=Math.floor(n/60),s=n%60;return t-i+100*r+s}},"./src/components/VCalendar/util/events.ts": +/*! exports provided: stack */function(t,e,i){"use strict";i.r(e),i.d(e,"stack",(function(){return u}));var n=i(/*! ./common */"./src/components/VCalendar/modes/common.ts"),r=i(/*! ../util/timestamp */"./src/components/VCalendar/util/timestamp.ts"),s=function(t){var e="function"===typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(t,e){var i="function"===typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),a=[];try{while((void 0===e||e-- >0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},o=100,l=5,c=1.7,u=function(t,e,i){var o=Object(n["getOverlapGroupHandler"])(e);return function(t,e,l,c){var u,d,p,g,x,C;if(!l)return o.getVisuals(t,e,l,c);var k=Object(r["getTimestampIdentifier"])(t),w=Object(n["getVisuals"])(e,k),V=y(w,k);try{for(var T=s(V),P=T.next();!P.done;P=T.next()){var I=P.value,A=[];try{for(var O=(p=void 0,s(I.visuals)),E=O.next();!E.done;E=O.next()){var _=E.value,D=b(_,k),F=f(D,A);if(!1===F){var M=v(D,A);M&&(D.parent=M,D.sibling=Object(n["hasOverlap"])(D.start,D.end,M.start,S(M.start,i)),D.index=M.index+1,M.children.push(D))}else{var L=a(m(D,A,F-1,F-1),1),B=(M=L[0],m(D,A,F+1,F+A.length,!0));D.children=B,D.index=F,M&&(D.parent=M,D.sibling=Object(n["hasOverlap"])(D.start,D.end,M.start,S(M.start,i)),M.children.push(D));try{for(var j=(x=void 0,s(B)),$=j.next();!$.done;$=j.next()){var N=$.value;N.parent===M&&(N.parent=D);var R=N.index-D.index<=1;R&&D.sibling&&Object(n["hasOverlap"])(D.start,S(D.start,i),N.start,N.end)&&(N.sibling=!0)}}catch(H){x={error:H}}finally{try{$&&!$.done&&(C=j.return)&&C.call(j)}finally{if(x)throw x.error}}}A.push(D)}}catch(z){p={error:z}}finally{try{E&&!E.done&&(g=O.return)&&g.call(O)}finally{if(p)throw p.error}}h(A,i)}}catch(G){u={error:G}}finally{try{P&&!P.done&&(d=T.return)&&d.call(T)}finally{if(u)throw u.error}}return w.sort((function(t,e){return t.left-e.left||t.event.startTimestampIdentifier-e.event.startTimestampIdentifier})),w}};function h(t,e){var i,n;try{for(var r=s(t),a=r.next();!a.done;a=r.next()){var u=a.value,h=u.visual,p=u.parent,f=x(u)+1,m=p?p.visual.left:0,v=o-m,y=Math.min(l,o/f),b=d(u,t),S=v/(f-u.index+1),C=v/(f-u.index+(u.sibling?1:0))*b;p&&(h.left=u.sibling?m+S:m+y),h.width=g(u,t,e)?o-h.left:Math.min(o-h.left,C*c)}}catch(k){i={error:k}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}}function d(t,e){if(!t.children.length)return 1;var i=t.index+e.length,n=t.children.reduce((function(t,e){return Math.min(t,e.index)}),i);return n-t.index}function p(t,e){var i,r,a=[];try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;Object(n["hasOverlap"])(t.start,t.end,c.start,c.end)&&a.push(c.index)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function f(t,e){var i=p(t,e);i.sort();for(var n=0;n=i&&d.index<=r&&Object(n["hasOverlap"])(t.start,t.end,d.start,d.end)&&c.push(d)}}catch(f){o={error:f}}finally{try{h&&!h.done&&(l=u.return)&&l.call(u)}finally{if(o)throw o.error}}if(a&&c.length>0){var p=c.reduce((function(t,e){return Math.min(t,e.index)}),c[0].index);return c.filter((function(t){return t.index===p}))}return c}function v(t,e){var i,r,a=null;try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;Object(n["hasOverlap"])(t.start,t.end,c.start,c.end)&&(null===a||c.index>a.index)&&(a=c)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function g(t,e,i){var r,a;try{for(var o=s(e),l=o.next();!l.done;l=o.next()){var c=l.value;if(c!==t&&c.index>t.index&&Object(n["hasOverlap"])(t.start,S(t.start,i),c.start,c.end))return!1}}catch(u){r={error:u}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}return!0}function y(t,e){var i,r,o,l,c=[];try{for(var u=s(t),h=u.next();!h.done;h=u.next()){var d=h.value,p=a(Object(n["getNormalizedRange"])(d.event,e),2),f=p[0],m=p[1],v=!1;try{for(var g=(o=void 0,s(c)),y=g.next();!y.done;y=g.next()){var b=y.value;if(Object(n["hasOverlap"])(f,m,b.start,b.end)){b.visuals.push(d),b.end=Math.max(b.end,m),v=!0;break}}}catch(x){o={error:x}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}v||c.push({start:f,end:m,visuals:[d]})}}catch(S){i={error:S}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return c}function b(t,e){var i=a(Object(n["getNormalizedRange"])(t.event,e),2),r=i[0],s=i[1];return{parent:null,sibling:!0,index:0,visual:t,start:r,end:s,children:[]}}function x(t){var e,i,n=t.index;try{for(var r=s(t.children),a=r.next();!a.done;a=r.next()){var o=a.value,l=x(o);l>n&&(n=l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}return n}function S(t,e){var i=t%100,n=i+e,r=Math.floor(n/60),s=n%60;return t-i+100*r+s}},"./src/components/VCalendar/util/events.ts": /*!*************************************************!*\ !*** ./src/components/VCalendar/util/events.ts ***! \*************************************************/ @@ -250,7 +250,7 @@ /*!****************************************************!*\ !*** ./src/components/VCalendar/util/timestamp.ts ***! \****************************************************/ -/*! exports provided: PARSE_REGEX, PARSE_TIME, DAYS_IN_MONTH, DAYS_IN_MONTH_LEAP, DAYS_IN_MONTH_MIN, DAYS_IN_MONTH_MAX, MONTH_MAX, MONTH_MIN, DAY_MIN, DAYS_IN_WEEK, MINUTES_IN_HOUR, MINUTE_MAX, MINUTES_IN_DAY, HOURS_IN_DAY, HOUR_MAX, FIRST_HOUR, OFFSET_YEAR, OFFSET_MONTH, OFFSET_HOUR, OFFSET_TIME, getStartOfWeek, getEndOfWeek, getStartOfMonth, getEndOfMonth, validateTime, parseTime, validateTimestamp, parseTimestamp, parseDate, getDayIdentifier, getTimeIdentifier, getTimestampIdentifier, updateRelative, isTimedless, updateHasTime, updateMinutes, updateWeekday, updateFormatted, getWeekday, daysInMonth, copyTimestamp, padNumber, getDate, getTime, nextMinutes, nextDay, prevDay, relativeDays, diffMinutes, findWeekday, getWeekdaySkips, timestampToDate, createDayList, createIntervalList, createNativeLocaleFormatter */function(t,e,i){"use strict";i.r(e),i.d(e,"PARSE_REGEX",(function(){return s})),i.d(e,"PARSE_TIME",(function(){return a})),i.d(e,"DAYS_IN_MONTH",(function(){return o})),i.d(e,"DAYS_IN_MONTH_LEAP",(function(){return l})),i.d(e,"DAYS_IN_MONTH_MIN",(function(){return c})),i.d(e,"DAYS_IN_MONTH_MAX",(function(){return u})),i.d(e,"MONTH_MAX",(function(){return h})),i.d(e,"MONTH_MIN",(function(){return d})),i.d(e,"DAY_MIN",(function(){return p})),i.d(e,"DAYS_IN_WEEK",(function(){return f})),i.d(e,"MINUTES_IN_HOUR",(function(){return m})),i.d(e,"MINUTE_MAX",(function(){return v})),i.d(e,"MINUTES_IN_DAY",(function(){return g})),i.d(e,"HOURS_IN_DAY",(function(){return y})),i.d(e,"HOUR_MAX",(function(){return b})),i.d(e,"FIRST_HOUR",(function(){return x})),i.d(e,"OFFSET_YEAR",(function(){return S})),i.d(e,"OFFSET_MONTH",(function(){return C})),i.d(e,"OFFSET_HOUR",(function(){return k})),i.d(e,"OFFSET_TIME",(function(){return w})),i.d(e,"getStartOfWeek",(function(){return V})),i.d(e,"getEndOfWeek",(function(){return T})),i.d(e,"getStartOfMonth",(function(){return P})),i.d(e,"getEndOfMonth",(function(){return I})),i.d(e,"validateTime",(function(){return _})),i.d(e,"parseTime",(function(){return A})),i.d(e,"validateTimestamp",(function(){return O})),i.d(e,"parseTimestamp",(function(){return E})),i.d(e,"parseDate",(function(){return D})),i.d(e,"getDayIdentifier",(function(){return F})),i.d(e,"getTimeIdentifier",(function(){return M})),i.d(e,"getTimestampIdentifier",(function(){return L})),i.d(e,"updateRelative",(function(){return B})),i.d(e,"isTimedless",(function(){return j})),i.d(e,"updateHasTime",(function(){return $})),i.d(e,"updateMinutes",(function(){return N})),i.d(e,"updateWeekday",(function(){return R})),i.d(e,"updateFormatted",(function(){return H})),i.d(e,"getWeekday",(function(){return z})),i.d(e,"daysInMonth",(function(){return G})),i.d(e,"copyTimestamp",(function(){return W})),i.d(e,"padNumber",(function(){return Y})),i.d(e,"getDate",(function(){return U})),i.d(e,"getTime",(function(){return q})),i.d(e,"nextMinutes",(function(){return X})),i.d(e,"nextDay",(function(){return K})),i.d(e,"prevDay",(function(){return Z})),i.d(e,"relativeDays",(function(){return J})),i.d(e,"diffMinutes",(function(){return Q})),i.d(e,"findWeekday",(function(){return tt})),i.d(e,"getWeekdaySkips",(function(){return et})),i.d(e,"timestampToDate",(function(){return it})),i.d(e,"createDayList",(function(){return nt})),i.d(e,"createIntervalList",(function(){return rt})),i.d(e,"createNativeLocaleFormatter",(function(){return st}));var n=i(/*! ../../../util/dateTimeUtils */"./src/util/dateTimeUtils.ts");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var s=/^(\d{4})-(\d{1,2})(-(\d{1,2}))?([^\d]+(\d{1,2}))?(:(\d{1,2}))?(:(\d{1,2}))?$/,a=/(\d\d?)(:(\d\d?)|)(:(\d\d?)|)/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],l=[0,31,29,31,30,31,30,31,31,30,31,30,31],c=28,u=31,h=12,d=1,p=1,f=7,m=60,v=59,g=1440,y=24,b=23,x=0,S=1e4,C=100,k=100,w=1e4;function V(t,e,i){var n=W(t);return tt(n,e[0],Z),H(n),i&&B(n,i,n.hasTime),n}function T(t,e,i){var n=W(t);return tt(n,e[e.length-1]),H(n),i&&B(n,i,n.hasTime),n}function P(t){var e=W(t);return e.day=p,R(e),H(e),e}function I(t){var e=W(t);return e.day=G(e.year,e.month),R(e),H(e),e}function _(t){return"number"===typeof t&&isFinite(t)||!!a.exec(t)||"object"===r(t)&&isFinite(t.hour)&&isFinite(t.minute)}function A(t){if("number"===typeof t)return t;if("string"===typeof t){var e=a.exec(t);return!!e&&60*parseInt(e[1])+parseInt(e[3]||0)}return"object"===r(t)&&("number"===typeof t.hour&&"number"===typeof t.minute&&60*t.hour+t.minute)}function O(t){return"number"===typeof t&&isFinite(t)||"string"===typeof t&&!!s.exec(t)||t instanceof Date}function E(t,e,i){if(void 0===e&&(e=!1),"number"===typeof t&&isFinite(t)&&(t=new Date(t)),t instanceof Date){var n=D(t);return i&&B(n,i,n.hasTime),n}if("string"!==typeof t){if(e)throw new Error(t+" is not a valid timestamp. It must be a Date, number of seconds since Epoch, or a string in the format of YYYY-MM-DD or YYYY-MM-DD hh:mm. Zero-padding is optional and seconds are ignored.");return null}var r=s.exec(t);if(!r){if(e)throw new Error(t+" is not a valid timestamp. It must be a Date, number of seconds since Epoch, or a string in the format of YYYY-MM-DD or YYYY-MM-DD hh:mm. Zero-padding is optional and seconds are ignored.");return null}var a={date:t,time:"",year:parseInt(r[1]),month:parseInt(r[2]),day:parseInt(r[4])||1,hour:parseInt(r[6])||0,minute:parseInt(r[8])||0,weekday:0,hasDay:!!r[4],hasTime:!(!r[6]||!r[8]),past:!1,present:!1,future:!1};return R(a),H(a),i&&B(a,i,a.hasTime),a}function D(t){return H({date:"",time:"",year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),weekday:t.getDay(),hour:t.getHours(),minute:t.getMinutes(),hasDay:!0,hasTime:!0,past:!1,present:!0,future:!1})}function F(t){return t.year*S+t.month*C+t.day}function M(t){return t.hour*k+t.minute}function L(t){return F(t)*w+M(t)}function B(t,e,i){void 0===i&&(i=!1);var n=F(e),r=F(t),s=n===r;return t.hasTime&&i&&s&&(n=M(e),r=M(t),s=n===r),t.past=rn,t}function j(t){return t instanceof Date||"number"===typeof t&&isFinite(t)}function $(t,e,i){return t.hasTime!==e&&(t.hasTime=e,e||(t.hour=b,t.minute=v,t.time=q(t)),i&&B(t,i,t.hasTime)),t}function N(t,e,i){return t.hasTime=!0,t.hour=Math.floor(e/m),t.minute=e%m,t.time=q(t),i&&B(t,i,!0),t}function R(t){return t.weekday=z(t),t}function H(t){return t.time=q(t),t.date=U(t),t}function z(t){if(t.hasDay){var e=Math.floor,i=t.day,n=(t.month+9)%h+1,r=e(t.year/100),s=t.year%100-(t.month<=2?1:0);return((i+e(2.6*n-.2)-2*r+s+e(s/4)+e(r/4))%7+7)%7}return t.weekday}function G(t,e){return Object(n["isLeapYear"])(t)?l[e]:o[e]}function W(t){var e=t.date,i=t.time,n=t.year,r=t.month,s=t.day,a=t.weekday,o=t.hour,l=t.minute,c=t.hasDay,u=t.hasTime,h=t.past,d=t.present,p=t.future;return{date:e,time:i,year:n,month:r,day:s,weekday:a,hour:o,minute:l,hasDay:c,hasTime:u,past:h,present:d,future:p}}function Y(t,e){var i=String(t);while(i.lengthm)t.minute-=m,t.hour++,t.hour>=y&&(K(t),t.hour=x);return t}function K(t){return t.day++,t.weekday=(t.weekday+1)%f,t.day>c&&t.day>G(t.year,t.month)&&(t.day=p,t.month++,t.month>h&&(t.month=d,t.year++)),t}function Z(t){return t.day--,t.weekday=(t.weekday+6)%f,t.day=0)e(t);return t}function Q(t,e){var i=525600*(e.year-t.year),n=43800*(e.month-t.month),r=1440*(e.day-t.day),s=60*(e.hour-t.hour),a=e.minute-t.minute;return i+n+r+s+a}function tt(t,e,i,n){void 0===i&&(i=K),void 0===n&&(n=6);while(t.weekday!==e&&--n>=0)i(t);return t}function et(t){for(var e=[1,1,1,1,1,1,1],i=[0,0,0,0,0,0,0],n=0;nn,t}function j(t){return t instanceof Date||"number"===typeof t&&isFinite(t)}function $(t,e,i){return t.hasTime!==e&&(t.hasTime=e,e||(t.hour=b,t.minute=v,t.time=q(t)),i&&B(t,i,t.hasTime)),t}function N(t,e,i){return t.hasTime=!0,t.hour=Math.floor(e/m),t.minute=e%m,t.time=q(t),i&&B(t,i,!0),t}function R(t){return t.weekday=z(t),t}function H(t){return t.time=q(t),t.date=U(t),t}function z(t){if(t.hasDay){var e=Math.floor,i=t.day,n=(t.month+9)%h+1,r=e(t.year/100),s=t.year%100-(t.month<=2?1:0);return((i+e(2.6*n-.2)-2*r+s+e(s/4)+e(r/4))%7+7)%7}return t.weekday}function G(t,e){return Object(n["isLeapYear"])(t)?l[e]:o[e]}function W(t){var e=t.date,i=t.time,n=t.year,r=t.month,s=t.day,a=t.weekday,o=t.hour,l=t.minute,c=t.hasDay,u=t.hasTime,h=t.past,d=t.present,p=t.future;return{date:e,time:i,year:n,month:r,day:s,weekday:a,hour:o,minute:l,hasDay:c,hasTime:u,past:h,present:d,future:p}}function Y(t,e){var i=String(t);while(i.lengthm)t.minute-=m,t.hour++,t.hour>=y&&(K(t),t.hour=x);return t}function K(t){return t.day++,t.weekday=(t.weekday+1)%f,t.day>c&&t.day>G(t.year,t.month)&&(t.day=p,t.month++,t.month>h&&(t.month=d,t.year++)),t}function Z(t){return t.day--,t.weekday=(t.weekday+6)%f,t.day=0)e(t);return t}function Q(t,e){var i=525600*(e.year-t.year),n=43800*(e.month-t.month),r=1440*(e.day-t.day),s=60*(e.hour-t.hour),a=e.minute-t.minute;return i+n+r+s+a}function tt(t,e,i,n){void 0===i&&(i=K),void 0===n&&(n=6);while(t.weekday!==e&&--n>=0)i(t);return t}function et(t){for(var e=[1,1,1,1,1,1,1],i=[0,0,0,0,0,0,0],n=0;n0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},l=function(){for(var t=[],e=0;e":">"};function C(t){return t.replace(/[&<>]/g,(function(t){return S[t]||t}))}function k(t,e){for(var i={},n=0;n=i&&r0)&&!(n=s.next()).done)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s["return"])&&i.call(s)}finally{if(r)throw r.error}}return a},l=function(){for(var t=[],e=0;e":">"};function C(t){return t.replace(/[&<>]/g,(function(t){return S[t]||t}))}function k(t,e){for(var i={},n=0;n=i&&r32?this.$notify({message:"项目名称不得超出32个字符。",type:"warning"}):(this.isProjName=!1,this.isTemSelect=!0,this.isTemImprove=!1,this.isTemNest=!1,this.getSelectTemplateData())}else this.$notify({message:"请输入项目名称。",type:["warning"]})},enterProjNameInput:function(){this.isProjName=!0,this.isTemSelect=!1},enterTemplateImprove:function(){this.isTemSelect=!1,this.isTemImprove=!0,this.getTempProps(this.selectTemplate.Id)},getTempProps:function(e){var t=this;p["n"](e).then((function(e){e.Data.propertys.forEach((function(e,a){t.checkNewProjData.CustomProps[a]={},t.checkNewProjData.CustomProps[a]["TempPropId"]=e.Id,t.checkNewProjData.CustomProps[a]["PropertyName"]=e.PropertyName,t.checkNewProjData.CustomProps[a]["PropValue"]="";var r=t.checkNewProjData.CustomProps;t.checkNewProjData.CustomProps=Object(n["a"])(r)})),t.checkNewProjData=Object(c["a"])({},t.checkNewProjData)}))},isChecked:function(e,t){this.checkedIndex=e,this.selectTemplate=t},setSystemCoverRandom:function(){var e=Math.ceil(10*Math.random());while(this.srcIndex===e)e=Math.ceil(10*Math.random());this.srcIndex=e,this.coverSrc="static/img/faceImg/face".concat("".concat(100+this.srcIndex).slice(1),".png"),this.newProjData.projectData.showImgUrl=this.coverSrc},coverUploadSuccess:function(e){var t=Object(m["c"])(e.ossUrl);this.coverSrc=t,this.newProjData.projectData.showImgUrl=t},getSelectTemplateData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["m"](e.companyId);case 2:a=t.sent,r=a.Data||[],e.templateList=r,e.templateList&&e.templateList.length&&"{}"===JSON.stringify(e.selectTemplate)&&(e.selectTemplate=r[0],e.checkedIndex=0);case 6:case"end":return t.stop()}}),t)})))()},getSelectTemplateList:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var r,s,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,p["p"](e);case 2:r=a.sent,s=r.Data,o=s.children||[],t.newProjData.listFolder=[],o.forEach((function(e){var a={folderID:"",projID:"",superID:"",levelID:"",firstFolderID:"",tempNodeID:e.id,folderName:e.topic,fileCount:0,childCount:0,modifyUserID:"",deleted:0,default:!0,listUser:[],manageUser:[]};t.newProjData.listFolder.push(a)}));case 7:case"end":return a.stop()}}),a)})))()},createProject:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isDisableCreate=!0,e.newProjData.userId=sessionStorage.userId,e.newProjData.projectData.templateID=e.selectTemplate.Id,e.newProjData.projectData.showImgUrl=e.coverSrc,a=e,e.checkNewProjData.Proj.ProjName=e.newProjData.projectData.projName,e.checkNewProjData.Proj.CompanyId=e.$store.state.currentCompanyId,e.checkNewProjData.Proj.ShowImgUrl=String(e.newProjData.projectData.showImgUrl),e.checkNewProjData.Proj.TemplateId=e.selectTemplate.Id,e.checkNewProjData.Proj.CreateUserId=sessionStorage.userId,e.checkNewProjData.Proj.ModifyUserId=sessionStorage.userId,t.next=13,p["p"](e.selectTemplate.Id);case 13:r=t.sent,e.checkNewProjData.Node=r.Data,e.$fetchApi("project/createProject",e.checkNewProjData).then((function(t){0===t.Code?(a.$notify({message:"新项目创建成功。",type:["success"]}),sessionStorage.projId=t.Data,sessionStorage.createUserID=sessionStorage.userId,sessionStorage.templateID=e.selectTemplate.Id,sessionStorage.allocated=0,e.$router.push({name:"projdetail",query:{isShowDistworkPage:!0}}).catch((function(e){console.log(e)}))):a.$notify.error({message:"项目创建失败, 请稍后重试。",offset:100,duration:5e3})})).catch((function(e){return console.log(e)})),s={API:"project/createProject",Action:"创建项目",CompanyName:sessionStorage.CompanyName,Subject:e.checkNewProjData.Proj.ProjName,Source:sessionStorage.client,ProjectName:e.checkNewProjData.Proj.ProjName},Object(u["b"])("operation/record",s);case 18:case"end":return t.stop()}}),t)})))()},loadTempNodeTree:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.templateId,t.next=3,p["p"](a);case 3:if(r=t.sent,e.listTempNodeTree=r.Data?[r.Data]:[],r.Data){t.next=7;break}return t.abrupt("return");case 7:e.nodeClick(r.Data);case 8:case"end":return t.stop()}}),t)})))()},watchProjDescScroll:function(){this.isProjDescScroll=this.projDescEl.scrollTop>0}},watch:{isProjDescScroll:function(e){var t=this;e&&setTimeout((function(){t.projDescEl=t.$refs.projdesc,t.projDescEl&&t.projDescEl.addEventListener("scroll",t.watchProjDescScroll)}),50)}},mounted:function(){this.projDescEl&&this.projDescEl.addEventListener("scroll",this.watchProjDescScroll)},beforeDestroy:function(){this.projDescEl&&this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll)}},h=j,D=(a("04c4"),a("2877")),P=Object(D["a"])(h,r,s,!1,null,null,null);t["default"]=P.exports}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-3261285a.b93fddd2.js b/dist/static/js/chunk-3261285a.b93fddd2.js deleted file mode 100644 index aa39b791..00000000 --- a/dist/static/js/chunk-3261285a.b93fddd2.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3261285a"],{"04c4":function(e,t,a){"use strict";var r=a("14d6"),s=a.n(r);s.a},"14d6":function(e,t,a){},a341:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"new-proj"},[a("AppHeader",{staticClass:"new-proj-header",attrs:{theme:"basis",showBackBtn:"",isShowTopBar:!0,backBtnTitle:"取消项目创建"}}),a("div",{staticClass:"proj_manage"},[a("div",{staticClass:"proj_manage_content"},[a("div",{staticClass:"projModule adjust-top-radius"},[e.isProjName?a("div",{staticClass:"projName_input"},[a("div",{staticClass:"newProj_header "},[a("div",{staticClass:"newProj_title"},[e._v(" 输入项目名称 ")]),a("div",{staticClass:"nextbtn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.enterTemplateSelect()}}},[e._v("下一步")])]),a("div",{staticClass:"newProj_content"},[a("div",{staticClass:"upload_img"},[a("div",{staticClass:"upload_imgBox",style:e.showBackground(e.coverSrc)},[a("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[a("span",[e._v("编辑")])]),a("span",{staticClass:"faceBtn",on:{click:function(t){return t.stopPropagation(),e.setSystemCoverRandom(t)}}},[e._v("使用随机封面")])],1)]),a("div",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.newProjData.projectData.projName,expression:"newProjData.projectData.projName"}],staticClass:"input_projname",attrs:{type:"text",placeholder:"点击输入 请输入32个字之内的字符"},domProps:{value:e.newProjData.projectData.projName},on:{input:function(t){t.target.composing||e.$set(e.newProjData.projectData,"projName",t.target.value)}}})])])]):e._e(),e.isTemSelect?a("div",{staticClass:"template_select"},[a("TopHeader",{ref:"projdesc",staticClass:"set_position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"修改项目名称",onBackBtnClick:e.enterProjNameInput,title:"选择项目模板"}},[a("div",{staticClass:"slot_btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.enterTemplateImprove()}},slot:"right"},[e._v("选定模板")])]),a("div",{staticClass:"template_select_content"},e._l(e.templateList,(function(t,r){return a("div",{key:t.Id,staticClass:"template_info",on:{click:function(a){return a.stopPropagation(),e.isChecked(r,t)}}},[a("div",{staticClass:"check_box",class:{checked:e.checkedIndex==r}},[a("i",{staticClass:"el-icon-check"})]),a("span",{staticClass:"template_info_name"},[e._v(e._s(t.TempName))])])})),0)],1):e._e(),e.isTemImprove?a("div",{staticClass:"template_improve"},[a("TopHeader",{staticClass:"set_position header-wrap",attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"选择模板",onBackBtnClick:e.enterTemplateSelect,title:"完善模板信息"}},[a("div",{staticClass:"slot_btn",attrs:{slot:"right",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.createProject()}},slot:"right"},[e._v("创建")])]),a("div",{staticClass:"template_improve_content"},[a("div",{staticClass:"template_improve_info"},[a("div",{staticClass:"template_title"},[e._v("模板名称:")]),a("div",{staticClass:"template_title_info"},[e._v(e._s(e.selectTemplate.TempName))])]),a("div",{staticClass:"template_improve_info"},[a("div",{staticClass:"template_title"},[e._v("创建时间:")]),a("div",{staticClass:"template_title_info"},[e._v(e._s(e.createDate))])]),e._l(e.checkNewProjData.CustomProps,(function(t){return a("div",{key:t.Id,staticClass:"template_improve_info template_improve_infoInput"},[a("div",{staticClass:"template_title"},[e._v(e._s((t.PropertyName?t.PropertyName:"自定义字段")+":"))]),a("div",{staticClass:"template_title_info"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.PropValue,expression:"prop.PropValue"}],staticClass:"input_projname",attrs:{type:"text",placeholder:"点击输入"},domProps:{value:t.PropValue},on:{input:function(a){a.target.composing||e.$set(t,"PropValue",a.target.value)}}})])])}))],2)],1):e._e()])])])],1)},s=[],o=(a("4160"),a("159b"),a("96cf"),a("1da1")),c=a("5530"),i=a("2909"),n=a("b1f3"),l=a("f96e"),p=a("b0f9"),m=(a("93d6"),a("5ab9")),d=a("9e5b"),u=a("b775"),h={components:{AppHeader:l["a"],TopHeader:n["a"],FileUploader:d["a"]},props:{},data:function(){return{isProjName:!0,isTemSelect:!1,isTemImprove:!1,templateId:sessionStorage.templateID,listTempNodeTree:[],NestTemplateList:[],otherTemplateList:[],tempNodeList:[],nestNodeId:"",title:"",checkedIndex:NaN,selectTemplate:{},srcIndex:2,coverSrc:"static/img/faceImg/face01.png",templateList:[],isProjDescScroll:!1,projDescEl:null,plastScrollTime:null,createDate:(new Date).toLocaleDateString(),checkNewProjData:{Proj:{ProjName:"",CompanyId:"",Notice:"",ShowImgUrl:"",TemplateId:"",CreateUserId:"",ModifyUserId:""},Node:{},CustomProps:[]},newProjData:{projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""}}},methods:{showBackground:function(e){var t=this.$options.filters["resolveImg"],a=t(e);return{background:"center/cover no-repeat url(".concat(a,")")}},enterTemplateSelect:function(){if(void 0!=this.newProjData.projectData.projName&&null!=this.newProjData.projectData.projName&&""!=this.newProjData.projectData.projName){var e=/[/\\]{1,}/g;e.test(this.newProjData.projectData.projName)?this.$notify({message:"项目名称请不要包含'/' '\\'等字符。",type:["warning"]}):this.newProjData.projectData.projName.length>32?this.$notify({message:"项目名称不得超出32个字符。",type:"warning"}):(this.isProjName=!1,this.isTemSelect=!0,this.isTemImprove=!1,this.isTemNest=!1,this.getSelectTemplateData())}else this.$notify({message:"请输入项目名称。",type:["warning"]})},enterProjNameInput:function(){this.isProjName=!0,this.isTemSelect=!1},enterTemplateImprove:function(){this.isTemSelect=!1,this.isTemImprove=!0,this.getTempProps(this.selectTemplate.Id)},getTempProps:function(e){var t=this;p["m"](e).then((function(e){e.Data.propertys.forEach((function(e,a){t.checkNewProjData.CustomProps[a]={},t.checkNewProjData.CustomProps[a]["TempPropId"]=e.Id,t.checkNewProjData.CustomProps[a]["PropertyName"]=e.PropertyName,t.checkNewProjData.CustomProps[a]["PropValue"]="";var r=t.checkNewProjData.CustomProps;t.checkNewProjData.CustomProps=Object(i["a"])(r)})),t.checkNewProjData=Object(c["a"])({},t.checkNewProjData)}))},isChecked:function(e,t){this.checkedIndex=e,this.selectTemplate=t},setSystemCoverRandom:function(){var e=Math.ceil(10*Math.random());while(this.srcIndex===e)e=Math.ceil(10*Math.random());this.srcIndex=e,10===this.srcIndex?this.coverSrc="static/img/faceImg/face"+this.srcIndex+".png":this.coverSrc="static/img/faceImg/face0"+this.srcIndex+".png",this.newProjData.projectData.showImgUrl=this.coverSrc},coverUploadSuccess:function(e){var t=Object(m["c"])(e.ossUrl);this.coverSrc=t,this.newProjData.projectData.showImgUrl=t},getSelectTemplateData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["n"]();case 2:a=t.sent,r=a.Data||[],e.templateList=r,e.templateList&&e.templateList.length&&"{}"===JSON.stringify(e.selectTemplate)&&(e.selectTemplate=r[0],e.checkedIndex=0);case 6:case"end":return t.stop()}}),t)})))()},getSelectTemplateList:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var r,s,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,p["o"](e);case 2:r=a.sent,s=r.Data,o=s.children||[],t.newProjData.listFolder=[],o.forEach((function(e){var a={folderID:"",projID:"",superID:"",levelID:"",firstFolderID:"",tempNodeID:e.id,folderName:e.topic,fileCount:0,childCount:0,modifyUserID:"",deleted:0,default:!0,listUser:[],manageUser:[]};t.newProjData.listFolder.push(a)}));case 7:case"end":return a.stop()}}),a)})))()},createProject:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isDisableCreate=!0,e.newProjData.userId=sessionStorage.userId,e.newProjData.projectData.templateID=e.selectTemplate.Id,e.newProjData.projectData.showImgUrl=e.coverSrc,a=e,e.checkNewProjData.Proj.ProjName=e.newProjData.projectData.projName,e.checkNewProjData.Proj.CompanyId=e.$store.state.currentCompanyId,e.checkNewProjData.Proj.ShowImgUrl=String(e.newProjData.projectData.showImgUrl),e.checkNewProjData.Proj.TemplateId=e.selectTemplate.Id,e.checkNewProjData.Proj.CreateUserId=sessionStorage.userId,e.checkNewProjData.Proj.ModifyUserId=sessionStorage.userId,t.next=13,p["o"](e.selectTemplate.Id);case 13:r=t.sent,e.checkNewProjData.Node=r.Data,e.$fetchApi("project/createProject",e.checkNewProjData).then((function(t){0===t.Code?(a.$notify({message:"新项目创建成功。",type:["success"]}),sessionStorage.projId=t.Data,sessionStorage.createUserID=sessionStorage.userId,sessionStorage.templateID=e.selectTemplate.Id,sessionStorage.allocated=0,e.$router.push({name:"projdetail",query:{isShowDistworkPage:!0}}).catch((function(e){console.log(e)}))):a.$notify.error({message:"项目创建失败, 请稍后重试。",offset:100,duration:5e3})})).catch((function(e){return console.log(e)})),s={API:"project/createProject",Action:"创建项目",CompanyName:sessionStorage.CompanyName,Subject:e.checkNewProjData.Proj.ProjName,Source:sessionStorage.client,ProjectName:e.checkNewProjData.Proj.ProjName},Object(u["b"])("operation/record",s);case 18:case"end":return t.stop()}}),t)})))()},loadTempNodeTree:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.templateId,t.next=3,p["o"](a);case 3:if(r=t.sent,e.listTempNodeTree=r.Data?[r.Data]:[],r.Data){t.next=7;break}return t.abrupt("return");case 7:e.nodeClick(r.Data);case 8:case"end":return t.stop()}}),t)})))()},watchProjDescScroll:function(){this.isProjDescScroll=this.projDescEl.scrollTop>0}},watch:{isProjDescScroll:function(e){var t=this;e&&setTimeout((function(){t.projDescEl=t.$refs.projdesc,t.projDescEl&&t.projDescEl.addEventListener("scroll",t.watchProjDescScroll)}),50)}},mounted:function(){this.projDescEl&&this.projDescEl.addEventListener("scroll",this.watchProjDescScroll)},beforeDestroy:function(){this.projDescEl&&this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll)}},j=h,v=(a("04c4"),a("2877")),D=Object(v["a"])(j,r,s,!1,null,null,null);t["default"]=D.exports}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-347878ae.154aa5f7.js b/dist/static/js/chunk-347878ae.47e6d8f9.js similarity index 100% rename from dist/static/js/chunk-347878ae.154aa5f7.js rename to dist/static/js/chunk-347878ae.47e6d8f9.js diff --git a/dist/static/js/chunk-3ccf94d4.1667d95c.js b/dist/static/js/chunk-3ccf94d4.72adece4.js similarity index 53% rename from dist/static/js/chunk-3ccf94d4.1667d95c.js rename to dist/static/js/chunk-3ccf94d4.72adece4.js index 0530c265..8370c7da 100644 --- a/dist/static/js/chunk-3ccf94d4.1667d95c.js +++ b/dist/static/js/chunk-3ccf94d4.72adece4.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ccf94d4"],{"01a8":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?i("div",{staticClass:"app-header-top"},[i("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[i("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),i("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),i("div",{staticClass:"top-center"}),i("div",{staticClass:"top-right"},[i("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[i("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),i("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?i("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):i("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),i("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[i("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),i("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?i("div",{staticClass:"app-header-top"}):e._e(),i("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[i("div",{staticClass:"app-header-content-left"},[e._t("left",[i("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),i("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),i("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),i("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?i("span",{on:{click:e.toRecycle}},[i("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?i("user-center"):e._e()],2)])])},s=[],o=i("1392"),a=i("1d40"),r={components:{UserCenter:o["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:a["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize},isOnLine:function(){return this.$store.state.gatewayState}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){a["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),a["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),a["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){a["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=r,l=(i("8fc1"),i("2877")),w=Object(l["a"])(c,n,s,!1,null,"06f5aedd",null);t["a"]=w.exports},"8fc1":function(e,t,i){"use strict";var n=i("99ab"),s=i.n(n);s.a},"99ab":function(e,t,i){},ae7f:function(e,t,i){},bb14:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-nav"},e._l(e.list,(function(t){return i("div",{key:t.key,staticClass:"app-nav-item no-drag",class:{"app-nav-item-active":0===e.currentKey.indexOf(t.key)},on:{click:function(i){return e.goto(t.key)}}},[e._v(" "+e._s(t.label)+" ")])})),0)},s=[],o=(i("b0c0"),{props:{list:Array},data:function(){return{currentKey:this.$route.name}},methods:{goto:function(e){this.$router.push({name:e})}},watch:{$route:function(e){this.currentKey=e.name}}}),a=o,r=(i("c84d"),i("2877")),c=Object(r["a"])(a,n,s,!1,null,"49e804bc",null);t["a"]=c.exports},c84d:function(e,t,i){"use strict";var n=i("ae7f"),s=i.n(n);s.a},db21:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("app-header",{directives:[{name:"show",rawName:"v-show",value:e.showHeader,expression:"showHeader"}],attrs:{theme:"white",showUserCenter:""},scopedSlots:e._u([{key:"left",fn:function(){return[e._v("LOCKING")]},proxy:!0},{key:"center",fn:function(){return[i("app-nav",{attrs:{list:e.navList}})]},proxy:!0}])}),i("router-view")],1)},s=[],o=(i("13d5"),i("b0c0"),i("f96e")),a=i("bb14"),r=function(e,t){return{key:e,label:t}},c=[r("company_home","首页"),r("company_user","通讯录")],l=c.reduce((function(e,t){return e[t.key]=!0,e}),{}),w=function(e){return l[e]},u={components:{AppHeader:o["a"],AppNav:a["a"]},data:function(){return{showHeader:w(this.$route.name),navList:c}},methods:{},watch:{$route:function(e){this.showHeader=w(e.name)}}},d=u,h=i("2877"),p=Object(h["a"])(d,n,s,!1,null,null,null);t["default"]=p.exports},f96e:function(e,t,i){"use strict";var n=i("01a8");i.d(t,"a",(function(){return n["a"]}))}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ccf94d4"],{"01a8":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?n("div",{staticClass:"app-header-top"},[n("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[n("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),n("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),n("div",{staticClass:"top-center"}),n("div",{staticClass:"top-right"},[n("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[n("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),n("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),n("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?n("div",{staticClass:"app-header-top"}):e._e(),n("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),n("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?n("span",{on:{click:e.toRecycle}},[n("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?n("user-center"):e._e()],2)])])},s=[],o=n("1392"),a=n("1d40"),r={components:{UserCenter:o["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:a["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize},isOnLine:function(){return this.$store.state.gatewayState}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){a["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),a["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),a["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){a["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=r,l=(n("8fc1"),n("2877")),w=Object(l["a"])(c,i,s,!1,null,"06f5aedd",null);t["a"]=w.exports},"8fc1":function(e,t,n){"use strict";var i=n("99ab"),s=n.n(i);s.a},"99ab":function(e,t,n){},ae7f:function(e,t,n){},bb14:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-nav"},e._l(e.list,(function(t){return n("div",{key:t.key,staticClass:"app-nav-item no-drag",class:{"app-nav-item-active":0===e.currentKey.indexOf(t.key)},on:{click:function(n){return e.goto(t.key)}}},[e._v(" "+e._s(t.label)+" ")])})),0)},s=[],o=(n("b0c0"),{props:{list:Array},data:function(){return{currentKey:this.$route.name}},methods:{goto:function(e){this.$router.push({name:e})}},watch:{$route:function(e){this.currentKey=e.name}}}),a=o,r=(n("c84d"),n("2877")),c=Object(r["a"])(a,i,s,!1,null,"49e804bc",null);t["a"]=c.exports},c84d:function(e,t,n){"use strict";var i=n("ae7f"),s=n.n(i);s.a},db21:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("app-header",{directives:[{name:"show",rawName:"v-show",value:e.showHeader,expression:"showHeader"}],attrs:{theme:"white",showUserCenter:""},scopedSlots:e._u([{key:"left",fn:function(){return[e._v("LOCKING")]},proxy:!0},{key:"center",fn:function(){return[n("app-nav",{attrs:{list:e.navList}})]},proxy:!0}])}),n("router-view")],1)},s=[],o=(n("13d5"),n("b0c0"),n("f96e")),a=n("bb14"),r=function(e,t){return{key:e,label:t}},c=[r("company_home","首页"),r("company_user","通讯录"),r("company_template","模板与应用")],l=c.reduce((function(e,t){return e[t.key]=!0,e}),{}),w=function(e){return l[e]},u={components:{AppHeader:o["a"],AppNav:a["a"]},data:function(){return{showHeader:w(this.$route.name),navList:c}},methods:{},watch:{$route:function(e){this.showHeader=w(e.name)}}},d=u,h=n("2877"),p=Object(h["a"])(d,i,s,!1,null,null,null);t["default"]=p.exports},f96e:function(e,t,n){"use strict";var i=n("01a8");n.d(t,"a",(function(){return i["a"]}))}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-3fbc85f3.331e06cd.js b/dist/static/js/chunk-3fbc85f3.331e06cd.js deleted file mode 100644 index 4369ff46..00000000 --- a/dist/static/js/chunk-3fbc85f3.331e06cd.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3fbc85f3"],{"01a8":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?n("div",{staticClass:"app-header-top"},[n("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[n("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),n("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),n("div",{staticClass:"top-center"}),n("div",{staticClass:"top-right"},[n("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[n("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),n("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),n("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?n("div",{staticClass:"app-header-top"}):e._e(),n("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),n("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?n("span",{on:{click:e.toRecycle}},[n("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?n("user-center"):e._e()],2)])])},a=[],i=n("1392"),c=n("1d40"),s={components:{UserCenter:i["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:c["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize},isOnLine:function(){return this.$store.state.gatewayState}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){c["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),c["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),c["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){c["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},o=s,u=(n("8fc1"),n("2877")),l=Object(u["a"])(o,r,a,!1,null,"06f5aedd",null);t["a"]=l.exports},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("6b75");function a(e){if(Array.isArray(e))return Object(r["a"])(e)}var i=n("db90"),c=n("06c5");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e){return a(e)||Object(i["a"])(e)||Object(c["a"])(e)||s()}},"5be0":function(e,t,n){},"6dcf":function(e,t,n){"use strict";var r=n("5be0"),a=n.n(r);a.a},"8fc1":function(e,t,n){"use strict";var r=n("99ab"),a=n.n(r);a.a},"99ab":function(e,t,n){},b0f9:function(e,t,n){"use strict";n.d(t,"n",(function(){return i})),n.d(t,"s",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"m",(function(){return p})),n.d(t,"p",(function(){return h})),n.d(t,"f",(function(){return f})),n.d(t,"r",(function(){return b})),n.d(t,"l",(function(){return g})),n.d(t,"k",(function(){return y})),n.d(t,"b",(function(){return x})),n.d(t,"o",(function(){return O})),n.d(t,"j",(function(){return R})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return S})),n.d(t,"a",(function(){return I})),n.d(t,"g",(function(){return E})),n.d(t,"c",(function(){return q})),n.d(t,"e",(function(){return H})),n.d(t,"q",(function(){return U}));n("96cf");var r=n("1da1"),a=n("b775");function i(){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function s(e){return o.apply(this,arguments)}function o(){return o=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function u(e){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return d=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function h(e){return w.apply(this,arguments)}function w(){return w=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function f(e){return m.apply(this,arguments)}function m(){return m=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function b(e){return v.apply(this,arguments)}function v(){return v=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/updateTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return k.apply(this,arguments)}function k(){return k=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function y(e){return B.apply(this,arguments)}function B(){return B=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByNodeId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function x(e){return j.apply(this,arguments)}function j(){return j=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/connectNestTemplateFolder",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function O(e){return C.apply(this,arguments)}function C(){return C=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function R(e,t,n){return W.apply(this,arguments)}function W(){return W=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:n,nestedNodeId:r});case 2:return i=e.sent,e.abrupt("return",Object(a["c"])(i));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function _(e){return T.apply(this,arguments)}function T(){return T=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/fileExchange",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function S(e){return N.apply(this,arguments)}function N(){return N=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),N.apply(this,arguments)}function I(e){return M.apply(this,arguments)}function M(){return M=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/addTemplateNodeModelFile",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function E(e){return L.apply(this,arguments)}function L(){return L=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function q(e){return F.apply(this,arguments)}function F(){return F=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}function H(e){return $.apply(this,arguments)}function $(){return $=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function U(e){return z.apply(this,arguments)}function z(){return z=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/renameTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}},b1f3:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[n("div",{staticClass:"app-header-content"},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?n("user-center"):e._e()],2)]),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},a=[],i=n("1392"),c={components:{UserCenter:i["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean},data:function(){return{isWindowScrollIng:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},s=c,o=(n("6dcf"),n("2877")),u=Object(o["a"])(s,r,a,!1,null,"373b66dc",null);t["a"]=u.exports},db90:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0");function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},f96e:function(e,t,n){"use strict";var r=n("01a8");n.d(t,"a",(function(){return r["a"]}))}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-3fbc85f3.fd30866f.js b/dist/static/js/chunk-3fbc85f3.fd30866f.js new file mode 100644 index 00000000..03d22e94 --- /dev/null +++ b/dist/static/js/chunk-3fbc85f3.fd30866f.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3fbc85f3"],{"01a8":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?n("div",{staticClass:"app-header-top"},[n("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[n("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),n("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),n("div",{staticClass:"top-center"}),n("div",{staticClass:"top-right"},[n("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[n("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),n("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),n("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?n("div",{staticClass:"app-header-top"}):e._e(),n("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),n("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?n("span",{on:{click:e.toRecycle}},[n("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?n("user-center"):e._e()],2)])])},a=[],i=n("1392"),c=n("1d40"),s={components:{UserCenter:i["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:c["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize},isOnLine:function(){return this.$store.state.gatewayState}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){c["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),c["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),c["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){c["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},o=s,u=(n("8fc1"),n("2877")),l=Object(u["a"])(o,r,a,!1,null,"06f5aedd",null);t["a"]=l.exports},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("6b75");function a(e){if(Array.isArray(e))return Object(r["a"])(e)}var i=n("db90"),c=n("06c5");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e){return a(e)||Object(i["a"])(e)||Object(c["a"])(e)||s()}},"5be0":function(e,t,n){},"6dcf":function(e,t,n){"use strict";var r=n("5be0"),a=n.n(r);a.a},"8fc1":function(e,t,n){"use strict";var r=n("99ab"),a=n.n(r);a.a},"99ab":function(e,t,n){},b0f9:function(e,t,n){"use strict";n.d(t,"o",(function(){return i})),n.d(t,"m",(function(){return s})),n.d(t,"t",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"n",(function(){return h})),n.d(t,"q",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"s",(function(){return g})),n.d(t,"l",(function(){return y})),n.d(t,"k",(function(){return x})),n.d(t,"b",(function(){return O})),n.d(t,"p",(function(){return R})),n.d(t,"j",(function(){return _})),n.d(t,"h",(function(){return S})),n.d(t,"i",(function(){return N})),n.d(t,"a",(function(){return E})),n.d(t,"g",(function(){return q})),n.d(t,"c",(function(){return H})),n.d(t,"e",(function(){return U})),n.d(t,"r",(function(){return A}));n("96cf");var r=n("1da1"),a=n("b775");function i(){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function s(e){return o.apply(this,arguments)}function o(){return o=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByCompanyId",{companyId:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function u(e){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return d=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function h(e){return w.apply(this,arguments)}function w(){return w=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function m(e){return f.apply(this,arguments)}function f(){return f=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function b(e){return v.apply(this,arguments)}function v(){return v=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return k.apply(this,arguments)}function k(){return k=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/updateTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function y(e){return B.apply(this,arguments)}function B(){return B=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function x(e){return j.apply(this,arguments)}function j(){return j=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByNodeId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function O(e){return C.apply(this,arguments)}function C(){return C=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/connectNestTemplateFolder",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function R(e){return W.apply(this,arguments)}function W(){return W=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function _(e,t,n){return T.apply(this,arguments)}function T(){return T=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:n,nestedNodeId:r});case 2:return i=e.sent,e.abrupt("return",Object(a["c"])(i));case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function S(e){return I.apply(this,arguments)}function I(){return I=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/fileExchange",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function N(e){return M.apply(this,arguments)}function M(){return M=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function E(e){return L.apply(this,arguments)}function L(){return L=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/addTemplateNodeModelFile",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function q(e){return F.apply(this,arguments)}function F(){return F=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}function H(e){return $.apply(this,arguments)}function $(){return $=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function U(e){return z.apply(this,arguments)}function z(){return z=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}function A(e){return P.apply(this,arguments)}function P(){return P=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/renameTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}},b1f3:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[n("div",{staticClass:"app-header-content"},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?n("user-center"):e._e()],2)]),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},a=[],i=n("1392"),c={components:{UserCenter:i["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean},data:function(){return{isWindowScrollIng:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},s=c,o=(n("6dcf"),n("2877")),u=Object(o["a"])(s,r,a,!1,null,"373b66dc",null);t["a"]=u.exports},db90:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0");function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},f96e:function(e,t,n){"use strict";var r=n("01a8");n.d(t,"a",(function(){return r["a"]}))}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-4a5d94c9.8cd926f9.js b/dist/static/js/chunk-4a5d94c9.8cd926f9.js new file mode 100644 index 00000000..1036126e --- /dev/null +++ b/dist/static/js/chunk-4a5d94c9.8cd926f9.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a5d94c9"],{"01a8":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?n("div",{staticClass:"app-header-top"},[n("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[n("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),n("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),n("div",{staticClass:"top-center"}),n("div",{staticClass:"top-right"},[n("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[n("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),n("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),n("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?n("div",{staticClass:"app-header-top"}):e._e(),n("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),n("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?n("span",{on:{click:e.toRecycle}},[n("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?n("user-center"):e._e()],2)])])},a=[],i=n("1392"),c=n("1d40"),s={components:{UserCenter:i["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:c["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize},isOnLine:function(){return this.$store.state.gatewayState}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){c["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),c["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),c["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){c["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},o=s,u=(n("8fc1"),n("2877")),p=Object(u["a"])(o,r,a,!1,null,"06f5aedd",null);t["a"]=p.exports},2827:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("96cf");var r=n("1da1"),a=n("b775");function i(e,t){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("templateCompany/addTemplateCompany",{companyId:t,templateId:n});case 2:return r=e.sent,Object(a["c"])(r),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}},"8fc1":function(e,t,n){"use strict";var r=n("99ab"),a=n.n(r);a.a},"99ab":function(e,t,n){},b0f9:function(e,t,n){"use strict";n.d(t,"o",(function(){return i})),n.d(t,"m",(function(){return s})),n.d(t,"t",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"n",(function(){return w})),n.d(t,"q",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"s",(function(){return g})),n.d(t,"l",(function(){return x})),n.d(t,"k",(function(){return j})),n.d(t,"b",(function(){return B})),n.d(t,"p",(function(){return C})),n.d(t,"j",(function(){return T})),n.d(t,"h",(function(){return I})),n.d(t,"i",(function(){return M})),n.d(t,"a",(function(){return q})),n.d(t,"g",(function(){return H})),n.d(t,"c",(function(){return F})),n.d(t,"e",(function(){return z})),n.d(t,"r",(function(){return U}));n("96cf");var r=n("1da1"),a=n("b775");function i(){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function s(e){return o.apply(this,arguments)}function o(){return o=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByCompanyId",{companyId:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function u(e){return p.apply(this,arguments)}function p(){return p=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function l(e){return d.apply(this,arguments)}function d(){return d=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function w(e){return h.apply(this,arguments)}function h(){return h=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function m(e){return f.apply(this,arguments)}function f(){return f=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function b(e){return v.apply(this,arguments)}function v(){return v=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return y.apply(this,arguments)}function y(){return y=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/updateTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function x(e){return O.apply(this,arguments)}function O(){return O=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function j(e){return k.apply(this,arguments)}function k(){return k=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByNodeId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function B(e){return R.apply(this,arguments)}function R(){return R=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/connectNestTemplateFolder",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function C(e){return W.apply(this,arguments)}function W(){return W=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function T(e,t,n){return N.apply(this,arguments)}function N(){return N=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:n,nestedNodeId:r});case 2:return i=e.sent,e.abrupt("return",Object(a["c"])(i));case 4:case"end":return e.stop()}}),e)}))),N.apply(this,arguments)}function I(e){return _.apply(this,arguments)}function _(){return _=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/fileExchange",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function M(e){return S.apply(this,arguments)}function S(){return S=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function q(e){return L.apply(this,arguments)}function L(){return L=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/addTemplateNodeModelFile",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function H(e){return E.apply(this,arguments)}function E(){return E=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function F(e){return $.apply(this,arguments)}function $(){return $=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function z(e){return P.apply(this,arguments)}function P(){return P=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}function U(e){return A.apply(this,arguments)}function A(){return A=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/renameTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),A.apply(this,arguments)}},b3b1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));n("96cf");var r=n("1da1"),a=n("b775");function i(){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("industry/queryAllIndustry");case 2:return t=e.sent,e.abrupt("return",t.Data||[]);case 4:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function s(e){return o.apply(this,arguments)}function o(){return o=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("industry/renameIndustry",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-4c803a36.c42e11ac.js b/dist/static/js/chunk-4c803a36.7bddece5.js similarity index 100% rename from dist/static/js/chunk-4c803a36.c42e11ac.js rename to dist/static/js/chunk-4c803a36.7bddece5.js diff --git a/dist/static/js/chunk-550c5be4.857ba9cb.js b/dist/static/js/chunk-550c5be4.cfedd08d.js similarity index 100% rename from dist/static/js/chunk-550c5be4.857ba9cb.js rename to dist/static/js/chunk-550c5be4.cfedd08d.js diff --git a/dist/static/js/chunk-584d398d.b1f975fd.js b/dist/static/js/chunk-584d398d.4efa8ffb.js similarity index 100% rename from dist/static/js/chunk-584d398d.b1f975fd.js rename to dist/static/js/chunk-584d398d.4efa8ffb.js diff --git a/dist/static/js/chunk-5e79f418.5d961cee.js b/dist/static/js/chunk-5e79f418.5d961cee.js new file mode 100644 index 00000000..d59d8c88 --- /dev/null +++ b/dist/static/js/chunk-5e79f418.5d961cee.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e79f418"],{4083:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template_list"},[n("div",{staticClass:"layout_content"},[e._m(0),n("section",{staticClass:"layout_warp_4 template_grid"},[n("div",{staticClass:"card add",on:{click:e.addTemp}},[e._m(1)]),e._l(e.listTemp,(function(t){return n("div",{key:t.id,staticClass:"card",on:{click:function(n){return n.stopPropagation(),e.checkTemplateDetail(t)}}},[n("div",{staticClass:"card_inner"},[n("h3",{staticClass:"card_title"},[e._v(e._s(t.tempName))]),e._m(2,!0)])])}))],2)])])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"title_section mt-40"},[n("div",{staticClass:"EC_col_24"},[n("div",{staticClass:"adminnavBox",staticStyle:{"margin-bottom":"0"}},[n("h3",[e._v("已添加模板")])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card_inner"},[n("i",{staticClass:"addpicImg_large"}),n("span",{staticClass:"addlebel"},[e._v("添加模板")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card_right"},[n("i",{staticClass:"Cicon icon font_family icon-gerenshezhi card_icon"})])}],u=(n("d81d"),n("96cf"),n("1da1")),c=n("b775"),i=n("3de1"),s=n("b0f9"),p={data:function(){return{companyId:sessionStorage.companyId,listTemp:[]}},filters:{},mounted:function(){this.loadlistTemp()},methods:{checkTemplateDetail:function(e){this.$router.push({name:"company_template_detail",params:{name:e.tempName,id:e.id,prevViewName:"模板与应用"}})},addTemp:function(){this.$router.push({name:"company_template_market"})},loadlistTemp:function(){var e=this;return Object(u["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["m"])(e.companyId);case 2:if(n=t.sent,Object(c["c"])(n),!n.Code){t.next=6;break}return t.abrupt("return");case 6:e.listTemp=(n.Data||[]).map((function(e){return Object(i["b"])(e)}));case 7:case"end":return t.stop()}}),t)})))()}}},o=p,l=(n("7747"),n("2877")),m=Object(l["a"])(o,r,a,!1,null,"75440960",null);t["default"]=m.exports},7747:function(e,t,n){"use strict";var r=n("abb0"),a=n.n(r);a.a},abb0:function(e,t,n){},b0f9:function(e,t,n){"use strict";n.d(t,"o",(function(){return u})),n.d(t,"m",(function(){return i})),n.d(t,"t",(function(){return p})),n.d(t,"d",(function(){return l})),n.d(t,"n",(function(){return d})),n.d(t,"q",(function(){return b})),n.d(t,"f",(function(){return w})),n.d(t,"s",(function(){return v})),n.d(t,"l",(function(){return O})),n.d(t,"k",(function(){return x})),n.d(t,"b",(function(){return _})),n.d(t,"p",(function(){return T})),n.d(t,"j",(function(){return I})),n.d(t,"h",(function(){return q})),n.d(t,"i",(function(){return E})),n.d(t,"a",(function(){return F})),n.d(t,"g",(function(){return M})),n.d(t,"c",(function(){return S})),n.d(t,"e",(function(){return A})),n.d(t,"r",(function(){return P}));n("96cf");var r=n("1da1"),a=n("b775");function u(){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function i(e){return s.apply(this,arguments)}function s(){return s=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByCompanyId",{companyId:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function p(e){return o.apply(this,arguments)}function o(){return o=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function l(e){return m.apply(this,arguments)}function m(){return m=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function d(e){return f.apply(this,arguments)}function f(){return f=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function b(e){return h.apply(this,arguments)}function h(){return h=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function w(e){return y.apply(this,arguments)}function y(){return y=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function v(e){return j.apply(this,arguments)}function j(){return j=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/updateTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function O(e){return g.apply(this,arguments)}function g(){return g=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function x(e){return R.apply(this,arguments)}function R(){return R=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByNodeId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function _(e){return k.apply(this,arguments)}function k(){return k=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/connectNestTemplateFolder",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function T(e){return C.apply(this,arguments)}function C(){return C=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function I(e,t,n){return N.apply(this,arguments)}function N(){return N=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r){var u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:n,nestedNodeId:r});case 2:return u=e.sent,e.abrupt("return",Object(a["c"])(u));case 4:case"end":return e.stop()}}),e)}))),N.apply(this,arguments)}function q(e){return B.apply(this,arguments)}function B(){return B=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/fileExchange",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function E(e){return $.apply(this,arguments)}function $(){return $=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function F(e){return D.apply(this,arguments)}function D(){return D=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/addTemplateNodeModelFile",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function M(e){return J.apply(this,arguments)}function J(){return J=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),J.apply(this,arguments)}function S(e){return z.apply(this,arguments)}function z(){return z=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}function A(e){return L.apply(this,arguments)}function L(){return L=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function P(e){return Q.apply(this,arguments)}function Q(){return Q=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/renameTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),Q.apply(this,arguments)}}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-638e5b5a.5ba57e63.js b/dist/static/js/chunk-638e5b5a.b2f51abe.js similarity index 100% rename from dist/static/js/chunk-638e5b5a.5ba57e63.js rename to dist/static/js/chunk-638e5b5a.b2f51abe.js diff --git a/dist/static/js/chunk-655d6881.0f0e3dfc.js b/dist/static/js/chunk-655d6881.0f0e3dfc.js new file mode 100644 index 00000000..be7937ca --- /dev/null +++ b/dist/static/js/chunk-655d6881.0f0e3dfc.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-655d6881"],{"0a95":function(e,t,a){},"86d3":function(e,t,a){"use strict";var i=a("0a95"),n=a.n(i);n.a},be38:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"template_market"},[a("app-header",{attrs:{theme:"basis",showBackBtn:!0,backBtnTitle:"模板与应用"},scopedSlots:e._u([{key:"center",fn:function(){return[e._v("模板市场")]},proxy:!0}])}),a("section",{staticClass:"card"},[a("div",{staticClass:"card_left"},[a("div",{staticClass:"card_search_box"},[a("el-input",{staticClass:"el-input_mini",attrs:{placeholder:"搜索模板","prefix-icon":"Cicon icon font_family icon-icon_sousuo iconsize_mini"},model:{value:e.searchKeywords,callback:function(t){e.searchKeywords=t},expression:"searchKeywords"}})],1),a("div",{staticClass:"list"},e._l(e.templateTreeList,(function(t){return a("div",{key:t.id,staticClass:"list_item",class:{list_item_active:e.currentHeadNode===t},attrs:{title:t.label},on:{click:function(a){a.stopPropagation(),e.currentHeadNode=t}}},[e._v(e._s(t.label))])})),0)]),a("div",{staticClass:"card_right"},[e.currentHeadNode&&e.currentHeadNode?e._l(e.filterViewList(e.currentHeadNode.children),(function(t){return a("div",{key:t.id,staticClass:"block"},[a("div",{staticClass:"block_label"},[e._v(e._s(t.label))]),a("div",{staticClass:"block_item_box"},[e._l(t.children,(function(t){return a("div",{key:t.id,staticClass:"block_item"},[a("div",{staticClass:"block_item_split_line"}),a("div",{staticClass:"block_item_left",on:{click:function(a){return a.stopPropagation(),e.checkTemplateDetail(t)}}},[a("i",{staticClass:"Cicon icon font_family icon-gerenshezhi block_item_logo"})]),a("div",{staticClass:"block_item_right"},[a("div",{staticClass:"block_item_right_label",on:{click:function(a){return a.stopPropagation(),e.checkTemplateDetail(t)}}},[e._v(e._s(t.label))]),a("div",{staticClass:"block_item_right_intro",on:{click:function(a){return a.stopPropagation(),e.checkTemplateDetail(t)}}},[e._v(e._s(t.data.introduce||"暂无简介"))]),a("el-button",{staticClass:"block_item_right_button",attrs:{disabled:!!e.addedTemplateIdMap[t.id]},on:{click:function(a){return a.stopPropagation(),e.addTemplate(t)}}},[e._v(e._s(e.addedTemplateIdMap[t.id]?"已添加":"添加"))])],1)])})),e._l(Array.from({length:(3-t.children.length%3)%3},(function(e,t){return"empty_"+t})),(function(e){return a("div",{key:e,staticClass:"block_item empty"})}))],2)])})):e._e()],2)])],1)},n=[],r=(a("99af"),a("4de4"),a("4160"),a("c975"),a("13d5"),a("a434"),a("b0c0"),a("d3b7"),a("3ca3"),a("159b"),a("ddb0"),a("ade3")),c=a("3835"),s=(a("96cf"),a("1da1")),d=a("5530"),l=a("01a8"),o=a("b3b1"),u=a("b0f9"),p=a("3de1"),m=a("2827"),f={components:{appHeader:l["a"]},data:function(){return{companyId:sessionStorage.companyId,templateTreeList:[],currentHeadNode:null,addedTemplateIdMap:{},searchKeywords:""}},mounted:function(){this.loadTemplateList()},methods:{filterViewList:function(e){var t=this.searchKeywords;return t?e.reduce((function(e,a){var i=a.children.filter((function(e){return-1!==e.label.indexOf(t)}));if(i.length){var n=Object(d["a"])(Object(d["a"])({},a),{},{children:i});e.push(n)}return e}),[]):e},checkTemplateDetail:function(e){this.$router.push({name:"company_template_detail",params:{name:e.label,id:e.id,prevViewName:"模板市场"}})},loadTemplateList:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,i,n,r,s,d,l,p;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([Object(u["o"])(),Object(o["a"])(),Object(u["m"])(e.companyId)]);case 2:a=t.sent,i=Object(c["a"])(a,3),n=i[0],r=i[1],s=i[2],d=b(n.Data||[],r),l=Object(c["a"])(d,1),p=l[0],e.templateTreeList=p,e.currentHeadNode=p[0],s.Data&&(e.addedTemplateIdMap=s.Data.reduce((function(e,t){return e[t.Id]=!0,e}),{}));case 11:case"end":return t.stop()}}),t)})))()},addTemplate:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(m["a"])(t.companyId,e.id);case 2:if(i=a.sent,!i.Code){a.next=5;break}return a.abrupt("return");case 5:t.$notify({message:"添加成功",type:"success"}),t.addedTemplateIdMap=Object(d["a"])(Object(d["a"])({},t.addedTemplateIdMap),{},Object(r["a"])({},e.id,!0));case 7:case"end":return a.stop()}}),a)})))()}}};function b(e,t){var a={},i=e.reduce((function(e,t){var a=Object(p["b"])(t),i=a.detailIndustryId,n={id:a.id,label:a.tempName,parentId:i,isLeaf:!0,type:"template",data:a};return e[i]=(e[i]||[]).concat(n),e}),{}),n=t.reduce((function(e,t){var i=Object(p["b"])(t);if(i.level>2)return e;var n="0"!==i.superId&&i.superId?i.superId:null,r={id:i.id,label:i.name,parentId:n,data:i,type:"industry",children:[],isLeaf:!1};return e[0][r.id]=r,e[1].unshift(r),a[r.id]=r,n&&(e[2][n]||(e[2][n]=[]),e[2][n].push(r)),1===i.level&&e[3].push(r),e}),[{},[],{},[]]),r=Object(c["a"])(n,4),s=r[0],d=r[1],l=r[2],o=r[3];return d.forEach((function(e){var t=l[e.id];t&&(e.children=e.children.concat(t));var a=i[e.id];if(a&&(e.children=e.children.concat(a)),0===e.children.length){var n=s[e.parentId],r=n?l[n.id]:o;r.splice(r.indexOf(e),1)}})),[o,a]}var _=f,h=(a("86d3"),a("2877")),v=Object(h["a"])(_,i,n,!1,null,"7f690d34",null);t["default"]=v.exports}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-6a615eb9.5444617b.js b/dist/static/js/chunk-6a615eb9.8416994b.js similarity index 70% rename from dist/static/js/chunk-6a615eb9.5444617b.js rename to dist/static/js/chunk-6a615eb9.8416994b.js index a695d018..9de8531d 100644 --- a/dist/static/js/chunk-6a615eb9.5444617b.js +++ b/dist/static/js/chunk-6a615eb9.8416994b.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a615eb9"],{"011a":function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{attrs:{id:"app"}},[s("app-header",{attrs:{showUserCenter:!0,id:"proj-list-page",showRecycleBin:""},scopedSlots:e._u([{key:"left",fn:function(){return[e._v(" "+e._s(e.currentPlatform.orgName)+" ")]},proxy:!0},{key:"center",fn:function(){return[s("div",{staticClass:"main-title"},[e._v(e._s(e.showCenterTitle))])]},proxy:!0},{key:"right",fn:function(){return[s("search-bar",{staticClass:"proj-search-bar",attrs:{placeholder:"搜索项目名称"},on:{changeSearchContent:e.changeSearchContent,hideSearchBar:e.hideSearchBar,showSearchBar:e.showSearchBar,goToSearch:e.searchForProj,maxTextLengthArrived:e.maxTextLengthArrived}})]},proxy:!0}])}),s("div",{staticClass:"layout_content"},[s("section",{staticClass:"yiyun_warpContent"},[s("div",{staticClass:"yiyun-rows mt-20",attrs:{id:"new"}},[s("div",{staticClass:"yiyun-col-4 timer-part"},[s("div",{staticClass:"yiyun_row",staticStyle:{width:"95%"}},[s("timer",{attrs:{cnName:e.cnName}})],1)]),e._m(0)]),e.noProjTip?s("div",{staticStyle:{"margin-left":"50%","margin-top":"25%"}},[s("h1",[e._v("空空如也")])]):e._e()]),e.isUserPerm?s("button",{staticClass:"yiyun_btn_new new-btn-margin",attrs:{id:"buttonbtn"},on:{click:function(t){return t.stopPropagation(),e.createNewProjectClick(t)}}},[e._v("新建项目")]):e._e(),s("proj-list",{attrs:{id:"proj-list",projList:e.showProjList,openPrjInfo:e.openPrjInfo,addNewFolders:e.addNewFolders},on:{watchAllBtnClick:e.watchAllBtnClick,lookProjDetailClick:e.lookProjDetailClick}})],1),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isBottomNewProj,expression:"isBottomNewProj"}],staticClass:"bottomdialog",staticStyle:{height:"60px"}},[s("div",{staticClass:"yiyun_dialog_left yiyun_zhedie",staticStyle:{"margin-top":"10px"},on:{click:e.showContinueNewProj}},[e._m(1)]),e._m(2),s("div",{staticClass:"yiyun_dialog_right yiyundialog_close",staticStyle:{"margin-top":"15px"},on:{click:e.closeNewProj}},[e._v("关闭")])]),s("transition-group",{attrs:{css:!1},on:{"before-enter":e.beforeEnter,enter:e.enter,leave:e.leave}},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isNewProj,expression:"isNewProj"}],key:0,staticClass:"bottomdialogbox bg_baise"},[s("NewProj",{attrs:{isNewProj:e.isNewProj},on:{refreshListProj:e.refreshListProj,isShowBottom:e.showzhankai,createProjSuccess:e.createProjSuccess}})],1),e.isAloneDistProj?s("div",{key:1,staticClass:"bottomdialogbox bg_baise",staticStyle:{color:"white"}},[s("DistWork",{on:{offDialog:e.closeDistWork}})],1):e._e(),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowProjSetting,expression:"isShowProjSetting"}],key:2,staticClass:"bottomdialogbox bg_baise",staticStyle:{color:"white"}},[s("ProjSetting",{attrs:{isProjManager:e.isProjectManager,createUserId:e.createUserId,projId:e.currProjId,nowprj:e.nowProj,isSetFolder:e.isEditProjFolder},on:{offDialog:e.closeProjSet,editSuccess:e.projEditSuccess}})],1)])],1)},r=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"yiyun-col-4"},[s("div",{staticClass:"yiyun_row"},[s("div",{staticClass:"section_item fr section_item_aside_fr"})])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("span",{staticClass:"yiyun_zhankaibtn"},[s("i",{staticClass:"Cicon text_gray icon font_family icon-icon_zhankai",attrs:{title:"展开面板"}})])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"yiyun_dialog_center"},[s("div",{staticClass:"bottomdialogbox_list_head newProject_next_taggle1 line_H60"},[s("div",{staticClass:"yiyun_col-6 fl"},[s("h3",[e._v("继续-新建项目")])])])])}],a=(s("caad"),s("96cf"),s("1da1")),n=s("0bb4"),o=s("f96e"),l=s("2f4c"),c=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isBottomNewProj,expression:"isBottomNewProj"}],staticClass:"bottomdialog",staticStyle:{height:"60px"}},[s("div",{staticClass:"yiyun_dialog_left yiyun_zhedie",staticStyle:{"margin-top":"10px"},on:{click:e.offDialog}},[e._v(" 关闭 ")]),e._m(0)]),s("div",{staticClass:"bottomdialog"},[s("div",{staticClass:"yiyun_dialog_left yiyun_zhedie"},[s("span",{on:{click:e.offDialog}},[e._v("关闭")])]),s("div",{staticClass:"yiyun_dialog_center"},[s("span",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowThreePage&&e.isShowManager,expression:"isShowThreePage == true && isShowManager"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backFirstPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("span",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSecondPage,expression:"isShowSecondPage == true"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.toFirstPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("span",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowPrjDesc,expression:"isShowPrjDesc == true"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backFirstPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("div",{staticClass:"bottomdialogbox_list_head newProject_next_taggle1"},[s("div",{staticClass:"EC_col_16"},[s("h3",{directives:[{name:"show",rawName:"v-show",value:e.isShowFirstPage,expression:"isShowFirstPage"}],attrs:{title:e.curProjCreatePeop}},[e._v(" "+e._s(e.curProjCreatePeop)+" ")]),s("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowPrjDesc,expression:"isShowPrjDesc == true"}]},[e._v("项目概况")]),s("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSecondPage||1==e.isShowThreePage,expression:"isShowSecondPage == true || isShowThreePage == true"}]},[e._v("指派职员")])]),s("div",{staticClass:"EC_col_8"},[s("div",{staticClass:"fr mt-26"},[s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSecondPage,expression:"isShowSecondPage == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.backFirstPage}},[e._v("确定")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowThreePage,expression:"isShowThreePage == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.backFirstPage}},[e._v("确定")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowFirstPage,expression:"isShowFirstPage == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.submitAndClose}},[e._v("完成")])],1)]),s("div",{staticClass:"clear"}),s("div",{staticClass:"yiyun_Tbline"})])]),s("div",{staticClass:"yiyun_dialog_right yiyundialog_close"}),s("div",{staticClass:"clear"}),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowdivid2,expression:"isShowdivid2"}],staticClass:"linescoll"}),s("div",{staticClass:"dialogcontentbody",attrs:{id:"bottomDiaBody2"}},[s("div",{class:{dialogcontentbodyrow:e.isShowFirstPage},attrs:{id:"bottomDiaChild2"}},[s("div",{staticClass:"centerWarpDia"},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowFirstPage,expression:"isShowFirstPage"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox"},[s("div",{staticClass:"clear"}),s("div",{staticClass:"line_from"},[e.isProjManager?s("div",{staticClass:"fuzeren"},[s("div",[s("span",{staticClass:"label_text",class:{notclick:!e.isAllowedAssignedManager}},[e._v("项目管理权限")])]),s("div",{staticClass:"mt-10"},[s("div",{staticClass:"fl firstPeople"},[s("div",{class:{notclick:!e.isAllowedAssignedManager}},[s("div",{staticClass:"avtarface",attrs:{title:e.currUser.cnName}},[s("img",{attrs:{src:e._f("resolveAvator")(e.currUser.headImgUrl)}})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(e.currUser.cnName))])])]),s("div",{staticClass:"fl vhLine mlr-20"}),e.isAllowedAssignedManager?s("div",{staticClass:"fl addBtn_new",attrs:{title:"添加项目负责人"},on:{click:function(t){return e.addProjManager()}}},[s("i",{staticClass:"el-icon-plus middleaddEC"})]):e._e(),s("div",{staticClass:"fl chengyuanbox"},[s("ul",{staticClass:"ECworkerList"},e._l(e.listManagerUser,(function(t,i){return s("li",{key:i,class:{notclick:!e.isAllowedAssignedManager}},[i<14||e.showAll?s("div",[s("div",{staticClass:"avtarface",attrs:{title:t.cnName}},[s("img",{attrs:{src:e._f("resolveAvator")(t.headImgUrl)}})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(t.cnName))])]):e._e(),14!=i||e.showAll?e._e():s("div",{on:{click:e.showAllClick}},[s("span",{staticClass:"zhangkai_down"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("展开全部")])]),e.showAll&&i==e.listManagerUser.length-1&&i>14?s("div",{staticClass:"newweizhi",on:{click:function(t){e.showAll=!1}}},[s("span",{staticClass:"zhangkai_up"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("收起项目负责人")])]):e._e()])})),0)])])]):e._e(),s("folder-list",{attrs:{id:e.userId,folderList:e.listNewFolder,allManager:e.currUser,allManagerChild:e.listManagerUser,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists}})],1)])]),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowPrjDesc,expression:"isShowPrjDesc"}],staticClass:"PaincenterBox"},[s("el-form",{ref:"",staticClass:"line_from",attrs:{"label-width":"100px","label-position":"left"},model:{value:e.nowProject,callback:function(t){e.nowProject=t},expression:"nowProject"}},[s("div",{staticClass:"yiyun_col-6 fl"},[s("div",{staticClass:"bianju_item_fr"},[s("el-form-item",{attrs:{label:"项目负责:"}},[s("span",[e._v(e._s(e.nowProject.cnName))])])],1)]),s("div",{staticClass:"yiyun_col-6 fl"},[s("div",{staticClass:"bianju_item_fr"},[s("el-form-item",{attrs:{label:"创建时间:"}},[s("span",[e._v(e._s(e.nowProject.strCreateTime))])])],1)]),e._l(e.listProjProp,(function(t){return s("div",{key:t.propertyID,staticClass:"yiyun_col-12 fl"},[s("div",{staticClass:"yiyunlargeItem"},[s("el-form-item",{attrs:{label:t.propName+":"}},[s("span",[e._v(e._s(t.propValue))])])],1)])}))],2)],1),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSecondPage||e.isShowThreePage,expression:"isShowSecondPage || isShowThreePage"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox"},[s("div",{staticClass:"yiyun_col-6 bg_text_wirte mt-8 left-dept-wrap"},[s("div",{staticClass:"row_painfl"},[s("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-collapse-item",{staticClass:"nomidline",attrs:{name:"1"}},[s("template",{slot:"title"},[s("span",[e._v("从部门中选择职员")])]),e._l(e.listDept,(function(t,i){return s("el-collapse",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:i,attrs:{accordion:""}},[s("el-collapse-item",[s("template",{slot:"title"},[s("span",[e._v(e._s(t.deptName)+" ")])]),e._l(t.listUser,(function(t,r){return s("div",{key:r,staticClass:"user_info_item",attrs:{label:t}},[s("el-checkbox",{staticClass:"checkBoxCol",attrs:{disabled:e.disabled},on:{change:function(s){return e.handleCheckedOne(i,t,s)}},model:{value:t.selected,callback:function(s){e.$set(t,"selected",s)},expression:"user.selected"}},[s("div",{staticClass:"checkboxlabelitem"},[s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),s("span",{staticClass:"user_info_role"},[e._v(e._s(t.roleName))])])])],1)}))],2)],1)}))],2)],1)],1)]),s("div",{staticClass:"shuxian"}),s("div",{staticClass:"yiyun_col-6"},[s("h4",{staticClass:"rightXiezuoren"},[e._v("已选职员")]),s("div",{staticClass:"yiyun_line set-yiyun-line"}),s("div",{staticClass:"right-selected-user-wrap"},e._l(e.listDeptComputed,(function(t){return s("div",{key:t.id,staticClass:"row_painfr"},[e._l(e.listDeptUserNoZero(e.selectedUser),(function(i){return s("div",{key:i},[i==t.id?s("div",[s("span",[e._v(e._s(t.deptName))])]):e._e()])})),e._l(e.selectedUser,(function(i,r){return s("div",{key:r,staticClass:"renyuanbox"},[i.deptId==t.id?s("div",{staticClass:"user_info_item",on:{click:function(t){return t.stopPropagation(),e.changeManagerClick(i)}}},[2==i.folderPerm?s("i",{staticClass:"icon font_family icon-icon_huangguan-jihuo middlehuangguan fl set-crown-position",attrs:{title:"负责人"}}):e._e(),s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(i.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(i.cnName))]),s("span",{staticClass:"user_info_role"},[s("i",{staticClass:"el-icon-close",attrs:{title:"移除协作人"},on:{click:function(t){return t.stopPropagation(),e.removeSelectUser(i)}}})])]):e._e()])}))],2)})),0)])])])])])])])])},u=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"yiyun_dialog_center"},[s("div",{staticClass:"bottomdialogbox_list_head newProject_next_taggle1 line_H60"},[s("div",{staticClass:"yiyun_col-6 fl"},[s("h3",[e._v("继续-新建项目")])])])])}],d=(s("4de4"),s("7db0"),s("4160"),s("a15b"),s("d81d"),s("13d5"),s("fb6a"),s("a434"),s("b0c0"),s("d3b7"),s("ac1f"),s("6062"),s("2532"),s("3ca3"),s("1276"),s("159b"),s("ddb0"),s("5530")),h=s("4f96"),f=s("3835"),p=s("2909"),m=s("93d6"),v=s("2ef0"),g=s("b775"),w=s("3de1"),_=s("a06e"),C=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",e._l(e.folderList,(function(t,i){return s("div",{key:i,staticClass:"tianjiaxiezuorenBox"},[s("div",{staticClass:"self_newitem"},[s("h5",{staticClass:"fl label_text",class:{notclick:!(e.isAllowedAssignedFolder(t)||e.isStaff(t))}},[s("i",{directives:[{name:"show",rawName:"v-show",value:t.listChildren&&t.listChildren.length,expression:"folder.listChildren && folder.listChildren.length"}],staticClass:"hand",class:t.expanded?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(s){return e.toggleFolderExpand(t)}}}),e._v(" "+e._s(t.folderName)+" ")])]),s("div",[s("div",{staticClass:"fl firstPeople"},[""==t.manageUser?s("div",[e.isAllowedAssignedFolder(t)?s("div",{staticClass:"avtarface",on:{click:function(s){return e.aloneAddUserForFolder(t)}}},[s("i",{staticClass:"large_huangguan el-icon-plus"})]):s("div",{staticClass:"avtarface notclick"},[s("img",{attrs:{src:"/static/img/暂无.svg",alt:"",srcset:""}})]),s("span",{staticClass:"Text_tiny tinyText_wirte",class:{"notclick noManagerText":!e.isAllowedAssignedFolder(t)}},[e._v("工作负责人")])]):e._e(),e._l(t.manageUser,(function(i,r){return s("li",{key:r},[s("div",[e.isAllowedAssignedFolder(t)?s("div",{staticClass:"avtarface",attrs:{title:"编辑"}},[s("img",{attrs:{src:e._f("resolveAvator")(i.headImgUrl)},on:{click:function(s){return e.aloneAddUserForFolder(t)}}})]):s("div",{staticClass:"avtarface notclick",class:{allopacity:e.isStaff(t)},attrs:{title:"编辑"}},[s("img",{attrs:{src:e._f("resolveAvator")(i.headImgUrl)}})]),s("span",{staticClass:"Text_tiny tinyText_wirte",class:{notclick:!e.isAllowedAssignedFolder(t),allopacity:e.isStaff(t)}},[e._v(e._s(i.cnName))])])])}))],2),s("div",{staticClass:"fl vhLine mlr-20"}),e.isAllowedAssignedStaffFolder(t)?s("div",{staticClass:"fl addBtn_new",attrs:{title:"添加职员"},on:{click:function(s){return e.aloneAddUserOnlyStaff(t)}}},[s("i",{staticClass:"el-icon-plus middleaddEC"})]):e._e(),s("div",{staticClass:"fl chengyuanbox"},[s("ul",{staticClass:"ECworkerList"},e._l(e.listUserComputed(t.listUser),(function(i,r){return s("li",{key:r,class:{notclick:!(e.isAllowedAssignedStaffFolder(t)||e.isStaff(t))}},[r<14||e.showAll?s("div",[s("div",{staticClass:"avtarface",attrs:{title:"编辑"}},[s("img",{attrs:{src:e._f("resolveAvator")(i.headImgUrl)}})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(i.cnName))])]):e._e(),14!=r||e.showAll?e._e():s("div",{on:{click:e.showAllClick}},[s("span",{staticClass:"zhangkai_down"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("展开全部")])]),e.showAll&&r==e.listUserComputed(t.listUser).length-1&&r>14?s("div",{staticClass:"newweizhi",on:{click:function(t){e.showAll=!1}}},[s("span",{staticClass:"zhangkai_up"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("收起职员")])]):e._e()])})),0)]),s("div",{staticClass:"clear"})]),t.listChildren?[s("folder-list",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"folder.expanded"}],staticClass:"folder-children",attrs:{folderList:t.listChildren,id:e.id,allManager:e.allManager,allManagerChild:e.allManagerChild,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists}})]:e._e()],2)})),0)},j=[],P=(s("45fc"),{name:"folderList",props:{id:String,allManager:Object,allManagerChild:Array,folderList:Array,aloneAddUserForFolder:Function,aloneAddUserOnlyStaff:Function,allChildrenLists:Array},data:function(){return{showAll:!1}},methods:{showAllClick:function(){this.showAll=!0},toggleFolderExpand:function(e){e.expanded=!e.expanded,this.$forceUpdate()},isAllowedAssignedFolder:function(e){var t=this;return this.allManager.id==this.id||this.allManagerChild.length>0&&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[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}))}}}}),S=P,y=(s("f044"),s("2877")),b=Object(y["a"])(S,C,j,!1,null,"cc1419c4",null),k=b.exports,D={components:{FolderList:k},data:function(){return{imgSrc:"/api/archives/cover?path=",headSrc:"/api/archives/head?path=",cnName:"",selectedUser:[],selectedManageUser:[],showTitle:"1",disabled:!1,checked:!1,activeName:"1",showAll:!1,isBottomNewProj:!1,nodeLeaves:!1,isShowStaffList:!1,opentree:!0,ischeckAll:!1,nowProject:{},isShowPrjDesc:!1,isSlectPal:!0,folderPerm:"1",isShowFirstPage:!0,isShowSecondPage:!1,isShowThreePage:!1,InitData:{},listNewFolder:[],listProjProp:[],listDept:[],curProjCreatePeop:[],currWorkName:"",newProjFolderIndex:1,tempIndex:0,isShowdivid2:!1,currSelectData:[],currUser:{},isShowManager:!0,listManagerUser:[],oldListManagerUser:[],isProjManager:!1,currListDeptUserData:[],userList:[],finishBtnClickCount:0,userId:sessionStorage.userId,allChildrenLists:[]}},created:function(){this.loadProjManager()},mounted:function(){this._getUserInfo(sessionStorage.userId),this.cnName=JSON.parse(sessionStorage.user).cnName,window.addEventListener("scroll",this.handleScroll,!0),this.fetchProjectDetail()},computed:{isAllowedAssignedManager:function(){var e=this;return this.currUser.id==this.userId||this.listManagerUser.length>0&&this.listManagerUser.find((function(t){return t.id==e.userId}))},listDeptComputed:function(){return this.listDept.filter((function(e){return e.listUser.length>0}))},listManagerComputed:function(){return function(e){return e.filter((function(e){return 2==e.folderPerm}))}},listUserComputed:function(){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}},listUserManager:function(e){return function(e){return e.filter((function(e){return 2==e.folderPerm||0==e.folderPerm}))}},listUserStaff:function(e){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}},listDeptUserNoZero:function(e){return function(e){for(var t=[],s=0;s0&&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.isShowManager){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({type:"warning",title:"温馨提示",message:"没有权限更换工作负责人。",offset:100,duration:5e3}):this.selectedUser.forEach((function(s){s.folderPerm=s.id===e.id?2:1,2===s.folderPerm&&t.InitData.manageUser.splice(0,1,s)}))}},loadProjManager:function(){var e=this;this.$axios({method:"get",url:encodeURI("/api/projects/manager/"+sessionStorage.projId+"/"+sessionStorage.userId)}).then((function(t){null!=t.data&&""!=t.data&&(e.isProjManager=t.data.isProjManager)})).catch((function(e){console.log(e)}))},handleScroll:function(){var e=document.getElementById("bottomDiaChild2");e.scrollTop&&e.scrollTop>0?this.isShowdivid2=!0:this.isShowdivid2=!1},isAllhide:function(){this.isShowPrjDesc=!1,this.isShowThreePage=!1,this.isShowSecondPage=!1},offDialog:function(){this.selectedUser=[],this.selectedManageUser=[],this.$emit("offDialog",this.$route.name)},showzhankai:function(){this.isBottomNewProj=!0},showContinueNewProj:function(){this.isBottomNewProj=!1},backFirstPage:function(){var e=this;this.listDept=JSON.parse(JSON.stringify(this.currListDeptUserData)),this.isShowManager||(this.listManagerUser=[],this.selectedUser.forEach((function(t){t.id!=e.currUser.id&&e.listManagerUser.push(t)}))),this.isAllhide(),this.isShowManager=!0,this.isShowFirstPage=!0},toFirstPage:function(){var e=this;this.$confirm("退出“职员选择”您编辑的内容被清空,确定退出?","",{confirmButtonText:"退出",cancelButtonText:"取消",showClose:!1,type:"warning"}).then((function(){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:[];return(e||[]).forEach((function(e){var r=e.data;r.listUser=t.filter((function(t){return t.deptId===e.id})),i.push(r),e.children&&e.children.length&&s.plainTreeNodes(e.children,t,i)})),i},addProjManager:function(){var e=this;this.isShowManager=!1,this.isShowStaffList=!0;var t={listUser:[]};t.listUser=this.listManagerUser,this.setFolderPerm(t),this.selectedUser=t.listUser;var s=t.listUser.find((function(t){return t.id===e.currUser.id}));s||(this.currUser.folderPerm=2,t.listUser.push(this.currUser)),this.selectedManageUser=[],this.isShowThreePage=!0,this.isShowFirstPage=!1},handleCheckTopAll:function(e){for(var t=0;t0&&this.handleCheckItemAll(t,e)},handleCheckItemAll:function(e,t){for(var s=0;s0&&(t++,1==this.listDept[s].selected&&e++);this.ischeckAll=e==t&&0!==e&&0!==t},removeSelectUser:function(e){e.id!=this.currUser.id||this.isShowManager?e.id!=sessionStorage.userId||this.isShowManager?this.isAllowedDelete(e)?this.$notify({type:"warning",title:"温馨提示",message:"没有权限移除自己。",offset:100,duration:5e3}):2==e.folderPerm?this.removeManageUser(e):(this.checkDeptUserName(!1,e),this.cancelCheck(e.id)):this.$notify({message:"不能移除自己。",offset:100,duration:5e3}):this.$notify({type:"warning",message:"没有权限删除项目创建者。",offset:100,duration:5e3})},removeManageUser:function(e){e.folderPerm=0;for(var t=0;t0&&1==this.isShowThreePage?this.isShowStaffList=!0:this.isShowStaffList=!1},goShowPrjDesc:function(){this.isShowPrjDesc=!0,this.isShowFirstPage=!1},showAllClick:function(){this.showAll=!0},openECtree:function(e){this.nodeLeaves=!0,this.opentree=!1},closeECtree:function(e){this.nodeLeaves=!1,this.opentree=!0},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 i=this;e.forEach((function(e){e.manageUser.length>0&&e.manageUser[0].id==t&&e.listChildren.length>0&&i.getChildren(e.listChildren,s)}))},getfolderPerm:function(e){var t=this;e.forEach((function(e){e.listUser.forEach((function(e){e.folderPerm=1})),e.manageUser.length>0&&(e.manageUser[0].folderPerm=2,e.listUser.push(e.manageUser[0])),e.listChildren.length>0&&t.getfolderPerm(e.listChildren)}))},fetchProjectDetail:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var s,i,r,a,n,o,l,c,u,d,h;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.getUserList(),e.$fetchApi("folder/queryNodeFolderListByProjectId",{projectId:sessionStorage.projId}),Object(m["e"])(e.$store.state.currentCompanyId)]);case 2:s=t.sent,i=Object(f["a"])(s,3),r=i[0],a=i[1],n=i[2],o=e.plainTreeNodes(n,r),o.forEach((function(e){e.listUser=e.listUser.sort((function(e,t){return e.cnName.localeCompare(t.cnName)}))})),e.listDept=o,e.currListDeptUserData=o,l=a.Data||{},c=l.folder,u=l.manager,console.log(c,u,r),d=r.reduce((function(e,t){return e[t.id]=t,e}),{}),e.listManagerUser=u.map((function(e){return d[e.UserId]})),e.listManagerUser.length&&(e.currUser=e.listManagerUser[0]||{},e.listManagerUser=e.listManagerUser.slice(1)),e.oldListManagerUser=Object(v["cloneDeep"])(e.listManagerUser),h=I(c,d),e.getfolderPerm(h),e.listNewFolder=h,e.getAllChildrenLists(e.listNewFolder,e.userId,e.allChildrenLists);case 21:case"end":return t.stop()}}),t)})))()},getUserList:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(m["g"])({id:e.$store.state.currentCompanyId,nodeType:"company"},1,1e4);case 2:return s=t.sent,i=s.list,e.userList=i,t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)})))()},_getUserInfo:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function s(){var i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,Object(m["f"])(e);case 3:return s.sent,s.next=6,Object(m["f"])(sessionStorage.createUserID);case 6:i=s.sent,t.curProjCreatePeop=i.cnName+" 指派了新工作,请完成工作指派",1==sessionStorage.allocated&&(t.curProjCreatePeop="项目管理"),t.isProjManager=!0,s.next=15;break;case 12:s.prev=12,s.t0=s["catch"](0),console.log(s.t0);case 15:case"end":return s.stop()}}),s,null,[[0,12]])})))()},createFolders:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var s,i,r,a;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 r=[];t.ManagerUserId=e.manageUser.length>0?e.manageUser.map((function(e){return r.push(e.id),e.id})).join(","):"";var a=e.listUser.filter((function(e){return!r.includes(e.id)}));t.GeneralId=e.listUser.length>0?a.map((function(e){return e.id})).join(","):"",t.OldManager=e.oldManager,t.OldGeneralId=e.oldGeneralId,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(","):"",i(e.listNewFolder),t.next=6,Object(_["a"])(s);case 6:r=t.sent,console.log(r),a=e,0===r.Code?(a.$notify({message:"工作指派完成。",type:"success",offset:100,duration:2500}),a.offDialog()):a.$notify({type:"error",message:"服务器异常,工作指派失败。",offset:100,duration:5e3});case 10:case"end":return t.stop()}}),t)})))()}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll,!0)}};function I(e,t){var s=Object(h["a"])(e),i=s[0],r=(s[1],s.slice(2)),a=i.Id,n=[],o={};return r.forEach((function(e){var s=Object(w["b"])(e);o[s.id]=s,s.listChildren=[],s.listUser=s.oldGeneralId.split(",").filter((function(e){return e})).map((function(e){return Object(d["a"])({},t[e])})),s.manageUser=("0"===s.oldManager?"":s.oldManager).split(",").filter((function(e){return e})).map((function(e){return Object(d["a"])({},t[e])}));var i=s.superId;if(i!==a){var r=o[i];r&&r.listChildren.push(s)}else n.push(s)})),n}var U=D,x=(s("d5e1"),Object(y["a"])(U,c,u,!1,null,"22df4093",null)),N=x.exports,T=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"bottomdialog"},[i("div",{staticClass:"yiyun_dialog_left yiyun_zhedie"},[i("span",{on:{click:e.offDialog}},[e._v("关闭")])]),i("div",{staticClass:"yiyun_dialog_center"},[i("span",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkDialog,expression:"marchWorkDialog == true"}],staticClass:"backshangyicheng prev_to_1",on:{click:e.backdistNewProj}},[i("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),i("span",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerDialog,expression:"marchWorkerDialog == true"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backWorkerPal}},[i("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),i("span",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerPalDialog,expression:"marchWorkerPalDialog == true"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backdistWork}},[i("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),i("span",{directives:[{name:"show",rawName:"v-show",value:1==e.ProjInfoDialog,expression:"ProjInfoDialog == true"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backdistProjName}},[i("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),i("div",{staticClass:"bottomdialogbox_list_head newProject_next_taggle1"},[i("div",{staticClass:"EC_col_16"},[i("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.NewProductDailog,expression:"NewProductDailog == true"}]},[e._v("新建项目")]),i("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.ProjInfoDialog,expression:"ProjInfoDialog == true"}]},[e._v("项目概况")]),i("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkDialog,expression:"marchWorkDialog == true"}]},[e._v("工作指派")]),i("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerDialog,expression:"marchWorkerDialog == true"}]},[e._v("指派职员")]),i("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerPalDialog,expression:"marchWorkerPalDialog == true"}]},[e._v("指派工作负责人")])]),i("div",{staticClass:"EC_col_8"},[i("div",{staticClass:"fr mt-26"},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.NewProductDailog,expression:"NewProductDailog == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.goprojInfo}},[e._v("下一步")]),i("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.ProjInfoDialog,expression:"ProjInfoDialog == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:"",disabled:e.isDisableCreate},on:{click:e.createProject}},[e._v("创建项目")])],1)]),i("div",{staticClass:"clear"}),i("div",{staticClass:"yiyun_Tbline"})])]),i("div",{staticClass:"yiyun_dialog_right yiyundialog_close"}),i("div",{staticClass:"clear"}),i("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowdivid,expression:"isShowdivid"}],staticClass:"linescoll"}),i("div",{staticClass:"dialogcontentbody",attrs:{id:"bottomDiaBody"}},[i("div",{ref:"diaNewproH",staticClass:"dialogcontentbodyrow",attrs:{id:"bottomDiaChild"}},[i("div",{staticClass:"centerWarpDia"},[i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.NewProductDailog,expression:"NewProductDailog == true"}],staticClass:"PaincenterBox"},[i("el-form",{ref:"",staticClass:"line_from",attrs:{"label-width":"100px","label-position":"left"},model:{value:e.newProjData,callback:function(t){e.newProjData=t},expression:"newProjData"}},[i("div",{staticClass:"yiyun_col-12 fl",staticStyle:{"margin-left":"4px"}},[i("div",{staticClass:"yiyunlargeItem"},[i("el-form-item",{attrs:{label:"项目名称"}},[i("el-input",{staticClass:"labelinputbefore",attrs:{placeholder:"请输入项目名称"},model:{value:e.newProjData.projectData.projName,callback:function(t){e.$set(e.newProjData.projectData,"projName",t)},expression:"newProjData.projectData.projName"}})],1)],1)]),i("div",{staticClass:"yiyun_col-12 fl",staticStyle:{"margin-left":"4px"}},[i("div",{staticClass:"yiyunlargeItem"},[i("el-form-item",{attrs:{label:"选择工作链"}},[i("el-select",{staticClass:"bg_w",attrs:{filterable:"","no-data-text":"暂无数据",placeholder:"请选择工作链"},on:{change:e.changeSelectTemplate},model:{value:e.newProjData.projectData.templateID,callback:function(t){e.$set(e.newProjData.projectData,"templateID",t)},expression:"newProjData.projectData.templateID"}},e._l(e.templateList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.TempName,value:e.Id}})})),1)],1)],1)])])],1),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.ProjInfoDialog,expression:"ProjInfoDialog == true"}],staticClass:"PaincenterBox"},[i("el-form",{ref:"",staticClass:"line_from",attrs:{"label-width":"100px","label-position":"left"},model:{value:e.newProjData,callback:function(t){e.newProjData=t},expression:"newProjData"}},[i("div",{staticClass:"yiyun_col-6 fl"},[i("div",{staticClass:"yiyunlargeItem"},[i("el-form-item",{attrs:{label:"项目负责:"}},[i("span",{staticClass:"forminfocom"},[e._v(e._s(e.projectCreaterName))])])],1)]),i("div",{staticClass:"yiyun_col-6 fl"},[i("div",{staticClass:"yiyunlargeItem"},[i("el-form-item",{attrs:{label:"创建时间:"}},[i("span",{staticClass:"forminfocom"},[e._v(e._s(e.createDate))])])],1)]),e._l(e.checkNewProjData.CustomProps,(function(t){return i("div",{key:t.Id,staticClass:"yiyun_col-12 fl",staticStyle:{"margin-left":"4px"}},[i("div",{staticClass:"yiyunlargeItem"},[i("el-form-item",{attrs:{label:t.PropertyName}},[i("el-input",{key:t.Id,staticClass:"labelinputbefore",attrs:{placeholder:"输入"},on:{input:e.userDefineInput},model:{value:t.PropValue,callback:function(s){e.$set(t,"PropValue",s)},expression:"prop.PropValue"}})],1)],1)])})),i("div",{staticClass:"clear"}),i("div",{staticClass:"yiyun_col-12img fl mt-10"},[i("div",{staticClass:"clear"}),i("div",{staticClass:"yiyun_col-6"},[i("div",{staticClass:"pageImgBox"},[i("img",{attrs:{src:e._f("resolveAvator")(e.coverSrc),alt:""}}),i("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[i("span",[e._v("编辑")])]),i("span",{staticClass:"faceBtn",on:{click:e.setSystemCoverRandom}},[e._v("使用随机封面")])],1)])]),i("div",{staticClass:"clear"}),i("el-form-item",[i("div",{staticClass:"tianjiaxiezuoren",staticStyle:{display:"none"}},[i("h5",[e._v("添加协作人")]),i("div",[i("div",{staticClass:"touxiang_hezuorenBox"},[i("div",{staticClass:"touxiang_hezuorenBox-item"},[i("img",{attrs:{src:s("03aa"),alt:""}})])]),i("i",{staticClass:"yiyun_icon_large icon_topnav_large_add",attrs:{title:"添加合作人"}})])])])],2)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkDialog,expression:"marchWorkDialog == true"}],staticClass:"PaincenterBox"},[i("div",{staticClass:"xiezuobox"},[i("div",{staticClass:"fuzeren"},[e._m(0),i("div",{staticClass:"mt-10"},[i("div",{staticClass:"fl firstPeople"},[i("div",[i("div",{staticClass:"avtarface",attrs:{title:e.currUser.cnName}},[i("img",{attrs:{src:e._f("resolveAvator")(e.currUser.headImgUrl)}})]),i("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(e.currUser.cnName))])])]),i("div",{staticClass:"fl vhLine mlr-20"}),i("div",{staticClass:"fl addBtn_new",attrs:{title:"添加项目负责人"},on:{click:function(t){return e.addManager()}}},[i("i",{staticClass:"el-icon-plus middleaddEC"})]),i("div",{staticClass:"fl chengyuanbox"},[i("ul",{staticClass:"ECworkerList"},e._l(e.newProjData.projectData.listProjManager,(function(t,s){return i("li",{key:s},[s<14||e.showAll?i("div",[i("div",{staticClass:"avtarface",attrs:{title:t.userName}},[i("img",{attrs:{src:e._f("resolveAvator")(t.headImgUrl)}})]),i("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(t.cnName))])]):e._e()])})),0)])])]),e._l(e.newProjData.listFolder,(function(t,s){return i("div",{key:s},[i("div",{staticClass:"EC_Tree"},[e.tempIndex!=s||0==s?i("div",[i("em",{staticClass:"ec_number label_text"},[e._v(e._s(t.folderIndex))]),1==e.showTitle||e.tempIndex!=s?i("div",[i("span",{staticClass:"label_text"},[e._v(e._s(t.folderName))]),0==t.default?i("el-button",{staticClass:"fr mini_typeBtn",on:{click:function(t){return e.eidtTitle(s)}}},[e._v("编辑")]):e._e()],1):e._e()]):e._e(),2==e.showTitle&&e.tempIndex==s?i("div",{staticClass:"self_newitem"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.folderName,expression:"folder.folderName"}],class:0==t.default?"bianji_input self_Inputwork":" label_text_moren",attrs:{disabled:t.default},domProps:{value:t.folderName},on:{input:function(s){s.target.composing||e.$set(t,"folderName",s.target.value)}}}),i("div",{staticClass:"selfoptiongroup"},[0==t.default?i("el-button",{staticClass:"mini_typeBtn",on:{click:e.saveTitle}},[e._v("保存")]):e._e(),0==t.default?i("el-button",{staticClass:"mini_typeBtn",attrs:{type:"primary"},on:{click:function(t){return e.deleCustomFolder(s)}}},[e._v("删除")]):e._e()],1)]):e._e()]),i("div",{staticClass:"mt-10"},[i("div",{staticClass:"fl firstPeople"},[""==t.manageUser?i("div",[i("div",{staticClass:"avtarface",on:{click:function(t){return e.addUserPal(s)}}},[i("i",{staticClass:"large_huangguan el-icon-plus"})]),i("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("工作负责人")])]):e._e(),e._l(t.manageUser,(function(t,r){return i("li",{key:r},[i("div",[i("div",{staticClass:"avtarface",attrs:{title:"编辑"}},[i("img",{attrs:{src:e._f("resolveAvator")(t.headImgUrl)}}),i("div",{staticClass:"eiditIconimgBox",on:{click:function(t){return e.addUserPal(s)}}},[i("i",{staticClass:"icon font_family icon-icon_bianji1 eiditIconimg"})])]),i("span",{staticClass:"Text_tiny tinyText_wirte",attrs:{title:t.cnName}},[e._v(e._s(t.cnName))])])])}))],2),i("div",{staticClass:"fl vhLine mlr-20"}),""!=t.manageUser?i("div",{staticClass:"fl addBtn_new",attrs:{title:"添加职员"},on:{click:function(t){return e.addUser(s)}}},[i("i",{staticClass:"el-icon-plus middleaddEC"})]):e._e(),i("div",{staticClass:"fl chengyuanbox"},[i("ul",{staticClass:"ECworkerList"},e._l(e.listUserComputed(t.listUser),(function(s,r){return i("li",{key:r},[r<14||e.showAll?i("div",[i("div",{staticClass:"avtarface",attrs:{title:s.cnName}},[i("img",{attrs:{src:e._f("resolveAvator")(s.headImgUrl)}})]),i("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(s.cnName))])]):e._e(),14!=r||e.showAll?e._e():i("div",{on:{click:e.showAllClick}},[i("span",{staticClass:"zhangkai_down"}),i("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("展开全部")])]),e.showAll&&r==t.listUser.length-1&&r>14?i("div",{staticClass:"newweizhi",on:{click:function(t){e.showAll=!1}}},[i("span",{staticClass:"zhangkai_up"}),i("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("收起职员")])]):e._e()])})),0)])]),i("div",{staticClass:"clear"})])})),i("div",{staticClass:"line_from",staticStyle:{display:"none"}},[i("div",e._l(e.newProjData.listFolder,(function(t,s){return i("div",{key:s,staticClass:"tianjiaxiezuorenBox"},[i("div",{staticStyle:{height:"50px"}},[1==e.showTitle?i("div",[i("h5",{staticClass:"fl label_text"},[e._v(e._s(t.folderName))]),0==t.default?i("el-button",{staticClass:"fr mini_typeBtn",on:{click:function(t){return e.eidtTitle()}}},[e._v("编辑")]):e._e()],1):e._e(),2==e.showTitle?i("div",{staticClass:"self_newitem"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.folderName,expression:"folder.folderName"}],class:0==t.default?"bianji_input self_Inputwork":"fl label_text_moren",attrs:{disabled:t.default},domProps:{value:t.folderName},on:{input:function(s){s.target.composing||e.$set(t,"folderName",s.target.value)}}}),i("div",{staticClass:"selfoptiongroup"},[0==t.default?i("el-button",{staticClass:"mini_typeBtn",on:{click:e.saveTitle}},[e._v("保存")]):e._e(),0==t.default?i("el-button",{staticClass:"mini_typeBtn",attrs:{type:"primary"},on:{click:function(t){return e.deleCustomFolder(s)}}},[e._v("删除")]):e._e()],1)]):e._e()]),i("div",{staticClass:"self_newitem"},[i("div",{staticClass:"touxiang_hezuorenBox fl"},e._l(t.listUser,(function(t,r){return i("div",{key:r,staticClass:"yonghutouxiangBox"},[i("div",{staticClass:"touxiang_hezuorenBox-item"},[i("img",{staticClass:"imgHead",attrs:{src:e._f("resolveAvator")(t.headImgUrl)}}),i("i",{staticClass:"icon_delete el-icon-delete",attrs:{title:"删除"},on:{click:function(t){return e.deleteNewProjUser(s,r)}}})]),i("span",[e._v(e._s(t.cnName))])])})),0),i("i",{staticClass:"yiyun_icon_large icon_topnav_large_add add_worker_xiezuo",attrs:{title:"添加合作人"},on:{click:function(t){return e.addUser(s)}}})])])})),0)])],2)]),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerPalDialog,expression:"marchWorkerPalDialog == true"}],staticClass:"PaincenterBox"},[i("div",{staticClass:"xiezuobox"},[i("div",{staticClass:"yiyun_col-6 bg_text_wirte mt-8"},[i("div",{staticClass:"row_painfl"},[i("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-collapse-item",{staticClass:"nomidline",attrs:{name:"1"}},[i("template",{slot:"title"},[i("span",{staticClass:"btnlabelTitle"},[e._v("从部门中选择职员")])]),e._l(e.listDept,(function(t,s){return i("el-collapse",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:s,attrs:{accordion:""}},[i("el-collapse-item",[i("template",{slot:"title"},[i("span",{staticClass:"btnlabelTitle"},[e._v(e._s(t.deptName)+" ")])]),e._l(t.listUser,(function(t,r){return i("div",{key:r,staticClass:"user_info_item",attrs:{label:t}},[i("el-checkbox",{staticClass:"checkBoxCol",attrs:{disabled:e.disabled},on:{change:function(i){return e.handleCheckedOnlyOne(s,t,i)}},model:{value:t.selected,callback:function(s){e.$set(t,"selected",s)},expression:"user.selected"}},[i("div",{staticClass:"checkboxlabelitem"},[i("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),i("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),i("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[i("ul",{staticClass:"popover_ul popover_ul"},[i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.companyName))])]),i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),i("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),i("span",{staticClass:"user_info_role"},[e._v(e._s(t.roleName))])],1)])],1)}))],2)],1)}))],2)],1)],1)]),i("div",{staticClass:"shuxian"}),i("div",{staticClass:"yiyun_col-6"},[i("h4",{staticClass:"rightXiezuoren"},[e._v("已选职员")]),i("div",{staticClass:"row_painfr"},[i("div",{staticClass:"yiyun_line"}),i("span",[e._v("工作负责人")]),i("div",{staticClass:"yiyun_line"}),0==e.selectedUser.length?i("div",{staticClass:"main_workerBox"},[i("i",{staticClass:"icon font_family icon-icon_huangguan-weijihuo largehuangguan"}),i("div",{staticClass:"rentou_alrge"})]):e._e(),0!=e.selectedUser.length?i("div",e._l(e.selectedUser,(function(t,s){return i("div",{key:s,staticClass:"user_info_item mainpeople_H"},[i("i",{staticClass:"icon font_family icon-icon_huangguan-jihuo middlehuangguan fl",attrs:{title:"负责人"}}),i("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),i("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),i("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[i("ul",{staticClass:"popover_ul popover_ul"},[i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.roleName))])]),i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),i("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),i("span",{staticClass:"user_info_role"},[i("i",{staticClass:"el-icon-close largeclose",attrs:{title:"移除负责人"},on:{click:function(s){return e.removeManageUser(t)}}})])],1)})),0):e._e(),i("p",{staticClass:"diaTip"},[e._v(" 工作负责人仅有一人,其将对:"+e._s(e.currWorkName)+",进行职员指派 ")])])])])]),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerDialog,expression:"marchWorkerDialog == true"}],staticClass:"PaincenterBox"},[i("div",{staticClass:"xiezuobox"},[i("div",{staticClass:"yiyun_col-6 bg_text_wirte mt-8"},[i("div",{staticClass:"row_painfl"},[i("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-collapse-item",{staticClass:"nomidline",attrs:{name:"1"}},[i("template",{slot:"title"},[i("span",{staticClass:"quanxuanbtn"},[i("el-checkbox",{staticClass:"checkBoxCol",on:{change:e.handleCheckTopAll},model:{value:e.ischeckAll,callback:function(t){e.ischeckAll=t},expression:"ischeckAll"}},[e._v("全选")])],1),i("span",{staticClass:"btnlabelTitle"},[e._v("从部门中选择职员")])]),e._l(e.listDept,(function(t,s){return i("el-collapse",{directives:[{name:"show",rawName:"v-show",value:e.listDept.length>0,expression:"listDept.length > 0"}],key:s,attrs:{accordion:""}},[i("el-collapse-item",[i("template",{slot:"title"},[i("span",{staticClass:"quanxuanbtn"},[i("el-checkbox",{key:s,staticClass:"checkBoxCol",on:{change:function(t){return e.handleCheckItemAll(s,t)}},model:{value:t.disabled,callback:function(s){e.$set(t,"disabled",s)},expression:"dept.disabled"}},[e._v("全选")])],1),i("span",{staticClass:"btnlabelTitle"},[e._v(e._s(t.deptName)+" ")])]),e._l(t.listUser,(function(t,r){return i("div",{key:r,staticClass:"user_info_item",attrs:{label:t}},[i("el-checkbox",{staticClass:"checkBoxCol",attrs:{disabled:e.disabled},on:{change:function(i){return e.handleCheckedOne(s,t,i)}},model:{value:t.disabled,callback:function(s){e.$set(t,"disabled",s)},expression:"user.disabled"}},[i("div",{staticClass:"checkboxlabelitem"},[i("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),i("span",{staticClass:"user_info_name"},[e._v(e._s(t.userName))]),i("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[i("ul",{staticClass:"popover_ul popover_ul"},[i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.companyName))])]),i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),i("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),i("span",{staticClass:"user_info_role"},[e._v(e._s(t.roleName))])],1)])],1)}))],2)],1)}))],2)],1)],1)]),i("div",{staticClass:"shuxian"}),i("div",{staticClass:"yiyun_col-6"},[i("h4",{staticClass:"rightXiezuoren"},[e._v("已选职员")]),e.isShowManager?i("div",{staticClass:"row_painfr"},[i("div",{staticClass:"yiyun_line"}),i("span",[e._v("工作负责人")]),i("div",{staticClass:"yiyun_line"}),0==e.selectedUser.length?i("div",{staticClass:"main_workerBox"},[i("i",{staticClass:"icon font_family icon-icon_huangguan-weijihuo largehuangguan"}),i("div",{staticClass:"rentou_alrge"})]):e._e(),0!=e.listManagerComputed(e.selectedUser).length?i("div",e._l(e.selectedUser,(function(t,s){return i("div",{key:s,staticClass:"user_info_item mainpeople_H"},[i("i",{staticClass:"icon font_family icon-icon_huangguan-jihuo middlehuangguan fl",attrs:{title:"负责人"}}),i("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),i("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),i("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[i("ul",{staticClass:"popover_ul popover_ul"},[i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.roleName))])]),i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),i("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),i("span",{staticClass:"user_info_role",on:{click:function(s){return e.removeManageUser(t)}}},[e._v("修改")])],1)})),0):e._e(),i("p",{staticClass:"diaTip"},[e._v(" 工作负责人仅有一人,其将对:"+e._s(e.currWorkName)+",进行职员指派 ")])]):e._e(),e.isShowFirstPeople?i("div",e._l(e.listDept,(function(t){return i("div",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:t.id,staticClass:"row_painfr"},[e._l(e.listDeptUserNoZero(e.selectedUser),(function(s){return i("div",{key:s},[s==t.id?i("div",[i("div",{staticClass:"yiyun_line"}),i("span",[e._v(e._s(t.deptName))])]):e._e()])})),e._l(e.selectedUser,(function(s,r){return i("div",{key:r,staticClass:"renyuanbox"},[s.deptId==t.id?i("div",{staticClass:"user_info_item"},[i("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(s.headImgUrl),alt:""}}),i("span",{staticClass:"user_info_name"},[e._v(e._s(s.userName))]),i("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[i("ul",{staticClass:"popover_ul popover_ul"},[i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v(e._s(s.roleName))])]),i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v(e._s(s.phone))])]),i("li",[i("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(s.projCount)+"个")])])]),i("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(s.position))])]),i("span",{staticClass:"user_info_role"},[[i("el-select",{staticClass:"setroleselect",attrs:{placeholder:"设置角色"},model:{value:s.folderPerm,callback:function(t){e.$set(s,"folderPerm",t)},expression:"user.folderPerm"}},e._l(e.roles,(function(t){return i("el-option",{key:t.value,attrs:{"allow-create":"",label:t.label,value:t.value}},[i("span",{staticStyle:{float:"left","margin-right":"30px"}},[e._v(e._s(t.label))]),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.description))])])})),1)],i("i",{staticClass:"el-icon-close",attrs:{title:"移除协作人"},on:{click:function(t){return e.removeSelectUser(s)}}})],2)],1):e._e()])}))],2)})),0):e._e()])])])])])])])])},A=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("span",{staticClass:"label_text"},[e._v("项目管理权限")])])}],F=s("b0f9"),B=s("5ab9"),M=s("9e5b"),O={props:{isNewProj:{type:Boolean,default:!1}},data:function(){var e=this.$store.state.userInfo;return{imgSrc:"/api/archives/cover?path=",headSrc:"/api/archives/head?path=",chunkUploadUrl:"/api/webupload/chunks",isShowdivid:!1,filePicker:"uploadCover",uploadLabel:"编辑封面",srcIndex:2,coverSrc:"static/img/faceImg/face01.png",cnName:"",listDept:[],selectedUser:[],selectedManageUser:[],showTitle:"1",disabled:!1,SelectTemplateNodeList:{},selectTemlateData:"",selectTemlateID:"",diaBodyheight:!1,checkNewProjData:{Proj:{ProjName:"",CompanyId:"",Notice:"",ShowImgUrl:"",TemplateId:"",CreateUserId:"",ModifyUserId:""},Node:{},CustomProps:[]},newProjData:{projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""},listTempProp:[],listProjProp:[],checked:!1,newfolder:{folderName:"自定义"},activeName:"1",NewProductDailog:!0,ProjInfoDialog:!1,showAll:!1,marchWorkDialog:!1,marchWorkerDialog:!1,marchWorkerPalDialog:!1,isDisableCreate:!1,nodeLeaves:!1,isShowFirstPeople:!1,opentree:!0,currWorkName:"",uploadCoverTimes:0,arryUnUseCover:[],uploadCompId:sessionStorage.companyId,uploadTypeCover:2,ischeckAll:!1,newProjFolderIndex:1,projectCreaterName:e.cnName,createDate:(new Date).toLocaleDateString(),listNewFolder:[],listMyPermFolders:[],isSlectPal:!0,roles:[{value:1,label:"编辑和查看",description:""},{value:0,label:"仅查看",description:""}],folderPerm:"1",nowFolderIndex:"",tempIndex:0,currSelectData:[],currUser:e,isShowManager:!0,templateList:[]}},watch:{isNewProj:function(e){0==e&&this.reSetDialog()},marchWorkerPalDialog:function(){}},components:{FileUploader:M["a"]},created:function(){},mounted:function(){this.listDeptUsers(),this.getSelectTemplateData(),window.addEventListener("scroll",this.handleScroll,!0)},computed:{listManagerComputed:function(){return function(e){return e.filter((function(e){return 2==e.folderPerm}))}},listUserComputed:function(){var e=this;return function(t){return t.filter((function(t){return e.isShowManager?2!=t.folderPerm:t.userID!=e.currUser.userID}))}},listUserManager:function(e){return function(e){return e.filter((function(e){return 0==e.folderPerm||2==e.folderPerm}))}},listDeptUserNoZero:function(){return function(e){for(var t=[],s=0;s0?this.isShowdivid=!0:this.isShowdivid=!1},showzhankai:function(){this.$emit("isShowBottom",!0)},offDialog:function(){var e=this,t=this;this.$confirm("放弃“新建项目”您编辑的内容被清空。是否放弃?","",{confirmButtonText:"放弃",cancelButtonText:"取消",showClose:!1,type:"error",beforeClose:function(e,s,i){"confirm"==e&&(t.isDisableCreate=!1,t.SelectTemplateNodeList=[],t.selectedUser=[],t.selectedManageUser=[],t.marchWorkDialog=!1,t.marchWorkerDialog=!1,t.marchWorkerPalDialog=!1,t.ProjInfoDialog=!1,t.NewProductDailog=!0,t.newProjData={projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""},t.$emit("refreshListProj",!1)),s.doClose()}}).then((function(){e.isDisableCreate=!1,e.newProjData.projectData={},e.SelectTemplateNodeList=[],e.selectedUser=[],e.selectedManageUser=[],e.marchWorkDialog=!1,e.marchWorkerDialog=!1,e.marchWorkerPalDialog=!1,e.ProjInfoDialog=!1,e.NewProductDailog=!0,e.newProjData={projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""}})).catch((function(e){}))},reSetDialog:function(){var e=this;e.isDisableCreate=!1,e.SelectTemplateNodeList=[],e.selectedUser=[],e.selectedManageUser=[],e.marchWorkDialog=!1,e.marchWorkerDialog=!1,e.marchWorkerPalDialog=!1,e.ProjInfoDialog=!1,e.NewProductDailog=!0,e.newProjData={projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""},e.checkNewProjData={Proj:{ProjName:"",CompanyId:"",Notice:"",ShowImgUrl:"",TemplateId:"",CreateUserId:"",ModifyUserId:""},Node:{},CustomProps:[]},e.$emit("refreshListProj",!1)},godistWork:function(){this.isAllhide()},isAllhide:function(){this.NewProductDailog=!1,this.ProjInfoDialog=!1,this.marchWorkDialog=!1,this.marchWorkerDialog=!1,this.marchWorkerPalDialog=!1},backdistProjName:function(){this.isAllhide(),this.NewProductDailog=!0},backdistNewProj:function(){this.isAllhide(),this.ProjInfoDialog=!0},backdistWork:function(){var e=this;1==this.marchWorkerPalDialog?this.$confirm("退出“职员选择”您编辑的内容被清空,确定退出?","",{confirmButtonText:"退出",cancelButtonText:"取消",showClose:!1,type:"warning"}).then((function(){e.newProjData.listFolder[e.nowFolderIndex]=e.currSelectData,e.cancelCheck(),e.isAllhide(),e.marchWorkDialog=!0})):(this.cancelCheck(),this.isAllhide(),this.marchWorkDialog=!0)},backWorkerPal:function(){this.isAllhide(),this.marchWorkerPalDialog=!0},addUserPal:function(e){this.currSelectData=JSON.parse(JSON.stringify(this.newProjData.listFolder[parseInt(e)])),this.currWorkName=this.newProjData.listFolder[parseInt(e)].folderName,this.nowFolderIndex=parseInt(e),this.isAllhide(),this.marchWorkerPalDialog=!0,this.isShowFirstPeople=!1,this.setFolderPerm(this.newProjData.listFolder[parseInt(e)]),this.selectedUser=this.newProjData.listFolder[parseInt(e)].listUser},addUser:function(e){this.currWorkName=this.newProjData.listFolder[parseInt(e)].folderName,this.isAllhide(),this.isShowFirstPeople=!0,this.marchWorkerDialog=!0,this.isShowManager=!0,this.setFolderPerm(this.newProjData.listFolder[parseInt(e)]),this.selectedUser=this.newProjData.listFolder[parseInt(e)].listUser},addManager:function(){var e=this;this.isAllhide(),this.isShowFirstPeople=!0,this.marchWorkerDialog=!0,this.isShowManager=!1,E(this.$store.state.currentCompanyId).then((function(t){e.listDept=t,e.listDept=Object(p["a"])(e.listDept),console.log("1111111111111111111111111",e.listDept)})).catch((function(e){console.log(e)})),this.selectedUser=this.newProjData.projectData.listProjManager},deleteNewProjUser:function(e,t){this.newProjData.listFolder[e].listUser.splice(t,1)},deleteDistWorkUser:function(e,t){this.listNewFolder[e].listUser.splice(t,1)},eidtTitle:function(e){this.tempIndex=e,this.showTitle=2},saveTitle:function(e){this.tempIndex=0,this.showTitle=1},deleCustomFolder:function(e){this.newProjData.listFolder.splice(e,1)},addProjFolderWork:function(){this.eidtTitle(this.newProjData.listFolder.length),this.newfolder={folderName:"自定义工作"+this.newProjFolderIndex,default:!1,deleted:0,listUser:[],manageUser:[]},this.newProjData.listFolder.push(this.newfolder),this.newProjFolderIndex=this.newProjFolderIndex+1},setDistManagerUser:function(){var e=this;this.selectedManageUser.splice(0,this.selectedManageUser.length),this.selectedUser.forEach((function(t){2==t.folderPerm&&e.selectedManageUser.push(t)}))},handleCheckTopAll:function(e){for(var t=0;t0&&(this.handleCheckItemAll(t,!1),this.handleCheckItemAll(t,e))},handleCheckItemAll:function(e,t){for(var s=0;s0&&(t++,1==this.listDept[s]["selected"]&&e++);this.ischeckAll=e==t},removeSelectUser:function(e){this.checkDeptUserName(!1,e),this.cancelCheck(e.userID)},removeManageUser:function(e){e.folderPerm=0,e.roleName="查看编辑";for(var t=0;t0)for(var s=0;s0&&1==this.marchWorkerDialog?this.isShowFirstPeople=!0:this.isShowFirstPeople=!1},changeSelectTemplate:function(e){this.selectTemlateID=e;for(var t=0;t35?this.$notify({message:"项目名称不得超出35个字符。",type:"warning",offset:100,duration:2500}):void 0!=this.newProjData.projectData.templateID&&null!=this.newProjData.projectData.templateID&&""!=this.newProjData.projectData.templateID?(F["m"](this.selectTemlateID).then((function(t){t.Data.propertys.forEach((function(t,s){e.checkNewProjData.CustomProps[s]={},e.checkNewProjData.CustomProps[s]["TempPropId"]=t.Id,e.checkNewProjData.CustomProps[s]["PropertyName"]=t.PropertyName,e.checkNewProjData.CustomProps[s]["PropValue"]="";var i=e.checkNewProjData.CustomProps;e.checkNewProjData.CustomProps=Object(p["a"])(i)})),e.checkNewProjData=Object(p["a"])(e.checkNewProjData)})),this.isAllhide(),this.setSystemCoverRandom(),this.ProjInfoDialog=!0):this.$notify({message:"请选择工作链。",type:"warning",offset:100,duration:2500})}else this.$notify({message:"请输入项目名称。",type:"warning",offset:100,duration:2500})},listFolders:function(){var e=this;this.$axios({method:"get",url:encodeURI("/api/folders/allot/"+sessionStorage.userId+"/"+sessionStorage.projId)}).then((function(t){e.listMyPermFolders=t.data})).catch((function(e){console.log(e)}))}},destroyed:function(){window.removeEventListener("scroll",this.handleScroll,!0)}};function E(e){return L.apply(this,arguments)}function L(){return L=Object(a["a"])(regeneratorRuntime.mark((function e(t){var s,i,r,a,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Object(m["d"])(t),Object(m["g"])({id:t,nodeType:"company"},1,1e4)]);case 2:return s=e.sent,i=Object(f["a"])(s,2),r=i[0],a=i[1].list,n=r[0].children||[],o=W(n,a),e.abrupt("return",o.filter((function(e){return e.listUser&&e.listUser.length})));case 9:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function W(e,t){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(e||[]).forEach((function(e){var i=e.data;i.listUser=t.filter((function(t){return t.deptId===e.id})),s.push(i),e.children&&e.children.length&&W(e.children,t,s)})),s}var $=O,R=Object(y["a"])($,T,A,!1,null,null,null),z=R.exports,H=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"bottomdialog"},[s("div",{staticClass:"yiyun_dialog_left yiyun_zhedie"},[s("span",{on:{click:e.offDialog}},[e._v("关闭")])]),s("div",{staticClass:"yiyun_dialog_center"},[s("span",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetUsers,expression:"isShowSetUsers"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.toSecondPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("span",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetManager,expression:"isShowSetManager"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backFirstPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("span",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetUsers&&e.isShowProjInfo,expression:"isShowSetUsers && isShowProjInfo"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backFirstPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("div",{staticClass:"bottomdialogbox_list_head newProject_next_taggle1"},[s("div",{staticClass:"EC_col_16"},[s("h3",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetFolder,expression:"isShowSetFolder"}]},[e._v("项目编辑")]),s("h3",{directives:[{name:"show",rawName:"v-show",value:e.isShowProjInfo,expression:"isShowProjInfo"}]},[e._v("项目概况")]),s("h3",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetUsers,expression:"isShowSetUsers"}]},[e._v("指派职员")]),s("h3",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetManager,expression:"isShowSetManager"}]},[e._v("指派工作负责人")])]),s("div",{staticClass:"EC_col_8"},[s("div",{staticClass:"fr mt-26"},[s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSetManager,expression:"isShowSetManager == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.toThreePage}},[e._v("分配职员")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSetUsers,expression:"isShowSetUsers == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.backFirstPage}},[e._v("完成或跳过")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSetFolder,expression:"isShowSetFolder == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.submitAndClose}},[e._v("完成")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isShowEditProjBtn,expression:"isShowEditProjBtn"}],staticClass:"fr width_120 edit120",attrs:{type:"primary",round:""},on:{click:e.EidtProjectInfo}},[e._v("编辑项目概况")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isShowSaveAllBtn,expression:"isShowSaveAllBtn"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.saveProjectInfo}},[e._v("保存")])],1)]),s("div",{staticClass:"clear"}),s("div",{staticClass:"yiyun_Tbline"})])]),s("div",{staticClass:"yiyun_dialog_right yiyundialog_close"}),s("div",{staticClass:"clear"}),s("div",{staticClass:"dialogcontentbody"},[s("div",{staticClass:"dialogcontentbodyrow"},[s("div",{staticClass:"centerWarpDia"},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetFolder,expression:"isShowSetFolder"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox"},[s("div",{staticClass:"line_from"},[s("div",[e._l(e.listNewFolder,(function(t,i){return s("div",{key:i,staticClass:"tianjiaxiezuorenBox"},[1==e.showTitle?s("div",{staticClass:"self_newitem"},[s("h5",{staticClass:"fl label_text"},[e._v(" "+e._s(t.folderName)+" ")]),s("div",{staticClass:"selfoptiongroup"},[0==t.default?s("el-button",{on:{click:e.eidtTitle}},[e._v("编辑")]):e._e()],1)]):e._e(),2==e.showTitle?s("div",{staticClass:"self_newitem"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.folderName,expression:"folder.folderName"}],class:0==t.default?"bianji_input self_Inputwork":"fl label_text_moren",attrs:{disabled:t.default},domProps:{value:t.folderName},on:{input:function(s){s.target.composing||e.$set(t,"folderName",s.target.value)}}}),s("div",{staticClass:"selfoptiongroup"},[0==t.default?s("el-button",{attrs:{type:"primary"},on:{click:e.saveTitle}},[e._v("保存")]):e._e(),0==t.default?s("el-button",{on:{click:function(t){return e.deleTitle(i)}}},[e._v("删除")]):e._e()],1)]):e._e(),s("div",[s("div",{staticClass:"fl firstPeople"},[""==t.manageUser?s("div",[s("div",{staticClass:"avtarface",on:{click:function(s){return e.aloneAddUserForFolder(t)}}},[s("i",{staticClass:"large_huangguan el-icon-plus"})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("工作负责人")])]):e._e(),e._l(e.listManagerComputed(t.manageUser),(function(i,r){return s("li",{key:r},[s("div",[s("div",{staticClass:"avtarface",attrs:{title:"编辑"}},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.headSrc+i.headImgUrl,expression:"headSrc + user.headImgUrl"}],attrs:{src:""},on:{click:function(s){return e.aloneAddUserForFolder(t)}}})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(i.cnName))])])])}))],2),s("div",{staticClass:"fl vhLine mlr-20"}),""!=t.manageUser?s("div",{staticClass:"fl addBtn_new",attrs:{title:"添加职员"},on:{click:function(s){return e.aloneAddUserOnlyStaff(t)}}},[s("i",{staticClass:"el-icon-plus middleaddEC"})]):e._e(),s("div",{staticClass:"fl chengyuanbox"},[s("ul",{staticClass:"ECworkerList"},e._l(e.listUserComputed(t.listUser),(function(i,r){return s("li",{key:r},[r<14||e.showAll?s("div",[s("div",{staticClass:"avtarface",attrs:{title:"编辑"}},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.headSrc+i.headImgUrl,expression:"headSrc + user.headImgUrl"}],attrs:{src:""}})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(i.cnName))])]):e._e(),14!=r||e.showAll?e._e():s("div",{on:{click:e.showAllClick}},[s("span",{staticClass:"zhangkai_down"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("展开全部")])]),e.showAll&&r==t.listUser.length-1&&r>14?s("div",{staticClass:"newweizhi",on:{click:function(t){e.showAll=!1}}},[s("span",{staticClass:"zhangkai_up"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("收起职员")])]):e._e()])})),0)]),s("div",{staticClass:"clear"})])])})),e._m(0)],2)])])]),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowProjInfo,expression:"isShowProjInfo"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox ",staticStyle:{"margin-left":"4px"}},[s("el-form",{ref:"",staticClass:"line_from",attrs:{"label-width":"110px","label-position":"left"},model:{value:e.nowProject,callback:function(t){e.nowProject=t},expression:"nowProject"}},[s("div",{staticClass:"yiyun_col-6 fl"},[s("div",{staticClass:"bianju_item_fr"},[s("el-form-item",{attrs:{label:"项目负责人:"}},[s("span",[e._v(e._s(e.nowProject.ProjCreateUserName))])])],1)]),s("div",{staticClass:"yiyun_col-6 fl"},[s("div",{staticClass:"bianju_item_fr"},[s("el-form-item",{attrs:{label:"创建时间:"}},[s("span",[e._v(e._s(e.nowProject.ProjCreateTime))])])],1)]),e._l(e.listProjProp,(function(t){return s("div",{key:t.TempPropId,staticClass:"yiyun_col-12 fl"},[s("div",{staticClass:"bianju_item_fr"},[s("el-form-item",{attrs:{label:t.PropertyName+":"}},[e.isShowInfoEdit?s("el-input",{staticClass:"labelinputbefore",attrs:{placeholder:"输入"},model:{value:t.PropValue,callback:function(s){e.$set(t,"PropValue",s)},expression:"prop.PropValue"}}):e._e(),e.isShowInfoEdit?e._e():s("span",[e._v(e._s(t.PropValue))])],1)],1)])})),s("div",{staticClass:"yiyun_col-12 fl mt-10"},[s("div",{staticClass:"clear"}),s("div",{staticClass:"yiyun_col-6"},[s("div",{staticClass:"pageImgBox"},[s("img",{attrs:{src:e._f("resolveAvator")(e.coverSrc),alt:""}}),s("file-uploader",{directives:[{name:"show",rawName:"v-show",value:e.isShowSaveAllBtn,expression:"isShowSaveAllBtn"}],staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[s("span",[e._v("编辑")])]),s("span",{directives:[{name:"show",rawName:"v-show",value:e.isShowSaveAllBtn,expression:"isShowSaveAllBtn"}],staticClass:"faceBtn",on:{click:e.setSystemCoverRandom}},[e._v("使用随机封面")])],1)])])],2),s("div",{staticClass:"clear"})],1)]),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetManager,expression:"isShowSetManager"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox"},[s("div",{staticClass:"yiyun_col-6 bg_text_wirte mt-8"},[s("div",{staticClass:"row_painfl"},[s("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-collapse-item",{staticClass:"nomidline",attrs:{name:"1"}},[s("template",{slot:"title"},[s("span",{staticClass:"checkBoxCol"},[e._v("从部门中选择职员")])]),e._l(e.listDept,(function(t,i){return s("el-collapse",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:i,attrs:{accordion:""}},[s("el-collapse-item",[s("template",{slot:"title"},[s("span",{staticClass:"checkBoxCol"},[e._v(e._s(t.deptName)+" ")])]),e._l(t.listUser,(function(t,r){return s("div",{key:r,staticClass:"user_info_item",attrs:{label:t}},[s("el-checkbox",{staticClass:"checkBoxCol",attrs:{disabled:e.disabled},on:{change:function(s){return e.handleCheckedOnlyOne(i,t,s)}},model:{value:t.selected,callback:function(s){e.$set(t,"selected",s)},expression:"user.selected"}},[s("div",{staticClass:"checkboxlabelitem"},[s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),s("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[s("ul",{staticClass:"popover_ul popover_ul"},[s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.companyName))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),s("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),s("span",{staticClass:"user_info_role"},[e._v(e._s(t.roleName))])],1)])],1)}))],2)],1)}))],2)],1)],1)]),s("div",{staticClass:"shuxian"}),s("div",{staticClass:"yiyun_col-6"},[s("h4",{staticClass:"rightXiezuoren"},[e._v("已选职员")]),s("div",{staticClass:"row_painfr"},[s("div",{staticClass:"yiyun_line"}),s("span",[e._v("工作负责人")]),s("div",{staticClass:"yiyun_line"}),0==e.listManagerComputed(e.selectedUser).length?s("div",{staticClass:"main_workerBox"},[s("i",{staticClass:"icon font_family icon-icon_huangguan-weijihuo largehuangguan"}),s("div",{staticClass:"rentou_alrge"})]):e._e(),0!=e.listManagerComputed(e.selectedUser).length?s("div",e._l(e.listManagerComputed(e.selectedUser),(function(t,i){return s("div",{key:i,staticClass:"user_info_item mainpeople_H"},[s("i",{staticClass:"icon font_family icon-icon_huangguan-jihuo middlehuangguan fl",attrs:{title:"负责人"}}),s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),s("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[s("ul",{staticClass:"popover_ul popover_ul"},[s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.roleName))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),s("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),s("span",{staticClass:"user_info_role"},[s("i",{staticClass:"el-icon-close largeclose",attrs:{title:"移除负责人"},on:{click:function(s){return e.removeManageUser(t)}}})])],1)})),0):e._e(),s("p",{staticClass:"diaTip"},[e._v(" 工作负责人有且仅有一人,其将对:"+e._s(e.currWorkName)+",进行职员指派。 ")])])])])]),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetUsers,expression:"isShowSetUsers"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox"},[s("div",{staticClass:"yiyun_col-6 bg_text_wirte mt-8"},[s("div",{staticClass:"row_painfl"},[s("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-collapse-item",{staticClass:"nomidline",attrs:{name:"1"}},[s("template",{slot:"title"},[s("el-checkbox",{staticClass:"checkxiezuoren",staticStyle:{color:"white"},on:{change:e.handleCheckTopAll},model:{value:e.ischeckAll,callback:function(t){e.ischeckAll=t},expression:"ischeckAll"}},[e._v("全选")]),s("span",{staticClass:"checkBoxCol"},[e._v("从部门中选择职员")])],1),e._l(e.listDept,(function(t,i){return s("el-collapse",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:i,attrs:{accordion:""}},[s("el-collapse-item",[s("template",{slot:"title"},[s("el-checkbox",{key:i,staticClass:" checkxiezuoren",staticStyle:{color:"white"},on:{change:function(t){return e.handleCheckItemAll(i,t)}},model:{value:t.selected,callback:function(s){e.$set(t,"selected",s)},expression:"dept.selected"}},[e._v("全选")]),s("span",{staticClass:" checkBoxCol"},[e._v(e._s(t.deptName)+" ")])],1),e._l(e.listUserStaff(t.listUser),(function(t,r){return s("div",{key:r,staticClass:"user_info_item",attrs:{label:t}},[s("el-checkbox",{staticClass:"checkBoxCol",attrs:{disabled:e.disabled},on:{change:function(s){return e.handleCheckedOne(i,t,s)}},model:{value:t.selected,callback:function(s){e.$set(t,"selected",s)},expression:"user.selected"}},[s("div",{staticClass:"checkboxlabelitem"},[s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),s("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[s("ul",{staticClass:"popover_ul popover_ul"},[s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.companyName))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),s("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),s("span",{staticClass:"user_info_role"},[e._v(e._s(t.roleName))])],1)])],1)}))],2)],1)}))],2)],1)],1)]),s("div",{staticClass:"shuxian"}),s("div",{staticClass:"yiyun_col-6"},[s("h4",{staticClass:"rightXiezuoren"},[e._v("已选职员")]),s("div",{staticClass:"row_painfr"},[s("div",{staticClass:"yiyun_line"}),s("span",[e._v("工作负责人")]),s("div",{staticClass:"yiyun_line"}),0==e.listManagerComputed(e.selectedUser).length?s("div",{staticClass:"main_workerBox"},[s("i",{staticClass:"icon font_family icon-icon_huangguan-weijihuo largehuangguan"}),s("div",{staticClass:"rentou_alrge"})]):e._e(),0!=e.listManagerComputed(e.selectedUser).length?s("div",e._l(e.listManagerComputed(e.selectedUser),(function(t,i){return s("div",{key:i,staticClass:"user_info_item mainpeople_H"},[s("i",{staticClass:"icon font_family icon-icon_huangguan-jihuo middlehuangguan fl",attrs:{title:"负责人"}}),s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),s("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[s("ul",{staticClass:"popover_ul popover_ul"},[s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.roleName))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),s("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),s("span",{staticClass:"user_info_role",on:{click:function(s){return e.removeManageUser(t)}}},[e._v("编辑")])],1)})),0):e._e(),s("p",{staticClass:"diaTip"},[e._v(" 工作负责人有且仅有一人,其将对:"+e._s(e.currWorkName)+",进行职员指派。 ")])]),e.isShowStaffList?s("div",e._l(e.listDept,(function(t){return s("div",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:t.deptID,staticClass:"row_painfr"},[e._l(e.listDeptUserNoZero(e.selectedUser),(function(i){return s("div",{key:i},[i==t.deptID?s("div",[s("div",{staticClass:"yiyun_line"}),s("span",[e._v(e._s(t.deptName))])]):e._e()])})),e._l(e.listUserComputed(e.selectedUser),(function(i,r){return s("div",{key:r,staticClass:"renyuanbox"},[i.deptID==t.deptID?s("div",{staticClass:"user_info_item"},[s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(i.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(i.cnName))]),s("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[s("ul",{staticClass:"popover_ul popover_ul"},[s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(i.roleName))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(i.phone))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(i.projCount)+"个")])])]),s("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(i.position))])]),s("span",{staticClass:"user_info_role"},[[s("el-select",{staticClass:"setroleselect",attrs:{placeholder:"设置角色"},model:{value:i.folderPerm,callback:function(t){e.$set(i,"folderPerm",t)},expression:"user.folderPerm"}},e._l(e.roles,(function(t){return s("el-option",{key:t.value,attrs:{"allow-create":"",label:t.label,value:t.value}},[s("span",{staticStyle:{float:"left","margin-right":"30px"}},[e._v(e._s(t.label))]),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.description))])])})),1)],s("i",{staticClass:"el-icon-close",attrs:{title:"移除协作人"},on:{click:function(t){return e.removeSelectUser(i)}}})],2)],1):e._e()])}))],2)})),0):e._e()])])])])])])])])},J=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("span",{staticClass:"fl label_text"},[e._v("自定义工作")]),s("span",{staticClass:"fr mt-10"},[s("i",{staticClass:"yiyunPlusmini"})])])}],q=s("5a0c"),V=s.n(q),Z={components:{FileUploader:M["a"]},props:{isProjManager:{type:Boolean,default:!1},isSetFolder:{type:Boolean,default:!1},projId:{type:String,default:""},createUserId:{type:String,default:""}},data:function(){return{imgSrc:"/api/archives/cover?path=",headSrc:"/api/archives/head?path=",chunkUploadUrl:"/api/webupload/chunks",uploadCompId:sessionStorage.companyId,coverSrc:"static/img/faceImg/face01.png",uploadTypeCover:2,filePicker:"projFilePicker",srcIndex:2,selectedUser:[],selectedManageUser:[],showTitle:"1",disabled:!1,activeName:"1",showAll:!1,isBottomNewProj:!1,nodeLeaves:!1,isShowStaffList:!1,opentree:!0,ischeckAll:!1,nowProject:{},isSlectPal:!0,roles:[{value:1,label:"编辑",description:"查看和编辑"},{value:0,label:"查看",description:"查看"}],folderPerm:"1",initData:[],listNewFolder:[],listProjProp:[],listDept:[],curProjCreatePeop:[],isShowSetFolder:!1,isShowSetManager:!1,isShowSetUsers:!1,isShowProjInfo:!0,isShowInfoEdit:!1,isShowEditProjBtn:!1,isShowSaveAllBtn:!1,currWorkName:"",currentProjId:"",currSelectData:[]}},mounted:function(){},computed:{listDeptComputed:function(){return this.listDept.filter((function(e){return e.listUser.length>0}))},listManagerComputed:function(){return function(e){return e.filter((function(e){return 2==e.folderPerm}))}},listUserComputed:function(){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}},listUserManager:function(e){return function(e){return e.filter((function(e){return 0==e.folderPerm||2==e.folderPerm}))}},listUserStaff:function(e){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}},listDeptUserNoZero:function(){return function(e){for(var t=[],s=0;s0&&(this.handleCheckItemAll(t,!1),this.handleCheckItemAll(t,e))},handleCheckItemAll:function(e,t){for(var s=0;s0&&(t++,1==this.listDept[s].selected&&e++);this.ischeckAll=e==t},removeSelectUser:function(e){this.checkDeptUserName(!1,e),this.cancelCheck(e.userID)},removeManageUser:function(e){e.folderPerm=0,e.roleName="查看编辑";for(var t=0;t0&&1==this.isShowSetUsers?this.isShowStaffList=!0:this.isShowStaffList=!1},showAllClick:function(){this.showAll=!0},listProjFolder:function(){},projInfo:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function s(){var i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,_["c"](e);case 2:i=s.sent,t.nowProject=i.Data,t.nowProject.ProjCreateTime=V()(t.nowProject.ProjCreateTime).format("YYYY/MM/DD"),t.nowProject=Object(d["a"])({},t.nowProject),t.listProjProp=i.Data.CustomProps,t.listProjProp=Object(p["a"])(t.listProjProp),t.coverSrc=i.Data.ShowImgUrl;case 9:case"end":return s.stop()}}),s)})))()},listDeptUsers:function(){var e=sessionStorage.companyId,t=this;this.$axios({method:"get",url:encodeURI("/api/sysinfo/deptusers/"+e)}).then((function(e){t.listDept=e.data.data})).catch((function(e){console.log(e)}))},saveProject:function(){var e=this;this.$axios({method:"put",url:encodeURI("/api/projects"),data:{projectData:this.nowProject,listFolder:this.listNewFolder,listProjProp:this.listProjProp,userId:sessionStorage.userId}}).then((function(t){1===t.data.state?(e.$notify({message:t.data.message,type:"success",offset:30,duration:2500}),e.offDialog()):e.$notify({message:t.data.message,type:"error",offset:30,duration:5e3})})).catch((function(e){console.log(e)}))},coverUploadSuccess:function(e){var t=Object(B["c"])(e.ossUrl);this.coverSrc=t,this.nowProject.ShowImgUrl=t},setSystemCover:function(){this.coverSrc="static/img/faceImg/face0"+this.srcIndex+".png",this.nowProject.showImgUrl=this.srcIndex,this.srcIndex<9?this.srcIndex=this.srcIndex+1:this.srcIndex=1},setSystemCoverRandom:function(){var e=Math.ceil(10*Math.random());while(this.srcIndex===e)e=Math.ceil(10*Math.random());this.srcIndex=e,10===this.srcIndex?this.coverSrc="static/img/faceImg/face"+this.srcIndex+".png":this.coverSrc="static/img/faceImg/face0"+this.srcIndex+".png",this.nowProject.ShowImgUrl=this.coverSrc}},watch:{isProjManager:function(e){this.isShowEditProjBtn=e},isSetFolder:function(e){this.isShowSetFolder=e,this.isShowProjInfo=!e,this.isShowEditProjBtn=!e,e&&(this.isShowSaveAllBtn=!1)},projId:function(e){this.currentProjId=e,this.projInfo(e)}}},Y=Z,G=Object(y["a"])(Y,H,J,!1,null,null,null),X=G.exports,Q=s("0f13"),K=function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.cnName?s("div",[s("div",{staticClass:"big-time"},[e._v(e._s(e.nowTime))]),s("div",{staticClass:"now-time"},[s("span",{staticClass:"nowshijian"},[e._v(e._s(e.nowDate.substr(5))+" "+e._s(e.welcome)+e._s(e.cnName))])])]):e._e()},ee=[],te={props:["cnName"],data:function(){return{nowTime:"",nowDate:"",welcome:"",timer:null}},methods:{setDateTime:function(){this.nowDate=n["a"].getDate(),this.createDate=this.nowDate,this.nowTime=n["a"].getTime();var e=this.nowTime.substring(0,2);e<12&&e>0?this.welcome="上午好! ":12==e?this.welcome="中午好! ":e>12&&e>20?this.welcome="晚上好,注意休息! ":e>12&&e<20&&(this.welcome="下午好!")}},mounted:function(){this.setDateTime(),this.timer=setInterval(this.setDateTime,1e3)},beforeDestroy:function(){clearInterval(this.timer),this.timer=null}},se=te,ie=(s("9d0d"),s("63b7"),Object(y["a"])(se,K,ee,!1,null,"0481b847",null)),re=ie.exports,ae=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("section",{staticClass:"yiyun_warpContent"},[s("div",{staticClass:"yiyun-rows",attrs:{id:"alone"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isEmpty,expression:"isEmpty"}],staticClass:"nullproduct"},[s("img",{attrs:{src:"static\\img\\nopro.png",alt:""}}),s("span",{staticClass:"noprotext"},[e._v("暂无项目")])]),s("div",{staticClass:"prjitemList"},[s("el-row",{attrs:{gutter:64}},e._l(e.projList,(function(t,i){return s("el-col",{key:t.Id,attrs:{xs:24,sm:12,md:12,lg:8,xl:6}},[s("proj-item",{attrs:{projItem:t},on:{lookProjDetailClick:function(s){return e.lookProjDetailClick(t)},watchAllBtnClick:function(s){return e.watchAllBtnClick(t,i)}}})],1)})),1)],1)])])])},ne=[],oe=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"prjitem"},[s("div",{ref:"projitem",staticClass:"prjitem_content",style:e.showBackground(e.projItem.ShowImgUrl),on:{mouseenter:function(t){e.showSetIcon(e.projItem.Id),e.isMouseHover=!0},mouseleave:function(t){e.hiddenSetIcon,e.isMouseHover=!1},click:function(t){return t.stopPropagation(),e.goFilePage(e.projItem)}}},[1==e.projItem.newProjStatus?s("div",{staticClass:"newprj_icon"},[e._v("新项目")]):e._e(),s("div",{staticClass:"prjitem_title",class:{"move-item-name":e.focusProjId==e.projItem.Id&&e.isMouseHover},attrs:{title:e.projItem.ProjName}},[e._v(e._s(e.subProjName(e.projItem.ProjName)))]),s("div",{staticClass:"operate-bar",class:{"show-operate-bar":e.isMouseHover&&e.focusProjId==e.projItem.Id}},[s("div",{staticClass:"bar-item",on:{click:function(t){return t.stopPropagation(),e.watchAllBtnClick(t)}}},[e._v("观全局")]),s("div",{staticClass:"bar-item",on:{click:function(t){return t.stopPropagation(),e.lookProjDetailClick(t)}}},[e._v("项目管理")])])])])},le=[],ce={data:function(){return{focusProjId:"",isEmpty:!1,isMouseHover:!1}},props:{projItem:{type:Object,default:function(){return{}}}},methods:{showBackground:function(e){var t=this.$options.filters["resolveImg"],s=t(e);return{background:"center/cover no-repeat url(".concat(s,")")}},lookProjDetailClick:function(){this.$emit("lookProjDetailClick")},manageProj:function(){this.$router.push("/newproject")},subProjName:function(e){var t=e.length;if(t>13){var s=e.slice(0,7),i=e.slice(t-6,t);return s+"..."+i}return e},watchAllBtnClick:function(){this.$emit("watchAllBtnClick")},showSetIcon:function(e){this.focusProjId=e},hiddenSetIcon:function(){this.focusProjId=""},goFilePage:function(e){sessionStorage.createUserID=e.CreateUserId,sessionStorage.templateID=e.TemplateId,sessionStorage.projId=e.Id,sessionStorage.nowFolderIndex="",sessionStorage.comFolderId=e.ComFolderId,sessionStorage.newProjStatus=e.NewProjStatus,sessionStorage.projName!=e.ProjName&&(sessionStorage.projName=e.ProjName),this.$router.push({name:"workspace"}).catch((function(e){return console.log(e)}));var t={API:"folder/queryNodeFolderListByProjectId",Action:"打开项目",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.projName,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(g["b"])("operation/record",t),sessionStorage.pageName="workspace"}}},ue=ce,de=(s("6654"),s("7df1"),Object(y["a"])(ue,oe,le,!1,null,"2b5d1f78",null)),he=de.exports,fe={data:function(){return{isEmpty:!1}},components:{ProjItem:he},props:{projList:{type:Array,default:function(){return[]}},openPrjInfo:Function,addNewFolders:Function},watch:{projListLength:{immediate:!0,handler:function(e){this.isEmpty=!(e>0)}}},computed:{projListLength:function(){return this.projList?this.projList.length:0}},methods:{lookProjDetailClick:function(e){this.$emit("lookProjDetailClick",e)},manageProj:function(){this.$router.push("/newproject")},subProjName:function(e){var t=e.length;if(t>13){var s=e.slice(0,7),i=e.slice(t-6,t);return s+"..."+i}return e},watchAllBtnClick:function(e,t){this.$emit("watchAllBtnClick",e,t)}}},pe=fe,me=(s("01a6"),Object(y["a"])(pe,ae,ne,!1,null,"22c87fa3",null)),ve=me.exports,ge=(window.BMap,window.Velocity),we={elNew:"#new",components:{SearchBar:l["a"],DistWork:N,NewProj:z,ProjSetting:X,Timer:re,AppHeader:o["a"],ProjList:ve},data:function(){var e=this.$store.state.currentPlatform;return{currentPlatform:e,isUserPerm:Object(Q["c"])(e.accessList,Q["a"].ProjectManager),nowDate:"",nowTime:"",cnName:"",currProjId:"",feedbackdesc:"",projList:[],nowProj:"",isEmpty:!1,createUserId:"",isProjectManager:!1,newProjData:{projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0},listFolder:[],listProjProp:[],userId:""},listTempProp:[],listProjProp:[],checked:!1,newfolder:{folderName:"自定义"},isNewProj:!1,isBottomNewProj:!1,isDistProj:!0,isShowAllProject:!0,isHideAllProject:!1,isPointGroup:!0,pageIndex:1,isAloneDistProj:!1,createDate:new Date,noProjTip:!1,roles:[{value:1,label:"编辑",description:"查看和编辑"},{value:0,label:"查看",description:"查看"}],folderPerm:"1",scrollIndex:12,welcome:"",isShowProjSetting:!1,isEditProjFolder:!1,fetchTickIns:null,searchContent:"",searchProjList:[],isShowSearchBar:!1,isSearching:!1,homeScrollTop:0,contentBodyEl:null}},computed:{showProjList:function(){return this.isShowSearchBar&&this.searchContent&&this.isSearching?this.searchProjList:this.projList},showCenterTitle:function(){return this.isShowSearchBar&&this.searchContent?"“".concat(this.searchContent,"”搜索结果"):"我的项目"}},watch:{searchContent:function(){this.searchForProj()}},mounted:function(){this.cnName=JSON.parse(sessionStorage.user).userName,sessionStorage.setItem("pageTitle","我的项目"),this.listProjects(!0),this.contentBodyEl=document.getElementById("bigbody"),this.contentBodyEl&&this.contentBodyEl.addEventListener("scroll",this.recordContentScrollTop)},beforeDestroy:function(){sessionStorage.dotIndex=this.ind,this.fetchTickIns&&(clearTimeout(this.fetchTickIns),this.fetchTickIns=null),this.contentBodyEl&&this.contentBodyEl.removeEventListener("scroll",this.recordContentScrollTop)},methods:{recordContentScrollTop:function(){this.homeScrollTop=this.contentBodyEl.scrollTop,sessionStorage.setItem("homeScrollTop",this.homeScrollTop)},maxTextLengthArrived:function(){this.$notify({message:"请输入35个字之内的搜索内容",type:["warning"]})},hideSearchBar:function(){this.isShowSearchBar=!1,this.searchContent=""},showSearchBar:function(){this.isShowSearchBar=!0},searchForProj:Object(v["debounce"])(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=/^\s*$/,!t.test(this.searchContent)){e.next=5;break}return e.abrupt("return");case 5:return this.isSearching=!0,e.next=8,_["e"](this.searchContent);case 8:s=e.sent,0==s.Code?this.searchProjList=s.Data:this.$notify({type:["error"],message:"查询数据失败, 请稍后重试。"});case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),500),changeSearchContent:function(e){this.searchContent=e},createNewProjectClick:function(){this.$router.push("/newproject").catch((function(e){return console.log(e)}))},lookProjDetailClick:function(e){sessionStorage.projId=e.Id,sessionStorage.createUserID=e.CreateUserId,sessionStorage.templateID=e.TemplateId,sessionStorage.allocated=e.Allocated,this.$router.push({name:"projdetail"}).catch((function(e){console.log(e)}))},watchAllBtnClick:function(e,t){var s=["341999987607363584","341984912360235008","342002217261621248"];console.log(e),t%2==0||s.includes(e.Id)?this.toWatchPageClick(e):this.toLinkPageClick(e)},toWatchPageClick:function(e){this.$router.push({path:"watch"}),sessionStorage.removeItem("projName"),sessionStorage.removeItem("projId"),sessionStorage.setItem("projName",e.ProjName),sessionStorage.setItem("projId",e.Id)},toLinkPageClick:function(e){this.$router.push({path:"watchlink"}),sessionStorage.removeItem("projName"),sessionStorage.removeItem("projId"),sessionStorage.setItem("projName",e.ProjName),sessionStorage.setItem("projId",e.Id)},toRecycle:function(){this.$router.push({name:"recycle",params:{title:"我的项目"}})},createProjSuccess:function(){this.refreshListProj()},closeNewProj:function(){this.isNewProj=!1,this.isBottomNewProj=!1},listProjects:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function s(){var i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,_["d"](t.$store.state.accountId);case 2:i=s.sent,t.projList=i.Data,t.$nextTick((function(){var e=document.getElementById("bigbody");t.homeScrollTop=parseInt(sessionStorage.getItem("homeScrollTop")||0),e&&e.scrollTo(0,t.homeScrollTop)})),e&&(t.fetchTickIns=setTimeout((function(){return t.listProjects(!0)}),6e4));case 6:case"end":return s.stop()}}),s)})))()},goFilePage:function(e){sessionStorage.createUserID=e.CreateUserId,sessionStorage.templateID=e.TemplateId,sessionStorage.projId=e.Id,sessionStorage.nowFolderIndex="",sessionStorage.comFolderId=e.ComFolderId,sessionStorage.newProjStatus=e.NewProjStatus,sessionStorage.projName!=e.ProjName&&(sessionStorage.projName=e.ProjName),this.$router.push({name:"workspace"}).catch((function(e){console.log(e)})),sessionStorage.pageName="workspace"},toCloudIndex:function(e){sessionStorage.projId=e.projID,sessionStorage.firstFolderId=e.folderID,sessionStorage.projName!=e.projName&&(sessionStorage.projName=e.projName),sessionStorage.login="cloud",this.$router.push({name:"cloud"})},toProjNotice:function(e){sessionStorage.createUserID=e.createUserID,sessionStorage.templateID=e.templateID,sessionStorage.projId=e.projID,sessionStorage.nowFolderIndex="",sessionStorage.comFolderId=e.comFolderID,sessionStorage.projName!=e.projName&&(sessionStorage.projName=e.projName),this.$router.push({name:"projnotice",params:{title:"我的项目",allproj:!1}})},showAllProject:function(){this.isHideAllProject=!0,this.isDistProj=!1,this.isPointGroup=!1,this.isShowAllProject=!1},hideAllProject:function(){this.isHideAllProject=!1,this.isDistProj=!0,this.isPointGroup=!0,this.isShowAllProject=!0,this.projectsWithPage()},showNewProj:function(){this.isNewProj=!0},beforeEnter:function(e){e.style.opacity=0},enter:function(e,t){ge(e,{opacity:1,bottom:"0px"},{duration:500,complete:t})},leave:function(e,t){ge(e,{bottom:"-740px",opacity:"0"},{duration:500,complete:t})},showOption:function(){this.$emit("showOption",!0)},showHelp:function(){this.$emit("showHelp",!0)},showContinueNewProj:function(){this.isNewProj=!0,this.isBottomNewProj=!1},showzhankai:function(){this.isBottomNewProj=!0,this.isNewProj=!1},addNewFolders:function(e){sessionStorage.projId=e.Id,sessionStorage.createUserID=e.CreateUserId,sessionStorage.templateID=e.TemplateId,sessionStorage.allocated=e.Allocated,this.isAloneDistProj=!0},closeDistWork:function(e){"index"==e&&this.listProjects(),this.isAloneDistProj=!1},refreshListProj:function(e){this.listProjects(),this.isNewProj=!1},closeProjSet:function(){this.isShowProjSetting=!1,this.listProjects()},openPrjInfo:function(e){this.currProjId=e.Id,this.isProjectManager=e.Status,this.isShowProjSetting=!0,this.isEditProjFolder=!1},projEditSuccess:function(){this.isShowProjSetting=!1,this.listProjects()}}},_e=we,Ce=(s("c95a"),s("d614"),s("ec82"),Object(y["a"])(_e,i,r,!1,null,"5c9fe164",null));t["default"]=Ce.exports},"01a6":function(e,t,s){"use strict";var i=s("391a"),r=s.n(i);r.a},"01a8":function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?s("div",{staticClass:"app-header-top"},[s("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[s("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),s("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),s("div",{staticClass:"top-center"}),s("div",{staticClass:"top-right"},[s("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[s("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),s("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?s("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):s("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),s("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[s("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),s("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?s("div",{staticClass:"app-header-top"}):e._e(),s("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[s("div",{staticClass:"app-header-content-left"},[e._t("left",[s("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),s("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),s("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),s("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?s("span",{on:{click:e.toRecycle}},[s("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?s("user-center"):e._e()],2)])])},r=[],a=s("1392"),n=s("1d40"),o={components:{UserCenter:a["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:n["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize},isOnLine:function(){return this.$store.state.gatewayState}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){n["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),n["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),n["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){n["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},l=o,c=(s("8fc1"),s("2877")),u=Object(c["a"])(l,i,r,!1,null,"06f5aedd",null);t["a"]=u.exports},"03aa":function(e,t,s){e.exports=s.p+"static/img/user_Img001.82ca55ca.png"},"0bb4":function(e,t,s){"use strict";s("fb6a"),s("4d63"),s("ac1f"),s("25f0"),s("466d"),s("5319"),s("841c");t["a"]={getDateTimeString:function(e){var t=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;var i=e.getDate();i=i<10?"0"+i:i;var r=e.getHours();r=r<10?"0"+r:r;var a=e.getMinutes();a=a<10?"0"+a:a;var n=e.getSeconds();n=n<10?"0"+n:n;var o=t+"-"+s+"-"+i+" "+r+":"+a+":"+n;return o},getDateTimeStringByStr:function(e){var t=new Date(e),s=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var r=t.getDate();r=r<10?"0"+r:r;var a=t.getHours();a=a<10?"0"+a:a;var n=t.getMinutes();n=n<10?"0"+n:n;var o=t.getSeconds();o=o<10?"0"+o:o;var l=s+"-"+i+"-"+r+" "+a+":"+n+":"+o;return l},formatDate:function(e){var t=e.getFullYear(),s=e.getMonth()+1,i=e.getDate();s=s<10?"0"+s:s,i=i<10?"0"+i:i;var r=t+"-"+s+"-"+i;return r},convertToDate:function(e){var t=e.slice(6,19),s=new Date(parseInt(t));return this.formatDate(s)},unixToDate:function(e,t){e=e.replace(/[^0-9]/gi,""),10==e.length&&(e*=1e3);var s=parseInt(e),i=new Date(s),r="";r+=i.getFullYear()+"-";var a=i.getMonth()+1;r+=a<10?"0"+a+"-":a+"-";var n=i.getDate();return r+=n<10?"0"+n:n,!0===t&&(r+=" "+i.getHours()+":",r+=i.getMinutes()+":",r+=i.getSeconds()),r},getUrlParams:function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),s=window.location.search.substr(1).match(t);return null!=s?s[2]:null},validNumber:function(e,t,s){t?/^([0-9]+)$/.test(t)?s():s(new Error("只能输入整数")):t?s():s(new Error("这里不能为空"))},validNullOrNumber:function(e,t,s){t?/^([0-9]+)$/.test(t)?s():s(new Error("只能输入整数")):s()},validNullOrNumber2:function(e,t,s){t?/^([0-9]+)$/.test(t)?s():s(new Error(" ")):s()},validDecimal:function(e,t,s){t?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(t)?s():s(new Error("只能输入数字")):t?s():s(new Error("这里不能为空"))},validNullOrDecimal:function(e,t,s){t?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(t)?s():s(new Error("只能输入数字")):s()},validNullOrDecimal2:function(e,t,s){t?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(t)?s():s(new Error(" ")):s()},validRequired:function(e,t,s){t?s():s(new Error("这里不能为空"))},validEmail:function(e,t,s){if(""!=t){var i=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;i.test(t)?s():s(new Error("邮箱格式不正确!"))}else s()},validPhoneNum:function(e,t,s){if(""!=t){var i=/(^\d{11}$)/;i.test(t)?s():s(new Error("请输入11位有效手机号码!"))}else s(new Error("请输入手机号"))},validVerificationCode:function(e,t,s){if(""!=t){var i=/(^\d{6}$)/;i.test(t)?s():s(new Error("请输入有效的验证码!"))}else s(new Error("请输入验证码"))},validPhone:function(e,t,s){""!=t&&11!=t.length?s(new Error("请输入11位有效手机号码!")):s()},validPhoneAndRequired:function(e,t,s){""!=t?11!=t.length?s(new Error("请输入11位有效手机号码!")):s():s(new Error("请输入手机号"))},pathSubString:function(e){var t=e.slice(-22);return t},pageData:function(e,t,s){""!=t&&null!=t||(t=1),""!=e&&null!=e||(e=10);var i=(t-1)*e,r=i+e;r>s.length&&(r=s.length);var a=[];if(null!=s&&s.length>0)for(var n=i;n1?arguments[1]:void 0)}})},2909:function(e,t,s){"use strict";s.d(t,"a",(function(){return l}));var i=s("6b75");function r(e){if(Array.isArray(e))return Object(i["a"])(e)}var a=s("db90"),n=s("06c5");function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return r(e)||Object(a["a"])(e)||Object(n["a"])(e)||o()}},"2f4c":function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"search-bar",class:{"show-search-bar":e.isShowSearchBar}},[s("div",{staticClass:"search-entry",class:{"set-high-index":!e.isShowSearchBar},on:{mouseenter:function(t){e.isSearchHover=!0},mouseleave:function(t){e.isSearchHover=!1},click:function(t){return t.stopPropagation(),e.showSearchBar(t)}}},[s("img",{directives:[{name:"show",rawName:"v-show",value:!e.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),s("img",{directives:[{name:"show",rawName:"v-show",value:e.isSearchHover,expression:"isSearchHover"}],staticClass:"vert-hori-center search-active-img",attrs:{src:"/static/img/搜索激活.svg",alt:""}})]),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[s("i",{staticClass:"search-icon",on:{click:function(t){return t.stopPropagation(),e.goToSearch(t)}}}),s("input",{directives:[{name:"model",rawName:"v-model",value:e.searchContent,expression:"searchContent"}],staticClass:"search-input",attrs:{type:"text",placeholder:e.placeholder,maxlength:"35"},domProps:{value:e.searchContent},on:{keyup:function(t){return t.stopPropagation(),e.enterSearchContent(t)},input:function(t){t.target.composing||(e.searchContent=t.target.value)}}}),s("i",{staticClass:"close-icon",on:{click:function(t){return t.stopPropagation(),e.hideSearchBar(t)}}})])])},r=[],a={data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},props:{placeholder:{type:String,default:"搜索的文本"}},watch:{searchContent:function(e){35==e.length&&this.$emit("maxTextLengthArrived"),this.changeSearchContent()}},methods:{enterSearchContent:function(e){this.searchContent&&13==e.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("changeSearchContent",this.searchContent)},goToSearch:function(){this.$emit("goToSearch")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("hideSearchBar")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("showSearchBar")}}},n=a,o=(s("76ae"),s("2877")),l=Object(o["a"])(n,i,r,!1,null,"df8317c6",null);t["a"]=l.exports},"391a":function(e,t,s){},"45fc":function(e,t,s){"use strict";var i=s("23e7"),r=s("b727").some,a=s("a640"),n=s("ae40"),o=a("some"),l=n("some");i({target:"Array",proto:!0,forced:!o||!l},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"466d":function(e,t,s){"use strict";var i=s("d784"),r=s("825a"),a=s("50c4"),n=s("1d80"),o=s("8aa5"),l=s("14c3");i("match",1,(function(e,t,s){return[function(t){var s=n(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,s):new RegExp(t)[e](String(s))},function(e){var i=s(t,e,this);if(i.done)return i.value;var n=r(e),c=String(this);if(!n.global)return l(n,c);var u=n.unicode;n.lastIndex=0;var d,h=[],f=0;while(null!==(d=l(n,c))){var p=String(d[0]);h[f]=p,""===p&&(n.lastIndex=o(c,a(n.lastIndex),u)),f++}return 0===f?null:h}]}))},"4d63":function(e,t,s){var i=s("83ab"),r=s("da84"),a=s("94ca"),n=s("7156"),o=s("9bf2").f,l=s("241c").f,c=s("44e7"),u=s("ad6d"),d=s("9f7f"),h=s("6eeb"),f=s("d039"),p=s("69f3").set,m=s("2626"),v=s("b622"),g=v("match"),w=r.RegExp,_=w.prototype,C=/a/g,j=/a/g,P=new w(C)!==C,S=d.UNSUPPORTED_Y,y=i&&a("RegExp",!P||S||f((function(){return j[g]=!1,w(C)!=C||w(j)==j||"/a/i"!=w(C,"i")})));if(y){var b=function(e,t){var s,i=this instanceof b,r=c(e),a=void 0===t;if(!i&&r&&e.constructor===b&&a)return e;P?r&&!a&&(e=e.source):e instanceof b&&(a&&(t=u.call(e)),e=e.source),S&&(s=!!t&&t.indexOf("y")>-1,s&&(t=t.replace(/y/g,"")));var o=n(P?new w(e,t):w(e,t),i?this:_,b);return S&&s&&p(o,{sticky:s}),o},k=function(e){e in b||o(b,e,{configurable:!0,get:function(){return w[e]},set:function(t){w[e]=t}})},D=l(w),I=0;while(D.length>I)k(D[I++]);_.constructor=b,b.prototype=_,h(r,"RegExp",b)}m("RegExp")},"4f96":function(e,t,s){"use strict";s.d(t,"a",(function(){return o}));var i=s("0d21"),r=s("db90"),a=s("06c5"),n=s("3d8c");function o(e){return Object(i["a"])(e)||Object(r["a"])(e)||Object(a["a"])(e)||Object(n["a"])()}},5122:function(e,t,s){},"5a34":function(e,t,s){var i=s("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},6062:function(e,t,s){"use strict";var i=s("6d61"),r=s("6566");e.exports=i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"63b7":function(e,t,s){"use strict";var i=s("fabf"),r=s.n(i);r.a},6566:function(e,t,s){"use strict";var i=s("9bf2").f,r=s("7c73"),a=s("e2cc"),n=s("0366"),o=s("19aa"),l=s("2266"),c=s("7dd0"),u=s("2626"),d=s("83ab"),h=s("f183").fastKey,f=s("69f3"),p=f.set,m=f.getterFor;e.exports={getConstructor:function(e,t,s,c){var u=e((function(e,i){o(e,u,t),p(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=i&&l(i,e[c],e,s)})),f=m(t),v=function(e,t,s){var i,r,a=f(e),n=g(e,t);return n?n.value=s:(a.last=n={index:r=h(t,!0),key:t,value:s,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=n),i&&(i.next=n),d?a.size++:e.size++,"F"!==r&&(a.index[r]=n)),e},g=function(e,t){var s,i=f(e),r=h(t);if("F"!==r)return i.index[r];for(s=i.first;s;s=s.next)if(s.key==t)return s};return a(u.prototype,{clear:function(){var e=this,t=f(e),s=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete s[i.index],i=i.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,s=f(t),i=g(t,e);if(i){var r=i.next,a=i.previous;delete s.index[i.index],i.removed=!0,a&&(a.next=r),r&&(r.previous=a),s.first==i&&(s.first=r),s.last==i&&(s.last=a),d?s.size--:t.size--}return!!i},forEach:function(e){var t,s=f(this),i=n(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:s.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),a(u.prototype,s?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&i(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,s){var i=t+" Iterator",r=m(t),a=m(i);c(e,t,(function(e,t){p(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,s=e.last;while(s&&s.removed)s=s.previous;return e.target&&(e.last=s=s?s.next:e.state.first)?"keys"==t?{value:s.key,done:!1}:"values"==t?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),s?"entries":"values",!s,!0),u(t)}}},6654:function(e,t,s){"use strict";var i=s("6eb7"),r=s.n(i);r.a},"6d1d":function(e,t,s){},"6d61":function(e,t,s){"use strict";var i=s("23e7"),r=s("da84"),a=s("94ca"),n=s("6eeb"),o=s("f183"),l=s("2266"),c=s("19aa"),u=s("861d"),d=s("d039"),h=s("1c7e"),f=s("d44e"),p=s("7156");e.exports=function(e,t,s){var m=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),g=m?"set":"add",w=r[e],_=w&&w.prototype,C=w,j={},P=function(e){var t=_[e];n(_,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:function(e,s){return t.call(this,0===e?0:e,s),this})};if(a(e,"function"!=typeof w||!(v||_.forEach&&!d((function(){(new w).entries().next()})))))C=s.getConstructor(t,e,m,g),o.REQUIRED=!0;else if(a(e,!0)){var S=new C,y=S[g](v?{}:-0,1)!=S,b=d((function(){S.has(1)})),k=h((function(e){new w(e)})),D=!v&&d((function(){var e=new w,t=5;while(t--)e[g](t,t);return!e.has(-0)}));k||(C=t((function(t,s){c(t,C,e);var i=p(new w,t,C);return void 0!=s&&l(s,i[g],i,m),i})),C.prototype=_,_.constructor=C),(b||D)&&(P("delete"),P("has"),m&&P("get")),(D||y)&&P(g),v&&_.clear&&delete _.clear}return j[e]=C,i({global:!0,forced:C!=w},j),f(C,e),v||s.setStrong(C,e,m),C}},"6eb7":function(e,t,s){},"76ae":function(e,t,s){"use strict";var i=s("e9b0"),r=s.n(i);r.a},"78dc":function(e,t,s){},"7df1":function(e,t,s){"use strict";var i=s("a5b4"),r=s.n(i);r.a},"841c":function(e,t,s){"use strict";var i=s("d784"),r=s("825a"),a=s("1d80"),n=s("129f"),o=s("14c3");i("search",1,(function(e,t,s){return[function(t){var s=a(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,s):new RegExp(t)[e](String(s))},function(e){var i=s(t,e,this);if(i.done)return i.value;var a=r(e),l=String(this),c=a.lastIndex;n(c,0)||(a.lastIndex=0);var u=o(a,l);return n(a.lastIndex,c)||(a.lastIndex=c),null===u?-1:u.index}]}))},"8fc1":function(e,t,s){"use strict";var i=s("99ab"),r=s.n(i);r.a},"98de":function(e,t,s){},"99ab":function(e,t,s){},"9d0d":function(e,t,s){"use strict";var i=s("cf15"),r=s.n(i);r.a},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 d})),s.d(t,"e",(function(){return f}));s("96cf");var i=s("1da1"),r=s("b775");function a(e){return n.apply(this,arguments)}function n(){return n=Object(i["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(r["b"])("project/queryProjectListByUserId",{userId:t});case 2:return s=e.sent,e.abrupt("return",Object(r["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(i["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(r["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 u.apply(this,arguments)}function u(){return u=Object(i["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(r["b"])("project/editProject",t);case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function d(e){return h.apply(this,arguments)}function h(){return h=Object(i["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(r["b"])("project/assignedWork",t);case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return p=Object(i["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(r["b"])("project/searchProject",{projName:t});case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}},a5b4:function(e,t,s){},ab13:function(e,t,s){var i=s("b622"),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(s){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},b0f9:function(e,t,s){"use strict";s.d(t,"n",(function(){return a})),s.d(t,"s",(function(){return o})),s.d(t,"d",(function(){return c})),s.d(t,"m",(function(){return d})),s.d(t,"p",(function(){return f})),s.d(t,"f",(function(){return m})),s.d(t,"r",(function(){return g})),s.d(t,"l",(function(){return _})),s.d(t,"k",(function(){return j})),s.d(t,"b",(function(){return S})),s.d(t,"o",(function(){return b})),s.d(t,"j",(function(){return D})),s.d(t,"h",(function(){return U})),s.d(t,"i",(function(){return N})),s.d(t,"a",(function(){return A})),s.d(t,"g",(function(){return B})),s.d(t,"c",(function(){return O})),s.d(t,"e",(function(){return L})),s.d(t,"q",(function(){return $}));s("96cf");var i=s("1da1"),r=s("b775");function a(){return n.apply(this,arguments)}function n(){return n=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}function o(e){return l.apply(this,arguments)}function l(){return l=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function c(e){return u.apply(this,arguments)}function u(){return u=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function d(e){return h.apply(this,arguments)}function h(){return h=Object(i["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(r["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return p=Object(i["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(r["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return s=e.sent,e.abrupt("return",s);case 4:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function m(e){return v.apply(this,arguments)}function v(){return v=Object(i["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(r["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return w.apply(this,arguments)}function w(){return w=Object(i["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(r["b"])("template/updateTemplate",t);case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function _(e){return C.apply(this,arguments)}function C(){return C=Object(i["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(r["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function j(e){return P.apply(this,arguments)}function P(){return P=Object(i["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(r["b"])("template/queryNestTemplateByNodeId",{id:t});case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}function S(e){return y.apply(this,arguments)}function y(){return y=Object(i["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(r["b"])("template/connectNestTemplateFolder",t);case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function b(e){return k.apply(this,arguments)}function k(){return k=Object(i["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(r["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function D(e,t,s){return I.apply(this,arguments)}function I(){return I=Object(i["a"])(regeneratorRuntime.mark((function e(t,s,i){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:s,nestedNodeId:i});case 2:return a=e.sent,e.abrupt("return",Object(r["c"])(a));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function U(e){return x.apply(this,arguments)}function x(){return x=Object(i["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(r["b"])("template/fileExchange",t);case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function N(e){return T.apply(this,arguments)}function T(){return T=Object(i["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(r["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t});case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function A(e){return F.apply(this,arguments)}function F(){return F=Object(i["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(r["b"])("template/addTemplateNodeModelFile",t);case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}function B(e){return M.apply(this,arguments)}function M(){return M=Object(i["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(r["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function O(e){return E.apply(this,arguments)}function E(){return E=Object(i["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(r["b"])("template/createNestedRelevance",t);case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function L(e){return W.apply(this,arguments)}function W(){return W=Object(i["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(r["b"])("template/deleteNestedRelevance",t);case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function $(e){return R.apply(this,arguments)}function R(){return R=Object(i["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(r["b"])("template/renameTemplate",t);case 2:return s=e.sent,e.abrupt("return",Object(r["c"])(s));case 4:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}},bb2f:function(e,t,s){var i=s("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},c704:function(e,t,s){},c95a:function(e,t,s){"use strict";var i=s("5122"),r=s.n(i);r.a},caad:function(e,t,s){"use strict";var i=s("23e7"),r=s("4d64").includes,a=s("44d2"),n=s("ae40"),o=n("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!o},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},cf15:function(e,t,s){},d5e1:function(e,t,s){"use strict";var i=s("78dc"),r=s.n(i);r.a},d614:function(e,t,s){"use strict";var i=s("c704"),r=s.n(i);r.a},db90:function(e,t,s){"use strict";s.d(t,"a",(function(){return i}));s("a4d3"),s("e01a"),s("d28b"),s("a630"),s("d3b7"),s("3ca3"),s("ddb0");function i(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},e9b0:function(e,t,s){},ec82:function(e,t,s){"use strict";var i=s("6d1d"),r=s.n(i);r.a},f044:function(e,t,s){"use strict";var i=s("98de"),r=s.n(i);r.a},f183:function(e,t,s){var i=s("d012"),r=s("861d"),a=s("5135"),n=s("9bf2").f,o=s("90e3"),l=s("bb2f"),c=o("meta"),u=0,d=Object.isExtensible||function(){return!0},h=function(e){n(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},f=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[c].objectID},p=function(e,t){if(!a(e,c)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[c].weakData},m=function(e){return l&&v.REQUIRED&&d(e)&&!a(e,c)&&h(e),e},v=e.exports={REQUIRED:!1,fastKey:f,getWeakData:p,onFreeze:m};i[c]=!0},f96e:function(e,t,s){"use strict";var i=s("01a8");s.d(t,"a",(function(){return i["a"]}))},fabf:function(e,t,s){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a615eb9"],{"011a":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",{attrs:{id:"app"}},[s("app-header",{attrs:{showUserCenter:!0,id:"proj-list-page",showRecycleBin:""},scopedSlots:e._u([{key:"left",fn:function(){return[e._v(" "+e._s(e.currentPlatform.orgName)+" ")]},proxy:!0},{key:"center",fn:function(){return[s("div",{staticClass:"main-title"},[e._v(e._s(e.showCenterTitle))])]},proxy:!0},{key:"right",fn:function(){return[s("search-bar",{staticClass:"proj-search-bar",attrs:{placeholder:"搜索项目名称"},on:{changeSearchContent:e.changeSearchContent,hideSearchBar:e.hideSearchBar,showSearchBar:e.showSearchBar,goToSearch:e.searchForProj,maxTextLengthArrived:e.maxTextLengthArrived}})]},proxy:!0}])}),s("div",{staticClass:"layout_content"},[s("section",{staticClass:"yiyun_warpContent"},[s("div",{staticClass:"yiyun-rows mt-20",attrs:{id:"new"}},[s("div",{staticClass:"yiyun-col-4 timer-part"},[s("div",{staticClass:"yiyun_row",staticStyle:{width:"95%"}},[s("timer",{attrs:{cnName:e.cnName}})],1)]),e._m(0)]),e.noProjTip?s("div",{staticStyle:{"margin-left":"50%","margin-top":"25%"}},[s("h1",[e._v("空空如也")])]):e._e()]),e.isUserPerm?s("button",{staticClass:"yiyun_btn_new new-btn-margin",attrs:{id:"buttonbtn"},on:{click:function(t){return t.stopPropagation(),e.createNewProjectClick(t)}}},[e._v("新建项目")]):e._e(),s("proj-list",{attrs:{id:"proj-list",projList:e.showProjList,openPrjInfo:e.openPrjInfo,addNewFolders:e.addNewFolders},on:{watchAllBtnClick:e.watchAllBtnClick,lookProjDetailClick:e.lookProjDetailClick}})],1),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isBottomNewProj,expression:"isBottomNewProj"}],staticClass:"bottomdialog",staticStyle:{height:"60px"}},[s("div",{staticClass:"yiyun_dialog_left yiyun_zhedie",staticStyle:{"margin-top":"10px"},on:{click:e.showContinueNewProj}},[e._m(1)]),e._m(2),s("div",{staticClass:"yiyun_dialog_right yiyundialog_close",staticStyle:{"margin-top":"15px"},on:{click:e.closeNewProj}},[e._v("关闭")])]),s("transition-group",{attrs:{css:!1},on:{"before-enter":e.beforeEnter,enter:e.enter,leave:e.leave}},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isNewProj,expression:"isNewProj"}],key:0,staticClass:"bottomdialogbox bg_baise"},[s("NewProj",{attrs:{isNewProj:e.isNewProj},on:{refreshListProj:e.refreshListProj,isShowBottom:e.showzhankai,createProjSuccess:e.createProjSuccess}})],1),e.isAloneDistProj?s("div",{key:1,staticClass:"bottomdialogbox bg_baise",staticStyle:{color:"white"}},[s("DistWork",{on:{offDialog:e.closeDistWork}})],1):e._e(),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowProjSetting,expression:"isShowProjSetting"}],key:2,staticClass:"bottomdialogbox bg_baise",staticStyle:{color:"white"}},[s("ProjSetting",{attrs:{isProjManager:e.isProjectManager,createUserId:e.createUserId,projId:e.currProjId,nowprj:e.nowProj,isSetFolder:e.isEditProjFolder},on:{offDialog:e.closeProjSet,editSuccess:e.projEditSuccess}})],1)])],1)},i=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"yiyun-col-4"},[s("div",{staticClass:"yiyun_row"},[s("div",{staticClass:"section_item fr section_item_aside_fr"})])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("span",{staticClass:"yiyun_zhankaibtn"},[s("i",{staticClass:"Cicon text_gray icon font_family icon-icon_zhankai",attrs:{title:"展开面板"}})])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"yiyun_dialog_center"},[s("div",{staticClass:"bottomdialogbox_list_head newProject_next_taggle1 line_H60"},[s("div",{staticClass:"yiyun_col-6 fl"},[s("h3",[e._v("继续-新建项目")])])])])}],a=(s("caad"),s("96cf"),s("1da1")),n=s("0bb4"),o=s("f96e"),l=s("2f4c"),c=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isBottomNewProj,expression:"isBottomNewProj"}],staticClass:"bottomdialog",staticStyle:{height:"60px"}},[s("div",{staticClass:"yiyun_dialog_left yiyun_zhedie",staticStyle:{"margin-top":"10px"},on:{click:e.offDialog}},[e._v(" 关闭 ")]),e._m(0)]),s("div",{staticClass:"bottomdialog"},[s("div",{staticClass:"yiyun_dialog_left yiyun_zhedie"},[s("span",{on:{click:e.offDialog}},[e._v("关闭")])]),s("div",{staticClass:"yiyun_dialog_center"},[s("span",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowThreePage&&e.isShowManager,expression:"isShowThreePage == true && isShowManager"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backFirstPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("span",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSecondPage,expression:"isShowSecondPage == true"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.toFirstPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("span",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowPrjDesc,expression:"isShowPrjDesc == true"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backFirstPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("div",{staticClass:"bottomdialogbox_list_head newProject_next_taggle1"},[s("div",{staticClass:"EC_col_16"},[s("h3",{directives:[{name:"show",rawName:"v-show",value:e.isShowFirstPage,expression:"isShowFirstPage"}],attrs:{title:e.curProjCreatePeop}},[e._v(" "+e._s(e.curProjCreatePeop)+" ")]),s("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowPrjDesc,expression:"isShowPrjDesc == true"}]},[e._v("项目概况")]),s("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSecondPage||1==e.isShowThreePage,expression:"isShowSecondPage == true || isShowThreePage == true"}]},[e._v("指派职员")])]),s("div",{staticClass:"EC_col_8"},[s("div",{staticClass:"fr mt-26"},[s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSecondPage,expression:"isShowSecondPage == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.backFirstPage}},[e._v("确定")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowThreePage,expression:"isShowThreePage == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.backFirstPage}},[e._v("确定")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowFirstPage,expression:"isShowFirstPage == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.submitAndClose}},[e._v("完成")])],1)]),s("div",{staticClass:"clear"}),s("div",{staticClass:"yiyun_Tbline"})])]),s("div",{staticClass:"yiyun_dialog_right yiyundialog_close"}),s("div",{staticClass:"clear"}),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowdivid2,expression:"isShowdivid2"}],staticClass:"linescoll"}),s("div",{staticClass:"dialogcontentbody",attrs:{id:"bottomDiaBody2"}},[s("div",{class:{dialogcontentbodyrow:e.isShowFirstPage},attrs:{id:"bottomDiaChild2"}},[s("div",{staticClass:"centerWarpDia"},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowFirstPage,expression:"isShowFirstPage"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox"},[s("div",{staticClass:"clear"}),s("div",{staticClass:"line_from"},[e.isProjManager?s("div",{staticClass:"fuzeren"},[s("div",[s("span",{staticClass:"label_text",class:{notclick:!e.isAllowedAssignedManager}},[e._v("项目管理权限")])]),s("div",{staticClass:"mt-10"},[s("div",{staticClass:"fl firstPeople"},[s("div",{class:{notclick:!e.isAllowedAssignedManager}},[s("div",{staticClass:"avtarface",attrs:{title:e.currUser.cnName}},[s("img",{attrs:{src:e._f("resolveAvator")(e.currUser.headImgUrl)}})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(e.currUser.cnName))])])]),s("div",{staticClass:"fl vhLine mlr-20"}),e.isAllowedAssignedManager?s("div",{staticClass:"fl addBtn_new",attrs:{title:"添加项目负责人"},on:{click:function(t){return e.addProjManager()}}},[s("i",{staticClass:"el-icon-plus middleaddEC"})]):e._e(),s("div",{staticClass:"fl chengyuanbox"},[s("ul",{staticClass:"ECworkerList"},e._l(e.listManagerUser,(function(t,r){return s("li",{key:r,class:{notclick:!e.isAllowedAssignedManager}},[r<14||e.showAll?s("div",[s("div",{staticClass:"avtarface",attrs:{title:t.cnName}},[s("img",{attrs:{src:e._f("resolveAvator")(t.headImgUrl)}})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(t.cnName))])]):e._e(),14!=r||e.showAll?e._e():s("div",{on:{click:e.showAllClick}},[s("span",{staticClass:"zhangkai_down"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("展开全部")])]),e.showAll&&r==e.listManagerUser.length-1&&r>14?s("div",{staticClass:"newweizhi",on:{click:function(t){e.showAll=!1}}},[s("span",{staticClass:"zhangkai_up"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("收起项目负责人")])]):e._e()])})),0)])])]):e._e(),s("folder-list",{attrs:{id:e.userId,folderList:e.listNewFolder,allManager:e.currUser,allManagerChild:e.listManagerUser,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists}})],1)])]),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowPrjDesc,expression:"isShowPrjDesc"}],staticClass:"PaincenterBox"},[s("el-form",{ref:"",staticClass:"line_from",attrs:{"label-width":"100px","label-position":"left"},model:{value:e.nowProject,callback:function(t){e.nowProject=t},expression:"nowProject"}},[s("div",{staticClass:"yiyun_col-6 fl"},[s("div",{staticClass:"bianju_item_fr"},[s("el-form-item",{attrs:{label:"项目负责:"}},[s("span",[e._v(e._s(e.nowProject.cnName))])])],1)]),s("div",{staticClass:"yiyun_col-6 fl"},[s("div",{staticClass:"bianju_item_fr"},[s("el-form-item",{attrs:{label:"创建时间:"}},[s("span",[e._v(e._s(e.nowProject.strCreateTime))])])],1)]),e._l(e.listProjProp,(function(t){return s("div",{key:t.propertyID,staticClass:"yiyun_col-12 fl"},[s("div",{staticClass:"yiyunlargeItem"},[s("el-form-item",{attrs:{label:t.propName+":"}},[s("span",[e._v(e._s(t.propValue))])])],1)])}))],2)],1),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSecondPage||e.isShowThreePage,expression:"isShowSecondPage || isShowThreePage"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox"},[s("div",{staticClass:"yiyun_col-6 bg_text_wirte mt-8 left-dept-wrap"},[s("div",{staticClass:"row_painfl"},[s("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-collapse-item",{staticClass:"nomidline",attrs:{name:"1"}},[s("template",{slot:"title"},[s("span",[e._v("从部门中选择职员")])]),e._l(e.listDept,(function(t,r){return s("el-collapse",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:r,attrs:{accordion:""}},[s("el-collapse-item",[s("template",{slot:"title"},[s("span",[e._v(e._s(t.deptName)+" ")])]),e._l(t.listUser,(function(t,i){return s("div",{key:i,staticClass:"user_info_item",attrs:{label:t}},[s("el-checkbox",{staticClass:"checkBoxCol",attrs:{disabled:e.disabled},on:{change:function(s){return e.handleCheckedOne(r,t,s)}},model:{value:t.selected,callback:function(s){e.$set(t,"selected",s)},expression:"user.selected"}},[s("div",{staticClass:"checkboxlabelitem"},[s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),s("span",{staticClass:"user_info_role"},[e._v(e._s(t.roleName))])])])],1)}))],2)],1)}))],2)],1)],1)]),s("div",{staticClass:"shuxian"}),s("div",{staticClass:"yiyun_col-6"},[s("h4",{staticClass:"rightXiezuoren"},[e._v("已选职员")]),s("div",{staticClass:"yiyun_line set-yiyun-line"}),s("div",{staticClass:"right-selected-user-wrap"},e._l(e.listDeptComputed,(function(t){return s("div",{key:t.id,staticClass:"row_painfr"},[e._l(e.listDeptUserNoZero(e.selectedUser),(function(r){return s("div",{key:r},[r==t.id?s("div",[s("span",[e._v(e._s(t.deptName))])]):e._e()])})),e._l(e.selectedUser,(function(r,i){return s("div",{key:i,staticClass:"renyuanbox"},[r.deptId==t.id?s("div",{staticClass:"user_info_item",on:{click:function(t){return t.stopPropagation(),e.changeManagerClick(r)}}},[2==r.folderPerm?s("i",{staticClass:"icon font_family icon-icon_huangguan-jihuo middlehuangguan fl set-crown-position",attrs:{title:"负责人"}}):e._e(),s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(r.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(r.cnName))]),s("span",{staticClass:"user_info_role"},[s("i",{staticClass:"el-icon-close",attrs:{title:"移除协作人"},on:{click:function(t){return t.stopPropagation(),e.removeSelectUser(r)}}})])]):e._e()])}))],2)})),0)])])])])])])])])},u=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"yiyun_dialog_center"},[s("div",{staticClass:"bottomdialogbox_list_head newProject_next_taggle1 line_H60"},[s("div",{staticClass:"yiyun_col-6 fl"},[s("h3",[e._v("继续-新建项目")])])])])}],d=(s("4de4"),s("7db0"),s("4160"),s("a15b"),s("d81d"),s("13d5"),s("fb6a"),s("a434"),s("b0c0"),s("d3b7"),s("ac1f"),s("6062"),s("2532"),s("3ca3"),s("1276"),s("159b"),s("ddb0"),s("5530")),h=s("4f96"),f=s("3835"),p=s("2909"),m=s("93d6"),v=s("2ef0"),g=s("b775"),w=s("3de1"),_=s("a06e"),C=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",e._l(e.folderList,(function(t,r){return s("div",{key:r,staticClass:"tianjiaxiezuorenBox"},[s("div",{staticClass:"self_newitem"},[s("h5",{staticClass:"fl label_text",class:{notclick:!(e.isAllowedAssignedFolder(t)||e.isStaff(t))}},[s("i",{directives:[{name:"show",rawName:"v-show",value:t.listChildren&&t.listChildren.length,expression:"folder.listChildren && folder.listChildren.length"}],staticClass:"hand",class:t.expanded?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(s){return e.toggleFolderExpand(t)}}}),e._v(" "+e._s(t.folderName)+" ")])]),s("div",[s("div",{staticClass:"fl firstPeople"},[""==t.manageUser?s("div",[e.isAllowedAssignedFolder(t)?s("div",{staticClass:"avtarface",on:{click:function(s){return e.aloneAddUserForFolder(t)}}},[s("i",{staticClass:"large_huangguan el-icon-plus"})]):s("div",{staticClass:"avtarface notclick"},[s("img",{attrs:{src:"/static/img/暂无.svg",alt:"",srcset:""}})]),s("span",{staticClass:"Text_tiny tinyText_wirte",class:{"notclick noManagerText":!e.isAllowedAssignedFolder(t)}},[e._v("工作负责人")])]):e._e(),e._l(t.manageUser,(function(r,i){return s("li",{key:i},[s("div",[e.isAllowedAssignedFolder(t)?s("div",{staticClass:"avtarface",attrs:{title:"编辑"}},[s("img",{attrs:{src:e._f("resolveAvator")(r.headImgUrl)},on:{click:function(s){return e.aloneAddUserForFolder(t)}}})]):s("div",{staticClass:"avtarface notclick",class:{allopacity:e.isStaff(t)},attrs:{title:"编辑"}},[s("img",{attrs:{src:e._f("resolveAvator")(r.headImgUrl)}})]),s("span",{staticClass:"Text_tiny tinyText_wirte",class:{notclick:!e.isAllowedAssignedFolder(t),allopacity:e.isStaff(t)}},[e._v(e._s(r.cnName))])])])}))],2),s("div",{staticClass:"fl vhLine mlr-20"}),e.isAllowedAssignedStaffFolder(t)?s("div",{staticClass:"fl addBtn_new",attrs:{title:"添加职员"},on:{click:function(s){return e.aloneAddUserOnlyStaff(t)}}},[s("i",{staticClass:"el-icon-plus middleaddEC"})]):e._e(),s("div",{staticClass:"fl chengyuanbox"},[s("ul",{staticClass:"ECworkerList"},e._l(e.listUserComputed(t.listUser),(function(r,i){return s("li",{key:i,class:{notclick:!(e.isAllowedAssignedStaffFolder(t)||e.isStaff(t))}},[i<14||e.showAll?s("div",[s("div",{staticClass:"avtarface",attrs:{title:"编辑"}},[s("img",{attrs:{src:e._f("resolveAvator")(r.headImgUrl)}})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(r.cnName))])]):e._e(),14!=i||e.showAll?e._e():s("div",{on:{click:e.showAllClick}},[s("span",{staticClass:"zhangkai_down"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("展开全部")])]),e.showAll&&i==e.listUserComputed(t.listUser).length-1&&i>14?s("div",{staticClass:"newweizhi",on:{click:function(t){e.showAll=!1}}},[s("span",{staticClass:"zhangkai_up"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("收起职员")])]):e._e()])})),0)]),s("div",{staticClass:"clear"})]),t.listChildren?[s("folder-list",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"folder.expanded"}],staticClass:"folder-children",attrs:{folderList:t.listChildren,id:e.id,allManager:e.allManager,allManagerChild:e.allManagerChild,aloneAddUserForFolder:e.aloneAddUserForFolder,aloneAddUserOnlyStaff:e.aloneAddUserOnlyStaff,allChildrenLists:e.allChildrenLists}})]:e._e()],2)})),0)},j=[],P=(s("45fc"),{name:"folderList",props:{id:String,allManager:Object,allManagerChild:Array,folderList:Array,aloneAddUserForFolder:Function,aloneAddUserOnlyStaff:Function,allChildrenLists:Array},data:function(){return{showAll:!1}},methods:{showAllClick:function(){this.showAll=!0},toggleFolderExpand:function(e){e.expanded=!e.expanded,this.$forceUpdate()},isAllowedAssignedFolder:function(e){var t=this;return this.allManager.id==this.id||this.allManagerChild.length>0&&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[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}))}}}}),S=P,y=(s("f044"),s("2877")),b=Object(y["a"])(S,C,j,!1,null,"cc1419c4",null),k=b.exports,D={components:{FolderList:k},data:function(){return{imgSrc:"/api/archives/cover?path=",headSrc:"/api/archives/head?path=",cnName:"",selectedUser:[],selectedManageUser:[],showTitle:"1",disabled:!1,checked:!1,activeName:"1",showAll:!1,isBottomNewProj:!1,nodeLeaves:!1,isShowStaffList:!1,opentree:!0,ischeckAll:!1,nowProject:{},isShowPrjDesc:!1,isSlectPal:!0,folderPerm:"1",isShowFirstPage:!0,isShowSecondPage:!1,isShowThreePage:!1,InitData:{},listNewFolder:[],listProjProp:[],listDept:[],curProjCreatePeop:[],currWorkName:"",newProjFolderIndex:1,tempIndex:0,isShowdivid2:!1,currSelectData:[],currUser:{},isShowManager:!0,listManagerUser:[],oldListManagerUser:[],isProjManager:!1,currListDeptUserData:[],userList:[],finishBtnClickCount:0,userId:sessionStorage.userId,allChildrenLists:[]}},created:function(){this.loadProjManager()},mounted:function(){this._getUserInfo(sessionStorage.userId),this.cnName=JSON.parse(sessionStorage.user).cnName,window.addEventListener("scroll",this.handleScroll,!0),this.fetchProjectDetail()},computed:{isAllowedAssignedManager:function(){var e=this;return this.currUser.id==this.userId||this.listManagerUser.length>0&&this.listManagerUser.find((function(t){return t.id==e.userId}))},listDeptComputed:function(){return this.listDept.filter((function(e){return e.listUser.length>0}))},listManagerComputed:function(){return function(e){return e.filter((function(e){return 2==e.folderPerm}))}},listUserComputed:function(){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}},listUserManager:function(e){return function(e){return e.filter((function(e){return 2==e.folderPerm||0==e.folderPerm}))}},listUserStaff:function(e){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}},listDeptUserNoZero:function(e){return function(e){for(var t=[],s=0;s0&&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.isShowManager){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({type:"warning",title:"温馨提示",message:"没有权限更换工作负责人。",offset:100,duration:5e3}):this.selectedUser.forEach((function(s){s.folderPerm=s.id===e.id?2:1,2===s.folderPerm&&t.InitData.manageUser.splice(0,1,s)}))}},loadProjManager:function(){var e=this;this.$axios({method:"get",url:encodeURI("/api/projects/manager/"+sessionStorage.projId+"/"+sessionStorage.userId)}).then((function(t){null!=t.data&&""!=t.data&&(e.isProjManager=t.data.isProjManager)})).catch((function(e){console.log(e)}))},handleScroll:function(){var e=document.getElementById("bottomDiaChild2");e.scrollTop&&e.scrollTop>0?this.isShowdivid2=!0:this.isShowdivid2=!1},isAllhide:function(){this.isShowPrjDesc=!1,this.isShowThreePage=!1,this.isShowSecondPage=!1},offDialog:function(){this.selectedUser=[],this.selectedManageUser=[],this.$emit("offDialog",this.$route.name)},showzhankai:function(){this.isBottomNewProj=!0},showContinueNewProj:function(){this.isBottomNewProj=!1},backFirstPage:function(){var e=this;this.listDept=JSON.parse(JSON.stringify(this.currListDeptUserData)),this.isShowManager||(this.listManagerUser=[],this.selectedUser.forEach((function(t){t.id!=e.currUser.id&&e.listManagerUser.push(t)}))),this.isAllhide(),this.isShowManager=!0,this.isShowFirstPage=!0},toFirstPage:function(){var e=this;this.$confirm("退出“职员选择”您编辑的内容被清空,确定退出?","",{confirmButtonText:"退出",cancelButtonText:"取消",showClose:!1,type:"warning"}).then((function(){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:[];return(e||[]).forEach((function(e){var i=e.data;i.listUser=t.filter((function(t){return t.deptId===e.id})),r.push(i),e.children&&e.children.length&&s.plainTreeNodes(e.children,t,r)})),r},addProjManager:function(){var e=this;this.isShowManager=!1,this.isShowStaffList=!0;var t={listUser:[]};t.listUser=this.listManagerUser,this.setFolderPerm(t),this.selectedUser=t.listUser;var s=t.listUser.find((function(t){return t.id===e.currUser.id}));s||(this.currUser.folderPerm=2,t.listUser.push(this.currUser)),this.selectedManageUser=[],this.isShowThreePage=!0,this.isShowFirstPage=!1},handleCheckTopAll:function(e){for(var t=0;t0&&this.handleCheckItemAll(t,e)},handleCheckItemAll:function(e,t){for(var s=0;s0&&(t++,1==this.listDept[s].selected&&e++);this.ischeckAll=e==t&&0!==e&&0!==t},removeSelectUser:function(e){e.id!=this.currUser.id||this.isShowManager?e.id!=sessionStorage.userId||this.isShowManager?this.isAllowedDelete(e)?this.$notify({type:"warning",title:"温馨提示",message:"没有权限移除自己。",offset:100,duration:5e3}):2==e.folderPerm?this.removeManageUser(e):(this.checkDeptUserName(!1,e),this.cancelCheck(e.id)):this.$notify({message:"不能移除自己。",offset:100,duration:5e3}):this.$notify({type:"warning",message:"没有权限删除项目创建者。",offset:100,duration:5e3})},removeManageUser:function(e){e.folderPerm=0;for(var t=0;t0&&1==this.isShowThreePage?this.isShowStaffList=!0:this.isShowStaffList=!1},goShowPrjDesc:function(){this.isShowPrjDesc=!0,this.isShowFirstPage=!1},showAllClick:function(){this.showAll=!0},openECtree:function(e){this.nodeLeaves=!0,this.opentree=!1},closeECtree:function(e){this.nodeLeaves=!1,this.opentree=!0},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.length>0&&r.getChildren(e.listChildren,s)}))},getfolderPerm:function(e){var t=this;e.forEach((function(e){e.listUser.forEach((function(e){e.folderPerm=1})),e.manageUser.length>0&&(e.manageUser[0].folderPerm=2,e.listUser.push(e.manageUser[0])),e.listChildren.length>0&&t.getfolderPerm(e.listChildren)}))},fetchProjectDetail:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var s,r,i,a,n,o,l,c,u,d,h;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.getUserList(),e.$fetchApi("folder/queryNodeFolderListByProjectId",{projectId:sessionStorage.projId}),Object(m["e"])(e.$store.state.currentCompanyId)]);case 2:s=t.sent,r=Object(f["a"])(s,3),i=r[0],a=r[1],n=r[2],o=e.plainTreeNodes(n,i),o.forEach((function(e){e.listUser=e.listUser.sort((function(e,t){return e.cnName.localeCompare(t.cnName)}))})),e.listDept=o,e.currListDeptUserData=o,l=a.Data||{},c=l.folder,u=l.manager,console.log(c,u,i),d=i.reduce((function(e,t){return e[t.id]=t,e}),{}),e.listManagerUser=u.map((function(e){return d[e.UserId]})),e.listManagerUser.length&&(e.currUser=e.listManagerUser[0]||{},e.listManagerUser=e.listManagerUser.slice(1)),e.oldListManagerUser=Object(v["cloneDeep"])(e.listManagerUser),h=I(c,d),e.getfolderPerm(h),e.listNewFolder=h,e.getAllChildrenLists(e.listNewFolder,e.userId,e.allChildrenLists);case 21:case"end":return t.stop()}}),t)})))()},getUserList:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(m["g"])({id:e.$store.state.currentCompanyId,nodeType:"company"},1,1e4);case 2:return s=t.sent,r=s.list,e.userList=r,t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})))()},_getUserInfo:function(e){var t=this;return Object(a["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(m["f"])(e);case 3:return s.sent,s.next=6,Object(m["f"])(sessionStorage.createUserID);case 6:r=s.sent,t.curProjCreatePeop=r.cnName+" 指派了新工作,请完成工作指派",1==sessionStorage.allocated&&(t.curProjCreatePeop="项目管理"),t.isProjManager=!0,s.next=15;break;case 12:s.prev=12,s.t0=s["catch"](0),console.log(s.t0);case 15:case"end":return s.stop()}}),s,null,[[0,12]])})))()},createFolders:function(){var e=this;return 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 r=function(e){e.length>0&&e.forEach((function(e){var t={FolderId:"",ManagerUserId:"",GeneralId:"",OldManager:"",OldGeneralId:""};t.FolderId=e.id;var i=[];t.ManagerUserId=e.manageUser.length>0?e.manageUser.map((function(e){return i.push(e.id),e.id})).join(","):"";var a=e.listUser.filter((function(e){return!i.includes(e.id)}));t.GeneralId=e.listUser.length>0?a.map((function(e){return e.id})).join(","):"",t.OldManager=e.oldManager,t.OldGeneralId=e.oldGeneralId,s.Work.push(t),r(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.listNewFolder),t.next=6,Object(_["a"])(s);case 6:i=t.sent,console.log(i),a=e,0===i.Code?(a.$notify({message:"工作指派完成。",type:"success",offset:100,duration:2500}),a.offDialog()):a.$notify({type:"error",message:"服务器异常,工作指派失败。",offset:100,duration:5e3});case 10:case"end":return t.stop()}}),t)})))()}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll,!0)}};function I(e,t){var s=Object(h["a"])(e),r=s[0],i=(s[1],s.slice(2)),a=r.Id,n=[],o={};return i.forEach((function(e){var s=Object(w["b"])(e);o[s.id]=s,s.listChildren=[],s.listUser=s.oldGeneralId.split(",").filter((function(e){return e})).map((function(e){return Object(d["a"])({},t[e])})),s.manageUser=("0"===s.oldManager?"":s.oldManager).split(",").filter((function(e){return e})).map((function(e){return Object(d["a"])({},t[e])}));var r=s.superId;if(r!==a){var i=o[r];i&&i.listChildren.push(s)}else n.push(s)})),n}var U=D,x=(s("d5e1"),Object(y["a"])(U,c,u,!1,null,"22df4093",null)),N=x.exports,T=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"bottomdialog"},[r("div",{staticClass:"yiyun_dialog_left yiyun_zhedie"},[r("span",{on:{click:e.offDialog}},[e._v("关闭")])]),r("div",{staticClass:"yiyun_dialog_center"},[r("span",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkDialog,expression:"marchWorkDialog == true"}],staticClass:"backshangyicheng prev_to_1",on:{click:e.backdistNewProj}},[r("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),r("span",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerDialog,expression:"marchWorkerDialog == true"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backWorkerPal}},[r("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),r("span",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerPalDialog,expression:"marchWorkerPalDialog == true"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backdistWork}},[r("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),r("span",{directives:[{name:"show",rawName:"v-show",value:1==e.ProjInfoDialog,expression:"ProjInfoDialog == true"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backdistProjName}},[r("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),r("div",{staticClass:"bottomdialogbox_list_head newProject_next_taggle1"},[r("div",{staticClass:"EC_col_16"},[r("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.NewProductDailog,expression:"NewProductDailog == true"}]},[e._v("新建项目")]),r("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.ProjInfoDialog,expression:"ProjInfoDialog == true"}]},[e._v("项目概况")]),r("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkDialog,expression:"marchWorkDialog == true"}]},[e._v("工作指派")]),r("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerDialog,expression:"marchWorkerDialog == true"}]},[e._v("指派职员")]),r("h3",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerPalDialog,expression:"marchWorkerPalDialog == true"}]},[e._v("指派工作负责人")])]),r("div",{staticClass:"EC_col_8"},[r("div",{staticClass:"fr mt-26"},[r("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.NewProductDailog,expression:"NewProductDailog == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.goprojInfo}},[e._v("下一步")]),r("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.ProjInfoDialog,expression:"ProjInfoDialog == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:"",disabled:e.isDisableCreate},on:{click:e.createProject}},[e._v("创建项目")])],1)]),r("div",{staticClass:"clear"}),r("div",{staticClass:"yiyun_Tbline"})])]),r("div",{staticClass:"yiyun_dialog_right yiyundialog_close"}),r("div",{staticClass:"clear"}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowdivid,expression:"isShowdivid"}],staticClass:"linescoll"}),r("div",{staticClass:"dialogcontentbody",attrs:{id:"bottomDiaBody"}},[r("div",{ref:"diaNewproH",staticClass:"dialogcontentbodyrow",attrs:{id:"bottomDiaChild"}},[r("div",{staticClass:"centerWarpDia"},[r("div",{directives:[{name:"show",rawName:"v-show",value:1==e.NewProductDailog,expression:"NewProductDailog == true"}],staticClass:"PaincenterBox"},[r("el-form",{ref:"",staticClass:"line_from",attrs:{"label-width":"100px","label-position":"left"},model:{value:e.newProjData,callback:function(t){e.newProjData=t},expression:"newProjData"}},[r("div",{staticClass:"yiyun_col-12 fl",staticStyle:{"margin-left":"4px"}},[r("div",{staticClass:"yiyunlargeItem"},[r("el-form-item",{attrs:{label:"项目名称"}},[r("el-input",{staticClass:"labelinputbefore",attrs:{placeholder:"请输入项目名称"},model:{value:e.newProjData.projectData.projName,callback:function(t){e.$set(e.newProjData.projectData,"projName",t)},expression:"newProjData.projectData.projName"}})],1)],1)]),r("div",{staticClass:"yiyun_col-12 fl",staticStyle:{"margin-left":"4px"}},[r("div",{staticClass:"yiyunlargeItem"},[r("el-form-item",{attrs:{label:"选择工作链"}},[r("el-select",{staticClass:"bg_w",attrs:{filterable:"","no-data-text":"暂无数据",placeholder:"请选择工作链"},on:{change:e.changeSelectTemplate},model:{value:e.newProjData.projectData.templateID,callback:function(t){e.$set(e.newProjData.projectData,"templateID",t)},expression:"newProjData.projectData.templateID"}},e._l(e.templateList,(function(e){return r("el-option",{key:e.Id,attrs:{label:e.TempName,value:e.Id}})})),1)],1)],1)])])],1),r("div",{directives:[{name:"show",rawName:"v-show",value:1==e.ProjInfoDialog,expression:"ProjInfoDialog == true"}],staticClass:"PaincenterBox"},[r("el-form",{ref:"",staticClass:"line_from",attrs:{"label-width":"100px","label-position":"left"},model:{value:e.newProjData,callback:function(t){e.newProjData=t},expression:"newProjData"}},[r("div",{staticClass:"yiyun_col-6 fl"},[r("div",{staticClass:"yiyunlargeItem"},[r("el-form-item",{attrs:{label:"项目负责:"}},[r("span",{staticClass:"forminfocom"},[e._v(e._s(e.projectCreaterName))])])],1)]),r("div",{staticClass:"yiyun_col-6 fl"},[r("div",{staticClass:"yiyunlargeItem"},[r("el-form-item",{attrs:{label:"创建时间:"}},[r("span",{staticClass:"forminfocom"},[e._v(e._s(e.createDate))])])],1)]),e._l(e.checkNewProjData.CustomProps,(function(t){return r("div",{key:t.Id,staticClass:"yiyun_col-12 fl",staticStyle:{"margin-left":"4px"}},[r("div",{staticClass:"yiyunlargeItem"},[r("el-form-item",{attrs:{label:t.PropertyName}},[r("el-input",{key:t.Id,staticClass:"labelinputbefore",attrs:{placeholder:"输入"},on:{input:e.userDefineInput},model:{value:t.PropValue,callback:function(s){e.$set(t,"PropValue",s)},expression:"prop.PropValue"}})],1)],1)])})),r("div",{staticClass:"clear"}),r("div",{staticClass:"yiyun_col-12img fl mt-10"},[r("div",{staticClass:"clear"}),r("div",{staticClass:"yiyun_col-6"},[r("div",{staticClass:"pageImgBox"},[r("img",{attrs:{src:e._f("resolveAvator")(e.coverSrc),alt:""}}),r("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[r("span",[e._v("编辑")])]),r("span",{staticClass:"faceBtn",on:{click:e.setSystemCoverRandom}},[e._v("使用随机封面")])],1)])]),r("div",{staticClass:"clear"}),r("el-form-item",[r("div",{staticClass:"tianjiaxiezuoren",staticStyle:{display:"none"}},[r("h5",[e._v("添加协作人")]),r("div",[r("div",{staticClass:"touxiang_hezuorenBox"},[r("div",{staticClass:"touxiang_hezuorenBox-item"},[r("img",{attrs:{src:s("03aa"),alt:""}})])]),r("i",{staticClass:"yiyun_icon_large icon_topnav_large_add",attrs:{title:"添加合作人"}})])])])],2)],1),r("div",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkDialog,expression:"marchWorkDialog == true"}],staticClass:"PaincenterBox"},[r("div",{staticClass:"xiezuobox"},[r("div",{staticClass:"fuzeren"},[e._m(0),r("div",{staticClass:"mt-10"},[r("div",{staticClass:"fl firstPeople"},[r("div",[r("div",{staticClass:"avtarface",attrs:{title:e.currUser.cnName}},[r("img",{attrs:{src:e._f("resolveAvator")(e.currUser.headImgUrl)}})]),r("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(e.currUser.cnName))])])]),r("div",{staticClass:"fl vhLine mlr-20"}),r("div",{staticClass:"fl addBtn_new",attrs:{title:"添加项目负责人"},on:{click:function(t){return e.addManager()}}},[r("i",{staticClass:"el-icon-plus middleaddEC"})]),r("div",{staticClass:"fl chengyuanbox"},[r("ul",{staticClass:"ECworkerList"},e._l(e.newProjData.projectData.listProjManager,(function(t,s){return r("li",{key:s},[s<14||e.showAll?r("div",[r("div",{staticClass:"avtarface",attrs:{title:t.userName}},[r("img",{attrs:{src:e._f("resolveAvator")(t.headImgUrl)}})]),r("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(t.cnName))])]):e._e()])})),0)])])]),e._l(e.newProjData.listFolder,(function(t,s){return r("div",{key:s},[r("div",{staticClass:"EC_Tree"},[e.tempIndex!=s||0==s?r("div",[r("em",{staticClass:"ec_number label_text"},[e._v(e._s(t.folderIndex))]),1==e.showTitle||e.tempIndex!=s?r("div",[r("span",{staticClass:"label_text"},[e._v(e._s(t.folderName))]),0==t.default?r("el-button",{staticClass:"fr mini_typeBtn",on:{click:function(t){return e.eidtTitle(s)}}},[e._v("编辑")]):e._e()],1):e._e()]):e._e(),2==e.showTitle&&e.tempIndex==s?r("div",{staticClass:"self_newitem"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.folderName,expression:"folder.folderName"}],class:0==t.default?"bianji_input self_Inputwork":" label_text_moren",attrs:{disabled:t.default},domProps:{value:t.folderName},on:{input:function(s){s.target.composing||e.$set(t,"folderName",s.target.value)}}}),r("div",{staticClass:"selfoptiongroup"},[0==t.default?r("el-button",{staticClass:"mini_typeBtn",on:{click:e.saveTitle}},[e._v("保存")]):e._e(),0==t.default?r("el-button",{staticClass:"mini_typeBtn",attrs:{type:"primary"},on:{click:function(t){return e.deleCustomFolder(s)}}},[e._v("删除")]):e._e()],1)]):e._e()]),r("div",{staticClass:"mt-10"},[r("div",{staticClass:"fl firstPeople"},[""==t.manageUser?r("div",[r("div",{staticClass:"avtarface",on:{click:function(t){return e.addUserPal(s)}}},[r("i",{staticClass:"large_huangguan el-icon-plus"})]),r("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("工作负责人")])]):e._e(),e._l(t.manageUser,(function(t,i){return r("li",{key:i},[r("div",[r("div",{staticClass:"avtarface",attrs:{title:"编辑"}},[r("img",{attrs:{src:e._f("resolveAvator")(t.headImgUrl)}}),r("div",{staticClass:"eiditIconimgBox",on:{click:function(t){return e.addUserPal(s)}}},[r("i",{staticClass:"icon font_family icon-icon_bianji1 eiditIconimg"})])]),r("span",{staticClass:"Text_tiny tinyText_wirte",attrs:{title:t.cnName}},[e._v(e._s(t.cnName))])])])}))],2),r("div",{staticClass:"fl vhLine mlr-20"}),""!=t.manageUser?r("div",{staticClass:"fl addBtn_new",attrs:{title:"添加职员"},on:{click:function(t){return e.addUser(s)}}},[r("i",{staticClass:"el-icon-plus middleaddEC"})]):e._e(),r("div",{staticClass:"fl chengyuanbox"},[r("ul",{staticClass:"ECworkerList"},e._l(e.listUserComputed(t.listUser),(function(s,i){return r("li",{key:i},[i<14||e.showAll?r("div",[r("div",{staticClass:"avtarface",attrs:{title:s.cnName}},[r("img",{attrs:{src:e._f("resolveAvator")(s.headImgUrl)}})]),r("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(s.cnName))])]):e._e(),14!=i||e.showAll?e._e():r("div",{on:{click:e.showAllClick}},[r("span",{staticClass:"zhangkai_down"}),r("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("展开全部")])]),e.showAll&&i==t.listUser.length-1&&i>14?r("div",{staticClass:"newweizhi",on:{click:function(t){e.showAll=!1}}},[r("span",{staticClass:"zhangkai_up"}),r("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("收起职员")])]):e._e()])})),0)])]),r("div",{staticClass:"clear"})])})),r("div",{staticClass:"line_from",staticStyle:{display:"none"}},[r("div",e._l(e.newProjData.listFolder,(function(t,s){return r("div",{key:s,staticClass:"tianjiaxiezuorenBox"},[r("div",{staticStyle:{height:"50px"}},[1==e.showTitle?r("div",[r("h5",{staticClass:"fl label_text"},[e._v(e._s(t.folderName))]),0==t.default?r("el-button",{staticClass:"fr mini_typeBtn",on:{click:function(t){return e.eidtTitle()}}},[e._v("编辑")]):e._e()],1):e._e(),2==e.showTitle?r("div",{staticClass:"self_newitem"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.folderName,expression:"folder.folderName"}],class:0==t.default?"bianji_input self_Inputwork":"fl label_text_moren",attrs:{disabled:t.default},domProps:{value:t.folderName},on:{input:function(s){s.target.composing||e.$set(t,"folderName",s.target.value)}}}),r("div",{staticClass:"selfoptiongroup"},[0==t.default?r("el-button",{staticClass:"mini_typeBtn",on:{click:e.saveTitle}},[e._v("保存")]):e._e(),0==t.default?r("el-button",{staticClass:"mini_typeBtn",attrs:{type:"primary"},on:{click:function(t){return e.deleCustomFolder(s)}}},[e._v("删除")]):e._e()],1)]):e._e()]),r("div",{staticClass:"self_newitem"},[r("div",{staticClass:"touxiang_hezuorenBox fl"},e._l(t.listUser,(function(t,i){return r("div",{key:i,staticClass:"yonghutouxiangBox"},[r("div",{staticClass:"touxiang_hezuorenBox-item"},[r("img",{staticClass:"imgHead",attrs:{src:e._f("resolveAvator")(t.headImgUrl)}}),r("i",{staticClass:"icon_delete el-icon-delete",attrs:{title:"删除"},on:{click:function(t){return e.deleteNewProjUser(s,i)}}})]),r("span",[e._v(e._s(t.cnName))])])})),0),r("i",{staticClass:"yiyun_icon_large icon_topnav_large_add add_worker_xiezuo",attrs:{title:"添加合作人"},on:{click:function(t){return e.addUser(s)}}})])])})),0)])],2)]),r("div",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerPalDialog,expression:"marchWorkerPalDialog == true"}],staticClass:"PaincenterBox"},[r("div",{staticClass:"xiezuobox"},[r("div",{staticClass:"yiyun_col-6 bg_text_wirte mt-8"},[r("div",{staticClass:"row_painfl"},[r("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[r("el-collapse-item",{staticClass:"nomidline",attrs:{name:"1"}},[r("template",{slot:"title"},[r("span",{staticClass:"btnlabelTitle"},[e._v("从部门中选择职员")])]),e._l(e.listDept,(function(t,s){return r("el-collapse",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:s,attrs:{accordion:""}},[r("el-collapse-item",[r("template",{slot:"title"},[r("span",{staticClass:"btnlabelTitle"},[e._v(e._s(t.deptName)+" ")])]),e._l(t.listUser,(function(t,i){return r("div",{key:i,staticClass:"user_info_item",attrs:{label:t}},[r("el-checkbox",{staticClass:"checkBoxCol",attrs:{disabled:e.disabled},on:{change:function(r){return e.handleCheckedOnlyOne(s,t,r)}},model:{value:t.selected,callback:function(s){e.$set(t,"selected",s)},expression:"user.selected"}},[r("div",{staticClass:"checkboxlabelitem"},[r("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),r("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),r("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[r("ul",{staticClass:"popover_ul popover_ul"},[r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.companyName))])]),r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),r("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),r("span",{staticClass:"user_info_role"},[e._v(e._s(t.roleName))])],1)])],1)}))],2)],1)}))],2)],1)],1)]),r("div",{staticClass:"shuxian"}),r("div",{staticClass:"yiyun_col-6"},[r("h4",{staticClass:"rightXiezuoren"},[e._v("已选职员")]),r("div",{staticClass:"row_painfr"},[r("div",{staticClass:"yiyun_line"}),r("span",[e._v("工作负责人")]),r("div",{staticClass:"yiyun_line"}),0==e.selectedUser.length?r("div",{staticClass:"main_workerBox"},[r("i",{staticClass:"icon font_family icon-icon_huangguan-weijihuo largehuangguan"}),r("div",{staticClass:"rentou_alrge"})]):e._e(),0!=e.selectedUser.length?r("div",e._l(e.selectedUser,(function(t,s){return r("div",{key:s,staticClass:"user_info_item mainpeople_H"},[r("i",{staticClass:"icon font_family icon-icon_huangguan-jihuo middlehuangguan fl",attrs:{title:"负责人"}}),r("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),r("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),r("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[r("ul",{staticClass:"popover_ul popover_ul"},[r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.roleName))])]),r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),r("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),r("span",{staticClass:"user_info_role"},[r("i",{staticClass:"el-icon-close largeclose",attrs:{title:"移除负责人"},on:{click:function(s){return e.removeManageUser(t)}}})])],1)})),0):e._e(),r("p",{staticClass:"diaTip"},[e._v(" 工作负责人仅有一人,其将对:"+e._s(e.currWorkName)+",进行职员指派 ")])])])])]),r("div",{directives:[{name:"show",rawName:"v-show",value:1==e.marchWorkerDialog,expression:"marchWorkerDialog == true"}],staticClass:"PaincenterBox"},[r("div",{staticClass:"xiezuobox"},[r("div",{staticClass:"yiyun_col-6 bg_text_wirte mt-8"},[r("div",{staticClass:"row_painfl"},[r("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[r("el-collapse-item",{staticClass:"nomidline",attrs:{name:"1"}},[r("template",{slot:"title"},[r("span",{staticClass:"quanxuanbtn"},[r("el-checkbox",{staticClass:"checkBoxCol",on:{change:e.handleCheckTopAll},model:{value:e.ischeckAll,callback:function(t){e.ischeckAll=t},expression:"ischeckAll"}},[e._v("全选")])],1),r("span",{staticClass:"btnlabelTitle"},[e._v("从部门中选择职员")])]),e._l(e.listDept,(function(t,s){return r("el-collapse",{directives:[{name:"show",rawName:"v-show",value:e.listDept.length>0,expression:"listDept.length > 0"}],key:s,attrs:{accordion:""}},[r("el-collapse-item",[r("template",{slot:"title"},[r("span",{staticClass:"quanxuanbtn"},[r("el-checkbox",{key:s,staticClass:"checkBoxCol",on:{change:function(t){return e.handleCheckItemAll(s,t)}},model:{value:t.disabled,callback:function(s){e.$set(t,"disabled",s)},expression:"dept.disabled"}},[e._v("全选")])],1),r("span",{staticClass:"btnlabelTitle"},[e._v(e._s(t.deptName)+" ")])]),e._l(t.listUser,(function(t,i){return r("div",{key:i,staticClass:"user_info_item",attrs:{label:t}},[r("el-checkbox",{staticClass:"checkBoxCol",attrs:{disabled:e.disabled},on:{change:function(r){return e.handleCheckedOne(s,t,r)}},model:{value:t.disabled,callback:function(s){e.$set(t,"disabled",s)},expression:"user.disabled"}},[r("div",{staticClass:"checkboxlabelitem"},[r("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),r("span",{staticClass:"user_info_name"},[e._v(e._s(t.userName))]),r("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[r("ul",{staticClass:"popover_ul popover_ul"},[r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.companyName))])]),r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),r("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),r("span",{staticClass:"user_info_role"},[e._v(e._s(t.roleName))])],1)])],1)}))],2)],1)}))],2)],1)],1)]),r("div",{staticClass:"shuxian"}),r("div",{staticClass:"yiyun_col-6"},[r("h4",{staticClass:"rightXiezuoren"},[e._v("已选职员")]),e.isShowManager?r("div",{staticClass:"row_painfr"},[r("div",{staticClass:"yiyun_line"}),r("span",[e._v("工作负责人")]),r("div",{staticClass:"yiyun_line"}),0==e.selectedUser.length?r("div",{staticClass:"main_workerBox"},[r("i",{staticClass:"icon font_family icon-icon_huangguan-weijihuo largehuangguan"}),r("div",{staticClass:"rentou_alrge"})]):e._e(),0!=e.listManagerComputed(e.selectedUser).length?r("div",e._l(e.selectedUser,(function(t,s){return r("div",{key:s,staticClass:"user_info_item mainpeople_H"},[r("i",{staticClass:"icon font_family icon-icon_huangguan-jihuo middlehuangguan fl",attrs:{title:"负责人"}}),r("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),r("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),r("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[r("ul",{staticClass:"popover_ul popover_ul"},[r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.roleName))])]),r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),r("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),r("span",{staticClass:"user_info_role",on:{click:function(s){return e.removeManageUser(t)}}},[e._v("修改")])],1)})),0):e._e(),r("p",{staticClass:"diaTip"},[e._v(" 工作负责人仅有一人,其将对:"+e._s(e.currWorkName)+",进行职员指派 ")])]):e._e(),e.isShowFirstPeople?r("div",e._l(e.listDept,(function(t){return r("div",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:t.id,staticClass:"row_painfr"},[e._l(e.listDeptUserNoZero(e.selectedUser),(function(s){return r("div",{key:s},[s==t.id?r("div",[r("div",{staticClass:"yiyun_line"}),r("span",[e._v(e._s(t.deptName))])]):e._e()])})),e._l(e.selectedUser,(function(s,i){return r("div",{key:i,staticClass:"renyuanbox"},[s.deptId==t.id?r("div",{staticClass:"user_info_item"},[r("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(s.headImgUrl),alt:""}}),r("span",{staticClass:"user_info_name"},[e._v(e._s(s.userName))]),r("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[r("ul",{staticClass:"popover_ul popover_ul"},[r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v(e._s(s.roleName))])]),r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v(e._s(s.phone))])]),r("li",[r("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(s.projCount)+"个")])])]),r("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(s.position))])]),r("span",{staticClass:"user_info_role"},[[r("el-select",{staticClass:"setroleselect",attrs:{placeholder:"设置角色"},model:{value:s.folderPerm,callback:function(t){e.$set(s,"folderPerm",t)},expression:"user.folderPerm"}},e._l(e.roles,(function(t){return r("el-option",{key:t.value,attrs:{"allow-create":"",label:t.label,value:t.value}},[r("span",{staticStyle:{float:"left","margin-right":"30px"}},[e._v(e._s(t.label))]),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.description))])])})),1)],r("i",{staticClass:"el-icon-close",attrs:{title:"移除协作人"},on:{click:function(t){return e.removeSelectUser(s)}}})],2)],1):e._e()])}))],2)})),0):e._e()])])])])])])])])},A=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("span",{staticClass:"label_text"},[e._v("项目管理权限")])])}],F=s("b0f9"),B=s("5ab9"),M=s("9e5b"),O={props:{isNewProj:{type:Boolean,default:!1}},data:function(){var e=this.$store.state.userInfo;return{imgSrc:"/api/archives/cover?path=",headSrc:"/api/archives/head?path=",chunkUploadUrl:"/api/webupload/chunks",isShowdivid:!1,filePicker:"uploadCover",uploadLabel:"编辑封面",srcIndex:2,coverSrc:"static/img/faceImg/face01.png",cnName:"",listDept:[],selectedUser:[],selectedManageUser:[],showTitle:"1",disabled:!1,SelectTemplateNodeList:{},selectTemlateData:"",selectTemlateID:"",diaBodyheight:!1,checkNewProjData:{Proj:{ProjName:"",CompanyId:"",Notice:"",ShowImgUrl:"",TemplateId:"",CreateUserId:"",ModifyUserId:""},Node:{},CustomProps:[]},newProjData:{projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""},listTempProp:[],listProjProp:[],checked:!1,newfolder:{folderName:"自定义"},activeName:"1",NewProductDailog:!0,ProjInfoDialog:!1,showAll:!1,marchWorkDialog:!1,marchWorkerDialog:!1,marchWorkerPalDialog:!1,isDisableCreate:!1,nodeLeaves:!1,isShowFirstPeople:!1,opentree:!0,currWorkName:"",uploadCoverTimes:0,arryUnUseCover:[],uploadCompId:sessionStorage.companyId,uploadTypeCover:2,ischeckAll:!1,newProjFolderIndex:1,projectCreaterName:e.cnName,createDate:(new Date).toLocaleDateString(),listNewFolder:[],listMyPermFolders:[],isSlectPal:!0,roles:[{value:1,label:"编辑和查看",description:""},{value:0,label:"仅查看",description:""}],folderPerm:"1",nowFolderIndex:"",tempIndex:0,currSelectData:[],currUser:e,isShowManager:!0,templateList:[]}},watch:{isNewProj:function(e){0==e&&this.reSetDialog()},marchWorkerPalDialog:function(){}},components:{FileUploader:M["a"]},created:function(){},mounted:function(){this.listDeptUsers(),this.getSelectTemplateData(),window.addEventListener("scroll",this.handleScroll,!0)},computed:{listManagerComputed:function(){return function(e){return e.filter((function(e){return 2==e.folderPerm}))}},listUserComputed:function(){var e=this;return function(t){return t.filter((function(t){return e.isShowManager?2!=t.folderPerm:t.userID!=e.currUser.userID}))}},listUserManager:function(e){return function(e){return e.filter((function(e){return 0==e.folderPerm||2==e.folderPerm}))}},listDeptUserNoZero:function(){return function(e){for(var t=[],s=0;s0?this.isShowdivid=!0:this.isShowdivid=!1},showzhankai:function(){this.$emit("isShowBottom",!0)},offDialog:function(){var e=this,t=this;this.$confirm("放弃“新建项目”您编辑的内容被清空。是否放弃?","",{confirmButtonText:"放弃",cancelButtonText:"取消",showClose:!1,type:"error",beforeClose:function(e,s,r){"confirm"==e&&(t.isDisableCreate=!1,t.SelectTemplateNodeList=[],t.selectedUser=[],t.selectedManageUser=[],t.marchWorkDialog=!1,t.marchWorkerDialog=!1,t.marchWorkerPalDialog=!1,t.ProjInfoDialog=!1,t.NewProductDailog=!0,t.newProjData={projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""},t.$emit("refreshListProj",!1)),s.doClose()}}).then((function(){e.isDisableCreate=!1,e.newProjData.projectData={},e.SelectTemplateNodeList=[],e.selectedUser=[],e.selectedManageUser=[],e.marchWorkDialog=!1,e.marchWorkerDialog=!1,e.marchWorkerPalDialog=!1,e.ProjInfoDialog=!1,e.NewProductDailog=!0,e.newProjData={projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""}})).catch((function(e){}))},reSetDialog:function(){var e=this;e.isDisableCreate=!1,e.SelectTemplateNodeList=[],e.selectedUser=[],e.selectedManageUser=[],e.marchWorkDialog=!1,e.marchWorkerDialog=!1,e.marchWorkerPalDialog=!1,e.ProjInfoDialog=!1,e.NewProductDailog=!0,e.newProjData={projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""},e.checkNewProjData={Proj:{ProjName:"",CompanyId:"",Notice:"",ShowImgUrl:"",TemplateId:"",CreateUserId:"",ModifyUserId:""},Node:{},CustomProps:[]},e.$emit("refreshListProj",!1)},godistWork:function(){this.isAllhide()},isAllhide:function(){this.NewProductDailog=!1,this.ProjInfoDialog=!1,this.marchWorkDialog=!1,this.marchWorkerDialog=!1,this.marchWorkerPalDialog=!1},backdistProjName:function(){this.isAllhide(),this.NewProductDailog=!0},backdistNewProj:function(){this.isAllhide(),this.ProjInfoDialog=!0},backdistWork:function(){var e=this;1==this.marchWorkerPalDialog?this.$confirm("退出“职员选择”您编辑的内容被清空,确定退出?","",{confirmButtonText:"退出",cancelButtonText:"取消",showClose:!1,type:"warning"}).then((function(){e.newProjData.listFolder[e.nowFolderIndex]=e.currSelectData,e.cancelCheck(),e.isAllhide(),e.marchWorkDialog=!0})):(this.cancelCheck(),this.isAllhide(),this.marchWorkDialog=!0)},backWorkerPal:function(){this.isAllhide(),this.marchWorkerPalDialog=!0},addUserPal:function(e){this.currSelectData=JSON.parse(JSON.stringify(this.newProjData.listFolder[parseInt(e)])),this.currWorkName=this.newProjData.listFolder[parseInt(e)].folderName,this.nowFolderIndex=parseInt(e),this.isAllhide(),this.marchWorkerPalDialog=!0,this.isShowFirstPeople=!1,this.setFolderPerm(this.newProjData.listFolder[parseInt(e)]),this.selectedUser=this.newProjData.listFolder[parseInt(e)].listUser},addUser:function(e){this.currWorkName=this.newProjData.listFolder[parseInt(e)].folderName,this.isAllhide(),this.isShowFirstPeople=!0,this.marchWorkerDialog=!0,this.isShowManager=!0,this.setFolderPerm(this.newProjData.listFolder[parseInt(e)]),this.selectedUser=this.newProjData.listFolder[parseInt(e)].listUser},addManager:function(){var e=this;this.isAllhide(),this.isShowFirstPeople=!0,this.marchWorkerDialog=!0,this.isShowManager=!1,E(this.$store.state.currentCompanyId).then((function(t){e.listDept=t,e.listDept=Object(p["a"])(e.listDept),console.log("1111111111111111111111111",e.listDept)})).catch((function(e){console.log(e)})),this.selectedUser=this.newProjData.projectData.listProjManager},deleteNewProjUser:function(e,t){this.newProjData.listFolder[e].listUser.splice(t,1)},deleteDistWorkUser:function(e,t){this.listNewFolder[e].listUser.splice(t,1)},eidtTitle:function(e){this.tempIndex=e,this.showTitle=2},saveTitle:function(e){this.tempIndex=0,this.showTitle=1},deleCustomFolder:function(e){this.newProjData.listFolder.splice(e,1)},addProjFolderWork:function(){this.eidtTitle(this.newProjData.listFolder.length),this.newfolder={folderName:"自定义工作"+this.newProjFolderIndex,default:!1,deleted:0,listUser:[],manageUser:[]},this.newProjData.listFolder.push(this.newfolder),this.newProjFolderIndex=this.newProjFolderIndex+1},setDistManagerUser:function(){var e=this;this.selectedManageUser.splice(0,this.selectedManageUser.length),this.selectedUser.forEach((function(t){2==t.folderPerm&&e.selectedManageUser.push(t)}))},handleCheckTopAll:function(e){for(var t=0;t0&&(this.handleCheckItemAll(t,!1),this.handleCheckItemAll(t,e))},handleCheckItemAll:function(e,t){for(var s=0;s0&&(t++,1==this.listDept[s]["selected"]&&e++);this.ischeckAll=e==t},removeSelectUser:function(e){this.checkDeptUserName(!1,e),this.cancelCheck(e.userID)},removeManageUser:function(e){e.folderPerm=0,e.roleName="查看编辑";for(var t=0;t0)for(var s=0;s0&&1==this.marchWorkerDialog?this.isShowFirstPeople=!0:this.isShowFirstPeople=!1},changeSelectTemplate:function(e){this.selectTemlateID=e;for(var t=0;t35?this.$notify({message:"项目名称不得超出35个字符。",type:"warning",offset:100,duration:2500}):void 0!=this.newProjData.projectData.templateID&&null!=this.newProjData.projectData.templateID&&""!=this.newProjData.projectData.templateID?(F["n"](this.selectTemlateID).then((function(t){t.Data.propertys.forEach((function(t,s){e.checkNewProjData.CustomProps[s]={},e.checkNewProjData.CustomProps[s]["TempPropId"]=t.Id,e.checkNewProjData.CustomProps[s]["PropertyName"]=t.PropertyName,e.checkNewProjData.CustomProps[s]["PropValue"]="";var r=e.checkNewProjData.CustomProps;e.checkNewProjData.CustomProps=Object(p["a"])(r)})),e.checkNewProjData=Object(p["a"])(e.checkNewProjData)})),this.isAllhide(),this.setSystemCoverRandom(),this.ProjInfoDialog=!0):this.$notify({message:"请选择工作链。",type:"warning",offset:100,duration:2500})}else this.$notify({message:"请输入项目名称。",type:"warning",offset:100,duration:2500})},listFolders:function(){var e=this;this.$axios({method:"get",url:encodeURI("/api/folders/allot/"+sessionStorage.userId+"/"+sessionStorage.projId)}).then((function(t){e.listMyPermFolders=t.data})).catch((function(e){console.log(e)}))}},destroyed:function(){window.removeEventListener("scroll",this.handleScroll,!0)}};function E(e){return L.apply(this,arguments)}function L(){return L=Object(a["a"])(regeneratorRuntime.mark((function e(t){var s,r,i,a,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Object(m["d"])(t),Object(m["g"])({id:t,nodeType:"company"},1,1e4)]);case 2:return s=e.sent,r=Object(f["a"])(s,2),i=r[0],a=r[1].list,n=i[0].children||[],o=W(n,a),e.abrupt("return",o.filter((function(e){return e.listUser&&e.listUser.length})));case 9:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function W(e,t){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(e||[]).forEach((function(e){var r=e.data;r.listUser=t.filter((function(t){return t.deptId===e.id})),s.push(r),e.children&&e.children.length&&W(e.children,t,s)})),s}var $=O,R=Object(y["a"])($,T,A,!1,null,null,null),z=R.exports,H=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"bottomdialog"},[s("div",{staticClass:"yiyun_dialog_left yiyun_zhedie"},[s("span",{on:{click:e.offDialog}},[e._v("关闭")])]),s("div",{staticClass:"yiyun_dialog_center"},[s("span",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetUsers,expression:"isShowSetUsers"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.toSecondPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("span",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetManager,expression:"isShowSetManager"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backFirstPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("span",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetUsers&&e.isShowProjInfo,expression:"isShowSetUsers && isShowProjInfo"}],staticClass:"backshangyicheng prev_to_2",on:{click:e.backFirstPage}},[s("i",{staticClass:"yiyun_icon icon_topnav_backicon"})]),s("div",{staticClass:"bottomdialogbox_list_head newProject_next_taggle1"},[s("div",{staticClass:"EC_col_16"},[s("h3",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetFolder,expression:"isShowSetFolder"}]},[e._v("项目编辑")]),s("h3",{directives:[{name:"show",rawName:"v-show",value:e.isShowProjInfo,expression:"isShowProjInfo"}]},[e._v("项目概况")]),s("h3",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetUsers,expression:"isShowSetUsers"}]},[e._v("指派职员")]),s("h3",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetManager,expression:"isShowSetManager"}]},[e._v("指派工作负责人")])]),s("div",{staticClass:"EC_col_8"},[s("div",{staticClass:"fr mt-26"},[s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSetManager,expression:"isShowSetManager == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.toThreePage}},[e._v("分配职员")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSetUsers,expression:"isShowSetUsers == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.backFirstPage}},[e._v("完成或跳过")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:1==e.isShowSetFolder,expression:"isShowSetFolder == true"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.submitAndClose}},[e._v("完成")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isShowEditProjBtn,expression:"isShowEditProjBtn"}],staticClass:"fr width_120 edit120",attrs:{type:"primary",round:""},on:{click:e.EidtProjectInfo}},[e._v("编辑项目概况")]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isShowSaveAllBtn,expression:"isShowSaveAllBtn"}],staticClass:"fr width_120",attrs:{type:"primary",round:""},on:{click:e.saveProjectInfo}},[e._v("保存")])],1)]),s("div",{staticClass:"clear"}),s("div",{staticClass:"yiyun_Tbline"})])]),s("div",{staticClass:"yiyun_dialog_right yiyundialog_close"}),s("div",{staticClass:"clear"}),s("div",{staticClass:"dialogcontentbody"},[s("div",{staticClass:"dialogcontentbodyrow"},[s("div",{staticClass:"centerWarpDia"},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetFolder,expression:"isShowSetFolder"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox"},[s("div",{staticClass:"line_from"},[s("div",[e._l(e.listNewFolder,(function(t,r){return s("div",{key:r,staticClass:"tianjiaxiezuorenBox"},[1==e.showTitle?s("div",{staticClass:"self_newitem"},[s("h5",{staticClass:"fl label_text"},[e._v(" "+e._s(t.folderName)+" ")]),s("div",{staticClass:"selfoptiongroup"},[0==t.default?s("el-button",{on:{click:e.eidtTitle}},[e._v("编辑")]):e._e()],1)]):e._e(),2==e.showTitle?s("div",{staticClass:"self_newitem"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.folderName,expression:"folder.folderName"}],class:0==t.default?"bianji_input self_Inputwork":"fl label_text_moren",attrs:{disabled:t.default},domProps:{value:t.folderName},on:{input:function(s){s.target.composing||e.$set(t,"folderName",s.target.value)}}}),s("div",{staticClass:"selfoptiongroup"},[0==t.default?s("el-button",{attrs:{type:"primary"},on:{click:e.saveTitle}},[e._v("保存")]):e._e(),0==t.default?s("el-button",{on:{click:function(t){return e.deleTitle(r)}}},[e._v("删除")]):e._e()],1)]):e._e(),s("div",[s("div",{staticClass:"fl firstPeople"},[""==t.manageUser?s("div",[s("div",{staticClass:"avtarface",on:{click:function(s){return e.aloneAddUserForFolder(t)}}},[s("i",{staticClass:"large_huangguan el-icon-plus"})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("工作负责人")])]):e._e(),e._l(e.listManagerComputed(t.manageUser),(function(r,i){return s("li",{key:i},[s("div",[s("div",{staticClass:"avtarface",attrs:{title:"编辑"}},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.headSrc+r.headImgUrl,expression:"headSrc + user.headImgUrl"}],attrs:{src:""},on:{click:function(s){return e.aloneAddUserForFolder(t)}}})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(r.cnName))])])])}))],2),s("div",{staticClass:"fl vhLine mlr-20"}),""!=t.manageUser?s("div",{staticClass:"fl addBtn_new",attrs:{title:"添加职员"},on:{click:function(s){return e.aloneAddUserOnlyStaff(t)}}},[s("i",{staticClass:"el-icon-plus middleaddEC"})]):e._e(),s("div",{staticClass:"fl chengyuanbox"},[s("ul",{staticClass:"ECworkerList"},e._l(e.listUserComputed(t.listUser),(function(r,i){return s("li",{key:i},[i<14||e.showAll?s("div",[s("div",{staticClass:"avtarface",attrs:{title:"编辑"}},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.headSrc+r.headImgUrl,expression:"headSrc + user.headImgUrl"}],attrs:{src:""}})]),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v(e._s(r.cnName))])]):e._e(),14!=i||e.showAll?e._e():s("div",{on:{click:e.showAllClick}},[s("span",{staticClass:"zhangkai_down"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("展开全部")])]),e.showAll&&i==t.listUser.length-1&&i>14?s("div",{staticClass:"newweizhi",on:{click:function(t){e.showAll=!1}}},[s("span",{staticClass:"zhangkai_up"}),s("span",{staticClass:"Text_tiny tinyText_wirte"},[e._v("收起职员")])]):e._e()])})),0)]),s("div",{staticClass:"clear"})])])})),e._m(0)],2)])])]),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowProjInfo,expression:"isShowProjInfo"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox ",staticStyle:{"margin-left":"4px"}},[s("el-form",{ref:"",staticClass:"line_from",attrs:{"label-width":"110px","label-position":"left"},model:{value:e.nowProject,callback:function(t){e.nowProject=t},expression:"nowProject"}},[s("div",{staticClass:"yiyun_col-6 fl"},[s("div",{staticClass:"bianju_item_fr"},[s("el-form-item",{attrs:{label:"项目负责人:"}},[s("span",[e._v(e._s(e.nowProject.ProjCreateUserName))])])],1)]),s("div",{staticClass:"yiyun_col-6 fl"},[s("div",{staticClass:"bianju_item_fr"},[s("el-form-item",{attrs:{label:"创建时间:"}},[s("span",[e._v(e._s(e.nowProject.ProjCreateTime))])])],1)]),e._l(e.listProjProp,(function(t){return s("div",{key:t.TempPropId,staticClass:"yiyun_col-12 fl"},[s("div",{staticClass:"bianju_item_fr"},[s("el-form-item",{attrs:{label:t.PropertyName+":"}},[e.isShowInfoEdit?s("el-input",{staticClass:"labelinputbefore",attrs:{placeholder:"输入"},model:{value:t.PropValue,callback:function(s){e.$set(t,"PropValue",s)},expression:"prop.PropValue"}}):e._e(),e.isShowInfoEdit?e._e():s("span",[e._v(e._s(t.PropValue))])],1)],1)])})),s("div",{staticClass:"yiyun_col-12 fl mt-10"},[s("div",{staticClass:"clear"}),s("div",{staticClass:"yiyun_col-6"},[s("div",{staticClass:"pageImgBox"},[s("img",{attrs:{src:e._f("resolveAvator")(e.coverSrc),alt:""}}),s("file-uploader",{directives:[{name:"show",rawName:"v-show",value:e.isShowSaveAllBtn,expression:"isShowSaveAllBtn"}],staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[s("span",[e._v("编辑")])]),s("span",{directives:[{name:"show",rawName:"v-show",value:e.isShowSaveAllBtn,expression:"isShowSaveAllBtn"}],staticClass:"faceBtn",on:{click:e.setSystemCoverRandom}},[e._v("使用随机封面")])],1)])])],2),s("div",{staticClass:"clear"})],1)]),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetManager,expression:"isShowSetManager"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox"},[s("div",{staticClass:"yiyun_col-6 bg_text_wirte mt-8"},[s("div",{staticClass:"row_painfl"},[s("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-collapse-item",{staticClass:"nomidline",attrs:{name:"1"}},[s("template",{slot:"title"},[s("span",{staticClass:"checkBoxCol"},[e._v("从部门中选择职员")])]),e._l(e.listDept,(function(t,r){return s("el-collapse",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:r,attrs:{accordion:""}},[s("el-collapse-item",[s("template",{slot:"title"},[s("span",{staticClass:"checkBoxCol"},[e._v(e._s(t.deptName)+" ")])]),e._l(t.listUser,(function(t,i){return s("div",{key:i,staticClass:"user_info_item",attrs:{label:t}},[s("el-checkbox",{staticClass:"checkBoxCol",attrs:{disabled:e.disabled},on:{change:function(s){return e.handleCheckedOnlyOne(r,t,s)}},model:{value:t.selected,callback:function(s){e.$set(t,"selected",s)},expression:"user.selected"}},[s("div",{staticClass:"checkboxlabelitem"},[s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),s("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[s("ul",{staticClass:"popover_ul popover_ul"},[s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.companyName))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),s("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),s("span",{staticClass:"user_info_role"},[e._v(e._s(t.roleName))])],1)])],1)}))],2)],1)}))],2)],1)],1)]),s("div",{staticClass:"shuxian"}),s("div",{staticClass:"yiyun_col-6"},[s("h4",{staticClass:"rightXiezuoren"},[e._v("已选职员")]),s("div",{staticClass:"row_painfr"},[s("div",{staticClass:"yiyun_line"}),s("span",[e._v("工作负责人")]),s("div",{staticClass:"yiyun_line"}),0==e.listManagerComputed(e.selectedUser).length?s("div",{staticClass:"main_workerBox"},[s("i",{staticClass:"icon font_family icon-icon_huangguan-weijihuo largehuangguan"}),s("div",{staticClass:"rentou_alrge"})]):e._e(),0!=e.listManagerComputed(e.selectedUser).length?s("div",e._l(e.listManagerComputed(e.selectedUser),(function(t,r){return s("div",{key:r,staticClass:"user_info_item mainpeople_H"},[s("i",{staticClass:"icon font_family icon-icon_huangguan-jihuo middlehuangguan fl",attrs:{title:"负责人"}}),s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),s("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[s("ul",{staticClass:"popover_ul popover_ul"},[s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.roleName))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),s("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),s("span",{staticClass:"user_info_role"},[s("i",{staticClass:"el-icon-close largeclose",attrs:{title:"移除负责人"},on:{click:function(s){return e.removeManageUser(t)}}})])],1)})),0):e._e(),s("p",{staticClass:"diaTip"},[e._v(" 工作负责人有且仅有一人,其将对:"+e._s(e.currWorkName)+",进行职员指派。 ")])])])])]),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSetUsers,expression:"isShowSetUsers"}],staticClass:"PaincenterBox"},[s("div",{staticClass:"xiezuobox"},[s("div",{staticClass:"yiyun_col-6 bg_text_wirte mt-8"},[s("div",{staticClass:"row_painfl"},[s("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-collapse-item",{staticClass:"nomidline",attrs:{name:"1"}},[s("template",{slot:"title"},[s("el-checkbox",{staticClass:"checkxiezuoren",staticStyle:{color:"white"},on:{change:e.handleCheckTopAll},model:{value:e.ischeckAll,callback:function(t){e.ischeckAll=t},expression:"ischeckAll"}},[e._v("全选")]),s("span",{staticClass:"checkBoxCol"},[e._v("从部门中选择职员")])],1),e._l(e.listDept,(function(t,r){return s("el-collapse",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:r,attrs:{accordion:""}},[s("el-collapse-item",[s("template",{slot:"title"},[s("el-checkbox",{key:r,staticClass:" checkxiezuoren",staticStyle:{color:"white"},on:{change:function(t){return e.handleCheckItemAll(r,t)}},model:{value:t.selected,callback:function(s){e.$set(t,"selected",s)},expression:"dept.selected"}},[e._v("全选")]),s("span",{staticClass:" checkBoxCol"},[e._v(e._s(t.deptName)+" ")])],1),e._l(e.listUserStaff(t.listUser),(function(t,i){return s("div",{key:i,staticClass:"user_info_item",attrs:{label:t}},[s("el-checkbox",{staticClass:"checkBoxCol",attrs:{disabled:e.disabled},on:{change:function(s){return e.handleCheckedOne(r,t,s)}},model:{value:t.selected,callback:function(s){e.$set(t,"selected",s)},expression:"user.selected"}},[s("div",{staticClass:"checkboxlabelitem"},[s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),s("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[s("ul",{staticClass:"popover_ul popover_ul"},[s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.companyName))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),s("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),s("span",{staticClass:"user_info_role"},[e._v(e._s(t.roleName))])],1)])],1)}))],2)],1)}))],2)],1)],1)]),s("div",{staticClass:"shuxian"}),s("div",{staticClass:"yiyun_col-6"},[s("h4",{staticClass:"rightXiezuoren"},[e._v("已选职员")]),s("div",{staticClass:"row_painfr"},[s("div",{staticClass:"yiyun_line"}),s("span",[e._v("工作负责人")]),s("div",{staticClass:"yiyun_line"}),0==e.listManagerComputed(e.selectedUser).length?s("div",{staticClass:"main_workerBox"},[s("i",{staticClass:"icon font_family icon-icon_huangguan-weijihuo largehuangguan"}),s("div",{staticClass:"rentou_alrge"})]):e._e(),0!=e.listManagerComputed(e.selectedUser).length?s("div",e._l(e.listManagerComputed(e.selectedUser),(function(t,r){return s("div",{key:r,staticClass:"user_info_item mainpeople_H"},[s("i",{staticClass:"icon font_family icon-icon_huangguan-jihuo middlehuangguan fl",attrs:{title:"负责人"}}),s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(t.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(t.cnName))]),s("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[s("ul",{staticClass:"popover_ul popover_ul"},[s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.roleName))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.phone))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(t.projCount)+"个")])])]),s("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.position))])]),s("span",{staticClass:"user_info_role",on:{click:function(s){return e.removeManageUser(t)}}},[e._v("编辑")])],1)})),0):e._e(),s("p",{staticClass:"diaTip"},[e._v(" 工作负责人有且仅有一人,其将对:"+e._s(e.currWorkName)+",进行职员指派。 ")])]),e.isShowStaffList?s("div",e._l(e.listDept,(function(t){return s("div",{directives:[{name:"show",rawName:"v-show",value:t.listUser.length>0,expression:"dept.listUser.length>0"}],key:t.deptID,staticClass:"row_painfr"},[e._l(e.listDeptUserNoZero(e.selectedUser),(function(r){return s("div",{key:r},[r==t.deptID?s("div",[s("div",{staticClass:"yiyun_line"}),s("span",[e._v(e._s(t.deptName))])]):e._e()])})),e._l(e.listUserComputed(e.selectedUser),(function(r,i){return s("div",{key:i,staticClass:"renyuanbox"},[r.deptID==t.deptID?s("div",{staticClass:"user_info_item"},[s("img",{staticClass:"user_info_faceImg",attrs:{src:e._f("resolveAvator")(r.headImgUrl),alt:""}}),s("span",{staticClass:"user_info_name"},[e._v(e._s(r.cnName))]),s("el-popover",{attrs:{placement:"bottom-start",width:"180",trigger:"hover"}},[s("ul",{staticClass:"popover_ul popover_ul"},[s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(r.roleName))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v(e._s(r.phone))])]),s("li",[s("a",{attrs:{href:"javascript:;"}},[e._v("所在项目"+e._s(r.projCount)+"个")])])]),s("span",{staticClass:"user_info_job",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(r.position))])]),s("span",{staticClass:"user_info_role"},[[s("el-select",{staticClass:"setroleselect",attrs:{placeholder:"设置角色"},model:{value:r.folderPerm,callback:function(t){e.$set(r,"folderPerm",t)},expression:"user.folderPerm"}},e._l(e.roles,(function(t){return s("el-option",{key:t.value,attrs:{"allow-create":"",label:t.label,value:t.value}},[s("span",{staticStyle:{float:"left","margin-right":"30px"}},[e._v(e._s(t.label))]),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.description))])])})),1)],s("i",{staticClass:"el-icon-close",attrs:{title:"移除协作人"},on:{click:function(t){return e.removeSelectUser(r)}}})],2)],1):e._e()])}))],2)})),0):e._e()])])])])])])])])},q=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("span",{staticClass:"fl label_text"},[e._v("自定义工作")]),s("span",{staticClass:"fr mt-10"},[s("i",{staticClass:"yiyunPlusmini"})])])}],J=s("5a0c"),V=s.n(J),Z={components:{FileUploader:M["a"]},props:{isProjManager:{type:Boolean,default:!1},isSetFolder:{type:Boolean,default:!1},projId:{type:String,default:""},createUserId:{type:String,default:""}},data:function(){return{imgSrc:"/api/archives/cover?path=",headSrc:"/api/archives/head?path=",chunkUploadUrl:"/api/webupload/chunks",uploadCompId:sessionStorage.companyId,coverSrc:"static/img/faceImg/face01.png",uploadTypeCover:2,filePicker:"projFilePicker",srcIndex:2,selectedUser:[],selectedManageUser:[],showTitle:"1",disabled:!1,activeName:"1",showAll:!1,isBottomNewProj:!1,nodeLeaves:!1,isShowStaffList:!1,opentree:!0,ischeckAll:!1,nowProject:{},isSlectPal:!0,roles:[{value:1,label:"编辑",description:"查看和编辑"},{value:0,label:"查看",description:"查看"}],folderPerm:"1",initData:[],listNewFolder:[],listProjProp:[],listDept:[],curProjCreatePeop:[],isShowSetFolder:!1,isShowSetManager:!1,isShowSetUsers:!1,isShowProjInfo:!0,isShowInfoEdit:!1,isShowEditProjBtn:!1,isShowSaveAllBtn:!1,currWorkName:"",currentProjId:"",currSelectData:[]}},mounted:function(){},computed:{listDeptComputed:function(){return this.listDept.filter((function(e){return e.listUser.length>0}))},listManagerComputed:function(){return function(e){return e.filter((function(e){return 2==e.folderPerm}))}},listUserComputed:function(){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}},listUserManager:function(e){return function(e){return e.filter((function(e){return 0==e.folderPerm||2==e.folderPerm}))}},listUserStaff:function(e){return function(e){return e.filter((function(e){return 2!=e.folderPerm}))}},listDeptUserNoZero:function(){return function(e){for(var t=[],s=0;s0&&(this.handleCheckItemAll(t,!1),this.handleCheckItemAll(t,e))},handleCheckItemAll:function(e,t){for(var s=0;s0&&(t++,1==this.listDept[s].selected&&e++);this.ischeckAll=e==t},removeSelectUser:function(e){this.checkDeptUserName(!1,e),this.cancelCheck(e.userID)},removeManageUser:function(e){e.folderPerm=0,e.roleName="查看编辑";for(var t=0;t0&&1==this.isShowSetUsers?this.isShowStaffList=!0:this.isShowStaffList=!1},showAllClick:function(){this.showAll=!0},listProjFolder:function(){},projInfo:function(e){var t=this;return Object(a["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,_["c"](e);case 2:r=s.sent,t.nowProject=r.Data,t.nowProject.ProjCreateTime=V()(t.nowProject.ProjCreateTime).format("YYYY/MM/DD"),t.nowProject=Object(d["a"])({},t.nowProject),t.listProjProp=r.Data.CustomProps,t.listProjProp=Object(p["a"])(t.listProjProp),t.coverSrc=r.Data.ShowImgUrl;case 9:case"end":return s.stop()}}),s)})))()},listDeptUsers:function(){var e=sessionStorage.companyId,t=this;this.$axios({method:"get",url:encodeURI("/api/sysinfo/deptusers/"+e)}).then((function(e){t.listDept=e.data.data})).catch((function(e){console.log(e)}))},saveProject:function(){var e=this;this.$axios({method:"put",url:encodeURI("/api/projects"),data:{projectData:this.nowProject,listFolder:this.listNewFolder,listProjProp:this.listProjProp,userId:sessionStorage.userId}}).then((function(t){1===t.data.state?(e.$notify({message:t.data.message,type:"success",offset:30,duration:2500}),e.offDialog()):e.$notify({message:t.data.message,type:"error",offset:30,duration:5e3})})).catch((function(e){console.log(e)}))},coverUploadSuccess:function(e){var t=Object(B["c"])(e.ossUrl);this.coverSrc=t,this.nowProject.ShowImgUrl=t},setSystemCover:function(){this.coverSrc="static/img/faceImg/face0"+this.srcIndex+".png",this.nowProject.showImgUrl=this.srcIndex,this.srcIndex<9?this.srcIndex=this.srcIndex+1:this.srcIndex=1},setSystemCoverRandom:function(){var e=Math.ceil(10*Math.random());while(this.srcIndex===e)e=Math.ceil(10*Math.random());this.srcIndex=e,10===this.srcIndex?this.coverSrc="static/img/faceImg/face"+this.srcIndex+".png":this.coverSrc="static/img/faceImg/face0"+this.srcIndex+".png",this.nowProject.ShowImgUrl=this.coverSrc}},watch:{isProjManager:function(e){this.isShowEditProjBtn=e},isSetFolder:function(e){this.isShowSetFolder=e,this.isShowProjInfo=!e,this.isShowEditProjBtn=!e,e&&(this.isShowSaveAllBtn=!1)},projId:function(e){this.currentProjId=e,this.projInfo(e)}}},Y=Z,G=Object(y["a"])(Y,H,q,!1,null,null,null),X=G.exports,Q=s("0f13"),K=function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.cnName?s("div",[s("div",{staticClass:"big-time"},[e._v(e._s(e.nowTime))]),s("div",{staticClass:"now-time"},[s("span",{staticClass:"nowshijian"},[e._v(e._s(e.nowDate.substr(5))+" "+e._s(e.welcome)+e._s(e.cnName))])])]):e._e()},ee=[],te={props:["cnName"],data:function(){return{nowTime:"",nowDate:"",welcome:"",timer:null}},methods:{setDateTime:function(){this.nowDate=n["a"].getDate(),this.createDate=this.nowDate,this.nowTime=n["a"].getTime();var e=this.nowTime.substring(0,2);e<12&&e>0?this.welcome="上午好! ":12==e?this.welcome="中午好! ":e>12&&e>20?this.welcome="晚上好,注意休息! ":e>12&&e<20&&(this.welcome="下午好!")}},mounted:function(){this.setDateTime(),this.timer=setInterval(this.setDateTime,1e3)},beforeDestroy:function(){clearInterval(this.timer),this.timer=null}},se=te,re=(s("9d0d"),s("63b7"),Object(y["a"])(se,K,ee,!1,null,"0481b847",null)),ie=re.exports,ae=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("section",{staticClass:"yiyun_warpContent"},[s("div",{staticClass:"yiyun-rows",attrs:{id:"alone"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isEmpty,expression:"isEmpty"}],staticClass:"nullproduct"},[s("img",{attrs:{src:"static\\img\\nopro.png",alt:""}}),s("span",{staticClass:"noprotext"},[e._v("暂无项目")])]),s("div",{staticClass:"prjitemList"},[s("el-row",{attrs:{gutter:64}},e._l(e.projList,(function(t,r){return s("el-col",{key:t.Id,attrs:{xs:24,sm:12,md:12,lg:8,xl:6}},[s("proj-item",{attrs:{projItem:t},on:{lookProjDetailClick:function(s){return e.lookProjDetailClick(t)},watchAllBtnClick:function(s){return e.watchAllBtnClick(t,r)}}})],1)})),1)],1)])])])},ne=[],oe=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"prjitem"},[s("div",{ref:"projitem",staticClass:"prjitem_content",style:e.showBackground(e.projItem.ShowImgUrl),on:{mouseenter:function(t){e.showSetIcon(e.projItem.Id),e.isMouseHover=!0},mouseleave:function(t){e.hiddenSetIcon,e.isMouseHover=!1},click:function(t){return t.stopPropagation(),e.goFilePage(e.projItem)}}},[1==e.projItem.newProjStatus?s("div",{staticClass:"newprj_icon"},[e._v("新项目")]):e._e(),s("div",{staticClass:"prjitem_title",class:{"move-item-name":e.focusProjId==e.projItem.Id&&e.isMouseHover},attrs:{title:e.projItem.ProjName}},[e._v(e._s(e.subProjName(e.projItem.ProjName)))]),s("div",{staticClass:"operate-bar",class:{"show-operate-bar":e.isMouseHover&&e.focusProjId==e.projItem.Id}},[s("div",{staticClass:"bar-item",on:{click:function(t){return t.stopPropagation(),e.watchAllBtnClick(t)}}},[e._v("观全局")]),s("div",{staticClass:"bar-item",on:{click:function(t){return t.stopPropagation(),e.lookProjDetailClick(t)}}},[e._v("项目管理")])])])])},le=[],ce={data:function(){return{focusProjId:"",isEmpty:!1,isMouseHover:!1}},props:{projItem:{type:Object,default:function(){return{}}}},methods:{showBackground:function(e){var t=this.$options.filters["resolveImg"],s=t(e);return{background:"center/cover no-repeat url(".concat(s,")")}},lookProjDetailClick:function(){this.$emit("lookProjDetailClick")},manageProj:function(){this.$router.push("/newproject")},subProjName:function(e){var t=e.length;if(t>13){var s=e.slice(0,7),r=e.slice(t-6,t);return s+"..."+r}return e},watchAllBtnClick:function(){this.$emit("watchAllBtnClick")},showSetIcon:function(e){this.focusProjId=e},hiddenSetIcon:function(){this.focusProjId=""},goFilePage:function(e){sessionStorage.createUserID=e.CreateUserId,sessionStorage.templateID=e.TemplateId,sessionStorage.projId=e.Id,sessionStorage.nowFolderIndex="",sessionStorage.comFolderId=e.ComFolderId,sessionStorage.newProjStatus=e.NewProjStatus,sessionStorage.projName!=e.ProjName&&(sessionStorage.projName=e.ProjName),this.$router.push({name:"workspace"}).catch((function(e){return console.log(e)}));var t={API:"folder/queryNodeFolderListByProjectId",Action:"打开项目",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.projName,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(g["b"])("operation/record",t),sessionStorage.pageName="workspace"}}},ue=ce,de=(s("6654"),s("7df1"),Object(y["a"])(ue,oe,le,!1,null,"2b5d1f78",null)),he=de.exports,fe={data:function(){return{isEmpty:!1}},components:{ProjItem:he},props:{projList:{type:Array,default:function(){return[]}},openPrjInfo:Function,addNewFolders:Function},watch:{projListLength:{immediate:!0,handler:function(e){this.isEmpty=!(e>0)}}},computed:{projListLength:function(){return this.projList?this.projList.length:0}},methods:{lookProjDetailClick:function(e){this.$emit("lookProjDetailClick",e)},manageProj:function(){this.$router.push("/newproject")},subProjName:function(e){var t=e.length;if(t>13){var s=e.slice(0,7),r=e.slice(t-6,t);return s+"..."+r}return e},watchAllBtnClick:function(e,t){this.$emit("watchAllBtnClick",e,t)}}},pe=fe,me=(s("01a6"),Object(y["a"])(pe,ae,ne,!1,null,"22c87fa3",null)),ve=me.exports,ge=(window.BMap,window.Velocity),we={elNew:"#new",components:{SearchBar:l["a"],DistWork:N,NewProj:z,ProjSetting:X,Timer:ie,AppHeader:o["a"],ProjList:ve},data:function(){var e=this.$store.state.currentPlatform;return{currentPlatform:e,isUserPerm:Object(Q["c"])(e.accessList,Q["a"].ProjectManager),nowDate:"",nowTime:"",cnName:"",currProjId:"",feedbackdesc:"",projList:[],nowProj:"",isEmpty:!1,createUserId:"",isProjectManager:!1,newProjData:{projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0},listFolder:[],listProjProp:[],userId:""},listTempProp:[],listProjProp:[],checked:!1,newfolder:{folderName:"自定义"},isNewProj:!1,isBottomNewProj:!1,isDistProj:!0,isShowAllProject:!0,isHideAllProject:!1,isPointGroup:!0,pageIndex:1,isAloneDistProj:!1,createDate:new Date,noProjTip:!1,roles:[{value:1,label:"编辑",description:"查看和编辑"},{value:0,label:"查看",description:"查看"}],folderPerm:"1",scrollIndex:12,welcome:"",isShowProjSetting:!1,isEditProjFolder:!1,fetchTickIns:null,searchContent:"",searchProjList:[],isShowSearchBar:!1,isSearching:!1,homeScrollTop:0,contentBodyEl:null}},computed:{showProjList:function(){return this.isShowSearchBar&&this.searchContent&&this.isSearching?this.searchProjList:this.projList},showCenterTitle:function(){return this.isShowSearchBar&&this.searchContent?"“".concat(this.searchContent,"”搜索结果"):"我的项目"}},watch:{searchContent:function(){this.searchForProj()}},mounted:function(){this.cnName=JSON.parse(sessionStorage.user).userName,sessionStorage.setItem("pageTitle","我的项目"),this.listProjects(!0),this.contentBodyEl=document.getElementById("bigbody"),this.contentBodyEl&&this.contentBodyEl.addEventListener("scroll",this.recordContentScrollTop)},beforeDestroy:function(){sessionStorage.dotIndex=this.ind,this.fetchTickIns&&(clearTimeout(this.fetchTickIns),this.fetchTickIns=null),this.contentBodyEl&&this.contentBodyEl.removeEventListener("scroll",this.recordContentScrollTop)},methods:{recordContentScrollTop:function(){this.homeScrollTop=this.contentBodyEl.scrollTop,sessionStorage.setItem("homeScrollTop",this.homeScrollTop)},maxTextLengthArrived:function(){this.$notify({message:"请输入35个字之内的搜索内容",type:["warning"]})},hideSearchBar:function(){this.isShowSearchBar=!1,this.searchContent=""},showSearchBar:function(){this.isShowSearchBar=!0},searchForProj:Object(v["debounce"])(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=/^\s*$/,!t.test(this.searchContent)){e.next=5;break}return e.abrupt("return");case 5:return this.isSearching=!0,e.next=8,_["e"](this.searchContent);case 8:s=e.sent,0==s.Code?this.searchProjList=s.Data:this.$notify({type:["error"],message:"查询数据失败, 请稍后重试。"});case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),500),changeSearchContent:function(e){this.searchContent=e},createNewProjectClick:function(){this.$router.push("/newproject").catch((function(e){return console.log(e)}))},lookProjDetailClick:function(e){sessionStorage.projId=e.Id,sessionStorage.createUserID=e.CreateUserId,sessionStorage.templateID=e.TemplateId,sessionStorage.allocated=e.Allocated,this.$router.push({name:"projdetail"}).catch((function(e){console.log(e)}))},watchAllBtnClick:function(e,t){var s=["341999987607363584","341984912360235008","342002217261621248"];console.log(e),t%2==0||s.includes(e.Id)?this.toWatchPageClick(e):this.toLinkPageClick(e)},toWatchPageClick:function(e){this.$router.push({path:"watch"}),sessionStorage.removeItem("projName"),sessionStorage.removeItem("projId"),sessionStorage.setItem("projName",e.ProjName),sessionStorage.setItem("projId",e.Id)},toLinkPageClick:function(e){this.$router.push({path:"watchlink"}),sessionStorage.removeItem("projName"),sessionStorage.removeItem("projId"),sessionStorage.setItem("projName",e.ProjName),sessionStorage.setItem("projId",e.Id)},toRecycle:function(){this.$router.push({name:"recycle",params:{title:"我的项目"}})},createProjSuccess:function(){this.refreshListProj()},closeNewProj:function(){this.isNewProj=!1,this.isBottomNewProj=!1},listProjects:function(e){var t=this;return Object(a["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,_["d"](t.$store.state.accountId);case 2:r=s.sent,t.projList=r.Data,t.$nextTick((function(){var e=document.getElementById("bigbody");t.homeScrollTop=parseInt(sessionStorage.getItem("homeScrollTop")||0),e&&e.scrollTo(0,t.homeScrollTop)})),e&&(t.fetchTickIns=setTimeout((function(){return t.listProjects(!0)}),6e4));case 6:case"end":return s.stop()}}),s)})))()},goFilePage:function(e){sessionStorage.createUserID=e.CreateUserId,sessionStorage.templateID=e.TemplateId,sessionStorage.projId=e.Id,sessionStorage.nowFolderIndex="",sessionStorage.comFolderId=e.ComFolderId,sessionStorage.newProjStatus=e.NewProjStatus,sessionStorage.projName!=e.ProjName&&(sessionStorage.projName=e.ProjName),this.$router.push({name:"workspace"}).catch((function(e){console.log(e)})),sessionStorage.pageName="workspace"},toCloudIndex:function(e){sessionStorage.projId=e.projID,sessionStorage.firstFolderId=e.folderID,sessionStorage.projName!=e.projName&&(sessionStorage.projName=e.projName),sessionStorage.login="cloud",this.$router.push({name:"cloud"})},toProjNotice:function(e){sessionStorage.createUserID=e.createUserID,sessionStorage.templateID=e.templateID,sessionStorage.projId=e.projID,sessionStorage.nowFolderIndex="",sessionStorage.comFolderId=e.comFolderID,sessionStorage.projName!=e.projName&&(sessionStorage.projName=e.projName),this.$router.push({name:"projnotice",params:{title:"我的项目",allproj:!1}})},showAllProject:function(){this.isHideAllProject=!0,this.isDistProj=!1,this.isPointGroup=!1,this.isShowAllProject=!1},hideAllProject:function(){this.isHideAllProject=!1,this.isDistProj=!0,this.isPointGroup=!0,this.isShowAllProject=!0,this.projectsWithPage()},showNewProj:function(){this.isNewProj=!0},beforeEnter:function(e){e.style.opacity=0},enter:function(e,t){ge(e,{opacity:1,bottom:"0px"},{duration:500,complete:t})},leave:function(e,t){ge(e,{bottom:"-740px",opacity:"0"},{duration:500,complete:t})},showOption:function(){this.$emit("showOption",!0)},showHelp:function(){this.$emit("showHelp",!0)},showContinueNewProj:function(){this.isNewProj=!0,this.isBottomNewProj=!1},showzhankai:function(){this.isBottomNewProj=!0,this.isNewProj=!1},addNewFolders:function(e){sessionStorage.projId=e.Id,sessionStorage.createUserID=e.CreateUserId,sessionStorage.templateID=e.TemplateId,sessionStorage.allocated=e.Allocated,this.isAloneDistProj=!0},closeDistWork:function(e){"index"==e&&this.listProjects(),this.isAloneDistProj=!1},refreshListProj:function(e){this.listProjects(),this.isNewProj=!1},closeProjSet:function(){this.isShowProjSetting=!1,this.listProjects()},openPrjInfo:function(e){this.currProjId=e.Id,this.isProjectManager=e.Status,this.isShowProjSetting=!0,this.isEditProjFolder=!1},projEditSuccess:function(){this.isShowProjSetting=!1,this.listProjects()}}},_e=we,Ce=(s("c95a"),s("d614"),s("ec82"),Object(y["a"])(_e,r,i,!1,null,"5c9fe164",null));t["default"]=Ce.exports},"01a6":function(e,t,s){"use strict";var r=s("391a"),i=s.n(r);i.a},"01a8":function(e,t,s){"use strict";var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?s("div",{staticClass:"app-header-top"},[s("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[s("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),s("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),s("div",{staticClass:"top-center"}),s("div",{staticClass:"top-right"},[s("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[s("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),s("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?s("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):s("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),s("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[s("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),s("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?s("div",{staticClass:"app-header-top"}):e._e(),s("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[s("div",{staticClass:"app-header-content-left"},[e._t("left",[s("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),s("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),s("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),s("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?s("span",{on:{click:e.toRecycle}},[s("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?s("user-center"):e._e()],2)])])},i=[],a=s("1392"),n=s("1d40"),o={components:{UserCenter:a["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:n["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize},isOnLine:function(){return this.$store.state.gatewayState}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){n["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),n["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),n["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){n["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},l=o,c=(s("8fc1"),s("2877")),u=Object(c["a"])(l,r,i,!1,null,"06f5aedd",null);t["a"]=u.exports},"03aa":function(e,t,s){e.exports=s.p+"static/img/user_Img001.82ca55ca.png"},"0bb4":function(e,t,s){"use strict";s("fb6a"),s("4d63"),s("ac1f"),s("25f0"),s("466d"),s("5319"),s("841c");t["a"]={getDateTimeString:function(e){var t=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;var r=e.getDate();r=r<10?"0"+r:r;var i=e.getHours();i=i<10?"0"+i:i;var a=e.getMinutes();a=a<10?"0"+a:a;var n=e.getSeconds();n=n<10?"0"+n:n;var o=t+"-"+s+"-"+r+" "+i+":"+a+":"+n;return o},getDateTimeStringByStr:function(e){var t=new Date(e),s=t.getFullYear(),r=t.getMonth()+1;r=r<10?"0"+r:r;var i=t.getDate();i=i<10?"0"+i:i;var a=t.getHours();a=a<10?"0"+a:a;var n=t.getMinutes();n=n<10?"0"+n:n;var o=t.getSeconds();o=o<10?"0"+o:o;var l=s+"-"+r+"-"+i+" "+a+":"+n+":"+o;return l},formatDate:function(e){var t=e.getFullYear(),s=e.getMonth()+1,r=e.getDate();s=s<10?"0"+s:s,r=r<10?"0"+r:r;var i=t+"-"+s+"-"+r;return i},convertToDate:function(e){var t=e.slice(6,19),s=new Date(parseInt(t));return this.formatDate(s)},unixToDate:function(e,t){e=e.replace(/[^0-9]/gi,""),10==e.length&&(e*=1e3);var s=parseInt(e),r=new Date(s),i="";i+=r.getFullYear()+"-";var a=r.getMonth()+1;i+=a<10?"0"+a+"-":a+"-";var n=r.getDate();return i+=n<10?"0"+n:n,!0===t&&(i+=" "+r.getHours()+":",i+=r.getMinutes()+":",i+=r.getSeconds()),i},getUrlParams:function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),s=window.location.search.substr(1).match(t);return null!=s?s[2]:null},validNumber:function(e,t,s){t?/^([0-9]+)$/.test(t)?s():s(new Error("只能输入整数")):t?s():s(new Error("这里不能为空"))},validNullOrNumber:function(e,t,s){t?/^([0-9]+)$/.test(t)?s():s(new Error("只能输入整数")):s()},validNullOrNumber2:function(e,t,s){t?/^([0-9]+)$/.test(t)?s():s(new Error(" ")):s()},validDecimal:function(e,t,s){t?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(t)?s():s(new Error("只能输入数字")):t?s():s(new Error("这里不能为空"))},validNullOrDecimal:function(e,t,s){t?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(t)?s():s(new Error("只能输入数字")):s()},validNullOrDecimal2:function(e,t,s){t?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(t)?s():s(new Error(" ")):s()},validRequired:function(e,t,s){t?s():s(new Error("这里不能为空"))},validEmail:function(e,t,s){if(""!=t){var r=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;r.test(t)?s():s(new Error("邮箱格式不正确!"))}else s()},validPhoneNum:function(e,t,s){if(""!=t){var r=/(^\d{11}$)/;r.test(t)?s():s(new Error("请输入11位有效手机号码!"))}else s(new Error("请输入手机号"))},validVerificationCode:function(e,t,s){if(""!=t){var r=/(^\d{6}$)/;r.test(t)?s():s(new Error("请输入有效的验证码!"))}else s(new Error("请输入验证码"))},validPhone:function(e,t,s){""!=t&&11!=t.length?s(new Error("请输入11位有效手机号码!")):s()},validPhoneAndRequired:function(e,t,s){""!=t?11!=t.length?s(new Error("请输入11位有效手机号码!")):s():s(new Error("请输入手机号"))},pathSubString:function(e){var t=e.slice(-22);return t},pageData:function(e,t,s){""!=t&&null!=t||(t=1),""!=e&&null!=e||(e=10);var r=(t-1)*e,i=r+e;i>s.length&&(i=s.length);var a=[];if(null!=s&&s.length>0)for(var n=r;n1?arguments[1]:void 0)}})},2909:function(e,t,s){"use strict";s.d(t,"a",(function(){return l}));var r=s("6b75");function i(e){if(Array.isArray(e))return Object(r["a"])(e)}var a=s("db90"),n=s("06c5");function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return i(e)||Object(a["a"])(e)||Object(n["a"])(e)||o()}},"2f4c":function(e,t,s){"use strict";var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"search-bar",class:{"show-search-bar":e.isShowSearchBar}},[s("div",{staticClass:"search-entry",class:{"set-high-index":!e.isShowSearchBar},on:{mouseenter:function(t){e.isSearchHover=!0},mouseleave:function(t){e.isSearchHover=!1},click:function(t){return t.stopPropagation(),e.showSearchBar(t)}}},[s("img",{directives:[{name:"show",rawName:"v-show",value:!e.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),s("img",{directives:[{name:"show",rawName:"v-show",value:e.isSearchHover,expression:"isSearchHover"}],staticClass:"vert-hori-center search-active-img",attrs:{src:"/static/img/搜索激活.svg",alt:""}})]),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[s("i",{staticClass:"search-icon",on:{click:function(t){return t.stopPropagation(),e.goToSearch(t)}}}),s("input",{directives:[{name:"model",rawName:"v-model",value:e.searchContent,expression:"searchContent"}],staticClass:"search-input",attrs:{type:"text",placeholder:e.placeholder,maxlength:"35"},domProps:{value:e.searchContent},on:{keyup:function(t){return t.stopPropagation(),e.enterSearchContent(t)},input:function(t){t.target.composing||(e.searchContent=t.target.value)}}}),s("i",{staticClass:"close-icon",on:{click:function(t){return t.stopPropagation(),e.hideSearchBar(t)}}})])])},i=[],a={data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},props:{placeholder:{type:String,default:"搜索的文本"}},watch:{searchContent:function(e){35==e.length&&this.$emit("maxTextLengthArrived"),this.changeSearchContent()}},methods:{enterSearchContent:function(e){this.searchContent&&13==e.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("changeSearchContent",this.searchContent)},goToSearch:function(){this.$emit("goToSearch")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("hideSearchBar")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("showSearchBar")}}},n=a,o=(s("76ae"),s("2877")),l=Object(o["a"])(n,r,i,!1,null,"df8317c6",null);t["a"]=l.exports},"391a":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)}})},"466d":function(e,t,s){"use strict";var r=s("d784"),i=s("825a"),a=s("50c4"),n=s("1d80"),o=s("8aa5"),l=s("14c3");r("match",1,(function(e,t,s){return[function(t){var s=n(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,s):new RegExp(t)[e](String(s))},function(e){var r=s(t,e,this);if(r.done)return r.value;var n=i(e),c=String(this);if(!n.global)return l(n,c);var u=n.unicode;n.lastIndex=0;var d,h=[],f=0;while(null!==(d=l(n,c))){var p=String(d[0]);h[f]=p,""===p&&(n.lastIndex=o(c,a(n.lastIndex),u)),f++}return 0===f?null:h}]}))},"4d63":function(e,t,s){var r=s("83ab"),i=s("da84"),a=s("94ca"),n=s("7156"),o=s("9bf2").f,l=s("241c").f,c=s("44e7"),u=s("ad6d"),d=s("9f7f"),h=s("6eeb"),f=s("d039"),p=s("69f3").set,m=s("2626"),v=s("b622"),g=v("match"),w=i.RegExp,_=w.prototype,C=/a/g,j=/a/g,P=new w(C)!==C,S=d.UNSUPPORTED_Y,y=r&&a("RegExp",!P||S||f((function(){return j[g]=!1,w(C)!=C||w(j)==j||"/a/i"!=w(C,"i")})));if(y){var b=function(e,t){var s,r=this instanceof b,i=c(e),a=void 0===t;if(!r&&i&&e.constructor===b&&a)return e;P?i&&!a&&(e=e.source):e instanceof b&&(a&&(t=u.call(e)),e=e.source),S&&(s=!!t&&t.indexOf("y")>-1,s&&(t=t.replace(/y/g,"")));var o=n(P?new w(e,t):w(e,t),r?this:_,b);return S&&s&&p(o,{sticky:s}),o},k=function(e){e in b||o(b,e,{configurable:!0,get:function(){return w[e]},set:function(t){w[e]=t}})},D=l(w),I=0;while(D.length>I)k(D[I++]);_.constructor=b,b.prototype=_,h(i,"RegExp",b)}m("RegExp")},"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"])()}},5122:function(e,t,s){},"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}},6062:function(e,t,s){"use strict";var r=s("6d61"),i=s("6566");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"63b7":function(e,t,s){"use strict";var r=s("fabf"),i=s.n(r);i.a},6566:function(e,t,s){"use strict";var r=s("9bf2").f,i=s("7c73"),a=s("e2cc"),n=s("0366"),o=s("19aa"),l=s("2266"),c=s("7dd0"),u=s("2626"),d=s("83ab"),h=s("f183").fastKey,f=s("69f3"),p=f.set,m=f.getterFor;e.exports={getConstructor:function(e,t,s,c){var u=e((function(e,r){o(e,u,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=r&&l(r,e[c],e,s)})),f=m(t),v=function(e,t,s){var r,i,a=f(e),n=g(e,t);return n?n.value=s:(a.last=n={index:i=h(t,!0),key:t,value:s,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=n),r&&(r.next=n),d?a.size++:e.size++,"F"!==i&&(a.index[i]=n)),e},g=function(e,t){var s,r=f(e),i=h(t);if("F"!==i)return r.index[i];for(s=r.first;s;s=s.next)if(s.key==t)return s};return a(u.prototype,{clear:function(){var e=this,t=f(e),s=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete s[r.index],r=r.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,s=f(t),r=g(t,e);if(r){var i=r.next,a=r.previous;delete s.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),s.first==r&&(s.first=i),s.last==r&&(s.last=a),d?s.size--:t.size--}return!!r},forEach:function(e){var t,s=f(this),r=n(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:s.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),a(u.prototype,s?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&r(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,s){var r=t+" Iterator",i=m(t),a=m(r);c(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,s=e.last;while(s&&s.removed)s=s.previous;return e.target&&(e.last=s=s?s.next:e.state.first)?"keys"==t?{value:s.key,done:!1}:"values"==t?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),s?"entries":"values",!s,!0),u(t)}}},6654:function(e,t,s){"use strict";var r=s("6eb7"),i=s.n(r);i.a},"6d1d":function(e,t,s){},"6d61":function(e,t,s){"use strict";var r=s("23e7"),i=s("da84"),a=s("94ca"),n=s("6eeb"),o=s("f183"),l=s("2266"),c=s("19aa"),u=s("861d"),d=s("d039"),h=s("1c7e"),f=s("d44e"),p=s("7156");e.exports=function(e,t,s){var m=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),g=m?"set":"add",w=i[e],_=w&&w.prototype,C=w,j={},P=function(e){var t=_[e];n(_,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:function(e,s){return t.call(this,0===e?0:e,s),this})};if(a(e,"function"!=typeof w||!(v||_.forEach&&!d((function(){(new w).entries().next()})))))C=s.getConstructor(t,e,m,g),o.REQUIRED=!0;else if(a(e,!0)){var S=new C,y=S[g](v?{}:-0,1)!=S,b=d((function(){S.has(1)})),k=h((function(e){new w(e)})),D=!v&&d((function(){var e=new w,t=5;while(t--)e[g](t,t);return!e.has(-0)}));k||(C=t((function(t,s){c(t,C,e);var r=p(new w,t,C);return void 0!=s&&l(s,r[g],r,m),r})),C.prototype=_,_.constructor=C),(b||D)&&(P("delete"),P("has"),m&&P("get")),(D||y)&&P(g),v&&_.clear&&delete _.clear}return j[e]=C,r({global:!0,forced:C!=w},j),f(C,e),v||s.setStrong(C,e,m),C}},"6eb7":function(e,t,s){},"76ae":function(e,t,s){"use strict";var r=s("e9b0"),i=s.n(r);i.a},"78dc":function(e,t,s){},"7df1":function(e,t,s){"use strict";var r=s("a5b4"),i=s.n(r);i.a},"841c":function(e,t,s){"use strict";var r=s("d784"),i=s("825a"),a=s("1d80"),n=s("129f"),o=s("14c3");r("search",1,(function(e,t,s){return[function(t){var s=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,s):new RegExp(t)[e](String(s))},function(e){var r=s(t,e,this);if(r.done)return r.value;var a=i(e),l=String(this),c=a.lastIndex;n(c,0)||(a.lastIndex=0);var u=o(a,l);return n(a.lastIndex,c)||(a.lastIndex=c),null===u?-1:u.index}]}))},"8fc1":function(e,t,s){"use strict";var r=s("99ab"),i=s.n(r);i.a},"98de":function(e,t,s){},"99ab":function(e,t,s){},"9d0d":function(e,t,s){"use strict";var r=s("cf15"),i=s.n(r);i.a},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 d})),s.d(t,"e",(function(){return f}));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 u.apply(this,arguments)}function u(){return u=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)}))),u.apply(this,arguments)}function d(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 f(e){return p.apply(this,arguments)}function p(){return p=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)}))),p.apply(this,arguments)}},a5b4:function(e,t,s){},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}},b0f9:function(e,t,s){"use strict";s.d(t,"o",(function(){return a})),s.d(t,"m",(function(){return o})),s.d(t,"t",(function(){return c})),s.d(t,"d",(function(){return d})),s.d(t,"n",(function(){return f})),s.d(t,"q",(function(){return m})),s.d(t,"f",(function(){return g})),s.d(t,"s",(function(){return _})),s.d(t,"l",(function(){return j})),s.d(t,"k",(function(){return S})),s.d(t,"b",(function(){return b})),s.d(t,"p",(function(){return D})),s.d(t,"j",(function(){return U})),s.d(t,"h",(function(){return N})),s.d(t,"i",(function(){return A})),s.d(t,"a",(function(){return B})),s.d(t,"g",(function(){return O})),s.d(t,"c",(function(){return L})),s.d(t,"e",(function(){return $})),s.d(t,"r",(function(){return z}));s("96cf");var r=s("1da1"),i=s("b775");function a(){return n.apply(this,arguments)}function n(){return n=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3: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){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryTemplateByCompanyId",{companyId:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function c(e){return u.apply(this,arguments)}function u(){return u=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function d(e){return h.apply(this,arguments)}function h(){return h=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return p=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"])("template/queryTemplateByTemplateId",{id:t});case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function m(e){return v.apply(this,arguments)}function v(){return v=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"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return s=e.sent,e.abrupt("return",s);case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return w.apply(this,arguments)}function w(){return w=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"])("template/deleteTemplateByTemplateId",{id:t});case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function _(e){return C.apply(this,arguments)}function C(){return C=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"])("template/updateTemplate",t);case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function j(e){return P.apply(this,arguments)}function P(){return P=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"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}function S(e){return y.apply(this,arguments)}function y(){return y=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"])("template/queryNestTemplateByNodeId",{id:t});case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function b(e){return k.apply(this,arguments)}function k(){return k=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"])("template/connectNestTemplateFolder",t);case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function D(e){return I.apply(this,arguments)}function I(){return I=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"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function U(e,t,s){return x.apply(this,arguments)}function x(){return x=Object(r["a"])(regeneratorRuntime.mark((function e(t,s,r){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:s,nestedNodeId:r});case 2:return a=e.sent,e.abrupt("return",Object(i["c"])(a));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function N(e){return T.apply(this,arguments)}function T(){return T=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"])("template/fileExchange",t);case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function A(e){return F.apply(this,arguments)}function F(){return F=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"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t});case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}function B(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"])("template/addTemplateNodeModelFile",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)}function O(e){return E.apply(this,arguments)}function E(){return E=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"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function L(e){return W.apply(this,arguments)}function W(){return W=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"])("template/createNestedRelevance",t);case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function $(e){return R.apply(this,arguments)}function R(){return R=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"])("template/deleteNestedRelevance",t);case 2:return s=e.sent,e.abrupt("return",Object(i["c"])(s));case 4:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function z(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"])("template/renameTemplate",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)}},bb2f:function(e,t,s){var r=s("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},c704:function(e,t,s){},c95a:function(e,t,s){"use strict";var r=s("5122"),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")},cf15:function(e,t,s){},d5e1:function(e,t,s){"use strict";var r=s("78dc"),i=s.n(r);i.a},d614:function(e,t,s){"use strict";var r=s("c704"),i=s.n(r);i.a},db90:function(e,t,s){"use strict";s.d(t,"a",(function(){return r}));s("a4d3"),s("e01a"),s("d28b"),s("a630"),s("d3b7"),s("3ca3"),s("ddb0");function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},e9b0:function(e,t,s){},ec82:function(e,t,s){"use strict";var r=s("6d1d"),i=s.n(r);i.a},f044:function(e,t,s){"use strict";var r=s("98de"),i=s.n(r);i.a},f183:function(e,t,s){var r=s("d012"),i=s("861d"),a=s("5135"),n=s("9bf2").f,o=s("90e3"),l=s("bb2f"),c=o("meta"),u=0,d=Object.isExtensible||function(){return!0},h=function(e){n(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[c].objectID},p=function(e,t){if(!a(e,c)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[c].weakData},m=function(e){return l&&v.REQUIRED&&d(e)&&!a(e,c)&&h(e),e},v=e.exports={REQUIRED:!1,fastKey:f,getWeakData:p,onFreeze:m};r[c]=!0},f96e:function(e,t,s){"use strict";var r=s("01a8");s.d(t,"a",(function(){return r["a"]}))},fabf:function(e,t,s){}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-6cb025ae.b77419fd.js b/dist/static/js/chunk-6cb025ae.b96f0205.js similarity index 100% rename from dist/static/js/chunk-6cb025ae.b77419fd.js rename to dist/static/js/chunk-6cb025ae.b96f0205.js diff --git a/dist/static/js/chunk-74b26ff1.19058c6a.js b/dist/static/js/chunk-74b26ff1.5a929340.js similarity index 100% rename from dist/static/js/chunk-74b26ff1.19058c6a.js rename to dist/static/js/chunk-74b26ff1.5a929340.js diff --git a/dist/static/js/chunk-78390ace.887dc9d4.js b/dist/static/js/chunk-78390ace.35745896.js similarity index 86% rename from dist/static/js/chunk-78390ace.887dc9d4.js rename to dist/static/js/chunk-78390ace.35745896.js index 23b64f7b..51295e54 100644 --- a/dist/static/js/chunk-78390ace.887dc9d4.js +++ b/dist/static/js/chunk-78390ace.35745896.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-78390ace"],{"498a":function(e,t,a){"use strict";var i=a("23e7"),s=a("58a8").trim,n=a("c8d2");i({target:"String",proto:!0,forced:n("trim")},{trim:function(){return s(this)}})},"81b5":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"layout_content template-list"},[a("section",{staticClass:"title_section"},[e._m(0),e._m(1),a("div",{staticClass:"EC_col_8"},[a("div",{staticClass:"fr"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMatrixTemplatePane,expression:"isShowMatrixTemplatePane"}],staticClass:"fl"},[a("div",{staticClass:"yiyun_col-12 ce text_concenter"},[a("el-input",{staticClass:"el-input_mini",attrs:{placeholder:"矩阵搜索","prefix-icon":"icon font_family icon-icon_sousuo searchsize"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searhTempNode(t)}},model:{value:e.searhNodeName,callback:function(t){e.searhNodeName=t},expression:"searhNodeName"}})],1)])])])]),a("section",{staticClass:"yiyun_section1"},[a("div",{staticClass:"fl_navBox",on:{contextmenu:function(t){return e.treeSpaceMenu(t)}}},[a("div",{staticClass:"fl_navBox_body"},[a("div",{staticClass:"admin_treeBox navtree"},[a("div",{staticClass:"admininput_search"},[a("el-input",{staticClass:"el-input_mini",attrs:{placeholder:"搜索名称","prefix-icon":"Cicon icon font_family icon-icon_sousuo iconsize_mini"},model:{value:e.filterTreeText,callback:function(t){e.filterTreeText=t},expression:"filterTreeText"}})],1),a("div",{staticClass:"navtreebox"},[a("el-tree",{ref:"tree",attrs:{data:e.listTemplateTree,"default-expand-all":!0,"node-key":"id","expand-on-click-node":!1,"filter-node-method":e.filterTreeNode,indent:8,"highlight-current":!0},on:{"node-contextmenu":e.treeRightClick,"node-click":e.getTempNameAndData},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,s=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{staticClass:"sanjiaow"},["default"==s.id?a("i",{staticClass:"el-icon-models"}):e._e(),0==s.isLeaf&&1==i.isLeaf?a("i",{staticClass:"el-tree-node__expand-icon el-icon-caret-right bianjutop"}):e._e(),1==s.isLeaf&&1==i.isLeaf?a("i",{staticClass:"el-icon-models"}):e._e(),a("span",[e._v(e._s(s.label))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:0==s.isLeaf,expression:"data.isLeaf == false"}],staticClass:"fr rightdrop"},[a("el-dropdown",[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more morebtn"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("span",{directives:[{name:"show",rawName:"v-show",value:1==s.data.level,expression:"data.data.level == 1"}],on:{click:e.createLargeIndustry}},[e._v("新增大行业")])]),a("el-dropdown-item",[a("span",{directives:[{name:"show",rawName:"v-show",value:s.data.level<=2,expression:"data.data.level <= 2"}],on:{click:function(t){return e.createChildIndustry(s.data)}}},[e._v("新增子行业")])]),a("el-dropdown-item",[a("span",{directives:[{name:"show",rawName:"v-show",value:s.data.level>1,expression:"data.data.level > 1"}],on:{click:function(t){return e.createNextChildIndustry(s.data)}}},[e._v("新增细分行业")])]),a("el-dropdown-item",[a("span",{on:{click:function(t){return e.deleteIndustry(s)}}},[e._v("删除")])])],1)],1)],1)])}}])})],1),a("div",{staticClass:"bottombtn",on:{click:e.createInsertTemplate}},[e._v("新增模板")])])])]),a("div",{staticClass:"fl_contentBox"},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.contentpain,expression:"contentpain == 1"}],staticClass:"admin_contentBox_body",on:{contextmenu:function(t){return e.tableSpaceMenu(t)}}},[1==e.mainPane?a("div",{staticClass:"admin_contentBox_bodyPain"},[a("div",{staticClass:"mlr-10"},[e.eidtModelpane?e._e():a("h4",{staticClass:"admintitle"},[e._v(" "+e._s(e.templateName)+" ")]),e.eidtModelpane?a("h4",{staticClass:"admintitle"},[e._v(" 编辑:"+e._s(e.templateName)+" ")]):e._e()]),e._m(2),a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"topOption"},[a("div",{staticClass:"topoption"},[a("div",{staticClass:"fl"},[e.eidtModelpane?e._e():a("button",{staticClass:"EC_button shadow bt_small_20 mr-5",attrs:{type:"button"},on:{click:e.editmodelInfo}},[e._v(" 编辑 ")]),e.eidtModelpane?a("button",{staticClass:"EC_button shadow bt_small_20 mr-5",attrs:{type:"button"},on:{click:e.cancelEdit}},[e._v(" 退出 ")]):e._e(),e.eidtModelpane?a("el-button",{attrs:{type:"primary"},on:{click:e.savemodelInfo}},[e._v("保存")]):e._e()],1),a("div",{staticClass:"fr"},[e.eidtModelpane?a("button",{staticClass:"EC_button shadow bt_small_20 mr-5",attrs:{type:"button"},on:{click:e.delTemplateClick}},[e._v(" 删除模板 ")]):e._e()])])])]),a("div",{staticClass:"clear"}),e.isShowTempInfo?a("div",{staticClass:"largecontentBox"},[a("div",{staticClass:"listCardIcon mt-30"},[a("div",[a("div",{staticClass:"EC_col_6"},[a("div",{staticClass:"kapian_card cl_card",on:{click:e.goNodeFile}},[a("h4",{staticClass:"biaoqianweizhi2"},[e._v("样板文件管理")]),a("img",{attrs:{src:"/static\\img\\card_0.png",alt:""}})])]),a("div",{staticClass:"EC_col_6"},[a("div",{staticClass:"kapian_card cl_card",on:{click:e.goscanMind}},[a("h4",{staticClass:"biaoqianweizhi2"},[e._v("思维导图查看器")]),a("img",{attrs:{src:"/static/img/card_2.png",alt:""}})])]),a("div",{staticClass:"EC_col_6"},[a("div",{staticClass:"kapian_card cl_card",on:{click:e.goscanMatrix}},[a("h4",{staticClass:"biaoqianweizhi2"},[e._v("矩阵编辑器")]),a("img",{attrs:{src:"/static/img/card_3.png",alt:""}})])])])]),a("div",{staticClass:"clear"}),a("div",[a("div",{staticClass:"yiyunTable_list_item"},[a("div",[a("div",{staticClass:"yiyunTable_list mt-10"},[a("el-form",{ref:"form",attrs:{"label-width":"90px","label-position":"left"}},[a("div",{staticClass:"yiyunTable_list_item mt-40"},[a("div",{staticClass:"mlr-10"},[a("h3",{staticClass:"secondListTitle"},[e._v("模板信息")])]),a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line_light"})]),a("div",{staticClass:"textlabelgray UserEditinfoBox DivInputHeight"},[a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"模板名称"}},[a("div",[e._v(" "+e._s(e.currentTemplateData.Temple.TempName)+" ")])])],1)]),a("div",{staticClass:"clear"}),e.listTempIndustury.length>1?a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"大行业"}},[a("div",[e._v(" "+e._s(e.mapIndIdToIndName[e.currentTemplateData.Temple.FirstIndustryId])+" ")])])],1)]):e._e(),e.listTempIndustury.length>1?a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"子行业"}},[a("div",[e._v(" "+e._s(e.mapIndIdToIndName[e.currentTemplateData.Temple.DetailIndustryId])+" ")])])],1)]):e._e(),a("div",{staticClass:"clear"}),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"模版编码"}},[a("div",[e._v(" "+e._s(e.currentTemplateData.Temple.FullCode)+" ")])])],1)]),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"锁定状态"}},[a("div",[0==e.currentTemplateData.Temple.Locked?a("span",[e._v("未锁定")]):e._e(),1==e.currentTemplateData.Temple.Locked?a("span",[e._v("已锁定")]):e._e(),a("div",{staticClass:"fr"},[0==e.currentTemplateData.Temple.Locked?a("span",{staticClass:"ECclockText"},[a("i",{staticClass:"ECclock mt-10 el-ecclock-o"})]):e._e(),1==e.currentTemplateData.Temple.Locked?a("span",{staticClass:"ECclockText"},[a("i",{staticClass:"ECclock mt-10 el-ecclock"})]):e._e()])])])],1)]),a("div",{staticClass:"yiyun_col-12"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"模板简介"}},[a("div",[e._v(" "+e._s(e.currentTemplateData.Temple.Introduce)+" ")])])],1)])])]),a("div",{staticClass:"yiyunTable_list_item mt-30"},[a("div",{staticClass:"mlr-10"},[a("h3",{staticClass:"secondListTitle"},[e._v("模板数据")])]),a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line_light"})]),a("div",{staticClass:"textlabelgray UserEditinfoBox DivInputHeight"},[a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"使用数:"}},[a("div",[e._v(e._s(e.nowCount)+" 个项目")])])],1)]),a("div",{staticClass:"clear"})])]),a("div",{staticClass:"yiyunTable_list_item mt-30"},[a("div",{staticClass:"mlr-10"},[a("h3",{staticClass:"secondListTitle"},[e._v("模板概况")])]),a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line_light"})]),a("div",{staticClass:"textlabelgray UserEditinfoBox DivInputHeight"},[e._l(e.currentTemplateData.TempleProperties,(function(t){return a("div",{key:t.Id,staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"自定义字段"}},[a("div",[e._v(e._s(t.PropertyName))])])],1)])})),a("div",{staticClass:"clear"})],2)])])],1)]),a("div",{staticClass:"clear"})])])]):e._e(),e.eidtModelpane?a("div",{staticClass:"largecontentBox"},[a("div",[a("div",{staticClass:"yiyunTable_list_item"},[a("div",[a("div",{staticClass:"yiyunTable_list mt-10"},[a("el-form",{ref:"tempform",attrs:{model:e.editTemplateData,rules:e.templateRules,"label-width":"120px","label-position":"right"}},[a("div",{staticClass:"yiyunTable_list_item"},[a("div",{staticClass:"textlabelblock UserEditinfoBox DivInputHeight"},[a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"模板名称:",prop:"Temple.TempName"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-input",{attrs:{placeholder:"模板名称"},model:{value:e.editTemplateData.Temple.TempName,callback:function(t){e.$set(e.editTemplateData.Temple,"TempName",t)},expression:"editTemplateData.Temple.TempName"}})],1)])],1)]),e.editTemplateData.Temple.Id?e._e():a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"XMind文件:",required:""}},[a("div",{staticClass:"boolEdit_Input"},[a("div",[a("file-uploader",{attrs:{"http-request":e.uploadXMindFile,"on-success":e.onUploadSuccess}},[a("el-button",[e._v("上传XMind文件")])],1)],1)])])],1)]),a("div",{staticClass:"clear"}),e.editTemplateData.Temple.Id?a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"启用模板:"}},[a("div",{staticClass:"boolEdit_Input"},[a("div",{staticClass:"fr"},[a("el-switch",{attrs:{"active-color":"#8C00FF","inactive-color":"#ccc","active-value":"0","inactive-value":"1"},model:{value:e.editTemplateData.Temple.Disable,callback:function(t){e.$set(e.editTemplateData.Temple,"Disable",t)},expression:"\n editTemplateData.Temple.Disable\n "}})],1)])])],1)]):e._e(),e.editTemplateData.Temple.Id?a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"锁定模板:"}},[a("div",{staticClass:"boolEdit_Input"},[0==e.editTemplateData.Temple.Locked?a("span",{staticClass:"ECclockText"},[a("i",{staticClass:"ECclock mt-10 el-ecclock-o"})]):e._e(),1==e.editTemplateData.Temple.Locked?a("span",{staticClass:"ECclockText"},[a("i",{staticClass:"ECclock mt-10 el-ecclock"})]):e._e(),a("div",{staticClass:"fr"},[a("el-switch",{attrs:{"active-color":"#8C00FF","inactive-color":"#ccc","active-value":"1","inactive-value":"0"},model:{value:e.editTemplateData.Temple.Locked,callback:function(t){e.$set(e.editTemplateData.Temple,"Locked",t)},expression:"editTemplateData.Temple.Locked"}})],1)])])],1)]):e._e(),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"大行业:",prop:"Temple.FirstIndustryId"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getSonIndustry},model:{value:e.editTemplateData.Temple.FirstIndustryId,callback:function(t){e.$set(e.editTemplateData.Temple,"FirstIndustryId",t)},expression:"\n editTemplateData.Temple.FirstIndustryId\n "}},e._l(e.topIndList,(function(e){return a("el-option",{key:e.Id,attrs:{label:e.Name,value:e.Id}})})),1)],1)])],1)]),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"子行业:",prop:"Temple.DetailIndustryId"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-select",{attrs:{placeholder:"子行业名称"},model:{value:e.editTemplateData.Temple.DetailIndustryId,callback:function(t){e.$set(e.editTemplateData.Temple,"DetailIndustryId",t)},expression:"editTemplateData.Temple.DetailIndustryId"}},e._l(e.level2IndList,(function(e){return a("el-option",{key:e.Id,attrs:{label:e.Name,value:e.Id}})})),1)],1)])],1)]),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"细分行业:"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-input",{attrs:{placeholder:"细分行业"},model:{value:e.editTemplateData.IndLevel3,callback:function(t){e.$set(e.editTemplateData,"IndLevel3",t)},expression:"editTemplateData.IndLevel3"}})],1)])],1)]),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"自定义:"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-input",{attrs:{placeholder:"自定义"},model:{value:e.editTemplateData.IndLevel4,callback:function(t){e.$set(e.editTemplateData,"IndLevel4",t)},expression:"editTemplateData.IndLevel4"}})],1)])],1)]),a("div",{staticClass:"yiyun_col-12"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"介绍:"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-input",{attrs:{placeholder:"请输入模板简介"},model:{value:e.editTemplateData.Temple.Introduce,callback:function(t){e.$set(e.editTemplateData.Temple,"Introduce",t)},expression:"\n editTemplateData.Temple.Introduce\n "}})],1)])],1)])])]),a("div",{staticClass:"clear"}),a("div",{staticClass:"yiyunTable_list_item"},[a("div",{staticClass:"mlr-10"},[a("h3",{staticClass:"secondListTitle"},[e._v("模板概况")])]),a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line_light"})]),a("div",{staticClass:"yiyun_col-12"},[e._l(e.editTemplateData.TempleProperties,(function(t){return a("div",{key:t.Id,staticClass:"yiyun_col-6"},[a("div",{staticClass:"UserEditinfoBox DivInputHeight"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"自定义字段"}},[a("div",{staticClass:"boolEdit_Input noshodow"},[a("el-input",{attrs:{autofocus:!0},model:{value:t.PropertyName,callback:function(a){e.$set(t,"PropertyName",a)},expression:"item.PropertyName"}},[a("i",{staticClass:"el-icon-close el-input__icon deletIocn",attrs:{slot:"suffix",title:"删除"},on:{click:function(a){return e.removeProperty(t,e.editTemplateData)}},slot:"suffix"})])],1)])],1)])])})),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"UserEditinfoBox DivInputHeight"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"自定义字段"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-button",{staticClass:"defualtLarge block-btn",on:{click:function(t){return e.addProperty(e.editTemplateData)}}},[e._v("新增填写项目")])],1)])],1)])])],2),a("div",{staticClass:"clear"})])])],1)]),a("div",{staticClass:"clear"})])])]):e._e(),a("div",{staticClass:"clear"}),a("div",{staticClass:"largecontentBox",staticStyle:{display:"none"}},[a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"yiyunTable_list"},[a("div",{staticClass:"mt-5"},[a("el-breadcrumb",{staticStyle:{cursor:"pointer","margin-bottom":"10px"},attrs:{"separator-class":"el-icon-arrow-right"}},[e.breadcrumb_item.length>1?a("el-breadcrumb-item",[a("span",{on:{click:function(t){return e.backUp()}}},[e._v("返回上一级 ")])]):e._e(),e._l(e.breadcrumb_item,(function(t,i){return a("el-breadcrumb-item",{key:i},[a("span",{on:{click:function(a){return e.getbreadcrumb(t,i)}}},[e._v(e._s(t.nodeName))])])}))],2),[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.listWorkFolderTable},on:{"row-contextmenu":e.tableRightClick}},[a("el-table-column",{attrs:{prop:"",label:"",width:"36"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{attrs:{src:"/static/img/icon_file.png"}})]}}],null,!1,3948577977)}),a("el-table-column",{attrs:{prop:"nodeName",label:"工作文件夹"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{cursor:"pointer"},on:{click:function(a){return e.getFolderNodeData(t.row)}}},[e._v(e._s(t.row.nodeName))])]}}],null,!1,790194702)}),1==e.eidtFiles?a("el-table-column",{attrs:{label:"操作",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.reNameFolder(t.row)}}},[e._v("重命名")]),a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.delFolder(t.row)}}},[e._v("删除")])]}}],null,!1,2104173712)}):e._e()],1)]],2)])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMatrixTemplatePane,expression:"isShowMatrixTemplatePane"}],staticClass:"largecontentBox"},[a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"yiyunTable_list"},[a("div",{staticClass:"mt-10"}),a("div",[a("div",{staticClass:"contain"},[a("table",{staticClass:"tb1 bordertable",attrs:{cellspacing:"0",id:"tablestyle"}},[a("tr",{directives:[{name:"show",rawName:"v-show",value:""!=e.listMatirxPermission,expression:"listMatirxPermission != ''"}]},[e._m(3),e._m(4),e._l(e.listMatirxPermission,(function(t){return a("td",{key:t.id,staticClass:"topaccept bg_gray",staticStyle:{"background-color":"#e2e2e2"},attrs:{id:t.sysCode}},[a("div",[e._v("编码"+e._s(t.sysCode))])])}))],2),a("tr",{directives:[{name:"show",rawName:"v-show",value:""!=e.listMatirxPermission,expression:"listMatirxPermission != ''"}],staticClass:"tb2 bordertable",attrs:{cellspacing:"0"}},[e._m(5),e._m(6),e._l(e.listMatirxPermission,(function(t){return a("td",{key:t.id,staticClass:"topinput",attrs:{id:t.sysCode}},[a("div",[e._v(e._s(t.nodeName))])])}))],2),e._l(e.listMatirxPermission,(function(t,i){return a("tr",{key:t.id,attrs:{id:t.sysCode}},[a("th",{staticClass:"indexlistItem"},[a("div",[e._v(e._s(i))])]),a("th",{staticClass:"collabel"},[a("div",[e._v(e._s(t.nodeName))])]),e._l(t.listNodePerm,(function(s,n){return a("td",{key:s.id,class:n%2==1&&n>i||i%2==1&&n1?a("el-breadcrumb-item",[a("span",{on:{click:function(t){return e.backUp()}}},[a("i",{staticClass:"backprevIcon el-icon-arrow-left"})])]):e._e(),e._l(e.breadcrumb_item,(function(t,i){return a("el-breadcrumb-item",{key:i},[a("span",{on:{click:function(a){return e.getbreadcrumb(t,i)}}},[e._v(e._s(t.nodeName))])])}))],2)],1),[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.listWorkFolderTable},on:{"row-contextmenu":e.tableRightClick}},[a("el-table-column",{attrs:{prop:"",label:"",width:"36"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{attrs:{src:"/static/img/icon_file.png"}})]}}],null,!1,3948577977)}),a("el-table-column",{attrs:{prop:"nodeName",label:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{cursor:"pointer"},on:{click:function(a){return e.getFolderNodeData(t.row)}}},[e._v(e._s(t.row.nodeName))])]}}],null,!1,790194702)}),1==e.eidtFiles?a("el-table-column",{attrs:{label:"操作",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.reNameFolder(t.row)}}},[e._v("重命名")]),a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.delFolder(t.row)}}},[e._v("删除")])]}}],null,!1,2104173712)}):e._e()],1)]],2),void 0],2),a("div",{staticClass:"clear"}),a("div",{staticClass:"largecontentBox",staticStyle:{display:"none"}},[a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"yiyunTable_list"},[a("div",{staticClass:"mt-5"},[a("el-breadcrumb",{staticStyle:{cursor:"pointer","margin-bottom":"10px"},attrs:{"separator-class":"el-icon-arrow-right"}},[e.breadcrumb_item.length>1?a("el-breadcrumb-item",[a("span",{on:{click:function(t){return e.backUp()}}},[e._v("返回上一级 ")])]):e._e(),e._l(e.breadcrumb_item,(function(t,i){return a("el-breadcrumb-item",{key:i},[a("span",{on:{click:function(a){return e.getbreadcrumb(t,i)}}},[e._v(e._s(t.nodeName))])])}))],2),[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.listWorkFolderTable},on:{"row-contextmenu":e.tableRightClick}},[a("el-table-column",{attrs:{prop:"",label:"",width:"36"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{attrs:{src:"/static/img/icon_file.png"}})]}}],null,!1,3948577977)}),a("el-table-column",{attrs:{prop:"nodeName",label:"工作文件夹"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{cursor:"pointer"},on:{click:function(a){return e.getFolderNodeData(t.row)}}},[e._v(e._s(t.row.nodeName))])]}}],null,!1,790194702)}),1==e.eidtFiles?a("el-table-column",{attrs:{label:"操作",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.reNameFolder(t.row)}}},[e._v("重命名")]),a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.delFolder(t.row)}}},[e._v("删除")])]}}],null,!1,2104173712)}):e._e()],1)]],2)])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMatrixTemplatePane,expression:"isShowMatrixTemplatePane"}],staticClass:"largecontentBox"},[a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"yiyunTable_list"},[a("div",{staticClass:"mt-10"}),a("div",[a("div",{staticClass:"contain"},[a("table",{staticClass:"tb1 bordertable",attrs:{cellspacing:"0",id:"tablestyle"}},[a("tr",{directives:[{name:"show",rawName:"v-show",value:""!=e.listMatirxPermission,expression:"listMatirxPermission != ''"}]},[e._m(9),e._m(10),e._l(e.listMatirxPermission,(function(t){return a("td",{key:t.id,staticClass:"topaccept bg_gray",staticStyle:{"background-color":"#e2e2e2"},attrs:{id:t.sysCode}},[a("div",[e._v("编码"+e._s(t.sysCode))])])}))],2),a("tr",{directives:[{name:"show",rawName:"v-show",value:""!=e.listMatirxPermission,expression:"listMatirxPermission != ''"}],staticClass:"tb2 bordertable",attrs:{cellspacing:"0"}},[e._m(11),e._m(12),e._l(e.listMatirxPermission,(function(t){return a("td",{key:t.id,staticClass:"topinput",attrs:{id:t.sysCode}},[a("div",[e._v(e._s(t.nodeName))])])}))],2),e._l(e.listMatirxPermission,(function(t,i){return a("tr",{key:t.id,attrs:{id:t.sysCode}},[a("th",{staticClass:"indexlistItem"},[a("div",[e._v(e._s(i))])]),a("th",{staticClass:"collabel"},[a("div",[e._v(e._s(t.nodeName))])]),e._l(t.listNodePerm,(function(s,n){return a("td",{key:s.id,class:n%2==1&&n>i||i%2==1&&n0?a("span",{staticClass:"processCss"},[e._v(e._s(t.row.count))]):e._e(),t.row.count>0?a("el-progress",{staticClass:"currZindex",attrs:{"text-inside":!0,"stroke-width":24,percentage:Math.round(t.row.count/t.row.totalCount*100),"show-text":!1,color:Math.round(t.row.count/t.row.totalCount*100)>=60?"#4A90E2":Math.round(t.row.count/t.row.totalCount*100)>=30?"#4AE2A6":Math.round(t.row.count/t.row.totalCount*100)>0?"#F8D12A":"white"}}):e._e()]}}])})],1)],1)])])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.treeMenuVisible,expression:"treeMenuVisible"}]},[a("ul",{staticClass:"automenu",attrs:{id:"treeMenu"}},[a("li",{staticClass:"menu__item",on:{click:function(t){return t.stopPropagation(),e.reNameTemplate(t)}}},[e._v("重命名节点")])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.tableMenuVisible,expression:"tableMenuVisible"}]},[a("ul",{staticClass:"automenu",attrs:{id:"tableMenu"}},[a("li",{staticClass:"menu__item",on:{click:e.newInsertFolder}},[e._v("新增文件夹")]),a("li",{staticClass:"menu__item",on:{click:function(t){return e.reNameFolder(1)}}},[e._v("重命名")]),a("li",{staticClass:"menu__item",on:{click:e.delFolder}},[e._v("删除")])])]),a("context-menu",{staticClass:"automenu",attrs:{id:"treeSpaceMenu",show:e.treeSpaceMenuVisible},on:{"update:show":function(t){return e.treeSpaceMenuVisible=t}}},[a("ul",[a("li",{staticClass:"menu__item",on:{click:e.createInsertTemplate}},[e._v("新增模板")]),a("li",{staticClass:"menu__item",on:{click:e.createLargeIndustry}},[e._v("新增行业")])])]),a("context-menu",{staticClass:"automenu",attrs:{id:"MatrixLookInfoMenu",show:e.MatrixLookInfoMenuVisible},on:{"update:show":function(t){return e.MatrixLookInfoMenuVisible=t}}},[a("ul",[a("li",{staticClass:"menu__item"},[e._v(e._s(e.matrixVerticalName))]),a("li",{staticClass:"menu__item"},[a("el-button",{class:e.btnMatrixLookInfo,on:{click:e.matrixRightNodeClick}},[e._v("输出数据")])],1),a("li",{staticClass:"menu__item"},[e._v(e._s(e.matrixHorizontalName))])])]),a("el-dialog",{staticStyle:{"margin-top":"8%"},attrs:{visible:e.isImportDialog,width:"28%","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,center:""},on:{"update:visible":function(t){e.isImportDialog=t}}},[a("el-form",{staticClass:"editnone el-form-item__label",staticStyle:{"margin-left":"10%"}},[a("el-form-item",{attrs:{label:"模板名称:"}},[a("div",{staticClass:"eidit_Input"},[a("el-input",{model:{value:e.importTempName,callback:function(t){e.importTempName=t},expression:"importTempName"}})],1)]),a("el-form-item",{attrs:{label:"已选文件:"}},[a("el-input",{attrs:{disabled:!0},model:{value:e.importXmindName,callback:function(t){e.importXmindName=t},expression:"importXmindName"}})],1),a("div",{staticClass:"upHeadImg",staticStyle:{"margin-bottom":"30px"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.cancelImport()}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.enterImport()}}},[e._v("确 定")])],1)],1)],1)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"EC_col_8"},[a("div",{staticClass:"adminnavBox"},[a("h3",[e._v("模板列表")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"EC_col_8"},[a("div",{staticClass:"EC_searchBox"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"accptwid topaccept",staticStyle:{"background-color":"#fff"}},[a("div")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"topaccept bg_gray",staticStyle:{"background-color":"#e2e2e2"}},[a("div",[e._v("接收")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"accptwid topinput"},[a("div",[e._v("输出")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"topinput",staticStyle:{"background-color":"rgb(255, 210, 78)"}},[a("div",[e._v("矩阵节点")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("h4",{staticClass:"admintitle"},[e._v(" 列表查看模式 ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"accptwid topaccept",staticStyle:{"background-color":"#fff"}},[a("div")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"topaccept bg_gray",staticStyle:{"background-color":"#e2e2e2"}},[a("div",[e._v("接收")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"accptwid topinput"},[a("div",[e._v("输出")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"topinput",staticStyle:{"background-color":"rgb(255, 210, 78)"}},[a("div",[e._v("矩阵节点")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("h4",{staticClass:"admintitle"},[e._v("总体概况")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line"})])}],n=(a("99af"),a("4de4"),a("4160"),a("c975"),a("a15b"),a("baa5"),a("d81d"),a("13d5"),a("fb6a"),a("a434"),a("b0c0"),a("d3b7"),a("ac1f"),a("3ca3"),a("5319"),a("1276"),a("498a"),a("159b"),a("ddb0"),a("5530")),r=a("3835"),l=(a("96cf"),a("1da1")),o=a("b0f9"),c=a("b3b1"),u=a("9e5b"),d=a("3de1"),m=a("2ef0"),p=a("b775"),f={components:{FileUploader:u["a"]},data:function(){return{isShowEditBtn:!0,isShowSaveBtn:!1,isImportDialog:!1,eidtFiles:!1,treeMenuVisible:!1,treeSpaceMenuVisible:!1,tableMenuVisible:!1,tableSpaceMenuVisible:!1,MatrixLookInfoMenuVisible:!1,isShowZoom:!1,isShowMindTemplatePane:!1,isShowListTemplatePane:!0,isShowMatrixTemplatePane:!1,isShowLookIndustryInfo:!1,isShowNewIndustry:!1,isShowBigIndustry:!1,isShowSonIndustry:!1,isShowModelpanel:!1,isShowXmindBtn:!1,isShowTempInfo:!1,boolEdit:!1,el_formLabelcolor:"textlabelgray",listTemplateTree:[],listWorkFolderTable:[],breadcrumb_item:[{nodeName:"全部"}],contentpain:"1",templateID:"",templateName:"",superID:"",treeMenuClickData:[],tableMenuClickData:[],tableRightEventData:[],listTemplateMindTree:[],listMatirxPermission:[],matrixRightNodeData:"",createIndustryName:"",listBigIndustry:[],listSonIndustry:[],listDetailIndustry:[],listTemplateClassify:[],listTempProp:[],listTempIndustury:[],selectBigIndustryIndex:"",selectSonIndustryIndex:"",selectDetailIndustryIndex:"",currTemplateFullCode:"",industryName:"",industryCode:"",lookIndustryBigName:"",lookIndustryCode:"",lookIndustrySonName:"",newTemplateCustomCode:"",listProperty:[],introduce:"",newTemplateName:"",searhNodeName:"",mindZoom:.8,filterTreeText:"",chunkUploadUrl:"/api/webupload/chunks",uploadProjId:"123456852963",uploadCompId:sessionStorage.companyId,uploadTypeCover:2,uploadCoverTimes:0,importUrl:"",importTempName:"",importXmindName:"",uploadLabel:"选择XMind文件",matrixVerticalName:"",matrixHorizontalName:"",btnMatrixLookInfo:"martixLeaveColor",templateRules:{"Temple.TempName":[{required:!0,message:"请输入模板名称",trigger:["blur","change"]}],"Temple.FirstIndustryId":[{required:!0,message:"请选择大行业",trigger:"change"}],"Temple.DetailIndustryId":[{required:!0,message:"请选择子行业",trigger:"change"}]},editTemplateData:{Temple:{},ChildIndustry:"",TempleProperties:[]},currentTemplateData:{Temple:{},ChildIndustry:"",TempleProperties:[]},eidtModelpane:!1,ModelForm:{mName:"",used:!1,clock:!1,mparentType:"",mchildType:"",mgrandsonType:"",mcode:"",mNumber:"",mDesc:"",mself_1:"",mself_2:"",mself_3:"",mself_4:""},mainPane:"1",arrayIndustryID:[],loading:!1,nowCount:0,allIndList:[],topIndList:[],level2IndList:[],mapIndIdToIndName:{},mapIndIdToIndNode:{},isXimdUpLoadSuccess:!1}},created:function(){this.getListTemplateClassify(),this.getTemplateData()},methods:{getTempNameAndData:function(e,t){if(this.isShowIndustry(),"default"==e.id)this.contentpain=3;else if("template"===e.type){this.eidtModelpane&&this.cancelEdit();var a=e;this.contentpain=1,this.templateName=a.label,this.templateID=a.id,this.treeMenuClickData=a,this.getTemplateDetail(a.id),this.listMatirxPermission=[],this.breadcrumb_item=[{nodeName:"全部"}],this.isShowTempInfo=!0,this.nowCount=0}else{this.contentpain=2;var i=e,s=i.data.LevelId,n=s.split("-");if(n.length>0){var r=this.$refs.tree.getNode(n[0]);this.lookIndustryBigName=r.label}if(n.length>1){var l=this.$refs.tree.getNode(n[1]);this.lookIndustrySonName=l.label,this.lookIndustryCode=l.data.data.code}this.createIndustryName=i.label,this.isShowLookIndustryInfo=!0,this.selectBigIndustryIndex=0}},getListTemplateClassify:function(){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function t(){var a,i,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$fetchApi("template/queryTemplateQuoteCount");case 2:a=t.sent,Object(p["c"])(a),i=a.Data||[],s=i.reduce((function(e,t){return(t.Count||0)+e}),0),e.listTemplateClassify=i.map((function(e){return{tempName:e.TempName,count:e.Count,totalCount:s}}));case 7:case"end":return t.stop()}}),t)})))()},getFolderNodeData:function(e){this.getFolderData(e.nodeID,e.templateID),this.templateID=e.templateID,this.breadcrumb_item.push(e)},getbreadcrumb:function(e,t){this.breadcrumb_item.length-1!=t&&("全部"==e.nodeName?this.getFolderData(this.templateID,this.templateID):this.getFolderData(e.nodeID,e.templateID));for(var a=0;at&&this.breadcrumb_item.splice(a)},backUp:function(){var e=this.breadcrumb_item.length-2;"全部"==this.breadcrumb_item[e].nodeName?this.getFolderData(this.templateID,this.templateID):this.getFolderData(this.breadcrumb_item[e].nodeID,this.breadcrumb_item[e].templateID),this.breadcrumb_item.splice(this.breadcrumb_item.length-1)},matirxMouseEnter:function(e,t){this.MatrixLookInfoMenuVisible=!1,this.mousueCheckChangeColor(e,"orange")},mousueCheckChangeColor:function(e,t){var a="";"orange"==t?a="2px solid orange":"green"==t&&(a="2px solid green");for(var i=0;i50)t.$notify({message:"名称过长,最多可输入50个字",type:["warning"],offset:100,duration:2500});else{var s={templateID:t.templateID,superID:t.superID,nodeName:i,createUserID:sessionStorage.userId,modifyUserID:sessionStorage.userId};e.$axios({method:"post",url:encodeURI("/api/Templates/nodes"),data:s}).then((function(e){1==e.data.state?(t.$notify({message:"文件夹创建成功",type:["success"],duration:2500}),t.getFolderData(t.superID,t.templateID)):t.$notify({message:e.data.message,type:["error"],duration:2500})})).catch((function(e){console.log(e)}))}}))},modifyTemplate:function(){var e=this,t=this;t.$refs["tempform"].validate(function(){var a=Object(l["a"])(regeneratorRuntime.mark((function a(i){var s,n,r,l,c,u;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i){a.next=2;break}return a.abrupt("return");case 2:if(s=Object(m["cloneDeep"])(e.editTemplateData),n=s.TempleProperties,r=!!s.Temple.Id,l=r?"编辑":"创建",r||s.Node&&0!==s.Node.length){a.next=9;break}return d["d"].warning("Xmind文件尚未上传。"),a.abrupt("return");case 9:return r&&(s.Temple.Disable=+s.Temple.Disable,s.Temple.Locked=+s.Temple.Locked),s.ChildIndustry=[s.IndLevel3,s.IndLevel4].filter((function(e){return e})).join(","),s.Templepeoperty=n.map((function(e){return e.PropertyName})).join(","),e.loading=!0,a.next=15,r?o["r"](s):o["d"](s);case 15:if(c=a.sent,t.loading=!1,0===c.Code){a.next=19;break}return a.abrupt("return");case 19:u=e.editTemplateData.Temple.TempName||"",d["d"].success("模板“".concat(u,"”").concat(l,"完成。")),r?(e.treeMenuClickData.data.tempName=e.editTemplateData.Temple.TempName,e.treeMenuClickData.label=e.editTemplateData.Temple.TempName,e.templateName=e.editTemplateData.Temple.TempName,e.isShowTempInfo=!0,e.eidtModelpane=!1,e.currentTemplateData=e.editTemplateData):(t.isShowModelpanel=!1,t.isShowLookIndustryInfo=!0,t.getTemplateData(),t.getListTemplateClassify());case 22:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}())},reNameFolder:function(e){var t=this,a=this;1!=e&&(a.tableMenuClickData=e);var i=a.tableMenuClickData;this.$prompt("当前文件夹名称: "+i.nodeName,"重命名",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/\S/,inputErrorMessage:"名称不能为空"}).then((function(e){var s=e.value;s.trim().length>50?a.$notify({message:"名称过长,最多可输入50个字",type:["warning"],offset:100,duration:2500}):(i.nodeName=s,t.$axios({method:"put",url:encodeURI("/api/Templates/nodes/"),data:i}).then((function(e){1==e.data.state&&a.$notify({message:"重命名成功",type:["success"],offset:100,duration:2500})})).catch((function(e){console.log(e)})))})).catch((function(){a.$notify.warning({message:"操作已取消",offset:100,duration:2500})})),this.tableMenuClickData=[]},delFolder:function(e){var t=this,a=this;0==a.tableMenuClickData.length&&(a.tableMenuClickData=e);var i=a.tableMenuClickData.nodeName,s=a.tableMenuClickData.nodeID,n=a.tableMenuClickData.superID,r=a.tableMenuClickData.templateID;this.$confirm("您正在删除 "+i+" 文件夹是否继续?","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$axios({method:"delete",url:encodeURI("/api/Templates/nodes/"+s+"/"+i+"/"+sessionStorage.userId)}).then((function(e){a.$notify({message:e.data.message,type:["success"],offset:100,duration:2500}),a.getFolderData(n,r)})).catch((function(e){console.log(e)}))})),this.tableMenuClickData=[]},reNameTemplate:function(){var e,t,a=this,i=this;1==i.treeMenuClickData.isLeaf?(e=i.treeMenuClickData.data.tempName,t="模板重命名"):(e=i.treeMenuClickData.data.name,t="行业重命名"),this.$prompt("当前名称: "+i.treeMenuClickData.label,t,{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/\S/,inputValue:e,inputErrorMessage:"名称不能为空"}).then(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var s,n,r,l,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t.value,1!=i.treeMenuClickData.isLeaf){e.next=9;break}return n={id:i.treeMenuClickData.id,tempName:s},e.next=5,o["q"](n);case 5:r=e.sent,0==r.Code&&(a.$notify({message:"模板重命名成功",type:"success"}),i.treeMenuClickData.data.tempName=s,a.currentTemplateData.Temple.TempName=s,a.templateName=s,i.treeMenuClickData.label=s),e.next=14;break;case 9:return l={id:i.treeMenuClickData.id,industryName:s},e.next=12,Object(c["b"])(l);case 12:u=e.sent,0==u.Code&&(a.$notify({message:"行业重命名成功",type:"success"}),i.treeMenuClickData.data.name=s,i.createIndustryName=s,i.treeMenuClickData.label=s);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){i.$notify.warning({message:"操作已取消",offset:100,duration:2500})}))},disableTemplate:function(){var e=this,t=this;this.$confirm("当前模板名称: "+t.treeMenuClickData.tempName,"禁用",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.treeMenuClickData.disable=1,e.$axios({method:"put",url:encodeURI("/api/Templates/"),data:t.treeMenuClickData}).then((function(e){1==e.data.state&&t.$notify({message:"禁用模板成功",type:["success"],offset:100,duration:2500}),t.getTemplateData()})).catch((function(e){console.log(e)}))})).catch((function(){t.$notify.warning({message:"操作已取消",offset:100,duration:2500})}))},delTemplate:function(){var e=this;if(0!=this.treeMenuClickData.isLeaf){var t=this;this.$confirm("您正在删除 "+t.treeMenuClickData.label+" 模板是否继续?","删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$axios({method:"delete",url:encodeURI("/api/Templates/"+t.treeMenuClickData.data.templateID+"/"+t.treeMenuClickData.label+"/"+sessionStorage.userId)}).then((function(e){t.$notify({message:e.data.message,type:["success"],offset:100,duration:2500}),t.$refs.tree.remove(t.treeMenuClickData)})).catch((function(e){console.log(e)}))}))}else this.deleteIndustry(this.treeMenuClickData)},delTemplateClick:function(){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function t(){var a,i,s,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.currentTemplateData,i=a.Temple.Id,t.next=4,o["p"](i);case 4:if(s=t.sent,n=a.Temple.TempName||"",!(0==s.Code&&s.Data>0)){t.next=9;break}return e.$notify({type:["error"],message:"当前有项目使用该模板 无法删除模板"}),t.abrupt("return");case 9:e.$confirm("您正在删除 ["+n+"] 模板是否继续?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(l["a"])(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["f"](a.Temple.Id);case 2:if(i=t.sent,0===i.Code){t.next=5;break}return t.abrupt("return");case 5:d["d"].success("模板“".concat(n,"”删除成功")),e.getTemplateData(),e.getListTemplateClassify();case 8:case"end":return t.stop()}}),t)}))));case 10:case"end":return t.stop()}}),t)})))()},importXmind:function(){this.isImportDialog=!0,this.importXmindName="",this.importTempName="",this.importUrl=""},enterImport:function(){var e=this,t="",a="";if(0==this.treeMenuClickData.isLeaf&&3==this.treeMenuClickData.data.level){var i=this.treeMenuClickData.data.levelID.split("-");t=i[0],a=i[2]}else 1==this.treeMenuClickData.isLeaf&&(t=this.treeMenuClickData.data.firstIndustryID,a=this.treeMenuClickData.data.detailIndustryID);var s=this;if(s.uploadCoverTimes>0){var n={xMindFilePath:s.importUrl.replace("\\","\\\\"),tempName:s.importTempName,type:0,firstIndustryID:t,detailIndustryID:a,companyId:sessionStorage.companyId,userId:sessionStorage.userId};this.$axios({method:"post",url:encodeURI("/api/templates/XMind"),data:n}).then((function(t){s.$notify({message:t.data.message,type:["success"],offset:100,duration:2500}),e.isImportDialog=!1,e.getTemplateData()})).catch((function(e){console.log(e)}))}},getMatirxPermission:function(){var e=this,t=this;this.$axios({method:"get",url:encodeURI("/api/templates/nodes/tree/"+t.templateID)}).then((function(a){for(var i=a.data,s=0;s0)for(var t=0;t1800?e.style.left=event.clientX-100+"px":e.style.left=event.clientX+1+"px",document.addEventListener("click",this.foo),event.clientY>700?1==this.treeMenuVisible?e.style.top=event.clientY-150+"px":1==this.MatrixLookInfoMenuVisible?e.style.top=event.clientY-100+"px":e.style.top=event.clientY-30+"px":e.style.top=event.clientY-10+"px"},coverUploadSuccess:function(e){this.uploadCoverTimes=this.uploadCoverTimes+1,this.importUrl=e.filePath,this.importXmindName=e.fileName},uploadXMindFile:function(e){var t=e.file;return o["s"](t)},onUploadSuccess:function(e){var t=e.response;0===t.Code?(d["d"].success("Xmind文件解析成功。"),this.editTemplateData.Node=t.Data,this.isXimdUpLoadSuccess=!0):d["d"].warning("请上传正确的Xmind文件。")},createLargeIndustry:function(){this.isShowIndustry(),this.createIndustryName="新增大行业",this.isShowNewIndustry=!0},createChildIndustry:function(e){var t;switch(this.isShowIndustry(),this.createIndustryName="新增子行业",this.isShowBigIndustry=!0,this.isShowNewIndustry=!0,e.level){case 1:t=this.$refs.tree.getNode(e.industryID),this.selectBigIndustryIndex=this.listTemplateTree.lastIndexOf(t.data);break;case 2:t=this.$refs.tree.getNode(e.superID),this.selectBigIndustryIndex=this.listTemplateTree.lastIndexOf(t.data);break}},createNextChildIndustry:function(e){var t,a;switch(this.isShowIndustry(),this.createIndustryName="新增细分行业",this.isShowBigIndustry=!0,this.isShowSonIndustry=!0,this.isShowNewIndustry=!0,e.level){case 2:t=this.$refs.tree.getNode(e.superID),this.selectBigIndustryIndex=this.listTemplateTree.lastIndexOf(t.data),this.listSonIndustry=this.listTemplateTree[this.selectBigIndustryIndex].children,a=this.$refs.tree.getNode(e.industryID),this.selectSonIndustryIndex=this.listSonIndustry.lastIndexOf(a.data);break;case 3:a=this.$refs.tree.getNode(e.superID),t=this.$refs.tree.getNode(a.data.data.superID),this.selectBigIndustryIndex=this.listTemplateTree.lastIndexOf(t.data),this.listSonIndustry=this.listTemplateTree[this.selectBigIndustryIndex].children,this.selectSonIndustryIndex=this.listSonIndustry.lastIndexOf(a.data);break}},createInsertTemplate:function(){this.isShowIndustry(),this.importXmindName="",this.createIndustryName="新增模板",this.isShowModelpanel=!0,this.isXimdUpLoadSuccess=!1},isShowIndustry:function(){this.contentpain="2",this.isShowNewIndustry=!1,this.isShowBigIndustry=!1,this.isShowSonIndustry=!1,this.isShowModelpanel=!1,this.isShowLookIndustryInfo=!1,this.isShowTempInfo=!1,this.clearNewInsertInfo()},cacelNewInfustry:function(){this.isShowNewIndustry=!1,this.isShowLookIndustryInfo=!0},cacelInsertTemplate:function(){var e=this;this.$confirm("取消操作会清除当前所填写的模板信息,是否确认取消?","",{confirmButtonText:"确定",cancelButtonText:"返回",type:"warning",showClose:!1}).then((function(){e.isShowModelpanel=!1,e.isShowLookIndustryInfo=!1,e.getListTemplateClassify(),e.contentpain=3}))},clearNewInsertInfo:function(){this.listBigIndustry=[],this.listSonIndustry=[],this.listDetailIndustry=[],this.listProperty=[],this.industryName="",this.industryCode="",this.selectSonIndustryIndex="",this.selectDetailIndustryIndex="",this.selectBigIndustryIndex="",this.newTemplateName="",this.newTemplateCustomCode="",this.currTemplateFullCode="",this.currentTemplateData={Temple:{},TempleProperties:[]},this.editTemplateData={Temple:{},TempleProperties:[]}},getSonIndustry:function(e){this.level2IndList=this.allIndList.filter((function(t){return 2===t.Level&&t.SuperId===e})),this.currentTemplateData.Temple.DetailIndustryId=void 0,this.editTemplateData.Temple.DetailIndustryId=void 0},refreshFormData:function(){this.editTemplateData.Temple=Object(n["a"])({},this.editTemplateData.Temple)},filterTreeNode:function(e,t){return!e||-1!==t.label.indexOf(e)},addProperty:function(e){var t={PropertyName:"",Id:"".concat(Math.random()).slice(2,6),CreateTime:new Date};e.TempleProperties.push(t)},removeProperty:function(e,t){t.TempleProperties=t.TempleProperties.filter((function(t){return t!==e}))},editmodelInfo:function(){this.isShowTempInfo=!1,this.eidtModelpane=!0;var e=this.editTemplateData=Object(m["cloneDeep"])(this.currentTemplateData);this.level2IndList=this.allIndList.filter((function(t){return 2===t.Level&&t.SuperId===e.Temple.FirstIndustryId}))},cancelEdit:function(){this.isShowTempInfo=!0,this.eidtModelpane=!1},savemodelInfo:function(){this.modifyTemplate("editTemplateForm")},goscanList:function(){this.mainPane="2"},goNodeFile:function(){this.$router.push({name:"system_template_file",params:{id:this.templateID,data:this.treeMenuClickData}})},goscanMind:function(){sessionStorage.templateID=this.templateID,this.$router.push({name:"system_template_mind",params:{name:this.templateName,id:this.templateID,data:this.treeMenuClickData}})},goscanMatrix:function(){this.$router.push({name:"system_template_matrix",params:{name:this.templateName,id:this.templateID,data:this.treeMenuClickData}})},backmodlemain:function(){this.mainPane="1"},toNodeFile:function(){var e=this.currentTemplateData;this.$router.push({name:"system_template_file",params:{id:e.Temple.Id,data:e.Temple}})},getTemplateDetail:function(e){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function a(){var i,s,n,l,c,u,d,m,p,f,h,v,b;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Promise.all([o["m"](e),o["p"](e)]);case 2:if(i=a.sent,s=Object(r["a"])(i,2),n=s[0],l=s[1],c=t.mapIndIdToIndNode,t.nowCount=l.Data||0,0===n.Code){a.next=10;break}return a.abrupt("return");case 10:u=n.Data,d=u.propertys,m=u.template,p=d.map((function(e){return e.Id=e.Id||e.PropertyName,e})),f=t.currentTemplateData={Temple:m,TempleProperties:p},h=m.CustomCode,h&&"0"!==h&&(v=c[h],4===v.data.Level?(f.IndLevel4=v.label,b=c[v.parentId],f.IndLevel3=b.label):f.IndLevel3=v.label),f.Temple.Disable="".concat(f.Temple.Disable),f.Temple.Locked="".concat(f.Temple.Locked);case 17:case"end":return a.stop()}}),a)})))()}},watch:{filterTreeText:function(e){this.$refs.tree.filter(e)}}};function h(e,t){var a={},i=e.reduce((function(e,t){var a="0"!==t.CustomCode&&t.CustomCode?t.CustomCode:void 0,i=a||t.DetailIndustryId,s={id:t.Id,label:t.TempName,parentId:i,isLeaf:!0,type:"template",data:t};return e[i]=(e[i]||[]).concat(s),e}),{}),s=t.reduce((function(e,t){var i="0"!==t.SuperId&&t.SuperId?t.SuperId:null,s={id:t.Id,label:t.Name,parentId:i,data:t,type:"industry",children:[],isLeaf:!1};return e[0][s.id]=s,e[1].unshift(s),a[s.id]=s,i&&(e[2][i]||(e[2][i]=[]),e[2][i].push(s)),1===t.Level&&e[3].push(s),e}),[{},[],{},[]]),n=Object(r["a"])(s,4),l=n[0],o=n[1],c=n[2],u=n[3];return o.forEach((function(e){var t=c[e.id];t&&(e.children=e.children.concat(t));var a=i[e.id];if(a&&(e.children=e.children.concat(a)),0===e.children.length){var s=l[e.parentId],n=s?c[s.id]:u;n.splice(n.indexOf(e),1)}})),[u,a]}var v=f,b=(a("b764"),a("2877")),y=Object(b["a"])(v,i,s,!1,null,"d7109108",null);t["default"]=y.exports},"9e5b":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-upload",{attrs:{action:"","http-request":e.httpRequest||e.handleUpload,"before-upload":e.beforeUpload,showFileList:e.showFileList,"on-success":e.handleSuccess},scopedSlots:e._u([e._l(e.$slots,(function(t,a){return{key:a,fn:function(){return[e._t(a)]},proxy:!0}}))],null,!0)})},s=[],n=(a("b0c0"),a("5530")),r=a("5ab9"),l=a("2ef0"),o={name:"Upload",props:{showFileList:{type:Boolean,default:!1},onSuccess:{type:Function,default:l["noop"]},httpRequest:{type:Function,default:null}},methods:{handleSuccess:function(e,t,a){e?this.onSuccess(Object(n["a"])(Object(n["a"])({},t),{},{ossUrl:e.name}),a):console.log(e,t)},beforeUpload:function(e){return console.log("fileInfo: ",e),!0},handleUpload:function(e){var t=e.file;e.onSuccess,e.onError,e.file.name;return r["b"](t.name,t)}}},c=o,u=a("2877"),d=Object(u["a"])(c,i,s,!1,null,null,null);t["a"]=d.exports},a434:function(e,t,a){"use strict";var i=a("23e7"),s=a("23cb"),n=a("a691"),r=a("50c4"),l=a("7b0b"),o=a("65f0"),c=a("8418"),u=a("1dde"),d=a("ae40"),m=u("splice"),p=d("splice",{ACCESSORS:!0,0:0,1:2}),f=Math.max,h=Math.min,v=9007199254740991,b="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!m||!p},{splice:function(e,t){var a,i,u,d,m,p,y=l(this),C=r(y.length),_=s(e,C),I=arguments.length;if(0===I?a=i=0:1===I?(a=0,i=C-_):(a=I-2,i=h(f(n(t),0),C-_)),C+a-i>v)throw TypeError(b);for(u=o(y,i),d=0;dC-i+a;d--)delete y[d-1]}else if(a>i)for(d=C-i;d>_;d--)m=d+i-1,p=d+a-1,m in y?y[p]=y[m]:delete y[p];for(d=0;d1&&(r=o(r,s(arguments[1]))),r<0&&(r=a+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:c}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-78390ace"],{"498a":function(e,t,a){"use strict";var i=a("23e7"),s=a("58a8").trim,n=a("c8d2");i({target:"String",proto:!0,forced:n("trim")},{trim:function(){return s(this)}})},"81b5":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"layout_content template-list"},[a("section",{staticClass:"title_section"},[e._m(0),e._m(1),a("div",{staticClass:"EC_col_8"},[a("div",{staticClass:"fr"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMatrixTemplatePane,expression:"isShowMatrixTemplatePane"}],staticClass:"fl"},[a("div",{staticClass:"yiyun_col-12 ce text_concenter"},[a("el-input",{staticClass:"el-input_mini",attrs:{placeholder:"矩阵搜索","prefix-icon":"icon font_family icon-icon_sousuo searchsize"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searhTempNode(t)}},model:{value:e.searhNodeName,callback:function(t){e.searhNodeName=t},expression:"searhNodeName"}})],1)])])])]),a("section",{staticClass:"yiyun_section1"},[a("div",{staticClass:"fl_navBox",on:{contextmenu:function(t){return e.treeSpaceMenu(t)}}},[a("div",{staticClass:"fl_navBox_body"},[a("div",{staticClass:"admin_treeBox navtree"},[a("div",{staticClass:"admininput_search"},[a("el-input",{staticClass:"el-input_mini",attrs:{placeholder:"搜索名称","prefix-icon":"Cicon icon font_family icon-icon_sousuo iconsize_mini"},model:{value:e.filterTreeText,callback:function(t){e.filterTreeText=t},expression:"filterTreeText"}})],1),a("div",{staticClass:"navtreebox"},[a("el-tree",{ref:"tree",attrs:{data:e.listTemplateTree,"default-expand-all":!0,"node-key":"id","expand-on-click-node":!1,"filter-node-method":e.filterTreeNode,indent:8,"highlight-current":!0},on:{"node-contextmenu":e.treeRightClick,"node-click":e.getTempNameAndData},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,s=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{staticClass:"sanjiaow"},["default"==s.id?a("i",{staticClass:"el-icon-models"}):e._e(),0==s.isLeaf&&1==i.isLeaf?a("i",{staticClass:"el-tree-node__expand-icon el-icon-caret-right bianjutop"}):e._e(),1==s.isLeaf&&1==i.isLeaf?a("i",{staticClass:"el-icon-models"}):e._e(),a("span",[e._v(e._s(s.label))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:0==s.isLeaf,expression:"data.isLeaf == false"}],staticClass:"fr rightdrop"},[a("el-dropdown",[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more morebtn"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("span",{directives:[{name:"show",rawName:"v-show",value:1==s.data.level,expression:"data.data.level == 1"}],on:{click:e.createLargeIndustry}},[e._v("新增大行业")])]),a("el-dropdown-item",[a("span",{directives:[{name:"show",rawName:"v-show",value:s.data.level<=2,expression:"data.data.level <= 2"}],on:{click:function(t){return e.createChildIndustry(s.data)}}},[e._v("新增子行业")])]),a("el-dropdown-item",[a("span",{directives:[{name:"show",rawName:"v-show",value:s.data.level>1,expression:"data.data.level > 1"}],on:{click:function(t){return e.createNextChildIndustry(s.data)}}},[e._v("新增细分行业")])]),a("el-dropdown-item",[a("span",{on:{click:function(t){return e.deleteIndustry(s)}}},[e._v("删除")])])],1)],1)],1)])}}])})],1),a("div",{staticClass:"bottombtn",on:{click:e.createInsertTemplate}},[e._v("新增模板")])])])]),a("div",{staticClass:"fl_contentBox"},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.contentpain,expression:"contentpain == 1"}],staticClass:"admin_contentBox_body",on:{contextmenu:function(t){return e.tableSpaceMenu(t)}}},[1==e.mainPane?a("div",{staticClass:"admin_contentBox_bodyPain"},[a("div",{staticClass:"mlr-10"},[e.eidtModelpane?e._e():a("h4",{staticClass:"admintitle"},[e._v(" "+e._s(e.templateName)+" ")]),e.eidtModelpane?a("h4",{staticClass:"admintitle"},[e._v(" 编辑:"+e._s(e.templateName)+" ")]):e._e()]),e._m(2),a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"topOption"},[a("div",{staticClass:"topoption"},[a("div",{staticClass:"fl"},[e.eidtModelpane?e._e():a("button",{staticClass:"EC_button shadow bt_small_20 mr-5",attrs:{type:"button"},on:{click:e.editmodelInfo}},[e._v(" 编辑 ")]),e.eidtModelpane?a("button",{staticClass:"EC_button shadow bt_small_20 mr-5",attrs:{type:"button"},on:{click:e.cancelEdit}},[e._v(" 退出 ")]):e._e(),e.eidtModelpane?a("el-button",{attrs:{type:"primary"},on:{click:e.savemodelInfo}},[e._v("保存")]):e._e()],1),a("div",{staticClass:"fr"},[e.eidtModelpane?a("button",{staticClass:"EC_button shadow bt_small_20 mr-5",attrs:{type:"button"},on:{click:e.delTemplateClick}},[e._v(" 删除模板 ")]):e._e()])])])]),a("div",{staticClass:"clear"}),e.isShowTempInfo?a("div",{staticClass:"largecontentBox"},[a("div",{staticClass:"listCardIcon mt-30"},[a("div",[a("div",{staticClass:"EC_col_6"},[a("div",{staticClass:"kapian_card cl_card",on:{click:e.goNodeFile}},[a("h4",{staticClass:"biaoqianweizhi2"},[e._v("样板文件管理")]),a("img",{attrs:{src:"/static\\img\\card_0.png",alt:""}})])]),a("div",{staticClass:"EC_col_6"},[a("div",{staticClass:"kapian_card cl_card",on:{click:e.goscanMind}},[a("h4",{staticClass:"biaoqianweizhi2"},[e._v("思维导图查看器")]),a("img",{attrs:{src:"/static/img/card_2.png",alt:""}})])]),a("div",{staticClass:"EC_col_6"},[a("div",{staticClass:"kapian_card cl_card",on:{click:e.goscanMatrix}},[a("h4",{staticClass:"biaoqianweizhi2"},[e._v("矩阵编辑器")]),a("img",{attrs:{src:"/static/img/card_3.png",alt:""}})])])])]),a("div",{staticClass:"clear"}),a("div",[a("div",{staticClass:"yiyunTable_list_item"},[a("div",[a("div",{staticClass:"yiyunTable_list mt-10"},[a("el-form",{ref:"form",attrs:{"label-width":"90px","label-position":"left"}},[a("div",{staticClass:"yiyunTable_list_item mt-40"},[a("div",{staticClass:"mlr-10"},[a("h3",{staticClass:"secondListTitle"},[e._v("模板信息")])]),a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line_light"})]),a("div",{staticClass:"textlabelgray UserEditinfoBox DivInputHeight"},[a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"模板名称"}},[a("div",[e._v(" "+e._s(e.currentTemplateData.Temple.TempName)+" ")])])],1)]),a("div",{staticClass:"clear"}),e.listTempIndustury.length>1?a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"大行业"}},[a("div",[e._v(" "+e._s(e.mapIndIdToIndName[e.currentTemplateData.Temple.FirstIndustryId])+" ")])])],1)]):e._e(),e.listTempIndustury.length>1?a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"子行业"}},[a("div",[e._v(" "+e._s(e.mapIndIdToIndName[e.currentTemplateData.Temple.DetailIndustryId])+" ")])])],1)]):e._e(),a("div",{staticClass:"clear"}),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"模版编码"}},[a("div",[e._v(" "+e._s(e.currentTemplateData.Temple.FullCode)+" ")])])],1)]),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"锁定状态"}},[a("div",[0==e.currentTemplateData.Temple.Locked?a("span",[e._v("未锁定")]):e._e(),1==e.currentTemplateData.Temple.Locked?a("span",[e._v("已锁定")]):e._e(),a("div",{staticClass:"fr"},[0==e.currentTemplateData.Temple.Locked?a("span",{staticClass:"ECclockText"},[a("i",{staticClass:"ECclock mt-10 el-ecclock-o"})]):e._e(),1==e.currentTemplateData.Temple.Locked?a("span",{staticClass:"ECclockText"},[a("i",{staticClass:"ECclock mt-10 el-ecclock"})]):e._e()])])])],1)]),a("div",{staticClass:"yiyun_col-12"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"模板简介"}},[a("div",[e._v(" "+e._s(e.currentTemplateData.Temple.Introduce)+" ")])])],1)])])]),a("div",{staticClass:"yiyunTable_list_item mt-30"},[a("div",{staticClass:"mlr-10"},[a("h3",{staticClass:"secondListTitle"},[e._v("模板数据")])]),a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line_light"})]),a("div",{staticClass:"textlabelgray UserEditinfoBox DivInputHeight"},[a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"使用数:"}},[a("div",[e._v(e._s(e.nowCount)+" 个项目")])])],1)]),a("div",{staticClass:"clear"})])]),a("div",{staticClass:"yiyunTable_list_item mt-30"},[a("div",{staticClass:"mlr-10"},[a("h3",{staticClass:"secondListTitle"},[e._v("模板概况")])]),a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line_light"})]),a("div",{staticClass:"textlabelgray UserEditinfoBox DivInputHeight"},[e._l(e.currentTemplateData.TempleProperties,(function(t){return a("div",{key:t.Id,staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"自定义字段"}},[a("div",[e._v(e._s(t.PropertyName))])])],1)])})),a("div",{staticClass:"clear"})],2)])])],1)]),a("div",{staticClass:"clear"})])])]):e._e(),e.eidtModelpane?a("div",{staticClass:"largecontentBox"},[a("div",[a("div",{staticClass:"yiyunTable_list_item"},[a("div",[a("div",{staticClass:"yiyunTable_list mt-10"},[a("el-form",{ref:"tempform",attrs:{model:e.editTemplateData,rules:e.templateRules,"label-width":"120px","label-position":"right"}},[a("div",{staticClass:"yiyunTable_list_item"},[a("div",{staticClass:"textlabelblock UserEditinfoBox DivInputHeight"},[a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"模板名称:",prop:"Temple.TempName"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-input",{attrs:{placeholder:"模板名称"},model:{value:e.editTemplateData.Temple.TempName,callback:function(t){e.$set(e.editTemplateData.Temple,"TempName",t)},expression:"editTemplateData.Temple.TempName"}})],1)])],1)]),e.editTemplateData.Temple.Id?e._e():a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"XMind文件:",required:""}},[a("div",{staticClass:"boolEdit_Input"},[a("div",[a("file-uploader",{attrs:{"http-request":e.uploadXMindFile,"on-success":e.onUploadSuccess}},[a("el-button",[e._v("上传XMind文件")])],1)],1)])])],1)]),a("div",{staticClass:"clear"}),e.editTemplateData.Temple.Id?a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"启用模板:"}},[a("div",{staticClass:"boolEdit_Input"},[a("div",{staticClass:"fr"},[a("el-switch",{attrs:{"active-color":"#8C00FF","inactive-color":"#ccc","active-value":"0","inactive-value":"1"},model:{value:e.editTemplateData.Temple.Disable,callback:function(t){e.$set(e.editTemplateData.Temple,"Disable",t)},expression:"\n editTemplateData.Temple.Disable\n "}})],1)])])],1)]):e._e(),e.editTemplateData.Temple.Id?a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"锁定模板:"}},[a("div",{staticClass:"boolEdit_Input"},[0==e.editTemplateData.Temple.Locked?a("span",{staticClass:"ECclockText"},[a("i",{staticClass:"ECclock mt-10 el-ecclock-o"})]):e._e(),1==e.editTemplateData.Temple.Locked?a("span",{staticClass:"ECclockText"},[a("i",{staticClass:"ECclock mt-10 el-ecclock"})]):e._e(),a("div",{staticClass:"fr"},[a("el-switch",{attrs:{"active-color":"#8C00FF","inactive-color":"#ccc","active-value":"1","inactive-value":"0"},model:{value:e.editTemplateData.Temple.Locked,callback:function(t){e.$set(e.editTemplateData.Temple,"Locked",t)},expression:"editTemplateData.Temple.Locked"}})],1)])])],1)]):e._e(),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"大行业:",prop:"Temple.FirstIndustryId"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getSonIndustry},model:{value:e.editTemplateData.Temple.FirstIndustryId,callback:function(t){e.$set(e.editTemplateData.Temple,"FirstIndustryId",t)},expression:"\n editTemplateData.Temple.FirstIndustryId\n "}},e._l(e.topIndList,(function(e){return a("el-option",{key:e.Id,attrs:{label:e.Name,value:e.Id}})})),1)],1)])],1)]),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"子行业:",prop:"Temple.DetailIndustryId"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-select",{attrs:{placeholder:"子行业名称"},model:{value:e.editTemplateData.Temple.DetailIndustryId,callback:function(t){e.$set(e.editTemplateData.Temple,"DetailIndustryId",t)},expression:"editTemplateData.Temple.DetailIndustryId"}},e._l(e.level2IndList,(function(e){return a("el-option",{key:e.Id,attrs:{label:e.Name,value:e.Id}})})),1)],1)])],1)]),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"细分行业:"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-input",{attrs:{placeholder:"细分行业"},model:{value:e.editTemplateData.IndLevel3,callback:function(t){e.$set(e.editTemplateData,"IndLevel3",t)},expression:"editTemplateData.IndLevel3"}})],1)])],1)]),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"自定义:"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-input",{attrs:{placeholder:"自定义"},model:{value:e.editTemplateData.IndLevel4,callback:function(t){e.$set(e.editTemplateData,"IndLevel4",t)},expression:"editTemplateData.IndLevel4"}})],1)])],1)]),a("div",{staticClass:"yiyun_col-12"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"介绍:"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-input",{attrs:{placeholder:"请输入模板简介"},model:{value:e.editTemplateData.Temple.Introduce,callback:function(t){e.$set(e.editTemplateData.Temple,"Introduce",t)},expression:"\n editTemplateData.Temple.Introduce\n "}})],1)])],1)])])]),a("div",{staticClass:"clear"}),a("div",{staticClass:"yiyunTable_list_item"},[a("div",{staticClass:"mlr-10"},[a("h3",{staticClass:"secondListTitle"},[e._v("模板概况")])]),a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line_light"})]),a("div",{staticClass:"yiyun_col-12"},[e._l(e.editTemplateData.TempleProperties,(function(t){return a("div",{key:t.Id,staticClass:"yiyun_col-6"},[a("div",{staticClass:"UserEditinfoBox DivInputHeight"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"自定义字段"}},[a("div",{staticClass:"boolEdit_Input noshodow"},[a("el-input",{attrs:{autofocus:!0},model:{value:t.PropertyName,callback:function(a){e.$set(t,"PropertyName",a)},expression:"item.PropertyName"}},[a("i",{staticClass:"el-icon-close el-input__icon deletIocn",attrs:{slot:"suffix",title:"删除"},on:{click:function(a){return e.removeProperty(t,e.editTemplateData)}},slot:"suffix"})])],1)])],1)])])})),a("div",{staticClass:"yiyun_col-6"},[a("div",{staticClass:"UserEditinfoBox DivInputHeight"},[a("div",{staticClass:"el-form-itemBox"},[a("el-form-item",{attrs:{label:"自定义字段"}},[a("div",{staticClass:"boolEdit_Input"},[a("el-button",{staticClass:"defualtLarge block-btn",on:{click:function(t){return e.addProperty(e.editTemplateData)}}},[e._v("新增填写项目")])],1)])],1)])])],2),a("div",{staticClass:"clear"})])])],1)]),a("div",{staticClass:"clear"})])])]):e._e(),a("div",{staticClass:"clear"}),a("div",{staticClass:"largecontentBox",staticStyle:{display:"none"}},[a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"yiyunTable_list"},[a("div",{staticClass:"mt-5"},[a("el-breadcrumb",{staticStyle:{cursor:"pointer","margin-bottom":"10px"},attrs:{"separator-class":"el-icon-arrow-right"}},[e.breadcrumb_item.length>1?a("el-breadcrumb-item",[a("span",{on:{click:function(t){return e.backUp()}}},[e._v("返回上一级 ")])]):e._e(),e._l(e.breadcrumb_item,(function(t,i){return a("el-breadcrumb-item",{key:i},[a("span",{on:{click:function(a){return e.getbreadcrumb(t,i)}}},[e._v(e._s(t.nodeName))])])}))],2),[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.listWorkFolderTable},on:{"row-contextmenu":e.tableRightClick}},[a("el-table-column",{attrs:{prop:"",label:"",width:"36"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{attrs:{src:"/static/img/icon_file.png"}})]}}],null,!1,3948577977)}),a("el-table-column",{attrs:{prop:"nodeName",label:"工作文件夹"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{cursor:"pointer"},on:{click:function(a){return e.getFolderNodeData(t.row)}}},[e._v(e._s(t.row.nodeName))])]}}],null,!1,790194702)}),1==e.eidtFiles?a("el-table-column",{attrs:{label:"操作",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.reNameFolder(t.row)}}},[e._v("重命名")]),a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.delFolder(t.row)}}},[e._v("删除")])]}}],null,!1,2104173712)}):e._e()],1)]],2)])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMatrixTemplatePane,expression:"isShowMatrixTemplatePane"}],staticClass:"largecontentBox"},[a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"yiyunTable_list"},[a("div",{staticClass:"mt-10"}),a("div",[a("div",{staticClass:"contain"},[a("table",{staticClass:"tb1 bordertable",attrs:{cellspacing:"0",id:"tablestyle"}},[a("tr",{directives:[{name:"show",rawName:"v-show",value:""!=e.listMatirxPermission,expression:"listMatirxPermission != ''"}]},[e._m(3),e._m(4),e._l(e.listMatirxPermission,(function(t){return a("td",{key:t.id,staticClass:"topaccept bg_gray",staticStyle:{"background-color":"#e2e2e2"},attrs:{id:t.sysCode}},[a("div",[e._v("编码"+e._s(t.sysCode))])])}))],2),a("tr",{directives:[{name:"show",rawName:"v-show",value:""!=e.listMatirxPermission,expression:"listMatirxPermission != ''"}],staticClass:"tb2 bordertable",attrs:{cellspacing:"0"}},[e._m(5),e._m(6),e._l(e.listMatirxPermission,(function(t){return a("td",{key:t.id,staticClass:"topinput",attrs:{id:t.sysCode}},[a("div",[e._v(e._s(t.nodeName))])])}))],2),e._l(e.listMatirxPermission,(function(t,i){return a("tr",{key:t.id,attrs:{id:t.sysCode}},[a("th",{staticClass:"indexlistItem"},[a("div",[e._v(e._s(i))])]),a("th",{staticClass:"collabel"},[a("div",[e._v(e._s(t.nodeName))])]),e._l(t.listNodePerm,(function(s,n){return a("td",{key:s.id,class:n%2==1&&n>i||i%2==1&&n1?a("el-breadcrumb-item",[a("span",{on:{click:function(t){return e.backUp()}}},[a("i",{staticClass:"backprevIcon el-icon-arrow-left"})])]):e._e(),e._l(e.breadcrumb_item,(function(t,i){return a("el-breadcrumb-item",{key:i},[a("span",{on:{click:function(a){return e.getbreadcrumb(t,i)}}},[e._v(e._s(t.nodeName))])])}))],2)],1),[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.listWorkFolderTable},on:{"row-contextmenu":e.tableRightClick}},[a("el-table-column",{attrs:{prop:"",label:"",width:"36"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{attrs:{src:"/static/img/icon_file.png"}})]}}],null,!1,3948577977)}),a("el-table-column",{attrs:{prop:"nodeName",label:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{cursor:"pointer"},on:{click:function(a){return e.getFolderNodeData(t.row)}}},[e._v(e._s(t.row.nodeName))])]}}],null,!1,790194702)}),1==e.eidtFiles?a("el-table-column",{attrs:{label:"操作",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.reNameFolder(t.row)}}},[e._v("重命名")]),a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.delFolder(t.row)}}},[e._v("删除")])]}}],null,!1,2104173712)}):e._e()],1)]],2),void 0],2),a("div",{staticClass:"clear"}),a("div",{staticClass:"largecontentBox",staticStyle:{display:"none"}},[a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"yiyunTable_list"},[a("div",{staticClass:"mt-5"},[a("el-breadcrumb",{staticStyle:{cursor:"pointer","margin-bottom":"10px"},attrs:{"separator-class":"el-icon-arrow-right"}},[e.breadcrumb_item.length>1?a("el-breadcrumb-item",[a("span",{on:{click:function(t){return e.backUp()}}},[e._v("返回上一级 ")])]):e._e(),e._l(e.breadcrumb_item,(function(t,i){return a("el-breadcrumb-item",{key:i},[a("span",{on:{click:function(a){return e.getbreadcrumb(t,i)}}},[e._v(e._s(t.nodeName))])])}))],2),[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.listWorkFolderTable},on:{"row-contextmenu":e.tableRightClick}},[a("el-table-column",{attrs:{prop:"",label:"",width:"36"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{attrs:{src:"/static/img/icon_file.png"}})]}}],null,!1,3948577977)}),a("el-table-column",{attrs:{prop:"nodeName",label:"工作文件夹"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{cursor:"pointer"},on:{click:function(a){return e.getFolderNodeData(t.row)}}},[e._v(e._s(t.row.nodeName))])]}}],null,!1,790194702)}),1==e.eidtFiles?a("el-table-column",{attrs:{label:"操作",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.reNameFolder(t.row)}}},[e._v("重命名")]),a("span",{staticClass:"option_grayBtn ml-20",on:{click:function(a){return e.delFolder(t.row)}}},[e._v("删除")])]}}],null,!1,2104173712)}):e._e()],1)]],2)])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowMatrixTemplatePane,expression:"isShowMatrixTemplatePane"}],staticClass:"largecontentBox"},[a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"yiyunTable_list"},[a("div",{staticClass:"mt-10"}),a("div",[a("div",{staticClass:"contain"},[a("table",{staticClass:"tb1 bordertable",attrs:{cellspacing:"0",id:"tablestyle"}},[a("tr",{directives:[{name:"show",rawName:"v-show",value:""!=e.listMatirxPermission,expression:"listMatirxPermission != ''"}]},[e._m(9),e._m(10),e._l(e.listMatirxPermission,(function(t){return a("td",{key:t.id,staticClass:"topaccept bg_gray",staticStyle:{"background-color":"#e2e2e2"},attrs:{id:t.sysCode}},[a("div",[e._v("编码"+e._s(t.sysCode))])])}))],2),a("tr",{directives:[{name:"show",rawName:"v-show",value:""!=e.listMatirxPermission,expression:"listMatirxPermission != ''"}],staticClass:"tb2 bordertable",attrs:{cellspacing:"0"}},[e._m(11),e._m(12),e._l(e.listMatirxPermission,(function(t){return a("td",{key:t.id,staticClass:"topinput",attrs:{id:t.sysCode}},[a("div",[e._v(e._s(t.nodeName))])])}))],2),e._l(e.listMatirxPermission,(function(t,i){return a("tr",{key:t.id,attrs:{id:t.sysCode}},[a("th",{staticClass:"indexlistItem"},[a("div",[e._v(e._s(i))])]),a("th",{staticClass:"collabel"},[a("div",[e._v(e._s(t.nodeName))])]),e._l(t.listNodePerm,(function(s,n){return a("td",{key:s.id,class:n%2==1&&n>i||i%2==1&&n0?a("span",{staticClass:"processCss"},[e._v(e._s(t.row.count))]):e._e(),t.row.count>0?a("el-progress",{staticClass:"currZindex",attrs:{"text-inside":!0,"stroke-width":24,percentage:Math.round(t.row.count/t.row.totalCount*100),"show-text":!1,color:Math.round(t.row.count/t.row.totalCount*100)>=60?"#4A90E2":Math.round(t.row.count/t.row.totalCount*100)>=30?"#4AE2A6":Math.round(t.row.count/t.row.totalCount*100)>0?"#F8D12A":"white"}}):e._e()]}}])})],1)],1)])])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.treeMenuVisible,expression:"treeMenuVisible"}]},[a("ul",{staticClass:"automenu",attrs:{id:"treeMenu"}},[a("li",{staticClass:"menu__item",on:{click:function(t){return t.stopPropagation(),e.reNameTemplate(t)}}},[e._v("重命名节点")])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.tableMenuVisible,expression:"tableMenuVisible"}]},[a("ul",{staticClass:"automenu",attrs:{id:"tableMenu"}},[a("li",{staticClass:"menu__item",on:{click:e.newInsertFolder}},[e._v("新增文件夹")]),a("li",{staticClass:"menu__item",on:{click:function(t){return e.reNameFolder(1)}}},[e._v("重命名")]),a("li",{staticClass:"menu__item",on:{click:e.delFolder}},[e._v("删除")])])]),a("context-menu",{staticClass:"automenu",attrs:{id:"treeSpaceMenu",show:e.treeSpaceMenuVisible},on:{"update:show":function(t){return e.treeSpaceMenuVisible=t}}},[a("ul",[a("li",{staticClass:"menu__item",on:{click:e.createInsertTemplate}},[e._v("新增模板")]),a("li",{staticClass:"menu__item",on:{click:e.createLargeIndustry}},[e._v("新增行业")])])]),a("context-menu",{staticClass:"automenu",attrs:{id:"MatrixLookInfoMenu",show:e.MatrixLookInfoMenuVisible},on:{"update:show":function(t){return e.MatrixLookInfoMenuVisible=t}}},[a("ul",[a("li",{staticClass:"menu__item"},[e._v(e._s(e.matrixVerticalName))]),a("li",{staticClass:"menu__item"},[a("el-button",{class:e.btnMatrixLookInfo,on:{click:e.matrixRightNodeClick}},[e._v("输出数据")])],1),a("li",{staticClass:"menu__item"},[e._v(e._s(e.matrixHorizontalName))])])]),a("el-dialog",{staticStyle:{"margin-top":"8%"},attrs:{visible:e.isImportDialog,width:"28%","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,center:""},on:{"update:visible":function(t){e.isImportDialog=t}}},[a("el-form",{staticClass:"editnone el-form-item__label",staticStyle:{"margin-left":"10%"}},[a("el-form-item",{attrs:{label:"模板名称:"}},[a("div",{staticClass:"eidit_Input"},[a("el-input",{model:{value:e.importTempName,callback:function(t){e.importTempName=t},expression:"importTempName"}})],1)]),a("el-form-item",{attrs:{label:"已选文件:"}},[a("el-input",{attrs:{disabled:!0},model:{value:e.importXmindName,callback:function(t){e.importXmindName=t},expression:"importXmindName"}})],1),a("div",{staticClass:"upHeadImg",staticStyle:{"margin-bottom":"30px"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.cancelImport()}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.enterImport()}}},[e._v("确 定")])],1)],1)],1)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"EC_col_8"},[a("div",{staticClass:"adminnavBox"},[a("h3",[e._v("模板列表")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"EC_col_8"},[a("div",{staticClass:"EC_searchBox"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"accptwid topaccept",staticStyle:{"background-color":"#fff"}},[a("div")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"topaccept bg_gray",staticStyle:{"background-color":"#e2e2e2"}},[a("div",[e._v("接收")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"accptwid topinput"},[a("div",[e._v("输出")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"topinput",staticStyle:{"background-color":"rgb(255, 210, 78)"}},[a("div",[e._v("矩阵节点")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("h4",{staticClass:"admintitle"},[e._v(" 列表查看模式 ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"accptwid topaccept",staticStyle:{"background-color":"#fff"}},[a("div")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"topaccept bg_gray",staticStyle:{"background-color":"#e2e2e2"}},[a("div",[e._v("接收")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"accptwid topinput"},[a("div",[e._v("输出")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("th",{staticClass:"topinput",staticStyle:{"background-color":"rgb(255, 210, 78)"}},[a("div",[e._v("矩阵节点")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("h4",{staticClass:"admintitle"},[e._v("总体概况")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mlr-10"},[a("div",{staticClass:"border-line"})])}],n=(a("99af"),a("4de4"),a("4160"),a("c975"),a("a15b"),a("baa5"),a("d81d"),a("13d5"),a("fb6a"),a("a434"),a("b0c0"),a("d3b7"),a("ac1f"),a("3ca3"),a("5319"),a("1276"),a("498a"),a("159b"),a("ddb0"),a("5530")),r=a("3835"),l=(a("96cf"),a("1da1")),o=a("b0f9"),c=a("b3b1"),u=a("9e5b"),d=a("3de1"),m=a("2ef0"),p=a("b775"),f={components:{FileUploader:u["a"]},data:function(){return{isShowEditBtn:!0,isShowSaveBtn:!1,isImportDialog:!1,eidtFiles:!1,treeMenuVisible:!1,treeSpaceMenuVisible:!1,tableMenuVisible:!1,tableSpaceMenuVisible:!1,MatrixLookInfoMenuVisible:!1,isShowZoom:!1,isShowMindTemplatePane:!1,isShowListTemplatePane:!0,isShowMatrixTemplatePane:!1,isShowLookIndustryInfo:!1,isShowNewIndustry:!1,isShowBigIndustry:!1,isShowSonIndustry:!1,isShowModelpanel:!1,isShowXmindBtn:!1,isShowTempInfo:!1,boolEdit:!1,el_formLabelcolor:"textlabelgray",listTemplateTree:[],listWorkFolderTable:[],breadcrumb_item:[{nodeName:"全部"}],contentpain:"1",templateID:"",templateName:"",superID:"",treeMenuClickData:[],tableMenuClickData:[],tableRightEventData:[],listTemplateMindTree:[],listMatirxPermission:[],matrixRightNodeData:"",createIndustryName:"",listBigIndustry:[],listSonIndustry:[],listDetailIndustry:[],listTemplateClassify:[],listTempProp:[],listTempIndustury:[],selectBigIndustryIndex:"",selectSonIndustryIndex:"",selectDetailIndustryIndex:"",currTemplateFullCode:"",industryName:"",industryCode:"",lookIndustryBigName:"",lookIndustryCode:"",lookIndustrySonName:"",newTemplateCustomCode:"",listProperty:[],introduce:"",newTemplateName:"",searhNodeName:"",mindZoom:.8,filterTreeText:"",chunkUploadUrl:"/api/webupload/chunks",uploadProjId:"123456852963",uploadCompId:sessionStorage.companyId,uploadTypeCover:2,uploadCoverTimes:0,importUrl:"",importTempName:"",importXmindName:"",uploadLabel:"选择XMind文件",matrixVerticalName:"",matrixHorizontalName:"",btnMatrixLookInfo:"martixLeaveColor",templateRules:{"Temple.TempName":[{required:!0,message:"请输入模板名称",trigger:["blur","change"]}],"Temple.FirstIndustryId":[{required:!0,message:"请选择大行业",trigger:"change"}],"Temple.DetailIndustryId":[{required:!0,message:"请选择子行业",trigger:"change"}]},editTemplateData:{Temple:{},ChildIndustry:"",TempleProperties:[]},currentTemplateData:{Temple:{},ChildIndustry:"",TempleProperties:[]},eidtModelpane:!1,ModelForm:{mName:"",used:!1,clock:!1,mparentType:"",mchildType:"",mgrandsonType:"",mcode:"",mNumber:"",mDesc:"",mself_1:"",mself_2:"",mself_3:"",mself_4:""},mainPane:"1",arrayIndustryID:[],loading:!1,nowCount:0,allIndList:[],topIndList:[],level2IndList:[],mapIndIdToIndName:{},mapIndIdToIndNode:{},isXimdUpLoadSuccess:!1}},created:function(){this.getListTemplateClassify(),this.getTemplateData()},methods:{getTempNameAndData:function(e,t){if(this.isShowIndustry(),"default"==e.id)this.contentpain=3;else if("template"===e.type){this.eidtModelpane&&this.cancelEdit();var a=e;this.contentpain=1,this.templateName=a.label,this.templateID=a.id,this.treeMenuClickData=a,this.getTemplateDetail(a.id),this.listMatirxPermission=[],this.breadcrumb_item=[{nodeName:"全部"}],this.isShowTempInfo=!0,this.nowCount=0}else{this.contentpain=2;var i=e,s=i.data.LevelId,n=s.split("-");if(n.length>0){var r=this.$refs.tree.getNode(n[0]);this.lookIndustryBigName=r.label}if(n.length>1){var l=this.$refs.tree.getNode(n[1]);this.lookIndustrySonName=l.label,this.lookIndustryCode=l.data.data.code}this.createIndustryName=i.label,this.isShowLookIndustryInfo=!0,this.selectBigIndustryIndex=0}},getListTemplateClassify:function(){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function t(){var a,i,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$fetchApi("template/queryTemplateQuoteCount");case 2:a=t.sent,Object(p["c"])(a),i=a.Data||[],s=i.reduce((function(e,t){return(t.Count||0)+e}),0),e.listTemplateClassify=i.map((function(e){return{tempName:e.TempName,count:e.Count,totalCount:s}}));case 7:case"end":return t.stop()}}),t)})))()},getFolderNodeData:function(e){this.getFolderData(e.nodeID,e.templateID),this.templateID=e.templateID,this.breadcrumb_item.push(e)},getbreadcrumb:function(e,t){this.breadcrumb_item.length-1!=t&&("全部"==e.nodeName?this.getFolderData(this.templateID,this.templateID):this.getFolderData(e.nodeID,e.templateID));for(var a=0;at&&this.breadcrumb_item.splice(a)},backUp:function(){var e=this.breadcrumb_item.length-2;"全部"==this.breadcrumb_item[e].nodeName?this.getFolderData(this.templateID,this.templateID):this.getFolderData(this.breadcrumb_item[e].nodeID,this.breadcrumb_item[e].templateID),this.breadcrumb_item.splice(this.breadcrumb_item.length-1)},matirxMouseEnter:function(e,t){this.MatrixLookInfoMenuVisible=!1,this.mousueCheckChangeColor(e,"orange")},mousueCheckChangeColor:function(e,t){var a="";"orange"==t?a="2px solid orange":"green"==t&&(a="2px solid green");for(var i=0;i50)t.$notify({message:"名称过长,最多可输入50个字",type:["warning"],offset:100,duration:2500});else{var s={templateID:t.templateID,superID:t.superID,nodeName:i,createUserID:sessionStorage.userId,modifyUserID:sessionStorage.userId};e.$axios({method:"post",url:encodeURI("/api/Templates/nodes"),data:s}).then((function(e){1==e.data.state?(t.$notify({message:"文件夹创建成功",type:["success"],duration:2500}),t.getFolderData(t.superID,t.templateID)):t.$notify({message:e.data.message,type:["error"],duration:2500})})).catch((function(e){console.log(e)}))}}))},modifyTemplate:function(){var e=this,t=this;t.$refs["tempform"].validate(function(){var a=Object(l["a"])(regeneratorRuntime.mark((function a(i){var s,n,r,l,c,u;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i){a.next=2;break}return a.abrupt("return");case 2:if(s=Object(m["cloneDeep"])(e.editTemplateData),n=s.TempleProperties,r=!!s.Temple.Id,l=r?"编辑":"创建",r||s.Node&&0!==s.Node.length){a.next=9;break}return d["d"].warning("Xmind文件尚未上传。"),a.abrupt("return");case 9:return r&&(s.Temple.Disable=+s.Temple.Disable,s.Temple.Locked=+s.Temple.Locked),s.ChildIndustry=[s.IndLevel3,s.IndLevel4].filter((function(e){return e})).join(","),s.Templepeoperty=n.map((function(e){return e.PropertyName})).join(","),e.loading=!0,a.next=15,r?o["s"](s):o["d"](s);case 15:if(c=a.sent,t.loading=!1,0===c.Code){a.next=19;break}return a.abrupt("return");case 19:u=e.editTemplateData.Temple.TempName||"",d["d"].success("模板“".concat(u,"”").concat(l,"完成。")),r?(e.treeMenuClickData.data.tempName=e.editTemplateData.Temple.TempName,e.treeMenuClickData.label=e.editTemplateData.Temple.TempName,e.templateName=e.editTemplateData.Temple.TempName,e.isShowTempInfo=!0,e.eidtModelpane=!1,e.currentTemplateData=e.editTemplateData):(t.isShowModelpanel=!1,t.isShowLookIndustryInfo=!0,t.getTemplateData(),t.getListTemplateClassify());case 22:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}())},reNameFolder:function(e){var t=this,a=this;1!=e&&(a.tableMenuClickData=e);var i=a.tableMenuClickData;this.$prompt("当前文件夹名称: "+i.nodeName,"重命名",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/\S/,inputErrorMessage:"名称不能为空"}).then((function(e){var s=e.value;s.trim().length>50?a.$notify({message:"名称过长,最多可输入50个字",type:["warning"],offset:100,duration:2500}):(i.nodeName=s,t.$axios({method:"put",url:encodeURI("/api/Templates/nodes/"),data:i}).then((function(e){1==e.data.state&&a.$notify({message:"重命名成功",type:["success"],offset:100,duration:2500})})).catch((function(e){console.log(e)})))})).catch((function(){a.$notify.warning({message:"操作已取消",offset:100,duration:2500})})),this.tableMenuClickData=[]},delFolder:function(e){var t=this,a=this;0==a.tableMenuClickData.length&&(a.tableMenuClickData=e);var i=a.tableMenuClickData.nodeName,s=a.tableMenuClickData.nodeID,n=a.tableMenuClickData.superID,r=a.tableMenuClickData.templateID;this.$confirm("您正在删除 "+i+" 文件夹是否继续?","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$axios({method:"delete",url:encodeURI("/api/Templates/nodes/"+s+"/"+i+"/"+sessionStorage.userId)}).then((function(e){a.$notify({message:e.data.message,type:["success"],offset:100,duration:2500}),a.getFolderData(n,r)})).catch((function(e){console.log(e)}))})),this.tableMenuClickData=[]},reNameTemplate:function(){var e,t,a=this,i=this;1==i.treeMenuClickData.isLeaf?(e=i.treeMenuClickData.data.tempName,t="模板重命名"):(e=i.treeMenuClickData.data.name,t="行业重命名"),this.$prompt("当前名称: "+i.treeMenuClickData.label,t,{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/\S/,inputValue:e,inputErrorMessage:"名称不能为空"}).then(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var s,n,r,l,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t.value,1!=i.treeMenuClickData.isLeaf){e.next=9;break}return n={id:i.treeMenuClickData.id,tempName:s},e.next=5,o["r"](n);case 5:r=e.sent,0==r.Code&&(a.$notify({message:"模板重命名成功",type:"success"}),i.treeMenuClickData.data.tempName=s,a.currentTemplateData.Temple.TempName=s,a.templateName=s,i.treeMenuClickData.label=s),e.next=14;break;case 9:return l={id:i.treeMenuClickData.id,industryName:s},e.next=12,Object(c["b"])(l);case 12:u=e.sent,0==u.Code&&(a.$notify({message:"行业重命名成功",type:"success"}),i.treeMenuClickData.data.name=s,i.createIndustryName=s,i.treeMenuClickData.label=s);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){i.$notify.warning({message:"操作已取消",offset:100,duration:2500})}))},disableTemplate:function(){var e=this,t=this;this.$confirm("当前模板名称: "+t.treeMenuClickData.tempName,"禁用",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.treeMenuClickData.disable=1,e.$axios({method:"put",url:encodeURI("/api/Templates/"),data:t.treeMenuClickData}).then((function(e){1==e.data.state&&t.$notify({message:"禁用模板成功",type:["success"],offset:100,duration:2500}),t.getTemplateData()})).catch((function(e){console.log(e)}))})).catch((function(){t.$notify.warning({message:"操作已取消",offset:100,duration:2500})}))},delTemplate:function(){var e=this;if(0!=this.treeMenuClickData.isLeaf){var t=this;this.$confirm("您正在删除 "+t.treeMenuClickData.label+" 模板是否继续?","删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$axios({method:"delete",url:encodeURI("/api/Templates/"+t.treeMenuClickData.data.templateID+"/"+t.treeMenuClickData.label+"/"+sessionStorage.userId)}).then((function(e){t.$notify({message:e.data.message,type:["success"],offset:100,duration:2500}),t.$refs.tree.remove(t.treeMenuClickData)})).catch((function(e){console.log(e)}))}))}else this.deleteIndustry(this.treeMenuClickData)},delTemplateClick:function(){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function t(){var a,i,s,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.currentTemplateData,i=a.Temple.Id,t.next=4,o["q"](i);case 4:if(s=t.sent,n=a.Temple.TempName||"",!(0==s.Code&&s.Data>0)){t.next=9;break}return e.$notify({type:["error"],message:"当前有项目使用该模板 无法删除模板"}),t.abrupt("return");case 9:e.$confirm("您正在删除 ["+n+"] 模板是否继续?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(l["a"])(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["f"](a.Temple.Id);case 2:if(i=t.sent,0===i.Code){t.next=5;break}return t.abrupt("return");case 5:d["d"].success("模板“".concat(n,"”删除成功")),e.getTemplateData(),e.getListTemplateClassify();case 8:case"end":return t.stop()}}),t)}))));case 10:case"end":return t.stop()}}),t)})))()},importXmind:function(){this.isImportDialog=!0,this.importXmindName="",this.importTempName="",this.importUrl=""},enterImport:function(){var e=this,t="",a="";if(0==this.treeMenuClickData.isLeaf&&3==this.treeMenuClickData.data.level){var i=this.treeMenuClickData.data.levelID.split("-");t=i[0],a=i[2]}else 1==this.treeMenuClickData.isLeaf&&(t=this.treeMenuClickData.data.firstIndustryID,a=this.treeMenuClickData.data.detailIndustryID);var s=this;if(s.uploadCoverTimes>0){var n={xMindFilePath:s.importUrl.replace("\\","\\\\"),tempName:s.importTempName,type:0,firstIndustryID:t,detailIndustryID:a,companyId:sessionStorage.companyId,userId:sessionStorage.userId};this.$axios({method:"post",url:encodeURI("/api/templates/XMind"),data:n}).then((function(t){s.$notify({message:t.data.message,type:["success"],offset:100,duration:2500}),e.isImportDialog=!1,e.getTemplateData()})).catch((function(e){console.log(e)}))}},getMatirxPermission:function(){var e=this,t=this;this.$axios({method:"get",url:encodeURI("/api/templates/nodes/tree/"+t.templateID)}).then((function(a){for(var i=a.data,s=0;s0)for(var t=0;t1800?e.style.left=event.clientX-100+"px":e.style.left=event.clientX+1+"px",document.addEventListener("click",this.foo),event.clientY>700?1==this.treeMenuVisible?e.style.top=event.clientY-150+"px":1==this.MatrixLookInfoMenuVisible?e.style.top=event.clientY-100+"px":e.style.top=event.clientY-30+"px":e.style.top=event.clientY-10+"px"},coverUploadSuccess:function(e){this.uploadCoverTimes=this.uploadCoverTimes+1,this.importUrl=e.filePath,this.importXmindName=e.fileName},uploadXMindFile:function(e){var t=e.file;return o["t"](t)},onUploadSuccess:function(e){var t=e.response;0===t.Code?(d["d"].success("Xmind文件解析成功。"),this.editTemplateData.Node=t.Data,this.isXimdUpLoadSuccess=!0):d["d"].warning("请上传正确的Xmind文件。")},createLargeIndustry:function(){this.isShowIndustry(),this.createIndustryName="新增大行业",this.isShowNewIndustry=!0},createChildIndustry:function(e){var t;switch(this.isShowIndustry(),this.createIndustryName="新增子行业",this.isShowBigIndustry=!0,this.isShowNewIndustry=!0,e.level){case 1:t=this.$refs.tree.getNode(e.industryID),this.selectBigIndustryIndex=this.listTemplateTree.lastIndexOf(t.data);break;case 2:t=this.$refs.tree.getNode(e.superID),this.selectBigIndustryIndex=this.listTemplateTree.lastIndexOf(t.data);break}},createNextChildIndustry:function(e){var t,a;switch(this.isShowIndustry(),this.createIndustryName="新增细分行业",this.isShowBigIndustry=!0,this.isShowSonIndustry=!0,this.isShowNewIndustry=!0,e.level){case 2:t=this.$refs.tree.getNode(e.superID),this.selectBigIndustryIndex=this.listTemplateTree.lastIndexOf(t.data),this.listSonIndustry=this.listTemplateTree[this.selectBigIndustryIndex].children,a=this.$refs.tree.getNode(e.industryID),this.selectSonIndustryIndex=this.listSonIndustry.lastIndexOf(a.data);break;case 3:a=this.$refs.tree.getNode(e.superID),t=this.$refs.tree.getNode(a.data.data.superID),this.selectBigIndustryIndex=this.listTemplateTree.lastIndexOf(t.data),this.listSonIndustry=this.listTemplateTree[this.selectBigIndustryIndex].children,this.selectSonIndustryIndex=this.listSonIndustry.lastIndexOf(a.data);break}},createInsertTemplate:function(){this.isShowIndustry(),this.importXmindName="",this.createIndustryName="新增模板",this.isShowModelpanel=!0,this.isXimdUpLoadSuccess=!1},isShowIndustry:function(){this.contentpain="2",this.isShowNewIndustry=!1,this.isShowBigIndustry=!1,this.isShowSonIndustry=!1,this.isShowModelpanel=!1,this.isShowLookIndustryInfo=!1,this.isShowTempInfo=!1,this.clearNewInsertInfo()},cacelNewInfustry:function(){this.isShowNewIndustry=!1,this.isShowLookIndustryInfo=!0},cacelInsertTemplate:function(){var e=this;this.$confirm("取消操作会清除当前所填写的模板信息,是否确认取消?","",{confirmButtonText:"确定",cancelButtonText:"返回",type:"warning",showClose:!1}).then((function(){e.isShowModelpanel=!1,e.isShowLookIndustryInfo=!1,e.getListTemplateClassify(),e.contentpain=3}))},clearNewInsertInfo:function(){this.listBigIndustry=[],this.listSonIndustry=[],this.listDetailIndustry=[],this.listProperty=[],this.industryName="",this.industryCode="",this.selectSonIndustryIndex="",this.selectDetailIndustryIndex="",this.selectBigIndustryIndex="",this.newTemplateName="",this.newTemplateCustomCode="",this.currTemplateFullCode="",this.currentTemplateData={Temple:{},TempleProperties:[]},this.editTemplateData={Temple:{},TempleProperties:[]}},getSonIndustry:function(e){this.level2IndList=this.allIndList.filter((function(t){return 2===t.Level&&t.SuperId===e})),this.currentTemplateData.Temple.DetailIndustryId=void 0,this.editTemplateData.Temple.DetailIndustryId=void 0},refreshFormData:function(){this.editTemplateData.Temple=Object(n["a"])({},this.editTemplateData.Temple)},filterTreeNode:function(e,t){return!e||-1!==t.label.indexOf(e)},addProperty:function(e){var t={PropertyName:"",Id:"".concat(Math.random()).slice(2,6),CreateTime:new Date};e.TempleProperties.push(t)},removeProperty:function(e,t){t.TempleProperties=t.TempleProperties.filter((function(t){return t!==e}))},editmodelInfo:function(){this.isShowTempInfo=!1,this.eidtModelpane=!0;var e=this.editTemplateData=Object(m["cloneDeep"])(this.currentTemplateData);this.level2IndList=this.allIndList.filter((function(t){return 2===t.Level&&t.SuperId===e.Temple.FirstIndustryId}))},cancelEdit:function(){this.isShowTempInfo=!0,this.eidtModelpane=!1},savemodelInfo:function(){this.modifyTemplate("editTemplateForm")},goscanList:function(){this.mainPane="2"},goNodeFile:function(){this.$router.push({name:"system_template_file",params:{id:this.templateID,data:this.treeMenuClickData}})},goscanMind:function(){sessionStorage.templateID=this.templateID,this.$router.push({name:"system_template_mind",params:{name:this.templateName,id:this.templateID,data:this.treeMenuClickData}})},goscanMatrix:function(){this.$router.push({name:"system_template_matrix",params:{name:this.templateName,id:this.templateID,data:this.treeMenuClickData}})},backmodlemain:function(){this.mainPane="1"},toNodeFile:function(){var e=this.currentTemplateData;this.$router.push({name:"system_template_file",params:{id:e.Temple.Id,data:e.Temple}})},getTemplateDetail:function(e){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function a(){var i,s,n,l,c,u,d,m,p,f,h,v,b;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Promise.all([o["n"](e),o["q"](e)]);case 2:if(i=a.sent,s=Object(r["a"])(i,2),n=s[0],l=s[1],c=t.mapIndIdToIndNode,t.nowCount=l.Data||0,0===n.Code){a.next=10;break}return a.abrupt("return");case 10:u=n.Data,d=u.propertys,m=u.template,p=d.map((function(e){return e.Id=e.Id||e.PropertyName,e})),f=t.currentTemplateData={Temple:m,TempleProperties:p},h=m.CustomCode,h&&"0"!==h&&(v=c[h],4===v.data.Level?(f.IndLevel4=v.label,b=c[v.parentId],f.IndLevel3=b.label):f.IndLevel3=v.label),f.Temple.Disable="".concat(f.Temple.Disable),f.Temple.Locked="".concat(f.Temple.Locked);case 17:case"end":return a.stop()}}),a)})))()}},watch:{filterTreeText:function(e){this.$refs.tree.filter(e)}}};function h(e,t){var a={},i=e.reduce((function(e,t){var a="0"!==t.CustomCode&&t.CustomCode?t.CustomCode:void 0,i=a||t.DetailIndustryId,s={id:t.Id,label:t.TempName,parentId:i,isLeaf:!0,type:"template",data:t};return e[i]=(e[i]||[]).concat(s),e}),{}),s=t.reduce((function(e,t){var i="0"!==t.SuperId&&t.SuperId?t.SuperId:null,s={id:t.Id,label:t.Name,parentId:i,data:t,type:"industry",children:[],isLeaf:!1};return e[0][s.id]=s,e[1].unshift(s),a[s.id]=s,i&&(e[2][i]||(e[2][i]=[]),e[2][i].push(s)),1===t.Level&&e[3].push(s),e}),[{},[],{},[]]),n=Object(r["a"])(s,4),l=n[0],o=n[1],c=n[2],u=n[3];return o.forEach((function(e){var t=c[e.id];t&&(e.children=e.children.concat(t));var a=i[e.id];if(a&&(e.children=e.children.concat(a)),0===e.children.length){var s=l[e.parentId],n=s?c[s.id]:u;n.splice(n.indexOf(e),1)}})),[u,a]}var v=f,b=(a("b764"),a("2877")),y=Object(b["a"])(v,i,s,!1,null,"d7109108",null);t["default"]=y.exports},"9e5b":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-upload",{attrs:{action:"","http-request":e.httpRequest||e.handleUpload,"before-upload":e.beforeUpload,showFileList:e.showFileList,"on-success":e.handleSuccess},scopedSlots:e._u([e._l(e.$slots,(function(t,a){return{key:a,fn:function(){return[e._t(a)]},proxy:!0}}))],null,!0)})},s=[],n=(a("b0c0"),a("5530")),r=a("5ab9"),l=a("2ef0"),o={name:"Upload",props:{showFileList:{type:Boolean,default:!1},onSuccess:{type:Function,default:l["noop"]},httpRequest:{type:Function,default:null}},methods:{handleSuccess:function(e,t,a){e?this.onSuccess(Object(n["a"])(Object(n["a"])({},t),{},{ossUrl:e.name}),a):console.log(e,t)},beforeUpload:function(e){return console.log("fileInfo: ",e),!0},handleUpload:function(e){var t=e.file;e.onSuccess,e.onError,e.file.name;return r["b"](t.name,t)}}},c=o,u=a("2877"),d=Object(u["a"])(c,i,s,!1,null,null,null);t["a"]=d.exports},a434:function(e,t,a){"use strict";var i=a("23e7"),s=a("23cb"),n=a("a691"),r=a("50c4"),l=a("7b0b"),o=a("65f0"),c=a("8418"),u=a("1dde"),d=a("ae40"),m=u("splice"),p=d("splice",{ACCESSORS:!0,0:0,1:2}),f=Math.max,h=Math.min,v=9007199254740991,b="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!m||!p},{splice:function(e,t){var a,i,u,d,m,p,y=l(this),C=r(y.length),_=s(e,C),I=arguments.length;if(0===I?a=i=0:1===I?(a=0,i=C-_):(a=I-2,i=h(f(n(t),0),C-_)),C+a-i>v)throw TypeError(b);for(u=o(y,i),d=0;dC-i+a;d--)delete y[d-1]}else if(a>i)for(d=C-i;d>_;d--)m=d+i-1,p=d+a-1,m in y?y[p]=y[m]:delete y[p];for(d=0;d1&&(r=o(r,s(arguments[1]))),r<0&&(r=a+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:c}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-7a18b3e4.4656f19e.js b/dist/static/js/chunk-7a18b3e4.4656f19e.js new file mode 100644 index 00000000..ce43b3ca --- /dev/null +++ b/dist/static/js/chunk-7a18b3e4.4656f19e.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a18b3e4"],{"01a8":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?n("div",{staticClass:"app-header-top"},[n("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[n("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),n("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),n("div",{staticClass:"top-center"}),n("div",{staticClass:"top-right"},[n("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[n("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),n("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),n("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?n("div",{staticClass:"app-header-top"}):e._e(),n("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),n("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?n("span",{on:{click:e.toRecycle}},[n("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?n("user-center"):e._e()],2)])])},a=[],i=n("1392"),s=n("1d40"),o={components:{UserCenter:i["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:s["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize},isOnLine:function(){return this.$store.state.gatewayState}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){s["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),s["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),s["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){s["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=o,u=(n("8fc1"),n("2877")),l=Object(u["a"])(c,r,a,!1,null,"06f5aedd",null);t["a"]=l.exports},"0999":function(e,t,n){"use strict";var r=n("f2e8"),a=n.n(r);a.a},"8fc1":function(e,t,n){"use strict";var r=n("99ab"),a=n.n(r);a.a},"99ab":function(e,t,n){},ad8f:function(e,t,n){"use strict";var r=n("b30f"),a=n.n(r);a.a},b0f9:function(e,t,n){"use strict";n.d(t,"o",(function(){return i})),n.d(t,"m",(function(){return o})),n.d(t,"t",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"n",(function(){return m})),n.d(t,"q",(function(){return f})),n.d(t,"f",(function(){return b})),n.d(t,"s",(function(){return g})),n.d(t,"l",(function(){return T})),n.d(t,"k",(function(){return N})),n.d(t,"b",(function(){return C})),n.d(t,"p",(function(){return j})),n.d(t,"j",(function(){return O})),n.d(t,"h",(function(){return R})),n.d(t,"i",(function(){return M})),n.d(t,"a",(function(){return W})),n.d(t,"g",(function(){return D})),n.d(t,"c",(function(){return P})),n.d(t,"e",(function(){return z})),n.d(t,"r",(function(){return $}));n("96cf");var r=n("1da1"),a=n("b775");function i(){return s.apply(this,arguments)}function s(){return s=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByCompanyId",{companyId:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function u(e){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return p=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return h=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function f(e){return w.apply(this,arguments)}function w(){return w=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function b(e){return v.apply(this,arguments)}function v(){return v=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return y.apply(this,arguments)}function y(){return y=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/updateTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function T(e){return x.apply(this,arguments)}function x(){return x=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function N(e){return k.apply(this,arguments)}function k(){return k=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByNodeId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function C(e){return _.apply(this,arguments)}function _(){return _=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/connectNestTemplateFolder",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function j(e){return I.apply(this,arguments)}function I(){return I=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function O(e,t,n){return B.apply(this,arguments)}function B(){return B=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:n,nestedNodeId:r});case 2:return i=e.sent,e.abrupt("return",Object(a["c"])(i));case 4:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function R(e){return S.apply(this,arguments)}function S(){return S=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/fileExchange",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function M(e){return L.apply(this,arguments)}function L(){return L=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function W(e){return E.apply(this,arguments)}function E(){return E=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/addTemplateNodeModelFile",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function D(e){return A.apply(this,arguments)}function A(){return A=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),A.apply(this,arguments)}function P(e){return V.apply(this,arguments)}function V(){return V=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function z(e){return q.apply(this,arguments)}function q(){return q=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}function $(e){return F.apply(this,arguments)}function F(){return F=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/renameTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}},b30f:function(e,t,n){},b3b1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));n("96cf");var r=n("1da1"),a=n("b775");function i(){return s.apply(this,arguments)}function s(){return s=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("industry/queryAllIndustry");case 2:return t=e.sent,e.abrupt("return",t.Data||[]);case 4:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("industry/renameIndustry",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}},bccc:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layout_content template_mind",class:{"calc-height-64":e.isClient,"calc-height-40":!e.isClient}},[n("app-header",{attrs:{showBackBtn:"",theme:"white",title:e.tempName,backBtnTitle:"退出思维导图查看器",onBackBtnClick:e.onBackBtnClick}}),n("section",{staticClass:"yiyun_section"},[n("div",[n("div",{staticClass:"mlr-10"},[n("div",{staticClass:"yiyunTable_list"},[n("div",{staticStyle:{float:"right","margin-right":"50px","margin-top":"20px",width:"300px"}},[n("el-slider",{staticClass:"self_slider",attrs:{height:"100px","format-tooltip":e.biliToolTip,min:40,max:150},on:{change:e.zoomOut},model:{value:e.mindZoom,callback:function(t){e.mindZoom=t},expression:"mindZoom"}})],1),n("div",{class:{"adjust-TszMind-pos":e.selectedNode},attrs:{id:"TszMind"}})])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:!!e.selectedNode,expression:"!!selectedNode"}],staticClass:"xmind_popup"},[e.selectedNode?n("div",[e.currentPopupViewType===e.popupViewType.NODE_DETAIL?n("div",[n("div",{staticClass:"xmind_popup_head"},[e._v(e._s(e.selectedNode.topic))]),n("div",{staticClass:"xmind_popup_section"},[e.selectedNode.data.isNest?e._e():n("el-button",{staticClass:"xmind_popup_button",on:{click:function(t){return e.changePopupViewType(e.popupViewType.ADD_SUB_TEMPLATE)}}},[e._v("嵌套模板")]),e.selectedNode.data.isNest?n("el-button",{staticClass:"xmind_popup_button",on:{click:function(t){return e.removeNestTemplate()}}},[e._v("移除嵌套模板")]):e._e(),e.selectedNode.data.isNest?n("el-button",{staticClass:"xmind_popup_button",on:{click:function(t){return e.gotoMatrix()}}},[e._v("查看文件交换关系")]):e._e()],1)]):e.currentPopupViewType===e.popupViewType.ADD_SUB_TEMPLATE?n("div",[n("div",{staticClass:"xmind_popup_head"},[e._v("选择嵌套模板")]),n("template-tree",{attrs:{filterList:e.filterCurrentTemplate.bind(this),nodeClick:e.onSelectSubTemplate}}),n("div",{staticClass:"xmind_popup_foot"},[n("el-button",{staticClass:"xmind_popup_foot_button",on:{click:e.cancelAddSubTemplate}},[e._v("取消")]),n("el-button",{staticClass:"xmind_popup_foot_button",attrs:{disabled:!e.selectedSubTemplateNode},on:{click:e.doNestTemplate}},[e._v("嵌套")])],1)],1):e._e()]):e._e()])])],1)},a=[],i=(n("99af"),n("4de4"),n("7db0"),n("4160"),n("b0c0"),n("159b"),n("96cf"),n("1da1")),s=n("b0f9"),o=n("f96e"),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navtreebox",class:{"navtreebox-inclient":e.isClient}},[n("el-tree",{ref:"tree",attrs:{data:e.listTemplateTree,"default-expand-all":!0,"node-key":"id","expand-on-click-node":!1,"filter-node-method":e.filterTreeNode,indent:8,"highlight-current":!0},on:{"node-contextmenu":e.nodeRightClick,"node-click":e.nodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.node,a=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",{staticClass:"sanjiaow"},["default"==a.id?n("i",{staticClass:"el-icon-models"}):e._e(),0==a.isLeaf&&1==r.isLeaf?n("i",{staticClass:"el-tree-node__expand-icon el-icon-caret-right bianjutop"}):e._e(),1==a.isLeaf&&1==r.isLeaf?n("i",{staticClass:"el-icon-models"}):e._e(),n("span",[e._v(e._s(a.label))])])])}}])})],1)},u=[],l=(n("c975"),n("13d5"),n("a434"),n("d3b7"),n("3ca3"),n("ddb0"),n("3835")),d=n("2ef0"),p=n("b3b1"),m=n("1d40"),h={props:{nodeClick:{type:Function,default:d["noop"]},nodeRightClick:{type:Function,default:d["noop"]},filterTreeNode:{type:Function,default:d["noop"]},filterList:{type:Function,default:d["identity"]}},data:function(){return{listTemplateTree:[],allIndList:[],topIndList:[],level2IndList:[],mapIndIdToIndName:{},mapIndIdToIndNode:{},isClient:m["a"].isClient}},created:function(){this.fetchTemplateList()},methods:{getIndustryData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(p["a"])();case 2:return n=t.sent,e.topIndList=n.filter((function(e){return 1===e.Level})),e.level2IndList=[],e.allIndList=n,r=n.reduce((function(e,t){return e[t.Id]=t.Name,e}),{}),e.mapIndIdToIndName=r,t.abrupt("return",n);case 9:case"end":return t.stop()}}),t)})))()},fetchTemplateList:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r,a,i,o,c,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([s["o"](),e.getIndustryData()]);case 2:n=t.sent,r=Object(l["a"])(n,2),a=r[0],i=r[1],console.log(i),o=f(e.filterList(a.Data||[]),i),c=Object(l["a"])(o,2),u=c[0],d=c[1],e.mapIndIdToIndNode=d,e.listTemplateTree=u;case 10:case"end":return t.stop()}}),t)})))()}}};function f(e,t){var n={},r=e.reduce((function(e,t){var n="0"!==t.CustomCode&&t.CustomCode?t.CustomCode:void 0,r=n||t.DetailIndustryId,a={id:t.Id,label:t.TempName,parentId:r,isLeaf:!0,type:"template",data:t};return e[r]=(e[r]||[]).concat(a),e}),{}),a=t.reduce((function(e,t){var r="0"!==t.SuperId&&t.SuperId?t.SuperId:null,a={id:t.Id,label:t.Name,parentId:r,data:t,type:"industry",children:[],isLeaf:!1};return e[0][a.id]=a,e[1].unshift(a),n[a.id]=a,r&&(e[2][r]||(e[2][r]=[]),e[2][r].push(a)),1===t.Level&&e[3].push(a),e}),[{},[],{},[]]),i=Object(l["a"])(a,4),s=i[0],o=i[1],c=i[2],u=i[3];return o.forEach((function(e){var t=c[e.id];t&&(e.children=e.children.concat(t));var n=r[e.id];if(n&&(e.children=e.children.concat(n)),0===e.children.length){var a=s[e.parentId],i=a?c[a.id]:u;i.splice(i.indexOf(e),1)}})),[u,n]}var w=h,b=(n("ad8f"),n("2877")),v=Object(b["a"])(w,c,u,!1,null,"5b7275a0",null),g=v.exports,y=n("3de1"),T=window.jsMind,x=window.jQuery,N={NODE_DETAIL:1,ADD_SUB_TEMPLATE:2,ADD_CHILD_NODE:3},k={components:{TemplateTree:g,AppHeader:o["a"]},data:function(){return{nestNodeList:[],templateList:[],cloneTemplateMindTree:[],listTemplateMindTree:[],mindZoom:60,tempName:this.$route.params.name,tempId:sessionStorage.templateID,jm:null,selectedNode:null,popupViewType:N,currentPopupViewType:N.NODE_DETAIL,selectedSubTemplateNode:null,isClient:m["a"].isClient}},created:function(){this.getNestNode(this.tempId),this.getTemplateMindTree()},watch:{},methods:{getNestNode:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,s["l"](e);case 2:r=n.sent,t.nestNodeList=r.Data||[];case 4:case"end":return n.stop()}}),n)})))()},addNestNode:function(e){var t=this.findAllNestNode(e);e.children?0!==t.length&&(e.children=e.children.concat(t)):0!==t.length&&(e.children=[],e.children=e.children.concat(t))},getAddNestNode:function(e){var t=this;this.addNestNode(e),e.children&&e.children.forEach((function(e){t.getAddNestNode(e)}))},findAllNestNode:function(e){var t;t=this.nestNodeList.filter((function(t){return t.ParentNodeId==e.id}));var n=t.length;if(n>0){var r=[];return t.forEach((function(e){var t={id:"",isNest:!0,label:"",topic:"",templateId:""};t.id=e.Id,t.label=e.TemplateName,t.topic=e.TemplateName,t.templateId=e.TemplateId,r.push(t)})),r}return[]},onBackBtnClick:function(){this.$router.push({name:"system_template",params:{data:this.$route.params.data}})},filterCurrentTemplate:function(e){var t=this.tempId;return e.filter((function(e){return e.Id!==t}))},zoomIn:function(){this.mindZoom-=1;var e=document.getElementsByClassName("jsmind-inner");e[0].style.zoom=this.mindZoom/100},zoomOut:function(e){this.mindZoom+=1;var t=document.getElementsByClassName("jsmind-inner");t[0].style.zoom=this.mindZoom/100},biliToolTip:function(e){return e+"%"},scanMind:function(){var e=this,t={meta:{name:"mindhh",author:"hh",version:"0.2"},format:"node_tree",data:this.listTemplateMindTree[0]},n={container:"TszMind",editable:!1,theme:"",mode:"side",support_html:!1,view:{engine:"canvas",hmargin:100,vmargin:50,line_width:1,line_color:"#cccdd7"}};if(null==document.querySelector("jmnodes")){var r=new T(n);r.disable_edit(),r.end_edit(),r.show(t),this.jm=r}else T.current.show(t);this.isShowZoom=!0;var a=x(".jsmind-inner"),i=a[0];i.style.zoom=.8;var s=x(i).find("jmnodes").get(0);s.addEventListener("click",this.onNodeClick.bind(this)),setTimeout((function(){return C(e.listTemplateMindTree[0])}),0)},getTemplateMindTree:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.tempId,t.next=3,s["p"](n);case 3:r=t.sent,e.listTemplateMindTree=r.Data?[r.Data]:[],e.getAddNestNode(e.listTemplateMindTree[0]),e.scanMind();case 7:case"end":return t.stop()}}),t)})))()},onNodeClick:function(e){if("JMNODE"===e.target.tagName){var t=e.target,n=this.jm,r=t.getAttribute("nodeid"),a=n.mind.nodes,i=a[r];this.currentPopupViewType=this.popupViewType.NODE_DETAIL,this.selectedNode=i}else this.selectedNode=null},changePopupViewType:function(e){this.currentPopupViewType=e},onSelectSubTemplate:function(e){"template"===e.type?this.selectedSubTemplateNode=e:this.selectedSubTemplateNode=null},cancelAddSubTemplate:function(){this.changePopupViewType(this.popupViewType.NODE_DETAIL),this.selectedSubTemplateNode=null},doNestTemplate:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r,a,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.selectedSubTemplateNode,r=e.selectedNode,a=e.tempId,i=e.selectedSubTemplateNode.label,t.next=6,s["c"]({Id:n.id,ParentId:r.id,ParentTemplateId:a,Name:i});case 6:if(o=t.sent,0===o.Code){t.next=9;break}return t.abrupt("return");case 9:y["d"].success("嵌套成功"),e.selectedNode=null,e.getNestNode(e.tempId),e.getTemplateMindTree();case 13:case"end":return t.stop()}}),t)})))()},removeNestTemplate:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var n,r,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.selectedNode,r=n.parent,a=n.data.templateId,e.next=5,s["e"]({parentNodeId:r.id,templateId:a});case 5:if(i=e.sent,0===i.Code){e.next=8;break}return e.abrupt("return");case 8:y["d"].success("移除成功"),t.selectedNode=null,t.getNestNode(t.tempId),t.getTemplateMindTree();case 12:case"end":return e.stop()}}),e)})))()},gotoMatrix:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.selectedNode,r=n.parent,e.$router.push({name:"system_template_matrix",params:{name:r.topic,id:r.id,subTemplateId:n.data.templateId,templateId:e.tempId}});case 3:case"end":return t.stop()}}),t)})))()}}};function C(e){e&&e.children&&e.children.forEach((function(e){if(e.label=e.topic,e.isNest){var t=x("jmnode[nodeid=".concat(e.id,"]"));t.prepend('')}else C(e)}))}var _=k,j=(n("0999"),Object(b["a"])(_,r,a,!1,null,"d552047a",null));t["default"]=j.exports},f2e8:function(e,t,n){},f96e:function(e,t,n){"use strict";var r=n("01a8");n.d(t,"a",(function(){return r["a"]}))}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-7a18b3e4.61cf14fc.js b/dist/static/js/chunk-7a18b3e4.61cf14fc.js deleted file mode 100644 index a9c15561..00000000 --- a/dist/static/js/chunk-7a18b3e4.61cf14fc.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a18b3e4"],{"01a8":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?n("div",{staticClass:"app-header-top"},[n("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[n("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),n("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),n("div",{staticClass:"top-center"}),n("div",{staticClass:"top-right"},[n("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[n("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),n("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),n("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?n("div",{staticClass:"app-header-top"}):e._e(),n("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),n("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?n("span",{on:{click:e.toRecycle}},[n("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?n("user-center"):e._e()],2)])])},a=[],i=n("1392"),s=n("1d40"),o={components:{UserCenter:i["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:s["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize},isOnLine:function(){return this.$store.state.gatewayState}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){s["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),s["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),s["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){s["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=o,u=(n("8fc1"),n("2877")),l=Object(u["a"])(c,r,a,!1,null,"06f5aedd",null);t["a"]=l.exports},"0999":function(e,t,n){"use strict";var r=n("f2e8"),a=n.n(r);a.a},"8fc1":function(e,t,n){"use strict";var r=n("99ab"),a=n.n(r);a.a},"99ab":function(e,t,n){},ad8f:function(e,t,n){"use strict";var r=n("b30f"),a=n.n(r);a.a},b0f9:function(e,t,n){"use strict";n.d(t,"n",(function(){return i})),n.d(t,"s",(function(){return o})),n.d(t,"d",(function(){return u})),n.d(t,"m",(function(){return d})),n.d(t,"p",(function(){return m})),n.d(t,"f",(function(){return f})),n.d(t,"r",(function(){return b})),n.d(t,"l",(function(){return g})),n.d(t,"k",(function(){return y})),n.d(t,"b",(function(){return N})),n.d(t,"o",(function(){return _})),n.d(t,"j",(function(){return j})),n.d(t,"h",(function(){return O})),n.d(t,"i",(function(){return R})),n.d(t,"a",(function(){return M})),n.d(t,"g",(function(){return W})),n.d(t,"c",(function(){return D})),n.d(t,"e",(function(){return P})),n.d(t,"q",(function(){return z}));n("96cf");var r=n("1da1"),a=n("b775");function i(){return s.apply(this,arguments)}function s(){return s=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function u(e){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return p=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return h=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function f(e){return w.apply(this,arguments)}function w(){return w=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function b(e){return v.apply(this,arguments)}function v(){return v=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/updateTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return T.apply(this,arguments)}function T(){return T=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function y(e){return x.apply(this,arguments)}function x(){return x=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByNodeId",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function N(e){return k.apply(this,arguments)}function k(){return k=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/connectNestTemplateFolder",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function _(e){return C.apply(this,arguments)}function C(){return C=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function j(e,t,n){return I.apply(this,arguments)}function I(){return I=Object(r["a"])(regeneratorRuntime.mark((function e(t,n,r){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:n,nestedNodeId:r});case 2:return i=e.sent,e.abrupt("return",Object(a["c"])(i));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function O(e){return B.apply(this,arguments)}function B(){return B=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/fileExchange",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function R(e){return S.apply(this,arguments)}function S(){return S=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function M(e){return L.apply(this,arguments)}function L(){return L=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/addTemplateNodeModelFile",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function W(e){return E.apply(this,arguments)}function E(){return E=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function D(e){return A.apply(this,arguments)}function A(){return A=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),A.apply(this,arguments)}function P(e){return V.apply(this,arguments)}function V(){return V=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteNestedRelevance",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function z(e){return q.apply(this,arguments)}function q(){return q=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/renameTemplate",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}},b30f:function(e,t,n){},b3b1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));n("96cf");var r=n("1da1"),a=n("b775");function i(){return s.apply(this,arguments)}function s(){return s=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("industry/queryAllIndustry");case 2:return t=e.sent,e.abrupt("return",t.Data||[]);case 4:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("industry/renameIndustry",t);case 2:return n=e.sent,e.abrupt("return",Object(a["c"])(n));case 4:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}},bccc:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layout_content template_mind",class:{"calc-height-64":e.isClient,"calc-height-40":!e.isClient}},[n("app-header",{attrs:{showBackBtn:"",theme:"white",title:e.tempName,backBtnTitle:"退出思维导图查看器",onBackBtnClick:e.onBackBtnClick}}),n("section",{staticClass:"yiyun_section"},[n("div",[n("div",{staticClass:"mlr-10"},[n("div",{staticClass:"yiyunTable_list"},[n("div",{staticStyle:{float:"right","margin-right":"50px","margin-top":"20px",width:"300px"}},[n("el-slider",{staticClass:"self_slider",attrs:{height:"100px","format-tooltip":e.biliToolTip,min:40,max:150},on:{change:e.zoomOut},model:{value:e.mindZoom,callback:function(t){e.mindZoom=t},expression:"mindZoom"}})],1),n("div",{class:{"adjust-TszMind-pos":e.selectedNode},attrs:{id:"TszMind"}})])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:!!e.selectedNode,expression:"!!selectedNode"}],staticClass:"xmind_popup"},[e.selectedNode?n("div",[e.currentPopupViewType===e.popupViewType.NODE_DETAIL?n("div",[n("div",{staticClass:"xmind_popup_head"},[e._v(e._s(e.selectedNode.topic))]),n("div",{staticClass:"xmind_popup_section"},[e.selectedNode.data.isNest?e._e():n("el-button",{staticClass:"xmind_popup_button",on:{click:function(t){return e.changePopupViewType(e.popupViewType.ADD_SUB_TEMPLATE)}}},[e._v("嵌套模板")]),e.selectedNode.data.isNest?n("el-button",{staticClass:"xmind_popup_button",on:{click:function(t){return e.removeNestTemplate()}}},[e._v("移除嵌套模板")]):e._e(),e.selectedNode.data.isNest?n("el-button",{staticClass:"xmind_popup_button",on:{click:function(t){return e.gotoMatrix()}}},[e._v("查看文件交换关系")]):e._e()],1)]):e.currentPopupViewType===e.popupViewType.ADD_SUB_TEMPLATE?n("div",[n("div",{staticClass:"xmind_popup_head"},[e._v("选择嵌套模板")]),n("template-tree",{attrs:{filterList:e.filterCurrentTemplate.bind(this),nodeClick:e.onSelectSubTemplate}}),n("div",{staticClass:"xmind_popup_foot"},[n("el-button",{staticClass:"xmind_popup_foot_button",on:{click:e.cancelAddSubTemplate}},[e._v("取消")]),n("el-button",{staticClass:"xmind_popup_foot_button",attrs:{disabled:!e.selectedSubTemplateNode},on:{click:e.doNestTemplate}},[e._v("嵌套")])],1)],1):e._e()]):e._e()])])],1)},a=[],i=(n("99af"),n("4de4"),n("7db0"),n("4160"),n("b0c0"),n("159b"),n("96cf"),n("1da1")),s=n("b0f9"),o=n("f96e"),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navtreebox",class:{"navtreebox-inclient":e.isClient}},[n("el-tree",{ref:"tree",attrs:{data:e.listTemplateTree,"default-expand-all":!0,"node-key":"id","expand-on-click-node":!1,"filter-node-method":e.filterTreeNode,indent:8,"highlight-current":!0},on:{"node-contextmenu":e.nodeRightClick,"node-click":e.nodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.node,a=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",{staticClass:"sanjiaow"},["default"==a.id?n("i",{staticClass:"el-icon-models"}):e._e(),0==a.isLeaf&&1==r.isLeaf?n("i",{staticClass:"el-tree-node__expand-icon el-icon-caret-right bianjutop"}):e._e(),1==a.isLeaf&&1==r.isLeaf?n("i",{staticClass:"el-icon-models"}):e._e(),n("span",[e._v(e._s(a.label))])])])}}])})],1)},u=[],l=(n("c975"),n("13d5"),n("a434"),n("d3b7"),n("3ca3"),n("ddb0"),n("3835")),d=n("2ef0"),p=n("b3b1"),m=n("1d40"),h={props:{nodeClick:{type:Function,default:d["noop"]},nodeRightClick:{type:Function,default:d["noop"]},filterTreeNode:{type:Function,default:d["noop"]},filterList:{type:Function,default:d["identity"]}},data:function(){return{listTemplateTree:[],allIndList:[],topIndList:[],level2IndList:[],mapIndIdToIndName:{},mapIndIdToIndNode:{},isClient:m["a"].isClient}},created:function(){this.fetchTemplateList()},methods:{getIndustryData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(p["a"])();case 2:return n=t.sent,e.topIndList=n.filter((function(e){return 1===e.Level})),e.level2IndList=[],e.allIndList=n,r=n.reduce((function(e,t){return e[t.Id]=t.Name,e}),{}),e.mapIndIdToIndName=r,t.abrupt("return",n);case 9:case"end":return t.stop()}}),t)})))()},fetchTemplateList:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r,a,i,o,c,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([s["n"](),e.getIndustryData()]);case 2:n=t.sent,r=Object(l["a"])(n,2),a=r[0],i=r[1],console.log(i),o=f(e.filterList(a.Data||[]),i),c=Object(l["a"])(o,2),u=c[0],d=c[1],e.mapIndIdToIndNode=d,e.listTemplateTree=u;case 10:case"end":return t.stop()}}),t)})))()}}};function f(e,t){var n={},r=e.reduce((function(e,t){var n="0"!==t.CustomCode&&t.CustomCode?t.CustomCode:void 0,r=n||t.DetailIndustryId,a={id:t.Id,label:t.TempName,parentId:r,isLeaf:!0,type:"template",data:t};return e[r]=(e[r]||[]).concat(a),e}),{}),a=t.reduce((function(e,t){var r="0"!==t.SuperId&&t.SuperId?t.SuperId:null,a={id:t.Id,label:t.Name,parentId:r,data:t,type:"industry",children:[],isLeaf:!1};return e[0][a.id]=a,e[1].unshift(a),n[a.id]=a,r&&(e[2][r]||(e[2][r]=[]),e[2][r].push(a)),1===t.Level&&e[3].push(a),e}),[{},[],{},[]]),i=Object(l["a"])(a,4),s=i[0],o=i[1],c=i[2],u=i[3];return o.forEach((function(e){var t=c[e.id];t&&(e.children=e.children.concat(t));var n=r[e.id];if(n&&(e.children=e.children.concat(n)),0===e.children.length){var a=s[e.parentId],i=a?c[a.id]:u;i.splice(i.indexOf(e),1)}})),[u,n]}var w=h,b=(n("ad8f"),n("2877")),v=Object(b["a"])(w,c,u,!1,null,"5b7275a0",null),g=v.exports,T=n("3de1"),y=window.jsMind,x=window.jQuery,N={NODE_DETAIL:1,ADD_SUB_TEMPLATE:2,ADD_CHILD_NODE:3},k={components:{TemplateTree:g,AppHeader:o["a"]},data:function(){return{nestNodeList:[],templateList:[],cloneTemplateMindTree:[],listTemplateMindTree:[],mindZoom:60,tempName:this.$route.params.name,tempId:sessionStorage.templateID,jm:null,selectedNode:null,popupViewType:N,currentPopupViewType:N.NODE_DETAIL,selectedSubTemplateNode:null,isClient:m["a"].isClient}},created:function(){this.getNestNode(this.tempId),this.getTemplateMindTree()},watch:{},methods:{getNestNode:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,s["l"](e);case 2:r=n.sent,t.nestNodeList=r.Data||[];case 4:case"end":return n.stop()}}),n)})))()},addNestNode:function(e){var t=this.findAllNestNode(e);e.children?0!==t.length&&(e.children=e.children.concat(t)):0!==t.length&&(e.children=[],e.children=e.children.concat(t))},getAddNestNode:function(e){var t=this;this.addNestNode(e),e.children&&e.children.forEach((function(e){t.getAddNestNode(e)}))},findAllNestNode:function(e){var t;t=this.nestNodeList.filter((function(t){return t.ParentNodeId==e.id}));var n=t.length;if(n>0){var r=[];return t.forEach((function(e){var t={id:"",isNest:!0,label:"",topic:"",templateId:""};t.id=e.Id,t.label=e.TemplateName,t.topic=e.TemplateName,t.templateId=e.TemplateId,r.push(t)})),r}return[]},onBackBtnClick:function(){this.$router.push({name:"system_template",params:{data:this.$route.params.data}})},filterCurrentTemplate:function(e){var t=this.tempId;return e.filter((function(e){return e.Id!==t}))},zoomIn:function(){this.mindZoom-=1;var e=document.getElementsByClassName("jsmind-inner");e[0].style.zoom=this.mindZoom/100},zoomOut:function(e){this.mindZoom+=1;var t=document.getElementsByClassName("jsmind-inner");t[0].style.zoom=this.mindZoom/100},biliToolTip:function(e){return e+"%"},scanMind:function(){var e=this,t={meta:{name:"mindhh",author:"hh",version:"0.2"},format:"node_tree",data:this.listTemplateMindTree[0]},n={container:"TszMind",editable:!1,theme:"",mode:"side",support_html:!1,view:{engine:"canvas",hmargin:100,vmargin:50,line_width:1,line_color:"#cccdd7"}};if(null==document.querySelector("jmnodes")){var r=new y(n);r.disable_edit(),r.end_edit(),r.show(t),this.jm=r}else y.current.show(t);this.isShowZoom=!0;var a=x(".jsmind-inner"),i=a[0];i.style.zoom=.8;var s=x(i).find("jmnodes").get(0);s.addEventListener("click",this.onNodeClick.bind(this)),setTimeout((function(){return _(e.listTemplateMindTree[0])}),0)},getTemplateMindTree:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.tempId,t.next=3,s["o"](n);case 3:r=t.sent,e.listTemplateMindTree=r.Data?[r.Data]:[],e.getAddNestNode(e.listTemplateMindTree[0]),e.scanMind();case 7:case"end":return t.stop()}}),t)})))()},onNodeClick:function(e){if("JMNODE"===e.target.tagName){var t=e.target,n=this.jm,r=t.getAttribute("nodeid"),a=n.mind.nodes,i=a[r];this.currentPopupViewType=this.popupViewType.NODE_DETAIL,this.selectedNode=i}else this.selectedNode=null},changePopupViewType:function(e){this.currentPopupViewType=e},onSelectSubTemplate:function(e){"template"===e.type?this.selectedSubTemplateNode=e:this.selectedSubTemplateNode=null},cancelAddSubTemplate:function(){this.changePopupViewType(this.popupViewType.NODE_DETAIL),this.selectedSubTemplateNode=null},doNestTemplate:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r,a,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.selectedSubTemplateNode,r=e.selectedNode,a=e.tempId,i=e.selectedSubTemplateNode.label,t.next=6,s["c"]({Id:n.id,ParentId:r.id,ParentTemplateId:a,Name:i});case 6:if(o=t.sent,0===o.Code){t.next=9;break}return t.abrupt("return");case 9:T["d"].success("嵌套成功"),e.selectedNode=null,e.getNestNode(e.tempId),e.getTemplateMindTree();case 13:case"end":return t.stop()}}),t)})))()},removeNestTemplate:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var n,r,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.selectedNode,r=n.parent,a=n.data.templateId,e.next=5,s["e"]({parentNodeId:r.id,templateId:a});case 5:if(i=e.sent,0===i.Code){e.next=8;break}return e.abrupt("return");case 8:T["d"].success("移除成功"),t.selectedNode=null,t.getNestNode(t.tempId),t.getTemplateMindTree();case 12:case"end":return e.stop()}}),e)})))()},gotoMatrix:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.selectedNode,r=n.parent,e.$router.push({name:"system_template_matrix",params:{name:r.topic,id:r.id,subTemplateId:n.data.templateId,templateId:e.tempId}});case 3:case"end":return t.stop()}}),t)})))()}}};function _(e){e&&e.children&&e.children.forEach((function(e){if(e.label=e.topic,e.isNest){var t=x("jmnode[nodeid=".concat(e.id,"]"));t.prepend('')}else _(e)}))}var C=k,j=(n("0999"),Object(b["a"])(C,r,a,!1,null,"d552047a",null));t["default"]=j.exports},f2e8:function(e,t,n){},f96e:function(e,t,n){"use strict";var r=n("01a8");n.d(t,"a",(function(){return r["a"]}))}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-131f93ca.35af715b.js b/dist/static/js/chunk-7d913a8a.dc2ae5a5.js similarity index 99% rename from dist/static/js/chunk-131f93ca.35af715b.js rename to dist/static/js/chunk-7d913a8a.dc2ae5a5.js index 6e0a4910..90301981 100644 --- a/dist/static/js/chunk-131f93ca.35af715b.js +++ b/dist/static/js/chunk-7d913a8a.dc2ae5a5.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-131f93ca"],{1148:function(e,t,i){"use strict";var a=i("a691"),n=i("1d80");e.exports="".repeat||function(e){var t=String(n(this)),i="",s=a(e);if(s<0||s==1/0)throw RangeError("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(i+=t);return i}},"408a":function(e,t,i){var a=i("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=a(e))throw TypeError("Incorrect invocation");return+e}},9807:function(e,t,i){"use strict";var a=i("e2fd"),n=i.n(a);n.a},a429:function(e,t,i){"use strict";i("b0c0");var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"uploadFileList"},[i("ul",{staticClass:"updatebox shangchuandinwei",attrs:{id:"updatebox"}},e._l(e.fileList,(function(t){return i("li",{key:t.id,staticClass:"updateboxlist1",attrs:{id:t.id}},[i("div",{staticClass:"fl"},[i("i",{staticClass:"fa fa-file fl_icon"}),i("span",{staticClass:"shenluehao",attrs:{title:t.name}},[e._v(e._s(t.name))]),i("span",{staticClass:"fiflesize"},[e._v(e._s(e.fileSize))]),i("span",{staticClass:"fifleprogress"},[e._v(e._s(e.processPercentage))])]),i("div",{ref:"fr",refInFor:!0,staticClass:"fr"},[i("i",{staticClass:"fa fa-pause-circle hand",on:{click:function(i){return e.stop(t)}}}),i("i",{staticClass:"fa fa-times-circle hand",on:{click:function(i){return e.removeFile(t)}}})]),i("div",{staticClass:"clear"}),i("div",{staticClass:"progressionbg"})])})),0),i("div",{ref:"filePicker",staticClass:"updatefile",attrs:{id:e.btnId},on:{click:e.sureClick}})])},n=[],s=(i("7db0"),i("4160"),i("a9e3"),i("b680"),i("ac1f"),i("1276"),i("159b"),window.WebUploader),r=window.jQuery,o={name:"fileUploader",componentName:"fileUploader",props:{auto:{type:Boolean,default:!1},dragfile:{type:Boolean,default:!1},dragTag:{type:String,default:""},multiple:{type:Boolean,default:!1},url:{type:String,default:""},accept:{type:String,default:"*"},fileNumLimit:{type:Number,default:300},fileSizeLimit:{type:Number,default:7574913024},fileSingleSizeLimit:{type:Number,default:5368709120},formData:{type:Object,default:null},keyGenerator:{type:Function,default:function(e){(new Date).getTime();var t="${currentTime}.${file.name}";return t}},btnId:{type:String,default:function(e){return e}},label:{type:String,default:function(e){return e}},projId:{type:String,default:function(e){return e}},companyId:{type:String,default:function(e){return e}},typeId:{type:Number,default:function(e){return e}}},data:function(){return{uploader:null,fileList:[],fileCount:0,fileSize:0,processPercentage:0,fileCancelNum:0,GUID:s.Base.guid(),fileMd5:"",fileName:"",count:0,oldJindu:0,filesArr:[],fileData:{},map:{},uniqueId:s.Base.guid()}},mounted:function(){this.initWebUpload()},methods:{initWebUpload:function(){var e=this;s.Uploader.register({"before-send-file":"beforeSendFile","before-send":"beforeSend","after-send-file":"afterSendFile"},{beforeSendFile:function(t){r("#"+t.id).children("div").eq(0).append('

');var i=s.Deferred();return(new s.Uploader).md5File(t,0,10485760).progress((function(e){r("#"+t.id).find("p.state").text("正在读取文件信息...")})).then((function(a){r("#"+t.id).find("p.state").text("成功获取文件信息..."),e.fileMd5=a,i.resolve()})),r("#"+t.id).find("p.state").css("display","none"),e.fileName=t.name,i.promise()},beforeSend:function(t){var i=s.Deferred();return r.ajax({type:"POST",url:"/api/webupload/chunks/checkormerge",contentType:"application/json;charset=utf-8",data:JSON.stringify({fileName:e.fileName,guid:e.GUID,processPercentage:e.processPercentage,fileMd5:e.fileMd5,chunk:t.chunk,chunkSize:t.end-t.start,action:"checkChunks",uniqueId:e.uniqueId,projId:e.projId,companyId:e.companyId,typeId:e.typeId}),cache:!0,async:!1,timeout:3e3,dataType:"json",success:function(e){"1"===e.ifExist?i.reject():i.resolve()}}),this.owner.options.formData.fileMd5=e.fileMd5,this.owner.options.formData.fileName=e.fileName,this.owner.options.formData.uniqueId=e.uniqueId,i.promise()},afterSendFile:function(e,t){}}),this.uploader=s.create({auto:this.auto,swf:"./uploader.swf",server:this.url,pick:{id:"#"+this.btnId,label:this.label,multiple:this.multiple},paste:"#updatebox",dnd:this.dragTag,accept:this.getAccept(this.accept),threads:3,fileNumLimit:this.fileNumLimit,fileSizeLimit:this.fileSizeLimit,fileSingleSizeLimit:this.fileSingleSizeLimit,formData:{guid:this.GUID,filename:this.fileName,uniqueId:this.uniqueId,projId:this.projId,companyId:this.companyId,typeId:this.typeId},multiple:this.multiple,chunked:!0,chunkSize:2097152,duplicate:!0,compress:!1}),this.uploader.on("fileQueued",(function(e){})),this.uploader.on("filesQueued",(function(t){e.fileAdd(t)})),this.uploader.on("uploadStart",(function(t){e.$emit("upload-start",{uniqueId:e.uniqueId,fileName:e.fileData.name})})),this.uploader.on("fileDequeued",(function(t){e.fileDequeued(t)})),this.uploader.on("uploadProgress",(function(t,i){t.statusText="uploading",e.uploadProcess(t,i)})),this.uploader.on("uploadSuccess",(function(t,i){"true"==i.chunked?"true"==i.hasError?e.$notify({type:"error",message:"文件未成功上传",offset:100,duration:5e3}):r.ajax({type:"POST",async:!1,url:"/api/webupload/chunks/checkormerge",contentType:"application/json;charset=utf-8",data:JSON.stringify({fileName:i.filename,fileMd5:e.fileMd5,guid:e.GUID,fileExt:i.f_ext,action:"mergeChunksFiles",uniqueId:e.uniqueId,projId:e.projId,companyId:e.companyId,typeId:e.typeId}),success:function(a){if(null!=a&&""!=a){var n=a;e.fileData=t,e.fileData.savePath=decodeURIComponent(n.savePath),e.fileData.fileCount=e.uploader.getFiles().length,e.$emit("upload-success",{uniqueId:e.uniqueId,fileName:e.fileData.name,filePath:decodeURIComponent(n.savePath),fileSize:e.fileData.size,unZipPath:decodeURIComponent(n.unZipPath),fileExt:i.f_ext}),e.fileList=[]}else e.$notify({type:"error",message:"文件未成功上传",offset:100,duration:5e3})},error:function(){e.$notify({type:"error",message:"文件未成功上传",offset:100,duration:5e3})}}):(e.fileData=t,e.fileData.savePath=decodeURIComponent(i.savePath),e.fileData.fileCount=e.uploader.getFiles().length,e.$emit("upload-success",{uniqueId:e.uniqueId,fileName:e.fileData.name,filePath:decodeURIComponent(i.savePath),fileSize:e.fileData.size,unZipPath:decodeURIComponent(i.unZipPath),fileExt:i.f_ext}),e.fileList=[])})),this.uploader.on("uploadComplete",(function(t,i){this.getStats().queueNum<=0&&this.getStats().progressNum<=0&&(r("#updatebox").children("li").remove(),e.uniqueId=s.Base.guid())})),this.uploader.on("uploadError",(function(e,t){console.error(t)})),this.uploader.on("error",(function(t){"F_EXCEED_SIZE"===t?e.$notify({message:"文件大小不能超过1M",offset:100,duration:5e3,type:"error"}):"Q_EXCEED_NUM_LIMIT"===t?e.$notify({type:"error",message:"文件上传已达到最大上限数",offset:100,duration:5e3}):"Q_TYPE_DENIED"===t&&e.$notify({type:"error",dangerouslyUseHTMLString:!0,message:"文件类型不允许
或文件为空",offset:100,duration:5e3})}))},fileAdd:function(e){var t=this;e.forEach((function(e,i){t.fileList.push(e)}))},uploadProcess:function(e,t){var i=this,a=r("#"+e.id).children("div").last(),n=r("#"+e.id).children("div").eq(0).find("span.fifleprogress"),s=r("#"+e.id).children("div").eq(0).find("span.fiflesize");n.length||r("#"+e.id).children("div").eq(0).append(''),s.length||r("#"+e.id).children("div").eq(0).append(''),i.fileSize=i.toConvertFileSize(e.size),r("#"+e.id).find("span.fiflesize").text(i.fileSize),"paused"==e.statusText?(i.processPercentage=t,a.css("background-color","#daf3ff"),a.css("width",t),r("#"+e.id).find("span.fifleprogress").text(i.processPercentage)):"uploading"==e.statusText&&(a.css("background-color","#daf3ff"),a.css("width",Math.round(100*t)+"%"),r("#"+e.id).find("span.fifleprogress").text(Math.round(100*t)+"%"),i.processPercentage=Math.round(100*t)+"%")},upload:function(e){this.uploader.upload(e)},stop:function(e){var t=this,i=r("#"+e.id).children("div").eq(1).children("i").first().attr("class");"fa fa-pause-circle hand"==i?(t.setState(e,"paused"),t.uploadProcess(e,t.processPercentage),t.uploader.stop(!0)):"fa hand fa-play-circle"==i&&(t.setState(e,"uploading"),t.uploadProcess(e,t.processPercentage),t.uploader.upload(e))},cancelFile:function(e){this.uploader.cancelFile(e)},removeFile:function(e){this.uploader.removeFile(e,!0)},fileDequeued:function(e){var t=this,i=this.uploader.getStats();t.fileCancelNum=i.cancelNum,r.ajax({type:"POST",async:!1,url:"/api/webupload/chunks/clear",contentType:"application/json;charset=utf-8",data:JSON.stringify({guid:t.GUID,fileName:t.fileName}),success:function(t){"true"==t.hasError&&r("#"+e.id).remove()}})},setState:function(e,t){switch(t){case"pedding":break;case"ready":break;case"uploading":r("#"+e.id).children("div").eq(1).children("i").first().removeClass("fa hand fa-play-circle "),r("#"+e.id).children("div").eq(1).children("i").first().addClass("fa fa-pause-circle hand"),e.statusText="uploading";break;case"paused":r("#"+e.id).children("div").eq(1).children("i").first().removeClass("fa fa-pause-circle hand "),r("#"+e.id).children("div").eq(1).children("i").first().addClass("fa hand fa-play-circle"),e.statusText="paused";break;case"confirm":break;case"finish":break}},toConvertFileSize:function(e){return e>=0&&e<1024?Math.round(e)+" B":e>=1024&&e<1048576?Math.round(e/1024).toFixed(2)+"K":e>=1024&&e<1073741824?Math.round(e/1048576).toFixed(2)+" M":Math.round(e/1073741824).toFixed(2)+" G"},getAccept:function(e){switch(e=e.toLowerCase(),"image,pdf"==e&&(e="pdf,image"),"text,pdf"==e&&(e="pdf,text"),"image,text"==e&&(e="text,image"),e){case"*":return e;case"rar":return{title:"tar",extensions:"zip,rar",mimeTypes:".zip,.rar"};case"rfa":return{title:"rfa",extensions:"rfa",mimeTypes:".rfa"};case"pdf":return{title:"pdf",extensions:"pdf",mimeTypes:".pdf"};case"text":return{title:"Texts",extensions:"doc,docx,xls,xlsx,ppt,pptx,txt",mimeTypes:".doc,docx,.xls,.xlsx,.ppt,.pptx,.txt"};case"video":return{title:"Videos",extensions:"mp4",mimeTypes:".mp4"};case"image":return{title:"Images",extensions:"gif,jpg,jpeg,bmp,png",mimeTypes:".gif,.jpg,.jpeg,.bmp,.png"};case"pdf,image":return{title:"Images",extensions:"pdf,gif,jpg,jpeg,bmp,png",mimeTypes:".pdf,.gif,.jpg,.jpeg,.bmp,.png"};case"pdf,text":return{title:"Texts",extensions:"pdf,doc,docx,xls,xlsx,ppt,pptx,txt",mimeTypes:".pdf,.doc,docx,.xls,.xlsx,.ppt,.pptx,.txt"};case"text,image":return{title:"Texts",extensions:"doc,docx,xls,xlsx,ppt,pptx,txt,gif,jpg,jpeg,bmp,png",mimeTypes:".doc,docx,.xls,.xlsx,.ppt,.pptx,.txt,.gif,.jpg,.jpeg,.bmp,.png"};default:var t=e.split(","),i="";if(null!=t&&t.length>0)for(var a=0;a=4096)t+=12,i/=4096;while(i>=2)t+=1,i/=2;return t},c=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){l.call({})}));a({target:"Number",proto:!0,forced:c},{toFixed:function(e){var t,i,a,o,l=s(this),c=n(e),p=[0,0,0,0,0,0],h="",m="0",g=function(e,t){var i=-1,a=t;while(++i<6)a+=e*p[i],p[i]=a%1e7,a=d(a/1e7)},x=function(e){var t=6,i=0;while(--t>=0)i+=p[t],p[t]=d(i/e),i=i%e*1e7},y=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==p[e]){var i=String(p[e]);t=""===t?i:t+r.call("0",7-i.length)+i}return t};if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(t=f(l*u(2,69,1))-69,i=t<0?l*u(2,-t,1):l/u(2,t,1),i*=4503599627370496,t=52-t,t>0){g(0,i),a=c;while(a>=7)g(1e7,0),a-=7;g(u(10,a,1),0),a=t-1;while(a>=23)x(1<<23),a-=23;x(1<0?(o=m.length,m=h+(o<=c?"0."+r.call("0",c-o)+m:m.slice(0,o-c)+"."+m.slice(o-c))):m=h+m,m}})},e2fd:function(e,t,i){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7d913a8a"],{1148:function(e,t,i){"use strict";var a=i("a691"),n=i("1d80");e.exports="".repeat||function(e){var t=String(n(this)),i="",s=a(e);if(s<0||s==1/0)throw RangeError("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(i+=t);return i}},"408a":function(e,t,i){var a=i("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=a(e))throw TypeError("Incorrect invocation");return+e}},9807:function(e,t,i){"use strict";var a=i("e2fd"),n=i.n(a);n.a},a429:function(e,t,i){"use strict";i("b0c0");var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"uploadFileList"},[i("ul",{staticClass:"updatebox shangchuandinwei",attrs:{id:"updatebox"}},e._l(e.fileList,(function(t){return i("li",{key:t.id,staticClass:"updateboxlist1",attrs:{id:t.id}},[i("div",{staticClass:"fl"},[i("i",{staticClass:"fa fa-file fl_icon"}),i("span",{staticClass:"shenluehao",attrs:{title:t.name}},[e._v(e._s(t.name))]),i("span",{staticClass:"fiflesize"},[e._v(e._s(e.fileSize))]),i("span",{staticClass:"fifleprogress"},[e._v(e._s(e.processPercentage))])]),i("div",{ref:"fr",refInFor:!0,staticClass:"fr"},[i("i",{staticClass:"fa fa-pause-circle hand",on:{click:function(i){return e.stop(t)}}}),i("i",{staticClass:"fa fa-times-circle hand",on:{click:function(i){return e.removeFile(t)}}})]),i("div",{staticClass:"clear"}),i("div",{staticClass:"progressionbg"})])})),0),i("div",{ref:"filePicker",staticClass:"updatefile",attrs:{id:e.btnId},on:{click:e.sureClick}})])},n=[],s=(i("7db0"),i("4160"),i("a9e3"),i("b680"),i("ac1f"),i("1276"),i("159b"),window.WebUploader),r=window.jQuery,o={name:"fileUploader",componentName:"fileUploader",props:{auto:{type:Boolean,default:!1},dragfile:{type:Boolean,default:!1},dragTag:{type:String,default:""},multiple:{type:Boolean,default:!1},url:{type:String,default:""},accept:{type:String,default:"*"},fileNumLimit:{type:Number,default:300},fileSizeLimit:{type:Number,default:7574913024},fileSingleSizeLimit:{type:Number,default:5368709120},formData:{type:Object,default:null},keyGenerator:{type:Function,default:function(e){(new Date).getTime();var t="${currentTime}.${file.name}";return t}},btnId:{type:String,default:function(e){return e}},label:{type:String,default:function(e){return e}},projId:{type:String,default:function(e){return e}},companyId:{type:String,default:function(e){return e}},typeId:{type:Number,default:function(e){return e}}},data:function(){return{uploader:null,fileList:[],fileCount:0,fileSize:0,processPercentage:0,fileCancelNum:0,GUID:s.Base.guid(),fileMd5:"",fileName:"",count:0,oldJindu:0,filesArr:[],fileData:{},map:{},uniqueId:s.Base.guid()}},mounted:function(){this.initWebUpload()},methods:{initWebUpload:function(){var e=this;s.Uploader.register({"before-send-file":"beforeSendFile","before-send":"beforeSend","after-send-file":"afterSendFile"},{beforeSendFile:function(t){r("#"+t.id).children("div").eq(0).append('

');var i=s.Deferred();return(new s.Uploader).md5File(t,0,10485760).progress((function(e){r("#"+t.id).find("p.state").text("正在读取文件信息...")})).then((function(a){r("#"+t.id).find("p.state").text("成功获取文件信息..."),e.fileMd5=a,i.resolve()})),r("#"+t.id).find("p.state").css("display","none"),e.fileName=t.name,i.promise()},beforeSend:function(t){var i=s.Deferred();return r.ajax({type:"POST",url:"/api/webupload/chunks/checkormerge",contentType:"application/json;charset=utf-8",data:JSON.stringify({fileName:e.fileName,guid:e.GUID,processPercentage:e.processPercentage,fileMd5:e.fileMd5,chunk:t.chunk,chunkSize:t.end-t.start,action:"checkChunks",uniqueId:e.uniqueId,projId:e.projId,companyId:e.companyId,typeId:e.typeId}),cache:!0,async:!1,timeout:3e3,dataType:"json",success:function(e){"1"===e.ifExist?i.reject():i.resolve()}}),this.owner.options.formData.fileMd5=e.fileMd5,this.owner.options.formData.fileName=e.fileName,this.owner.options.formData.uniqueId=e.uniqueId,i.promise()},afterSendFile:function(e,t){}}),this.uploader=s.create({auto:this.auto,swf:"./uploader.swf",server:this.url,pick:{id:"#"+this.btnId,label:this.label,multiple:this.multiple},paste:"#updatebox",dnd:this.dragTag,accept:this.getAccept(this.accept),threads:3,fileNumLimit:this.fileNumLimit,fileSizeLimit:this.fileSizeLimit,fileSingleSizeLimit:this.fileSingleSizeLimit,formData:{guid:this.GUID,filename:this.fileName,uniqueId:this.uniqueId,projId:this.projId,companyId:this.companyId,typeId:this.typeId},multiple:this.multiple,chunked:!0,chunkSize:2097152,duplicate:!0,compress:!1}),this.uploader.on("fileQueued",(function(e){})),this.uploader.on("filesQueued",(function(t){e.fileAdd(t)})),this.uploader.on("uploadStart",(function(t){e.$emit("upload-start",{uniqueId:e.uniqueId,fileName:e.fileData.name})})),this.uploader.on("fileDequeued",(function(t){e.fileDequeued(t)})),this.uploader.on("uploadProgress",(function(t,i){t.statusText="uploading",e.uploadProcess(t,i)})),this.uploader.on("uploadSuccess",(function(t,i){"true"==i.chunked?"true"==i.hasError?e.$notify({type:"error",message:"文件未成功上传",offset:100,duration:5e3}):r.ajax({type:"POST",async:!1,url:"/api/webupload/chunks/checkormerge",contentType:"application/json;charset=utf-8",data:JSON.stringify({fileName:i.filename,fileMd5:e.fileMd5,guid:e.GUID,fileExt:i.f_ext,action:"mergeChunksFiles",uniqueId:e.uniqueId,projId:e.projId,companyId:e.companyId,typeId:e.typeId}),success:function(a){if(null!=a&&""!=a){var n=a;e.fileData=t,e.fileData.savePath=decodeURIComponent(n.savePath),e.fileData.fileCount=e.uploader.getFiles().length,e.$emit("upload-success",{uniqueId:e.uniqueId,fileName:e.fileData.name,filePath:decodeURIComponent(n.savePath),fileSize:e.fileData.size,unZipPath:decodeURIComponent(n.unZipPath),fileExt:i.f_ext}),e.fileList=[]}else e.$notify({type:"error",message:"文件未成功上传",offset:100,duration:5e3})},error:function(){e.$notify({type:"error",message:"文件未成功上传",offset:100,duration:5e3})}}):(e.fileData=t,e.fileData.savePath=decodeURIComponent(i.savePath),e.fileData.fileCount=e.uploader.getFiles().length,e.$emit("upload-success",{uniqueId:e.uniqueId,fileName:e.fileData.name,filePath:decodeURIComponent(i.savePath),fileSize:e.fileData.size,unZipPath:decodeURIComponent(i.unZipPath),fileExt:i.f_ext}),e.fileList=[])})),this.uploader.on("uploadComplete",(function(t,i){this.getStats().queueNum<=0&&this.getStats().progressNum<=0&&(r("#updatebox").children("li").remove(),e.uniqueId=s.Base.guid())})),this.uploader.on("uploadError",(function(e,t){console.error(t)})),this.uploader.on("error",(function(t){"F_EXCEED_SIZE"===t?e.$notify({message:"文件大小不能超过1M",offset:100,duration:5e3,type:"error"}):"Q_EXCEED_NUM_LIMIT"===t?e.$notify({type:"error",message:"文件上传已达到最大上限数",offset:100,duration:5e3}):"Q_TYPE_DENIED"===t&&e.$notify({type:"error",dangerouslyUseHTMLString:!0,message:"文件类型不允许
或文件为空",offset:100,duration:5e3})}))},fileAdd:function(e){var t=this;e.forEach((function(e,i){t.fileList.push(e)}))},uploadProcess:function(e,t){var i=this,a=r("#"+e.id).children("div").last(),n=r("#"+e.id).children("div").eq(0).find("span.fifleprogress"),s=r("#"+e.id).children("div").eq(0).find("span.fiflesize");n.length||r("#"+e.id).children("div").eq(0).append(''),s.length||r("#"+e.id).children("div").eq(0).append(''),i.fileSize=i.toConvertFileSize(e.size),r("#"+e.id).find("span.fiflesize").text(i.fileSize),"paused"==e.statusText?(i.processPercentage=t,a.css("background-color","#daf3ff"),a.css("width",t),r("#"+e.id).find("span.fifleprogress").text(i.processPercentage)):"uploading"==e.statusText&&(a.css("background-color","#daf3ff"),a.css("width",Math.round(100*t)+"%"),r("#"+e.id).find("span.fifleprogress").text(Math.round(100*t)+"%"),i.processPercentage=Math.round(100*t)+"%")},upload:function(e){this.uploader.upload(e)},stop:function(e){var t=this,i=r("#"+e.id).children("div").eq(1).children("i").first().attr("class");"fa fa-pause-circle hand"==i?(t.setState(e,"paused"),t.uploadProcess(e,t.processPercentage),t.uploader.stop(!0)):"fa hand fa-play-circle"==i&&(t.setState(e,"uploading"),t.uploadProcess(e,t.processPercentage),t.uploader.upload(e))},cancelFile:function(e){this.uploader.cancelFile(e)},removeFile:function(e){this.uploader.removeFile(e,!0)},fileDequeued:function(e){var t=this,i=this.uploader.getStats();t.fileCancelNum=i.cancelNum,r.ajax({type:"POST",async:!1,url:"/api/webupload/chunks/clear",contentType:"application/json;charset=utf-8",data:JSON.stringify({guid:t.GUID,fileName:t.fileName}),success:function(t){"true"==t.hasError&&r("#"+e.id).remove()}})},setState:function(e,t){switch(t){case"pedding":break;case"ready":break;case"uploading":r("#"+e.id).children("div").eq(1).children("i").first().removeClass("fa hand fa-play-circle "),r("#"+e.id).children("div").eq(1).children("i").first().addClass("fa fa-pause-circle hand"),e.statusText="uploading";break;case"paused":r("#"+e.id).children("div").eq(1).children("i").first().removeClass("fa fa-pause-circle hand "),r("#"+e.id).children("div").eq(1).children("i").first().addClass("fa hand fa-play-circle"),e.statusText="paused";break;case"confirm":break;case"finish":break}},toConvertFileSize:function(e){return e>=0&&e<1024?Math.round(e)+" B":e>=1024&&e<1048576?Math.round(e/1024).toFixed(2)+"K":e>=1024&&e<1073741824?Math.round(e/1048576).toFixed(2)+" M":Math.round(e/1073741824).toFixed(2)+" G"},getAccept:function(e){switch(e=e.toLowerCase(),"image,pdf"==e&&(e="pdf,image"),"text,pdf"==e&&(e="pdf,text"),"image,text"==e&&(e="text,image"),e){case"*":return e;case"rar":return{title:"tar",extensions:"zip,rar",mimeTypes:".zip,.rar"};case"rfa":return{title:"rfa",extensions:"rfa",mimeTypes:".rfa"};case"pdf":return{title:"pdf",extensions:"pdf",mimeTypes:".pdf"};case"text":return{title:"Texts",extensions:"doc,docx,xls,xlsx,ppt,pptx,txt",mimeTypes:".doc,docx,.xls,.xlsx,.ppt,.pptx,.txt"};case"video":return{title:"Videos",extensions:"mp4",mimeTypes:".mp4"};case"image":return{title:"Images",extensions:"gif,jpg,jpeg,bmp,png",mimeTypes:".gif,.jpg,.jpeg,.bmp,.png"};case"pdf,image":return{title:"Images",extensions:"pdf,gif,jpg,jpeg,bmp,png",mimeTypes:".pdf,.gif,.jpg,.jpeg,.bmp,.png"};case"pdf,text":return{title:"Texts",extensions:"pdf,doc,docx,xls,xlsx,ppt,pptx,txt",mimeTypes:".pdf,.doc,docx,.xls,.xlsx,.ppt,.pptx,.txt"};case"text,image":return{title:"Texts",extensions:"doc,docx,xls,xlsx,ppt,pptx,txt,gif,jpg,jpeg,bmp,png",mimeTypes:".doc,docx,.xls,.xlsx,.ppt,.pptx,.txt,.gif,.jpg,.jpeg,.bmp,.png"};default:var t=e.split(","),i="";if(null!=t&&t.length>0)for(var a=0;a=4096)t+=12,i/=4096;while(i>=2)t+=1,i/=2;return t},c=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){l.call({})}));a({target:"Number",proto:!0,forced:c},{toFixed:function(e){var t,i,a,o,l=s(this),c=n(e),p=[0,0,0,0,0,0],h="",m="0",g=function(e,t){var i=-1,a=t;while(++i<6)a+=e*p[i],p[i]=a%1e7,a=d(a/1e7)},x=function(e){var t=6,i=0;while(--t>=0)i+=p[t],p[t]=d(i/e),i=i%e*1e7},y=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==p[e]){var i=String(p[e]);t=""===t?i:t+r.call("0",7-i.length)+i}return t};if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(t=f(l*u(2,69,1))-69,i=t<0?l*u(2,-t,1):l/u(2,t,1),i*=4503599627370496,t=52-t,t>0){g(0,i),a=c;while(a>=7)g(1e7,0),a-=7;g(u(10,a,1),0),a=t-1;while(a>=23)x(1<<23),a-=23;x(1<0?(o=m.length,m=h+(o<=c?"0."+r.call("0",c-o)+m:m.slice(0,o-c)+"."+m.slice(o-c))):m=h+m,m}})},e2fd:function(e,t,i){}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-802699f8.293ef25a.js b/dist/static/js/chunk-802699f8.293ef25a.js new file mode 100644 index 00000000..47219a2a --- /dev/null +++ b/dist/static/js/chunk-802699f8.293ef25a.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-802699f8"],{3739:function(e,t,n){},"45fc":function(e,t,n){"use strict";var a=n("23e7"),i=n("b727").some,o=n("a640"),s=n("ae40"),r=o("some"),d=s("some");a({target:"Array",proto:!0,forced:!r||!d},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4ea6":function(e,t,n){"use strict";var a=n("3739"),i=n.n(a);i.a},df39:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template_detail"},[n("app-header",{attrs:{theme:"white",showBackBtn:!0,backBtnTitle:e.prevViewName||"返回"},scopedSlots:e._u([{key:"center",fn:function(){return[e._v(e._s(e.templateName))]},proxy:!0},{key:"right",fn:function(){return[void 0!==e.templateIsAdded?[e.templateIsAdded?n("el-button",{attrs:{disabled:""}},[e._v("已添加")]):n("el-button",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.addTemplate(t)}}},[e._v("添加模板")])]:e._e()]},proxy:!0}])}),n("nodes-viewer",{staticClass:"viewer",attrs:{node:e.node}}),n("div",{staticClass:"template_info_popup"},[e._m(0),n("div",{staticClass:"popup_line"}),n("div",{staticClass:"popup_block"},[n("div",{staticClass:"popup_block_title"},[e._v("模板介绍")]),n("div",{staticClass:"popup_block_text"},[e._v(e._s(e.templateInfo.introduce))])]),n("div",{staticClass:"popup_line"}),e.templateInfo.propertys&&e.templateInfo.propertys.length?n("div",{staticClass:"popup_block"},[n("div",{staticClass:"popup_block_title"},[e._v("模板需填字段")]),n("div",{staticClass:"popup_block_tags"},e._l(e.templateInfo.propertys||[],(function(t){return n("div",{key:t.id,staticClass:"popup_block_tag"},[e._v(" "+e._s(t.propertyName)+" ")])})),0)]):e._e(),n("div",{staticClass:"popup_line"}),n("div",{staticClass:"popup_block"},[n("div",{staticClass:"popup_block_title"},[e._v("模板信息")]),n("div",{staticClass:"popup_block_items"},[n("div",{staticClass:"popup_block_item"},[n("div",[e._v("模板编码")]),n("div",[e._v(e._s(e.templateInfo.fullCode))])]),n("div",{staticClass:"popup_block_item"},[n("div",[e._v("行业分类")]),n("div",{attrs:{title:e.templateInfo.industryCN}},[e._v(e._s(e.templateInfo.industryCN))])])])])])],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"popup_head"},[n("div",{staticClass:"popup_head_left"},[n("i",{staticClass:"Cicon icon font_family icon-gerenshezhi "})]),n("div",{staticClass:"popup_head_center"},[e._v("模板信息")]),n("div",{staticClass:"popup_head_right"})])}],o=(n("4de4"),n("a15b"),n("d81d"),n("13d5"),n("45fc"),n("b0c0"),n("d3b7"),n("ac1f"),n("3ca3"),n("1276"),n("ddb0"),n("3835")),s=(n("96cf"),n("1da1")),r=n("01a8"),d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"mindDom",staticClass:"nodes-viewer",style:{width:e.width,height:e.height},attrs:{id:e.domId},on:{mousewheel:function(t){return t.stopPropagation(),e.onWheel(t)}}})},c=[],p=(n("fb6a"),function(){return"xmind_".concat("".concat(Math.random()).slice(2,8))}),l=window.jsMind,u={props:{node:{type:Object,default:null},width:{type:String,default:""},height:{type:String,default:""}},data:function(){return{domId:p(),mindIns:null,domMindInner:null,zoom:1}},mounted:function(){this.init()},watch:{node:function(e){e&&this.show()}},methods:{init:function(){var e={container:this.domId,editable:!1,theme:"",mode:"side",support_html:!1,view:{engine:"canvas",hmargin:100,vmargin:50,line_width:1,line_color:"#cccdd7"}},t=new l(e);t.disable_edit(),t.end_edit(),this.mindIns=t,this.node&&this.show()},getMindInnerDom:function(){if(this.domMindInner)return this.domMindInner;if(this.$refs.mindDom){var e=this.$refs.mindDom.querySelector(".jsmind-inner");return this.domMindInner=e,e}},onWheel:function(e){var t=-e.wheelDelta||e.detail,n=this.getMindInnerDom();if(n){var a=this.zoom+(t>0?-.1:.1),i=Math.max(.5,Math.min(a,1.5));this.zoom=i,n.style.zoom=this.zoom}},show:function(){var e={meta:{name:"mindhh",author:"hh",version:"0.2"},format:"node_tree",data:this.node};this.mindIns.show(e)}}},m=u,f=n("2877"),h=Object(f["a"])(m,d,c,!1,null,"48b1be1c",null),v=h.exports,_=n("b0f9"),b=n("3de1"),I=n("b3b1"),w=n("2827"),C={components:{appHeader:r["a"],nodesViewer:v},data:function(){var e=this.$route.params,t=e.id,n=e.name,a=e.prevViewName;return console.log(this,this.$router),{companyId:sessionStorage.companyId,listTemplateMindTree:[],mindZoom:60,templateId:t,templateName:n,node:null,templateInfo:{},templateIsAdded:void 0,prevViewName:a}},created:function(){this.fetchTemplateNodes(),this.fetchTemplateInfo()},methods:{fetchTemplateNodes:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(_["p"])(e.templateId);case 2:n=t.sent,e.node=n.Data;case 4:case"end":return t.stop()}}),t)})))()},fetchTemplateInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,a,i,s,r,d,c,p,l,u,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([Object(_["n"])(e.templateId),Object(I["a"])(),Object(_["m"])(e.companyId)]);case 2:if(n=t.sent,a=Object(o["a"])(n,3),i=a[0],s=a[1],r=a[2],console.log(i,s,r),d=s.reduce((function(e,t){return e[t.Id]=t,e}),{}),!i.Code&&i.Data){t.next=12;break}return e.templateInfo={},t.abrupt("return");case 12:if(r.Data&&(e.templateIsAdded=r.Data.some((function(t){return t.Id===e.templateId}),{})),c=i.Data,p=c.propertys,l=c.template,e.templateInfo=Object.assign(Object(b["b"])(l),{propertys:p.filter((function(e){return e.PropertyName})).map(b["b"])}),u=d[e.templateInfo.customCode],u){t.next=18;break}return t.abrupt("return");case 18:m=u.LevelId.split("-").map((function(e){var t;return null===(t=d[e])||void 0===t?void 0:t.Name})).join(" / "),e.templateInfo.industryCN=m;case 20:case"end":return t.stop()}}),t)})))()},addTemplate:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(w["a"])(e.companyId,e.templateId);case 2:if(n=t.sent,!n.Code){t.next=5;break}return t.abrupt("return");case 5:e.$notify({message:"添加成功",type:"success"}),e.templateIsAdded=!0;case 7:case"end":return t.stop()}}),t)})))()}}},g=C,y=(n("4ea6"),Object(f["a"])(g,a,i,!1,null,"46308725",null));t["default"]=y.exports}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-805bd970.00478e67.js b/dist/static/js/chunk-805bd970.9d041445.js similarity index 100% rename from dist/static/js/chunk-805bd970.00478e67.js rename to dist/static/js/chunk-805bd970.9d041445.js diff --git a/dist/static/js/chunk-da5f603a.5cf0acfb.js b/dist/static/js/chunk-da5f603a.b4ed00a8.js similarity index 100% rename from dist/static/js/chunk-da5f603a.5cf0acfb.js rename to dist/static/js/chunk-da5f603a.b4ed00a8.js diff --git a/dist/static/js/chunk-e8c15138.e25d8dd3.js b/dist/static/js/chunk-e8c15138.3db22f01.js similarity index 99% rename from dist/static/js/chunk-e8c15138.e25d8dd3.js rename to dist/static/js/chunk-e8c15138.3db22f01.js index b1cb49c4..842a45aa 100644 --- a/dist/static/js/chunk-e8c15138.e25d8dd3.js +++ b/dist/static/js/chunk-e8c15138.3db22f01.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e8c15138"],{"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,N=(s("e2bf"),Object(P["a"])(T,p,m,!1,null,"a16fdaa0",null)),I=N.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:I,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},"4e5b":function(e,t,s){"use strict";var r=s("c286"),i=s.n(r);i.a},"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}},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("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{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["m"](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["o"](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 s(){var r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,l["k"](e);case 2:r=s.sent,t.NestTemplateList=r.Data,t.NestTemplateList&&t.NestTemplateList.length&&"{}"===JSON.stringify(t.selectTemplate)&&(t.selectTemplate=t.NestTemplateList[0],t.checkedIndex=0);case 5:case"end":return s.stop()}}),s)})))()},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("4e5b"),s("2877")),p=Object(h["a"])(u,r,i,!1,null,"2e9a13da",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}},c286:function(e,t,s){},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){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e8c15138"],{"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,N=(s("e2bf"),Object(P["a"])(T,p,m,!1,null,"a16fdaa0",null)),I=N.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:I,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},"4e5b":function(e,t,s){"use strict";var r=s("c286"),i=s.n(r);i.a},"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}},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("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{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 s(){var r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,l["k"](e);case 2:r=s.sent,t.NestTemplateList=r.Data,t.NestTemplateList&&t.NestTemplateList.length&&"{}"===JSON.stringify(t.selectTemplate)&&(t.selectTemplate=t.NestTemplateList[0],t.checkedIndex=0);case 5:case"end":return s.stop()}}),s)})))()},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("4e5b"),s("2877")),p=Object(h["a"])(u,r,i,!1,null,"2e9a13da",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}},c286:function(e,t,s){},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){}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-ef8ce8b2.9002bee5.js b/dist/static/js/chunk-ef8ce8b2.3c90d250.js similarity index 100% rename from dist/static/js/chunk-ef8ce8b2.9002bee5.js rename to dist/static/js/chunk-ef8ce8b2.3c90d250.js