From 410750fba9527bccadd5edd7c533749a276c12e2 Mon Sep 17 00:00:00 2001 From: zhengzhou Date: Wed, 12 May 2021 13:46:39 +0800 Subject: [PATCH] 'build' --- dist/index.html | 2 +- dist/static/css/chunk-0935122f.3d323592.css | 1 - dist/static/css/chunk-0bdab950.2e1b88f3.css | 1 - dist/static/css/chunk-1f448eff.550f5314.css | 1 - dist/static/css/chunk-504bef5f.9096c703.css | 1 + dist/static/css/chunk-559c8a4e.030e02ed.css | 1 + dist/static/css/chunk-edf65c70.89f95a16.css | 1 + dist/static/js/{app.9924c51f.js => app.ead6da20.js} | 2 +- .../{chunk-038ce22f.36d5e485.js => chunk-038ce22f.0f74b093.js} | 0 .../{chunk-05bf99c1.f6f5e938.js => chunk-05bf99c1.a3727c76.js} | 0 dist/static/js/chunk-0935122f.0ccd5982.js | 1 - dist/static/js/chunk-0bdab950.3cbc383f.js | 1 - .../{chunk-11067227.5e010fb9.js => chunk-11067227.fb459518.js} | 0 dist/static/js/chunk-115028d7.6e496db2.js | 1 + dist/static/js/chunk-115028d7.abe604a2.js | 1 - .../{chunk-15a37012.23f393b0.js => chunk-15a37012.007d472f.js} | 0 .../{chunk-15f86d65.cfb68594.js => chunk-15f86d65.595d30e0.js} | 0 dist/static/js/chunk-1f448eff.e3f27dd8.js | 1 - .../{chunk-1f4d12f6.721d574d.js => chunk-1f4d12f6.9e3ed07b.js} | 0 .../{chunk-1f7519e6.7a9a2f7d.js => chunk-1f7519e6.58533b9a.js} | 0 .../{chunk-1fe39068.b42a4687.js => chunk-1fe39068.88545176.js} | 0 .../{chunk-1fe40532.43ed19d3.js => chunk-1fe40532.37d1b0db.js} | 0 .../{chunk-2627340f.b97654b2.js => chunk-2627340f.fab96d75.js} | 0 .../{chunk-28990618.441e6475.js => chunk-28990618.95f3515c.js} | 0 .../{chunk-2d0ac90d.182ca4ff.js => chunk-2d0ac90d.e0bcd5e3.js} | 0 .../{chunk-2d0b3688.16ed26b1.js => chunk-2d0b3688.e4fc10cd.js} | 0 .../{chunk-2d0c061a.5f51a89e.js => chunk-2d0c061a.f4fb38fd.js} | 0 .../{chunk-2d0cf6a4.70894ce5.js => chunk-2d0cf6a4.55312a34.js} | 0 .../{chunk-2d0e148e.d0277f82.js => chunk-2d0e148e.291e91e7.js} | 0 .../{chunk-2d21b850.987f704d.js => chunk-2d21b850.4aeeb7cf.js} | 0 .../{chunk-2d224b2b.640b5bb9.js => chunk-2d224b2b.fa650c95.js} | 0 .../{chunk-309e49e4.3b4fb2c3.js => chunk-309e49e4.018ab90b.js} | 0 .../{chunk-310a053d.89b5bbb8.js => chunk-310a053d.148e23fd.js} | 0 .../{chunk-3b425bf2.6cca398c.js => chunk-3b425bf2.e6522618.js} | 0 dist/static/js/chunk-504bef5f.7e244c37.js | 1 + dist/static/js/chunk-559c8a4e.0de322f1.js | 1 + .../{chunk-59bb5b90.cb8e1d44.js => chunk-59bb5b90.0752f2f1.js} | 0 .../{chunk-63d4ab7f.42e7d233.js => chunk-63d4ab7f.ea58ad54.js} | 0 .../{chunk-695cbab1.1505c8b5.js => chunk-695cbab1.c30fd6f1.js} | 0 .../{chunk-6d72e803.7aa80690.js => chunk-6d72e803.6a9ade2e.js} | 0 .../{chunk-6f87105f.96929644.js => chunk-6f87105f.064693e6.js} | 0 .../{chunk-78390ace.3d920185.js => chunk-78390ace.c2dfa981.js} | 0 .../{chunk-7b356701.18dfd5d6.js => chunk-7b356701.a93f9abf.js} | 0 .../{chunk-7d913a8a.17e4b1aa.js => chunk-7d913a8a.7b5f2374.js} | 0 .../{chunk-7db1403b.e43e9553.js => chunk-7db1403b.0e9842b0.js} | 0 .../{chunk-7e46145d.5f0a2b29.js => chunk-7e46145d.c5e8cc95.js} | 0 .../{chunk-84f66ece.f0cc738d.js => chunk-84f66ece.74b6d6a3.js} | 0 .../{chunk-873c7c58.6b63b39d.js => chunk-873c7c58.f63445b7.js} | 0 .../{chunk-94641ab6.4b651997.js => chunk-94641ab6.f1787c72.js} | 0 .../{chunk-97877ad2.9f7a0aef.js => chunk-97877ad2.30d43263.js} | 0 .../{chunk-d1bd5818.985573e0.js => chunk-d1bd5818.eb22a592.js} | 0 .../{chunk-d4bc3576.0429cee2.js => chunk-d4bc3576.9ac0d4e7.js} | 0 .../{chunk-d4e6d2d8.7bca80b0.js => chunk-d4e6d2d8.4128db4b.js} | 0 .../{chunk-ec554b20.e6c74fe5.js => chunk-ec554b20.83dba556.js} | 0 dist/static/js/chunk-edf65c70.e805da3a.js | 1 + 55 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 dist/static/css/chunk-0935122f.3d323592.css delete mode 100644 dist/static/css/chunk-0bdab950.2e1b88f3.css delete mode 100644 dist/static/css/chunk-1f448eff.550f5314.css create mode 100644 dist/static/css/chunk-504bef5f.9096c703.css create mode 100644 dist/static/css/chunk-559c8a4e.030e02ed.css create mode 100644 dist/static/css/chunk-edf65c70.89f95a16.css rename dist/static/js/{app.9924c51f.js => app.ead6da20.js} (83%) rename dist/static/js/{chunk-038ce22f.36d5e485.js => chunk-038ce22f.0f74b093.js} (100%) rename dist/static/js/{chunk-05bf99c1.f6f5e938.js => chunk-05bf99c1.a3727c76.js} (100%) delete mode 100644 dist/static/js/chunk-0935122f.0ccd5982.js delete mode 100644 dist/static/js/chunk-0bdab950.3cbc383f.js rename dist/static/js/{chunk-11067227.5e010fb9.js => chunk-11067227.fb459518.js} (100%) create mode 100644 dist/static/js/chunk-115028d7.6e496db2.js delete mode 100644 dist/static/js/chunk-115028d7.abe604a2.js rename dist/static/js/{chunk-15a37012.23f393b0.js => chunk-15a37012.007d472f.js} (100%) rename dist/static/js/{chunk-15f86d65.cfb68594.js => chunk-15f86d65.595d30e0.js} (100%) delete mode 100644 dist/static/js/chunk-1f448eff.e3f27dd8.js rename dist/static/js/{chunk-1f4d12f6.721d574d.js => chunk-1f4d12f6.9e3ed07b.js} (100%) rename dist/static/js/{chunk-1f7519e6.7a9a2f7d.js => chunk-1f7519e6.58533b9a.js} (100%) rename dist/static/js/{chunk-1fe39068.b42a4687.js => chunk-1fe39068.88545176.js} (100%) rename dist/static/js/{chunk-1fe40532.43ed19d3.js => chunk-1fe40532.37d1b0db.js} (100%) rename dist/static/js/{chunk-2627340f.b97654b2.js => chunk-2627340f.fab96d75.js} (100%) rename dist/static/js/{chunk-28990618.441e6475.js => chunk-28990618.95f3515c.js} (100%) rename dist/static/js/{chunk-2d0ac90d.182ca4ff.js => chunk-2d0ac90d.e0bcd5e3.js} (100%) rename dist/static/js/{chunk-2d0b3688.16ed26b1.js => chunk-2d0b3688.e4fc10cd.js} (100%) rename dist/static/js/{chunk-2d0c061a.5f51a89e.js => chunk-2d0c061a.f4fb38fd.js} (100%) rename dist/static/js/{chunk-2d0cf6a4.70894ce5.js => chunk-2d0cf6a4.55312a34.js} (100%) rename dist/static/js/{chunk-2d0e148e.d0277f82.js => chunk-2d0e148e.291e91e7.js} (100%) rename dist/static/js/{chunk-2d21b850.987f704d.js => chunk-2d21b850.4aeeb7cf.js} (100%) rename dist/static/js/{chunk-2d224b2b.640b5bb9.js => chunk-2d224b2b.fa650c95.js} (100%) rename dist/static/js/{chunk-309e49e4.3b4fb2c3.js => chunk-309e49e4.018ab90b.js} (100%) rename dist/static/js/{chunk-310a053d.89b5bbb8.js => chunk-310a053d.148e23fd.js} (100%) rename dist/static/js/{chunk-3b425bf2.6cca398c.js => chunk-3b425bf2.e6522618.js} (100%) create mode 100644 dist/static/js/chunk-504bef5f.7e244c37.js create mode 100644 dist/static/js/chunk-559c8a4e.0de322f1.js rename dist/static/js/{chunk-59bb5b90.cb8e1d44.js => chunk-59bb5b90.0752f2f1.js} (100%) rename dist/static/js/{chunk-63d4ab7f.42e7d233.js => chunk-63d4ab7f.ea58ad54.js} (100%) rename dist/static/js/{chunk-695cbab1.1505c8b5.js => chunk-695cbab1.c30fd6f1.js} (100%) rename dist/static/js/{chunk-6d72e803.7aa80690.js => chunk-6d72e803.6a9ade2e.js} (100%) rename dist/static/js/{chunk-6f87105f.96929644.js => chunk-6f87105f.064693e6.js} (100%) rename dist/static/js/{chunk-78390ace.3d920185.js => chunk-78390ace.c2dfa981.js} (100%) rename dist/static/js/{chunk-7b356701.18dfd5d6.js => chunk-7b356701.a93f9abf.js} (100%) rename dist/static/js/{chunk-7d913a8a.17e4b1aa.js => chunk-7d913a8a.7b5f2374.js} (100%) rename dist/static/js/{chunk-7db1403b.e43e9553.js => chunk-7db1403b.0e9842b0.js} (100%) rename dist/static/js/{chunk-7e46145d.5f0a2b29.js => chunk-7e46145d.c5e8cc95.js} (100%) rename dist/static/js/{chunk-84f66ece.f0cc738d.js => chunk-84f66ece.74b6d6a3.js} (100%) rename dist/static/js/{chunk-873c7c58.6b63b39d.js => chunk-873c7c58.f63445b7.js} (100%) rename dist/static/js/{chunk-94641ab6.4b651997.js => chunk-94641ab6.f1787c72.js} (100%) rename dist/static/js/{chunk-97877ad2.9f7a0aef.js => chunk-97877ad2.30d43263.js} (100%) rename dist/static/js/{chunk-d1bd5818.985573e0.js => chunk-d1bd5818.eb22a592.js} (100%) rename dist/static/js/{chunk-d4bc3576.0429cee2.js => chunk-d4bc3576.9ac0d4e7.js} (100%) rename dist/static/js/{chunk-d4e6d2d8.7bca80b0.js => chunk-d4e6d2d8.4128db4b.js} (100%) rename dist/static/js/{chunk-ec554b20.e6c74fe5.js => chunk-ec554b20.83dba556.js} (100%) create mode 100644 dist/static/js/chunk-edf65c70.e805da3a.js diff --git a/dist/index.html b/dist/index.html index 12e33482..81f288d0 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-0935122f.3d323592.css b/dist/static/css/chunk-0935122f.3d323592.css deleted file mode 100644 index c7e720f6..00000000 --- a/dist/static/css/chunk-0935122f.3d323592.css +++ /dev/null @@ -1 +0,0 @@ -.search-wrap[data-v-f20ebcbc]{position:relative;z-index:2}.search-entry[data-v-f20ebcbc]{position:absolute;right:0;cursor:pointer;width:29px;height:29px}.set-high-index[data-v-f20ebcbc]{z-index:3}.search-bar[data-v-f20ebcbc]{position:relative;overflow:hidden;width:32px;height:32px;transition:width .15s ease-in}.search-bar .search-active-img[data-v-f20ebcbc],.search-bar .search-img[data-v-f20ebcbc]{width:29px;height:29px}.search-bar .search-input[data-v-f20ebcbc]{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-f20ebcbc],.search-bar .search-icon[data-v-f20ebcbc]{position:absolute;top:50%;transform:translateY(-50%);width:22px;height:22px;cursor:pointer}.search-bar .search-icon[data-v-f20ebcbc]{left:7px;background:url(/static/img/搜索.svg) 50%/100%}.search-bar .close-icon[data-v-f20ebcbc]{right:5px;background:url(/static/img/删除.svg) 50%/100%}.hide-search-bar[data-v-f20ebcbc]{width:0}.show-search-bar[data-v-f20ebcbc]{width:235px}[v-cloak][data-v-0481b847]{display:none!important}.nowTime[data-v-0481b847]{margin-left:6px}.now-time[data-v-0481b847]{margin:12px 0 0 0;color:#000;font-size:20px;font-family:PingFangSC-Regular}.big-time[data-v-0481b847]{height:41px;line-height:41px;color:#000;font-size:44px;text-align:left;font-family:PingFangSC-Regular}.prjitem[data-v-2b5d1f78]{display:inline-block;width:100%;border-radius:16px;margin:30px 0;transition:width .3s linear;overflow:hidden}.prjitem[data-v-2b5d1f78]:hover{box-shadow:-8px 0 10px #e0e0e0,8px 0 10px #e0e0e0,0 10px 10px #e0e0e0;transform:scale(1.02)}.prjitem[data-v-2b5d1f78]:last-child:nth-child(3n){margin-right:32%}.prjitem_content[data-v-2b5d1f78]{position:relative;width:100%;height:245px;background-color:#fff;overflow:hidden;border-top-left-radius:16px;border-top-right-radius:16px;cursor:pointer}.prjitem_img[data-v-2b5d1f78]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-height:245px;cursor:pointer;margin:0 auto}.prjitem_title[data-v-2b5d1f78]{position:absolute;bottom:24px;box-sizing:border-box;width:100%;font-size:25px;padding:0 0 0 24px;color:#fff;font-weight:500;text-shadow:0 2px 4px rgba(0,0,0,.5);-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;cursor:pointer;transition:bottom .07s ease-in}.newprj_icon[data-v-2b5d1f78]{width:52px;height:20px;position:absolute;left:24px;top:20px;line-height:20px;background-color:#d6243a;color:#fff;font-size:12px;border-radius:10px;text-align:center}.operate-bar[data-v-2b5d1f78]{position:absolute;bottom:11px;display:flex;justify-content:space-between;box-sizing:border-box;width:100%;opacity:0;transition:opacity .3s ease-in}.operate-bar .bar-item[data-v-2b5d1f78]{flex:1;margin:0 11px;height:52px;line-height:52px;text-align:center;font-size:14px;font-family:PingFangSC-Regular;border-radius:8px;color:#fff;background-color:rgba(50,50,60,.1);cursor:pointer}.operate-bar .bar-item[data-v-2b5d1f78]:hover{background-color:rgba(0,0,0,.2)}.operate-bar .bar-item[data-v-2b5d1f78]:active{background-color:rgba(50,50,60,.1)}.height-full[data-v-2b5d1f78]{height:100%!important;min-height:100%;max-height:100%}.width-full[data-v-2b5d1f78]{width:100%!important;min-width:100%;max-width:100%}.move-item-name[data-v-2b5d1f78]{bottom:50%;transform:translateY(50%)}.show-operate-bar[data-v-2b5d1f78]{opacity:1}.hide-operate-bar[data-v-2b5d1f78]{opacity:0}.prjitemList[data-v-22c87fa3]{padding:0 32px}.user_info_role .el-icon-close{display:block}[v-cloak]{display:none!important}.icon-icon_huishouzhan[data-v-fb390cea]{line-height:inherit}@media(max-width:600px){.timer-part{display:none}.adjust-position{width:100%!important;margin:0 auto}}#proj-list-page .app-header-content-right{display:flex}.new-btn-margin{margin:24px 0 0 64px}.org-button-icon[data-v-fb390cea]{transform:rotate(90deg)} \ No newline at end of file diff --git a/dist/static/css/chunk-0bdab950.2e1b88f3.css b/dist/static/css/chunk-0bdab950.2e1b88f3.css deleted file mode 100644 index 6cb71b0b..00000000 --- a/dist/static/css/chunk-0bdab950.2e1b88f3.css +++ /dev/null @@ -1 +0,0 @@ -.template_info_popup[data-v-faeadd8c]{position:relative;display:inline-block;vertical-align:top;width:660px;box-sizing:border-box;padding:10px 24px;margin-left:20px;height:100%;background-color:#f8f8f8;box-shadow:0 3px 11px 1px rgba(0,0,0,.06);border-radius:8px 8px 0 0}.template_info_popup .popup_line[data-v-faeadd8c]{height:.5px;background-color:#cccdd7}.template_info_popup .popup_head[data-v-faeadd8c]{position:relative;text-align:center;height:36px;line-height:36px;font-size:20px}.template_info_popup .popup_head_icon[data-v-faeadd8c]{position:absolute;left:0;top:0;font-size:36px;color:#7850ff}.template_info_popup .popup_head_center[data-v-faeadd8c]{color:#32323c;font-size:20px}.template_info_popup .popup_head_buttons[data-v-faeadd8c]{position:absolute;right:0;top:0}.template_info_popup .input-group[data-v-faeadd8c]{display:flex;width:100%}.template_info_popup .input-group>span[data-v-faeadd8c]{margin:0 10px}.template_info_popup .form-subtitle[data-v-faeadd8c]{color:#7850ff;font-size:13px;line-height:20px;margin-top:20px}.template_info_popup .divider[data-v-faeadd8c]{position:absolute;margin-top:5px;height:.5px;left:0;right:0;background-color:#cccdd7}.template_info_popup .properties-container[data-v-faeadd8c]{margin-top:20px;max-height:400px;overflow:auto}.template_info_popup .inp-with-outside-suffix[data-v-faeadd8c]{width:90%}.template_info_popup .el-icon-delete[data-v-faeadd8c]{position:relative;vertical-align:top;margin-left:10px;top:6px;font-size:20px;color:#d20f00;cursor:pointer}.template_files[data-v-6eab8660]{display:flex;flex-direction:row;height:100%;border-radius:8px 8px 0 0;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1);overflow:hidden}.template_files_left[data-v-6eab8660]{flex:none;width:320px;background-color:#f0f0f0;border-right:1px solid #e1e1e1;padding:8px;box-sizing:border-box;overflow:auto}.template_files_right[data-v-6eab8660]{flex:1;background-color:#fcfcfc}.template_files_right_title[data-v-6eab8660]{position:relative;height:44px;line-height:44px;padding-left:24px;color:#0c0d10;font-size:20px;background-color:#f8f8f8;border-bottom:1px solid rgba(0,0,0,.2)}.template_files_right_title .title_button[data-v-6eab8660]{position:absolute;top:0;bottom:0;height:32px;right:24px;margin:auto 0}.template_files_right_list_item[data-v-6eab8660]{display:flex;flex-direction:row;height:40px;line-height:40px;border-bottom:1px solid rgba(17,17,17,.1)}.template_files_right_list_item>div[data-v-6eab8660]{position:relative;padding-left:10px;font-size:12px}.template_files_right_list_item>div[data-v-6eab8660]:first-child{padding-left:24px;flex:407}.template_files_right_list_item>div[data-v-6eab8660]:nth-child(2){flex:139}.template_files_right_list_item>div[data-v-6eab8660]:nth-child(3){flex:140}.template_files_right_list_item>div[data-v-6eab8660]:nth-child(4){flex:70}.template_files_right_list_item>div[data-v-6eab8660]:nth-child(2):before,.template_files_right_list_item>div[data-v-6eab8660]:nth-child(3):before{content:"";position:absolute;top:0;bottom:0;left:0;margin:auto 0;width:1px;height:32px;background-color:rgba(17,17,17,.1)}.template_files_right_list_item .del_button[data-v-6eab8660]{color:#d20f00}.template_files .node_list_item[data-v-6eab8660]{height:28px;padding-left:10px;border-radius:4px;color:#32323c;line-height:28px;font-size:12px;cursor:pointer}.template_files .node_list_item.item_active[data-v-6eab8660],.template_files .node_list_item[data-v-6eab8660]:hover{background-color:rgba(50,50,60,.1)}.template_matrix[data-v-08a2a166]{width:100%;height:100%;padding-bottom:20px;box-sizing:border-box}.template_matrix_extra[data-v-08a2a166]{display:flex;justify-content:flex-end;margin-bottom:10px}.template_matrix_extra .search_inp[data-v-08a2a166]{width:200px;border-bottom:1px solid #e3e3e3}.template_matrix_extra .search_inp[data-v-08a2a166] .el-input__inner{background-color:transparent}.template_matrix_body[data-v-08a2a166]{width:100%;height:100%;height:calc(100% - 30px);overflow:auto}td.highlight .mark[data-v-08a2a166]{background-color:rgba(255,220,0,.1)}td.disabled[data-v-08a2a166]{position:relative;pointer-events:none;opacity:.5}td.disabled[data-v-08a2a166]:before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;z-index:20;background:linear-gradient(to top right,hsla(0,0%,80.4%,0) 0,hsla(0,0%,80.4%,0) calc(50% - 1px),hsla(0,0%,80.4%,.8) 50%,hsla(0,0%,80.4%,0) calc(50% + 1px),hsla(0,0%,80.4%,0))}td.disabled .circle_actived[data-v-08a2a166]{color:rgba(0,0,0,.5)}.table-unit td:not(.matixEquallyName):hover .mark[data-v-08a2a166]{background-color:rgba(255,220,0,.1)}.gundontiao[data-v-08a2a166] .el-loading-mask{background-color:hsla(0,0%,100%,.2)}.btnMatrixLookInfo[data-v-08a2a166]{background-color:#9b59b6;color:#fff}.menu__item[data-v-08a2a166]{text-align:left}.template_detail[data-v-ceb7854a]{height:100%}.template_detail_main[data-v-ceb7854a]{display:flex;flex-direction:row;height:100%;align-items:stretch;padding:0 40px}.template_detail_main_left[data-v-ceb7854a]{position:relative;flex:none;width:266px;padding-right:16px}.template_detail_main_left .nav_subtitle[data-v-ceb7854a]{color:rgba(0,0,0,.56);padding-left:24px;height:40px;line-height:40px;font-size:13px}.template_detail_main_left .nav_list_item[data-v-ceb7854a]{position:relative;height:44px;line-height:44px;background-color:#fff;padding-left:24px;color:#32323c;cursor:pointer}.template_detail_main_left .nav_list_item.item_active[data-v-ceb7854a],.template_detail_main_left .nav_list_item[data-v-ceb7854a]:hover{background-color:rgba(50,50,60,.1)}.template_detail_main_left .nav_list_item[data-v-ceb7854a]:not(:first-child){border-top:1px solid rgba(0,0,0,.2)}.template_detail_main_left .nav_list_item[data-v-ceb7854a]:first-child{border-top-left-radius:6px;border-top-right-radius:6px}.template_detail_main_left .nav_list_item[data-v-ceb7854a]:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.template_detail_main_left .nav_list_item .item_icon[data-v-ceb7854a]{position:absolute;top:0;bottom:0;margin:auto 0;right:20px;font-size:26px;height:1em}.template_detail_main_left .nav_list_item .item_icon.el-icon-delete-solid[data-v-ceb7854a]{color:#d6243a}.template_detail_main_left .nav_list_group.bottom[data-v-ceb7854a]{position:absolute;bottom:60px;left:0;right:16px}.template_detail_main_left .board[data-v-ceb7854a]{margin-top:20px;background-color:#fff;border-radius:6px}.template_detail_main_left .board-item[data-v-ceb7854a]{display:flex;justify-content:space-between;flex-direction:row;align-items:center;height:40px;line-height:40px;padding:0 10px}.template_detail_main_right[data-v-ceb7854a]{flex:1;width:100%;overflow:hidden}.template_detail .viewer[data-v-ceb7854a]{display:inline-block;vertical-align:top;width:100%;height:calc(100% - 40px);margin-top:20px;box-sizing:border-box}.template_detail .content_info[data-v-ceb7854a]{margin-left:90px}.template_detail .content_files[data-v-ceb7854a]{margin-right:60px} \ No newline at end of file diff --git a/dist/static/css/chunk-1f448eff.550f5314.css b/dist/static/css/chunk-1f448eff.550f5314.css deleted file mode 100644 index 8bf3dc17..00000000 --- a/dist/static/css/chunk-1f448eff.550f5314.css +++ /dev/null @@ -1 +0,0 @@ -.black[data-v-373b66dc]{color:#fff}.white[data-v-373b66dc]{background-color:#fcfcfc;box-shadow:0 1px 2px 0 rgba(0,0,0,.2)}.app-header[data-v-373b66dc]{position:fixed;top:0;width:100%;z-index:2;height:50px;line-height:50px}.app-header-content[data-v-373b66dc]{box-sizing:border-box;display:flex;justify-content:space-between;height:100%;width:100%;padding:0 64px;font-size:16px}.app-header-content-right>div[data-v-373b66dc],.app-header-content-right>span[data-v-373b66dc]{margin-left:18px}.app-header-center[data-v-373b66dc]{position:absolute;top:0;left:50%;transform:translateX(-50%);font-size:18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;height:50px;line-height:50px}.app-header-back-btn[data-v-373b66dc]{position:absolute;left:36px;top:0;bottom:0;margin:auto 0}.black-bg-color[data-v-373b66dc]{background-color:#32323c}.rt-2[data-v-a9676b70]{top:2px!important}.rt-0[data-v-a9676b70]{top:0!important}.rt-4[data-v-a9676b70]{top:4px!important}.empty[data-v-a9676b70]{background-color:#eaeaea}.people-item[data-v-a9676b70]{display:flex;position:relative;z-index:9;box-sizing:border-box;text-align:center;width:64px;padding:0 0 8px 0}.people-item .people-wrap[data-v-a9676b70]{position:relative;top:4px;border-radius:50%;margin:0 auto;width:100%}.people-item .people[data-v-a9676b70]{border-radius:50%}.active-manager-mark .people-name[data-v-a9676b70]{top:-2px}.people-item .el-icon-plus[data-v-a9676b70]{display:block;text-align:center;height:48px;line-height:48px;font-size:24px;color:#999b9d}.proj-avatarface[data-v-a9676b70]{vertical-align:bottom;width:48px;height:48px;border-radius:50%;overflow:hidden;background-color:#f6f6f6}.people-name[data-v-a9676b70]{position:relative;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:16px;line-height:16px;color:#111315;font-size:12px;text-align:center;font-family:PingFangSC-Regular;margin:8px auto 0}.add-btn[data-v-a9676b70]{cursor:pointer;margin:0 4px}.stand-place[data-v-317304d0]{width:64px;height:72px}.add_nest[data-v-317304d0]{position:absolute;right:10px;bottom:-6px;z-index:9;width:64px;height:80px;box-sizing:border-box}.add_nest .add_nest_box[data-v-317304d0]{cursor:pointer;width:64px;height:64px;box-sizing:border-box;border:1px solid #7850ff;border-radius:8px}.add_nest .add_nest_box .el-icon-plus[data-v-317304d0]{font-size:24px;color:#7850ff}.add_nest .add_nest_box p[data-v-317304d0]{color:#7850ff;font-size:14px;text-align:center;margin-top:10px}.opacity-5[data-v-317304d0]{opacity:.5}.user-perm-text[data-v-317304d0]{margin:0 0 0 8px}.notclick[data-v-317304d0]{cursor:not-allowed!important;opacity:.5}.notclick .avtarface[data-v-317304d0]{cursor:not-allowed}.allopacity[data-v-317304d0]{opacity:1}.noManagerText[data-v-317304d0]{font-size:0}.active-folder .people-item[data-v-317304d0]{cursor:pointer}.folder-name[data-v-317304d0]{height:20px;line-height:20px;margin:0 0 6px 12px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.adjust-position[data-v-317304d0]{position:relative;left:4px}.folder-wrap[data-v-317304d0]{position:relative;padding:6px 0 0 0;margin:12px 0 0 0;border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)}.edit-btn[data-v-317304d0]{position:absolute;top:4px;right:4px;width:64px;height:24px;line-height:24px;font-size:14px;text-align:center;font-family:PingFangSC-Regular;color:#979797;border-radius:4px;background-color:#fff;border:.5px solid #979797;cursor:pointer}.adjust-margin[data-v-317304d0]{margin-bottom:0}.mb-6[data-v-317304d0]{margin:0 0 6px 0}.hori-line[data-v-58e87d7b]{border:.5px solid #eaeaea;margin:13px 0 0 0}.member-list[data-v-58e87d7b]{width:100%;min-width:375px;max-width:375px;background-color:#fcfcfc;border-top-left-radius:8px;border-top-right-radius:8px;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.member-list .top-title[data-v-58e87d7b]{height:50px;line-height:50px;padding:0 0 0 24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.member-list .search-bar[data-v-58e87d7b]{position:relative;margin:6px 15px 7px;padding:0 5px}.member-list .search-bar .search-icon[data-v-58e87d7b]{position:absolute;left:10px;width:22px;height:22px;background:url(/static/img/搜索.svg) 50%/100%;margin:4px 0}.member-list .search-bar .search-input[data-v-58e87d7b]{box-sizing:border-box;outline:none;width:100%;height:30px;padding:0 0 0 30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;cursor:not-allowed}.member-list .content-wrap[data-v-58e87d7b]{padding:0 0 0 8px;overflow-y:scroll;height:calc(100vh - 177px)}.member-list .content-wrap .company-title[data-v-58e87d7b]{margin:12px 0 10px 16px;height:22px;line-height:22px;color:#32323c;font-size:18px;text-align:left;font-family:PingFangSC-Regular}.member-list .content-wrap .dept-name[data-v-58e87d7b]{margin:0 0 0 16px;flex:1}.member-list .people-wrap[data-v-58e87d7b]{padding:0 0 40px 0}.search-input[data-v-58e87d7b]::-webkit-input-placeholder{font-size:14px;font-family:Courier New,Courier,monospace;color:rgba(0,0,0,.56);height:20px!important;line-height:20px!important}.user-info-item[data-v-58e87d7b]:hover{background-color:rgba(50,50,60,.1)}.user-info-item[data-v-58e87d7b]{display:flex;padding:0 16px;height:44px;line-height:44px;align-items:center;cursor:pointer;border-radius:8px}.user-info-item .avatar-img[data-v-58e87d7b]{width:32px;height:32px;border-radius:50%;margin:0 13px 0 0}.user-info-item .user-info-name[data-v-58e87d7b]{flex:1;font-size:14px;font-family:PingFangSC-Regular}.member-list .el-collapse-item__wrap{border-bottom:none!important}.dept-select-all-btn .el-checkbox__label{padding:0 0 0 6px!important;margin:0 8px 0 0}.member-list .el-collapse{border:none!important}.member-list .el-collapse-item__arrow{position:relative;left:2px}.el-checkbox.dept-select-all-btn{position:absolute;right:15px}.member-list .el-collapse-item__header{height:44px!important;line-height:44px!important;border:none!important;position:relative}.user-info-item .el-checkbox__inner{width:20px;height:20px;color:#cbcbce}.member-list .el-collapse-item__header{margin:0 4px 0 0!important}.check-all-wrap{display:flex;align-items:center;margin:0 10px 0 0}.check-all-wrap .checkbox{width:10px;height:10px;margin:0 6px 0 0}.checkbox{float:right;width:20px;height:20px;border:1px solid #cbcbce;border-radius:50%}.checkbox.checked{background-color:#7850ff}.member-list .app-header-content{background-color:#f8f8f8}.empty-people-tips{font-size:16px;text-align:center;margin:20px 0}.slot_btn[data-v-37d14612]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.set_position[data-v-37d14612]{position:relative;border-top-right-radius:8px;border-top-left-radius:8px;box-shadow:none}.template_info_title[data-v-37d14612]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf}.template_select_content[data-v-37d14612]{height:calc(100vh - 100px);overflow-y:scroll}.template_select_content .template_info[data-v-37d14612]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf;transition:all .3s;cursor:pointer}.template_select_content .template_info .template_info_name[data-v-37d14612]{margin-left:38px;font-size:14px}.template_select_content .template_info .check_box[data-v-37d14612]{display:inline-block;width:28px;height:28px;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);background-color:#cbcbce;box-shadow:undefined,inset 0 1px 3px 0 rgba(0,0,0,.15)}.template_select_content .template_info .check_box.checked[data-v-37d14612]{background-color:#7850ff;text-align:center;line-height:28px;color:#fff}.template_select_content .template_info .check_box.checked .el-icon-check[data-v-37d14612]{display:inline-block}.template_select_content .template_info .check_box .el-icon-check[data-v-37d14612]{display:none}.template_info[data-v-37d14612]:hover{background-color:rgba(50,50,60,.15)}.edit-template-btn[data-v-37d14612],.to-distwork-btn[data-v-37d14612]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.template_improve .summary-wrap[data-v-37d14612]{height:calc(100vh - 116px);overflow:scroll;padding:0 24px;margin:16px 0 0 0;background-color:#fcfcfc}.template_improve .summary-wrap .prop-value-input[data-v-37d14612]{width:80%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.item[data-v-37d14612]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.item .item-title[data-v-37d14612]{color:#62492f;width:24%;text-align:right}.item .item-value[data-v-37d14612]{margin:0 0 0 12px}.item .item-value[data-v-37d14612]:not(.cover-img-wrap){flex:1}.set-header-position[data-v-37d14612]{position:relative!important;color:#32323c!important;z-index:99}.adjust-title-position[data-v-37d14612]{position:relative;top:11px}.proj_manage[data-v-7f6ce6d6]{width:100%;height:100%;padding:0 64px;box-sizing:border-box}.proj_manage .proj_manage_content[data-v-7f6ce6d6]{width:100%;height:100%;position:relative}.projModule[data-v-7f6ce6d6]{width:50%;min-width:660px;height:100%;right:0;position:absolute;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.finish-edit-btn[data-v-7f6ce6d6]{position:relative;left:-24px;cursor:pointer;background-color:#7850ff;color:#fff;border-radius:8px;height:32px;line-height:32px;text-align:center;font-size:14px;padding:0 10px;margin:9px 0}.question[data-v-7f6ce6d6]{display:flex;align-items:center;position:relative;left:24px;width:100%;color:#4b4d4f;font-size:13px;text-align:left;font-family:PingFangSC-Regular}.question .ques-icon[data-v-7f6ce6d6]{display:inline-block;width:20px;height:20px;background:url(/static/img/了解工作负责人.svg);cursor:pointer}.question .ques-text[data-v-7f6ce6d6]{margin:0 0 0 8px}.manager-tips[data-v-7f6ce6d6]{position:absolute;top:8px;left:24px;right:24px;z-index:99;text-align:center;padding:0 24px;height:84px;border-radius:8px;border:1px solid #449aff;background-color:#fcfcfc}.manager-tips .close-icon[data-v-7f6ce6d6]{position:absolute;right:5px;top:5px;width:20px;height:20px;background:url(/static/img/了解负责人关闭.svg);cursor:pointer}.manager-tips .tips-text[data-v-7f6ce6d6]{margin:24px 0 0 0;color:#32323c;font-size:14px;font-family:PingFangSC-Regular}.content-wrap[data-v-7f6ce6d6]{display:flex;align-items:flex-start;justify-content:center;padding:0 64px;height:100%;background-color:#ebebeb}.content-wrap .graph-left-part .node-viewer[data-v-7f6ce6d6],.content-wrap .graph-left-part[data-v-7f6ce6d6]{height:100%}.content-wrap .graph-left-part[data-v-7f6ce6d6],.content-wrap .right-part[data-v-7f6ce6d6]{width:50%;min-width:480px;max-width:660px}.right-part[data-v-7f6ce6d6]{box-sizing:border-box;border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden;background-color:#fcfcfc;transition:width .5s ease;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.right-part .proj-desc[data-v-7f6ce6d6]{background-color:#fcfcfc;min-height:calc(100vh - 96px)}.right-part .proj-desc .title[data-v-7f6ce6d6]{position:relative;left:-24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.right-part .proj-desc .proj-desc-wrap[data-v-7f6ce6d6]{padding:0 24px;height:calc(100vh - 126px);overflow:scroll;background-color:#f8f8f8}.right-part .proj-desc .proj-desc-wrap .cover-container[data-v-7f6ce6d6]{height:226px;margin:0 0 32px 0;border-radius:8px}.right-part .proj-desc .proj-desc-wrap .cover-container .cover-img-wrap[data-v-7f6ce6d6]{position:relative;width:293px;height:226px;overflow:hidden;border-radius:8px;box-shadow:0 7px 16px 0 rgba(0,0,0,.2)}.right-part .proj-desc .proj-desc-wrap .cover-container .cover-img-wrap .cover-img[data-v-7f6ce6d6]{position:absolute;top:50%;left:50%;height:100%;border-radius:8px;transform:translate(-50%,-50%)}.right-part .proj-desc .proj-desc-wrap .cover-container .edit-cover-btn[data-v-7f6ce6d6]{position:absolute;left:12px;bottom:12px;width:64px;height:28px;line-height:28px;border-radius:4px;background-color:#fff;border:.5px solid #979797;color:#32323c;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.right-part .proj-desc .proj-desc-wrap .proj-main-template+.item-value[data-v-7f6ce6d6]{position:relative;top:-2.5px;color:#32323c;font-size:18px}.right-part .item[data-v-7f6ce6d6]{display:flex;width:100%;margin:12px 0;font-size:14px;line-height:24px;font-family:PingFangSC-Regular;color:#32323c}.right-part .item .item-title[data-v-7f6ce6d6]{color:#62492f;width:24%;text-align:right}.right-part .item .item-value[data-v-7f6ce6d6]{position:relative;margin:0 0 0 12px}.right-part .item .item-value[data-v-7f6ce6d6]:not(.cover-img-wrap){flex:1;display:flex}.right-part .item .item-value.edit[data-v-7f6ce6d6]{display:inline-flex}.right-part .item .field-input[data-v-7f6ce6d6]{flex:1;width:140px;margin-right:10px;line-height:0}.right-part .item .field-input[data-v-7f6ce6d6] .el-input__inner{margin-top:0;height:24px;line-height:24px}.right-part .item .float-button[data-v-7f6ce6d6]{margin-left:10px}.edit-template-btn[data-v-7f6ce6d6],.to-distwork-btn[data-v-7f6ce6d6]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.header-bottom-shadow[data-v-7f6ce6d6]:after{content:"";display:block;width:100%;height:30px;background:linear-gradient(rgba(0,0,0,.06),transparent)}.adjust-title-position[data-v-7f6ce6d6]{position:relative;top:11px}.distwork-page[data-v-7f6ce6d6]{position:relative}.right-part .part-wrap[data-v-7f6ce6d6]{padding:0 4px 0 12px;height:calc(100vh - 126px);overflow-y:scroll;background-color:#f8f8f8}.right-part .part-wrap .proj-manager-row[data-v-7f6ce6d6]{margin:0 0 8px 0}.right-part .part-wrap .only-manager-see[data-v-7f6ce6d6]:hover{border-radius:8px;background-color:rgba(50,50,60,.1)}.right-part .part-wrap .row-title[data-v-7f6ce6d6]{padding:6px 0 0 0;margin:10px 0 6px 12px;height:20px;line-height:20px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.template-summary[data-v-7f6ce6d6]{background-color:#f8f8f8}.template-summary .summary-wrap[data-v-7f6ce6d6]{height:calc(100vh - 142px);overflow:scroll;padding:0 24px;margin:16px 0 0 0;background-color:#f8f8f8}.template-summary .summary-wrap .prop-value-input[data-v-7f6ce6d6]{width:100%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.set-right-part-width[data-v-7f6ce6d6]{min-width:300px;width:63.768%!important;margin-right:10px}.set-personnel-list-width[data-v-7f6ce6d6]{min-width:375px;max-width:375px;width:36.231%!important;transition:width 2.5s ease}.set-header-position[data-v-7f6ce6d6]{position:relative!important;color:#32323c!important;z-index:99}.template-detail-btn[data-v-7f6ce6d6]{height:40px;line-height:40px;border-radius:8px;color:#32323c;background-color:#fff;border:.5px solid #979797;text-align:center;margin:15px 12px 8px;cursor:pointer}.proj-detail .app-header-center{font-size:20px}.proj-summary .back_title{color:#0c0d10;font-size:15px;font-family:PingFangSC-Regular}.proj-detail .right-part .app-header-back-btn{background:url(/static/img/yiyunicon.png) no-repeat -28px -84px!important}.plain-folder-list{padding:0 0 28px 0}.right-part .app-header-content{background-color:#f8f8f8}.manager-folder-wrap{border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)} \ No newline at end of file diff --git a/dist/static/css/chunk-504bef5f.9096c703.css b/dist/static/css/chunk-504bef5f.9096c703.css new file mode 100644 index 00000000..fd066296 --- /dev/null +++ b/dist/static/css/chunk-504bef5f.9096c703.css @@ -0,0 +1 @@ +.search-wrap[data-v-f20ebcbc]{position:relative;z-index:2}.search-entry[data-v-f20ebcbc]{position:absolute;right:0;cursor:pointer;width:29px;height:29px}.set-high-index[data-v-f20ebcbc]{z-index:3}.search-bar[data-v-f20ebcbc]{position:relative;overflow:hidden;width:32px;height:32px;transition:width .15s ease-in}.search-bar .search-active-img[data-v-f20ebcbc],.search-bar .search-img[data-v-f20ebcbc]{width:29px;height:29px}.search-bar .search-input[data-v-f20ebcbc]{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-f20ebcbc],.search-bar .search-icon[data-v-f20ebcbc]{position:absolute;top:50%;transform:translateY(-50%);width:22px;height:22px;cursor:pointer}.search-bar .search-icon[data-v-f20ebcbc]{left:7px;background:url(/static/img/搜索.svg) 50%/100%}.search-bar .close-icon[data-v-f20ebcbc]{right:5px;background:url(/static/img/删除.svg) 50%/100%}.hide-search-bar[data-v-f20ebcbc]{width:0}.show-search-bar[data-v-f20ebcbc]{width:235px}[v-cloak][data-v-0481b847]{display:none!important}.nowTime[data-v-0481b847]{margin-left:6px}.now-time[data-v-0481b847]{margin:12px 0 0 0;color:#000;font-size:20px;font-family:PingFangSC-Regular}.big-time[data-v-0481b847]{height:41px;line-height:41px;color:#000;font-size:44px;text-align:left;font-family:PingFangSC-Regular}.prjitem[data-v-3516a822]{position:relative;display:inline-block;width:100%;border-radius:16px;margin:15px 0;transition:width .3s linear;overflow:hidden}.prjitem[data-v-3516a822]:hover{box-shadow:-8px 0 10px #e0e0e0,8px 0 10px #e0e0e0,0 10px 10px #e0e0e0;transform:scale(1.02)}.prjitem:hover .prjitem_settings[data-v-3516a822]{display:block}.prjitem[data-v-3516a822]:last-child:nth-child(3n){margin-right:32%}.prjitem_settings[data-v-3516a822]{display:none;cursor:pointer;width:40px;height:40px;line-height:40px;text-align:center;font-size:28px;border-radius:50%;background-color:#fff;color:#000}.prjitem_settings_wrapper[data-v-3516a822]{position:absolute;right:20px;top:20px}.prjitem_content[data-v-3516a822]{position:relative;width:100%;height:245px;background-color:#fff;overflow:hidden;border-top-left-radius:16px;border-top-right-radius:16px;cursor:pointer}.prjitem_img[data-v-3516a822]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-height:245px;cursor:pointer;margin:0 auto}.prjitem_title[data-v-3516a822]{position:absolute;bottom:24px;box-sizing:border-box;width:100%;font-size:25px;padding:0 0 0 24px;color:#fff;font-weight:500;text-shadow:0 2px 4px rgba(0,0,0,.5);-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;cursor:pointer;transition:bottom .07s ease-in}.newprj_icon[data-v-3516a822]{width:52px;height:20px;position:absolute;left:24px;top:20px;line-height:20px;background-color:#d6243a;color:#fff;font-size:12px;border-radius:10px;text-align:center}.operate-bar[data-v-3516a822]{position:absolute;bottom:11px;display:flex;justify-content:space-between;box-sizing:border-box;width:100%;opacity:0;transition:opacity .3s ease-in}.operate-bar .bar-item[data-v-3516a822]{flex:1;margin:0 11px;height:52px;line-height:52px;text-align:center;font-size:14px;font-family:PingFangSC-Regular;border-radius:8px;color:#fff;background-color:rgba(50,50,60,.1);cursor:pointer}.operate-bar .bar-item[data-v-3516a822]:hover{background-color:rgba(0,0,0,.2)}.operate-bar .bar-item[data-v-3516a822]:active{background-color:rgba(50,50,60,.1)}.height-full[data-v-3516a822]{height:100%!important;min-height:100%;max-height:100%}.width-full[data-v-3516a822]{width:100%!important;min-width:100%;max-width:100%}.move-item-name[data-v-3516a822]{bottom:50%;transform:translateY(50%)}.show-operate-bar[data-v-3516a822]{opacity:1}.hide-operate-bar[data-v-3516a822]{opacity:0}.prjitemList[data-v-d9269f9e]{padding:0 32px}.icon-triangle-circle[data-v-dd2d6402]{position:relative;display:inline-block;vertical-align:top;width:1em;height:1em;box-sizing:border-box}.icon-triangle-circle .circle[data-v-dd2d6402]{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;box-sizing:border-box;top:12%;width:90%;height:90%;border-radius:50%;border:2px solid transparent}.icon-triangle-circle>i[data-v-dd2d6402]{position:absolute;width:32%;height:32%;border-radius:50%;box-sizing:border-box}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(2){top:0;left:0;right:0;margin:0 auto}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(3){bottom:0;left:0}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(4){bottom:0;right:0}.user_info_role .el-icon-close{display:block}[v-cloak]{display:none!important}.icon-icon_huishouzhan[data-v-291d7b4a]{line-height:inherit}@media(max-width:600px){.timer-part{display:none}.adjust-position{width:100%!important;margin:0 auto}}#proj-list-page .app-header-content-right{display:flex}.new-btn-margin{margin:24px 0 0 64px}.org-button-icon[data-v-291d7b4a]{transform:rotate(90deg)}.group-title[data-v-291d7b4a]{margin-top:16px;padding-left:64px;font-size:24px;line-height:38px}.linkDialog[data-v-291d7b4a] .el-dialog__body{text-align:center}.linkDialog .icon-models[data-v-291d7b4a]{position:absolute;left:18px;top:18px}.linkDialog .el-icon-close[data-v-291d7b4a]{position:absolute;right:14px;top:14px;font-size:32px;color:rgba(0,0,0,.18)}.linkDialog .el-icon-close[data-v-291d7b4a]:before{content:""}.linkDialog .main-text[data-v-291d7b4a]{color:#32323c;font-size:18px}.linkDialog .block-button[data-v-291d7b4a]{display:block;width:100%;margin-left:0;margin-bottom:8px}.linkDialog .block-button[data-v-291d7b4a]:first-of-type{margin-top:40px}.linkDialog .block-button[data-v-291d7b4a]:nth-of-type(2){margin-bottom:16px}.linkDialog .block-button[data-v-291d7b4a]:last-of-type{color:rgba(17,17,17,.25)}.linkItem[data-v-291d7b4a]{position:relative;display:flex;flex-direction:column;width:100%;height:193px;border-radius:16px;box-sizing:border-box;background-color:#fff;box-shadow:0 4px 8px 0 rgba(0,0,0,.1),0 2px 4px 0 rgba(0,0,0,.05);cursor:pointer;margin-top:10px;padding:22px}.linkItem[data-v-291d7b4a]:hover{transform:scale(1.02)}.linkItem-list[data-v-291d7b4a]{padding:0 62px}.linkItem>div[data-v-291d7b4a]:first-child{flex:none;height:30px;color:#2896e6;line-height:30px}.linkItem>div:first-child>span[data-v-291d7b4a]{margin-left:10px}.linkItem>div[data-v-291d7b4a]:nth-child(2){flex:1;font-size:22px;display:flex;align-items:center}.linkItem>div[data-v-291d7b4a]:last-child{flex:none;height:26px;line-height:26px} \ No newline at end of file diff --git a/dist/static/css/chunk-559c8a4e.030e02ed.css b/dist/static/css/chunk-559c8a4e.030e02ed.css new file mode 100644 index 00000000..bc363d9c --- /dev/null +++ b/dist/static/css/chunk-559c8a4e.030e02ed.css @@ -0,0 +1 @@ +.black[data-v-373b66dc]{color:#fff}.white[data-v-373b66dc]{background-color:#fcfcfc;box-shadow:0 1px 2px 0 rgba(0,0,0,.2)}.app-header[data-v-373b66dc]{position:fixed;top:0;width:100%;z-index:2;height:50px;line-height:50px}.app-header-content[data-v-373b66dc]{box-sizing:border-box;display:flex;justify-content:space-between;height:100%;width:100%;padding:0 64px;font-size:16px}.app-header-content-right>div[data-v-373b66dc],.app-header-content-right>span[data-v-373b66dc]{margin-left:18px}.app-header-center[data-v-373b66dc]{position:absolute;top:0;left:50%;transform:translateX(-50%);font-size:18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;height:50px;line-height:50px}.app-header-back-btn[data-v-373b66dc]{position:absolute;left:36px;top:0;bottom:0;margin:auto 0}.black-bg-color[data-v-373b66dc]{background-color:#32323c}.rt-2[data-v-a9676b70]{top:2px!important}.rt-0[data-v-a9676b70]{top:0!important}.rt-4[data-v-a9676b70]{top:4px!important}.empty[data-v-a9676b70]{background-color:#eaeaea}.people-item[data-v-a9676b70]{display:flex;position:relative;z-index:9;box-sizing:border-box;text-align:center;width:64px;padding:0 0 8px 0}.people-item .people-wrap[data-v-a9676b70]{position:relative;top:4px;border-radius:50%;margin:0 auto;width:100%}.people-item .people[data-v-a9676b70]{border-radius:50%}.active-manager-mark .people-name[data-v-a9676b70]{top:-2px}.people-item .el-icon-plus[data-v-a9676b70]{display:block;text-align:center;height:48px;line-height:48px;font-size:24px;color:#999b9d}.proj-avatarface[data-v-a9676b70]{vertical-align:bottom;width:48px;height:48px;border-radius:50%;overflow:hidden;background-color:#f6f6f6}.people-name[data-v-a9676b70]{position:relative;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:16px;line-height:16px;color:#111315;font-size:12px;text-align:center;font-family:PingFangSC-Regular;margin:8px auto 0}.add-btn[data-v-a9676b70]{cursor:pointer;margin:0 4px}.icon-triangle-circle[data-v-dd2d6402]{position:relative;display:inline-block;vertical-align:top;width:1em;height:1em;box-sizing:border-box}.icon-triangle-circle .circle[data-v-dd2d6402]{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;box-sizing:border-box;top:12%;width:90%;height:90%;border-radius:50%;border:2px solid transparent}.icon-triangle-circle>i[data-v-dd2d6402]{position:absolute;width:32%;height:32%;border-radius:50%;box-sizing:border-box}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(2){top:0;left:0;right:0;margin:0 auto}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(3){bottom:0;left:0}.icon-triangle-circle>i[data-v-dd2d6402]:nth-child(4){bottom:0;right:0}.stand-place[data-v-1def7049]{width:64px;height:72px}.extra-buttons[data-v-1def7049]{position:absolute;right:12px;top:4px}.extra-buttons .extra-button[data-v-1def7049]{position:relative}.extra-buttons .extra-button-icon[data-v-1def7049]{position:absolute;left:0;top:0;bottom:0;margin:auto 0}.add_nest[data-v-1def7049]{position:absolute;right:10px;bottom:-6px;z-index:9;width:64px;height:80px;box-sizing:border-box}.add_nest .add_nest_box[data-v-1def7049]{cursor:pointer;width:64px;height:64px;box-sizing:border-box;border:1px solid #7850ff;border-radius:8px}.add_nest .add_nest_box .el-icon-plus[data-v-1def7049]{font-size:24px;color:#7850ff}.add_nest .add_nest_box p[data-v-1def7049]{color:#7850ff;font-size:14px;text-align:center;margin-top:10px}.opacity-5[data-v-1def7049]{opacity:.5}.user-perm-text[data-v-1def7049]{margin:0 0 0 8px}.notclick[data-v-1def7049]{cursor:not-allowed!important;opacity:.5}.notclick .avtarface[data-v-1def7049]{cursor:not-allowed}.allopacity[data-v-1def7049]{opacity:1}.noManagerText[data-v-1def7049]{font-size:0}.active-folder .people-item[data-v-1def7049]{cursor:pointer}.folder-name[data-v-1def7049]{height:20px;line-height:20px;margin:0 0 6px 12px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.adjust-position[data-v-1def7049]{position:relative;left:4px}.folder-wrap[data-v-1def7049]{position:relative;padding:6px 0 0 0;margin:12px 0 0 0;border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)}.edit-btn[data-v-1def7049]{position:absolute;top:4px;right:4px;width:64px;height:24px;line-height:24px;font-size:14px;text-align:center;font-family:PingFangSC-Regular;color:#979797;border-radius:4px;background-color:#fff;border:.5px solid #979797;cursor:pointer}.adjust-margin[data-v-1def7049]{margin-bottom:0}.mb-6[data-v-1def7049]{margin:0 0 6px 0}.hori-line[data-v-58e87d7b]{border:.5px solid #eaeaea;margin:13px 0 0 0}.member-list[data-v-58e87d7b]{width:100%;min-width:375px;max-width:375px;background-color:#fcfcfc;border-top-left-radius:8px;border-top-right-radius:8px;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.member-list .top-title[data-v-58e87d7b]{height:50px;line-height:50px;padding:0 0 0 24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.member-list .search-bar[data-v-58e87d7b]{position:relative;margin:6px 15px 7px;padding:0 5px}.member-list .search-bar .search-icon[data-v-58e87d7b]{position:absolute;left:10px;width:22px;height:22px;background:url(/static/img/搜索.svg) 50%/100%;margin:4px 0}.member-list .search-bar .search-input[data-v-58e87d7b]{box-sizing:border-box;outline:none;width:100%;height:30px;padding:0 0 0 30px;border-radius:8px;background-color:#e9e9eb;border:.5px solid #aeaeae;cursor:not-allowed}.member-list .content-wrap[data-v-58e87d7b]{padding:0 0 0 8px;overflow-y:scroll;height:calc(100vh - 177px)}.member-list .content-wrap .company-title[data-v-58e87d7b]{margin:12px 0 10px 16px;height:22px;line-height:22px;color:#32323c;font-size:18px;text-align:left;font-family:PingFangSC-Regular}.member-list .content-wrap .dept-name[data-v-58e87d7b]{margin:0 0 0 16px;flex:1}.member-list .people-wrap[data-v-58e87d7b]{padding:0 0 40px 0}.search-input[data-v-58e87d7b]::-webkit-input-placeholder{font-size:14px;font-family:Courier New,Courier,monospace;color:rgba(0,0,0,.56);height:20px!important;line-height:20px!important}.user-info-item[data-v-58e87d7b]:hover{background-color:rgba(50,50,60,.1)}.user-info-item[data-v-58e87d7b]{display:flex;padding:0 16px;height:44px;line-height:44px;align-items:center;cursor:pointer;border-radius:8px}.user-info-item .avatar-img[data-v-58e87d7b]{width:32px;height:32px;border-radius:50%;margin:0 13px 0 0}.user-info-item .user-info-name[data-v-58e87d7b]{flex:1;font-size:14px;font-family:PingFangSC-Regular}.member-list .el-collapse-item__wrap{border-bottom:none!important}.dept-select-all-btn .el-checkbox__label{padding:0 0 0 6px!important;margin:0 8px 0 0}.member-list .el-collapse{border:none!important}.member-list .el-collapse-item__arrow{position:relative;left:2px}.el-checkbox.dept-select-all-btn{position:absolute;right:15px}.member-list .el-collapse-item__header{height:44px!important;line-height:44px!important;border:none!important;position:relative}.user-info-item .el-checkbox__inner{width:20px;height:20px;color:#cbcbce}.member-list .el-collapse-item__header{margin:0 4px 0 0!important}.check-all-wrap{display:flex;align-items:center;margin:0 10px 0 0}.check-all-wrap .checkbox{width:10px;height:10px;margin:0 6px 0 0}.checkbox{float:right;width:20px;height:20px;border:1px solid #cbcbce;border-radius:50%}.checkbox.checked{background-color:#7850ff}.member-list .app-header-content{background-color:#f8f8f8}.empty-people-tips{font-size:16px;text-align:center;margin:20px 0}.slot_btn[data-v-3f290ff7]{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-3f290ff7]{position:relative;border-top-right-radius:8px;border-top-left-radius:8px;box-shadow:none}.template_info_title[data-v-3f290ff7]{width:100%;line-height:44px;padding:0 24px;position:relative;box-sizing:border-box;border-bottom:1px solid #dededf}.template_select_content[data-v-3f290ff7]{height:calc(100vh - 100px);overflow-y:scroll}.template_select_content .template_info[data-v-3f290ff7]{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-3f290ff7]{margin-left:38px;font-size:14px}.template_select_content .template_info_extra[data-v-3f290ff7]{position:absolute;right:20px;font-size:14px;color:rgba(0,0,0,.56)}.template_select_content .template_info .check_box[data-v-3f290ff7]{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-3f290ff7]{background-color:#7850ff;text-align:center;line-height:28px;color:#fff}.template_select_content .template_info .check_box.checked .el-icon-check[data-v-3f290ff7]{display:inline-block}.template_select_content .template_info .check_box .el-icon-check[data-v-3f290ff7]{display:none}.template_info[data-v-3f290ff7]:hover{background-color:rgba(50,50,60,.15)}.edit-template-btn[data-v-3f290ff7],.to-distwork-btn[data-v-3f290ff7]{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-3f290ff7]{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-3f290ff7]{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-3f290ff7]{display:flex;width:100%;margin:14px 0;font-size:14px;font-family:PingFangSC-Regular;color:#32323c}.item .item-title[data-v-3f290ff7]{color:#62492f;width:24%;text-align:right}.item .item-value[data-v-3f290ff7]{margin:0 0 0 12px}.item .item-value[data-v-3f290ff7]:not(.cover-img-wrap){flex:1}.set-header-position[data-v-3f290ff7]{position:relative!important;color:#32323c!important;z-index:99}.adjust-title-position[data-v-3f290ff7]{position:relative;top:11px}.proj_manage[data-v-551504ef]{width:100%;height:100%;padding:0 64px;box-sizing:border-box}.proj_manage .proj_manage_content[data-v-551504ef]{width:100%;height:100%;position:relative}.projModule[data-v-551504ef]{width:50%;min-width:660px;height:100%;right:0;position:absolute;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.finish-edit-btn[data-v-551504ef]{position:relative;left:-24px;cursor:pointer;background-color:#7850ff;color:#fff;border-radius:8px;height:32px;line-height:32px;text-align:center;font-size:14px;padding:0 10px;margin:9px 0}.question[data-v-551504ef]{display:flex;align-items:center;position:relative;left:24px;width:100%;color:#4b4d4f;font-size:13px;text-align:left;font-family:PingFangSC-Regular}.question .ques-icon[data-v-551504ef]{display:inline-block;width:20px;height:20px;background:url(/static/img/了解工作负责人.svg);cursor:pointer}.question .ques-text[data-v-551504ef]{margin:0 0 0 8px}.manager-tips[data-v-551504ef]{position:absolute;top:8px;left:24px;right:24px;z-index:99;text-align:center;padding:0 24px;height:84px;border-radius:8px;border:1px solid #449aff;background-color:#fcfcfc}.manager-tips .close-icon[data-v-551504ef]{position:absolute;right:5px;top:5px;width:20px;height:20px;background:url(/static/img/了解负责人关闭.svg);cursor:pointer}.manager-tips .tips-text[data-v-551504ef]{margin:24px 0 0 0;color:#32323c;font-size:14px;font-family:PingFangSC-Regular}.content-wrap[data-v-551504ef]{display:flex;align-items:flex-start;justify-content:center;padding:0 64px;height:100%;background-color:#ebebeb}.content-wrap .graph-left-part .node-viewer[data-v-551504ef],.content-wrap .graph-left-part[data-v-551504ef]{height:100%}.content-wrap .graph-left-part[data-v-551504ef],.content-wrap .right-part[data-v-551504ef]{width:50%;min-width:480px;max-width:660px}.right-part[data-v-551504ef]{box-sizing:border-box;border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden;background-color:#fcfcfc;transition:width .5s ease;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1)}.right-part .proj-desc[data-v-551504ef]{background-color:#fcfcfc;min-height:calc(100vh - 96px)}.right-part .proj-desc .title[data-v-551504ef]{position:relative;left:-24px;color:#0c0d10;font-size:20px;text-align:left;font-family:PingFangSC-Medium}.proj-desc-wrap[data-v-551504ef]{padding:0 24px;height:calc(100vh - 126px);overflow:scroll;background-color:#f8f8f8}.proj-desc-wrap.dialog-detail[data-v-551504ef]{height:auto;background:#fff}.proj-desc-wrap .cover-container[data-v-551504ef]{height:226px;margin:0 0 32px 0!important;border-radius:8px}.proj-desc-wrap .cover-container .cover-img-wrap[data-v-551504ef]{position:relative;width:293px;height:226px;overflow:hidden;border-radius:8px;box-shadow:0 7px 16px 0 rgba(0,0,0,.2)}.proj-desc-wrap .cover-container .cover-img-wrap .cover-img[data-v-551504ef]{position:absolute;top:50%;left:50%;height:100%;border-radius:8px;transform:translate(-50%,-50%)}.proj-desc-wrap .cover-container .edit-cover-btn[data-v-551504ef]{position:absolute;left:12px;bottom:12px;width:64px;height:28px;line-height:28px;border-radius:4px;background-color:#fff;border:.5px solid #979797;color:#32323c;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.proj-desc-wrap .item[data-v-551504ef]{display:flex;width:100%;margin:12px 0;font-size:14px;line-height:24px;font-family:PingFangSC-Regular;color:#32323c}.proj-desc-wrap .item .item-title[data-v-551504ef]{color:#62492f;width:24%;text-align:right}.proj-desc-wrap .item .item-value[data-v-551504ef]{position:relative;margin:0 0 0 12px}.proj-desc-wrap .item .item-value[data-v-551504ef]:not(.cover-img-wrap){flex:1;display:flex}.proj-desc-wrap .item .item-value.edit[data-v-551504ef]{display:inline-flex}.proj-desc-wrap .item .field-input[data-v-551504ef]{flex:1;width:140px;margin-right:10px;line-height:0}.proj-desc-wrap .item .field-input[data-v-551504ef] .el-input__inner{margin-top:0;height:24px;line-height:24px}.proj-desc-wrap .item .float-button[data-v-551504ef]{margin-left:10px}.proj-desc-wrap .proj-main-template+.item-value[data-v-551504ef]{position:relative;top:-2.5px;color:#32323c;font-size:18px}.nest-project-modal[data-v-551504ef] .el-dialog__header{text-align:left;background-color:#f8f8f8;padding:15px 24px}.nest-project-modal-title[data-v-551504ef]{display:flex;font-size:20px;line-height:30px;justify-content:space-between}.nest-project-modal .remove-button[data-v-551504ef]{width:100%}.edit-template-btn[data-v-551504ef],.to-distwork-btn[data-v-551504ef]{position:relative;left:24px;cursor:pointer;padding:0 16px;height:32px;line-height:32px;margin:9px 0;border-radius:8px;background-color:#7850ff;color:#f5f5f7;font-size:14px;text-align:center;font-family:PingFangSC-Regular}.header-bottom-shadow[data-v-551504ef]:after{content:"";display:block;width:100%;height:30px;background:linear-gradient(rgba(0,0,0,.06),transparent)}.adjust-title-position[data-v-551504ef]{position:relative;top:11px}.distwork-page[data-v-551504ef]{position:relative}.right-part .part-wrap[data-v-551504ef]{padding:0 4px 0 12px;height:calc(100vh - 126px);overflow-y:scroll;background-color:#f8f8f8}.right-part .part-wrap .proj-manager-row[data-v-551504ef]{margin:0 0 8px 0}.right-part .part-wrap .only-manager-see[data-v-551504ef]:hover{border-radius:8px;background-color:rgba(50,50,60,.1)}.right-part .part-wrap .row-title[data-v-551504ef]{padding:6px 0 0 0;margin:10px 0 6px 12px;height:20px;line-height:20px;color:#32323c;font-size:14px;text-align:left;font-family:PingFangSC-Regular}.template-summary[data-v-551504ef]{background-color:#f8f8f8}.template-summary .summary-wrap[data-v-551504ef]{height:calc(100vh - 142px);overflow:scroll;padding:0 24px;margin:16px 0 0 0;background-color:#f8f8f8}.template-summary .summary-wrap .prop-value-input[data-v-551504ef]{width:100%;height:44px;border-radius:4px;color:rgba(0,0,0,.56);background-color:#e9e9eb;border:.5px solid #aeaeae;font-size:16px;padding-left:16px}.set-right-part-width[data-v-551504ef]{min-width:300px;width:63.768%!important;margin-right:10px}.set-personnel-list-width[data-v-551504ef]{min-width:375px;max-width:375px;width:36.231%!important;transition:width 2.5s ease}.set-header-position[data-v-551504ef]{position:relative!important;color:#32323c!important;z-index:99}.template-detail-btn[data-v-551504ef]{height:40px;line-height:40px;border-radius:8px;color:#32323c;background-color:#fff;border:.5px solid #979797;text-align:center;margin:15px 12px 8px;cursor:pointer}.proj-detail .app-header-center{font-size:20px}.proj-summary .back_title{color:#0c0d10;font-size:15px;font-family:PingFangSC-Regular}.proj-detail .right-part .app-header-back-btn{background:url(/static/img/yiyunicon.png) no-repeat -28px -84px!important}.plain-folder-list{padding:0 0 28px 0}.right-part .app-header-content{background-color:#f8f8f8}.manager-folder-wrap{border-radius:8px;background-color:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.02)} \ No newline at end of file diff --git a/dist/static/css/chunk-edf65c70.89f95a16.css b/dist/static/css/chunk-edf65c70.89f95a16.css new file mode 100644 index 00000000..e5c266df --- /dev/null +++ b/dist/static/css/chunk-edf65c70.89f95a16.css @@ -0,0 +1 @@ +.template_info_popup[data-v-89a8c208]{position:relative;display:inline-block;vertical-align:top;width:660px;box-sizing:border-box;padding:10px 24px;margin-left:20px;height:100%;background-color:#f8f8f8;box-shadow:0 3px 11px 1px rgba(0,0,0,.06);border-radius:8px 8px 0 0}.template_info_popup .popup_line[data-v-89a8c208]{height:.5px;background-color:#cccdd7}.template_info_popup .popup_head[data-v-89a8c208]{position:relative;text-align:center;height:36px;line-height:36px;font-size:20px;margin-bottom:20px}.template_info_popup .popup_head_icon[data-v-89a8c208]{position:absolute;left:0;top:0;font-size:36px;color:#7850ff}.template_info_popup .popup_head_center[data-v-89a8c208]{color:#32323c;font-size:20px}.template_info_popup .popup_head_buttons[data-v-89a8c208]{position:absolute;right:0;top:0}.template_info_popup .input-group[data-v-89a8c208]{display:flex;width:100%}.template_info_popup .input-group>span[data-v-89a8c208]{margin:0 10px}.template_info_popup .form-subtitle[data-v-89a8c208]{color:#7850ff;font-size:13px;line-height:20px;margin-top:20px}.template_info_popup .divider[data-v-89a8c208]{position:absolute;margin-top:5px;height:.5px;left:0;right:0;background-color:#cccdd7}.template_info_popup .properties-container[data-v-89a8c208]{margin-top:20px;max-height:400px;overflow:auto}.template_info_popup .inp-with-outside-suffix[data-v-89a8c208]{width:90%}.template_info_popup .el-icon-delete[data-v-89a8c208]{position:relative;vertical-align:top;margin-left:10px;top:6px;font-size:20px;color:#d20f00;cursor:pointer}.template_files[data-v-6eab8660]{display:flex;flex-direction:row;height:100%;border-radius:8px 8px 0 0;box-shadow:0 4px 10px 1px rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.1);overflow:hidden}.template_files_left[data-v-6eab8660]{flex:none;width:320px;background-color:#f0f0f0;border-right:1px solid #e1e1e1;padding:8px;box-sizing:border-box;overflow:auto}.template_files_right[data-v-6eab8660]{flex:1;background-color:#fcfcfc}.template_files_right_title[data-v-6eab8660]{position:relative;height:44px;line-height:44px;padding-left:24px;color:#0c0d10;font-size:20px;background-color:#f8f8f8;border-bottom:1px solid rgba(0,0,0,.2)}.template_files_right_title .title_button[data-v-6eab8660]{position:absolute;top:0;bottom:0;height:32px;right:24px;margin:auto 0}.template_files_right_list_item[data-v-6eab8660]{display:flex;flex-direction:row;height:40px;line-height:40px;border-bottom:1px solid rgba(17,17,17,.1)}.template_files_right_list_item>div[data-v-6eab8660]{position:relative;padding-left:10px;font-size:12px}.template_files_right_list_item>div[data-v-6eab8660]:first-child{padding-left:24px;flex:407}.template_files_right_list_item>div[data-v-6eab8660]:nth-child(2){flex:139}.template_files_right_list_item>div[data-v-6eab8660]:nth-child(3){flex:140}.template_files_right_list_item>div[data-v-6eab8660]:nth-child(4){flex:70}.template_files_right_list_item>div[data-v-6eab8660]:nth-child(2):before,.template_files_right_list_item>div[data-v-6eab8660]:nth-child(3):before{content:"";position:absolute;top:0;bottom:0;left:0;margin:auto 0;width:1px;height:32px;background-color:rgba(17,17,17,.1)}.template_files_right_list_item .del_button[data-v-6eab8660]{color:#d20f00}.template_files .node_list_item[data-v-6eab8660]{height:28px;padding-left:10px;border-radius:4px;color:#32323c;line-height:28px;font-size:12px;cursor:pointer}.template_files .node_list_item.item_active[data-v-6eab8660],.template_files .node_list_item[data-v-6eab8660]:hover{background-color:rgba(50,50,60,.1)}.template_matrix[data-v-08a2a166]{width:100%;height:100%;padding-bottom:20px;box-sizing:border-box}.template_matrix_extra[data-v-08a2a166]{display:flex;justify-content:flex-end;margin-bottom:10px}.template_matrix_extra .search_inp[data-v-08a2a166]{width:200px;border-bottom:1px solid #e3e3e3}.template_matrix_extra .search_inp[data-v-08a2a166] .el-input__inner{background-color:transparent}.template_matrix_body[data-v-08a2a166]{width:100%;height:100%;height:calc(100% - 30px);overflow:auto}td.highlight .mark[data-v-08a2a166]{background-color:rgba(255,220,0,.1)}td.disabled[data-v-08a2a166]{position:relative;pointer-events:none;opacity:.5}td.disabled[data-v-08a2a166]:before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;z-index:20;background:linear-gradient(to top right,hsla(0,0%,80.4%,0) 0,hsla(0,0%,80.4%,0) calc(50% - 1px),hsla(0,0%,80.4%,.8) 50%,hsla(0,0%,80.4%,0) calc(50% + 1px),hsla(0,0%,80.4%,0))}td.disabled .circle_actived[data-v-08a2a166]{color:rgba(0,0,0,.5)}.table-unit td:not(.matixEquallyName):hover .mark[data-v-08a2a166]{background-color:rgba(255,220,0,.1)}.gundontiao[data-v-08a2a166] .el-loading-mask{background-color:hsla(0,0%,100%,.2)}.btnMatrixLookInfo[data-v-08a2a166]{background-color:#9b59b6;color:#fff}.menu__item[data-v-08a2a166]{text-align:left}.template_detail[data-v-ceb7854a]{height:100%}.template_detail_main[data-v-ceb7854a]{display:flex;flex-direction:row;height:100%;align-items:stretch;padding:0 40px}.template_detail_main_left[data-v-ceb7854a]{position:relative;flex:none;width:266px;padding-right:16px}.template_detail_main_left .nav_subtitle[data-v-ceb7854a]{color:rgba(0,0,0,.56);padding-left:24px;height:40px;line-height:40px;font-size:13px}.template_detail_main_left .nav_list_item[data-v-ceb7854a]{position:relative;height:44px;line-height:44px;background-color:#fff;padding-left:24px;color:#32323c;cursor:pointer}.template_detail_main_left .nav_list_item.item_active[data-v-ceb7854a],.template_detail_main_left .nav_list_item[data-v-ceb7854a]:hover{background-color:rgba(50,50,60,.1)}.template_detail_main_left .nav_list_item[data-v-ceb7854a]:not(:first-child){border-top:1px solid rgba(0,0,0,.2)}.template_detail_main_left .nav_list_item[data-v-ceb7854a]:first-child{border-top-left-radius:6px;border-top-right-radius:6px}.template_detail_main_left .nav_list_item[data-v-ceb7854a]:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}.template_detail_main_left .nav_list_item .item_icon[data-v-ceb7854a]{position:absolute;top:0;bottom:0;margin:auto 0;right:20px;font-size:26px;height:1em}.template_detail_main_left .nav_list_item .item_icon.el-icon-delete-solid[data-v-ceb7854a]{color:#d6243a}.template_detail_main_left .nav_list_group.bottom[data-v-ceb7854a]{position:absolute;bottom:60px;left:0;right:16px}.template_detail_main_left .board[data-v-ceb7854a]{margin-top:20px;background-color:#fff;border-radius:6px}.template_detail_main_left .board-item[data-v-ceb7854a]{display:flex;justify-content:space-between;flex-direction:row;align-items:center;height:40px;line-height:40px;padding:0 10px}.template_detail_main_right[data-v-ceb7854a]{flex:1;width:100%;overflow:hidden}.template_detail .viewer[data-v-ceb7854a]{display:inline-block;vertical-align:top;width:100%;height:calc(100% - 40px);margin-top:20px;box-sizing:border-box}.template_detail .content_info[data-v-ceb7854a]{margin-left:90px}.template_detail .content_files[data-v-ceb7854a]{margin-right:60px} \ No newline at end of file diff --git a/dist/static/js/app.9924c51f.js b/dist/static/js/app.ead6da20.js similarity index 83% rename from dist/static/js/app.9924c51f.js rename to dist/static/js/app.ead6da20.js index d950cc60..08ad99ba 100644 --- a/dist/static/js/app.9924c51f.js +++ b/dist/static/js/app.ead6da20.js @@ -1 +1 @@ -(function(e){function n(n){for(var a,r,i=n[0],u=n[1],s=n[2],d=0,l=[];d4&&void 0!==arguments[4]?arguments[4]:[];return{platformType:e,orgId:n,orgLogo:a,orgName:t,accessList:r}}var o={CompanyConsole:"company_console",ProjectManager:"project_manager"};function c(e,n){return-1!==e.indexOf(n)}},"1d40":function(e,n,t){"use strict";(function(e){t("99af"),t("4de4"),t("7db0"),t("c975"),t("a15b"),t("d81d"),t("fb6a"),t("b0c0"),t("d3b7"),t("07ac"),t("ac1f"),t("5319"),t("1276");var a=t("5530"),r=(t("96cf"),t("1da1")),o=t("3835"),c=t("b775"),i=t("3de1"),u=t("2ef0"),s=t("2b0e"),d=!!e.electron,l=5,f=5,p=[],h=[],m=[],b=[],k=function(){p=[],h=[],m=[],b=[]},g=function(){},y=function(e){var n=new WebSocket("ws://127.0.0.1:7777/".concat(e));return n.on=n.addEventListener,n},v=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)}))}))},w=function(e){return d?e:g},O={isClient:d,init:w((function(){console.log("客户端 electron API 检测:",e.electron)})),keepLiveTest:w((function(n,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u["identity"],r=y("keeplive"),o=1,c=null,i=e.electron.ipcRenderer;function s(){n(!0),r.send(o)}i.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)}))})),subscribeGatewayMessage:w((function(){var e=y("messageNotify");e.on("message",(function(e){var n=e.data;try{var t=n.split("\n"),a=Object(o["a"])(t,2),r=a[0],c=a[1];i["d"].warning(c,r)}catch(u){console.error("gateway message error:",n,u)}}))})),shrinkBrowserWindow:w(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:w(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:w(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:w(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:w(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:w((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["identity"],t=y("initClientConfig");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return s["default"].prototype.$notify({message:"请联系企业管理员检查存储节点配置项。",type:["error"]}),void n(e)}))})),checkForUpdates:w((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u["identity"],n=y("checkForUpdates"),t=1;n.on("open",(function(){n.send(t)})),n.on("message",(function(n){if("-1"===n.data)return s["default"].prototype.$notify({message:"已是最新版本。",type:["success"]}),void e(n)}))})),clientOpenFileWith:w((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["identity"],t=y("openFileWith");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return s["default"].prototype.$notify({message:"服务端出现错误, 请稍后重试。",type:["error"]}),void n(e)})),t.on("error",n)})),login:function(){},logout:function(){},entryProject:w(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n,t,a,r,o,c){var i,s,d,l=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=l.length>6&&void 0!==l[6]?l[6]:u["identity"],e.next=3,v(y("init"),[a,t,n].join("|"));case 3:s=e.sent,o(s.data),d=y("subscriptionFileChange"),d.on("open",(function(){d.send(n)})),d.on("message",r),d.on("error",i),c(d);case 10:case"end":return e.stop()}}),e)})));return function(n,t,a,r,o,c){return e.apply(this,arguments)}}()),leaveProject:w((function(e){e.close(),k()})),downloadFile:w((function(e,n,t,a,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:u["identity"],d=function u(){var d=y("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?(s["default"].prototype.$notify({message:"".concat(t,",网络请求失败。"),type:["warning","download"],title:"文件下载失败"}),void o(e)):"-2"===e.data?(i["d"].error("请先关闭本地文件后再下载"),void o(e)):void r(e,d)})),d.on("error",(function(e){o(e)})),d.on("close",(function(){if(m=m.filter((function(e){return e!==u})),b.length){var e=b.shift();m.push(e),e()}}))};m.length>=f?b.push(d):(m.push(d),d())})),analyzeSystemPath:w(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,v(y("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(u["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:w(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:w(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:w(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var t,o,d,f,m,b,k,g,v,w,O,C,j,I,N,S,x,P,_,L,E,R,A,G,T;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=n.creator,o=n.projectId,d=n.projectName,f=n.folderId,m=n.folderName,b=n.folderLevelId,k=n.distFileRelativePath,g=void 0===k?"":k,v=n.fileName,w=n.fileExtension,O=n.sourceFilePath,C=n.fileList,j=n.onSuccess,I=n.onProgress,N=void 0===I?u["identity"]:I,S=n.onError,x=void 0===S?u["identity"]:S,P=n.successAllHandler,_=n.totalReadyUploadNum,L=n.tempNumWrap,E=w?"".concat(v,".").concat(w):v,R="".concat(m).concat(g?"/".concat(g):""),A=C.find((function(e){return g===e.relativePath&&"".concat(e.archName).concat(e.extension?".".concat(e.extension):"")===E})),G=A?Object(i["c"])(Object(a["a"])(Object(a["a"])({},A),{},{ModifyUserId:sessionStorage.userId})):{ArchName:v,CreateUserId:sessionStorage.userId,Extension:w,FolderId:f,FolderLevelId:b,Id:"upload:".concat("".concat(Math.random()).slice(2,8)),ProjId:o,RelativePath:g,Status:1,Version:1},N({process:0},G),T=function e(){var n=function(){if(p=p.filter((function(n){return n!==e})),h.length){var n=h.shift();p.push(n),n()}x.apply(void 0,arguments)},o=function(){if(p=p.filter((function(n){return n!==e})),h.length){var n=h.shift();p.push(n),n()}j.apply(void 0,arguments)},u=y("upload");u.on("open",(function(){var e="",n="",a=!1,r=[O,E,d,R.replace(/\//g,"\\"),e,n,t,a].join("|");u.send(r),N({process:0},G)})),u.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 i["d"].error("文件上传失败"),n(t,G),e.abrupt("return");case 4:if("-2"!==t.data){e.next=8;break}return i["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 u.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==_&&(s["default"].prototype.$notify({type:["success","upload"],title:"文件上传成功",message:"".concat(G.ArchName)}),P()),o(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)}}()),u.on("error",(function(e){n(e,G)}))},p.length>=l?h.push(T):(p.push(T),T());case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),updateFile:w((function(e,n,t,a,o,s,d,l,f,p){var h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:u["identity"],m=arguments.length>11&&void 0!==arguments[11]?arguments[11]:u["identity"],b=y("upload"),k=e.archName,g=e.extension,v=(e.id,"".concat(k).concat(g?".".concat(g):"")),w="".concat(n,"\\").concat(a,"\\").concat(v);b.on("open",(function(){var e=[w,v,t,a,o,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,y;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("-1"!==t.data){n.next=4;break}return i["d"].error("文件上传失败"),m(t),n.abrupt("return");case 4:if("-2"!==t.data){n.next=8;break}return i["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,k=a.version,h(a),100===s&&d){n.next=15;break}return n.abrupt("return");case 15:return b.close(),g=Object(i["c"])(Object(u["cloneDeep"])(e)),g.ModifyUserId=sessionStorage.userId,g.HistoryPreIpfsCid=o,g.HistoryCurrentIpfsCid=l,f||(g.Size=+r,g.IpfsCid=d,g.Version=k),n.next=23,Object(c["b"])("file/updateFile",g);case 23:return y=n.sent,Object(c["c"])(y),f&&(g.Size=+r,g.IpfsCid=d,g.Version=k),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:w((function(e,n,t){var a=y("queryCommitHistory");a.on("open",(function(){a.send([e,n].join("|"))})),a.on("message",(function(e){if("-1"===e.data)return i["d"].error("查询历史文件失败"),void t([]);var n=JSON.parse(e.data),a=Object.values(n);t(a)}))})),editCommitHistoryMilestone:w((function(e,n,t,a,r){var o=y("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 i["d"].error("设置里程碑失败")}))})),openFile:w((function(n){var t=e.electron.shell;t.openPath(n)})),openFolder:w((function(n){var t=e.electron.shell;t.showItemInFolder(n)}))};n["a"]=O}).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,"d",(function(){return i})),t.d(n,"a",(function(){return u}));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={success:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["success"],duration:2500})},error:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["error"],duration:2500})},warning:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["warning"],duration:2500})}};function u(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-7b356701"),t.e("chunk-63d4ab7f")]).then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-1f4d12f6")]).then(t.bind(null,"46a4"))}},{path:"/projdetail",name:"projdetail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-1f448eff")]).then(t.bind(null,"47c5"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-59bb5b90")]).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-7b356701"),t.e("chunk-115028d7")]).then(t.bind(null,"a341"))}},{path:"/watchlink",name:"watchlink",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-ec554b20")]).then(t.bind(null,"80fb"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-6f87105f")]).then(t.bind(null,"0a7f"))}},{path:"/index",name:"index",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-0935122f")]).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-7b356701"),t.e("chunk-7e46145d"),t.e("chunk-873c7c58")]).then(t.bind(null,"3b2f"))}},{path:"/recycle",name:"recycle",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-97877ad2")]).then(t.bind(null,"8b1e"))}},{path:"/history",name:"history",component:function(){return Promise.all([t.e("chunk-7e46145d"),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-6d72e803")]).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-7b356701"),t.e("chunk-2627340f")]).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-7db1403b").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-84f66ece").then(t.bind(null,"4083"))}},{path:"template/detail",name:"company_template_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-310a053d")]).then(t.bind(null,"df39"))}},{path:"template/market",name:"company_template_market",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-d1bd5818")]).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-7b356701"),t.e("chunk-1f7519e6")]).then(function(){var n=[t("65b7")];e.apply(null,n)}.bind(this)).catch(t.oe)},redirect:{name:"template_console"},children:[{path:"console",name:"template_console",component:function(){return t.e("chunk-d4bc3576").then(t.bind(null,"8875"))}},{path:"console/detail",name:"template_console_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-0bdab950")]).then(t.bind(null,"ccf7"))}},{path:"console/create",name:"template_console_create",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-15f86d65")]).then(function(){var n=[t("1fab7")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/system",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-d4e6d2d8")]).then(t.bind(null,"f364"))},redirect:{name:"system_customer"},children:[{path:"customer",name:"system_customer",component:function(){return t.e("chunk-94641ab6").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-7b356701"),t.e("chunk-3b425bf2")]).then(t.bind(null,"2275"))}},{path:"template/mind",name:"system_template_mind",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-695cbab1")]).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-15a37012").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.04.30 22:41"),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})),c["a"].subscribeGatewayMessage())},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("b8ff"),t("6964"),t("2877")),d=Object(s["a"])(u,r,o,!1,null,"d326a332",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},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,o,c,i,u,s,d,l,f,p,h,m,y,v,w,O,C,j,I,N;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=30;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,j=O.CompanyName,I=O.ServiceProviderStatus,N=[],1==I&&f.push(Object(k["d"])(k["b"].TEMPLATE_CONSOLE,i,j,C,[])),m&&N.push(k["a"].CompanyConsole),1===d&&N.push(k["a"].ProjectManager),f.push(Object(k["d"])(k["b"].COMPANY,i,j,C,N));case 30: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 37: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"),j=t("a78e"),I=t.n(j),N=t("5ab9"),S=function(e){return Object(N["a"])(e)||"/static/img/avator_default.svg"},x=function(e,n){var t="avator"===n?"/static/img/avator_default.svg":"";return Object(N["a"])(e)||t},P=t("cee5"),_=t.n(P),L=function(e){return _()(e)},E=t("caf9"),R=t("32ed"),A=t.n(R),G=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"}]})},T=[],$={props:{src:String}},M=$,K=Object(s["a"])(M,G,T,!1,null,null,null),F=K.exports,W=(t("856b"),t("d903"),t("c610"),t("935a"),t("51b0"),t("53be"),t("1f94"),t("d2ad")),H=a["default"].extend(W["default"]),z=document.createElement("div");z.style="position: fixed; right: 32px; top: 68px;z-index:99999",document.body.appendChild(z);var B=function(e){var n=new H({propsData:e});n.vm=n.$mount(),z.appendChild(n.vm.$el)},D=B;a["default"].use(h.a),a["default"].use(E["a"]),a["default"].use(C["a"]),a["default"].prototype.$cookie=I.a,a["default"].component("ImgLazy",F),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"].filter("resolveFileSize",L),a["default"].prototype.$bus=new a["default"],a["default"].prototype.$notify=D,a["default"].use(A.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"),o=t("2ef0"),c=new r({region:"oss-cn-hangzhou",accessKeyId:"LTAI4G2BEDNpfdLmquYYMaMV",accessKeySecret:"tPhAL3qAgF9Tq67h73snAmwu8iPZ5t",bucket:"yiyun-client-files",secure:!0}),i=function(e){return"".concat((new Date).getTime(),"/").concat(e)},u=function(e){return"oss://".concat(e)};function s(e,n){return d.apply(this,arguments)}function d(){return d=Object(a["a"])(regeneratorRuntime.mark((function e(n,t){var a,r,o,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.length>2&&void 0!==u[2]?u[2]:{},e.prev=1,r=i(n),e.next=5,c.multipartUpload(r,t,a);case 5:return o=e.sent,e.abrupt("return",o);case 9:return e.prev=9,e.t0=e["catch"](1),console.error("file upload failed:",e.t0),e.abrupt("return",null);case 13:case"end":return e.stop()}}),e,null,[[1,9]])}))),d.apply(this,arguments)}var l=Object(o["memoize"])((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(0!==e.indexOf("oss://"))return e;var t=e.substr(6),a=n||t.split("/").pop();try{var r=3600,o=c.signatureUrl(t,{expires:r,response:{"content-disposition":'attachment; filename="'.concat(a,'"')}});return setTimeout((function(){l.cache.delete(e)}),1e3*r),o}catch(i){return null}}))},"5b49":function(e,n,t){"use strict";var a=t("1f09"),r=t.n(a);r.a},"5c0b":function(e,n,t){"use strict";var a=t("9c0c"),r=t.n(a);r.a},6964:function(e,n,t){"use strict";var a=t("7dff"),r=t.n(a);r.a},"7dff":function(e,n,t){},"856b":function(e,n,t){},"935a":function(e,n,t){},"99e1":function(e,n,t){"use strict";var a=t("f225"),r=t.n(a);r.a},"9c0c":function(e,n,t){},b775:function(e,n,t){"use strict";t.d(n,"b",(function(){return d})),t.d(n,"c",(function(){return f}));t("99af"),t("c975"),t("fb6a"),t("d3b7"),t("ac1f"),t("25f0"),t("1276"),t("96cf");var a=t("3835"),r=t("1da1"),o=t("bc3a"),c=t.n(o),i=t("2b0e"),u=t("41cb"),s=t("3de1");function d(e,n,t){return l.apply(this,arguments)}function l(){return l=Object(r["a"])(regeneratorRuntime.mark((function e(n,t,r){var o,i,u,s,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=p(n),i=Object(a["a"])(o,2),u=i[0],s=i[1],e.prev=1,e.next=4,"GET"===u?c.a.get(s,{params:t},r):c.a.post(s,t,r);case 4:return d=e.sent,e.abrupt("return",d.data);case 8:if(e.prev=8,e.t0=e["catch"](1),!e.t0.response||!e.t0.response.status){e.next=16;break}e.t1=e.t0.response.status,e.next=404===e.t1?14:15;break;case 14:return e.abrupt("return",{Code:404,Msg:"找不到指定的服务。"});case 15:return e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 16:return console.error(e.t0),e.abrupt("return",{Code:503,Msg:"服务异常,请稍后再试。"});case 18:case"end":return e.stop()}}),e,null,[[1,8]])}))),l.apply(this,arguments)}function f(e){if(0!==e.Code){var n=e.Code?e.Code.toString():"",t="error";404===e.Code&&(t="warning"),i["default"].prototype.$notify({message:e.Msg,title:n+"错误",type:t})}return e}function p(e){var n=e.split("/"),t=Object(a["a"])(n,1),r=t[0],o=-1!==["template","project","folder","file","templateCompany"].indexOf(r)?"pms":"cms",c="api/".concat(o,"/").concat("authentication"===r?"":"v1/").concat(e),i="GET";switch(e){case"authentication/login":case"authentication/passwordCheck":case"company/addCompany":case"company/queryGeneralOverview":case"company/queryProviceTree":case"company/updateCompanyById":case"company/link/addCompanyLink":case"company/link/updateCompanyLink":case"dept/addDept":case"dept/updateDept":case"user/addUser":case"user/resetPassWord":case"user/updateUser":case"template/createTemplate":case"template/fileExchange":case"template/updateTemplate":case"template/uploadingXmind":case"template/addTemplateNodeModelFile":case"template/createNestedRelevance":case"template/connectNestTemplateFolder":case"folder/createSubfolder":case"project/createProject":case"project/editProject":case"project/assignedWork":case"file/addArchMilesStone":case"file/addFile":case"file/updateFile":case"file/fileCoordinationChange":case"file/setShareFile":case"operation/record":case"file/updateProjArchiveHistory":case"templateCompany/addTemplateCompany":case"project/addProjectGobalConfig":case"file/submitDeliverables":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},b8ff:function(e,n,t){"use strict";var a=t("cc4f"),r=t.n(a);r.a},c610:function(e,n,t){},cc4f: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){},f225:function(e,n,t){}}); \ No newline at end of file +(function(e){function n(n){for(var a,r,i=n[0],u=n[1],s=n[2],d=0,l=[];d4&&void 0!==arguments[4]?arguments[4]:[];return{platformType:e,orgId:n,orgLogo:a,orgName:t,accessList:r}}var o={CompanyConsole:"company_console",ProjectManager:"project_manager"};function c(e,n){return-1!==e.indexOf(n)}},"1d40":function(e,n,t){"use strict";(function(e){t("99af"),t("4de4"),t("7db0"),t("c975"),t("a15b"),t("d81d"),t("fb6a"),t("b0c0"),t("d3b7"),t("07ac"),t("ac1f"),t("5319"),t("1276");var a=t("5530"),r=(t("96cf"),t("1da1")),o=t("3835"),c=t("b775"),i=t("3de1"),u=t("2ef0"),s=t("2b0e"),d=!!e.electron,l=5,f=5,p=[],h=[],m=[],b=[],k=function(){p=[],h=[],m=[],b=[]},g=function(){},y=function(e){var n=new WebSocket("ws://127.0.0.1:7777/".concat(e));return n.on=n.addEventListener,n},v=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)}))}))},w=function(e){return d?e:g},O={isClient:d,init:w((function(){console.log("客户端 electron API 检测:",e.electron)})),keepLiveTest:w((function(n,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u["identity"],r=y("keeplive"),o=1,c=null,i=e.electron.ipcRenderer;function s(){n(!0),r.send(o)}i.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)}))})),subscribeGatewayMessage:w((function(){var e=y("messageNotify");e.on("message",(function(e){var n=e.data;try{var t=n.split("\n"),a=Object(o["a"])(t,2),r=a[0],c=a[1];i["d"].warning(c,r)}catch(u){console.error("gateway message error:",n,u)}}))})),shrinkBrowserWindow:w(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:w(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:w(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:w(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:w(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:w((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["identity"],t=y("initClientConfig");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return s["default"].prototype.$notify({message:"请联系企业管理员检查存储节点配置项。",type:["error"]}),void n(e)}))})),checkForUpdates:w((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u["identity"],n=y("checkForUpdates"),t=1;n.on("open",(function(){n.send(t)})),n.on("message",(function(n){if("-1"===n.data)return s["default"].prototype.$notify({message:"已是最新版本。",type:["success"]}),void e(n)}))})),clientOpenFileWith:w((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["identity"],t=y("openFileWith");t.on("open",(function(){t.send(e)})),t.on("message",(function(e){if("-1"===e.data)return s["default"].prototype.$notify({message:"服务端出现错误, 请稍后重试。",type:["error"]}),void n(e)})),t.on("error",n)})),login:function(){},logout:function(){},entryProject:w(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n,t,a,r,o,c){var i,s,d,l=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=l.length>6&&void 0!==l[6]?l[6]:u["identity"],e.next=3,v(y("init"),[a,t,n].join("|"));case 3:s=e.sent,o(s.data),d=y("subscriptionFileChange"),d.on("open",(function(){d.send(n)})),d.on("message",r),d.on("error",i),c(d);case 10:case"end":return e.stop()}}),e)})));return function(n,t,a,r,o,c){return e.apply(this,arguments)}}()),leaveProject:w((function(e){e.close(),k()})),downloadFile:w((function(e,n,t,a,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:u["identity"],d=function u(){var d=y("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?(s["default"].prototype.$notify({message:"".concat(t,",网络请求失败。"),type:["warning","download"],title:"文件下载失败"}),void o(e)):"-2"===e.data?(i["d"].error("请先关闭本地文件后再下载"),void o(e)):void r(e,d)})),d.on("error",(function(e){o(e)})),d.on("close",(function(){if(m=m.filter((function(e){return e!==u})),b.length){var e=b.shift();m.push(e),e()}}))};m.length>=f?b.push(d):(m.push(d),d())})),analyzeSystemPath:w(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,v(y("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(u["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:w(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:w(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:w(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var t,o,d,f,m,b,k,g,v,w,O,C,j,I,N,S,x,P,_,L,E,R,A,G,T;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=n.creator,o=n.projectId,d=n.projectName,f=n.folderId,m=n.folderName,b=n.folderLevelId,k=n.distFileRelativePath,g=void 0===k?"":k,v=n.fileName,w=n.fileExtension,O=n.sourceFilePath,C=n.fileList,j=n.onSuccess,I=n.onProgress,N=void 0===I?u["identity"]:I,S=n.onError,x=void 0===S?u["identity"]:S,P=n.successAllHandler,_=n.totalReadyUploadNum,L=n.tempNumWrap,E=w?"".concat(v,".").concat(w):v,R="".concat(m).concat(g?"/".concat(g):""),A=C.find((function(e){return g===e.relativePath&&"".concat(e.archName).concat(e.extension?".".concat(e.extension):"")===E})),G=A?Object(i["c"])(Object(a["a"])(Object(a["a"])({},A),{},{ModifyUserId:sessionStorage.userId})):{ArchName:v,CreateUserId:sessionStorage.userId,Extension:w,FolderId:f,FolderLevelId:b,Id:"upload:".concat("".concat(Math.random()).slice(2,8)),ProjId:o,RelativePath:g,Status:1,Version:1},N({process:0},G),T=function e(){var n=function(){if(p=p.filter((function(n){return n!==e})),h.length){var n=h.shift();p.push(n),n()}x.apply(void 0,arguments)},o=function(){if(p=p.filter((function(n){return n!==e})),h.length){var n=h.shift();p.push(n),n()}j.apply(void 0,arguments)},u=y("upload");u.on("open",(function(){var e="",n="",a=!1,r=[O,E,d,R.replace(/\//g,"\\"),e,n,t,a].join("|");u.send(r),N({process:0},G)})),u.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 i["d"].error("文件上传失败"),n(t,G),e.abrupt("return");case 4:if("-2"!==t.data){e.next=8;break}return i["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 u.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==_&&(s["default"].prototype.$notify({type:["success","upload"],title:"文件上传成功",message:"".concat(G.ArchName)}),P()),o(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)}}()),u.on("error",(function(e){n(e,G)}))},p.length>=l?h.push(T):(p.push(T),T());case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),updateFile:w((function(e,n,t,a,o,s,d,l,f,p){var h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:u["identity"],m=arguments.length>11&&void 0!==arguments[11]?arguments[11]:u["identity"],b=y("upload"),k=e.archName,g=e.extension,v=(e.id,"".concat(k).concat(g?".".concat(g):"")),w="".concat(n,"\\").concat(a,"\\").concat(v);b.on("open",(function(){var e=[w,v,t,a,o,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,y;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("-1"!==t.data){n.next=4;break}return i["d"].error("文件上传失败"),m(t),n.abrupt("return");case 4:if("-2"!==t.data){n.next=8;break}return i["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,k=a.version,h(a),100===s&&d){n.next=15;break}return n.abrupt("return");case 15:return b.close(),g=Object(i["c"])(Object(u["cloneDeep"])(e)),g.ModifyUserId=sessionStorage.userId,g.HistoryPreIpfsCid=o,g.HistoryCurrentIpfsCid=l,f||(g.Size=+r,g.IpfsCid=d,g.Version=k),n.next=23,Object(c["b"])("file/updateFile",g);case 23:return y=n.sent,Object(c["c"])(y),f&&(g.Size=+r,g.IpfsCid=d,g.Version=k),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:w((function(e,n,t){var a=y("queryCommitHistory");a.on("open",(function(){a.send([e,n].join("|"))})),a.on("message",(function(e){if("-1"===e.data)return i["d"].error("查询历史文件失败"),void t([]);var n=JSON.parse(e.data),a=Object.values(n);t(a)}))})),editCommitHistoryMilestone:w((function(e,n,t,a,r){var o=y("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 i["d"].error("设置里程碑失败")}))})),openFile:w((function(n){var t=e.electron.shell;t.openPath(n)})),openFolder:w((function(n){var t=e.electron.shell;t.showItemInFolder(n)}))};n["a"]=O}).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,"d",(function(){return i})),t.d(n,"a",(function(){return u}));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={success:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["success"],duration:2500})},error:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["error"],duration:2500})},warning:function(e,n){r["default"].prototype.$notify({title:n,message:e,type:["warning"],duration:2500})}};function u(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-7b356701"),t.e("chunk-63d4ab7f")]).then(t.bind(null,"9ed6"))}},{path:"/demo",name:"demo",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-1f4d12f6")]).then(t.bind(null,"46a4"))}},{path:"/projdetail",name:"projdetail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-559c8a4e")]).then(t.bind(null,"47c5"))}},{path:"/watch",name:"watch",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-59bb5b90")]).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-7b356701"),t.e("chunk-115028d7")]).then(t.bind(null,"a341"))}},{path:"/watchlink",name:"watchlink",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-ec554b20")]).then(t.bind(null,"80fb"))}},{path:"/platform",name:"platform",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-6f87105f")]).then(t.bind(null,"0a7f"))}},{path:"/index",name:"index",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-504bef5f")]).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-7b356701"),t.e("chunk-7e46145d"),t.e("chunk-873c7c58")]).then(t.bind(null,"3b2f"))}},{path:"/recycle",name:"recycle",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-97877ad2")]).then(t.bind(null,"8b1e"))}},{path:"/history",name:"history",component:function(){return Promise.all([t.e("chunk-7e46145d"),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-6d72e803")]).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-7b356701"),t.e("chunk-2627340f")]).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-7db1403b").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-84f66ece").then(t.bind(null,"4083"))}},{path:"template/detail",name:"company_template_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-310a053d")]).then(t.bind(null,"df39"))}},{path:"template/market",name:"company_template_market",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-d1bd5818")]).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-7b356701"),t.e("chunk-1f7519e6")]).then(function(){var n=[t("65b7")];e.apply(null,n)}.bind(this)).catch(t.oe)},redirect:{name:"template_console"},children:[{path:"console",name:"template_console",component:function(){return t.e("chunk-d4bc3576").then(t.bind(null,"8875"))}},{path:"console/detail",name:"template_console_detail",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-edf65c70")]).then(t.bind(null,"ccf7"))}},{path:"console/create",name:"template_console_create",component:function(e){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-15f86d65")]).then(function(){var n=[t("1fab7")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/system",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-d4e6d2d8")]).then(t.bind(null,"f364"))},redirect:{name:"system_customer"},children:[{path:"customer",name:"system_customer",component:function(){return t.e("chunk-94641ab6").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-7b356701"),t.e("chunk-3b425bf2")]).then(t.bind(null,"2275"))}},{path:"template/mind",name:"system_template_mind",component:function(){return Promise.all([t.e("chunk-7d913a8a"),t.e("chunk-7b356701"),t.e("chunk-695cbab1")]).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-15a37012").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.05.12 13:45"),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})),c["a"].subscribeGatewayMessage())},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("b8ff"),t("6964"),t("2877")),d=Object(s["a"])(u,r,o,!1,null,"d326a332",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},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,o,c,i,u,s,d,l,f,p,h,m,y,v,w,O,C,j,I,N;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=30;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,j=O.CompanyName,I=O.ServiceProviderStatus,N=[],1==I&&f.push(Object(k["d"])(k["b"].TEMPLATE_CONSOLE,i,j,C,[])),m&&N.push(k["a"].CompanyConsole),1===d&&N.push(k["a"].ProjectManager),f.push(Object(k["d"])(k["b"].COMPANY,i,j,C,N));case 30: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 37: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"),j=t("a78e"),I=t.n(j),N=t("5ab9"),S=function(e){return Object(N["a"])(e)||"/static/img/avator_default.svg"},x=function(e,n){var t="avator"===n?"/static/img/avator_default.svg":"";return Object(N["a"])(e)||t},P=t("cee5"),_=t.n(P),L=function(e){return _()(e)},E=t("caf9"),R=t("32ed"),A=t.n(R),G=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"}]})},T=[],$={props:{src:String}},M=$,K=Object(s["a"])(M,G,T,!1,null,null,null),F=K.exports,W=(t("856b"),t("d903"),t("c610"),t("935a"),t("51b0"),t("53be"),t("1f94"),t("d2ad")),H=a["default"].extend(W["default"]),z=document.createElement("div");z.style="position: fixed; right: 32px; top: 68px;z-index:99999",document.body.appendChild(z);var B=function(e){var n=new H({propsData:e});n.vm=n.$mount(),z.appendChild(n.vm.$el)},D=B;a["default"].use(h.a),a["default"].use(E["a"]),a["default"].use(C["a"]),a["default"].prototype.$cookie=I.a,a["default"].component("ImgLazy",F),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"].filter("resolveFileSize",L),a["default"].prototype.$bus=new a["default"],a["default"].prototype.$notify=D,a["default"].use(A.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"),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","projectLinkInvite"].indexOf(r)?"pms":"cms",c="api/".concat(o,"/").concat("authentication"===r?"":"v1/").concat(e),i="GET";switch(e){case"authentication/login":case"authentication/passwordCheck":case"company/addCompany":case"company/queryGeneralOverview":case"company/queryProviceTree":case"company/updateCompanyById":case"company/link/addCompanyLink":case"company/link/updateCompanyLink":case"dept/addDept":case"dept/updateDept":case"user/addUser":case"user/resetPassWord":case"user/updateUser":case"template/createTemplate":case"template/fileExchange":case"template/updateTemplate":case"template/uploadingXmind":case"template/addTemplateNodeModelFile":case"template/createNestedRelevance":case"template/connectNestTemplateFolder":case"folder/createSubfolder":case"project/createProject":case"project/editProject":case"project/assignedWork":case"file/addArchMilesStone":case"file/addFile":case"file/updateFile":case"file/fileCoordinationChange":case"file/setShareFile":case"operation/record":case"file/updateProjArchiveHistory":case"templateCompany/addTemplateCompany":case"project/addProjectGobalConfig":case"project/linkProject":case"file/submitDeliverables":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},b8ff:function(e,n,t){"use strict";var a=t("cc4f"),r=t.n(a);r.a},c610:function(e,n,t){},cc4f: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){},f225:function(e,n,t){}}); \ No newline at end of file diff --git a/dist/static/js/chunk-038ce22f.36d5e485.js b/dist/static/js/chunk-038ce22f.0f74b093.js similarity index 100% rename from dist/static/js/chunk-038ce22f.36d5e485.js rename to dist/static/js/chunk-038ce22f.0f74b093.js diff --git a/dist/static/js/chunk-05bf99c1.f6f5e938.js b/dist/static/js/chunk-05bf99c1.a3727c76.js similarity index 100% rename from dist/static/js/chunk-05bf99c1.f6f5e938.js rename to dist/static/js/chunk-05bf99c1.a3727c76.js diff --git a/dist/static/js/chunk-0935122f.0ccd5982.js b/dist/static/js/chunk-0935122f.0ccd5982.js deleted file mode 100644 index eb3efa00..00000000 --- a/dist/static/js/chunk-0935122f.0ccd5982.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0935122f"],{"00eb":function(e,t,r){},"011a":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"app"}},[r("app-header",{attrs:{showUserCenter:!0,id:"proj-list-page",showRecycleBin:""},scopedSlots:e._u([{key:"left",fn:function(){return[r("el-button",{staticClass:"org-button no-drag",on:{click:function(t){return t.stopPropagation(),e.navBack(t)}}},[e._v(" "+e._s(e.currentPlatform.orgName)+" "),r("i",{staticClass:"el-icon-sort org-button-icon"})])]},proxy:!0},{key:"center",fn:function(){return[r("div",{staticClass:"main-title"},[e._v(e._s(e.showCenterTitle))])]},proxy:!0},{key:"right",fn:function(){return[r("search-bar",{staticClass:"proj-search-bar",attrs:{placeholder:"搜索项目名称",maxLength:35},on:{didHide:e.hideSearchBar,didShow:e.showSearchBar,search:e.searchForProj},model:{value:e.searchContent,callback:function(t){e.searchContent=t},expression:"searchContent"}})]},proxy:!0}])}),r("div",{staticClass:"layout_content"},[r("section",{staticClass:"yiyun_warpContent"},[r("div",{staticClass:"yiyun-rows mt-20",attrs:{id:"new"}},[r("div",{staticClass:"yiyun-col-4 timer-part"},[r("div",{staticClass:"yiyun_row",staticStyle:{width:"95%"}},[r("timer",{attrs:{cnName:e.cnName}})],1)]),e._m(0)]),e.noProjTip?r("div",{staticStyle:{"margin-left":"50%","margin-top":"25%"}},[r("h1",[e._v("空空如也")])]):e._e()]),e.isUserPerm?r("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(),r("proj-list",{attrs:{id:"proj-list",projList:e.showProjList,openPrjInfo:e.openPrjInfo,addNewFolders:e.addNewFolders},on:{watchAllBtnClick:e.watchAllBtnClick,lookProjDetailClick:e.lookProjDetailClick}})],1)],1)},o=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"yiyun-col-4"},[r("div",{staticClass:"yiyun_row"},[r("div",{staticClass:"section_item fr section_item_aside_fr"})])])}],s=(r("caad"),r("96cf"),r("1da1")),i=r("f96e"),a=r("2f4c"),c=r("0f13"),u=r("a06e"),l=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.cnName?r("div",[r("div",{staticClass:"big-time"},[e._v(e._s(e.nowTime))]),r("div",{staticClass:"now-time"},[r("span",{staticClass:"nowshijian"},[e._v(e._s(e.nowDate.substr(5))+" "+e._s(e.welcome)+e._s(e.cnName))])])]):e._e()},h=[],d=(r("fb6a"),r("4d63"),r("ac1f"),r("25f0"),r("466d"),r("5319"),r("841c"),{getDateTimeString:function(e){var t=e.getFullYear(),r=e.getMonth()+1;r=r<10?"0"+r:r;var n=e.getDate();n=n<10?"0"+n:n;var o=e.getHours();o=o<10?"0"+o:o;var s=e.getMinutes();s=s<10?"0"+s:s;var i=e.getSeconds();i=i<10?"0"+i:i;var a=t+"-"+r+"-"+n+" "+o+":"+s+":"+i;return a},getDateTimeStringByStr:function(e){var t=new Date(e),r=t.getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var o=t.getDate();o=o<10?"0"+o:o;var s=t.getHours();s=s<10?"0"+s:s;var i=t.getMinutes();i=i<10?"0"+i:i;var a=t.getSeconds();a=a<10?"0"+a:a;var c=r+"-"+n+"-"+o+" "+s+":"+i+":"+a;return c},formatDate:function(e){var t=e.getFullYear(),r=e.getMonth()+1,n=e.getDate();r=r<10?"0"+r:r,n=n<10?"0"+n:n;var o=t+"-"+r+"-"+n;return o},convertToDate:function(e){var t=e.slice(6,19),r=new Date(parseInt(t));return this.formatDate(r)},unixToDate:function(e,t){e=e.replace(/[^0-9]/gi,""),10==e.length&&(e*=1e3);var r=parseInt(e),n=new Date(r),o="";o+=n.getFullYear()+"-";var s=n.getMonth()+1;o+=s<10?"0"+s+"-":s+"-";var i=n.getDate();return o+=i<10?"0"+i:i,!0===t&&(o+=" "+n.getHours()+":",o+=n.getMinutes()+":",o+=n.getSeconds()),o},getUrlParams:function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=window.location.search.substr(1).match(t);return null!=r?r[2]:null},validNumber:function(e,t,r){t?/^([0-9]+)$/.test(t)?r():r(new Error("只能输入整数")):t?r():r(new Error("这里不能为空"))},validNullOrNumber:function(e,t,r){t?/^([0-9]+)$/.test(t)?r():r(new Error("只能输入整数")):r()},validNullOrNumber2:function(e,t,r){t?/^([0-9]+)$/.test(t)?r():r(new Error(" ")):r()},validDecimal:function(e,t,r){t?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(t)?r():r(new Error("只能输入数字")):t?r():r(new Error("这里不能为空"))},validNullOrDecimal:function(e,t,r){t?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(t)?r():r(new Error("只能输入数字")):r()},validNullOrDecimal2:function(e,t,r){t?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(t)?r():r(new Error(" ")):r()},validRequired:function(e,t,r){t?r():r(new Error("这里不能为空"))},validEmail:function(e,t,r){if(""!=t){var n=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;n.test(t)?r():r(new Error("邮箱格式不正确!"))}else r()},validPhoneNum:function(e,t,r){if(""!=t){var n=/(^\d{11}$)/;n.test(t)?r():r(new Error("请输入11位有效手机号码!"))}else r(new Error("请输入手机号"))},validVerificationCode:function(e,t,r){if(""!=t){var n=/(^\d{6}$)/;n.test(t)?r():r(new Error("请输入有效的验证码!"))}else r(new Error("请输入验证码"))},validPhone:function(e,t,r){""!=t&&11!=t.length?r(new Error("请输入11位有效手机号码!")):r()},validPhoneAndRequired:function(e,t,r){""!=t?11!=t.length?r(new Error("请输入11位有效手机号码!")):r():r(new Error("请输入手机号"))},pathSubString:function(e){var t=e.slice(-22);return t},pageData:function(e,t,r){""!=t&&null!=t||(t=1),""!=e&&null!=e||(e=10);var n=(t-1)*e,o=n+e;o>r.length&&(o=r.length);var s=[];if(null!=r&&r.length>0)for(var i=n;i0?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}},f=p,m=(r("9d0d"),r("63b7"),r("2877")),g=Object(m["a"])(f,l,h,!1,null,"0481b847",null),j=g.exports,v=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("section",{staticClass:"yiyun_warpContent"},[r("div",{staticClass:"yiyun-rows",attrs:{id:"alone"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isEmpty,expression:"isEmpty"}],staticClass:"nullproduct"},[r("img",{attrs:{src:"static\\img\\nopro.png",alt:""}}),r("span",{staticClass:"noprotext"},[e._v("暂无项目")])]),r("div",{staticClass:"prjitemList"},[r("el-row",{attrs:{gutter:64}},e._l(e.projList,(function(t,n){return r("el-col",{key:t.Id,attrs:{xs:24,sm:12,md:12,lg:8,xl:6}},[r("proj-item",{attrs:{projItem:t},on:{lookProjDetailClick:function(r){return e.lookProjDetailClick(t)},watchAllBtnClick:function(r){return e.watchAllBtnClick(t,n)}}})],1)})),1)],1)])])])},w=[],S=r("b775"),P=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"prjitem"},[r("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?r("div",{staticClass:"newprj_icon"},[e._v("新项目")]):e._e(),r("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)))]),r("div",{staticClass:"operate-bar",class:{"show-operate-bar":e.isMouseHover&&e.focusProjId==e.projItem.Id}},[r("div",{staticClass:"bar-item",on:{click:function(t){return t.stopPropagation(),e.watchAllBtnClick(t)}}},[e._v("观全局")]),r("div",{staticClass:"bar-item",on:{click:function(t){return t.stopPropagation(),e.lookProjDetailClick(t)}}},[e._v("项目管理")])])])])},I=[],b={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"],r=t(e);return{background:"center/cover no-repeat url(".concat(r,")")}},lookProjDetailClick:function(){this.$emit("lookProjDetailClick")},manageProj:function(){this.$router.push("/newproject")},subProjName:function(e){var t=e.length;if(t>13){var r=e.slice(0,7),n=e.slice(t-6,t);return r+"..."+n}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(S["b"])("operation/record",t),sessionStorage.pageName="workspace"}}},C=b,y=(r("6654"),r("7df1"),Object(m["a"])(C,P,I,!1,null,"2b5d1f78",null)),k=y.exports,D={data:function(){return{isEmpty:!1}},components:{ProjItem:k},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 r=e.slice(0,7),n=e.slice(t-6,t);return r+"..."+n}return e},watchAllBtnClick:function(e,t){this.$emit("watchAllBtnClick",e,t)}}},N=D,x=(r("01a6"),Object(m["a"])(N,v,w,!1,null,"22c87fa3",null)),_=x.exports,E=r("2ef0"),B=(window.BMap,window.Velocity),T={elNew:"#new",components:{SearchBar:a["a"],Timer:j,AppHeader:i["a"],ProjList:_},data:function(){var e=this.$store.state.currentPlatform;return{currentPlatform:e,isUserPerm:Object(c["c"])(e.accessList,c["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:{navBack:function(){this.$router.go(-1)},recordContentScrollTop:function(){this.homeScrollTop=this.contentBodyEl.scrollTop,sessionStorage.setItem("homeScrollTop",this.homeScrollTop)},hideSearchBar:function(){this.isShowSearchBar=!1,this.searchContent=""},showSearchBar:function(){this.isShowSearchBar=!0},searchForProj:Object(E["debounce"])(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r;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,u["e"](this.searchContent);case 8:r=e.sent,0==r.Code?this.searchProjList=r.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),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 r=["341999987607363584","341984912360235008","342002217261621248"];console.log(e),t%2==0||r.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(s["a"])(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,u["d"](t.$store.state.accountId);case 2:n=r.sent,t.projList=n.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 r.stop()}}),r)})))()},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()},beforeEnter:function(e){e.style.opacity=0},enter:function(e,t){B(e,{opacity:1,bottom:"0px"},{duration:500,complete:t})},leave:function(e,t){B(e,{bottom:"-740px",opacity:"0"},{duration:500,complete:t})},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()}}},$=T,A=(r("c95a"),r("11ff"),r("ec82"),r("dace"),Object(m["a"])($,n,o,!1,null,"fb390cea",null));t["default"]=A.exports},"01a6":function(e,t,r){"use strict";var n=r("391a"),o=r.n(n);o.a},"11ff":function(e,t,r){"use strict";var n=r("52a0"),o=r.n(n);o.a},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"2f4c":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search-bar",class:{"show-search-bar":e.isShowSearchBar}},[r("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)}}},[r("img",{directives:[{name:"show",rawName:"v-show",value:!e.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),r("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:""}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[r("i",{staticClass:"search-icon",on:{click:function(t){return t.stopPropagation(),e.goToSearch(t)}}}),r("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)}}}),r("i",{staticClass:"close-icon",on:{click:function(t){return t.stopPropagation(),e.hideSearchBar(t)}}})])])},o=[],s=(r("fb6a"),r("a9e3"),{data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},model:{prop:"value",event:"input"},props:{placeholder:{type:String,default:"搜索的文本"},maxLength:Number},watch:{searchContent:function(e){if(this.maxLength&&e.length>this.maxLength)return this.$notify({message:"请输入".concat(this.maxLength,"个字之内的搜索内容"),type:["warning"]}),void(this.searchContent=this.searchContent.slice(0,this.maxLength));this.changeSearchContent()}},methods:{enterSearchContent:function(e){this.searchContent&&13==e.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("input",this.searchContent)},goToSearch:function(){this.$emit("search")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("didHide")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("didShow")}}}),i=s,a=(r("3c93"),r("2877")),c=Object(a["a"])(i,n,o,!1,null,"f20ebcbc",null);t["a"]=c.exports},"391a":function(e,t,r){},"3c93":function(e,t,r){"use strict";var n=r("73d8"),o=r.n(n);o.a},"466d":function(e,t,r){"use strict";var n=r("d784"),o=r("825a"),s=r("50c4"),i=r("1d80"),a=r("8aa5"),c=r("14c3");n("match",1,(function(e,t,r){return[function(t){var r=i(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var i=o(e),u=String(this);if(!i.global)return c(i,u);var l=i.unicode;i.lastIndex=0;var h,d=[],p=0;while(null!==(h=c(i,u))){var f=String(h[0]);d[p]=f,""===f&&(i.lastIndex=a(u,s(i.lastIndex),l)),p++}return 0===p?null:d}]}))},"4d63":function(e,t,r){var n=r("83ab"),o=r("da84"),s=r("94ca"),i=r("7156"),a=r("9bf2").f,c=r("241c").f,u=r("44e7"),l=r("ad6d"),h=r("9f7f"),d=r("6eeb"),p=r("d039"),f=r("69f3").set,m=r("2626"),g=r("b622"),j=g("match"),v=o.RegExp,w=v.prototype,S=/a/g,P=/a/g,I=new v(S)!==S,b=h.UNSUPPORTED_Y,C=n&&s("RegExp",!I||b||p((function(){return P[j]=!1,v(S)!=S||v(P)==P||"/a/i"!=v(S,"i")})));if(C){var y=function(e,t){var r,n=this instanceof y,o=u(e),s=void 0===t;if(!n&&o&&e.constructor===y&&s)return e;I?o&&!s&&(e=e.source):e instanceof y&&(s&&(t=l.call(e)),e=e.source),b&&(r=!!t&&t.indexOf("y")>-1,r&&(t=t.replace(/y/g,"")));var a=i(I?new v(e,t):v(e,t),n?this:w,y);return b&&r&&f(a,{sticky:r}),a},k=function(e){e in y||a(y,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},D=c(v),N=0;while(D.length>N)k(D[N++]);w.constructor=y,y.prototype=w,d(o,"RegExp",y)}m("RegExp")},5122:function(e,t,r){},"52a0":function(e,t,r){},"63b7":function(e,t,r){"use strict";var n=r("fabf"),o=r.n(n);o.a},6654:function(e,t,r){"use strict";var n=r("6eb7"),o=r.n(n);o.a},"6d1d":function(e,t,r){},"6eb7":function(e,t,r){},"73d8":function(e,t,r){},"7df1":function(e,t,r){"use strict";var n=r("a5b4"),o=r.n(n);o.a},"841c":function(e,t,r){"use strict";var n=r("d784"),o=r("825a"),s=r("1d80"),i=r("129f"),a=r("14c3");n("search",1,(function(e,t,r){return[function(t){var r=s(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var s=o(e),c=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var l=a(s,c);return i(s.lastIndex,u)||(s.lastIndex=u),null===l?-1:l.index}]}))},"9d0d":function(e,t,r){"use strict";var n=r("cf15"),o=r.n(n);o.a},a06e:function(e,t,r){"use strict";r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return h})),r.d(t,"e",(function(){return p}));r("96cf");var n=r("1da1"),o=r("b775");function s(e){return i.apply(this,arguments)}function i(){return i=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["b"])("project/queryProjectListByUserId",{userId:t});case 2:return r=e.sent,e.abrupt("return",Object(o["c"])(r));case 4:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}function a(e){return c.apply(this,arguments)}function c(){return c=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["b"])("project/queryProjectInfoByProjId",{projId:t});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function u(e){return l.apply(this,arguments)}function l(){return l=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["b"])("project/editProject",t);case 2:return r=e.sent,e.abrupt("return",Object(o["c"])(r));case 4:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function h(e){return d.apply(this,arguments)}function d(){return d=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["b"])("project/assignedWork",t);case 2:return r=e.sent,e.abrupt("return",Object(o["c"])(r));case 4:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function p(e){return f.apply(this,arguments)}function f(){return f=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["b"])("project/searchProject",{projName:t});case 2:return r=e.sent,e.abrupt("return",Object(o["c"])(r));case 4:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}},a5b4:function(e,t,r){},c95a:function(e,t,r){"use strict";var n=r("5122"),o=r.n(n);o.a},caad:function(e,t,r){"use strict";var n=r("23e7"),o=r("4d64").includes,s=r("44d2"),i=r("ae40"),a=i("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:!a},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},cf15:function(e,t,r){},dace:function(e,t,r){"use strict";var n=r("00eb"),o=r.n(n);o.a},ec82:function(e,t,r){"use strict";var n=r("6d1d"),o=r.n(n);o.a},f96e:function(e,t,r){"use strict";var n=r("01a8");r.d(t,"a",(function(){return n["a"]}))},fabf:function(e,t,r){}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-0bdab950.3cbc383f.js b/dist/static/js/chunk-0bdab950.3cbc383f.js deleted file mode 100644 index 6f70b80d..00000000 --- a/dist/static/js/chunk-0bdab950.3cbc383f.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0bdab950"],{"15fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("a4d3"),n("c975"),n("b64b");function r(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}function a(e,t){if(null==e)return{};var n,a,i=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},"45fc":function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").some,i=n("a640"),s=n("ae40"),o=i("some"),c=s("some");r({target:"Array",proto:!0,forced:!o||!c},{some:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"4c3b":function(e,t,n){"use strict";var r=n("f111"),a=n.n(r);a.a},"74d3":function(e,t,n){},"789c":function(e,t,n){},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 h})),n.d(t,"f",(function(){return v})),n.d(t,"s",(function(){return g})),n.d(t,"l",(function(){return w})),n.d(t,"k",(function(){return I})),n.d(t,"b",(function(){return j})),n.d(t,"p",(function(){return k})),n.d(t,"j",(function(){return T})),n.d(t,"h",(function(){return M})),n.d(t,"i",(function(){return D})),n.d(t,"a",(function(){return P})),n.d(t,"g",(function(){return $})),n.d(t,"c",(function(){return z})),n.d(t,"e",(function(){return B})),n.d(t,"r",(function(){return A}));n("4de4"),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 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 h(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/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function v(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 g(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/updateTemplate",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 w(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 I(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/queryNestTemplateIdByProjectId",{projectId: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 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 k(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/queryTemplateNodeByTemplateId",{templateId: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 T(e,t,n){return R.apply(this,arguments)}function R(){return R=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)}))),R.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/fileExchange",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 D(e,t){return E.apply(this,arguments)}function E(){return E=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"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t,companyId:n?void 0:"0"});case 2:return r=e.sent,n&&r.Data&&(r.Data=r.Data.filter((function(e){return"0"===e.CompanyId||e.CompanyId===n}))),e.abrupt("return",Object(a["c"])(r));case 5:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function P(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/addTemplateNodeModelFile",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 $(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 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/createNestedRelevance",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 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/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 A(e){return U.apply(this,arguments)}function U(){return U=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)}))),U.apply(this,arguments)}},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)}},ccf7: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_detail"},[n("app-header",{attrs:{theme:"basis",showBackBtn:!0,backBtnTitle:"返回"},scopedSlots:e._u([{key:"center",fn:function(){return[e._v(e._s(e.templateName))]},proxy:!0}])}),n("main",{staticClass:"template_detail_main"},[n("div",{staticClass:"template_detail_main_left"},[n("div",{staticClass:"nav_subtitle"},[e._v("模板概况")]),n("div",{staticClass:"nav_list_group"},[n("div",{staticClass:"nav_list_item",class:{item_active:"template"===e.viewType},on:{click:function(t){t.stopPropagation(),e.viewType="template"}}},[e._v("模板结构")]),n("div",{staticClass:"nav_list_item",class:{item_active:"info"===e.viewType},on:{click:function(t){t.stopPropagation(),e.viewType="info"}}},[e._v("模板信息")]),n("div",{staticClass:"nav_list_item",class:{item_active:"matrix"===e.viewType},on:{click:function(t){t.stopPropagation(),e.viewType="matrix"}}},[e._v("文件交换")])]),n("div",{staticClass:"nav_subtitle"},[e._v("细化")]),n("div",{staticClass:"nav_list_group"},[n("div",{staticClass:"nav_list_item",class:{item_active:"files"===e.viewType},on:{click:function(t){t.stopPropagation(),e.viewType="files"}}},[e._v("管理样板文件")])]),n("div",{staticClass:"board"},[n("div",{staticClass:"board-item"},[n("span",[e._v("模板使用数")]),n("span",[e._v(e._s(0===e.templateApplyCount||e.templateApplyCount?e.templateApplyCount:""))])]),n("div",{staticClass:"board-item"},[n("span",[e._v("启用模板")]),n("el-switch",{attrs:{value:0===e.templateInfo.disable},on:{change:function(t){return e.toggleTemplateState("disable")}}})],1),n("div",{staticClass:"board-item"},[n("span",[e._v("锁定模板")]),n("el-switch",{attrs:{value:1===e.templateInfo.locked},on:{change:function(t){return e.toggleTemplateState("locked")}}})],1)]),n("div",{staticClass:"nav_list_group bottom"},[n("div",{staticClass:"nav_list_item",on:{click:function(t){return t.stopPropagation(),e.deleteTemplate(t)}}},[e._v("删除模板"),n("i",{staticClass:"item_icon el-icon-delete-solid"})])])]),n("div",{staticClass:"template_detail_main_right"},["template"===e.viewType?n("nodes-viewer",{staticClass:"viewer",attrs:{node:e.node}}):e._e(),"info"===e.viewType?n("info",{staticClass:"content_info",attrs:{templateId:e.templateId,templateInfo:e.templateInfo},on:{"info-change":e.onInfoChange}}):e._e(),"files"===e.viewType?n("template-files",{staticClass:"content_files",attrs:{nodeList:e.plainNodeList,templateId:e.templateId,companyId:e.companyId}}):e._e(),"matrix"===e.viewType?n("matrix",{staticClass:"content_files"}):e._e()],1)])],1)},a=[],i=(n("4160"),n("d81d"),n("b0c0"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("ade3")),s=n("5530"),o=n("3835"),c=(n("96cf"),n("1da1")),u=n("01a8"),l=n("de58"),d=n("b0f9"),p=n("3de1"),m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template_info_popup"},[n("div",{staticClass:"popup_head"},[n("i",{staticClass:"popup_head_icon font_family icon-gerenshezhi"}),n("div",{staticClass:"popup_head_center"},[e._v("模板信息")]),n("div",{staticClass:"popup_head_buttons"},[e.isEdit?[n("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.modifyTemplate}},[e._v("保存")]),n("el-button",{on:{click:e.cancelEdit}},[e._v("取消")])]:n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!0}}},[e._v("编辑")])],2)]),n("el-form",{ref:"form",attrs:{model:e.formData,"label-width":"120px","label-position":"left",size:"small",rules:e.templateRules,"hide-required-asterisk":""}},[n("el-form-item",{attrs:{label:"模板名称",prop:"tempName"}},[e.isEdit?n("el-input",{attrs:{placeholder:"模板名称"},model:{value:e.formData.tempName,callback:function(t){e.$set(e.formData,"tempName",t)},expression:"formData.tempName"}}):n("span",[e._v(e._s(e.templateInfo.tempName))])],1),n("el-form-item",{attrs:{label:"行业",prop:"industry"}},[n("span",[e._v(e._s(e.mainIndustry))])]),n("el-form-item",{attrs:{label:"细分行业"}},[n("span",[e._v(e._s(e.customIndustry))])]),n("el-form-item",{attrs:{label:"介绍"}},[e.isEdit?n("el-input",{attrs:{placeholder:"请输入模板简介"},model:{value:e.formData.introduce,callback:function(t){e.$set(e.formData,"introduce",t)},expression:"formData.introduce"}}):n("span",[e._v(e._s(e.templateInfo.introduce))])],1),n("div",{staticClass:"form-subtitle"},[e._v("模板自定义字段")]),n("div",{staticClass:"divider"}),n("div",{staticClass:"properties-container"},[e._l(e.formData.properties,(function(t){return n("el-form-item",{key:t.Id,attrs:{label:"自定义字段"}},[e.isEdit?n("el-input",{staticClass:"inp-with-outside-suffix",attrs:{autofocus:""},model:{value:t.propertyName,callback:function(n){e.$set(t,"propertyName",n)},expression:"property.propertyName"}}):e._e(),e.isEdit?n("i",{staticClass:"el-icon-delete",attrs:{title:"删除"},on:{click:function(n){return e.removeProperty(t,e.formData)}}}):n("span",[e._v(e._s(t.propertyName))])],1)})),e.isEdit?n("el-form-item",{attrs:{label:"字段"}},[n("el-button",{on:{click:function(t){return e.addProperty(e.formData)}}},[e._v("新增填写项目")])],1):e._e()],2)],1)],1)},f=[],h=(n("99af"),n("4de4"),n("a15b"),n("fb6a"),n("15fd")),b=n("2ef0"),v=n("b3b1"),y={props:{templateInfo:{type:Object,default:function(){return{}}}},data:function(){return{isEdit:!1,formData:Object(b["cloneDeep"])(this.templateInfo),industryOptions:[],loading:!1,mapIndustryCodeToData:null,mapIndustryCodeToName:{},templateRules:{tempName:[{required:!0,message:"请输入模板名称",trigger:["blur","change"]}],industry:[{required:!0,message:" ",trigger:["blur","change"]}]}}},mounted:function(){this.fetchIndustryDict()},watch:{templateInfo:function(e){this.formData=Object(b["cloneDeep"])(e)}},computed:{mainIndustry:function(){var e=Object(o["a"])(this.templateInfo.industry,2),t=e[0],n=e[1],r=this.mapIndustryCodeToName;return"".concat(r[t]||""," / ").concat(r[n]||"")},customIndustry:function(){var e=this.templateInfo.customCode,t=this.mapIndustryCodeToData;if(!t)return"";if(!e||"0"===e)return"";var n=t[e],r="";if(4===n.level){var a=t[n.parentId];r="".concat(a.label," / ")}return"".concat(r).concat(n.label)}},methods:{cancelEdit:function(){this.isEdit=!1,this.formData=Object(b["cloneDeep"])(this.templateInfo)},modifyTemplate:function(){var e=this;this.$refs["form"].validate(function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(n){var r,a,i,c,u,l,m,f,b,v,y,g,_;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return");case 2:return r=e.formData,a=r.industry,i=r.properties,c=r.indLevel3,u=r.indLevel4,l=Object(h["a"])(r,["industry","properties","indLevel3","indLevel4"]),m=e.isEdit,f=m?"编辑":"创建",b=Object(o["a"])(a,2),v=b[0],y=b[1],g={ChildIndustry:[c,u].filter((function(e){return e})).join(","),Templepeoperty:i.map((function(e){return e.propertyName})).join(","),Temple:Object(s["a"])(Object(s["a"])({CompanyId:e.companyId},Object(p["b"])(l)),{},{FirstIndustryId:v,DetailIndustryId:y})},e.loading=!0,t.next=10,m?d["s"](g):d["d"](g);case 10:if(_=t.sent,e.loading=!1,0===_.Code){t.next=14;break}return t.abrupt("return");case 14:p["d"].success("模板“".concat(l.tempName,"”").concat(f,"完成。")),e.isEdit=!1,e.$emit("info-change",e.formData);case 17:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},fetchIndustryDict:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,r,a,i,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(v["a"])();case 2:n=t.sent,r={},a={},i=[],s=[],n.forEach((function(e){var t={value:e.Id,label:e.Name,level:e.Level,parentId:e.SuperId};r[t.value]=t,a[t.value]=t.label,e.Level>2||(1===e.Level?i.push(t):s.push(e))})),s.forEach((function(e){var t=r[e.Id],n=r[e.SuperId];n&&t?(n.children||(n.children=[]),n.children.push(t)):console.log("lose industry node:",e)})),e.industryOptions=i.filter((function(e){return e.children})),e.mapIndustryCodeToData=r,e.mapIndustryCodeToName=a;case 12:case"end":return t.stop()}}),t)})))()},addProperty:function(e){var t={PropertyName:"",Id:"".concat(Math.random()).slice(2,6),CreateTime:new Date};e.properties.push(t)},removeProperty:function(e,t){t.properties=t.properties.filter((function(t){return t!==e}))}}},g=y,_=(n("d20a"),n("2877")),w=Object(_["a"])(g,m,f,!1,null,"faeadd8c",null),x=w.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template_files"},[n("div",{staticClass:"template_files_left"},e._l(e.nodeList,(function(t){return n("div",{key:t.id,staticClass:"node_list_item",class:{item_active:t===e.selectedNode},on:{click:function(n){n.stopPropagation(),e.selectedNode=t}}},[e._v(" "+e._s(t.label)+" ")])})),0),n("div",{staticClass:"template_files_right"},[n("div",{staticClass:"template_files_right_title"},[e._v(" 管理样板文件 "),n("file-uploader",{attrs:{"on-success":e.uploadFileSuccess}},[n("el-button",{staticClass:"title_button"},[e._v("上传文件")])],1)],1),n("div",{staticClass:"template_files_right_list"},e._l(e.commonFileList,(function(t){return n("div",{key:t.id,staticClass:"template_files_right_list_item"},[n("div",[e._v(e._s(t.fileName))]),n("div",[e._v(e._s(t.extension))]),n("div",[e._v(e._s(e._f("resolveFileSize")(t.fileSize)))]),n("div",[n("el-button",{staticClass:"del_button",attrs:{type:"text"}},[e._v("删除")])],1)])})),0)])])},O=[],j=(n("13d5"),n("ac1f"),n("1276"),n("9e5b")),C=n("5ab9"),k={components:{FileUploader:j["a"]},props:{companyId:String,templateId:String,nodeList:Array},watch:{nodeList:function(e){this.selectedNode=e[0]},selectedNode:function(e){this.commonFileList=[],this.companyFileList=[],e&&this.fetchNodeTemplateFiles(e)}},data:function(){return{selectedNode:this.nodeList[0],commonFileList:[]}},mounted:function(){this.fetchNodeTemplateFiles(this.selectedNode)},methods:{fetchNodeTemplateFiles:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function n(){var r,a,i,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(d["i"])(e.id,t.companyId);case 2:r=n.sent,a=(r.Data||[]).reduce((function(e,n){var r=Object(p["b"])(n);return"0"===r.companyId?e[0].push(r):r.companyId===t.companyId&&e[1].push(r),e}),[[],[]]),i=Object(o["a"])(a,2),s=i[0],i[1],t.commonFileList=s;case 5:case"end":return n.stop()}}),n)})))()},uploadFileSuccess:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function n(){var r,a,i,s,o,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.selectedNode,a=Object(C["c"])(e.ossUrl),i=e.name.split("."),s=i.pop(),o={Extension:s,FileName:i.join("."),FileSize:e.size,OssUrl:a,templateNodeId:r.id,CompanyId:"0"},n.next=7,Object(d["a"])(o);case 7:if(c=n.sent,0===c.Code){n.next=10;break}return n.abrupt("return");case 10:p["d"].success("文件已上传。"),t.fetchNodeTemplateFiles(r);case 12:case"end":return n.stop()}}),n)})))()}}},N=k,T=(n("d525"),Object(_["a"])(N,I,O,!1,null,"6eab8660",null)),R=T.exports,M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"template_matrix"},[n("div",{staticClass:"template_matrix_extra"},[n("el-input",{staticClass:"search_inp",attrs:{placeholder:"矩阵搜索",size:"small","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:"fixtable template_matrix_body"},[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(a,i){return[i===r?n("td",{key:t.id+"_"+a.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(a.name)+" ")])])]):n("td",{key:t.id+"_"+a.id,class:[i%2==1&&i>r||r%2==1&&ir?"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)},L=[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(" 矩阵节点 ")])])])])}],D=(n("c975"),n("45fc"),{components:{},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(c["a"])(regeneratorRuntime.mark((function t(){var n,r,a;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,d["h"](r);case 5:if(a=t.sent,0===a.Code){t.next=8;break}return t.abrupt("return");case 8:p["d"].success("更新成功"),Object.assign(n,r);case 10:case"end":return t.stop()}}),t)})))()},getMatirxPermission:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,r,a,i,s,c,u,l,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,a=e.topNodeTemplateId,i=e.subTemplateId,n){t.next=7;break}return t.abrupt("return");case 7:return t.next=9,Promise.all([d["j"](a,n,i),d["p"](i||n)]);case 9:s=t.sent,c=Object(o["a"])(s,2),u=c[0],l=c[1],p=E(l.Data||{}),i&&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!==i,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),i=r[a];1==i.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=i,this.loading=!1},canEditUnit:function(e,t){var n=this.unitMap,r="".concat(e.id,"->").concat(t.id),a=n[r]||{Editable:!0};return a.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),a=n[r]||{};return a||(a.Id="unknow",console.error("文件交换关系对象匹配失败: 找不到".concat(r,"的交换关系"))),[a]}}}});function E(e){return P(e.children,[])}function P(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),P(e.children,t)}})),t):t}var S=D,$=(n("e529"),Object(_["a"])(S,M,L,!1,null,"08a2a166",null)),F=$.exports,z={components:{appHeader:u["a"],nodesViewer:l["a"],Info:x,TemplateFiles:R,Matrix:F},data:function(){var e=this.$route.params,t=e.id,n=e.name;return{companyId:sessionStorage.companyId,listTemplateMindTree:[],mindZoom:60,templateId:t,templateName:n,node:null,templateInfo:{},viewType:"template",plainNodeList:[],templateApplyCount:void 0}},created:function(){this.fetchTemplateNodes(),this.fetchTemplateInfo()},methods:{onInfoChange:function(e){this.templateInfo=e},fetchTemplateNodes:function(){var e=this;return Object(c["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(d["p"])(e.templateId);case 2:n=t.sent,e.node=n.Data,e.plainNodeList=q(n.Data);case 5:case"end":return t.stop()}}),t)})))()},fetchTemplateInfo:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,r,a,i,c,u,l,m,f,h,b,v,y;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([Object(d["n"])(e.templateId),Object(d["q"])(e.templateId)]);case 2:if(n=t.sent,r=Object(o["a"])(n,2),a=r[0],i=r[1],e.templateApplyCount=i.Data,0===a.Code){t.next=9;break}return t.abrupt("return");case 9:if(c=a.Data,u=c.propertys,l=c.template,m=u.map((function(e){var t=Object(p["b"])(e);return t.id=t.id||t.propertyName,t})),f=e.templateInfo=Object(s["a"])(Object(s["a"])({},Object(p["b"])(l)),{},{properties:m,industry:[l.FirstIndustryId,l.DetailIndustryId]}),h=e.mapIndustryCodeToData,h){t.next=15;break}return t.abrupt("return");case 15:b=f.customCode,b&&"0"!==b&&(v=h[b],4===v.level?(f.indLevel4=v.label,y=h[v.parentId],f.indLevel3=y.label):f.indLevel3=v.label);case 17:case"end":return t.stop()}}),t)})))()},toggleTemplateState:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function n(){var r,a,o,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.templateInfo[e]?0:1,a={Temple:Object(s["a"])(Object(s["a"])({},Object(p["c"])(t.templateInfo)),Object(p["c"])(Object(i["a"])({},e,r)))},n.next=4,Object(d["s"])(a);case 4:if(o=n.sent,0===o.Code){n.next=7;break}return n.abrupt("return");case 7:c="disable"===e?0===r?"已启用":"已禁用":1===r?"已锁定":"已解除锁定",p["d"].success("模板".concat(c)),t.templateInfo=Object.assign({},t.templateInfo,Object(i["a"])({},e,r));case 10:case"end":return n.stop()}}),n)})))()},deleteTemplate:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(e.templateInfo),n=e.templateInfo.tempName,!(e.templateApplyCount>0)){t.next=5;break}return e.$notify({type:["error"],message:"当前有项目使用该模板 无法删除模板"}),t.abrupt("return");case 5:e.$confirm("您正在删除 ["+n+"] 模板是否继续?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(c["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(d["f"])(e.templateInfo.id);case 2:if(r=t.sent,0===r.Code){t.next=5;break}return t.abrupt("return");case 5:p["d"].success("模板“".concat(n,"”删除成功")),e.$router.go(-1);case 7:case"end":return t.stop()}}),t)}))));case 6:case"end":return t.stop()}}),t)})))()}}};function q(e){var t=[],n=function e(n){n.forEach((function(n){var r={id:n.id,label:n.topic};t.push(r),n.children&&n.children.length&&e(n.children)}))};return n(e.children||[]),t}var B=z,V=(n("4c3b"),Object(_["a"])(B,r,a,!1,null,"ceb7854a",null));t["default"]=V.exports},d20a:function(e,t,n){"use strict";var r=n("789c"),a=n.n(r);a.a},d525:function(e,t,n){"use strict";var r=n("f0f9"),a=n.n(r);a.a},de58:function(e,t,n){"use strict";var r=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)}}})},a=[],i=(n("fb6a"),function(){return"xmind_".concat("".concat(Math.random()).slice(2,8))}),s=window.jsMind,o={props:{node:{type:Object,default:null},width:{type:String,default:""},height:{type:String,default:""}},data:function(){return{domId:i(),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 s(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){if(e.ctrlKey){e.returnValue=!1;var t=-e.wheelDelta||e.detail,n=this.getMindInnerDom();if(n){var r=this.zoom+(t>0?-.1:.1),a=Math.max(.2,Math.min(r,1.8));this.zoom=a,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)}}},c=o,u=n("2877"),l=Object(u["a"])(c,r,a,!1,null,"2aa6cc14",null);t["a"]=l.exports},e529:function(e,t,n){"use strict";var r=n("74d3"),a=n.n(r);a.a},f0f9:function(e,t,n){},f111:function(e,t,n){}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-11067227.5e010fb9.js b/dist/static/js/chunk-11067227.fb459518.js similarity index 100% rename from dist/static/js/chunk-11067227.5e010fb9.js rename to dist/static/js/chunk-11067227.fb459518.js diff --git a/dist/static/js/chunk-115028d7.6e496db2.js b/dist/static/js/chunk-115028d7.6e496db2.js new file mode 100644 index 00000000..326a4f42 --- /dev/null +++ b/dist/static/js/chunk-115028d7.6e496db2.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-115028d7"],{"04c4":function(e,t,r){"use strict";var n=r("14d6"),a=r.n(n);a.a},"14d6":function(e,t,r){},2909:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("6b75");function a(e){if(Array.isArray(e))return Object(n["a"])(e)}var c=r("db90"),o=r("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 i(e){return a(e)||Object(c["a"])(e)||Object(o["a"])(e)||s()}},"5be0":function(e,t,r){},"6dcf":function(e,t,r){"use strict";var n=r("5be0"),a=r.n(n);a.a},a341:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"new-proj"},[r("AppHeader",{staticClass:"new-proj-header",attrs:{theme:"basis",showBackBtn:"",isShowTopBar:!0,backBtnTitle:"取消项目创建"}}),r("div",{staticClass:"proj_manage"},[r("div",{staticClass:"proj_manage_content"},[r("div",{staticClass:"projModule adjust-top-radius"},[e.isProjName?r("div",{staticClass:"projName_input"},[r("div",{staticClass:"newProj_header "},[r("div",{staticClass:"newProj_title"},[e._v(" 输入项目名称 ")]),r("el-button",{staticClass:"nextbtn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.enterTemplateSelect()}}},[e._v("下一步")])],1),r("div",{staticClass:"newProj_content"},[r("div",{staticClass:"upload_img"},[r("div",{staticClass:"upload_imgBox",style:e.showBackground(e.coverSrc)},[r("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[r("span",[e._v("编辑")])]),r("span",{staticClass:"faceBtn",on:{click:function(t){return t.stopPropagation(),e.setSystemCoverRandom(t)}}},[e._v("使用随机封面")])],1)]),r("div",[r("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?r("div",{staticClass:"template_select"},[r("TopHeader",{ref:"projdesc",staticClass:"set_position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"修改项目名称",onBackBtnClick:e.enterProjNameInput,title:"选择项目模板"},scopedSlots:e._u([{key:"right",fn:function(){return[r("el-button",{staticClass:"slot_btn",attrs:{disabled:!e.selectTemplate.Id},on:{click:function(t){return t.stopPropagation(),e.enterTemplateImprove()}}},[e._v("选定模板")])]},proxy:!0}],null,!1,3864135699)}),r("div",{staticClass:"template_select_content"},[e._l(e.templateList,(function(t,n){return r("div",{key:t.Id,staticClass:"template_info",on:{click:function(r){return r.stopPropagation(),e.isChecked(n,t)}}},[r("div",{staticClass:"check_box",class:{checked:e.checkedIndex==n}},[r("i",{staticClass:"el-icon-check"})]),r("span",{staticClass:"template_info_name"},[e._v(e._s(t.TempName))])])})),e.templateList.length?e._e():r("div",{staticClass:"template_empty"},[e._v("没有可供使用的项目模板,请联系管理员。")])],2)],1):e._e(),e.isTemImprove?r("div",{staticClass:"template_improve"},[r("TopHeader",{staticClass:"set_position header-wrap",attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"选择模板",onBackBtnClick:e.enterTemplateSelect,title:"完善模板信息"}},[r("div",{staticClass:"slot_btn",attrs:{slot:"right",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.createProject()}},slot:"right"},[e._v("创建")])]),r("div",{staticClass:"template_improve_content"},[r("div",{staticClass:"template_improve_info"},[r("div",{staticClass:"template_title"},[e._v("模板名称:")]),r("div",{staticClass:"template_title_info"},[e._v(e._s(e.selectTemplate.TempName))])]),r("div",{staticClass:"template_improve_info"},[r("div",{staticClass:"template_title"},[e._v("创建时间:")]),r("div",{staticClass:"template_title_info"},[e._v(e._s(e.createDate))])]),e._l(e.checkNewProjData.CustomProps,(function(t){return r("div",{key:t.Id,staticClass:"template_improve_info template_improve_infoInput"},[r("div",{staticClass:"template_title"},[e._v(e._s((t.PropertyName?t.PropertyName:"自定义字段")+":"))]),r("div",{staticClass:"template_title_info"},[r("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(r){r.target.composing||e.$set(t,"PropValue",r.target.value)}}})])])}))],2)],1):e._e()])])])],1)},a=[],c=(r("4160"),r("fb6a"),r("159b"),r("96cf"),r("1da1")),o=r("5530"),s=r("2909"),i=r("b1f3"),u=r("f96e"),p=r("b0f9"),l=(r("93d6"),r("5ab9")),m=r("9e5b"),d=r("b775"),h=(r("3de1"),{components:{AppHeader:u["a"],TopHeader:i["a"],FileUploader:m["a"]},props:{},data:function(){var e=this.$route.params.parentFolderId;return console.log("parentFolderId: ",e),{parentFolderId:e,companyId:sessionStorage.companyId,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"],r=t(e);return{background:"center/cover no-repeat url(".concat(r,")")}},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["n"](e).then((function(e){e.Data.propertys.forEach((function(e,r){t.checkNewProjData.CustomProps[r]={},t.checkNewProjData.CustomProps[r]["TempPropId"]=e.Id,t.checkNewProjData.CustomProps[r]["PropertyName"]=e.PropertyName,t.checkNewProjData.CustomProps[r]["PropValue"]="";var n=t.checkNewProjData.CustomProps;t.checkNewProjData.CustomProps=Object(s["a"])(n)})),t.checkNewProjData=Object(o["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(l["c"])(e.ossUrl);this.coverSrc=t,this.newProjData.projectData.showImgUrl=t},getSelectTemplateData:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["m"](e.companyId);case 2:r=t.sent,n=r.Data||[],e.templateList=n,e.templateList&&e.templateList.length&&"{}"===JSON.stringify(e.selectTemplate)&&(e.selectTemplate=n[0],e.checkedIndex=0);case 6:case"end":return t.stop()}}),t)})))()},getSelectTemplateList:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function r(){var n,a,c;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,p["p"](e);case 2:n=r.sent,a=n.Data,c=a.children||[],t.newProjData.listFolder=[],c.forEach((function(e){var r={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(r)}));case 7:case"end":return r.stop()}}),r)})))()},createProject:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var r,n,a,c;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,r=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:n=t.sent,e.checkNewProjData.Node=n.Data,a=Object(o["a"])({},e.checkNewProjData),e.parentFolderId&&(a.FolderId=e.parentFolderId),e.$fetchApi("project/createProject",a).then((function(t){Object(d["c"])(t),0===t.Code&&(r.$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)})))})).catch((function(e){return console.log(e)})),c={API:"project/createProject",Action:"创建项目",CompanyName:sessionStorage.CompanyName,Subject:e.checkNewProjData.Proj.ProjName,Source:sessionStorage.client,ProjectName:e.checkNewProjData.Proj.ProjName},Object(d["b"])("operation/record",c);case 20:case"end":return t.stop()}}),t)})))()},loadTempNodeTree:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.templateId,t.next=3,p["p"](r);case 3:if(n=t.sent,e.listTempNodeTree=n.Data?[n.Data]:[],n.Data){t.next=7;break}return t.abrupt("return");case 7:e.nodeClick(n.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)}}),f=h,j=(r("04c4"),r("2877")),b=Object(j["a"])(f,n,a,!1,null,null,null);t["default"]=b.exports},b0f9:function(e,t,r){"use strict";r.d(t,"o",(function(){return c})),r.d(t,"m",(function(){return s})),r.d(t,"t",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"n",(function(){return d})),r.d(t,"q",(function(){return f})),r.d(t,"f",(function(){return b})),r.d(t,"s",(function(){return v})),r.d(t,"l",(function(){return y})),r.d(t,"k",(function(){return k})),r.d(t,"b",(function(){return P})),r.d(t,"p",(function(){return C})),r.d(t,"j",(function(){return T})),r.d(t,"h",(function(){return x})),r.d(t,"i",(function(){return R})),r.d(t,"a",(function(){return U})),r.d(t,"g",(function(){return F})),r.d(t,"c",(function(){return $})),r.d(t,"e",(function(){return M})),r.d(t,"r",(function(){return H}));r("4de4"),r("96cf");var n=r("1da1"),a=r("b775");function c(){return o.apply(this,arguments)}function o(){return o=Object(n["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)}))),o.apply(this,arguments)}function s(e){return i.apply(this,arguments)}function i(){return i=Object(n["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)}))),i.apply(this,arguments)}function u(e){return p.apply(this,arguments)}function p(){return p=Object(n["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 m.apply(this,arguments)}function m(){return m=Object(n["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 h.apply(this,arguments)}function h(){return h=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function f(e){return j.apply(this,arguments)}function j(){return j=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function b(e){return w.apply(this,arguments)}function w(){return w=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function v(e){return g.apply(this,arguments)}function g(){return g=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function y(e){return D.apply(this,arguments)}function D(){return D=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function k(e){return I.apply(this,arguments)}function I(){return I=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateIdByProjectId",{projectId:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function P(e){return _.apply(this,arguments)}function _(){return _=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function C(e){return N.apply(this,arguments)}function N(){return N=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),N.apply(this,arguments)}function T(e,t,r){return O.apply(this,arguments)}function O(){return O=Object(n["a"])(regeneratorRuntime.mark((function e(t,r,n){var c;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:r,nestedNodeId:n});case 2:return c=e.sent,e.abrupt("return",Object(a["c"])(c));case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function x(e){return S.apply(this,arguments)}function S(){return S=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function R(e,t){return B.apply(this,arguments)}function B(){return B=Object(n["a"])(regeneratorRuntime.mark((function e(t,r){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,companyId:r?void 0:"0"});case 2:return n=e.sent,r&&n.Data&&(n.Data=n.Data.filter((function(e){return"0"===e.CompanyId||e.CompanyId===r}))),e.abrupt("return",Object(a["c"])(n));case 5:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function U(e){return E.apply(this,arguments)}function E(){return E=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function F(e){return L.apply(this,arguments)}function L(){return L=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function $(e){return q.apply(this,arguments)}function q(){return q=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}function M(e){return A.apply(this,arguments)}function A(){return A=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),A.apply(this,arguments)}function H(e){return V.apply(this,arguments)}function V(){return V=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}},b1f3:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[r("div",{staticClass:"app-header-content"},[r("div",{staticClass:"app-header-content-left"},[e._t("left",[r("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()}}}),r("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),r("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?r("user-center"):e._e()],2)]),r("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},a=[],c=r("1392"),o={components:{UserCenter:c["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=o,i=(r("6dcf"),r("2877")),u=Object(i["a"])(s,n,a,!1,null,"373b66dc",null);t["a"]=u.exports},db90:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("d3b7"),r("3ca3"),r("ddb0");function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},f96e:function(e,t,r){"use strict";var n=r("01a8");r.d(t,"a",(function(){return n["a"]}))}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-115028d7.abe604a2.js b/dist/static/js/chunk-115028d7.abe604a2.js deleted file mode 100644 index 7bac3443..00000000 --- a/dist/static/js/chunk-115028d7.abe604a2.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-115028d7"],{"04c4":function(e,t,r){"use strict";var n=r("14d6"),a=r.n(n);a.a},"14d6":function(e,t,r){},2909:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("6b75");function a(e){if(Array.isArray(e))return Object(n["a"])(e)}var c=r("db90"),s=r("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 i(e){return a(e)||Object(c["a"])(e)||Object(s["a"])(e)||o()}},"5be0":function(e,t,r){},"6dcf":function(e,t,r){"use strict";var n=r("5be0"),a=r.n(n);a.a},a341:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"new-proj"},[r("AppHeader",{staticClass:"new-proj-header",attrs:{theme:"basis",showBackBtn:"",isShowTopBar:!0,backBtnTitle:"取消项目创建"}}),r("div",{staticClass:"proj_manage"},[r("div",{staticClass:"proj_manage_content"},[r("div",{staticClass:"projModule adjust-top-radius"},[e.isProjName?r("div",{staticClass:"projName_input"},[r("div",{staticClass:"newProj_header "},[r("div",{staticClass:"newProj_title"},[e._v(" 输入项目名称 ")]),r("el-button",{staticClass:"nextbtn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.enterTemplateSelect()}}},[e._v("下一步")])],1),r("div",{staticClass:"newProj_content"},[r("div",{staticClass:"upload_img"},[r("div",{staticClass:"upload_imgBox",style:e.showBackground(e.coverSrc)},[r("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[r("span",[e._v("编辑")])]),r("span",{staticClass:"faceBtn",on:{click:function(t){return t.stopPropagation(),e.setSystemCoverRandom(t)}}},[e._v("使用随机封面")])],1)]),r("div",[r("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?r("div",{staticClass:"template_select"},[r("TopHeader",{ref:"projdesc",staticClass:"set_position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"修改项目名称",onBackBtnClick:e.enterProjNameInput,title:"选择项目模板"},scopedSlots:e._u([{key:"right",fn:function(){return[r("el-button",{staticClass:"slot_btn",attrs:{disabled:!e.selectTemplate.Id},on:{click:function(t){return t.stopPropagation(),e.enterTemplateImprove()}}},[e._v("选定模板")])]},proxy:!0}],null,!1,3864135699)}),r("div",{staticClass:"template_select_content"},[e._l(e.templateList,(function(t,n){return r("div",{key:t.Id,staticClass:"template_info",on:{click:function(r){return r.stopPropagation(),e.isChecked(n,t)}}},[r("div",{staticClass:"check_box",class:{checked:e.checkedIndex==n}},[r("i",{staticClass:"el-icon-check"})]),r("span",{staticClass:"template_info_name"},[e._v(e._s(t.TempName))])])})),e.templateList.length?e._e():r("div",{staticClass:"template_empty"},[e._v("没有可供使用的项目模板,请联系管理员。")])],2)],1):e._e(),e.isTemImprove?r("div",{staticClass:"template_improve"},[r("TopHeader",{staticClass:"set_position header-wrap",attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"选择模板",onBackBtnClick:e.enterTemplateSelect,title:"完善模板信息"}},[r("div",{staticClass:"slot_btn",attrs:{slot:"right",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.createProject()}},slot:"right"},[e._v("创建")])]),r("div",{staticClass:"template_improve_content"},[r("div",{staticClass:"template_improve_info"},[r("div",{staticClass:"template_title"},[e._v("模板名称:")]),r("div",{staticClass:"template_title_info"},[e._v(e._s(e.selectTemplate.TempName))])]),r("div",{staticClass:"template_improve_info"},[r("div",{staticClass:"template_title"},[e._v("创建时间:")]),r("div",{staticClass:"template_title_info"},[e._v(e._s(e.createDate))])]),e._l(e.checkNewProjData.CustomProps,(function(t){return r("div",{key:t.Id,staticClass:"template_improve_info template_improve_infoInput"},[r("div",{staticClass:"template_title"},[e._v(e._s((t.PropertyName?t.PropertyName:"自定义字段")+":"))]),r("div",{staticClass:"template_title_info"},[r("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(r){r.target.composing||e.$set(t,"PropValue",r.target.value)}}})])])}))],2)],1):e._e()])])])],1)},a=[],c=(r("4160"),r("fb6a"),r("159b"),r("96cf"),r("1da1")),s=r("5530"),o=r("2909"),i=r("b1f3"),u=r("f96e"),p=r("b0f9"),l=(r("93d6"),r("5ab9")),m=r("9e5b"),d=r("b775"),h={components:{AppHeader:u["a"],TopHeader:i["a"],FileUploader:m["a"]},props:{},data:function(){return{companyId:sessionStorage.companyId,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"],r=t(e);return{background:"center/cover no-repeat url(".concat(r,")")}},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["n"](e).then((function(e){e.Data.propertys.forEach((function(e,r){t.checkNewProjData.CustomProps[r]={},t.checkNewProjData.CustomProps[r]["TempPropId"]=e.Id,t.checkNewProjData.CustomProps[r]["PropertyName"]=e.PropertyName,t.checkNewProjData.CustomProps[r]["PropValue"]="";var n=t.checkNewProjData.CustomProps;t.checkNewProjData.CustomProps=Object(o["a"])(n)})),t.checkNewProjData=Object(s["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(l["c"])(e.ossUrl);this.coverSrc=t,this.newProjData.projectData.showImgUrl=t},getSelectTemplateData:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["m"](e.companyId);case 2:r=t.sent,n=r.Data||[],e.templateList=n,e.templateList&&e.templateList.length&&"{}"===JSON.stringify(e.selectTemplate)&&(e.selectTemplate=n[0],e.checkedIndex=0);case 6:case"end":return t.stop()}}),t)})))()},getSelectTemplateList:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function r(){var n,a,c;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,p["p"](e);case 2:n=r.sent,a=n.Data,c=a.children||[],t.newProjData.listFolder=[],c.forEach((function(e){var r={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(r)}));case 7:case"end":return r.stop()}}),r)})))()},createProject:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var r,n,a;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,r=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:n=t.sent,e.checkNewProjData.Node=n.Data,e.$fetchApi("project/createProject",e.checkNewProjData).then((function(t){0===t.Code?(r.$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)}))):r.$notify.error({message:"项目创建失败, 请稍后重试。",offset:100,duration:5e3})})).catch((function(e){return console.log(e)})),a={API:"project/createProject",Action:"创建项目",CompanyName:sessionStorage.CompanyName,Subject:e.checkNewProjData.Proj.ProjName,Source:sessionStorage.client,ProjectName:e.checkNewProjData.Proj.ProjName},Object(d["b"])("operation/record",a);case 18:case"end":return t.stop()}}),t)})))()},loadTempNodeTree:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.templateId,t.next=3,p["p"](r);case 3:if(n=t.sent,e.listTempNodeTree=n.Data?[n.Data]:[],n.Data){t.next=7;break}return t.abrupt("return");case 7:e.nodeClick(n.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)}},f=h,j=(r("04c4"),r("2877")),b=Object(j["a"])(f,n,a,!1,null,null,null);t["default"]=b.exports},b0f9:function(e,t,r){"use strict";r.d(t,"o",(function(){return c})),r.d(t,"m",(function(){return o})),r.d(t,"t",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"n",(function(){return d})),r.d(t,"q",(function(){return f})),r.d(t,"f",(function(){return b})),r.d(t,"s",(function(){return v})),r.d(t,"l",(function(){return y})),r.d(t,"k",(function(){return k})),r.d(t,"b",(function(){return I})),r.d(t,"p",(function(){return C})),r.d(t,"j",(function(){return T})),r.d(t,"h",(function(){return O})),r.d(t,"i",(function(){return R})),r.d(t,"a",(function(){return U})),r.d(t,"g",(function(){return L})),r.d(t,"c",(function(){return q})),r.d(t,"e",(function(){return M})),r.d(t,"r",(function(){return H}));r("4de4"),r("96cf");var n=r("1da1"),a=r("b775");function c(){return s.apply(this,arguments)}function s(){return s=Object(n["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 i.apply(this,arguments)}function i(){return i=Object(n["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)}))),i.apply(this,arguments)}function u(e){return p.apply(this,arguments)}function p(){return p=Object(n["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 m.apply(this,arguments)}function m(){return m=Object(n["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 h.apply(this,arguments)}function h(){return h=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function f(e){return j.apply(this,arguments)}function j(){return j=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function b(e){return w.apply(this,arguments)}function w(){return w=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function v(e){return g.apply(this,arguments)}function g(){return g=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function y(e){return D.apply(this,arguments)}function D(){return D=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function k(e){return P.apply(this,arguments)}function P(){return P=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateIdByProjectId",{projectId:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}function I(e){return _.apply(this,arguments)}function _(){return _=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function C(e){return N.apply(this,arguments)}function N(){return N=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),N.apply(this,arguments)}function T(e,t,r){return x.apply(this,arguments)}function x(){return x=Object(n["a"])(regeneratorRuntime.mark((function e(t,r,n){var c;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:r,nestedNodeId:n});case 2:return c=e.sent,e.abrupt("return",Object(a["c"])(c));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function O(e){return S.apply(this,arguments)}function S(){return S=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function R(e,t){return B.apply(this,arguments)}function B(){return B=Object(n["a"])(regeneratorRuntime.mark((function e(t,r){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,companyId:r?void 0:"0"});case 2:return n=e.sent,r&&n.Data&&(n.Data=n.Data.filter((function(e){return"0"===e.CompanyId||e.CompanyId===r}))),e.abrupt("return",Object(a["c"])(n));case 5:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function U(e){return E.apply(this,arguments)}function E(){return E=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function L(e){return $.apply(this,arguments)}function $(){return $=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function q(e){return F.apply(this,arguments)}function F(){return F=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}function M(e){return A.apply(this,arguments)}function A(){return A=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),A.apply(this,arguments)}function H(e){return V.apply(this,arguments)}function V(){return V=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}},b1f3:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[r("div",{staticClass:"app-header-content"},[r("div",{staticClass:"app-header-content-left"},[e._t("left",[r("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()}}}),r("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),r("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?r("user-center"):e._e()],2)]),r("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},a=[],c=r("1392"),s={components:{UserCenter:c["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)}},o=s,i=(r("6dcf"),r("2877")),u=Object(i["a"])(o,n,a,!1,null,"373b66dc",null);t["a"]=u.exports},db90:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("d3b7"),r("3ca3"),r("ddb0");function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},f96e:function(e,t,r){"use strict";var n=r("01a8");r.d(t,"a",(function(){return n["a"]}))}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-15a37012.23f393b0.js b/dist/static/js/chunk-15a37012.007d472f.js similarity index 100% rename from dist/static/js/chunk-15a37012.23f393b0.js rename to dist/static/js/chunk-15a37012.007d472f.js diff --git a/dist/static/js/chunk-15f86d65.cfb68594.js b/dist/static/js/chunk-15f86d65.595d30e0.js similarity index 100% rename from dist/static/js/chunk-15f86d65.cfb68594.js rename to dist/static/js/chunk-15f86d65.595d30e0.js diff --git a/dist/static/js/chunk-1f448eff.e3f27dd8.js b/dist/static/js/chunk-1f448eff.e3f27dd8.js deleted file mode 100644 index cf087aad..00000000 --- a/dist/static/js/chunk-1f448eff.e3f27dd8.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1f448eff"],{"0834":function(e,t,r){},"14b7":function(e,t,r){},2532:function(e,t,r){"use strict";var s=r("23e7"),i=r("5a34"),n=r("1d80"),a=r("ab13");s({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(n(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},2909:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var s=r("6b75");function i(e){if(Array.isArray(e))return Object(s["a"])(e)}var n=r("db90"),a=r("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 c(e){return i(e)||Object(n["a"])(e)||Object(a["a"])(e)||o()}},"30c5":function(e,t,r){},"44b8":function(e,t,r){"use strict";var s=r("0834"),i=r.n(s);i.a},"45fc":function(e,t,r){"use strict";var s=r("23e7"),i=r("b727").some,n=r("a640"),a=r("ae40"),o=n("some"),c=a("some");s({target:"Array",proto:!0,forced:!o||!c},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"47c5":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"proj-detail"},[r("app-header",{attrs:{theme:"basis",isShowTopBar:!0,backBtnTitle:e.isEnterEdit?"":"退出项目编辑",showUserCenter:!1,showBackBtn:!e.isEnterEdit,onBackBtnClick:e.returnToProjListPage}}),r("div",{staticClass:"content-wrap",class:{"set-content-wrap":e.isEnterEdit}},[e.isEnterEdit?e._e():r("div",{staticClass:"graph-left-part"},[r("nodes-viewer",{staticClass:"node-viewer",attrs:{node:e.treeNode}})],1),r("div",{staticClass:"right-part",class:{"set-right-part-width":e.isEnterEdit}},[!e.isShowDistWorkPage&&e.isShowStartProjDesc?r("div",{ref:"projdesc",staticClass:"proj-desc adjust-top-radius"},[r("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{showUserCenter:!1}},[r("div",{staticClass:"title",attrs:{slot:"left"},slot:"left"},[e._v("项目概况")]),r("div",{staticClass:"to-distwork-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.handleShowDistWorkPage(t)}},slot:"right"},[e._v("开始")])]),r("div",{staticClass:"proj-desc-wrap"},[r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("项目名称")]),e.projectNameEditFlag?r("div",{staticClass:"item-value edit"},[r("el-input",{staticClass:"field-input",attrs:{size:"mini",autofocus:!0},model:{value:e.editingProjectName,callback:function(t){e.editingProjectName=t},expression:"editingProjectName"}}),r("el-button",{attrs:{size:"mini"},on:{click:function(t){return t.stopPropagation(),e.renameProjectName(t)}}},[e._v("确认")]),r("el-button",{attrs:{size:"mini"},on:{click:function(t){t.stopPropagation(),e.projectNameEditFlag=!1}}},[e._v("取消")])],1):r("div",{staticClass:"item-value"},[r("span",{staticStyle:{flex:"1"}},[e._v(e._s(e.nowProject.ProjName))]),e.isProjManager?r("el-button",{staticClass:"float-button",attrs:{size:"mini"},on:{click:function(t){t.stopPropagation(),e.projectNameEditFlag=!0}}},[e._v("编辑")]):e._e()],1)]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("项目负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateUserName))])]),r("div",{staticClass:"item cover-container"},[r("div",{staticClass:"item-title"},[e._v("封面")]),r("div",{staticClass:"item-value cover-img-wrap use-relative",style:e.showBackground(e.coverSrc)},[r("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[r("div",[e._v("编辑")])])],1)]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title proj-main-template"},[e._v("项目主要模板")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("模板负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("创建时间")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),e._l(e.listProjProp,(function(t){return r("div",{key:t.TempPropId,staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),r("div",{staticClass:"item-value"},[e._v(e._s(t.PropValue))])])}))],2)],1):e._e(),e.isShowDistWorkPage&&!e.isShowTemplateSummary?r("div",{staticClass:"distwork-page"},[e.isEnterEdit?r("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isDistWorkPartScroll},attrs:{title:"指派工作",showUserCenter:!1}},[r("div",{staticClass:"finish-edit-btn",attrs:{slot:"left"},on:{click:function(t){return t.stopPropagation(),e.finishEditClick(t)}},slot:"left"},[e._v("完成编辑")]),r("div",{staticClass:"question",attrs:{slot:"right"},slot:"right"},[r("i",{staticClass:"ques-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),r("span",{staticClass:"ques-text"},[e._v("了解工作负责人")])])]):r("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}}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowManagerTips,expression:"isShowManagerTips"}],staticClass:"manager-tips"},[r("i",{staticClass:"close-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),r("div",{staticClass:"tips-text"},[e._v("工作负责人将有权管理“负责工作中的成员”,点击用户头像变更工作负责人。")])]),r("div",{ref:"distworkpart",staticClass:"part-wrap"},[e.isEnterEdit?e._e():r("div",{staticClass:"template-detail-btn",on:{click:function(t){t.stopPropagation(),e.isShowTemplateSummary=!0,e.isEnterEditPropValue=!1}}},[e._v("模板概况")]),e.isProjManager?r("div",{staticClass:"manager-folder-wrap",class:{"active-folder mb-36":e.isEditProjManager,"only-manager-see folder-click":!e.isEnterEdit}},[r("div",{staticClass:"row-title"},[e._v("项目管理权限")]),r("div",{staticClass:"proj-manager-row use-relative",on:{click:function(t){return t.stopPropagation(),e.activeManagerClick(t)}}},[e.isEnterEdit&&e.isEditProjManager?e._e():r("div",{staticClass:"use-relative ml-4 clear-fix"},[r("div",{staticClass:"use-relative fl"},[r("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{user:e.currUser,isShowManagerMark:e.isEnterEdit}})],1),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),r("div",{staticClass:"use-flex fl"},[e.listManagerUser&&e.listManagerUser.length>0?r("div",{staticClass:"use-flex fl"},e._l(e.filterManageFromListUser(e.currUser.id,e.listManagerUser),(function(t){return r("people-item",{key:t.id,attrs:{user:t,isEnterEdit:e.isEnterEdit}})})),1):e._e(),!e.isEnterEdit&&e.isProjCreator?r("people-item",{nativeOn:{click:function(t){return t.stopPropagation(),e.addProjManager(t)}}}):e._e()],1)]),e.isEnterEdit&&e.isEditProjManager?r("div",{staticClass:"use-relative ml-4 use-flex"},[r("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]):e._e(),r("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?r("div",{staticClass:"template-summary"},[r("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}},[r("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?r("div",{ref:"templatedesc",staticClass:"summary-wrap"},[r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("模板负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("创建时间")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("工程名称")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjName))])]),e._l(e.listProjProp,(function(t){return r("div",{key:t.TempPropId,staticClass:"item"},[r("div",{staticClass:"item-title",class:{"adjust-title-position":e.isEnterEditPropValue}},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),r("div",{staticClass:"item-value"},[e.isEnterEditPropValue?r("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(r){r.target.composing||e.$set(t,"PropValue",r.target.value)}}}):r("div",[e._v(e._s(t.PropValue))])])])}))],2):e._e()],1):e._e(),e.isStartEditNestTemp?r("nest-temp",{attrs:{isTemNestInProp:e.isTemNest,nestNodeFolder:e.nestNodeFolder},on:{enterDistWork:e.enterDistWork}}):e._e()],1),e.isEnterEdit?r("div",{staticClass:"personnel-list-part",class:{"set-personnel-list-width":e.isEnterEdit}},[r("personnel-list",{attrs:{treeList:e.memberTree,selectedKeys:e.selectedMemberKeys},on:{select:e.onSelectMembers}})],1):e._e()])],1)},i=[],n=(r("4de4"),r("7db0"),r("c740"),r("4160"),r("caad"),r("a15b"),r("d81d"),r("fb6a"),r("a434"),r("d3b7"),r("ac1f"),r("2532"),r("3ca3"),r("1276"),r("159b"),r("ddb0"),r("0d21")),a=r("db90"),o=r("06c5"),c=r("3d8c");function l(e){return Object(n["a"])(e)||Object(a["a"])(e)||Object(o["a"])(e)||Object(c["a"])()}var d=r("3835"),u=r("5530"),p=r("2909"),h=(r("96cf"),r("1da1")),m=r("5ab9"),f=r("b1f3"),v=r("f96e"),g=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",e._l(e.folderList,(function(t){return r("div",{key:t.id},[r("div",[r("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(r){return r.stopPropagation(),e.activeFolderClick(t)}}},[r("div",{staticClass:"folder-name",class:{"opacity-5":!e.isAllowedAssignedStaffFolder}},[r("span",[e._v(e._s(t.folderName))]),e.isProjManager?e._e():r("span",{staticClass:"user-perm-text"})]),e.isEnterEdit&&e.activeFolderId===t.id?e._e():r("div",{staticClass:"clear-fix border-box",class:{"mb-36":t.id===e.activeFolderId&&e.isEnterEdit,"ml-4":!e.isEnterEdit,"adjust-position":e.isEnterEdit}},[r("div",{staticClass:"fl"},[t.manageUser&&0==t.manageUser.length?r("div",[e.isAllowedAssignedFolder(t)?r("div",{staticClass:"use-relative"},[e.isEnterEdit?r("people-item"):r("people-item",{class:{"mr-8":!e.isEnterEdit},nativeOn:{click:function(r){r.stopPropagation(),e.aloneAddUserForFolder(t),e.enterEditFolderClick(t)}}})],1):r("div",{staticClass:"notclick"},[r("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{isShowEmptyAvatar:!0}})],1)]):r("div",{staticClass:"use-flex"},e._l(t.manageUser,(function(s,i){return r("div",{key:s.id},[r("div",{staticClass:"use-relative"},[r("people-item",{class:{notclick:!e.isAllowedAssignedStaffFolder(t),"mr-8":!e.isEnterEdit},attrs:{user:s,isShowManagerMark:e.isEnterEdit}})],1)])})),0)]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),r("div",{staticClass:"use-flex",class:{"mb-6":e.isEnterEdit&&e.activeFolderId!==t.id}},[e._l(e.listUserComputed(t.listUser),(function(s){return r("div",{key:s.id,class:{notclick:!(e.isAllowedAssignedStaffFolder(t)||e.isStaff(t))}},[r("people-item",{attrs:{user:s,isEnterEdit:e.isEnterEdit}})],1)})),t.manageUser&&t.manageUser.length>0&&e.isAllowedAssignedStaffFolder(t)?r("div",{staticClass:"add-btn"},[e.isEnterEdit?e._e():r("people-item",{nativeOn:{click:function(r){r.stopPropagation(),e.aloneAddUserOnlyStaff(t),e.enterEditFolderClick(t)}}})],1):e._e(),e.canNest(t)?r("div",{staticClass:"stand-place"}):e._e(),e.canNest(t)&&!e.isEnterEdit&&e.isAllowedAssignedStaffFolder(t)?r("div",{staticClass:"add_nest"},[r("div",{staticClass:"add_nest_box",on:{click:function(r){return r.stopPropagation(),e.enterNestTemp(t)}}},[r("i",{staticClass:"el-icon-plus"}),r("p",[e._v("嵌套模板")])])]):e._e()],2)]),e.isEnterEdit&&e.activeFolderId==t.id?r("div",{staticClass:"use-relative ml-4 mb-36 use-flex border-box",class:{"adjust-margin":t.id===e.lastFolderId}},[r("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]),t.listChildren&&t.listChildren.length>0?[r("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)},w=[],b=(r("45fc"),function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"people-item",attrs:{title:e.user.cnName}},[r("div",{staticClass:"people-wrap",class:{"rt-0":e.isShowManagerMark}},[r("div",{staticClass:"people"},[Object.keys(e.user).length>0?r("img",{staticClass:"proj-avatarface",class:{"manager-mark":e.isShowManagerMark},attrs:{src:e._f("resolveAvator")(e.user.headImgUrl),alt:""}}):e.isShowEmptyAvatar?r("img",{staticClass:"proj-avatarface empty",attrs:{src:"/static/img/暂无2.svg",alt:""}}):r("div",{staticClass:"add-btn"},[r("i",{staticClass:"el-icon-plus proj-avatarface"})])]),r("div",{staticClass:"people-name",class:{"rt-2":e.isEnterEdit&&e.isShowManagerMark,"rt-4":e.isEnterEdit&&!e.isShowManagerMark}},[e._v(e._s(e.user.cnName))])])])}),j=[],C={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:{}},P=C,k=(r("8015"),r("2877")),E=Object(k["a"])(P,b,j,!1,null,"a9676b70",null),y=E.exports,I=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"temp-selected-user-list",style:{height:e.showAdjustHeight}},[r("div",{ref:"membersView",staticClass:"use-flex"},[e._l(e.memberList,(function(t){return r("div",{key:t.id,staticClass:"use-relative"},[r("people-item",{class:{"active-manager-mark":2==t.folderPerm},attrs:{user:t},nativeOn:{click:function(r){return r.stopPropagation(),e.changeManagerClick(t)}}}),2==t.folderPerm?r("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")]):e._e()],1)})),0==e.memberList.length?r("div",{staticClass:"use-relative",on:{click:function(t){return t.stopPropagation(),e.openPersonnelListClick(t)}}},[r("people-item",{staticClass:"active-manager-mark"}),r("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")])],1):e._e()],2)])},S=[],U={data:function(){return{selectedUserListEl:null,selectedUserListElWidth:0,selectedUserListElHeight:0,renderHeight:0,isAdjustHeight:!1}},components:{PeopleItem:y},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,r=t/e,s=0;if(r<=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}))}}}},O=_,M=(r("44b8"),Object(k["a"])(O,g,w,!1,null,"317304d0",null)),F=M.exports,x=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"member-list"},[r("div",{staticClass:"top-title"},[e._v("选择成员")]),e._m(0),r("div",{staticClass:"hori-line"}),r("div",{staticClass:"content-wrap"},[r("div",{staticClass:"people-wrap"},[r("el-collapse",{model:{value:e.activeCompanyName,callback:function(t){e.activeCompanyName=t},expression:"activeCompanyName"}},e._l(e.treeList,(function(t){return r("el-collapse-item",{key:t.id,attrs:{name:t.id}},[r("template",{slot:"title"},[r("span",{staticClass:"company-title"},[e._v(e._s(t.label))])]),t.hasChildren?r("el-collapse",{model:{value:e.activeDeptNameList,callback:function(t){e.activeDeptNameList=t},expression:"activeDeptNameList"}},e._l(t.children,(function(t){return r("el-collapse-item",{directives:[{name:"show",rawName:"v-show",value:t.hasChildren,expression:"deptNode.hasChildren"}],key:t.id,attrs:{name:t.id}},[r("template",{staticClass:"dept-entry",slot:"title"},[r("span",{staticClass:"dept-name"},[e._v(e._s(t.label))]),r("div",{staticClass:"check-all-wrap",on:{click:function(r){return r.stopPropagation(),e.toggleAllDept(t)}}},[r("div",{staticClass:"checkbox",class:{checked:e.deptNodeSelectedMap[t.id]}}),r("span",[e._v("全选")])])]),e._l(t.children,(function(t){return r("div",{key:t.id,staticClass:"user-info-item",attrs:{label:t.label},on:{click:function(r){return r.stopPropagation(),e.toggleMember(t)}}},[r("img",{staticClass:"avatar-img",attrs:{src:e._f("resolveAvator")(t.data.headImgUrl),alt:""}}),r("span",{staticClass:"user-info-name"},[e._v(e._s(t.label))]),r("div",{staticClass:"checkbox",class:{checked:e.isSelected(t.id)}})])}))],2)})),1):r("div",{staticClass:"empty-people-tips"},[e._v("暂未添加人员")])],2)})),1)],1)])])},L=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search-bar"},[r("i",{staticClass:"search-icon"}),r("input",{staticClass:"search-input",attrs:{placeholder:"搜索功能正在内测中",disabled:""}})])}],$={data:function(){var e=this.treeList[0],t=e?[e.id]:[],r=e?e.mapChildren((function(e){return e.id})):[];return this.clacAllSelected(),{ischeckAll:!1,activeCompanyName:t,activeDeptNameList:r}},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(r){r.mapChildren((function(r){var s=e.isChildrenAllSelected(r);s&&(t[r.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()}}}},A=$,R=(r("e040"),r("c8e2"),Object(k["a"])(A,x,L,!1,null,"58e87d7b",null)),B=R.exports,W=r("9e5b"),H=r("93d6"),V=r("2ef0"),q=(r("a623"),r("ade3")),K=r("d4ec");function z(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:Z;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}(),te=r("a06e"),re=r("b0f9"),se=r("5a0c"),ie=r.n(se),ne=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.isTemNest?r("div",{staticClass:"template_nest"},[r("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+"”添加新模板"}},[r("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.enterNestTempImprove()}},slot:"right"},[e._v(" 选定模板 ")])]),r("div",{ref:"nestTemplateDesc",staticClass:"template_select_content"},[r("div",{staticClass:"template_connect"},[e._m(0),e._l(e.NestTemplateList,(function(t,s){return r("div",{key:t.Id,staticClass:"template_info",on:{click:function(r){return e.isChecked(s,t)}}},[r("div",{staticClass:"check_box",class:{checked:e.checkedIndex==s}},[r("i",{staticClass:"el-icon-check"})]),r("span",{staticClass:"template_info_name"},[e._v(e._s(t.TemplateName))])])}))],2)])],1):e._e(),e.isNestTemImprove?r("div",{staticClass:"template_improve"},[r("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isTempImproveScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"选择模板",onBackBtnClick:e.enterSelectNestTemp,title:"完善模板信息"}},[r("div",{staticClass:"edit-template-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.addNestTemplate()}},slot:"right"},[e._v(" 创建 ")])]),r("div",{ref:"tempImproveDesc",staticClass:"summary-wrap"},[r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("模板名称")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.selectTemplate.TemplateName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("创建时间")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.createDate))])]),e._l(e.checkNewProjData.CustomProps,(function(t){return r("div",{key:t.Id,staticClass:"item"},[r("div",{staticClass:"item-title adjust-title-position"},[e._v(e._s((t.PropertyName?t.PropertyName:"自定义字段")+":"))]),r("div",{staticClass:"item-value"},[r("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(r){r.target.composing||e.$set(t,"PropValue",r.target.value)}}})])])}))],2)],1):e._e()])},ae=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"template_info_title"},[r("span",[e._v("已建立交换关系的模板")])])}],oe={components:{TopHeader:f["a"]},props:{nestNodeFolder:Object,isTemNestInProp:{type:Boolean,default:!1}},data:function(){return{companyId:sessionStorage.companyId,createDate:(new Date).toLocaleDateString(),title:this.nestNodeFolder.folderName,NestTemplateList:[],isTemNest:!1,isNestTemImprove:!1,isNestTempScroll:!1,nestTemplateDescEl:null,isTempImproveScroll:!1,tempImproveDescEl:null,selectTemplate:{},checkedIndex:0,checkNewProjData:{Proj:{ProjName:"",CompanyId:"",Notice:"",ShowImgUrl:"",TemplateId:"",CreateUserId:"",ModifyUserId:""},Node:{},CustomProps:[]}}},mounted:function(){this.nestTemplateDescEl=this.$refs.nestTemplateDesc,this.nestTemplateDescEl&&this.nestTemplateDescEl.addEventListener("scroll",this.watchNestTempScroll),this.tempImproveDescEl=this.$refs.tempImproveDesc,this.tempImproveDescEl&&this.nestTemplateDescEl.addEventListener("scroll",this.watchTempImproveScroll)},beforeDestroy:function(){this.nestTemplateDescEl&&this.nestTemplateDescEl.removeEventListener("scroll",this.watchNestTempScroll),this.tempImproveDescEl&&this.tempImproveDescEl.removeEventListener("scroll",this.watchTempImproveScroll)},methods:{enterNestTempImprove:function(){this.isTemNest=!1,this.isNestTemImprove=!0,this.getTempProps(this.selectTemplate.TemplateId)},enterSelectNestTemp:function(){this.isTemNest=!0,this.isNestTemImprove=!1},getTempProps:function(e){var t=this;re["n"](e).then((function(e){e.Data.propertys.forEach((function(e,r){t.checkNewProjData.CustomProps[r]={},t.checkNewProjData.CustomProps[r]["TempPropId"]=e.Id,t.checkNewProjData.CustomProps[r]["PropertyName"]=e.PropertyName,t.checkNewProjData.CustomProps[r]["PropValue"]="";var s=t.checkNewProjData.CustomProps;t.checkNewProjData.CustomProps=Object(p["a"])(s)})),t.checkNewProjData=Object(u["a"])({},t.checkNewProjData)}))},enterDistWork:function(){this.$emit("enterDistWork")},addNestTemplate:function(){var e=this;this.$confirm("重要提示:一旦确定模板并创建后,您将无法删除模板。","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"error"}).then(Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,re["p"](e.selectTemplate.TemplateId);case 2:return r=t.sent,s=r.Data,i={ProjId:e.nestNodeFolder.projId,NodeId:e.nestNodeFolder.nodeId,FolderId:e.nestNodeFolder.id,TemplateId:e.nestNodeFolder.templateId,NestJsmindData:s},t.next=7,re["b"](i);case 7:n=t.sent,0===n.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(h["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,re["m"](t.companyId);case 2:r=e.sent,t.NestTemplateList=(r.Data||[]).map((function(e){return e.TemplateName=e.TempName,e.TemplateId=e.Id,e})),t.NestTemplateList&&t.NestTemplateList.length&&"{}"===JSON.stringify(t.selectTemplate)&&(t.selectTemplate=t.NestTemplateList[0],t.checkedIndex=0);case 5:case"end":return e.stop()}}),e)})))()},watchNestTempScroll:function(){this.isNestTempScroll=this.nestTemplateDescEl.scrollTop>0},watchTempImproveScroll:function(){this.isTempImproveScroll=this.tempImproveDescEl.scrollTop>0}},watch:{isTemNestInProp:{handler:function(e){this.isTemNest=e,e&&this.getNestTemplate(this.nestNodeFolder.nodeId)},immediate:!0},isNestTempScroll:function(e){var t=this;e&&setTimeout((function(){t.nestTemplateDescEl=t.$refs.nestTemplateDesc,t.nestTemplateDescEl&&t.nestTemplateDescEl.addEventListener("scroll",t.watchNestTempScroll)}),50)}}},ce=oe,le=(r("5a5f"),Object(k["a"])(ce,ne,ae,!1,null,"37d14612",null)),de=le.exports,ue=r("de58"),pe={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:[],projectNameEditFlag:!1,editingProjectName:"",treeNode:null}},components:{AppHeader:v["a"],TopHeader:f["a"],PlainFolderList:F,PeopleItem:y,PersonnelList:B,TempSelectedUserList:D,FileUploader:W["a"],NestTemp:de,NodesViewer:ue["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))},watch:{isEnterEdit:function(e){e&&(this.projectNameEditFlag=!1)},projectNameEditFlag:function(e){e&&(this.editingProjectName=this.nowProject.ProjName)}},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"],r=t(e);return{background:"center/cover no-repeat url(".concat(r,")")}},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(h["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(h["a"])(regeneratorRuntime.mark((function r(){var s,i,n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return a=function(e,t){e.forEach(function(){var e=Object(h["a"])(regeneratorRuntime.mark((function e(r){var s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,re["l"](r.TemplateId);case 2:s=e.sent,i=s.Data||[],i.length>0&&t.push.apply(t,Object(p["a"])(i));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},r.next=3,re["l"](e);case 3:s=r.sent,i=s.Data||[],n=Object(p["a"])(s.Data),a(i,n),t.nestNodeList=n;case 8:case"end":return r.stop()}}),r)})))()},projInfo:function(e){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function r(){var s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,te["c"](e);case 2:if(s=r.sent,-1!=s.Code){r.next=6;break}return t.$notify({type:["error"],message:"项目概况信息查询失败"}),r.abrupt("return");case 6:t.nowProject=s.Data||{},t.nowProject.ProjCreateTime=ie()(t.nowProject.ProjCreateTime).format("YYYY/MM/DD"),t.nowProject=Object(u["a"])({},t.nowProject),t.listProjProp=s.Data.CustomProps||[],t.listProjProp=Object(p["a"])(t.listProjProp),t.originPropListCopy=Object(V["cloneDeep"])(t.listProjProp),t.coverSrc=s.Data.ShowImgUrl;case 13:case"end":return r.stop()}}),r)})))()},renameProjectName:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.editingProjectName,s={ProjId:sessionStorage.projId,ProjName:r,ImgUrl:e.coverSrc},t.next=4,Object(te["b"])(s);case 4:if(i=t.sent,-1!=i.Code){t.next=8;break}return e.$notify({message:"修改失败",type:"success"}),t.abrupt("return");case 8:e.projectNameEditFlag=!1,e.nowProject.ProjName=r;case 10:case"end":return t.stop()}}),t)})))()},coverUploadSuccess:function(e){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function r(){var s,i,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return s=Object(m["c"])(e.ossUrl),t.coverSrc=s,i={ProjId:sessionStorage.projId,ImgUrl:t.coverSrc,ProjName:t.nowProject.ProjName},r.next=5,Object(te["b"])(i);case 5:n=r.sent,-1==n.Code&&t.$notify({message:"封面修改失败。",type:"success"});case 7:case"end":return r.stop()}}),r)})))()},setSystemCoverRandom:function(){},returnToDistWorkClick:function(){var e=this;this.isEnterEditPropValue?this.$confirm("是否保存当前项目的模板概况信息","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(h["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(h["a"])(regeneratorRuntime.mark((function r(){var s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(H["f"])(e);case 3:return r.sent,r.next=6,Object(H["f"])(sessionStorage.createUserID);case 6:s=r.sent,t.curProjCreatePeop=s.cnName+" 指派了新工作,请完成工作指派",1==sessionStorage.allocated&&(t.curProjCreatePeop="项目管理"),r.next=14;break;case 11:r.prev=11,r.t0=r["catch"](0),console.log(r.t0);case 14:case"end":return r.stop()}}),r,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 r=this.listManagerUser.map((function(e){return e.id}))||[];!r.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(r){r.folderPerm=r.id===e.id?2:1,2===r.folderPerm&&t.InitData&&t.InitData.manageUser&&t.InitData.manageUser.splice(0,1,r)}))}},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 r=t.listUser.find((function(t){return t.id===e.currUser.id}));r&&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 r=this,s=Object(p["a"])(this.selectedMemberKeys);e.forEach((function(e){var i=Object(V["cloneDeep"])(e.data),n=function(){r.checkDeptUserName(i,t),i.folderPerm=1,1==r.selectedUser.length&&1==t&&(i.folderPerm=2)};if(t){if(s.find((function(t){return t===e.id})))return;return s.push(e.id),void n()}if(r.isAllowedDelete(i))if(r.isEditProjManager&&i.id===r.currUser.id)r.$notify({message:"不可以移除项目创建者。",type:"warning",offset:100,duration:5e3});else{if(s=s.filter((function(e){return i.id!==e})),r.activeFolder&&r.activeFolder.manageUser.find((function(e){return e.id===i.id})))return r.removeManageUser(i),void r.activeFolder.manageUser.splice(0);if(r.isEditProjManager){var a=r.listManagerUser.findIndex((function(e){return e.id===i.id}));a>-1&&r.listManagerUser.splice(a,1)}n()}else r.$notify({message:"不能移除自己。",type:"warning",offset:100,duration:5e3})})),this.selectedMemberKeys=s},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(r){r.length>0&&r.forEach((function(r){e.push(r),r.listChildren&&r.listChildren.length>0&&t(r.listChildren)}))}t(this.oldFolderList),this.oldPlainFolderList=e,this.lastFolderId=this.oldPlainFolderList[this.oldPlainFolderList.length-1].id},fetchProjectDetail:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i,n,a,o,c,l,u,p,h,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.$store.state.currentCompanyId,t.next=3,Promise.all([e.$fetchApi("folder/queryNodeFolderListByProjectId",{projectId:sessionStorage.projId}),Q(r)]);case 3:s=t.sent,i=Object(d["a"])(s,2),n=i[0],a=i[1],o=a.treeList,c=a.memberMap,l=n.Data||{},u=l.folder,p=l.manager,e.memberTree=o,e.listManagerUser=p.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(V["cloneDeep"])(e.listManagerUser),h=Object(V["uniqBy"])(u,"Id"),m=he(h,c),e.treeNode=me(h),e.getfolderPerm(m),e.listNewFolder=m,e.oldFolderList=Object(V["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList(),e.getAllChildrenLists(e.listNewFolder,e.userId,e.allChildrenLists);case 22:case"end":return t.stop()}}),t)})))()},getChildren:function(e,t){var r=this;e.forEach((function(e){t.push(e),e.listChildren.length>0&&r.getChildren(e.listChildren,t)}))},getAllChildrenLists:function(e,t,r){var s=this;e.forEach((function(e){e.manageUser.length>0&&e.manageUser[0].id==t&&e.listChildren&&e.listChildren.length>0&&s.getChildren(e.listChildren,r)}))},createFolders:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i,n,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 n=[];t.ManagerUserId=e.manageUser.length>0?e.manageUser.map((function(e){return n.push(e.id),e.id})).join(","):"";var a=e.listUser.filter((function(e){return!n.includes(e.id)}));t.GeneralId=e.listUser.length>0?a.map((function(e){return e.id})).join(","):"";var o=s.find((function(t){return t.id==e.id})),c=o.manageUser.length>0?o.manageUser[0].id:"";t.OldManager=c,t.OldGeneralId=o.listUser.length>0?o.listUser.filter((function(e){return e.id!==c})).map((function(e){return e.id})).join(","):"",r.Work.push(t),i(e.listChildren)}))},r={Id:sessionStorage.createUserID,ProjId:sessionStorage.projId,ProjectManagerId:"",OldProjectManagerId:e.oldListManagerUser.map((function(e){return e.id})).join(","),Work:[]},r.ProjectManagerId=e.listManagerUser.length>0?e.listManagerUser.map((function(e){if(e.id!==sessionStorage.createUserID)return e.id})).join(","):"",s=e.oldPlainFolderList,i(e.listNewFolder),t.next=7,Object(te["a"])(r);case 7:n=t.sent,a=e,0===n.Code?(e.isDistworkSuccess=!0,e.oldFolderList=Object(V["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList()):(e.isDistworkSuccess=!1,a.$notify({message:"服务器异常,工作指派失败。",type:["error"],duration:5e3}));case 10:case"end":return t.stop()}}),t)})))()}}};function he(e,t){var r=l(e),s=r[0],i=(r[1],r.slice(2)),n=s.Id,a=[],o={};return i.forEach((function(e){var r=Object(Y["b"])(e);o[r.id]=r,r.listChildren=[],r.listUser=r.oldGeneralId.split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(u["a"])({},t[e].data)})),r.manageUser=("0"===r.oldManager?"":r.oldManager).split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(u["a"])({},t[e].data)}));var s=r.superId;if(s!==n){var i=o[s];i&&i.listChildren.push(r)}else a.push(r)})),a}function me(e){var t=null,r={};return e.forEach((function(e){if("0"!==e.NodeId){var s=e.LevelId,i={id:e.Id,levelId:s,topic:e.FolderName};if(r[i.levelId]=i,i.levelId===e.FirstFolderId)return t=i,void(t.levelId=t.id);var n=e.LevelId.split("_").slice(0,-1).join("_"),a=r[n];a&&(a.children||(a.children=[]),a.children.push(i))}})),t}var fe=pe,ve=(r("7efe"),r("685f"),Object(k["a"])(fe,s,i,!1,null,"7f6ce6d6",null));t["default"]=ve.exports},"5a34":function(e,t,r){var s=r("44e7");e.exports=function(e){if(s(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a5f":function(e,t,r){"use strict";var s=r("f290"),i=r.n(s);i.a},"5be0":function(e,t,r){},"685f":function(e,t,r){"use strict";var s=r("14b7"),i=r.n(s);i.a},"6dcf":function(e,t,r){"use strict";var s=r("5be0"),i=r.n(s);i.a},"7efe":function(e,t,r){"use strict";var s=r("b348"),i=r.n(s);i.a},8015:function(e,t,r){"use strict";var s=r("e3e1"),i=r.n(s);i.a},"8ed8":function(e,t,r){},a06e:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return u})),r.d(t,"e",(function(){return h}));r("96cf");var s=r("1da1"),i=r("b775");function n(e){return a.apply(this,arguments)}function a(){return a=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function l(e){return d.apply(this,arguments)}function d(){return d=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function u(e){return p.apply(this,arguments)}function p(){return p=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));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(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}},a623:function(e,t,r){"use strict";var s=r("23e7"),i=r("b727").every,n=r("a640"),a=r("ae40"),o=n("every"),c=a("every");s({target:"Array",proto:!0,forced:!o||!c},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},ab13:function(e,t,r){var s=r("b622"),i=s("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[i]=!1,"/./"[e](t)}catch(s){}}return!1}},b0f9:function(e,t,r){"use strict";r.d(t,"o",(function(){return n})),r.d(t,"m",(function(){return o})),r.d(t,"t",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"n",(function(){return h})),r.d(t,"q",(function(){return f})),r.d(t,"f",(function(){return g})),r.d(t,"s",(function(){return b})),r.d(t,"l",(function(){return C})),r.d(t,"k",(function(){return k})),r.d(t,"b",(function(){return y})),r.d(t,"p",(function(){return S})),r.d(t,"j",(function(){return N})),r.d(t,"h",(function(){return D})),r.d(t,"i",(function(){return O})),r.d(t,"a",(function(){return F})),r.d(t,"g",(function(){return L})),r.d(t,"c",(function(){return A})),r.d(t,"e",(function(){return B})),r.d(t,"r",(function(){return H}));r("4de4"),r("96cf");var s=r("1da1"),i=r("b775");function n(){return a.apply(this,arguments)}function a(){return a=Object(s["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)}))),a.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(s["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 l(e){return d.apply(this,arguments)}function d(){return d=Object(s["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)}))),d.apply(this,arguments)}function u(e){return p.apply(this,arguments)}function p(){return p=Object(s["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(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function f(e){return v.apply(this,arguments)}function v(){return v=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",r);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(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function b(e){return j.apply(this,arguments)}function j(){return j=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return P=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}function k(e){return E.apply(this,arguments)}function E(){return E=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryNestTemplateIdByProjectId",{projectId:t});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function y(e){return I.apply(this,arguments)}function I(){return I=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function S(e){return U.apply(this,arguments)}function U(){return U=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),U.apply(this,arguments)}function N(e,t,r){return T.apply(this,arguments)}function T(){return T=Object(s["a"])(regeneratorRuntime.mark((function e(t,r,s){var n;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:r,nestedNodeId:s});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 D(e){return _.apply(this,arguments)}function _(){return _=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function O(e,t){return M.apply(this,arguments)}function M(){return M=Object(s["a"])(regeneratorRuntime.mark((function e(t,r){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,companyId:r?void 0:"0"});case 2:return s=e.sent,r&&s.Data&&(s.Data=s.Data.filter((function(e){return"0"===e.CompanyId||e.CompanyId===r}))),e.abrupt("return",Object(i["c"])(s));case 5:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function F(e){return x.apply(this,arguments)}function x(){return x=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function L(e){return $.apply(this,arguments)}function $(){return $=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function A(e){return R.apply(this,arguments)}function R(){return R=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function B(e){return W.apply(this,arguments)}function W(){return W=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function H(e){return V.apply(this,arguments)}function V(){return V=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}},b1f3:function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[r("div",{staticClass:"app-header-content"},[r("div",{staticClass:"app-header-content-left"},[e._t("left",[r("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()}}}),r("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),r("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?r("user-center"):e._e()],2)]),r("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},i=[],n=r("1392"),a={components:{UserCenter:n["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)}},o=a,c=(r("6dcf"),r("2877")),l=Object(c["a"])(o,s,i,!1,null,"373b66dc",null);t["a"]=l.exports},b348:function(e,t,r){},c740:function(e,t,r){"use strict";var s=r("23e7"),i=r("b727").findIndex,n=r("44d2"),a=r("ae40"),o="findIndex",c=!0,l=a(o);o in[]&&Array(1)[o]((function(){c=!1})),s({target:"Array",proto:!0,forced:c||!l},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(o)},c8e2:function(e,t,r){"use strict";var s=r("8ed8"),i=r.n(s);i.a},caad:function(e,t,r){"use strict";var s=r("23e7"),i=r("4d64").includes,n=r("44d2"),a=r("ae40"),o=a("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!o},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("includes")},d4ec:function(e,t,r){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return s}))},db90:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("d3b7"),r("3ca3"),r("ddb0");function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},de58:function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("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)}}})},i=[],n=(r("fb6a"),function(){return"xmind_".concat("".concat(Math.random()).slice(2,8))}),a=window.jsMind,o={props:{node:{type:Object,default:null},width:{type:String,default:""},height:{type:String,default:""}},data:function(){return{domId:n(),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 a(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){if(e.ctrlKey){e.returnValue=!1;var t=-e.wheelDelta||e.detail,r=this.getMindInnerDom();if(r){var s=this.zoom+(t>0?-.1:.1),i=Math.max(.2,Math.min(s,1.8));this.zoom=i,r.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)}}},c=o,l=r("2877"),d=Object(l["a"])(c,s,i,!1,null,"2aa6cc14",null);t["a"]=d.exports},e040:function(e,t,r){"use strict";var s=r("30c5"),i=r.n(s);i.a},e3e1:function(e,t,r){},f290:function(e,t,r){},f96e:function(e,t,r){"use strict";var s=r("01a8");r.d(t,"a",(function(){return s["a"]}))}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-1f4d12f6.721d574d.js b/dist/static/js/chunk-1f4d12f6.9e3ed07b.js similarity index 100% rename from dist/static/js/chunk-1f4d12f6.721d574d.js rename to dist/static/js/chunk-1f4d12f6.9e3ed07b.js diff --git a/dist/static/js/chunk-1f7519e6.7a9a2f7d.js b/dist/static/js/chunk-1f7519e6.58533b9a.js similarity index 100% rename from dist/static/js/chunk-1f7519e6.7a9a2f7d.js rename to dist/static/js/chunk-1f7519e6.58533b9a.js diff --git a/dist/static/js/chunk-1fe39068.b42a4687.js b/dist/static/js/chunk-1fe39068.88545176.js similarity index 100% rename from dist/static/js/chunk-1fe39068.b42a4687.js rename to dist/static/js/chunk-1fe39068.88545176.js diff --git a/dist/static/js/chunk-1fe40532.43ed19d3.js b/dist/static/js/chunk-1fe40532.37d1b0db.js similarity index 100% rename from dist/static/js/chunk-1fe40532.43ed19d3.js rename to dist/static/js/chunk-1fe40532.37d1b0db.js diff --git a/dist/static/js/chunk-2627340f.b97654b2.js b/dist/static/js/chunk-2627340f.fab96d75.js similarity index 100% rename from dist/static/js/chunk-2627340f.b97654b2.js rename to dist/static/js/chunk-2627340f.fab96d75.js diff --git a/dist/static/js/chunk-28990618.441e6475.js b/dist/static/js/chunk-28990618.95f3515c.js similarity index 100% rename from dist/static/js/chunk-28990618.441e6475.js rename to dist/static/js/chunk-28990618.95f3515c.js diff --git a/dist/static/js/chunk-2d0ac90d.182ca4ff.js b/dist/static/js/chunk-2d0ac90d.e0bcd5e3.js similarity index 100% rename from dist/static/js/chunk-2d0ac90d.182ca4ff.js rename to dist/static/js/chunk-2d0ac90d.e0bcd5e3.js diff --git a/dist/static/js/chunk-2d0b3688.16ed26b1.js b/dist/static/js/chunk-2d0b3688.e4fc10cd.js similarity index 100% rename from dist/static/js/chunk-2d0b3688.16ed26b1.js rename to dist/static/js/chunk-2d0b3688.e4fc10cd.js diff --git a/dist/static/js/chunk-2d0c061a.5f51a89e.js b/dist/static/js/chunk-2d0c061a.f4fb38fd.js similarity index 100% rename from dist/static/js/chunk-2d0c061a.5f51a89e.js rename to dist/static/js/chunk-2d0c061a.f4fb38fd.js diff --git a/dist/static/js/chunk-2d0cf6a4.70894ce5.js b/dist/static/js/chunk-2d0cf6a4.55312a34.js similarity index 100% rename from dist/static/js/chunk-2d0cf6a4.70894ce5.js rename to dist/static/js/chunk-2d0cf6a4.55312a34.js diff --git a/dist/static/js/chunk-2d0e148e.d0277f82.js b/dist/static/js/chunk-2d0e148e.291e91e7.js similarity index 100% rename from dist/static/js/chunk-2d0e148e.d0277f82.js rename to dist/static/js/chunk-2d0e148e.291e91e7.js diff --git a/dist/static/js/chunk-2d21b850.987f704d.js b/dist/static/js/chunk-2d21b850.4aeeb7cf.js similarity index 100% rename from dist/static/js/chunk-2d21b850.987f704d.js rename to dist/static/js/chunk-2d21b850.4aeeb7cf.js diff --git a/dist/static/js/chunk-2d224b2b.640b5bb9.js b/dist/static/js/chunk-2d224b2b.fa650c95.js similarity index 100% rename from dist/static/js/chunk-2d224b2b.640b5bb9.js rename to dist/static/js/chunk-2d224b2b.fa650c95.js diff --git a/dist/static/js/chunk-309e49e4.3b4fb2c3.js b/dist/static/js/chunk-309e49e4.018ab90b.js similarity index 100% rename from dist/static/js/chunk-309e49e4.3b4fb2c3.js rename to dist/static/js/chunk-309e49e4.018ab90b.js diff --git a/dist/static/js/chunk-310a053d.89b5bbb8.js b/dist/static/js/chunk-310a053d.148e23fd.js similarity index 100% rename from dist/static/js/chunk-310a053d.89b5bbb8.js rename to dist/static/js/chunk-310a053d.148e23fd.js diff --git a/dist/static/js/chunk-3b425bf2.6cca398c.js b/dist/static/js/chunk-3b425bf2.e6522618.js similarity index 100% rename from dist/static/js/chunk-3b425bf2.6cca398c.js rename to dist/static/js/chunk-3b425bf2.e6522618.js diff --git a/dist/static/js/chunk-504bef5f.7e244c37.js b/dist/static/js/chunk-504bef5f.7e244c37.js new file mode 100644 index 00000000..c95be835 --- /dev/null +++ b/dist/static/js/chunk-504bef5f.7e244c37.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-504bef5f"],{"011a":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"app"}},[r("app-header",{attrs:{showUserCenter:!0,id:"proj-list-page",showRecycleBin:""},scopedSlots:t._u([{key:"left",fn:function(){return[r("el-button",{staticClass:"org-button no-drag",on:{click:function(e){return e.stopPropagation(),t.navBack(e)}}},[t._v(" "+t._s(t.currentPlatform.orgName)+" "),r("i",{staticClass:"el-icon-sort org-button-icon"})])]},proxy:!0},{key:"center",fn:function(){return[r("div",{staticClass:"main-title"},[t._v(t._s(t.showCenterTitle))])]},proxy:!0},{key:"right",fn:function(){return[r("search-bar",{staticClass:"proj-search-bar",attrs:{placeholder:"搜索项目名称",maxLength:35},on:{didHide:t.hideSearchBar,didShow:t.showSearchBar,search:t.searchForProj},model:{value:t.searchContent,callback:function(e){t.searchContent=e},expression:"searchContent"}})]},proxy:!0}])}),r("div",{staticClass:"layout_content"},[r("section",{staticClass:"yiyun_warpContent"},[r("div",{staticClass:"yiyun-rows mt-20",attrs:{id:"new"}},[r("div",{staticClass:"yiyun-col-4 timer-part"},[r("div",{staticClass:"yiyun_row",staticStyle:{width:"95%"}},[r("timer",{attrs:{cnName:t.cnName}})],1)]),t._m(0)]),t.noProjTip?r("div",{staticStyle:{"margin-left":"50%","margin-top":"25%"}},[r("h1",[t._v("空空如也")])]):t._e()]),t.isUserPerm?r("button",{staticClass:"yiyun_btn_new new-btn-margin",attrs:{id:"buttonbtn"},on:{click:function(e){return e.stopPropagation(),t.createNewProjectClick(e)}}},[t._v("新建项目")]):t._e(),t.linkApplyList&&t.linkApplyList.length?[r("div",{staticClass:"group-title"},[t._v("待互链的项目")]),r("div",{staticClass:"linkItem-list"},[r("el-row",{attrs:{gutter:64}},t._l(t.linkApplyList,(function(e){return r("el-col",{key:e.id,attrs:{xs:24,sm:12,md:12,lg:8,xl:6}},[r("div",{staticClass:"linkItem",on:{click:function(r){t.linkDialogContextData=e,t.linkDialogVisible=!0}}},[r("div",[r("icon-triangle-circle",{staticClass:"icon-models",attrs:{size:30,color:"#3C7DFF"}}),r("span",[t._v("项目互链邀请")])],1),r("div",[t._v(" 项目名称 ")]),r("div",[t._v(" 由“企业简称”的“负责人”邀请 ")])])])})),1)],1)]:t._e(),r("div",{staticClass:"group-title"},[t._v("最近的项目")]),r("proj-list",{attrs:{id:"proj-list",projList:t.showProjList,isUserPerm:t.isUserPerm},on:{watchAllBtnClick:t.watchAllBtnClick,lookProjDetailClick:t.lookProjDetailClick,"on-remove":t.onRemoveProject}}),r("el-dialog",{staticClass:"linkDialog",attrs:{width:"460px",visible:t.linkDialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.linkDialogVisible=e}}},[r("icon-triangle-circle",{staticClass:"icon-models",attrs:{size:24,color:"#3C7DFF"}}),r("i",{staticClass:"el-icon-close",on:{click:function(e){t.linkDialogVisible=!1}}}),r("span",{staticClass:"main-text"},[t._v('"企业简称"建立的“项目名称”,邀请您互链节点“节点名称”')]),r("el-button",{staticClass:"block-button",attrs:{type:"primary"}},[t._v("通过新建项目互链")]),r("el-button",{staticClass:"block-button"},[t._v("选择已有项目建立互链")]),r("el-button",{staticClass:"block-button"},[t._v("拒绝互链邀请")])],1)],2)],1)},o=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"yiyun-col-4"},[r("div",{staticClass:"yiyun_row"},[r("div",{staticClass:"section_item fr section_item_aside_fr"})])])}],i=(r("d3b7"),r("3ca3"),r("ddb0"),r("3835")),s=(r("96cf"),r("1da1")),a=r("f96e"),c=r("2f4c"),l=r("0f13"),u=r("a06e"),h=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.cnName?r("div",[r("div",{staticClass:"big-time"},[t._v(t._s(t.nowTime))]),r("div",{staticClass:"now-time"},[r("span",{staticClass:"nowshijian"},[t._v(t._s(t.nowDate.substr(5))+" "+t._s(t.welcome)+t._s(t.cnName))])])]):t._e()},p=[],d=(r("fb6a"),r("4d63"),r("ac1f"),r("25f0"),r("466d"),r("5319"),r("841c"),{getDateTimeString:function(t){var e=t.getFullYear(),r=t.getMonth()+1;r=r<10?"0"+r:r;var n=t.getDate();n=n<10?"0"+n:n;var o=t.getHours();o=o<10?"0"+o:o;var i=t.getMinutes();i=i<10?"0"+i:i;var s=t.getSeconds();s=s<10?"0"+s:s;var a=e+"-"+r+"-"+n+" "+o+":"+i+":"+s;return a},getDateTimeStringByStr:function(t){var e=new Date(t),r=e.getFullYear(),n=e.getMonth()+1;n=n<10?"0"+n:n;var o=e.getDate();o=o<10?"0"+o:o;var i=e.getHours();i=i<10?"0"+i:i;var s=e.getMinutes();s=s<10?"0"+s:s;var a=e.getSeconds();a=a<10?"0"+a:a;var c=r+"-"+n+"-"+o+" "+i+":"+s+":"+a;return c},formatDate:function(t){var e=t.getFullYear(),r=t.getMonth()+1,n=t.getDate();r=r<10?"0"+r:r,n=n<10?"0"+n:n;var o=e+"-"+r+"-"+n;return o},convertToDate:function(t){var e=t.slice(6,19),r=new Date(parseInt(e));return this.formatDate(r)},unixToDate:function(t,e){t=t.replace(/[^0-9]/gi,""),10==t.length&&(t*=1e3);var r=parseInt(t),n=new Date(r),o="";o+=n.getFullYear()+"-";var i=n.getMonth()+1;o+=i<10?"0"+i+"-":i+"-";var s=n.getDate();return o+=s<10?"0"+s:s,!0===e&&(o+=" "+n.getHours()+":",o+=n.getMinutes()+":",o+=n.getSeconds()),o},getUrlParams:function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),r=window.location.search.substr(1).match(e);return null!=r?r[2]:null},validNumber:function(t,e,r){e?/^([0-9]+)$/.test(e)?r():r(new Error("只能输入整数")):e?r():r(new Error("这里不能为空"))},validNullOrNumber:function(t,e,r){e?/^([0-9]+)$/.test(e)?r():r(new Error("只能输入整数")):r()},validNullOrNumber2:function(t,e,r){e?/^([0-9]+)$/.test(e)?r():r(new Error(" ")):r()},validDecimal:function(t,e,r){e?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(e)?r():r(new Error("只能输入数字")):e?r():r(new Error("这里不能为空"))},validNullOrDecimal:function(t,e,r){e?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(e)?r():r(new Error("只能输入数字")):r()},validNullOrDecimal2:function(t,e,r){e?/^(([0-9]+[.][0-9]+)|([0-9]+))$/.test(e)?r():r(new Error(" ")):r()},validRequired:function(t,e,r){e?r():r(new Error("这里不能为空"))},validEmail:function(t,e,r){if(""!=e){var n=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;n.test(e)?r():r(new Error("邮箱格式不正确!"))}else r()},validPhoneNum:function(t,e,r){if(""!=e){var n=/(^\d{11}$)/;n.test(e)?r():r(new Error("请输入11位有效手机号码!"))}else r(new Error("请输入手机号"))},validVerificationCode:function(t,e,r){if(""!=e){var n=/(^\d{6}$)/;n.test(e)?r():r(new Error("请输入有效的验证码!"))}else r(new Error("请输入验证码"))},validPhone:function(t,e,r){""!=e&&11!=e.length?r(new Error("请输入11位有效手机号码!")):r()},validPhoneAndRequired:function(t,e,r){""!=e?11!=e.length?r(new Error("请输入11位有效手机号码!")):r():r(new Error("请输入手机号"))},pathSubString:function(t){var e=t.slice(-22);return e},pageData:function(t,e,r){""!=e&&null!=e||(e=1),""!=t&&null!=t||(t=10);var n=(e-1)*t,o=n+t;o>r.length&&(o=r.length);var i=[];if(null!=r&&r.length>0)for(var s=n;s0?this.welcome="上午好! ":12==t?this.welcome="中午好! ":t>12&&t>20?this.welcome="晚上好,注意休息! ":t>12&&t<20&&(this.welcome="下午好!")}},mounted:function(){this.setDateTime(),this.timer=setInterval(this.setDateTime,1e3)},beforeDestroy:function(){clearInterval(this.timer),this.timer=null}},f=m,v=(r("9d0d"),r("63b7"),r("2877")),g=Object(v["a"])(f,h,p,!1,null,"0481b847",null),w=g.exports,j=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("section",{staticClass:"yiyun_warpContent"},[r("div",{staticClass:"yiyun-rows",attrs:{id:"alone"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isEmpty,expression:"isEmpty"}],staticClass:"nullproduct"},[r("img",{attrs:{src:"static\\img\\nopro.png",alt:""}}),r("span",{staticClass:"noprotext"},[t._v("暂无项目")])]),r("div",{staticClass:"prjitemList"},[r("el-row",{attrs:{gutter:64}},t._l(t.projList,(function(e,n){return r("el-col",{key:e.Id,attrs:{xs:24,sm:12,md:12,lg:8,xl:6}},[r("proj-item",{attrs:{projItem:e,isUserPerm:t.isUserPerm},on:{lookProjDetailClick:function(r){return t.lookProjDetailClick(e)},watchAllBtnClick:function(r){return t.watchAllBtnClick(e,n)},"on-remove":t.onRemoveProject}})],1)})),1)],1)])])])},b=[],C=r("b775"),S=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"prjitem"},[r("div",{ref:"projitem",staticClass:"prjitem_content",style:t.showBackground(t.projItem.ShowImgUrl),on:{mouseenter:function(e){t.showSetIcon(t.projItem.Id),t.isMouseHover=!0},mouseleave:function(e){t.hiddenSetIcon,t.isMouseHover=!1},click:function(e){return e.stopPropagation(),t.goFilePage(t.projItem)}}},[t.isUserPerm?r("el-dropdown",{staticClass:"prjitem_settings_wrapper",attrs:{placement:"bottom"}},[r("span",{staticClass:"prjitem_settings",on:{click:function(t){t.stopPropagation()}}},[r("i",{staticClass:"el-icon-s-tools"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{staticClass:"danger_button"},[r("span",{on:{click:function(e){return e.stopPropagation(),t.removeProject()}}},[t._v("删除")])])],1)],1):t._e(),1==t.projItem.newProjStatus?r("div",{staticClass:"newprj_icon"},[t._v("新项目")]):t._e(),r("div",{staticClass:"prjitem_title",class:{"move-item-name":t.focusProjId==t.projItem.Id&&t.isMouseHover},attrs:{title:t.projItem.ProjName}},[t._v(t._s(t.subProjName(t.projItem.ProjName)))]),r("div",{staticClass:"operate-bar",class:{"show-operate-bar":t.isMouseHover&&t.focusProjId==t.projItem.Id}},[r("div",{staticClass:"bar-item",on:{click:function(e){return e.stopPropagation(),t.watchAllBtnClick(e)}}},[t._v("观全局")]),r("div",{staticClass:"bar-item",on:{click:function(e){return e.stopPropagation(),t.lookProjDetailClick(e)}}},[t._v("项目管理")])])],1)])},k=[],y=r("3de1"),P={data:function(){return{focusProjId:"",isEmpty:!1,isMouseHover:!1}},props:{projItem:{type:Object,default:function(){return{}}},isUserPerm:Boolean},methods:{showBackground:function(t){var e=this.$options.filters["resolveImg"],r=e(t);return{background:"center/cover no-repeat url(".concat(r,")")}},lookProjDetailClick:function(){this.$emit("lookProjDetailClick")},manageProj:function(){this.$router.push("/newproject")},removeProject:function(){var t=this;this.projItem.ProjName;this.$confirm("删除项目后所有文件将被置入回收站中,但您可在回收站操作拷贝转移,确定删除项目?","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"error"}).then(Object(s["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$fetchApi("project/deleteProject",{id:t.projItem.Id});case 2:if(r=e.sent,Object(C["c"])(r),!r.Code){e.next=6;break}return e.abrupt("return");case 6:y["d"].success("".concat(t.projItem.ProjName,"已删除")),t.$emit("on-remove",t.projItem);case 8:case"end":return e.stop()}}),e)}))))},subProjName:function(t){var e=t.length;if(e>13){var r=t.slice(0,7),n=t.slice(e-6,e);return r+"..."+n}return t},watchAllBtnClick:function(){this.$emit("watchAllBtnClick")},showSetIcon:function(t){this.focusProjId=t},hiddenSetIcon:function(){this.focusProjId=""},goFilePage:function(t){sessionStorage.createUserID=t.CreateUserId,sessionStorage.templateID=t.TemplateId,sessionStorage.projId=t.Id,sessionStorage.nowFolderIndex="",sessionStorage.comFolderId=t.ComFolderId,sessionStorage.newProjStatus=t.NewProjStatus,sessionStorage.projName!=t.ProjName&&(sessionStorage.projName=t.ProjName),this.$router.push({name:"workspace"}).catch((function(t){return console.log(t)}));var e={API:"folder/queryNodeFolderListByProjectId",Action:"打开项目",CompanyName:sessionStorage.CompanyName,Subject:sessionStorage.projName,Source:sessionStorage.client,ProjectName:sessionStorage.projName};Object(C["b"])("operation/record",e),sessionStorage.pageName="workspace"}}},I=P,x=(r("17cf"),r("d76a"),Object(v["a"])(I,S,k,!1,null,"3516a822",null)),_=x.exports,D={data:function(){return{isEmpty:!1}},components:{ProjItem:_},props:{projList:{type:Array,default:function(){return[]}},isUserPerm:Boolean},watch:{projListLength:{immediate:!0,handler:function(t){this.isEmpty=!(t>0)}}},computed:{projListLength:function(){return this.projList?this.projList.length:0}},methods:{onRemoveProject:function(t){this.$emit("on-remove",t)},lookProjDetailClick:function(t){this.$emit("lookProjDetailClick",t)},manageProj:function(){this.$router.push("/newproject")},subProjName:function(t){var e=t.length;if(e>13){var r=t.slice(0,7),n=t.slice(e-6,e);return r+"..."+n}return t},watchAllBtnClick:function(t,e){this.$emit("watchAllBtnClick",t,e)}}},N=D,B=(r("846f"),Object(v["a"])(N,j,b,!1,null,"d9269f9e",null)),E=B.exports,T=r("6b3d"),$=r("2ef0"),O={elNew:"#new",components:{SearchBar:c["a"],Timer:w,AppHeader:a["a"],ProjList:E,IconTriangleCircle:T["a"]},data:function(){var t=this.$store.state.currentPlatform;return{companyId:t.orgId,currentPlatform:t,isUserPerm:Object(l["c"])(t.accessList,l["a"].ProjectManager),cnName:"",projList:[],linkApplyList:[],noProjTip:!1,isShowProjSetting:!1,fetchTickIns:null,searchContent:"",searchProjList:[],isShowSearchBar:!1,isSearching:!1,homeScrollTop:0,contentBodyEl:null,linkDialogVisible:!1,linkDialogContextData: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:{navBack:function(){this.$router.push({name:"platform"})},recordContentScrollTop:function(){this.homeScrollTop=this.contentBodyEl.scrollTop,sessionStorage.setItem("homeScrollTop",this.homeScrollTop)},hideSearchBar:function(){this.isShowSearchBar=!1,this.searchContent=""},showSearchBar:function(){this.isShowSearchBar=!0},searchForProj:Object($["debounce"])(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e,r;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 this.isSearching=!0,t.next=8,u["e"](this.searchContent);case 8:r=t.sent,0==r.Code?this.searchProjList=r.Data:this.$notify({type:["error"],message:"查询数据失败, 请稍后重试。"});case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),500),createNewProjectClick:function(){this.$router.push("/newproject").catch((function(t){return console.log(t)}))},lookProjDetailClick:function(t){sessionStorage.projId=t.Id,sessionStorage.createUserID=t.CreateUserId,sessionStorage.templateID=t.TemplateId,sessionStorage.allocated=t.Allocated,this.$router.push({name:"projdetail"}).catch((function(t){console.log(t)}))},watchAllBtnClick:function(t,e){this.toWatchPageClick(t)},toWatchPageClick:function(t){this.$router.push({path:"watch"}),sessionStorage.removeItem("projName"),sessionStorage.removeItem("projId"),sessionStorage.setItem("projName",t.ProjName),sessionStorage.setItem("projId",t.Id)},toLinkPageClick:function(t){this.$router.push({path:"watchlink"}),sessionStorage.removeItem("projName"),sessionStorage.removeItem("projId"),sessionStorage.setItem("projName",t.ProjName),sessionStorage.setItem("projId",t.Id)},toRecycle:function(){this.$router.push({name:"recycle",params:{title:"我的项目"}})},onRemoveProject:function(){this.listProjects()},listProjects:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var n,o,s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.$store.state.accountId,e.companyId,r.next=4,Promise.all([u["d"](e.$store.state.accountId)]);case 4:n=r.sent,o=Object(i["a"])(n,2),s=o[0],o[1],e.projList=s.Data,e.$nextTick((function(){var t=document.getElementById("bigbody");e.homeScrollTop=parseInt(sessionStorage.getItem("homeScrollTop")||0),t&&t.scrollTo(0,e.homeScrollTop)})),t&&(e.fetchTickIns=setTimeout((function(){return e.listProjects(!0)}),6e4));case 11:case"end":return r.stop()}}),r)})))()},refuseLinkApply:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.linkDialogContextData;case 2:case"end":return e.stop()}}),e)})))()}}},L=O,R=(r("c95a"),r("394e"),r("ec82"),r("1108"),Object(v["a"])(L,n,o,!1,null,"291d7b4a",null));e["default"]=R.exports},1108:function(t,e,r){"use strict";var n=r("8471"),o=r.n(n);o.a},"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"17cf":function(t,e,r){"use strict";var n=r("8d09"),o=r.n(n);o.a},"2f4c":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"search-bar",class:{"show-search-bar":t.isShowSearchBar}},[r("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)}}},[r("img",{directives:[{name:"show",rawName:"v-show",value:!t.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),r("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:""}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[r("i",{staticClass:"search-icon",on:{click:function(e){return e.stopPropagation(),t.goToSearch(e)}}}),r("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)}}}),r("i",{staticClass:"close-icon",on:{click:function(e){return e.stopPropagation(),t.hideSearchBar(e)}}})])])},o=[],i=(r("fb6a"),r("a9e3"),{data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},model:{prop:"value",event:"input"},props:{placeholder:{type:String,default:"搜索的文本"},maxLength:Number},watch:{searchContent:function(t){if(this.maxLength&&t.length>this.maxLength)return this.$notify({message:"请输入".concat(this.maxLength,"个字之内的搜索内容"),type:["warning"]}),void(this.searchContent=this.searchContent.slice(0,this.maxLength));this.changeSearchContent()}},methods:{enterSearchContent:function(t){this.searchContent&&13==t.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("input",this.searchContent)},goToSearch:function(){this.$emit("search")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("didHide")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("didShow")}}}),s=i,a=(r("3c93"),r("2877")),c=Object(a["a"])(s,n,o,!1,null,"f20ebcbc",null);e["a"]=c.exports},"394e":function(t,e,r){"use strict";var n=r("77e2"),o=r.n(n);o.a},"3c93":function(t,e,r){"use strict";var n=r("73d8"),o=r.n(n);o.a},"466d":function(t,e,r){"use strict";var n=r("d784"),o=r("825a"),i=r("50c4"),s=r("1d80"),a=r("8aa5"),c=r("14c3");n("match",1,(function(t,e,r){return[function(e){var r=s(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var s=o(t),l=String(this);if(!s.global)return c(s,l);var u=s.unicode;s.lastIndex=0;var h,p=[],d=0;while(null!==(h=c(s,l))){var m=String(h[0]);p[d]=m,""===m&&(s.lastIndex=a(l,i(s.lastIndex),u)),d++}return 0===d?null:p}]}))},"4d63":function(t,e,r){var n=r("83ab"),o=r("da84"),i=r("94ca"),s=r("7156"),a=r("9bf2").f,c=r("241c").f,l=r("44e7"),u=r("ad6d"),h=r("9f7f"),p=r("6eeb"),d=r("d039"),m=r("69f3").set,f=r("2626"),v=r("b622"),g=v("match"),w=o.RegExp,j=w.prototype,b=/a/g,C=/a/g,S=new w(b)!==b,k=h.UNSUPPORTED_Y,y=n&&i("RegExp",!S||k||d((function(){return C[g]=!1,w(b)!=b||w(C)==C||"/a/i"!=w(b,"i")})));if(y){var P=function(t,e){var r,n=this instanceof P,o=l(t),i=void 0===e;if(!n&&o&&t.constructor===P&&i)return t;S?o&&!i&&(t=t.source):t instanceof P&&(i&&(e=u.call(t)),t=t.source),k&&(r=!!e&&e.indexOf("y")>-1,r&&(e=e.replace(/y/g,"")));var a=s(S?new w(t,e):w(t,e),n?this:j,P);return k&&r&&m(a,{sticky:r}),a},I=function(t){t in P||a(P,t,{configurable:!0,get:function(){return w[t]},set:function(e){w[t]=e}})},x=c(w),_=0;while(x.length>_)I(x[_++]);j.constructor=P,P.prototype=j,p(o,"RegExp",P)}f("RegExp")},5122:function(t,e,r){},"63b7":function(t,e,r){"use strict";var n=r("fabf"),o=r.n(n);o.a},"6b3d":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{style:{width:t.size+"px",height:t.size+"px"}},[r("svg",{attrs:{width:"100%",height:"100%",viewBox:"0 0 100 100"}},[r("circle",{attrs:{cx:"50",cy:"56",r:"39","stroke-width":"10",stroke:t.color,fill:"transparent"}}),r("circle",{attrs:{cx:"50",cy:"16",r:"16",fill:t.color}}),r("circle",{attrs:{cx:"84",cy:"84",r:"16",fill:t.color}}),r("circle",{attrs:{cx:"16",cy:"84",r:"16",fill:t.color}})])])},o=[],i=(r("a9e3"),{props:{color:String,size:Number}}),s=i,a=(r("f94d"),r("2877")),c=Object(a["a"])(s,n,o,!1,null,"dd2d6402",null);e["a"]=c.exports},"6d1d":function(t,e,r){},"73d8":function(t,e,r){},"77e2":function(t,e,r){},"841c":function(t,e,r){"use strict";var n=r("d784"),o=r("825a"),i=r("1d80"),s=r("129f"),a=r("14c3");n("search",1,(function(t,e,r){return[function(e){var r=i(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var i=o(t),c=String(this),l=i.lastIndex;s(l,0)||(i.lastIndex=0);var u=a(i,c);return s(i.lastIndex,l)||(i.lastIndex=l),null===u?-1:u.index}]}))},"846f":function(t,e,r){"use strict";var n=r("a62a"),o=r.n(n);o.a},8471:function(t,e,r){},"89f7":function(t,e,r){},"8a37":function(t,e,r){},"8d09":function(t,e,r){},"9d0d":function(t,e,r){"use strict";var n=r("cf15"),o=r.n(n);o.a},a06e:function(t,e,r){"use strict";r.d(e,"d",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"b",(function(){return l})),r.d(e,"a",(function(){return h})),r.d(e,"e",(function(){return d}));r("d81d"),r("96cf");var n=r("1da1"),o=r("b775");r("3de1");function i(t){return s.apply(this,arguments)}function s(){return s=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/queryProjectListByUserId",{userId:e});case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),s.apply(this,arguments)}function a(t){return c.apply(this,arguments)}function c(){return c=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/queryProjectInfoByProjId",{projId:e});case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),c.apply(this,arguments)}function l(t){return u.apply(this,arguments)}function u(){return u=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/editProject",e);case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),u.apply(this,arguments)}function h(t){return p.apply(this,arguments)}function p(){return p=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/assignedWork",e);case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),p.apply(this,arguments)}function d(t){return m.apply(this,arguments)}function m(){return m=Object(n["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("project/searchProject",{projName:e});case 2:return r=t.sent,t.abrupt("return",Object(o["c"])(r));case 4:case"end":return t.stop()}}),t)}))),m.apply(this,arguments)}},a62a:function(t,e,r){},c95a:function(t,e,r){"use strict";var n=r("5122"),o=r.n(n);o.a},cf15:function(t,e,r){},d76a:function(t,e,r){"use strict";var n=r("89f7"),o=r.n(n);o.a},ec82:function(t,e,r){"use strict";var n=r("6d1d"),o=r.n(n);o.a},f94d:function(t,e,r){"use strict";var n=r("8a37"),o=r.n(n);o.a},f96e:function(t,e,r){"use strict";var n=r("01a8");r.d(e,"a",(function(){return n["a"]}))},fabf:function(t,e,r){}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-559c8a4e.0de322f1.js b/dist/static/js/chunk-559c8a4e.0de322f1.js new file mode 100644 index 00000000..a55846a6 --- /dev/null +++ b/dist/static/js/chunk-559c8a4e.0de322f1.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-559c8a4e"],{"14b7":function(e,t,r){},2532:function(e,t,r){"use strict";var s=r("23e7"),i=r("5a34"),n=r("1d80"),a=r("ab13");s({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(n(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},2909:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var s=r("6b75");function i(e){if(Array.isArray(e))return Object(s["a"])(e)}var n=r("db90"),a=r("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 c(e){return i(e)||Object(n["a"])(e)||Object(a["a"])(e)||o()}},"2fff":function(e,t,r){"use strict";var s=r("7e58"),i=r.n(s);i.a},"30c5":function(e,t,r){},"45fc":function(e,t,r){"use strict";var s=r("23e7"),i=r("b727").some,n=r("a640"),a=r("ae40"),o=n("some"),c=a("some");s({target:"Array",proto:!0,forced:!o||!c},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"47c5":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"proj-detail"},[r("app-header",{attrs:{theme:"basis",isShowTopBar:!0,backBtnTitle:e.isEnterEdit?"":"退出项目编辑",showUserCenter:!1,showBackBtn:!e.isEnterEdit,onBackBtnClick:e.returnToProjListPage}}),r("div",{staticClass:"content-wrap",class:{"set-content-wrap":e.isEnterEdit}},[e.isEnterEdit?e._e():r("div",{staticClass:"graph-left-part"},[r("nodes-viewer",{staticClass:"node-viewer",attrs:{node:e.treeNode}})],1),r("div",{staticClass:"right-part",class:{"set-right-part-width":e.isEnterEdit}},[!e.isShowDistWorkPage&&e.isShowStartProjDesc?r("div",{ref:"projdesc",staticClass:"proj-desc adjust-top-radius"},[r("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{showUserCenter:!1}},[r("div",{staticClass:"title",attrs:{slot:"left"},slot:"left"},[e._v("项目概况")]),r("div",{staticClass:"to-distwork-btn",attrs:{slot:"right"},on:{click:function(t){return t.stopPropagation(),e.handleShowDistWorkPage(t)}},slot:"right"},[e._v("开始")])]),r("div",{staticClass:"proj-desc-wrap"},[r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("项目名称")]),e.projectNameEditFlag?r("div",{staticClass:"item-value edit"},[r("el-input",{staticClass:"field-input",attrs:{size:"mini",autofocus:!0},model:{value:e.editingProjectName,callback:function(t){e.editingProjectName=t},expression:"editingProjectName"}}),r("el-button",{attrs:{size:"mini"},on:{click:function(t){return t.stopPropagation(),e.renameProjectName(t)}}},[e._v("确认")]),r("el-button",{attrs:{size:"mini"},on:{click:function(t){t.stopPropagation(),e.projectNameEditFlag=!1}}},[e._v("取消")])],1):r("div",{staticClass:"item-value"},[r("span",{staticStyle:{flex:"1"}},[e._v(e._s(e.nowProject.ProjName))]),e.isProjManager?r("el-button",{staticClass:"float-button",attrs:{size:"mini"},on:{click:function(t){t.stopPropagation(),e.projectNameEditFlag=!0}}},[e._v("编辑")]):e._e()],1)]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("项目负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateUserName))])]),r("div",{staticClass:"item cover-container"},[r("div",{staticClass:"item-title"},[e._v("封面")]),r("div",{staticClass:"item-value cover-img-wrap use-relative",style:e.showBackground(e.coverSrc)},[r("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[r("div",[e._v("编辑")])])],1)]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title proj-main-template"},[e._v("项目主要模板")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("模板负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("创建时间")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),e._l(e.listProjProp,(function(t){return r("div",{key:t.TempPropId,staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),r("div",{staticClass:"item-value"},[e._v(e._s(t.PropValue))])])}))],2)],1):e._e(),e.isShowDistWorkPage&&!e.isShowTemplateSummary?r("div",{staticClass:"distwork-page"},[e.isEnterEdit?r("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isDistWorkPartScroll},attrs:{title:"指派工作",showUserCenter:!1}},[r("div",{staticClass:"finish-edit-btn",attrs:{slot:"left"},on:{click:function(t){return t.stopPropagation(),e.finishEditClick(t)}},slot:"left"},[e._v("完成编辑")]),r("div",{staticClass:"question",attrs:{slot:"right"},slot:"right"},[r("i",{staticClass:"ques-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),r("span",{staticClass:"ques-text"},[e._v("了解工作负责人")])])]):r("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}}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowManagerTips,expression:"isShowManagerTips"}],staticClass:"manager-tips"},[r("i",{staticClass:"close-icon",on:{click:function(t){t.stopPropagation(),e.isShowManagerTips=!e.isShowManagerTips}}}),r("div",{staticClass:"tips-text"},[e._v("工作负责人将有权管理“负责工作中的成员”,点击用户头像变更工作负责人。")])]),r("div",{ref:"distworkpart",staticClass:"part-wrap"},[e.isEnterEdit?e._e():r("div",{staticClass:"template-detail-btn",on:{click:function(t){t.stopPropagation(),e.isShowTemplateSummary=!0,e.isEnterEditPropValue=!1}}},[e._v("模板概况")]),e.isProjManager?r("div",{staticClass:"manager-folder-wrap",class:{"active-folder mb-36":e.isEditProjManager,"only-manager-see folder-click":!e.isEnterEdit}},[r("div",{staticClass:"row-title"},[e._v("项目管理权限")]),r("div",{staticClass:"proj-manager-row use-relative",on:{click:function(t){return t.stopPropagation(),e.activeManagerClick(t)}}},[e.isEnterEdit&&e.isEditProjManager?e._e():r("div",{staticClass:"use-relative ml-4 clear-fix"},[r("div",{staticClass:"use-relative fl"},[r("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{user:e.currUser,isShowManagerMark:e.isEnterEdit}})],1),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),r("div",{staticClass:"use-flex fl"},[e.listManagerUser&&e.listManagerUser.length>0?r("div",{staticClass:"use-flex fl"},e._l(e.filterManageFromListUser(e.currUser.id,e.listManagerUser),(function(t){return r("people-item",{key:t.id,attrs:{user:t,isEnterEdit:e.isEnterEdit}})})),1):e._e(),!e.isEnterEdit&&e.isProjCreator?r("people-item",{nativeOn:{click:function(t){return t.stopPropagation(),e.addProjManager(t)}}}):e._e()],1)]),e.isEnterEdit&&e.isEditProjManager?r("div",{staticClass:"use-relative ml-4 use-flex"},[r("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]):e._e(),r("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?r("div",{staticClass:"template-summary"},[r("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}},[r("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?r("div",{ref:"templatedesc",staticClass:"summary-wrap"},[r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("模板负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.TempCreateUserName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("创建时间")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjCreateTime))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("工程名称")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nowProject.ProjName))])]),e._l(e.listProjProp,(function(t){return r("div",{key:t.TempPropId,staticClass:"item"},[r("div",{staticClass:"item-title",class:{"adjust-title-position":e.isEnterEditPropValue}},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),r("div",{staticClass:"item-value"},[e.isEnterEditPropValue?r("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(r){r.target.composing||e.$set(t,"PropValue",r.target.value)}}}):r("div",[e._v(e._s(t.PropValue))])])])}))],2):e._e()],1):e._e(),e.isStartEditNestTemp?r("link-project",{attrs:{isTemNestInProp:e.isTemNest,nestNodeFolder:e.nestNodeFolder},on:{enterDistWork:e.enterDistWork}}):e._e()],1),e.isEnterEdit?r("div",{staticClass:"personnel-list-part",class:{"set-personnel-list-width":e.isEnterEdit}},[r("personnel-list",{attrs:{treeList:e.memberTree,selectedKeys:e.selectedMemberKeys},on:{select:e.onSelectMembers}})],1):e._e()]),e.nestNodeFolder?r("el-dialog",{staticClass:"nest-project-modal",attrs:{visible:e.nestProjectModalVisible,center:"",top:"48px",width:"660px"},on:{"update:visible":function(t){e.nestProjectModalVisible=t}},scopedSlots:e._u([{key:"title",fn:function(){return[r("div",{staticClass:"nest-project-modal-title"},[r("span",[e._v(e._s(e.nestNodeFolder.folderName)+"的互链项目")]),r("el-button",{on:{click:function(t){t.stopPropagation(),e.nestProjectModalVisible=!1}}},[e._v("关闭")])],1)]},proxy:!0}],null,!1,1702687869)},[e.nestProjectInfo?r("div",{staticClass:"proj-desc-wrap dialog-detail"},[r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("项目名称")]),r("div",{staticClass:"item-value"},[r("span",{staticStyle:{flex:"1"}},[e._v(e._s(e.nestProjectInfo.projName))])])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("项目负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.projCreateUserName))])]),r("div",{staticClass:"item cover-container"},[r("div",{staticClass:"item-title"},[e._v("封面")]),r("div",{staticClass:"item-value cover-img-wrap use-relative",style:e.showBackground(e.coverSrc)})]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title proj-main-template"},[e._v("项目主要模板")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.tempName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("模板负责")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.tempCreateUserName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v("创建时间")]),r("div",{staticClass:"item-value"},[e._v(e._s(e.nestProjectInfo.projCreateTime))])]),e._l(e.nestProjectInfo.customProps||[],(function(t){return r("div",{key:t.TempPropId,staticClass:"item"},[r("div",{staticClass:"item-title"},[e._v(e._s(t.PropertyName?t.PropertyName:"自定义字段"))]),r("div",{staticClass:"item-value"},[e._v(e._s(t.PropValue))])])}))],2):e._e(),r("div",[r("el-button",{staticClass:"remove-button",attrs:{type:"danger",plain:""},on:{click:function(t){return t.stopPropagation(),e.severNestProject(t)}}},[e._v("解除项目互链")])],1)]):e._e()],1)},i=[],n=(r("4de4"),r("7db0"),r("c740"),r("4160"),r("caad"),r("a15b"),r("d81d"),r("fb6a"),r("a434"),r("d3b7"),r("ac1f"),r("2532"),r("3ca3"),r("1276"),r("159b"),r("ddb0"),r("0d21")),a=r("db90"),o=r("06c5"),c=r("3d8c");function l(e){return Object(n["a"])(e)||Object(a["a"])(e)||Object(o["a"])(e)||Object(c["a"])()}var d=r("3835"),u=r("5530"),p=r("2909"),h=(r("96cf"),r("1da1")),m=r("5ab9"),f=r("b1f3"),v=r("f96e"),g=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",e._l(e.folderList,(function(t){return r("div",{key:t.id},[r("div",[r("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(r){return r.stopPropagation(),e.activeFolderClick(t)}}},[r("div",{staticClass:"folder-name",class:{"opacity-5":!e.isAllowedAssignedStaffFolder}},[r("span",[e._v(e._s(t.folderName))]),e.isProjManager?e._e():r("span",{staticClass:"user-perm-text"})]),e.isEnterEdit&&e.activeFolderId===t.id?e._e():r("div",{staticClass:"clear-fix border-box",class:{"mb-36":t.id===e.activeFolderId&&e.isEnterEdit,"ml-4":!e.isEnterEdit,"adjust-position":e.isEnterEdit}},[r("div",{staticClass:"fl"},[t.manageUser&&0==t.manageUser.length?r("div",[e.isAllowedAssignedFolder(t)?r("div",{staticClass:"use-relative"},[e.isEnterEdit?r("people-item"):r("people-item",{class:{"mr-8":!e.isEnterEdit},nativeOn:{click:function(r){r.stopPropagation(),e.aloneAddUserForFolder(t),e.enterEditFolderClick(t)}}})],1):r("div",{staticClass:"notclick"},[r("people-item",{class:{"mr-8":!e.isEnterEdit},attrs:{isShowEmptyAvatar:!0}})],1)]):r("div",{staticClass:"use-flex"},e._l(t.manageUser,(function(s,i){return r("div",{key:s.id},[r("div",{staticClass:"use-relative"},[r("people-item",{class:{notclick:!e.isAllowedAssignedStaffFolder(t),"mr-8":!e.isEnterEdit},attrs:{user:s,isShowManagerMark:e.isEnterEdit}})],1)])})),0)]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isEnterEdit,expression:"!isEnterEdit"}],staticClass:"vertical-line"}),r("div",{staticClass:"use-flex",class:{"mb-6":e.isEnterEdit&&e.activeFolderId!==t.id}},[e._l(e.listUserComputed(t.listUser),(function(s){return r("div",{key:s.id,class:{notclick:!(e.isAllowedAssignedStaffFolder(t)||e.isStaff(t))}},[r("people-item",{attrs:{user:s,isEnterEdit:e.isEnterEdit}})],1)})),t.manageUser&&t.manageUser.length>0&&e.isAllowedAssignedStaffFolder(t)?r("div",{staticClass:"add-btn"},[e.isEnterEdit?e._e():r("people-item",{nativeOn:{click:function(r){r.stopPropagation(),e.aloneAddUserOnlyStaff(t),e.enterEditFolderClick(t)}}})],1):e._e(),e.canNest(t)?r("div",{staticClass:"stand-place"}):e._e(),e.canNest(t)&&!e.isEnterEdit&&e.isAllowedAssignedStaffFolder(t)?r("div",{staticClass:"extra-buttons"},[t.nestProjectId&&"0"!==t.nestProjectId?r("el-button",{staticClass:"extra-button",attrs:{size:"mini"},on:{click:function(r){return r.stopPropagation(),e.checkNestProject(t)}}},[r("icon-triangle-circle",{staticClass:"extra-button-icon",attrs:{size:14,color:"#3C7DFF"}}),r("span",{style:{marginLeft:"13px"}},[e._v("管理互链项目")])],1):r("el-dropdown",{attrs:{trigger:"click"}},[r("el-button",{staticClass:"extra-button",attrs:{size:"mini"}},[r("icon-triangle-circle",{staticClass:"extra-button-icon",attrs:{size:14,color:"#999B9D"}}),r("span",{style:{marginLeft:"13px"}},[e._v("互链项目")])],1),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{nativeOn:{click:function(r){return e.createNestProject(t)}}},[e._v("通过新建项目互链")]),r("el-dropdown-item",{nativeOn:{click:function(r){return e.enterNestTemp(t)}}},[e._v("选择已有项目建立互链")])],1)],1)],1):e._e()],2)]),e.isEnterEdit&&e.activeFolderId==t.id?r("div",{staticClass:"use-relative ml-4 mb-36 use-flex border-box",class:{"adjust-margin":t.id===e.lastFolderId}},[r("temp-selected-user-list",{attrs:{memberList:e.selectedUser},on:{changeManagerClick:e.changeManagerClick,setFirstPeopleToManager:e.setFirstPeopleToManager}})],1):e._e()])]),t.listChildren&&t.listChildren.length>0?[r("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)},b=[],j=(r("45fc"),function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"people-item",attrs:{title:e.user.cnName}},[r("div",{staticClass:"people-wrap",class:{"rt-0":e.isShowManagerMark}},[r("div",{staticClass:"people"},[Object.keys(e.user).length>0?r("img",{staticClass:"proj-avatarface",class:{"manager-mark":e.isShowManagerMark},attrs:{src:e._f("resolveAvator")(e.user.headImgUrl),alt:""}}):e.isShowEmptyAvatar?r("img",{staticClass:"proj-avatarface empty",attrs:{src:"/static/img/暂无2.svg",alt:""}}):r("div",{staticClass:"add-btn"},[r("i",{staticClass:"el-icon-plus proj-avatarface"})])]),r("div",{staticClass:"people-name",class:{"rt-2":e.isEnterEdit&&e.isShowManagerMark,"rt-4":e.isEnterEdit&&!e.isShowManagerMark}},[e._v(e._s(e.user.cnName))])])])}),w=[],C={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:{}},P=C,k=(r("8015"),r("2877")),y=Object(k["a"])(P,j,w,!1,null,"a9676b70",null),E=y.exports,I=r("6b3d"),U=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"temp-selected-user-list",style:{height:e.showAdjustHeight}},[r("div",{ref:"membersView",staticClass:"use-flex"},[e._l(e.memberList,(function(t){return r("div",{key:t.id,staticClass:"use-relative"},[r("people-item",{class:{"active-manager-mark":2==t.folderPerm},attrs:{user:t},nativeOn:{click:function(r){return r.stopPropagation(),e.changeManagerClick(t)}}}),2==t.folderPerm?r("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")]):e._e()],1)})),0==e.memberList.length?r("div",{staticClass:"use-relative",on:{click:function(t){return t.stopPropagation(),e.openPersonnelListClick(t)}}},[r("people-item",{staticClass:"active-manager-mark"}),r("div",{staticClass:"active-manager-mark-bottom-name"},[e._v("工作负责人")])],1):e._e()],2)])},S=[],_={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,r=t/e,s=0;if(r<=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}))}}}},D=x,F=(r("6e2b"),Object(k["a"])(D,g,b,!1,null,"1def7049",null)),T=F.exports,L=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"member-list"},[r("div",{staticClass:"top-title"},[e._v("选择成员")]),e._m(0),r("div",{staticClass:"hori-line"}),r("div",{staticClass:"content-wrap"},[r("div",{staticClass:"people-wrap"},[r("el-collapse",{model:{value:e.activeCompanyName,callback:function(t){e.activeCompanyName=t},expression:"activeCompanyName"}},e._l(e.treeList,(function(t){return r("el-collapse-item",{key:t.id,attrs:{name:t.id}},[r("template",{slot:"title"},[r("span",{staticClass:"company-title"},[e._v(e._s(t.label))])]),t.hasChildren?r("el-collapse",{model:{value:e.activeDeptNameList,callback:function(t){e.activeDeptNameList=t},expression:"activeDeptNameList"}},e._l(t.children,(function(t){return r("el-collapse-item",{directives:[{name:"show",rawName:"v-show",value:t.hasChildren,expression:"deptNode.hasChildren"}],key:t.id,attrs:{name:t.id}},[r("template",{staticClass:"dept-entry",slot:"title"},[r("span",{staticClass:"dept-name"},[e._v(e._s(t.label))]),r("div",{staticClass:"check-all-wrap",on:{click:function(r){return r.stopPropagation(),e.toggleAllDept(t)}}},[r("div",{staticClass:"checkbox",class:{checked:e.deptNodeSelectedMap[t.id]}}),r("span",[e._v("全选")])])]),e._l(t.children,(function(t){return r("div",{key:t.id,staticClass:"user-info-item",attrs:{label:t.label},on:{click:function(r){return r.stopPropagation(),e.toggleMember(t)}}},[r("img",{staticClass:"avatar-img",attrs:{src:e._f("resolveAvator")(t.data.headImgUrl),alt:""}}),r("span",{staticClass:"user-info-name"},[e._v(e._s(t.label))]),r("div",{staticClass:"checkbox",class:{checked:e.isSelected(t.id)}})])}))],2)})),1):r("div",{staticClass:"empty-people-tips"},[e._v("暂未添加人员")])],2)})),1)],1)])])},$=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search-bar"},[r("i",{staticClass:"search-icon"}),r("input",{staticClass:"search-input",attrs:{placeholder:"搜索功能正在内测中",disabled:""}})])}],A={data:function(){var e=this.treeList[0],t=e?[e.id]:[],r=e?e.mapChildren((function(e){return e.id})):[];return this.clacAllSelected(),{ischeckAll:!1,activeCompanyName:t,activeDeptNameList:r}},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(r){r.mapChildren((function(r){var s=e.isChildrenAllSelected(r);s&&(t[r.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()}}}},R=A,B=(r("e040"),r("c8e2"),Object(k["a"])(R,L,$,!1,null,"58e87d7b",null)),W=B.exports,V=r("9e5b"),H=r("93d6"),q=r("2ef0"),z=(r("a623"),r("ade3")),K=r("d4ec");function Y(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:ee;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}(),re=r("a06e"),se=r("b0f9"),ie=r("5a0c"),ne=r.n(ie),ae=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.isTemNest?r("div",{staticClass:"template_nest"},[r("top-header",{staticClass:"set-header-position header-wrap",class:{"header-bottom-shadow":e.isNestTempScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"取消",onBackBtnClick:e.enterDistWork,title:"为“"+e.nestNodeFolder.folderName+"”选择互链项目"},scopedSlots:e._u([{key:"right",fn:function(){return[r("el-button",{attrs:{type:"primary",size:"small",disabled:!e.selectedProjectId},on:{click:function(t){return t.stopPropagation(),e.confirmProject(t)}}},[e._v("选定项目")])]},proxy:!0}],null,!1,4194601008)}),r("div",{ref:"nestTemplateDesc",staticClass:"template_select_content"},[r("div",{staticClass:"template_connect"},[e._m(0),e._l(e.linkableProjectList,(function(t){return r("div",{key:t.projId,staticClass:"template_info",on:{click:function(r){e.selectedProjectId=t.projId}}},[r("div",{staticClass:"check_box",class:{checked:e.selectedProjectId==t.projId}},[r("i",{staticClass:"el-icon-check"})]),r("span",{staticClass:"template_info_name"},[e._v(e._s(t.projName))]),r("span",{staticClass:"template_info_extra"},[e._v("模板: "+e._s(t.templateName))])])}))],2)])],1):e._e()])},oe=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"template_info_title"},[r("span",[e._v("我的项目")])])}],ce={components:{TopHeader:f["a"]},props:{nestNodeFolder:Object,isTemNestInProp:{type:Boolean,default:!1}},data:function(){return{companyId:sessionStorage.companyId,userId:sessionStorage.userId,linkableProjectList:[],selectedProjectId:void 0}},methods:{enterDistWork:function(){this.$emit("enterDistWork")},addNestTemplate:function(){var e=this;this.$confirm("重要提示:一旦确定模板并创建后,您将无法删除模板。","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"error"}).then(Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,se["p"](e.selectTemplate.TemplateId);case 2:return r=t.sent,s=r.Data,i={ProjId:e.nestNodeFolder.projId,NodeId:e.nestNodeFolder.nodeId,FolderId:e.nestNodeFolder.id,TemplateId:e.nestNodeFolder.templateId,NestJsmindData:s},t.next=7,se["b"](i);case 7:n=t.sent,0===n.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},confirmProject:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(e.nestNodeFolder),t.next=3,e.$fetchApi("project/linkProject",{projectId:e.selectedProjectId,folderId:e.nestNodeFolder.id});case 3:if(r=t.sent,Object(J["c"])(r),0===r.Code){t.next=7;break}return t.abrupt("return");case 7:Q["d"].success("互链成功"),e.$emit("enterDistWork");case 9:case"end":return t.stop()}}),t)})))()},fetchLinkableProjectList:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$fetchApi("project/queryProjectListByProjectManagerUserId",{userId:e.userId});case 2:if(r=t.sent,Object(J["c"])(r),e.linkableProjectList=[],0===r.Code){t.next=7;break}return t.abrupt("return");case 7:e.linkableProjectList=(r.Data||[]).map(Q["b"]);case 8:case"end":return t.stop()}}),t)})))()}},watch:{isTemNestInProp:{handler:function(e){this.isTemNest=e,e&&this.fetchLinkableProjectList()},immediate:!0}}},le=ce,de=(r("2fff"),Object(k["a"])(le,ae,oe,!1,null,"3f290ff7",null)),ue=de.exports,pe=r("de58"),he={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:[],projectNameEditFlag:!1,editingProjectName:"",treeNode:null,nestProjectInfo:{},nestProjectModalVisible:!1}},components:{AppHeader:v["a"],TopHeader:f["a"],PlainFolderList:T,PeopleItem:E,PersonnelList:W,TempSelectedUserList:M,FileUploader:V["a"],LinkProject:ue,NodesViewer:pe["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))},watch:{isEnterEdit:function(e){e&&(this.projectNameEditFlag=!1)},projectNameEditFlag:function(e){e&&(this.editingProjectName=this.nowProject.ProjName)},nestProjectModalVisible:function(e){e||(this.nestProjectInfo={})}},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),this.$bus.$on("checkNestProject",this.checkNestProject)},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),this.$bus.$off("checkNestProject",this.checkNestProject)},methods:{showBackground:function(e){var t=this.$options.filters["resolveImg"],r=t(e);return{background:"center/cover no-repeat url(".concat(r,")")}},handleShowDistWorkPage:function(){this.isShowDistWorkPage=!0},handleEditTemplate:function(){this.isEnterEditPropValue=!this.isEnterEditPropValue,this.isEnterEditPropValue||(this.originPropListCopy=this.listProjProp,this.$notify({type:["success"],message:"修改模板概况成功"}))},checkNestProject:function(e){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function r(){var s,i,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return s=e.nestProjectId,t.nestNodeFolder=e,t.nestProjectModalVisible=!0,r.next=5,re["c"](s);case 5:if(i=r.sent,Object(J["c"])(i),0===i.Code){r.next=9;break}return r.abrupt("return");case 9:n=Object(Q["b"])(i.Data||{}),n.projCreateTime=ne()(n.projCreateTime).format("YYYY/MM/DD"),t.nestProjectInfo=n;case 12:case"end":return r.stop()}}),r)})))()},severNestProject:function(){var e=this,t=this.nestNodeFolder;this.$confirm("解除互链不会影响双方项目的文件数据,解除后将无法进行文件交付,确定解除吗?",{confirmButtonText:"解除互链关系",cancelButtonText:"取消",type:"danger"}).then(Object(h["a"])(regeneratorRuntime.mark((function r(){var s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.$fetchApi("project/deleteProjectLink",{folderId:t.id,nestProjectId:t.nestProjectId});case 2:if(s=r.sent,Object(J["c"])(s),0===s.Code){r.next=6;break}return r.abrupt("return");case 6:Q["d"].success("互链项目已移除"),e.nestProjectModalVisible=!1,e.fetchProjectDetail();case 9:case"end":return r.stop()}}),r)}))))},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(h["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(h["a"])(regeneratorRuntime.mark((function r(){var s,i,n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return a=function(e,t){e.forEach(function(){var e=Object(h["a"])(regeneratorRuntime.mark((function e(r){var s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,se["l"](r.TemplateId);case 2:s=e.sent,i=s.Data||[],i.length>0&&t.push.apply(t,Object(p["a"])(i));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},r.next=3,se["l"](e);case 3:s=r.sent,i=s.Data||[],n=Object(p["a"])(s.Data),a(i,n),t.nestNodeList=n;case 8:case"end":return r.stop()}}),r)})))()},projInfo:function(e){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function r(){var s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,re["c"](e);case 2:if(s=r.sent,-1!=s.Code){r.next=6;break}return t.$notify({type:["error"],message:"项目概况信息查询失败"}),r.abrupt("return");case 6:t.nowProject=s.Data||{},t.nowProject.ProjCreateTime=ne()(t.nowProject.ProjCreateTime).format("YYYY/MM/DD"),t.nowProject=Object(u["a"])({},t.nowProject),t.listProjProp=s.Data.CustomProps||[],t.listProjProp=Object(p["a"])(t.listProjProp),t.originPropListCopy=Object(q["cloneDeep"])(t.listProjProp),t.coverSrc=s.Data.ShowImgUrl;case 13:case"end":return r.stop()}}),r)})))()},renameProjectName:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.editingProjectName,s={ProjId:sessionStorage.projId,ProjName:r,ImgUrl:e.coverSrc},t.next=4,Object(re["b"])(s);case 4:if(i=t.sent,-1!=i.Code){t.next=8;break}return e.$notify({message:"修改失败",type:"success"}),t.abrupt("return");case 8:e.projectNameEditFlag=!1,e.nowProject.ProjName=r;case 10:case"end":return t.stop()}}),t)})))()},coverUploadSuccess:function(e){var t=this;return Object(h["a"])(regeneratorRuntime.mark((function r(){var s,i,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return s=Object(m["c"])(e.ossUrl),t.coverSrc=s,i={ProjId:sessionStorage.projId,ImgUrl:t.coverSrc,ProjName:t.nowProject.ProjName},r.next=5,Object(re["b"])(i);case 5:n=r.sent,-1==n.Code&&t.$notify({message:"封面修改失败。",type:"success"});case 7:case"end":return r.stop()}}),r)})))()},setSystemCoverRandom:function(){},returnToDistWorkClick:function(){var e=this;this.isEnterEditPropValue?this.$confirm("是否保存当前项目的模板概况信息","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(h["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(h["a"])(regeneratorRuntime.mark((function r(){var s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(H["f"])(e);case 3:return r.sent,r.next=6,Object(H["f"])(sessionStorage.createUserID);case 6:s=r.sent,t.curProjCreatePeop=s.cnName+" 指派了新工作,请完成工作指派",1==sessionStorage.allocated&&(t.curProjCreatePeop="项目管理"),r.next=14;break;case 11:r.prev=11,r.t0=r["catch"](0),console.log(r.t0);case 14:case"end":return r.stop()}}),r,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 r=this.listManagerUser.map((function(e){return e.id}))||[];!r.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(r){r.folderPerm=r.id===e.id?2:1,2===r.folderPerm&&t.InitData&&t.InitData.manageUser&&t.InitData.manageUser.splice(0,1,r)}))}},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 r=t.listUser.find((function(t){return t.id===e.currUser.id}));r&&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 r=this,s=Object(p["a"])(this.selectedMemberKeys);e.forEach((function(e){var i=Object(q["cloneDeep"])(e.data),n=function(){r.checkDeptUserName(i,t),i.folderPerm=1,1==r.selectedUser.length&&1==t&&(i.folderPerm=2)};if(t){if(s.find((function(t){return t===e.id})))return;return s.push(e.id),void n()}if(r.isAllowedDelete(i))if(r.isEditProjManager&&i.id===r.currUser.id)r.$notify({message:"不可以移除项目创建者。",type:"warning",offset:100,duration:5e3});else{if(s=s.filter((function(e){return i.id!==e})),r.activeFolder&&r.activeFolder.manageUser.find((function(e){return e.id===i.id})))return r.removeManageUser(i),void r.activeFolder.manageUser.splice(0);if(r.isEditProjManager){var a=r.listManagerUser.findIndex((function(e){return e.id===i.id}));a>-1&&r.listManagerUser.splice(a,1)}n()}else r.$notify({message:"不能移除自己。",type:"warning",offset:100,duration:5e3})})),this.selectedMemberKeys=s},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(r){r.length>0&&r.forEach((function(r){e.push(r),r.listChildren&&r.listChildren.length>0&&t(r.listChildren)}))}t(this.oldFolderList),this.oldPlainFolderList=e,this.lastFolderId=this.oldPlainFolderList[this.oldPlainFolderList.length-1].id},fetchProjectDetail:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i,n,a,o,c,l,u,p,h,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.$store.state.currentCompanyId,t.next=3,Promise.all([e.$fetchApi("folder/queryNodeFolderListByProjectId",{projectId:sessionStorage.projId}),X(r)]);case 3:s=t.sent,i=Object(d["a"])(s,2),n=i[0],a=i[1],o=a.treeList,c=a.memberMap,l=n.Data||{},u=l.folder,p=l.manager,e.memberTree=o,e.listManagerUser=p.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(q["cloneDeep"])(e.listManagerUser),h=Object(q["uniqBy"])(u,"Id"),m=me(h,c),e.treeNode=fe(h),e.getfolderPerm(m),e.listNewFolder=m,e.oldFolderList=Object(q["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList(),e.getAllChildrenLists(e.listNewFolder,e.userId,e.allChildrenLists);case 22:case"end":return t.stop()}}),t)})))()},getChildren:function(e,t){var r=this;e.forEach((function(e){t.push(e),e.listChildren.length>0&&r.getChildren(e.listChildren,t)}))},getAllChildrenLists:function(e,t,r){var s=this;e.forEach((function(e){e.manageUser.length>0&&e.manageUser[0].id==t&&e.listChildren&&e.listChildren.length>0&&s.getChildren(e.listChildren,r)}))},createFolders:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){var r,s,i,n,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 n=[];t.ManagerUserId=e.manageUser.length>0?e.manageUser.map((function(e){return n.push(e.id),e.id})).join(","):"";var a=e.listUser.filter((function(e){return!n.includes(e.id)}));t.GeneralId=e.listUser.length>0?a.map((function(e){return e.id})).join(","):"";var o=s.find((function(t){return t.id==e.id})),c=o.manageUser.length>0?o.manageUser[0].id:"";t.OldManager=c,t.OldGeneralId=o.listUser.length>0?o.listUser.filter((function(e){return e.id!==c})).map((function(e){return e.id})).join(","):"",r.Work.push(t),i(e.listChildren)}))},r={Id:sessionStorage.createUserID,ProjId:sessionStorage.projId,ProjectManagerId:"",OldProjectManagerId:e.oldListManagerUser.map((function(e){return e.id})).join(","),Work:[]},r.ProjectManagerId=e.listManagerUser.length>0?e.listManagerUser.map((function(e){if(e.id!==sessionStorage.createUserID)return e.id})).join(","):"",s=e.oldPlainFolderList,i(e.listNewFolder),t.next=7,Object(re["a"])(r);case 7:n=t.sent,a=e,0===n.Code?(e.isDistworkSuccess=!0,e.oldFolderList=Object(q["cloneDeep"])(e.listNewFolder),e.getPlainOldFolderList()):(e.isDistworkSuccess=!1,a.$notify({message:"服务器异常,工作指派失败。",type:["error"],duration:5e3}));case 10:case"end":return t.stop()}}),t)})))()}}};function me(e,t){var r=l(e),s=r[0],i=(r[1],r.slice(2)),n=s.Id,a=[],o={};return i.forEach((function(e){var r=Object(Q["b"])(e);o[r.id]=r,r.listChildren=[],r.listUser=r.oldGeneralId.split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(u["a"])({},t[e].data)})),r.manageUser=("0"===r.oldManager?"":r.oldManager).split(",").filter((function(e){return e&&t[e]})).map((function(e){return Object(u["a"])({},t[e].data)}));var s=r.superId;if(s!==n){var i=o[s];i&&i.listChildren.push(r)}else a.push(r)})),a}function fe(e){var t=null,r={};return e.forEach((function(e){if("0"!==e.NodeId){var s=e.LevelId,i={id:e.Id,levelId:s,topic:e.FolderName};if(r[i.levelId]=i,i.levelId===e.FirstFolderId)return t=i,void(t.levelId=t.id);var n=e.LevelId.split("_").slice(0,-1).join("_"),a=r[n];a&&(a.children||(a.children=[]),a.children.push(i))}})),t}var ve=he,ge=(r("dc0c"),r("685f"),Object(k["a"])(ve,s,i,!1,null,"551504ef",null));t["default"]=ge.exports},"5a34":function(e,t,r){var s=r("44e7");e.exports=function(e){if(s(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5be0":function(e,t,r){},"685f":function(e,t,r){"use strict";var s=r("14b7"),i=r.n(s);i.a},"6b3d":function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{style:{width:e.size+"px",height:e.size+"px"}},[r("svg",{attrs:{width:"100%",height:"100%",viewBox:"0 0 100 100"}},[r("circle",{attrs:{cx:"50",cy:"56",r:"39","stroke-width":"10",stroke:e.color,fill:"transparent"}}),r("circle",{attrs:{cx:"50",cy:"16",r:"16",fill:e.color}}),r("circle",{attrs:{cx:"84",cy:"84",r:"16",fill:e.color}}),r("circle",{attrs:{cx:"16",cy:"84",r:"16",fill:e.color}})])])},i=[],n=(r("a9e3"),{props:{color:String,size:Number}}),a=n,o=(r("f94d"),r("2877")),c=Object(o["a"])(a,s,i,!1,null,"dd2d6402",null);t["a"]=c.exports},"6dcf":function(e,t,r){"use strict";var s=r("5be0"),i=r.n(s);i.a},"6e2b":function(e,t,r){"use strict";var s=r("a145"),i=r.n(s);i.a},"7e58":function(e,t,r){},8015:function(e,t,r){"use strict";var s=r("e3e1"),i=r.n(s);i.a},"8a37":function(e,t,r){},"8ed8":function(e,t,r){},a06e:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return u})),r.d(t,"e",(function(){return h}));r("d81d"),r("96cf");var s=r("1da1"),i=r("b775");r("3de1");function n(e){return a.apply(this,arguments)}function a(){return a=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function l(e){return d.apply(this,arguments)}function d(){return d=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function u(e){return p.apply(this,arguments)}function p(){return p=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));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(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}},a145:function(e,t,r){},a623:function(e,t,r){"use strict";var s=r("23e7"),i=r("b727").every,n=r("a640"),a=r("ae40"),o=n("every"),c=a("every");s({target:"Array",proto:!0,forced:!o||!c},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},ab13:function(e,t,r){var s=r("b622"),i=s("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[i]=!1,"/./"[e](t)}catch(s){}}return!1}},b0f9:function(e,t,r){"use strict";r.d(t,"o",(function(){return n})),r.d(t,"m",(function(){return o})),r.d(t,"t",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"n",(function(){return h})),r.d(t,"q",(function(){return f})),r.d(t,"f",(function(){return g})),r.d(t,"s",(function(){return j})),r.d(t,"l",(function(){return C})),r.d(t,"k",(function(){return k})),r.d(t,"b",(function(){return E})),r.d(t,"p",(function(){return U})),r.d(t,"j",(function(){return _})),r.d(t,"h",(function(){return O})),r.d(t,"i",(function(){return x})),r.d(t,"a",(function(){return F})),r.d(t,"g",(function(){return L})),r.d(t,"c",(function(){return A})),r.d(t,"e",(function(){return B})),r.d(t,"r",(function(){return V}));r("4de4"),r("96cf");var s=r("1da1"),i=r("b775");function n(){return a.apply(this,arguments)}function a(){return a=Object(s["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)}))),a.apply(this,arguments)}function o(e){return c.apply(this,arguments)}function c(){return c=Object(s["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 l(e){return d.apply(this,arguments)}function d(){return d=Object(s["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)}))),d.apply(this,arguments)}function u(e){return p.apply(this,arguments)}function p(){return p=Object(s["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(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function f(e){return v.apply(this,arguments)}function v(){return v=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return b=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function j(e){return w.apply(this,arguments)}function w(){return w=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function C(e){return P.apply(this,arguments)}function P(){return P=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}function k(e){return y.apply(this,arguments)}function y(){return y=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryNestTemplateIdByProjectId",{projectId:t});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function E(e){return I.apply(this,arguments)}function I(){return I=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function U(e){return S.apply(this,arguments)}function S(){return S=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function _(e,t,r){return N.apply(this,arguments)}function N(){return N=Object(s["a"])(regeneratorRuntime.mark((function e(t,r,s){var n;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:r,nestedNodeId:s});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),N.apply(this,arguments)}function O(e){return M.apply(this,arguments)}function M(){return M=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function x(e,t){return D.apply(this,arguments)}function D(){return D=Object(s["a"])(regeneratorRuntime.mark((function e(t,r){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,companyId:r?void 0:"0"});case 2:return s=e.sent,r&&s.Data&&(s.Data=s.Data.filter((function(e){return"0"===e.CompanyId||e.CompanyId===r}))),e.abrupt("return",Object(i["c"])(s));case 5:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function F(e){return T.apply(this,arguments)}function T(){return T=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function L(e){return $.apply(this,arguments)}function $(){return $=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function A(e){return R.apply(this,arguments)}function R(){return R=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function B(e){return W.apply(this,arguments)}function W(){return W=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function V(e){return H.apply(this,arguments)}function H(){return H=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;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 r=e.sent,e.abrupt("return",Object(i["c"])(r));case 4:case"end":return e.stop()}}),e)}))),H.apply(this,arguments)}},b18b:function(e,t,r){},b1f3:function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[r("div",{staticClass:"app-header-content"},[r("div",{staticClass:"app-header-content-left"},[e._t("left",[r("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()}}}),r("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),r("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?r("user-center"):e._e()],2)]),r("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},i=[],n=r("1392"),a={components:{UserCenter:n["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)}},o=a,c=(r("6dcf"),r("2877")),l=Object(c["a"])(o,s,i,!1,null,"373b66dc",null);t["a"]=l.exports},c740:function(e,t,r){"use strict";var s=r("23e7"),i=r("b727").findIndex,n=r("44d2"),a=r("ae40"),o="findIndex",c=!0,l=a(o);o in[]&&Array(1)[o]((function(){c=!1})),s({target:"Array",proto:!0,forced:c||!l},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(o)},c8e2:function(e,t,r){"use strict";var s=r("8ed8"),i=r.n(s);i.a},caad:function(e,t,r){"use strict";var s=r("23e7"),i=r("4d64").includes,n=r("44d2"),a=r("ae40"),o=a("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!o},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("includes")},d4ec:function(e,t,r){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return s}))},db90:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("d3b7"),r("3ca3"),r("ddb0");function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},dc0c:function(e,t,r){"use strict";var s=r("b18b"),i=r.n(s);i.a},de58:function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("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)}}})},i=[],n=(r("fb6a"),function(){return"xmind_".concat("".concat(Math.random()).slice(2,8))}),a=window.jsMind,o={props:{node:{type:Object,default:null},width:{type:String,default:""},height:{type:String,default:""}},data:function(){return{domId:n(),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 a(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){if(e.ctrlKey){e.returnValue=!1;var t=-e.wheelDelta||e.detail,r=this.getMindInnerDom();if(r){var s=this.zoom+(t>0?-.1:.1),i=Math.max(.2,Math.min(s,1.8));this.zoom=i,r.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)}}},c=o,l=r("2877"),d=Object(l["a"])(c,s,i,!1,null,"2aa6cc14",null);t["a"]=d.exports},e040:function(e,t,r){"use strict";var s=r("30c5"),i=r.n(s);i.a},e3e1:function(e,t,r){},f94d:function(e,t,r){"use strict";var s=r("8a37"),i=r.n(s);i.a},f96e:function(e,t,r){"use strict";var s=r("01a8");r.d(t,"a",(function(){return s["a"]}))}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-59bb5b90.cb8e1d44.js b/dist/static/js/chunk-59bb5b90.0752f2f1.js similarity index 100% rename from dist/static/js/chunk-59bb5b90.cb8e1d44.js rename to dist/static/js/chunk-59bb5b90.0752f2f1.js diff --git a/dist/static/js/chunk-63d4ab7f.42e7d233.js b/dist/static/js/chunk-63d4ab7f.ea58ad54.js similarity index 100% rename from dist/static/js/chunk-63d4ab7f.42e7d233.js rename to dist/static/js/chunk-63d4ab7f.ea58ad54.js diff --git a/dist/static/js/chunk-695cbab1.1505c8b5.js b/dist/static/js/chunk-695cbab1.c30fd6f1.js similarity index 100% rename from dist/static/js/chunk-695cbab1.1505c8b5.js rename to dist/static/js/chunk-695cbab1.c30fd6f1.js diff --git a/dist/static/js/chunk-6d72e803.7aa80690.js b/dist/static/js/chunk-6d72e803.6a9ade2e.js similarity index 100% rename from dist/static/js/chunk-6d72e803.7aa80690.js rename to dist/static/js/chunk-6d72e803.6a9ade2e.js diff --git a/dist/static/js/chunk-6f87105f.96929644.js b/dist/static/js/chunk-6f87105f.064693e6.js similarity index 100% rename from dist/static/js/chunk-6f87105f.96929644.js rename to dist/static/js/chunk-6f87105f.064693e6.js diff --git a/dist/static/js/chunk-78390ace.3d920185.js b/dist/static/js/chunk-78390ace.c2dfa981.js similarity index 100% rename from dist/static/js/chunk-78390ace.3d920185.js rename to dist/static/js/chunk-78390ace.c2dfa981.js diff --git a/dist/static/js/chunk-7b356701.18dfd5d6.js b/dist/static/js/chunk-7b356701.a93f9abf.js similarity index 100% rename from dist/static/js/chunk-7b356701.18dfd5d6.js rename to dist/static/js/chunk-7b356701.a93f9abf.js diff --git a/dist/static/js/chunk-7d913a8a.17e4b1aa.js b/dist/static/js/chunk-7d913a8a.7b5f2374.js similarity index 100% rename from dist/static/js/chunk-7d913a8a.17e4b1aa.js rename to dist/static/js/chunk-7d913a8a.7b5f2374.js diff --git a/dist/static/js/chunk-7db1403b.e43e9553.js b/dist/static/js/chunk-7db1403b.0e9842b0.js similarity index 100% rename from dist/static/js/chunk-7db1403b.e43e9553.js rename to dist/static/js/chunk-7db1403b.0e9842b0.js diff --git a/dist/static/js/chunk-7e46145d.5f0a2b29.js b/dist/static/js/chunk-7e46145d.c5e8cc95.js similarity index 100% rename from dist/static/js/chunk-7e46145d.5f0a2b29.js rename to dist/static/js/chunk-7e46145d.c5e8cc95.js diff --git a/dist/static/js/chunk-84f66ece.f0cc738d.js b/dist/static/js/chunk-84f66ece.74b6d6a3.js similarity index 100% rename from dist/static/js/chunk-84f66ece.f0cc738d.js rename to dist/static/js/chunk-84f66ece.74b6d6a3.js diff --git a/dist/static/js/chunk-873c7c58.6b63b39d.js b/dist/static/js/chunk-873c7c58.f63445b7.js similarity index 100% rename from dist/static/js/chunk-873c7c58.6b63b39d.js rename to dist/static/js/chunk-873c7c58.f63445b7.js diff --git a/dist/static/js/chunk-94641ab6.4b651997.js b/dist/static/js/chunk-94641ab6.f1787c72.js similarity index 100% rename from dist/static/js/chunk-94641ab6.4b651997.js rename to dist/static/js/chunk-94641ab6.f1787c72.js diff --git a/dist/static/js/chunk-97877ad2.9f7a0aef.js b/dist/static/js/chunk-97877ad2.30d43263.js similarity index 100% rename from dist/static/js/chunk-97877ad2.9f7a0aef.js rename to dist/static/js/chunk-97877ad2.30d43263.js diff --git a/dist/static/js/chunk-d1bd5818.985573e0.js b/dist/static/js/chunk-d1bd5818.eb22a592.js similarity index 100% rename from dist/static/js/chunk-d1bd5818.985573e0.js rename to dist/static/js/chunk-d1bd5818.eb22a592.js diff --git a/dist/static/js/chunk-d4bc3576.0429cee2.js b/dist/static/js/chunk-d4bc3576.9ac0d4e7.js similarity index 100% rename from dist/static/js/chunk-d4bc3576.0429cee2.js rename to dist/static/js/chunk-d4bc3576.9ac0d4e7.js diff --git a/dist/static/js/chunk-d4e6d2d8.7bca80b0.js b/dist/static/js/chunk-d4e6d2d8.4128db4b.js similarity index 100% rename from dist/static/js/chunk-d4e6d2d8.7bca80b0.js rename to dist/static/js/chunk-d4e6d2d8.4128db4b.js diff --git a/dist/static/js/chunk-ec554b20.e6c74fe5.js b/dist/static/js/chunk-ec554b20.83dba556.js similarity index 100% rename from dist/static/js/chunk-ec554b20.e6c74fe5.js rename to dist/static/js/chunk-ec554b20.83dba556.js diff --git a/dist/static/js/chunk-edf65c70.e805da3a.js b/dist/static/js/chunk-edf65c70.e805da3a.js new file mode 100644 index 00000000..042f8bbf --- /dev/null +++ b/dist/static/js/chunk-edf65c70.e805da3a.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-edf65c70"],{"076e":function(e,t,n){},"15fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("a4d3"),n("c975"),n("b64b");function r(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}function a(e,t){if(null==e)return{};var n,a,i=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},"45fc":function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").some,i=n("a640"),s=n("ae40"),o=i("some"),c=s("some");r({target:"Array",proto:!0,forced:!o||!c},{some:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"4c3b":function(e,t,n){"use strict";var r=n("f111"),a=n.n(r);a.a},"6c6e":function(e,t,n){"use strict";var r=n("076e"),a=n.n(r);a.a},"74d3":function(e,t,n){},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 h})),n.d(t,"f",(function(){return v})),n.d(t,"s",(function(){return g})),n.d(t,"l",(function(){return w})),n.d(t,"k",(function(){return I})),n.d(t,"b",(function(){return j})),n.d(t,"p",(function(){return k})),n.d(t,"j",(function(){return T})),n.d(t,"h",(function(){return M})),n.d(t,"i",(function(){return D})),n.d(t,"a",(function(){return P})),n.d(t,"g",(function(){return $})),n.d(t,"c",(function(){return z})),n.d(t,"e",(function(){return B})),n.d(t,"r",(function(){return A}));n("4de4"),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 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 h(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/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function v(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 g(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/updateTemplate",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 w(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 I(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/queryNestTemplateIdByProjectId",{projectId: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 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 k(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/queryTemplateNodeByTemplateId",{templateId: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 T(e,t,n){return R.apply(this,arguments)}function R(){return R=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)}))),R.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/fileExchange",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 D(e,t){return E.apply(this,arguments)}function E(){return E=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"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t,companyId:n?void 0:"0"});case 2:return r=e.sent,n&&r.Data&&(r.Data=r.Data.filter((function(e){return"0"===e.CompanyId||e.CompanyId===n}))),e.abrupt("return",Object(a["c"])(r));case 5:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function P(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/addTemplateNodeModelFile",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 $(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 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/createNestedRelevance",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 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/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 A(e){return U.apply(this,arguments)}function U(){return U=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)}))),U.apply(this,arguments)}},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)}},ccf7: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_detail"},[n("app-header",{attrs:{theme:"basis",showBackBtn:!0,backBtnTitle:"返回"},scopedSlots:e._u([{key:"center",fn:function(){return[e._v(e._s(e.templateName))]},proxy:!0}])}),n("main",{staticClass:"template_detail_main"},[n("div",{staticClass:"template_detail_main_left"},[n("div",{staticClass:"nav_subtitle"},[e._v("模板概况")]),n("div",{staticClass:"nav_list_group"},[n("div",{staticClass:"nav_list_item",class:{item_active:"template"===e.viewType},on:{click:function(t){t.stopPropagation(),e.viewType="template"}}},[e._v("模板结构")]),n("div",{staticClass:"nav_list_item",class:{item_active:"info"===e.viewType},on:{click:function(t){t.stopPropagation(),e.viewType="info"}}},[e._v("模板信息")]),n("div",{staticClass:"nav_list_item",class:{item_active:"matrix"===e.viewType},on:{click:function(t){t.stopPropagation(),e.viewType="matrix"}}},[e._v("文件交换")])]),n("div",{staticClass:"nav_subtitle"},[e._v("细化")]),n("div",{staticClass:"nav_list_group"},[n("div",{staticClass:"nav_list_item",class:{item_active:"files"===e.viewType},on:{click:function(t){t.stopPropagation(),e.viewType="files"}}},[e._v("管理样板文件")])]),n("div",{staticClass:"board"},[n("div",{staticClass:"board-item"},[n("span",[e._v("模板使用数")]),n("span",[e._v(e._s(0===e.templateApplyCount||e.templateApplyCount?e.templateApplyCount:""))])]),n("div",{staticClass:"board-item"},[n("span",[e._v("启用模板")]),n("el-switch",{attrs:{value:0===e.templateInfo.disable},on:{change:function(t){return e.toggleTemplateState("disable")}}})],1),n("div",{staticClass:"board-item"},[n("span",[e._v("锁定模板")]),n("el-switch",{attrs:{value:1===e.templateInfo.locked},on:{change:function(t){return e.toggleTemplateState("locked")}}})],1)]),n("div",{staticClass:"nav_list_group bottom"},[n("div",{staticClass:"nav_list_item",on:{click:function(t){return t.stopPropagation(),e.deleteTemplate(t)}}},[e._v("删除模板"),n("i",{staticClass:"item_icon el-icon-delete-solid"})])])]),n("div",{staticClass:"template_detail_main_right"},["template"===e.viewType?n("nodes-viewer",{staticClass:"viewer",attrs:{node:e.node}}):e._e(),"info"===e.viewType?n("info",{staticClass:"content_info",attrs:{templateId:e.templateId,templateInfo:e.templateInfo},on:{"info-change":e.onInfoChange}}):e._e(),"files"===e.viewType?n("template-files",{staticClass:"content_files",attrs:{nodeList:e.plainNodeList,templateId:e.templateId,companyId:e.companyId}}):e._e(),"matrix"===e.viewType?n("matrix",{staticClass:"content_files"}):e._e()],1)])],1)},a=[],i=(n("4160"),n("d81d"),n("b0c0"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("ade3")),s=n("5530"),o=n("3835"),c=(n("96cf"),n("1da1")),u=n("01a8"),l=n("de58"),d=n("b0f9"),p=n("3de1"),m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template_info_popup"},[n("div",{staticClass:"popup_head"},[n("i",{staticClass:"popup_head_icon font_family icon-gerenshezhi"}),n("div",{staticClass:"popup_head_center"},[e._v("模板信息")]),n("div",{staticClass:"popup_head_buttons"},[e.isEdit?[n("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.modifyTemplate}},[e._v("保存")]),n("el-button",{on:{click:e.cancelEdit}},[e._v("取消")])]:n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!0}}},[e._v("编辑")])],2)]),n("el-form",{ref:"form",attrs:{model:e.formData,"label-width":"120px","label-position":"left",size:"small",rules:e.templateRules,"hide-required-asterisk":""}},[n("el-form-item",{attrs:{label:"模板名称",prop:"tempName"}},[e.isEdit?n("el-input",{attrs:{placeholder:"模板名称"},model:{value:e.formData.tempName,callback:function(t){e.$set(e.formData,"tempName",t)},expression:"formData.tempName"}}):n("span",[e._v(e._s(e.templateInfo.tempName))])],1),n("el-form-item",{attrs:{label:"行业",prop:"industry"}},[n("span",[e._v(e._s(e.mainIndustry))])]),n("el-form-item",{attrs:{label:"细分行业"}},[n("span",[e._v(e._s(e.customIndustry))])]),n("el-form-item",{attrs:{label:"介绍"}},[e.isEdit?n("el-input",{attrs:{placeholder:"请输入模板简介"},model:{value:e.formData.introduce,callback:function(t){e.$set(e.formData,"introduce",t)},expression:"formData.introduce"}}):n("span",[e._v(e._s(e.templateInfo.introduce))])],1),n("div",{staticClass:"form-subtitle"},[e._v("模板自定义字段")]),n("div",{staticClass:"divider"}),n("div",{staticClass:"properties-container"},[e._l(e.formData.properties,(function(t){return n("el-form-item",{key:t.Id,attrs:{label:"自定义字段"}},[e.isEdit?n("el-input",{staticClass:"inp-with-outside-suffix",attrs:{autofocus:""},model:{value:t.propertyName,callback:function(n){e.$set(t,"propertyName",n)},expression:"property.propertyName"}}):e._e(),e.isEdit?n("i",{staticClass:"el-icon-delete",attrs:{title:"删除"},on:{click:function(n){return e.removeProperty(t,e.formData)}}}):n("span",[e._v(e._s(t.propertyName))])],1)})),e.isEdit?n("el-form-item",{attrs:{label:"字段"}},[n("el-button",{on:{click:function(t){return e.addProperty(e.formData)}}},[e._v("新增填写项目")])],1):e._e()],2)],1)],1)},f=[],h=(n("99af"),n("4de4"),n("a15b"),n("fb6a"),n("15fd")),b=n("2ef0"),v=n("b3b1"),y={props:{templateInfo:{type:Object,default:function(){return{}}}},data:function(){return{isEdit:!1,formData:Object(b["cloneDeep"])(this.templateInfo),industryOptions:[],loading:!1,mapIndustryCodeToData:null,mapIndustryCodeToName:{},templateRules:{tempName:[{required:!0,message:"请输入模板名称",trigger:["blur","change"]}],industry:[{required:!0,message:" ",trigger:["blur","change"]}]}}},mounted:function(){this.fetchIndustryDict()},watch:{templateInfo:function(e){this.formData=Object(b["cloneDeep"])(e)}},computed:{mainIndustry:function(){var e=Object(o["a"])(this.templateInfo.industry,2),t=e[0],n=e[1],r=this.mapIndustryCodeToName;return"".concat(r[t]||""," / ").concat(r[n]||"")},customIndustry:function(){var e=this.templateInfo.customCode,t=this.mapIndustryCodeToData;if(!t)return"";if(!e||"0"===e)return"";var n=t[e],r="";if(4===n.level){var a=t[n.parentId];r="".concat(a.label," / ")}return"".concat(r).concat(n.label)}},methods:{cancelEdit:function(){this.isEdit=!1,this.formData=Object(b["cloneDeep"])(this.templateInfo)},modifyTemplate:function(){var e=this;this.$refs["form"].validate(function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(n){var r,a,i,c,u,l,m,f,b,v,y,g,_;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return");case 2:return r=e.formData,a=r.industry,i=r.properties,c=r.indLevel3,u=r.indLevel4,l=Object(h["a"])(r,["industry","properties","indLevel3","indLevel4"]),m=e.isEdit,f=m?"编辑":"创建",b=Object(o["a"])(a,2),v=b[0],y=b[1],g={ChildIndustry:[c,u].filter((function(e){return e})).join(","),Templepeoperty:i.map((function(e){return e.propertyName})).join(","),Temple:Object(s["a"])(Object(s["a"])({CompanyId:e.companyId},Object(p["b"])(l)),{},{FirstIndustryId:v,DetailIndustryId:y})},e.loading=!0,t.next=10,m?d["s"](g):d["d"](g);case 10:if(_=t.sent,e.loading=!1,0===_.Code){t.next=14;break}return t.abrupt("return");case 14:p["d"].success("模板“".concat(l.tempName,"”").concat(f,"完成。")),e.isEdit=!1,e.$emit("info-change",e.formData);case 17:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},fetchIndustryDict:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,r,a,i,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(v["a"])();case 2:n=t.sent,r={},a={},i=[],s=[],n.forEach((function(e){var t={value:e.Id,label:e.Name,level:e.Level,parentId:e.SuperId};r[t.value]=t,a[t.value]=t.label,e.Level>2||(1===e.Level?i.push(t):s.push(e))})),s.forEach((function(e){var t=r[e.Id],n=r[e.SuperId];n&&t?(n.children||(n.children=[]),n.children.push(t)):console.log("lose industry node:",e)})),e.industryOptions=i.filter((function(e){return e.children})),e.mapIndustryCodeToData=r,e.mapIndustryCodeToName=a;case 12:case"end":return t.stop()}}),t)})))()},addProperty:function(e){var t={PropertyName:"",Id:"".concat(Math.random()).slice(2,6),CreateTime:new Date};e.properties.push(t)},removeProperty:function(e,t){t.properties=t.properties.filter((function(t){return t!==e}))}}},g=y,_=(n("6c6e"),n("2877")),w=Object(_["a"])(g,m,f,!1,null,"89a8c208",null),x=w.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template_files"},[n("div",{staticClass:"template_files_left"},e._l(e.nodeList,(function(t){return n("div",{key:t.id,staticClass:"node_list_item",class:{item_active:t===e.selectedNode},on:{click:function(n){n.stopPropagation(),e.selectedNode=t}}},[e._v(" "+e._s(t.label)+" ")])})),0),n("div",{staticClass:"template_files_right"},[n("div",{staticClass:"template_files_right_title"},[e._v(" 管理样板文件 "),n("file-uploader",{attrs:{"on-success":e.uploadFileSuccess}},[n("el-button",{staticClass:"title_button"},[e._v("上传文件")])],1)],1),n("div",{staticClass:"template_files_right_list"},e._l(e.commonFileList,(function(t){return n("div",{key:t.id,staticClass:"template_files_right_list_item"},[n("div",[e._v(e._s(t.fileName))]),n("div",[e._v(e._s(t.extension))]),n("div",[e._v(e._s(e._f("resolveFileSize")(t.fileSize)))]),n("div",[n("el-button",{staticClass:"del_button",attrs:{type:"text"}},[e._v("删除")])],1)])})),0)])])},O=[],j=(n("13d5"),n("ac1f"),n("1276"),n("9e5b")),C=n("5ab9"),k={components:{FileUploader:j["a"]},props:{companyId:String,templateId:String,nodeList:Array},watch:{nodeList:function(e){this.selectedNode=e[0]},selectedNode:function(e){this.commonFileList=[],this.companyFileList=[],e&&this.fetchNodeTemplateFiles(e)}},data:function(){return{selectedNode:this.nodeList[0],commonFileList:[]}},mounted:function(){this.fetchNodeTemplateFiles(this.selectedNode)},methods:{fetchNodeTemplateFiles:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function n(){var r,a,i,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(d["i"])(e.id,t.companyId);case 2:r=n.sent,a=(r.Data||[]).reduce((function(e,n){var r=Object(p["b"])(n);return"0"===r.companyId?e[0].push(r):r.companyId===t.companyId&&e[1].push(r),e}),[[],[]]),i=Object(o["a"])(a,2),s=i[0],i[1],t.commonFileList=s;case 5:case"end":return n.stop()}}),n)})))()},uploadFileSuccess:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function n(){var r,a,i,s,o,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.selectedNode,a=Object(C["c"])(e.ossUrl),i=e.name.split("."),s=i.pop(),o={Extension:s,FileName:i.join("."),FileSize:e.size,OssUrl:a,templateNodeId:r.id,CompanyId:"0"},n.next=7,Object(d["a"])(o);case 7:if(c=n.sent,0===c.Code){n.next=10;break}return n.abrupt("return");case 10:p["d"].success("文件已上传。"),t.fetchNodeTemplateFiles(r);case 12:case"end":return n.stop()}}),n)})))()}}},N=k,T=(n("d525"),Object(_["a"])(N,I,O,!1,null,"6eab8660",null)),R=T.exports,M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"template_matrix"},[n("div",{staticClass:"template_matrix_extra"},[n("el-input",{staticClass:"search_inp",attrs:{placeholder:"矩阵搜索",size:"small","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:"fixtable template_matrix_body"},[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(a,i){return[i===r?n("td",{key:t.id+"_"+a.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(a.name)+" ")])])]):n("td",{key:t.id+"_"+a.id,class:[i%2==1&&i>r||r%2==1&&ir?"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)},L=[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(" 矩阵节点 ")])])])])}],D=(n("c975"),n("45fc"),{components:{},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(c["a"])(regeneratorRuntime.mark((function t(){var n,r,a;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,d["h"](r);case 5:if(a=t.sent,0===a.Code){t.next=8;break}return t.abrupt("return");case 8:p["d"].success("更新成功"),Object.assign(n,r);case 10:case"end":return t.stop()}}),t)})))()},getMatirxPermission:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,r,a,i,s,c,u,l,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,a=e.topNodeTemplateId,i=e.subTemplateId,n){t.next=7;break}return t.abrupt("return");case 7:return t.next=9,Promise.all([d["j"](a,n,i),d["p"](i||n)]);case 9:s=t.sent,c=Object(o["a"])(s,2),u=c[0],l=c[1],p=E(l.Data||{}),i&&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!==i,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),i=r[a];1==i.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=i,this.loading=!1},canEditUnit:function(e,t){var n=this.unitMap,r="".concat(e.id,"->").concat(t.id),a=n[r]||{Editable:!0};return a.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),a=n[r]||{};return a||(a.Id="unknow",console.error("文件交换关系对象匹配失败: 找不到".concat(r,"的交换关系"))),[a]}}}});function E(e){return P(e.children,[])}function P(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),P(e.children,t)}})),t):t}var S=D,$=(n("e529"),Object(_["a"])(S,M,L,!1,null,"08a2a166",null)),F=$.exports,z={components:{appHeader:u["a"],nodesViewer:l["a"],Info:x,TemplateFiles:R,Matrix:F},data:function(){var e=this.$route.params,t=e.id,n=e.name;return{companyId:sessionStorage.companyId,listTemplateMindTree:[],mindZoom:60,templateId:t,templateName:n,node:null,templateInfo:{},viewType:"template",plainNodeList:[],templateApplyCount:void 0}},created:function(){this.fetchTemplateNodes(),this.fetchTemplateInfo()},methods:{onInfoChange:function(e){this.templateInfo=e},fetchTemplateNodes:function(){var e=this;return Object(c["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(d["p"])(e.templateId);case 2:n=t.sent,e.node=n.Data,e.plainNodeList=q(n.Data);case 5:case"end":return t.stop()}}),t)})))()},fetchTemplateInfo:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n,r,a,i,c,u,l,m,f,h,b,v,y;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([Object(d["n"])(e.templateId),Object(d["q"])(e.templateId)]);case 2:if(n=t.sent,r=Object(o["a"])(n,2),a=r[0],i=r[1],e.templateApplyCount=i.Data,0===a.Code){t.next=9;break}return t.abrupt("return");case 9:if(c=a.Data,u=c.propertys,l=c.template,m=u.map((function(e){var t=Object(p["b"])(e);return t.id=t.id||t.propertyName,t})),f=e.templateInfo=Object(s["a"])(Object(s["a"])({},Object(p["b"])(l)),{},{properties:m,industry:[l.FirstIndustryId,l.DetailIndustryId]}),h=e.mapIndustryCodeToData,h){t.next=15;break}return t.abrupt("return");case 15:b=f.customCode,b&&"0"!==b&&(v=h[b],4===v.level?(f.indLevel4=v.label,y=h[v.parentId],f.indLevel3=y.label):f.indLevel3=v.label);case 17:case"end":return t.stop()}}),t)})))()},toggleTemplateState:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function n(){var r,a,o,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.templateInfo[e]?0:1,a={Temple:Object(s["a"])(Object(s["a"])({},Object(p["c"])(t.templateInfo)),Object(p["c"])(Object(i["a"])({},e,r)))},n.next=4,Object(d["s"])(a);case 4:if(o=n.sent,0===o.Code){n.next=7;break}return n.abrupt("return");case 7:c="disable"===e?0===r?"已启用":"已禁用":1===r?"已锁定":"已解除锁定",p["d"].success("模板".concat(c)),t.templateInfo=Object.assign({},t.templateInfo,Object(i["a"])({},e,r));case 10:case"end":return n.stop()}}),n)})))()},deleteTemplate:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(e.templateInfo),n=e.templateInfo.tempName,!(e.templateApplyCount>0)){t.next=5;break}return e.$notify({type:["error"],message:"当前有项目使用该模板 无法删除模板"}),t.abrupt("return");case 5:e.$confirm("您正在删除 ["+n+"] 模板是否继续?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(c["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(d["f"])(e.templateInfo.id);case 2:if(r=t.sent,0===r.Code){t.next=5;break}return t.abrupt("return");case 5:p["d"].success("模板“".concat(n,"”删除成功")),e.$router.go(-1);case 7:case"end":return t.stop()}}),t)}))));case 6:case"end":return t.stop()}}),t)})))()}}};function q(e){var t=[],n=function e(n){n.forEach((function(n){var r={id:n.id,label:n.topic};t.push(r),n.children&&n.children.length&&e(n.children)}))};return n(e.children||[]),t}var B=z,V=(n("4c3b"),Object(_["a"])(B,r,a,!1,null,"ceb7854a",null));t["default"]=V.exports},d525:function(e,t,n){"use strict";var r=n("f0f9"),a=n.n(r);a.a},de58:function(e,t,n){"use strict";var r=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)}}})},a=[],i=(n("fb6a"),function(){return"xmind_".concat("".concat(Math.random()).slice(2,8))}),s=window.jsMind,o={props:{node:{type:Object,default:null},width:{type:String,default:""},height:{type:String,default:""}},data:function(){return{domId:i(),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 s(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){if(e.ctrlKey){e.returnValue=!1;var t=-e.wheelDelta||e.detail,n=this.getMindInnerDom();if(n){var r=this.zoom+(t>0?-.1:.1),a=Math.max(.2,Math.min(r,1.8));this.zoom=a,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)}}},c=o,u=n("2877"),l=Object(u["a"])(c,r,a,!1,null,"2aa6cc14",null);t["a"]=l.exports},e529:function(e,t,n){"use strict";var r=n("74d3"),a=n.n(r);a.a},f0f9:function(e,t,n){},f111:function(e,t,n){}}]); \ No newline at end of file