diff --git a/public/index.html b/public/index.html index e132b0f..b2c7416 100644 --- a/public/index.html +++ b/public/index.html @@ -1 +1 @@ -Syncd 代码发布系统
\ No newline at end of file +Syncd 代码发布系统
\ No newline at end of file diff --git a/public/static/1547366781/img/login_bg.8446c9be.jpg b/public/static/1547366781/img/login_bg.8446c9be.jpg deleted file mode 100644 index 2030c71..0000000 Binary files a/public/static/1547366781/img/login_bg.8446c9be.jpg and /dev/null differ diff --git a/public/static/1547366781/js/chunk-8a7ab52a.c80c0f7a.js b/public/static/1547366781/js/chunk-8a7ab52a.c80c0f7a.js deleted file mode 100644 index f10d858..0000000 --- a/public/static/1547366781/js/chunk-8a7ab52a.c80c0f7a.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8a7ab52a"],{"214f":function(t,e,i){"use strict";var a=i("32e9"),n=i("2aba"),r=i("79e5"),o=i("be13"),s=i("2b4c");t.exports=function(t,e,i){var l=s(t),c=i(o,l,""[t]),u=c[0],d=c[1];r(function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})&&(n(String.prototype,t,u),a(RegExp.prototype,l,2==e?function(t,e){return d.call(t,this,e)}:function(t){return d.call(t,this)}))}},"28a5":function(t,e,i){i("214f")("split",2,function(t,e,a){"use strict";var n=i("aae3"),r=a,o=[].push,s="split",l="length",c="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[l]||2!="ab"[s](/(?:ab)*/)[l]||4!="."[s](/(.?)(.?)/)[l]||"."[s](/()()/)[l]>1||""[s](/.?/)[l]){var u=void 0===/()??/.exec("")[1];a=function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!n(t))return r.call(i,t,e);var a,s,d,p,g,f=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,b=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,h+"g");u||(a=new RegExp("^"+m.source+"$(?!\\s)",h));while(s=m.exec(i)){if(d=s.index+s[0][l],d>v&&(f.push(i.slice(v,s.index)),!u&&s[l]>1&&s[0].replace(a,function(){for(g=1;g1&&s.index=b))break;m[c]===s.index&&m[c]++}return v===i[l]?!p&&m.test("")||f.push(""):f.push(i.slice(v)),f[l]>b?f.slice(0,b):f}}else"0"[s](void 0,0)[l]&&(a=function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)});return[function(i,n){var r=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,r,n):a.call(String(r),i,n)},a]})},"386d":function(t,e,i){i("214f")("search",1,function(t,e,i){return[function(i){"use strict";var a=t(this),n=void 0==i?void 0:i[e];return void 0!==n?n.call(i,a):new RegExp(i)[e](String(a))},i]})},39388:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("a-card",{staticClass:"app-card",attrs:{bordered:!1}},[i("div",{staticClass:"app-btn-group"},[i("a-row",{attrs:{gutter:10}},[i("a-col",{attrs:{span:4}},[t.$root.CheckPriv(t.$root.Priv.SERVER_NEW)?i("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:t.handleOpenAddServerDialog}},[t._v("新增服务器")]):t._e()],1),i("a-col",{attrs:{span:10}}),i("a-col",{attrs:{span:4}},[i("a-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",showSearch:"",placeholder:"搜索指定集群",notFoundContent:"无集群数据",optionFilterProp:"children"},model:{value:t.search.groupId,callback:function(e){t.$set(t.search,"groupId",e)},expression:"search.groupId"}},t._l(t.dialogGroupList,function(e){return i("a-select-option",{attrs:{value:e.id}},[t._v(t._s(e.name))])}))],1),i("a-col",{attrs:{span:6}},[i("a-input-search",{attrs:{placeholder:"关键词搜索,ID、名称、IP",enterButton:""},on:{search:t.handleSearch},model:{value:t.search.keyword,callback:function(e){t.$set(t.search,"keyword",e)},expression:"search.keyword"}})],1)],1)],1),i("a-table",{attrs:{columns:t.tableColumns,dataSource:t.tableSource,pagination:t.pagination,loading:t.tableLoading},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"group_id",fn:function(e,a){return[t.groupList[e]?i("span",[t._v(t._s(t.groupList[e].name))]):i("span",[i("span",{staticClass:"app-line-through"},[t._v("已删除")])])]}},{key:"op",fn:function(e,a){return i("span",{},[t.$root.CheckPriv(t.$root.Priv.SERVER_EDIT)?i("span",{staticClass:"app-link app-op",on:{click:function(e){t.handleOpenEditServerDialog(a.id)}}},[i("a-icon",{attrs:{type:"edit"}}),t._v("编辑")],1):t._e(),t.$root.CheckPriv(t.$root.Priv.SERVER_DEL)?i("a-popconfirm",{attrs:{title:"确定要删除此服务器吗?",okText:"删除",cancelText:"取消"},on:{confirm:function(e){t.handleDeleteServer(a.id)}}},[i("span",{staticClass:"app-link app-op app-remove"},[i("a-icon",{attrs:{type:"delete"}}),t._v("删除")],1)]):t._e()],1)}}])})],1),i("a-modal",{attrs:{title:t.dialogTitle,visible:t.dialogVisible,confirmLoading:t.dialogConfirmLoading,keyboard:!1,maskClosable:!1,okText:"确定",cancelText:"取消",destroyOnClose:!0},on:{ok:t.dialogSubmit,cancel:t.dialogCancel}},[i("a-spin",{attrs:{spinning:t.dialogLoading}},[i("server-update-component",{ref:"groupUpdateRef",attrs:{"group-list":t.dialogGroupList,detail:t.dialogDetail}})],1)],1)],1)},n=[],r=(i("386d"),i("ac6a"),i("92fa")),o=i.n(r),s=(i("28a5"),i("7f7f"),i("24b4")),l={render:function(){var t=arguments[0],e=this.form,i=e.getFieldDecorator,a=(e.getFieldValue,{labelCol:{span:6},wrapperCol:{span:15}}),n=[];return this.groupList.forEach(function(e){n.push(t("a-select-option",{attrs:{value:e.id}},[e.name]))}),i("id",{initialValue:this.detail.id}),t("a-form",[t("a-form-item",o()([{props:a},{attrs:{label:"所属集群"}}]),[i("group_id",{rules:[{required:!0,message:"请选择服务器所属分组"}],initialValue:this.detail.group_id})(t("a-select",{attrs:{allowClear:!0,showSearch:!0,placeholder:"支持关键词搜索",notFoundContent:"无分组数据",optionFilterProp:"children"}},[n]))]),t("a-form-item",o()([{props:a},{attrs:{label:"服务器名称"}}]),[i("name",{rules:[{required:!0,message:"服务器名称不能为空"}],initialValue:this.detail.name})(t("a-input",{attrs:{autocomplete:"off",placeholder:"请输入服务器名称"}}))]),t("a-form-item",o()([{props:a},{attrs:{label:"IP"}}]),[i("ip",{rules:[{required:!0,message:"服务器IP不能为空"},{validator:function(t,e,i){if(e){var a=e.split(".");4!=a.length&&i("请输入有效ip地址"),a.forEach(function(t){var e=parseInt(t);isNaN(e)&&i("请输入有效ip地址"),(e<0||e>255)&&i("请输入有效ip地址")}),i()}else i("请输入ip地址")}}],initialValue:this.detail.ip})(t("a-input",{attrs:{autocomplete:"off",placeholder:"请输入服务器IP"}}))]),t("a-form-item",o()([{props:a},{attrs:{label:"ssh端口"}}]),[i("ssh_port",{rules:[{required:!0,type:"integer",min:1,max:65535,message:"请输入正确ssh端口号,1-65535之间的数字"}],initialValue:this.detail.ssh_port,normalize:function(t){var e=parseInt(t);return isNaN(e)?t:e}})(t("a-input",{attrs:{autocomplete:"off",placeholder:"请输入ssh端口"}}))])])},props:{detail:{default:function(){return{}},type:Object},groupList:{default:function(){return[]},type:Array}}},c=s["Form"].create()(l),u=i("aa22"),d={data:function(){return{tableColumns:[{dataIndex:"id",title:"ID",width:"6%"},{dataIndex:"name",title:"名称"},{dataIndex:"group_id",title:"集群",width:"20%",scopedSlots:{customRender:"group_id"}},{dataIndex:"ip",title:"IP",width:"15%"},{dataIndex:"ssh_port",title:"SSH Port",width:"10%"},{dataIndex:"op",title:"操作",width:"20%",align:"right",scopedSlots:{customRender:"op"}}],tableSource:[],pagination:{pageSize:10,current:1,total:0},tableLoading:!1,dialogTitle:"",dialogVisible:!1,dialogConfirmLoading:!1,dialogDetail:{},dialogGroupList:[],dialogLoading:!1,search:{keyword:"",groupId:void 0}}},components:{ServerUpdateComponent:c},computed:{groupList:function(){var t={};return this.dialogGroupList.forEach(function(e){t[e.id]=e}),t}},methods:{handleSearch:function(t){this.search.keyword=t,this.pagination.current=1,this.handleTableChange(this.pagination)},handleTableChange:function(t){this.pagination.current=t.current,this.getDataList({page:t.current,pageSize:t.pageSize})},handleOpenAddServerDialog:function(){this.dialogTitle="新增服务器",this.dialogVisible=!0,this.dialogDetail={}},handleOpenEditServerDialog:function(t){this.dialogTitle="编辑服务器信息",this.dialogVisible=!0,this.dialogDetail={},this.getDataDetail(t)},handleDeleteServer:function(t){var e=this;Object(u["b"])({id:t}).then(function(t){e.$message.success("删除成功",1),e.$root.ResetPagination(e.pagination),e.handleTableChange(e.pagination)})},dialogCancel:function(){this.dialogVisible=!1},dialogSubmit:function(){var t=this;this.$refs.groupUpdateRef.validateFields(function(e,i){e||(t.dialogConfirmLoading=!0,t.dialogDetail.id?Object(u["j"])(i).then(function(e){t.$message.success("服务器信息更新成功",1,function(){t.dialogCancel(),t.dialogConfirmLoading=!1,t.handleTableChange(t.pagination)})}).catch(function(e){t.dialogConfirmLoading=!1}):Object(u["h"])(i).then(function(e){t.$message.success("服务器信息创建成功",1,function(){t.dialogCancel(),t.dialogConfirmLoading=!1,t.handleTableChange(t.pagination)})}).catch(function(e){t.dialogConfirmLoading=!1}))})},getDataDetail:function(t){var e=this;this.dialogLoading=!0,Object(u["e"])({id:t}).then(function(t){e.dialogLoading=!1,e.dialogDetail=t}).catch(function(t){e.dialogLoading=!1})},getDataList:function(t){var e=this;this.tableLoading=!0;var i=(t.page-1)*t.pageSize,a=this.search.groupId?this.search.groupId:0,n=this.search.keyword;Object(u["f"])({group_id:a,keyword:n,offset:i,limit:t.pageSize}).then(function(t){e.tableLoading=!1,e.pagination.total=t.total,e.tableSource=t.list}).catch(function(t){e.tableLoading=!1})},getDataGroupList:function(){var t=this;Object(u["d"])({offset:0,limit:9999}).then(function(e){e.list&&(t.dialogGroupList=e.list)})}},mounted:function(){this.getDataGroupList();var t=this.$route.query.op,e=this.$route.query.id;"edit"==t&&e>0?(this.handleOpenEditServerDialog(e),this.handleSearch(e)):this.handleTableChange(this.pagination)}},p=d,g=i("2877"),f=Object(g["a"])(p,a,n,!1,null,null,null);f.options.__file="Server.vue";e["default"]=f.exports},"92fa":function(t,e){var i=/^(attrs|props|on|nativeOn|class|style|hook)$/;function a(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce(function(t,e){var n,r,o,s,l;for(o in e)if(n=t[o],r=e[o],n&&i.test(o))if("class"===o&&("string"===typeof n&&(l=n,t[o]=n={},n[l]=!0),"string"===typeof r&&(l=r,e[o]=r={},r[l]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(s in r)n[s]=a(n[s],r[s]);else if(Array.isArray(n))t[o]=n.concat(r);else if(Array.isArray(r))t[o]=[n].concat(r);else for(s in r)n[s]=r[s];else t[o]=e[o];return t},{})}},aa22:function(t,e,i){"use strict";i.d(e,"g",function(){return n}),i.d(e,"i",function(){return r}),i.d(e,"d",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"a",function(){return l}),i.d(e,"h",function(){return c}),i.d(e,"j",function(){return u}),i.d(e,"f",function(){return d}),i.d(e,"e",function(){return p}),i.d(e,"b",function(){return g});var a=i("e1d2");function n(t){return Object(a["b"])("/server/group/new",t)}function r(t){return Object(a["b"])("/server/group/update",t)}function o(t){return Object(a["a"])("/server/group/list",t)}function s(t){return Object(a["a"])("/server/group/detail",t)}function l(t){return Object(a["b"])("/server/group/delete",t)}function c(t){return Object(a["b"])("/server/new",t)}function u(t){return Object(a["b"])("/server/update",t)}function d(t){return Object(a["a"])("/server/list",t)}function p(t){return Object(a["a"])("/server/detail",t)}function g(t){return Object(a["b"])("/server/delete",t)}},aae3:function(t,e,i){var a=i("d3f4"),n=i("2d95"),r=i("2b4c")("match");t.exports=function(t){var e;return a(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==n(t))}}}]); \ No newline at end of file diff --git a/public/static/1547366781/css/app.8d547fe8.css b/public/static/1547565111/css/app.db395fd0.css similarity index 99% rename from public/static/1547366781/css/app.8d547fe8.css rename to public/static/1547565111/css/app.db395fd0.css index d0d29f0..46ca6be 100644 --- a/public/static/1547366781/css/app.8d547fe8.css +++ b/public/static/1547565111/css/app.db395fd0.css @@ -1 +1 @@ -.global-container{width:100%;height:100%}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:rgba(0,0,0,.04)}.ant-menu-inline .ant-menu-item:after,.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-vertical .ant-menu-item:after{border-right:3px solid #303f9f}.ant-menu-item-active,.ant-menu-item-selected,.ant-menu-item:hover,.ant-menu-submenu-active,.ant-menu-submenu-title:hover,.ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open{color:#303f9f}pre{white-space:pre-wrap;word-wrap:break-word}.app-layer-main .app-layer-aside,.app-layer-main .app-layer-body{min-height:100vh}.app-layer-main .app-layer-aside{border-right:1px solid #eaeaea}.app-layer-main .app-layer-aside .logo{-webkit-box-sizing:border-box;box-sizing:border-box;height:55px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#303f9f;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.25);box-shadow:0 2px 8px rgba(0,0,0,.25)}.app-layer-main .app-layer-aside .logo .normal{width:80px}.app-layer-main .app-layer-aside .logo .small{width:60px}.app-layer-main .app-layer-aside .app-layer-menu{padding-top:12px}.app-layer-main .app-layer-aside .app-layer-menu .ant-menu-item{margin-top:0;margin-bottom:0}.app-layer-main .app-layer-aside .ant-menu-inline-collapsed .app-menu-title{max-width:0;display:inline-block;opacity:0}.app-layer-main .app-layer-aside .app-menu-title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-layer-main .app-layer-header{height:55px;background:#3f51b5;color:#fff;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:55px;padding:0 24px}.app-layer-main .app-layer-header .trigger{font-size:18px;line-height:55px;cursor:pointer;-webkit-transition:color .3s;transition:color .3s}.app-layer-main .app-layer-header .icon-menu-fold{font-size:18px;cursor:pointer}.app-layer-main .app-layer-header .dropdown{cursor:pointer;height:55px;display:block;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:24px}.app-layer-main .app-layer-header .dropdown .icon-small{margin-left:3px}.app-layer-main .app-layer-header .header-right{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.app-layer-main .app-layer-header .header-right .icon{font-size:16px}.app-layer-main .app-layer-content{min-height:280px}.app-layer-main .app-layer-content .app-layer-content-header{background:#fff;padding:16px 32px}.app-layer-main .app-layer-content .app-layer-content-header .header-title{font-size:20px;font-weight:500;margin-bottom:16px}.app-layer-main .app-layer-content .app-layer-content-body{padding:12px;margin:12px}.hey-icon+span{margin-left:10px}.hey-icon+span.sub-menu{margin-left:3px}.ant-dropdown-menu-item.pure-text:hover{cursor:text;background-color:transparent}.ant-dropdown .menu-wide{min-width:150px}.app-card{margin-bottom:24px}.app-server-group-list{line-height:1}.app-server-group-list .title{font-weight:500;margin:10px 0}.app-link{cursor:pointer;color:#1890ff}.app-link:hover{color:#40a9ff}.app-cursor{cursor:pointer}.app-color-success{color:#52c41a}.app-color-error{color:#f5222d}.app-color-info{color:#1890ff}.app-color-warning{color:#e6a23c}.app-color-gray{color:#999}.app-line-through{text-decoration:line-through}.app-mt-10{margin-top:10px}.app-mt-20{margin-top:20px}.app-font-small{font-size:12px}.app-op{margin-right:10px}.app-op:last-child{margin-right:0}.app-op.app-remove{color:#f5222d}.app-op.app-remove:hover{color:#cf1322}.app-op.app-no-allow{cursor:not-allowed}.app-op .anticon,.app-op .hey-icon{margin-right:3px}.app-btn-group{margin-bottom:15px}.app-modal-list .item{padding:8px 0;border-bottom:1px solid #e8e8e8}.app-modal-list .item .op{display:none}.app-modal-list .item:hover .op{display:inline-block}.app-check-box .ant-checkbox-group{width:100%}.app-check-box .ant-checkbox-group .item{padding:8px 0;border-top:1px solid #eaeaea}.app-check-box .ant-checkbox-group .item .ant-checkbox-wrapper{margin:0 18px 10px 0;min-width:140px}.app-content-list .title{font-weight:600;color:#3c3c3c}.app-content-list .description{margin-top:5px;color:#8c8c8c}.app-small-text{font-size:12px}.app-login{background-image:url(../../../static/1547366781/img/login_bg.8446c9be.jpg);background-position:50%;background-size:cover}.app-login,.app-login .app-login-inner{width:100%;height:100%}.app-login .login-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.app-login .login-container .login-box{margin-top:20vh;width:30vw}.app-login .login-container .login-box .login-title{font-weight:500;margin-bottom:20px;text-align:center}.app-login .login-cpy{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:30px;color:#fff}.app-login .login-cpy a{margin:0 5px}.app-shell{background-color:#282e34;color:#b8c0cc;padding:10px;line-height:1.3;border-radius:4px}.app-release .sp-title{font-weight:500;width:80px;display:inline-block}.app-release .app-server-groups{padding:0 20px;margin-top:20px}.app-release .app-server-groups h4{padding:10px 5px;background:#f7f7f7}.app-release .shell{background-color:#282e34;color:#b8c0cc;padding:10px;border-radius:4px;margin-top:20px;margin-bottom:20px;height:600px;overflow:hidden;overflow-y:auto}.app-release .shell .shell-title{color:#ffff91}.app-release .shell .shell-sub-title{color:#fff}.app-release .shell .shell-body{margin-bottom:15px}.app-dashboard .dashboard-container .meta{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-dashboard .dashboard-container .meta .content{margin-left:20px;font-weight:500;color:rgba(0,0,0,.85)}.app-dashboard .dashboard-container .quick-start{margin-top:20px}.app-dashboard .dashboard-container .quick-start .quick-item{padding:5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.app-dashboard .dashboard-container .quick-start .quick-item:hover{color:#1890ff}.app-dashboard .dashboard-container .quick-start .quick-item .item-icon{margin-right:3px}.app-dashboard .dashboard-container .go{padding:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.app-dashboard .dashboard-container .go .logo{width:100px;height:136px}.app-cpy{margin:20px 0}.app-cpy,.app-cpy a{color:#777}.hey-icon{font-style:normal;vertical-align:-.125em;text-align:center;text-transform:none;line-height:0;text-rendering:optimizeLegibility}.hey-icon,.hey-icon svg{display:inline-block}.hey-icon>*{line-height:1}.hey-icon.icon-small{font-size:.8em} \ No newline at end of file +.global-container{width:100%;height:100%}.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:rgba(0,0,0,.04)}.ant-menu-inline .ant-menu-item:after,.ant-menu-vertical-left .ant-menu-item:after,.ant-menu-vertical-right .ant-menu-item:after,.ant-menu-vertical .ant-menu-item:after{border-right:3px solid #303f9f}.ant-menu-item-active,.ant-menu-item-selected,.ant-menu-item:hover,.ant-menu-submenu-active,.ant-menu-submenu-title:hover,.ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open{color:#303f9f}pre{white-space:pre-wrap;word-wrap:break-word}.app-layer-main .app-layer-aside,.app-layer-main .app-layer-body{min-height:100vh}.app-layer-main .app-layer-aside{border-right:1px solid #eaeaea}.app-layer-main .app-layer-aside .logo{-webkit-box-sizing:border-box;box-sizing:border-box;height:55px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#303f9f;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.25);box-shadow:0 2px 8px rgba(0,0,0,.25)}.app-layer-main .app-layer-aside .logo .normal{width:80px}.app-layer-main .app-layer-aside .logo .small{width:60px}.app-layer-main .app-layer-aside .app-layer-menu{padding-top:12px}.app-layer-main .app-layer-aside .app-layer-menu .ant-menu-item{margin-top:0;margin-bottom:0}.app-layer-main .app-layer-aside .ant-menu-inline-collapsed .app-menu-title{max-width:0;display:inline-block;opacity:0}.app-layer-main .app-layer-aside .app-menu-title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-layer-main .app-layer-header{height:55px;background:#3f51b5;color:#fff;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:55px;padding:0 24px}.app-layer-main .app-layer-header .trigger{font-size:18px;line-height:55px;cursor:pointer;-webkit-transition:color .3s;transition:color .3s}.app-layer-main .app-layer-header .icon-menu-fold{font-size:18px;cursor:pointer}.app-layer-main .app-layer-header .dropdown{cursor:pointer;height:55px;display:block;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:24px}.app-layer-main .app-layer-header .dropdown .icon-small{margin-left:3px}.app-layer-main .app-layer-header .header-right{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.app-layer-main .app-layer-header .header-right .icon{font-size:16px}.app-layer-main .app-layer-content{min-height:280px}.app-layer-main .app-layer-content .app-layer-content-header{background:#fff;padding:16px 32px}.app-layer-main .app-layer-content .app-layer-content-header .header-title{font-size:20px;font-weight:500;margin-bottom:16px}.app-layer-main .app-layer-content .app-layer-content-body{padding:12px;margin:12px}.hey-icon+span{margin-left:10px}.hey-icon+span.sub-menu{margin-left:3px}.ant-dropdown-menu-item.pure-text:hover{cursor:text;background-color:transparent}.ant-dropdown .menu-wide{min-width:150px}.app-card{margin-bottom:24px}.app-server-group-list{line-height:1}.app-server-group-list .title{font-weight:500;margin:10px 0}.app-link{cursor:pointer;color:#1890ff}.app-link:hover{color:#40a9ff}.app-cursor{cursor:pointer}.app-color-success{color:#52c41a}.app-color-error{color:#f5222d}.app-color-info{color:#1890ff}.app-color-warning{color:#e6a23c}.app-color-gray{color:#999}.app-line-through{text-decoration:line-through}.app-mt-10{margin-top:10px}.app-mt-20{margin-top:20px}.app-font-small{font-size:12px}.app-op{margin-right:10px}.app-op:last-child{margin-right:0}.app-op.app-remove{color:#f5222d}.app-op.app-remove:hover{color:#cf1322}.app-op.app-no-allow{cursor:not-allowed}.app-op .anticon,.app-op .hey-icon{margin-right:3px}.app-btn-group{margin-bottom:15px}.app-modal-list .item{padding:8px 0;border-bottom:1px solid #e8e8e8}.app-modal-list .item .op{display:none}.app-modal-list .item:hover .op{display:inline-block}.app-check-box .ant-checkbox-group{width:100%}.app-check-box .ant-checkbox-group .item{padding:8px 0;border-top:1px solid #eaeaea}.app-check-box .ant-checkbox-group .item .ant-checkbox-wrapper{margin:0 18px 10px 0;min-width:140px}.app-content-list .title{font-weight:600;color:#3c3c3c}.app-content-list .description{margin-top:5px;color:#8c8c8c}.app-small-text{font-size:12px}.app-login{background-image:url(../../../static/1547565111/img/login_bg.193d505f.jpg);background-position:50%;background-size:cover}.app-login,.app-login .app-login-inner{width:100%;height:100%}.app-login .login-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.app-login .login-container .login-box{margin-top:20vh;width:30vw}.app-login .login-container .login-box .login-title{font-weight:500;margin-bottom:20px;text-align:center}.app-login .login-cpy{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:30px;color:#fff}.app-login .login-cpy a{margin:0 5px}.app-shell{background-color:#282e34;color:#b8c0cc;padding:10px;line-height:1.3;border-radius:4px}.app-release .sp-title{font-weight:500;width:80px;display:inline-block}.app-release .app-server-groups{padding:0 20px;margin-top:20px}.app-release .app-server-groups h4{padding:10px 5px;background:#f7f7f7}.app-release .shell{background-color:#282e34;color:#b8c0cc;padding:10px;border-radius:4px;margin-top:20px;margin-bottom:20px;height:600px;overflow:hidden;overflow-y:auto}.app-release .shell .shell-title{color:#ffff91}.app-release .shell .shell-sub-title{color:#fff}.app-release .shell .shell-body{margin-bottom:15px}.app-dashboard .dashboard-container .meta{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-dashboard .dashboard-container .meta .content{margin-left:20px;font-weight:500;color:rgba(0,0,0,.85)}.app-dashboard .dashboard-container .quick-start{margin-top:20px}.app-dashboard .dashboard-container .quick-start .quick-item{padding:5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.app-dashboard .dashboard-container .quick-start .quick-item:hover{color:#1890ff}.app-dashboard .dashboard-container .quick-start .quick-item .item-icon{margin-right:3px}.app-dashboard .dashboard-container .go{padding:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.app-dashboard .dashboard-container .go .logo{width:100px;height:136px}.app-cpy{margin:20px 0}.app-cpy,.app-cpy a{color:#777}.hey-icon{font-style:normal;vertical-align:-.125em;text-align:center;text-transform:none;line-height:0;text-rendering:optimizeLegibility}.hey-icon,.hey-icon svg{display:inline-block}.hey-icon>*{line-height:1}.hey-icon.icon-small{font-size:.8em} \ No newline at end of file diff --git a/public/static/1547366781/css/chunk-vendors.d8d97903.css b/public/static/1547565111/css/chunk-vendors.d8d97903.css similarity index 100% rename from public/static/1547366781/css/chunk-vendors.d8d97903.css rename to public/static/1547565111/css/chunk-vendors.d8d97903.css diff --git a/public/static/1547565111/img/login_bg.193d505f.jpg b/public/static/1547565111/img/login_bg.193d505f.jpg new file mode 100644 index 0000000..eae4879 Binary files /dev/null and b/public/static/1547565111/img/login_bg.193d505f.jpg differ diff --git a/public/static/1547366781/img/logo.8ba55f46.png b/public/static/1547565111/img/logo.8ba55f46.png similarity index 100% rename from public/static/1547366781/img/logo.8ba55f46.png rename to public/static/1547565111/img/logo.8ba55f46.png diff --git a/public/static/1547366781/img/syncd.b8a4ab5e.png b/public/static/1547565111/img/syncd.b8a4ab5e.png similarity index 100% rename from public/static/1547366781/img/syncd.b8a4ab5e.png rename to public/static/1547565111/img/syncd.b8a4ab5e.png diff --git a/public/static/1547366781/js/app.c75e6994.js b/public/static/1547565111/js/app.67b6b0ba.js similarity index 98% rename from public/static/1547366781/js/app.c75e6994.js rename to public/static/1547565111/js/app.67b6b0ba.js index 0f7a39b..47ef18d 100644 --- a/public/static/1547366781/js/app.c75e6994.js +++ b/public/static/1547565111/js/app.67b6b0ba.js @@ -1 +1 @@ -(function(e){function t(t){for(var n,s,l=t[0],o=t[1],i=t[2],u=0,f=[];u0},getUserName:function(e){return e.name},getUserId:function(e){return e.user_id},getAvatar:function(e){return"https://www.gravatar.com/avatar/"+h()(e.email.toLowerCase())+"?s=512"},getPriv:function(e){return e.priv?e.priv:[]},getGroupName:function(e){return e.group_name},getMobile:function(e){return e.mobile},getTrueName:function(e){return e.true_name},getEmail:function(e){return e.email}},b={login:function(e,t){var a=e.commit;a("setUserInfo",{user_id:t.user_id,name:t.name,email:t.email,priv:t.priv,group_name:t.group_name,mobile:t.mobile,true_name:t.true_name})}},p={setUserInfo:function(e,t){e.user_id=t.user_id,e.name=t.name,e.email=t.email,e.priv=t.priv,e.group_name=t.group_name,e.mobile=t.mobile,e.true_name=t.true_name}},v={namespaced:!0,state:m,getters:j,actions:b,mutations:p};n["default"].use(d["a"]);var _=new d["a"].Store({modules:{account:v}}),E=a("1157"),g=a.n(E),y=a("c1df"),k=a.n(y),z=a("24b4"),C=a.n(z),L=(a("ac6a"),a("a78e")),O=a.n(L),w="SYD_AUTH_TOKEN",P={GotoRouter:function(e,t){this.$router.push({name:e,query:t})},ResolveFormError:function(e,t){var a=Object.getOwnPropertyNames(e).shift();if(a&&e[a]&&e[a].errors&&e[a].errors.length){var n=e[a].errors[0].message,c=e[a].errors[0].field;this.$message.error(n);var r=this.$jQuery("#"+c).offset().top;this.$jQuery("body,html").animate({scrollTop:r-20},1e3)}},FormatDateTime:function(e,t){return e?(t||(t="YYYY-MM-DD HH:mm:SS"),k.a.unix(e).format(t)):"--"},FormatDateFromNow:function(e){return e?k.a.unix(e).fromNow():"--"},Md5Sum:function(e){return h()(e)},ResetPagination:function(e,t){t||(t=-1),e.total+=t;var a=Math.ceil(e.total/e.pageSize);e.current>a&&(e.current=a)},SetLoginToken:function(e){return O.a.set(w,e)},GetLoginToken:function(){return O.a.get(w)},DeleteLoginToken:function(){return O.a.remove(w)},CheckPriv:function(e){return this.$store.getters["account/getPriv"].indexOf(e)>-1},CheckPrivs:function(e){var t=this;if(!e||!e.length)return!1;var a=!1;return e.forEach(function(e){t.CheckPriv(e)&&(a=!0)}),a},T:function(e){return this.$root.Lang[e]?this.$root.Lang[e]:e}},R=a("0209"),S={apply_create:"创建上线单",apply_update:"更新并提交上线单",apply_audit:"审核上线单",apply_unaudit:"取消审核上线单",apply_discard:"废弃上线单",apply_start:"上线操作",apply_end:"上线结束",apply_stop:"上线终止",fetch_repo_code_files:"更新代码仓库文件",reset_repo_to_version:"拉取代码文件",pack_repo_code_files:"打包"},D={Priv:R["a"],Lang:S},M=(a("202f"),a("73bf"),a("4f87"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M542.592 71.72608c-2.2784-0.5632-4.44928-1.3824-7.02464-1.41824-1.4592 0-2.72896 0.63488-4.11136 0.86016-5.71904-0.18944-11.28448-0.86016-17.03936-0.86016-262.68672 0-476.42112 213.7344-476.42112 476.42112 0.03584 159.85152 79.5904 308.23424 212.8384 396.90752a28.01152 28.01152 0 0 0 38.82496-7.808c8.55552-12.89216 5.12-30.30528-7.77216-38.8608a421.16096 421.16096 0 0 1-112.06144-109.59872l39.31136-24.77568a28.01664 28.01664 0 0 0 8.74496-38.63552 28.0064 28.0064 0 0 0-38.67136-8.74496l-38.14912 24.064c-27.08992-52.50048-42.5984-110.75584-45.66016-171.2896h48.01536c15.46752 0 28.02688-12.55424 28.02688-28.02688s-12.55424-28.02688-28.02688-28.02688H95.8464a416.8704 416.8704 0 0 1 52.50048-171.10016l36.24448 23.69024c4.74624 3.10272 10.05056 4.5568 15.2832 4.5568a28.06272 28.06272 0 0 0 23.50592-12.70272 27.99104 27.99104 0 0 0-8.14592-38.784l-35.98336-23.50592c29.44512-38.97344 65.31584-72.75008 106.30656-99.5072l31.0528 48.38912a27.92448 27.92448 0 0 0 23.61856 12.89216 28.02688 28.02688 0 0 0 23.53664-43.15648l-29.1072-45.39904c52.72576-25.10848 111.31392-39.68512 173.30688-40.61696l0.22528 33.7408a28.02176 28.02176 0 0 0 28.02688 27.83744h0.18944a28.03712 28.03712 0 0 0 27.83744-28.2112l-0.18944-30.4896c53.50912 6.31296 103.99232 22.49216 149.4272 47.04256l-28.50816 38.33856a27.98592 27.98592 0 0 0 5.75488 39.19872 27.86816 27.86816 0 0 0 16.6656 5.5296 27.93472 27.93472 0 0 0 22.53312-11.32032l30.86336-41.51296a424.46848 424.46848 0 0 1 90.7264 89.7536l-32.09728 20.96128a28.03712 28.03712 0 0 0-8.14592 38.784 28.03712 28.03712 0 0 0 38.78912 8.14592l32.13312-21.00224c28.09856 50.66752 45.8496 107.72992 50.85696 168.41216h-46.59712a28.03712 28.03712 0 0 0-28.02688 28.02688 28.03712 28.03712 0 0 0 28.02688 28.02688h47.04256c-3.06176 60.61056-18.60608 118.82496-45.66016 171.2896l-38.14912-24.02816a28.0064 28.0064 0 0 0-38.67136 8.74496 28.03712 28.03712 0 0 0 8.74496 38.63552l39.27552 24.77568a421.89824 421.89824 0 0 1-114.26816 111.08864 28.032 28.032 0 0 0-8.06912 38.82496 28.04736 28.04736 0 0 0 23.46496 12.63104 27.8784 27.8784 0 0 0 15.31904-4.59776c134.85568-88.48384 215.37792-237.4656 215.37792-398.58688-0.0256-253.19936-198.70208-460.28288-448.27136-475.00288z"}}),a("path",{attrs:{d:"M730.20928 358.8096c-10.19904-11.6224-27.91424-12.74368-39.57248-2.53952l-127.94368 112.39936c-14.08512-8.74496-30.53056-14.01344-48.27648-14.01344-50.74432 0-92.07296 41.2928-92.07296 92.07296s41.28768 92.07296 92.07296 92.07296c50.78016 0 92.07296-41.2928 92.07296-92.07296 0-12.63104-2.57536-24.62208-7.17312-35.6096l128.31744-112.77312a27.9296 27.9296 0 0 0 2.57536-39.53664z m-215.75168 223.93856c-19.84 0-36.0192-16.1792-36.0192-36.0192s16.1792-36.0192 36.0192-36.0192 36.0192 16.1792 36.0192 36.0192-16.1792 36.0192-36.0192 36.0192z"}})])])}),x=[],I={name:"IconDashboard"},T=I,U=Object(s["a"])(T,M,x,!1,null,null,null);U.options.__file="Dashboard.vue";var V=U.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M1005.226667 83.626667c-10.24-6.826667-22.186667-8.533333-34.133334-3.413334L34.133333 501.76c-11.946667 5.12-20.48 17.066667-20.48 30.72S22.186667 558.08 34.133333 563.2l273.066667 124.586667c17.066667 8.533333 37.546667 0 46.08-17.066667s0-37.546667-17.066667-46.08l-204.8-92.16 715.093334-320.853333-433.493334 486.4s0 1.706667-1.706666 1.706666l-1.706667 1.706667-1.706667 1.706667V708.266667c0 1.706667 0 1.706667-1.706666 3.413333v8.533333l-5.12 254.293334c0 13.653333 6.826667 25.6 18.773333 30.72 5.12 3.413333 10.24 3.413333 15.36 3.413333 6.826667 0 13.653333-1.706667 20.48-6.826667l201.386667-146.773333 211.626666 95.573333c5.12 1.706667 8.533333 3.413333 13.653334 3.413334 5.12 0 11.946667-1.706667 17.066666-5.12 10.24-5.12 15.36-15.36 17.066667-25.6l104.106667-808.96c0-10.24-6.826667-22.186667-15.36-30.72zM469.333333 907.946667l3.413334-133.12 109.226666 51.2-112.64 81.92zM853.333333 870.4l-358.4-160.426667 442.026667-498.346666L853.333333 870.4z"}})])])},A=[],$={name:"IconSend"},W=$,B=Object(s["a"])(W,Y,A,!1,null,null,null);B.options.__file="Send.vue";var H=B.exports,N=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M512.032 1023.96736a118.495926 118.495926 0 0 1-54.399966-12.991992L21.536307 785.055509a38.463976 38.463976 0 0 1 35.327977-68.287957l436.095728 225.919859c11.391993 6.015996 26.751983 6.079996 38.079976 0l436.095728-225.919859a38.559976 38.559976 0 0 1 51.775967 16.44799c9.727994 18.879988 2.431998 41.983974-16.44799 51.839967l-436.095727 225.919859a119.039926 119.039926 0 0 1-54.335966 12.991992m0-212.543867a118.495926 118.495926 0 0 1-54.399966-12.991992L21.536307 572.447642a38.335976 38.335976 0 0 1-16.38399-51.711967 38.175976 38.175976 0 0 1 51.711967-16.44799l436.095728 225.855859c11.391993 6.079996 26.751983 6.079996 38.079976 0l436.095728-225.855859a38.335976 38.335976 0 0 1 51.775967 16.44799 38.335976 38.335976 0 0 1-16.44799 51.711967l-436.095727 225.983859a119.039926 119.039926 0 0 1-54.335966 12.991992m0-204.351872c-17.983989 0-35.967978-4.159997-51.967968-12.479993l-407.999745-211.391867C20.448307 366.815771 0.800319 336.28779 0.800319 303.51981s19.647988-63.29596 51.263968-79.67995L460.064032 12.447992c31.99998-16.57599 71.871955-16.57599 103.935936 0l407.999745 211.391868c31.61598 16.38399 51.199968 46.911971 51.199968 79.67995s-19.583988 63.29596-51.199968 79.679951l-407.999745 211.391867c-15.99999 8.319995-33.983979 12.479992-51.967968 12.479993m0-530.335669c-5.823996 0-11.711993 1.343999-16.70399 3.903998L87.328265 292.031817c-5.887996 3.071998-9.727994 7.551995-9.727994 11.455993s3.839998 8.383995 9.727994 11.455993l407.999745 211.391868c10.047994 5.119997 23.359985 5.119997 33.40798 0l407.999745-211.391868c5.887996-3.071998 9.663994-7.551995 9.663994-11.455993s-3.775998-8.383995-9.663994-11.455993L528.73599 80.63995a37.055977 37.055977 0 0 0-16.70399-3.903998"}})])])},J=[],G={name:"IconProject"},F=G,q=Object(s["a"])(F,N,J,!1,null,null,null);q.options.__file="Project.vue";var Q=q.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}})])])},Z=[],X={name:"IconUser"},ee=X,te=Object(s["a"])(ee,K,Z,!1,null,null,null);te.options.__file="User.vue";var ae=te.exports,ne=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 0 0 308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 0 0-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}})])])},ce=[],re={name:"IconShell"},se=re,le=Object(s["a"])(se,ne,ce,!1,null,null,null);le.options.__file="Shell.vue";var oe=le.exports,ie=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M93.105 74.83C41.905 74.83 0 116.737 0 167.937v93.105c0 51.2 41.905 93.027 93.105 93.027h837.79c51.2 0 93.105-41.827 93.105-93.027v-93.105c0-51.2-41.905-93.105-93.105-93.105H93.105z m872.606 101.062v82.55c0 16.541-19.771 43.796-47.734 43.796H100.352c-33.32 0-45.45-27.727-45.45-49.468v-76.878c0-16.778 19.692-45.923 45.45-45.923h817.703c27.176 0 47.735 18.275 47.735 45.923z m-90.742 85.07a46.474 46.474 0 1 0 0-93.026 46.474 46.474 0 0 0 0 93.105z m-781.864 144.7C41.905 405.662 0 447.567 0 498.767v93.105c0 51.2 41.905 93.026 93.105 93.026h837.79c51.2 0 93.105-41.826 93.105-93.026v-93.105c0-51.2-41.905-93.105-93.105-93.105H93.105z m872.606 101.06v82.55c0 16.542-19.771 43.796-47.734 43.796H100.352c-33.32 0-45.45-27.726-45.45-49.467v-76.879c0-16.777 19.692-45.922 45.45-45.922h817.703c27.176 0 47.735 18.274 47.735 45.922z m-90.742 85.071a46.474 46.474 0 1 0 0-93.026 46.474 46.474 0 0 0 0 93.105z m-781.864 144.7C41.905 736.492 0 778.397 0 829.597v93.105c0 51.2 41.905 93.026 93.105 93.026h837.79c51.2 0 93.105-41.826 93.105-93.026v-93.105c0-51.2-41.905-93.106-93.105-93.106H93.105z m872.685 101.06v82.55c0 16.542-19.772 43.796-47.735 43.796H100.352c-33.32 0-45.45-27.727-45.45-49.467v-76.879c0-16.778 19.692-45.922 45.45-45.922h817.703c27.176 0 47.735 18.274 47.735 45.922z m-90.743 85.071a46.474 46.474 0 1 0 0-93.026 46.474 46.474 0 0 0 0 93.105z"}})])])},ue=[],de={name:"IconServer"},fe=de,he=Object(s["a"])(fe,ie,ue,!1,null,null,null);he.options.__file="Server.vue";var me=he.exports,je=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M1017 430.9l-3.5-21.9-82.9-27.7c-7.9-25.2-18-49.7-30.2-73l39.1-78.2-13-18C894.6 168 856 129.4 811.9 97.4l-18-13-78.3 39.1c-23.3-12.2-47.7-22.3-73-30.2L615 10.6l-21.9-3.5c-58.9-9.4-103.3-9.4-162.2 0L409 10.6l-27.7 82.9c-25.2 7.9-49.7 17.9-73 30.2l-78.2-39.1-18 13c-44.1 31.9-82.7 70.5-114.7 114.7l-13 18 39.1 78.2c-12.2 23.3-22.3 47.7-30.2 73L10.5 409 7 430.9c-4.7 29.5-7 56-7 81.1 0 25.1 2.3 51.6 7 81.1l3.5 21.9 82.9 27.6c7.8 25.2 17.9 49.7 30.2 73l-39.1 78.2 13 18c17.3 23.9 34.5 44.2 52.4 62.2 18 18 38.3 35.1 62.2 52.4l18 13 78.2-39.1c23.3 12.3 47.7 22.4 73 30.2l27.6 82.9 21.9 3.5c29.5 4.7 56 7 81.1 7 25.1 0 51.6-2.3 81.1-7l21.9-3.5 27.6-82.9c25.2-7.9 49.7-18 73-30.2l78.2 39.1 18-13c23.9-17.3 44.2-34.4 62.2-52.5 18-18 35.1-38.3 52.4-62.2l13-18-39.1-78.2c12.3-23.3 22.4-47.7 30.2-73l82.9-27.6 3.5-21.9c4.7-29.5 7-56 7-81.1 0.2-25-2.1-51.5-6.8-81z m-69.2 128.9l-77.5 25.8-5 19.2c-8.4 32.2-21.1 63-37.8 91.5l-10 17.1 36.5 73.1c-10.5 13.3-21 25.2-31.7 35.9s-22.5 21.1-35.9 31.6l-73.1-36.5-17.1 10c-28.5 16.7-59.2 29.4-91.5 37.8l-19.2 5-25.8 77.5c-34 4.1-61.6 4.1-95.6 0l-25.8-77.5-19.2-5c-32.2-8.4-63-21.1-91.5-37.8l-17.1-10-72.9 36.5c-13.3-10.5-25.2-21-35.9-31.7s-21.2-22.6-31.7-35.9l36.5-73-10-17.1c-16.7-28.5-29.4-59.3-37.8-91.5l-5-19.2-77.5-25.8c-2-17-3-32.8-3-47.8s1-30.8 3-47.8l77.5-25.8 5-19.2c8.4-32.2 21.2-63 37.8-91.5l10-17.1-36.5-72.9c20-25 42.7-47.6 67.6-67.6l72.9 36.5 17.1-10c28.5-16.7 59.3-29.4 91.5-37.8l19.2-5 25.8-77.5c34-4 61.6-4 95.6 0l25.8 77.5 19.2 5c32.2 8.4 63 21.2 91.5 37.8l17.1 10 72.9-36.5c25 20 47.6 42.7 67.6 67.6l-36.5 72.9 10 17.1c16.7 28.5 29.4 59.3 37.8 91.5l5 19.2 77.5 25.8c2 17 3 32.8 3 47.8 0.3 15-0.7 30.8-2.8 47.8zM512 365.7c-80.8 0-146.3 65.5-146.3 146.3 0 80.8 65.5 146.3 146.3 146.3S658.3 592.8 658.3 512c0-80.8-65.5-146.3-146.3-146.3z m0 219.4c-40.3 0-73.1-32.8-73.1-73.1s32.8-73.1 73.1-73.1 73.1 32.8 73.1 73.1-32.8 73.1-73.1 73.1z"}})])])},be=[],pe={name:"IconSetting"},ve=pe,_e=Object(s["a"])(ve,je,be,!1,null,null,null);_e.options.__file="Setting.vue";var Ee=_e.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M675.51567873 486.26142105C675.51567873 496.10264304 671.91984725 504.61908465 664.72818603 511.81074584L410.37046358 766.16846835C403.17880236 773.36012952 394.66236075 776.95596099 384.82113877 776.95596099 374.97991676 776.95596099 366.46347518 773.36012952 359.27181397 766.16846835 352.08015275 758.97680712 348.48432127 750.46036553 348.48432127 740.61914353L348.48432127 231.90369855C348.48432127 222.06247657 352.08015275 213.54603496 359.27181397 206.35437378 366.46347518 199.16271254 374.97991676 195.56688109 384.82113877 195.56688109 394.66236075 195.56688109 403.17880236 199.16271254 410.37046358 206.35437378L664.72818603 460.71209625C671.91984725 467.90375745 675.51567873 476.42019906 675.51567873 486.26142105ZM675.51567873 486.26142105"}})])])},ye=[],ke={name:"IconCaretRight"},ze=ke,Ce=Object(s["a"])(ze,ge,ye,!1,null,null,null);Ce.options.__file="CaretRight.vue";var Le=Ce.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M384.023552 384.083968l256.016384 0 0 256.016384-256.016384 0 0-256.016384Z"}})])])},we=[],Pe={name:"IconSquare"},Re=Pe,Se=Object(s["a"])(Re,Oe,we,!1,null,null,null);Se.options.__file="Square.vue";var De=Se.exports,Me=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M112 224h800c26.5 0 48-21.5 48-48s-21.5-48-48-48H112c-26.5 0-48 21.5-48 48s21.5 48 48 48z m0 336h480c26.5 0 48-21.5 48-48s-21.5-48-48-48H112c-26.5 0-48 21.5-48 48s21.5 48 48 48z m669.3-204.4c-1.5-1.3-3.3-2-5.3-2-4.4 0-8 3.6-8 8v300.3c0 1.9 0.7 3.8 2 5.3 2.9 3.3 8 3.7 11.3 0.8l165.1-144c0.5-0.5 1.1-1 1.5-1.5 5.8-6.7 5.1-16.8-1.5-22.6L781.3 355.6zM912 800H112c-26.5 0-48 21.5-48 48s21.5 48 48 48h800c26.5 0 48-21.5 48-48s-21.5-48-48-48z"}})])])},xe=[],Ie={name:"IconMenuFold"},Te=Ie,Ue=Object(s["a"])(Te,Me,xe,!1,null,null,null);Ue.options.__file="MenuFold.vue";var Ve=Ue.exports,Ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M912 800l-800 0c-26.5 0-48 21.5-48 48s21.5 48 48 48L912 896c26.5 0 48-21.5 48-48s-21.5-48-48-48zM912 464l-480 0c-26.5 0-48 21.5-48 48s21.5 48 48 48L912 560c26.5 0 48-21.5 48-48s-21.5-48-48-48zM242.7 668.4c1.5 1.3 3.3 2 5.3 2 4.4 0 8-3.6 8.00000001-8l0-300.3c0-1.89999999-0.7-3.8-2.00000002-5.3-2.9-3.3-8-3.7-11.29999999-0.8l-165.1 144c-0.5 0.5-1.1 1-1.5 1.5-5.8 6.69999999-5.1 16.8 1.5 22.6L242.7 668.4zM112 224L912 224c26.5 0 48-21.5 48-48s-21.5-48-48-48l-800 0c-26.5 0-48 21.5-48 48s21.5 48 48 48z"}})])])},Ae=[],$e={name:"IconMenuUnfold"},We=$e,Be=Object(s["a"])(We,Ye,Ae,!1,null,null,null);Be.options.__file="MenuUnfold.vue";var He=Be.exports,Ne=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M481.15039062 697.04821778L172.75317383 388.65100097c-17.05627442-17.05627442-17.05627442-44.64294434 0-61.69921874 17.00683594-17.00683594 44.64294434-17.05627442 61.69921875 0L512 604.49938965l277.54760742-277.54760743c17.00683594-17.00683594 44.64294434-17.05627442 61.69921875 1e-8 17.05627442 17.05627442 17.00683594 44.64294434 0 61.69921875l-308.3972168 308.39721679C525.79333497 714.05505372 498.20666503 714.05505372 481.15039062 697.04821778z"}})])])},Je=[],Ge={name:"IconCaretDown"},Fe=Ge,qe=Object(s["a"])(Fe,Ne,Je,!1,null,null,null);qe.options.__file="CaretDown.vue";var Qe=qe.exports,Ke=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M824.2 699.9a301.55 301.55 0 0 0-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 0 1 612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 0 0 8-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 0 1 612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}})])])},Ze=[],Xe={name:"IconTeam"},et=Xe,tt=Object(s["a"])(et,Ke,Ze,!1,null,null,null);tt.options.__file="Team.vue";var at=tt.exports,nt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 0 1-112.7 75.9A352.8 352.8 0 0 1 512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 0 1-112.7-75.9 353.28 353.28 0 0 1-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z"}})])])},ct=[],rt={name:"IconLogout"},st=rt,lt=Object(s["a"])(st,nt,ct,!1,null,null,null);lt.options.__file="Logout.vue";var ot=lt.exports,it=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}})])])},ut=[],dt={name:"IconQuestion"},ft=dt,ht=Object(s["a"])(ft,it,ut,!1,null,null,null);ht.options.__file="Question.vue";var mt=ht.exports,jt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}})])])},bt=[],pt={name:"IconDelete"},vt=pt,_t=Object(s["a"])(vt,jt,bt,!1,null,null,null);_t.options.__file="Delete.vue";var Et=_t.exports,gt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M832 320c0-70.6-57.4-128-128-128s-128 57.4-128 128c0 47.4 25.8 88.6 64 110.8v17.2c0 39.8-15.6 67.4-50.6 89.8-30.8 19.6-76.2 34.2-135 43-28 4.2-51.4 12-70.4 21.4V302.8c38.2-22.2 64-63.4 64-110.8 0-70.6-57.4-128-128-128S192 121.4 192 192c0 47.4 25.8 88.6 64 110.8v418.4c-38.2 22.2-64 63.4-64 110.8 0 70.6 57.4 128 128 128s128-57.4 128-128c0-33.2-12.6-63.4-33.4-86.2 3.8-9.8 19.4-32.6 58.8-38.6 77.6-11.6 137.8-31.8 184.6-61.6 72-45.6 110-114 110-197.6v-17.2c38.2-22.2 64-63.4 64-110.8zM320 112c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z m0 800c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z m384-512c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}})])])},yt=[],kt={name:"IconBranch"},zt=kt,Ct=Object(s["a"])(zt,gt,yt,!1,null,null,null);Ct.options.__file="Branch.vue";var Lt=Ct.exports,Ot=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M456 708c-6.3 0-12.7-2.1-17.9-6.5-11.9-9.9-13.5-27.6-3.6-39.4l113.7-136.4-129.1-43c-8.8-3-15.5-10-18-18.9-2.6-8.9-0.5-18.5 5.4-25.6l140-168c9.9-11.8 27.6-13.4 39.4-3.6 11.9 9.9 13.5 27.6 3.6 39.4L475.8 442.4l129.1 43c8.8 3 15.5 10 18 18.9 2.6 8.9 0.5 18.5-5.4 25.6l-140 168C472 704.6 464 708 456 708z"}}),a("path",{attrs:{d:"M512 120l336 145.7v188.7c0 304.3-257.2 420.9-336 449.4-78.8-28.5-336-145.2-336-449.4l0.2-189.3L512 120m0-56c-7.5 0-15 1.5-22.1 4.6l-336 145.3c-20.6 8.9-33.9 29.3-33.9 51.9v188.7c0 344.2 294.3 473.7 372.9 502.1 6.3 2.3 12.7 3.4 19.1 3.4s12.8-1.1 19.1-3.4C609.7 928.2 904 798.7 904 454.5V265.8c0-22.6-13.4-43-33.9-51.9l-336-145.3C527 65.5 519.5 64 512 64z"}})])])},wt=[],Pt={name:"IconVerify"},Rt=Pt,St=Object(s["a"])(Rt,Ot,wt,!1,null,null,null);St.options.__file="Verify.vue";var Dt=St.exports,Mt=[V,H,Q,ae,oe,me,Ee,Le,De,Ve,He,Qe,at,ot,mt,Et,Lt,Dt],xt=function(e){Mt.forEach(function(t){e.component(t.name,t)})},It={install:xt};a("8894");n["default"].use(It),n["default"].use(C.a),k.a.locale("zh-CN"),n["default"].config.productionTip=!1,n["default"].prototype.$jQuery=g.a,new n["default"]({router:u["a"],store:_,methods:P,data:D,render:function(e){return e(i)}}).$mount("#app")},"64a9":function(e,t,a){},"73bf":function(e,t,a){},8894:function(e,t,a){},a18c:function(e,t,a){"use strict";a.d(t,"b",function(){return o});var n=a("2b0e"),c=a("8c4f"),r=a("0209");n["default"].use(c["a"]);var s=function(e){return function(){return a("1a5d")("./"+e+".vue")}},l=[{path:"/login",name:"login",component:s("Login")}],o=[{path:"/",component:s("Layer"),meta:{single:!0},redirect:{name:"dashboard"},children:[{path:"dashboard",name:"dashboard",meta:{title:"控制台",icon:"icon-dashboard"},component:s("Dashboard")}]},{path:"/deploy",name:"deploy",component:s("Layer"),meta:{title:"发布",icon:"icon-send"},children:[{path:"apply",name:"deployApply",meta:{title:"提交上线申请",role:[r["a"].DEPLOY_APPLY]},component:s("deploy/Apply")},{path:"deploy",name:"deployDeploy",meta:{title:"上线单管理",role:[r["a"].DEPLOY_VIEW_MY,r["a"].DEPLOY_VIEW_ALL]},component:s("deploy/Deploy")},{path:"release",name:"deployRelease",meta:{title:"部署上线单",hide:!0,role:[r["a"].DEPLOY_DEPLOY_MY,r["a"].DEPLOY_DEPLOY_ALL]},component:s("deploy/Release")}]},{path:"/project",name:"project",component:s("Layer"),meta:{title:"项目",icon:"icon-project"},children:[{path:"space",name:"projectSpace",meta:{title:"项目空间",role:[r["a"].PROJECT_SPACE_VIEW]},component:s("project/Space")},{path:"project",name:"projectProject",meta:{title:"项目管理",hide:!0,role:[r["a"].PROJECT_VIEW]},component:s("project/Project")},{path:"user",name:"projectUser",meta:{title:"成员管理",hide:!0,role:[r["a"].PROJECT_USER_VIEW]},component:s("project/User")}]},{path:"/user",name:"user",component:s("Layer"),meta:{title:"用户",icon:"icon-team"},children:[{path:"group",name:"userGroup",meta:{title:"角色管理",role:[r["a"].USER_ROLE_VIEW]},component:s("user/Group")},{path:"list",name:"userList",meta:{title:"用户管理",role:[r["a"].USER_VIEW]},component:s("user/User")}]},{path:"/server",name:"server",component:s("Layer"),meta:{title:"服务器",icon:"icon-server"},children:[{path:"group",name:"serverGroup",meta:{title:"集群管理",role:[r["a"].SERVER_GROUP_VIEW]},component:s("server/Group")},{path:"list",name:"serverList",meta:{title:"服务器管理",role:[r["a"].SERVER_VIEW]},component:s("server/Server")}]}],i=new c["a"]({routes:l.concat(o),scrollBehavior:function(){return{y:0}},mode:"history"});t["a"]=i}}); \ No newline at end of file +(function(e){function t(t){for(var n,s,l=t[0],o=t[1],i=t[2],u=0,f=[];u0},getUserName:function(e){return e.name},getUserId:function(e){return e.user_id},getAvatar:function(e){return"https://www.gravatar.com/avatar/"+h()(e.email.toLowerCase())+"?s=512"},getPriv:function(e){return e.priv?e.priv:[]},getGroupName:function(e){return e.group_name},getMobile:function(e){return e.mobile},getTrueName:function(e){return e.true_name},getEmail:function(e){return e.email}},b={login:function(e,t){var a=e.commit;a("setUserInfo",{user_id:t.user_id,name:t.name,email:t.email,priv:t.priv,group_name:t.group_name,mobile:t.mobile,true_name:t.true_name})}},p={setUserInfo:function(e,t){e.user_id=t.user_id,e.name=t.name,e.email=t.email,e.priv=t.priv,e.group_name=t.group_name,e.mobile=t.mobile,e.true_name=t.true_name}},v={namespaced:!0,state:m,getters:j,actions:b,mutations:p};n["default"].use(d["a"]);var _=new d["a"].Store({modules:{account:v}}),E=a("1157"),g=a.n(E),y=a("c1df"),k=a.n(y),z=a("24b4"),C=a.n(z),L=(a("ac6a"),a("a78e")),O=a.n(L),w="SYD_AUTH_TOKEN",P={GotoRouter:function(e,t){this.$router.push({name:e,query:t})},ResolveFormError:function(e,t){var a=Object.getOwnPropertyNames(e).shift();if(a&&e[a]&&e[a].errors&&e[a].errors.length){var n=e[a].errors[0].message,c=e[a].errors[0].field;this.$message.error(n);var r=this.$jQuery("#"+c).offset().top;this.$jQuery("body,html").animate({scrollTop:r-20},1e3)}},FormatDateTime:function(e,t){return e?(t||(t="YYYY-MM-DD HH:mm:SS"),k.a.unix(e).format(t)):"--"},FormatDateFromNow:function(e){return e?k.a.unix(e).fromNow():"--"},Md5Sum:function(e){return h()(e)},ResetPagination:function(e,t){t||(t=-1),e.total+=t;var a=Math.ceil(e.total/e.pageSize);e.current>a&&(e.current=a)},SetLoginToken:function(e){return O.a.set(w,e)},GetLoginToken:function(){return O.a.get(w)},DeleteLoginToken:function(){return O.a.remove(w)},CheckPriv:function(e){return this.$store.getters["account/getPriv"].indexOf(e)>-1},CheckPrivs:function(e){var t=this;if(!e||!e.length)return!1;var a=!1;return e.forEach(function(e){t.CheckPriv(e)&&(a=!0)}),a},T:function(e){return this.$root.Lang[e]?this.$root.Lang[e]:e}},R=a("0209"),S={apply_create:"创建上线单",apply_update:"更新并提交上线单",apply_audit:"审核上线单",apply_unaudit:"取消审核上线单",apply_discard:"废弃上线单",apply_start:"上线操作",apply_end:"上线结束",apply_stop:"上线终止",fetch_repo_code_files:"更新代码仓库文件",reset_repo_to_version:"拉取代码文件",pack_repo_code_files:"打包"},D={Priv:R["a"],Lang:S},M=(a("202f"),a("73bf"),a("4f87"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M542.592 71.72608c-2.2784-0.5632-4.44928-1.3824-7.02464-1.41824-1.4592 0-2.72896 0.63488-4.11136 0.86016-5.71904-0.18944-11.28448-0.86016-17.03936-0.86016-262.68672 0-476.42112 213.7344-476.42112 476.42112 0.03584 159.85152 79.5904 308.23424 212.8384 396.90752a28.01152 28.01152 0 0 0 38.82496-7.808c8.55552-12.89216 5.12-30.30528-7.77216-38.8608a421.16096 421.16096 0 0 1-112.06144-109.59872l39.31136-24.77568a28.01664 28.01664 0 0 0 8.74496-38.63552 28.0064 28.0064 0 0 0-38.67136-8.74496l-38.14912 24.064c-27.08992-52.50048-42.5984-110.75584-45.66016-171.2896h48.01536c15.46752 0 28.02688-12.55424 28.02688-28.02688s-12.55424-28.02688-28.02688-28.02688H95.8464a416.8704 416.8704 0 0 1 52.50048-171.10016l36.24448 23.69024c4.74624 3.10272 10.05056 4.5568 15.2832 4.5568a28.06272 28.06272 0 0 0 23.50592-12.70272 27.99104 27.99104 0 0 0-8.14592-38.784l-35.98336-23.50592c29.44512-38.97344 65.31584-72.75008 106.30656-99.5072l31.0528 48.38912a27.92448 27.92448 0 0 0 23.61856 12.89216 28.02688 28.02688 0 0 0 23.53664-43.15648l-29.1072-45.39904c52.72576-25.10848 111.31392-39.68512 173.30688-40.61696l0.22528 33.7408a28.02176 28.02176 0 0 0 28.02688 27.83744h0.18944a28.03712 28.03712 0 0 0 27.83744-28.2112l-0.18944-30.4896c53.50912 6.31296 103.99232 22.49216 149.4272 47.04256l-28.50816 38.33856a27.98592 27.98592 0 0 0 5.75488 39.19872 27.86816 27.86816 0 0 0 16.6656 5.5296 27.93472 27.93472 0 0 0 22.53312-11.32032l30.86336-41.51296a424.46848 424.46848 0 0 1 90.7264 89.7536l-32.09728 20.96128a28.03712 28.03712 0 0 0-8.14592 38.784 28.03712 28.03712 0 0 0 38.78912 8.14592l32.13312-21.00224c28.09856 50.66752 45.8496 107.72992 50.85696 168.41216h-46.59712a28.03712 28.03712 0 0 0-28.02688 28.02688 28.03712 28.03712 0 0 0 28.02688 28.02688h47.04256c-3.06176 60.61056-18.60608 118.82496-45.66016 171.2896l-38.14912-24.02816a28.0064 28.0064 0 0 0-38.67136 8.74496 28.03712 28.03712 0 0 0 8.74496 38.63552l39.27552 24.77568a421.89824 421.89824 0 0 1-114.26816 111.08864 28.032 28.032 0 0 0-8.06912 38.82496 28.04736 28.04736 0 0 0 23.46496 12.63104 27.8784 27.8784 0 0 0 15.31904-4.59776c134.85568-88.48384 215.37792-237.4656 215.37792-398.58688-0.0256-253.19936-198.70208-460.28288-448.27136-475.00288z"}}),a("path",{attrs:{d:"M730.20928 358.8096c-10.19904-11.6224-27.91424-12.74368-39.57248-2.53952l-127.94368 112.39936c-14.08512-8.74496-30.53056-14.01344-48.27648-14.01344-50.74432 0-92.07296 41.2928-92.07296 92.07296s41.28768 92.07296 92.07296 92.07296c50.78016 0 92.07296-41.2928 92.07296-92.07296 0-12.63104-2.57536-24.62208-7.17312-35.6096l128.31744-112.77312a27.9296 27.9296 0 0 0 2.57536-39.53664z m-215.75168 223.93856c-19.84 0-36.0192-16.1792-36.0192-36.0192s16.1792-36.0192 36.0192-36.0192 36.0192 16.1792 36.0192 36.0192-16.1792 36.0192-36.0192 36.0192z"}})])])}),x=[],I={name:"IconDashboard"},T=I,U=Object(s["a"])(T,M,x,!1,null,null,null);U.options.__file="Dashboard.vue";var V=U.exports,Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M1005.226667 83.626667c-10.24-6.826667-22.186667-8.533333-34.133334-3.413334L34.133333 501.76c-11.946667 5.12-20.48 17.066667-20.48 30.72S22.186667 558.08 34.133333 563.2l273.066667 124.586667c17.066667 8.533333 37.546667 0 46.08-17.066667s0-37.546667-17.066667-46.08l-204.8-92.16 715.093334-320.853333-433.493334 486.4s0 1.706667-1.706666 1.706666l-1.706667 1.706667-1.706667 1.706667V708.266667c0 1.706667 0 1.706667-1.706666 3.413333v8.533333l-5.12 254.293334c0 13.653333 6.826667 25.6 18.773333 30.72 5.12 3.413333 10.24 3.413333 15.36 3.413333 6.826667 0 13.653333-1.706667 20.48-6.826667l201.386667-146.773333 211.626666 95.573333c5.12 1.706667 8.533333 3.413333 13.653334 3.413334 5.12 0 11.946667-1.706667 17.066666-5.12 10.24-5.12 15.36-15.36 17.066667-25.6l104.106667-808.96c0-10.24-6.826667-22.186667-15.36-30.72zM469.333333 907.946667l3.413334-133.12 109.226666 51.2-112.64 81.92zM853.333333 870.4l-358.4-160.426667 442.026667-498.346666L853.333333 870.4z"}})])])},A=[],$={name:"IconSend"},W=$,B=Object(s["a"])(W,Y,A,!1,null,null,null);B.options.__file="Send.vue";var H=B.exports,N=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M512.032 1023.96736a118.495926 118.495926 0 0 1-54.399966-12.991992L21.536307 785.055509a38.463976 38.463976 0 0 1 35.327977-68.287957l436.095728 225.919859c11.391993 6.015996 26.751983 6.079996 38.079976 0l436.095728-225.919859a38.559976 38.559976 0 0 1 51.775967 16.44799c9.727994 18.879988 2.431998 41.983974-16.44799 51.839967l-436.095727 225.919859a119.039926 119.039926 0 0 1-54.335966 12.991992m0-212.543867a118.495926 118.495926 0 0 1-54.399966-12.991992L21.536307 572.447642a38.335976 38.335976 0 0 1-16.38399-51.711967 38.175976 38.175976 0 0 1 51.711967-16.44799l436.095728 225.855859c11.391993 6.079996 26.751983 6.079996 38.079976 0l436.095728-225.855859a38.335976 38.335976 0 0 1 51.775967 16.44799 38.335976 38.335976 0 0 1-16.44799 51.711967l-436.095727 225.983859a119.039926 119.039926 0 0 1-54.335966 12.991992m0-204.351872c-17.983989 0-35.967978-4.159997-51.967968-12.479993l-407.999745-211.391867C20.448307 366.815771 0.800319 336.28779 0.800319 303.51981s19.647988-63.29596 51.263968-79.67995L460.064032 12.447992c31.99998-16.57599 71.871955-16.57599 103.935936 0l407.999745 211.391868c31.61598 16.38399 51.199968 46.911971 51.199968 79.67995s-19.583988 63.29596-51.199968 79.679951l-407.999745 211.391867c-15.99999 8.319995-33.983979 12.479992-51.967968 12.479993m0-530.335669c-5.823996 0-11.711993 1.343999-16.70399 3.903998L87.328265 292.031817c-5.887996 3.071998-9.727994 7.551995-9.727994 11.455993s3.839998 8.383995 9.727994 11.455993l407.999745 211.391868c10.047994 5.119997 23.359985 5.119997 33.40798 0l407.999745-211.391868c5.887996-3.071998 9.663994-7.551995 9.663994-11.455993s-3.775998-8.383995-9.663994-11.455993L528.73599 80.63995a37.055977 37.055977 0 0 0-16.70399-3.903998"}})])])},J=[],G={name:"IconProject"},F=G,q=Object(s["a"])(F,N,J,!1,null,null,null);q.options.__file="Project.vue";var Q=q.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}})])])},Z=[],X={name:"IconUser"},ee=X,te=Object(s["a"])(ee,K,Z,!1,null,null,null);te.options.__file="User.vue";var ae=te.exports,ne=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 0 0 308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 0 0-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}})])])},ce=[],re={name:"IconShell"},se=re,le=Object(s["a"])(se,ne,ce,!1,null,null,null);le.options.__file="Shell.vue";var oe=le.exports,ie=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M93.105 74.83C41.905 74.83 0 116.737 0 167.937v93.105c0 51.2 41.905 93.027 93.105 93.027h837.79c51.2 0 93.105-41.827 93.105-93.027v-93.105c0-51.2-41.905-93.105-93.105-93.105H93.105z m872.606 101.062v82.55c0 16.541-19.771 43.796-47.734 43.796H100.352c-33.32 0-45.45-27.727-45.45-49.468v-76.878c0-16.778 19.692-45.923 45.45-45.923h817.703c27.176 0 47.735 18.275 47.735 45.923z m-90.742 85.07a46.474 46.474 0 1 0 0-93.026 46.474 46.474 0 0 0 0 93.105z m-781.864 144.7C41.905 405.662 0 447.567 0 498.767v93.105c0 51.2 41.905 93.026 93.105 93.026h837.79c51.2 0 93.105-41.826 93.105-93.026v-93.105c0-51.2-41.905-93.105-93.105-93.105H93.105z m872.606 101.06v82.55c0 16.542-19.771 43.796-47.734 43.796H100.352c-33.32 0-45.45-27.726-45.45-49.467v-76.879c0-16.777 19.692-45.922 45.45-45.922h817.703c27.176 0 47.735 18.274 47.735 45.922z m-90.742 85.071a46.474 46.474 0 1 0 0-93.026 46.474 46.474 0 0 0 0 93.105z m-781.864 144.7C41.905 736.492 0 778.397 0 829.597v93.105c0 51.2 41.905 93.026 93.105 93.026h837.79c51.2 0 93.105-41.826 93.105-93.026v-93.105c0-51.2-41.905-93.106-93.105-93.106H93.105z m872.685 101.06v82.55c0 16.542-19.772 43.796-47.735 43.796H100.352c-33.32 0-45.45-27.727-45.45-49.467v-76.879c0-16.778 19.692-45.922 45.45-45.922h817.703c27.176 0 47.735 18.274 47.735 45.922z m-90.743 85.071a46.474 46.474 0 1 0 0-93.026 46.474 46.474 0 0 0 0 93.105z"}})])])},ue=[],de={name:"IconServer"},fe=de,he=Object(s["a"])(fe,ie,ue,!1,null,null,null);he.options.__file="Server.vue";var me=he.exports,je=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M1017 430.9l-3.5-21.9-82.9-27.7c-7.9-25.2-18-49.7-30.2-73l39.1-78.2-13-18C894.6 168 856 129.4 811.9 97.4l-18-13-78.3 39.1c-23.3-12.2-47.7-22.3-73-30.2L615 10.6l-21.9-3.5c-58.9-9.4-103.3-9.4-162.2 0L409 10.6l-27.7 82.9c-25.2 7.9-49.7 17.9-73 30.2l-78.2-39.1-18 13c-44.1 31.9-82.7 70.5-114.7 114.7l-13 18 39.1 78.2c-12.2 23.3-22.3 47.7-30.2 73L10.5 409 7 430.9c-4.7 29.5-7 56-7 81.1 0 25.1 2.3 51.6 7 81.1l3.5 21.9 82.9 27.6c7.8 25.2 17.9 49.7 30.2 73l-39.1 78.2 13 18c17.3 23.9 34.5 44.2 52.4 62.2 18 18 38.3 35.1 62.2 52.4l18 13 78.2-39.1c23.3 12.3 47.7 22.4 73 30.2l27.6 82.9 21.9 3.5c29.5 4.7 56 7 81.1 7 25.1 0 51.6-2.3 81.1-7l21.9-3.5 27.6-82.9c25.2-7.9 49.7-18 73-30.2l78.2 39.1 18-13c23.9-17.3 44.2-34.4 62.2-52.5 18-18 35.1-38.3 52.4-62.2l13-18-39.1-78.2c12.3-23.3 22.4-47.7 30.2-73l82.9-27.6 3.5-21.9c4.7-29.5 7-56 7-81.1 0.2-25-2.1-51.5-6.8-81z m-69.2 128.9l-77.5 25.8-5 19.2c-8.4 32.2-21.1 63-37.8 91.5l-10 17.1 36.5 73.1c-10.5 13.3-21 25.2-31.7 35.9s-22.5 21.1-35.9 31.6l-73.1-36.5-17.1 10c-28.5 16.7-59.2 29.4-91.5 37.8l-19.2 5-25.8 77.5c-34 4.1-61.6 4.1-95.6 0l-25.8-77.5-19.2-5c-32.2-8.4-63-21.1-91.5-37.8l-17.1-10-72.9 36.5c-13.3-10.5-25.2-21-35.9-31.7s-21.2-22.6-31.7-35.9l36.5-73-10-17.1c-16.7-28.5-29.4-59.3-37.8-91.5l-5-19.2-77.5-25.8c-2-17-3-32.8-3-47.8s1-30.8 3-47.8l77.5-25.8 5-19.2c8.4-32.2 21.2-63 37.8-91.5l10-17.1-36.5-72.9c20-25 42.7-47.6 67.6-67.6l72.9 36.5 17.1-10c28.5-16.7 59.3-29.4 91.5-37.8l19.2-5 25.8-77.5c34-4 61.6-4 95.6 0l25.8 77.5 19.2 5c32.2 8.4 63 21.2 91.5 37.8l17.1 10 72.9-36.5c25 20 47.6 42.7 67.6 67.6l-36.5 72.9 10 17.1c16.7 28.5 29.4 59.3 37.8 91.5l5 19.2 77.5 25.8c2 17 3 32.8 3 47.8 0.3 15-0.7 30.8-2.8 47.8zM512 365.7c-80.8 0-146.3 65.5-146.3 146.3 0 80.8 65.5 146.3 146.3 146.3S658.3 592.8 658.3 512c0-80.8-65.5-146.3-146.3-146.3z m0 219.4c-40.3 0-73.1-32.8-73.1-73.1s32.8-73.1 73.1-73.1 73.1 32.8 73.1 73.1-32.8 73.1-73.1 73.1z"}})])])},be=[],pe={name:"IconSetting"},ve=pe,_e=Object(s["a"])(ve,je,be,!1,null,null,null);_e.options.__file="Setting.vue";var Ee=_e.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M675.51567873 486.26142105C675.51567873 496.10264304 671.91984725 504.61908465 664.72818603 511.81074584L410.37046358 766.16846835C403.17880236 773.36012952 394.66236075 776.95596099 384.82113877 776.95596099 374.97991676 776.95596099 366.46347518 773.36012952 359.27181397 766.16846835 352.08015275 758.97680712 348.48432127 750.46036553 348.48432127 740.61914353L348.48432127 231.90369855C348.48432127 222.06247657 352.08015275 213.54603496 359.27181397 206.35437378 366.46347518 199.16271254 374.97991676 195.56688109 384.82113877 195.56688109 394.66236075 195.56688109 403.17880236 199.16271254 410.37046358 206.35437378L664.72818603 460.71209625C671.91984725 467.90375745 675.51567873 476.42019906 675.51567873 486.26142105ZM675.51567873 486.26142105"}})])])},ye=[],ke={name:"IconCaretRight"},ze=ke,Ce=Object(s["a"])(ze,ge,ye,!1,null,null,null);Ce.options.__file="CaretRight.vue";var Le=Ce.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M384.023552 384.083968l256.016384 0 0 256.016384-256.016384 0 0-256.016384Z"}})])])},we=[],Pe={name:"IconSquare"},Re=Pe,Se=Object(s["a"])(Re,Oe,we,!1,null,null,null);Se.options.__file="Square.vue";var De=Se.exports,Me=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M112 224h800c26.5 0 48-21.5 48-48s-21.5-48-48-48H112c-26.5 0-48 21.5-48 48s21.5 48 48 48z m0 336h480c26.5 0 48-21.5 48-48s-21.5-48-48-48H112c-26.5 0-48 21.5-48 48s21.5 48 48 48z m669.3-204.4c-1.5-1.3-3.3-2-5.3-2-4.4 0-8 3.6-8 8v300.3c0 1.9 0.7 3.8 2 5.3 2.9 3.3 8 3.7 11.3 0.8l165.1-144c0.5-0.5 1.1-1 1.5-1.5 5.8-6.7 5.1-16.8-1.5-22.6L781.3 355.6zM912 800H112c-26.5 0-48 21.5-48 48s21.5 48 48 48h800c26.5 0 48-21.5 48-48s-21.5-48-48-48z"}})])])},xe=[],Ie={name:"IconMenuFold"},Te=Ie,Ue=Object(s["a"])(Te,Me,xe,!1,null,null,null);Ue.options.__file="MenuFold.vue";var Ve=Ue.exports,Ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M912 800l-800 0c-26.5 0-48 21.5-48 48s21.5 48 48 48L912 896c26.5 0 48-21.5 48-48s-21.5-48-48-48zM912 464l-480 0c-26.5 0-48 21.5-48 48s21.5 48 48 48L912 560c26.5 0 48-21.5 48-48s-21.5-48-48-48zM242.7 668.4c1.5 1.3 3.3 2 5.3 2 4.4 0 8-3.6 8.00000001-8l0-300.3c0-1.89999999-0.7-3.8-2.00000002-5.3-2.9-3.3-8-3.7-11.29999999-0.8l-165.1 144c-0.5 0.5-1.1 1-1.5 1.5-5.8 6.69999999-5.1 16.8 1.5 22.6L242.7 668.4zM112 224L912 224c26.5 0 48-21.5 48-48s-21.5-48-48-48l-800 0c-26.5 0-48 21.5-48 48s21.5 48 48 48z"}})])])},Ae=[],$e={name:"IconMenuUnfold"},We=$e,Be=Object(s["a"])(We,Ye,Ae,!1,null,null,null);Be.options.__file="MenuUnfold.vue";var He=Be.exports,Ne=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M481.15039062 697.04821778L172.75317383 388.65100097c-17.05627442-17.05627442-17.05627442-44.64294434 0-61.69921874 17.00683594-17.00683594 44.64294434-17.05627442 61.69921875 0L512 604.49938965l277.54760742-277.54760743c17.00683594-17.00683594 44.64294434-17.05627442 61.69921875 1e-8 17.05627442 17.05627442 17.00683594 44.64294434 0 61.69921875l-308.3972168 308.39721679C525.79333497 714.05505372 498.20666503 714.05505372 481.15039062 697.04821778z"}})])])},Je=[],Ge={name:"IconCaretDown"},Fe=Ge,qe=Object(s["a"])(Fe,Ne,Je,!1,null,null,null);qe.options.__file="CaretDown.vue";var Qe=qe.exports,Ke=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M824.2 699.9a301.55 301.55 0 0 0-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 0 1 612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 0 0 8-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 0 1 612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}})])])},Ze=[],Xe={name:"IconTeam"},et=Xe,tt=Object(s["a"])(et,Ke,Ze,!1,null,null,null);tt.options.__file="Team.vue";var at=tt.exports,nt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 0 1-112.7 75.9A352.8 352.8 0 0 1 512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 0 1-112.7-75.9 353.28 353.28 0 0 1-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z"}})])])},ct=[],rt={name:"IconLogout"},st=rt,lt=Object(s["a"])(st,nt,ct,!1,null,null,null);lt.options.__file="Logout.vue";var ot=lt.exports,it=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}})])])},ut=[],dt={name:"IconQuestion"},ft=dt,ht=Object(s["a"])(ft,it,ut,!1,null,null,null);ht.options.__file="Question.vue";var mt=ht.exports,jt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}})])])},bt=[],pt={name:"IconDelete"},vt=pt,_t=Object(s["a"])(vt,jt,bt,!1,null,null,null);_t.options.__file="Delete.vue";var Et=_t.exports,gt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M832 320c0-70.6-57.4-128-128-128s-128 57.4-128 128c0 47.4 25.8 88.6 64 110.8v17.2c0 39.8-15.6 67.4-50.6 89.8-30.8 19.6-76.2 34.2-135 43-28 4.2-51.4 12-70.4 21.4V302.8c38.2-22.2 64-63.4 64-110.8 0-70.6-57.4-128-128-128S192 121.4 192 192c0 47.4 25.8 88.6 64 110.8v418.4c-38.2 22.2-64 63.4-64 110.8 0 70.6 57.4 128 128 128s128-57.4 128-128c0-33.2-12.6-63.4-33.4-86.2 3.8-9.8 19.4-32.6 58.8-38.6 77.6-11.6 137.8-31.8 184.6-61.6 72-45.6 110-114 110-197.6v-17.2c38.2-22.2 64-63.4 64-110.8zM320 112c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z m0 800c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z m384-512c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}})])])},yt=[],kt={name:"IconBranch"},zt=kt,Ct=Object(s["a"])(zt,gt,yt,!1,null,null,null);Ct.options.__file="Branch.vue";var Lt=Ct.exports,Ot=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("i",{staticClass:"hey-icon"},[a("svg",{attrs:{viewBox:"0 0 1024 1024",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}},[a("path",{attrs:{d:"M456 708c-6.3 0-12.7-2.1-17.9-6.5-11.9-9.9-13.5-27.6-3.6-39.4l113.7-136.4-129.1-43c-8.8-3-15.5-10-18-18.9-2.6-8.9-0.5-18.5 5.4-25.6l140-168c9.9-11.8 27.6-13.4 39.4-3.6 11.9 9.9 13.5 27.6 3.6 39.4L475.8 442.4l129.1 43c8.8 3 15.5 10 18 18.9 2.6 8.9 0.5 18.5-5.4 25.6l-140 168C472 704.6 464 708 456 708z"}}),a("path",{attrs:{d:"M512 120l336 145.7v188.7c0 304.3-257.2 420.9-336 449.4-78.8-28.5-336-145.2-336-449.4l0.2-189.3L512 120m0-56c-7.5 0-15 1.5-22.1 4.6l-336 145.3c-20.6 8.9-33.9 29.3-33.9 51.9v188.7c0 344.2 294.3 473.7 372.9 502.1 6.3 2.3 12.7 3.4 19.1 3.4s12.8-1.1 19.1-3.4C609.7 928.2 904 798.7 904 454.5V265.8c0-22.6-13.4-43-33.9-51.9l-336-145.3C527 65.5 519.5 64 512 64z"}})])])},wt=[],Pt={name:"IconVerify"},Rt=Pt,St=Object(s["a"])(Rt,Ot,wt,!1,null,null,null);St.options.__file="Verify.vue";var Dt=St.exports,Mt=[V,H,Q,ae,oe,me,Ee,Le,De,Ve,He,Qe,at,ot,mt,Et,Lt,Dt],xt=function(e){Mt.forEach(function(t){e.component(t.name,t)})},It={install:xt};a("8894");n["default"].use(It),n["default"].use(C.a),k.a.locale("zh-CN"),n["default"].config.productionTip=!1,n["default"].prototype.$jQuery=g.a,new n["default"]({router:u["a"],store:_,methods:P,data:D,render:function(e){return e(i)}}).$mount("#app")},"64a9":function(e,t,a){},"73bf":function(e,t,a){},8894:function(e,t,a){},a18c:function(e,t,a){"use strict";a.d(t,"b",function(){return o});var n=a("2b0e"),c=a("8c4f"),r=a("0209");n["default"].use(c["a"]);var s=function(e){return function(){return a("1a5d")("./"+e+".vue")}},l=[{path:"/login",name:"login",component:s("Login")}],o=[{path:"/",component:s("Layer"),meta:{single:!0},redirect:{name:"dashboard"},children:[{path:"dashboard",name:"dashboard",meta:{title:"控制台",icon:"icon-dashboard"},component:s("Dashboard")}]},{path:"/deploy",name:"deploy",component:s("Layer"),meta:{title:"发布",icon:"icon-send"},children:[{path:"apply",name:"deployApply",meta:{title:"提交上线申请",role:[r["a"].DEPLOY_APPLY]},component:s("deploy/Apply")},{path:"deploy",name:"deployDeploy",meta:{title:"上线单管理",role:[r["a"].DEPLOY_VIEW_MY,r["a"].DEPLOY_VIEW_ALL]},component:s("deploy/Deploy")},{path:"release",name:"deployRelease",meta:{title:"部署上线单",hide:!0,role:[r["a"].DEPLOY_DEPLOY_MY,r["a"].DEPLOY_DEPLOY_ALL]},component:s("deploy/Release")}]},{path:"/project",name:"project",component:s("Layer"),meta:{title:"项目",icon:"icon-project"},children:[{path:"space",name:"projectSpace",meta:{title:"项目空间",role:[r["a"].PROJECT_SPACE_VIEW]},component:s("project/Space")},{path:"project",name:"projectProject",meta:{title:"项目管理",hide:!0,role:[r["a"].PROJECT_VIEW]},component:s("project/Project")},{path:"user",name:"projectUser",meta:{title:"成员管理",hide:!0,role:[r["a"].PROJECT_USER_VIEW]},component:s("project/User")}]},{path:"/user",name:"user",component:s("Layer"),meta:{title:"用户",icon:"icon-team"},children:[{path:"group",name:"userGroup",meta:{title:"角色管理",role:[r["a"].USER_ROLE_VIEW]},component:s("user/Group")},{path:"list",name:"userList",meta:{title:"用户管理",role:[r["a"].USER_VIEW]},component:s("user/User")}]},{path:"/server",name:"server",component:s("Layer"),meta:{title:"服务器",icon:"icon-server"},children:[{path:"group",name:"serverGroup",meta:{title:"集群管理",role:[r["a"].SERVER_GROUP_VIEW]},component:s("server/Group")},{path:"list",name:"serverList",meta:{title:"服务器管理",role:[r["a"].SERVER_VIEW]},component:s("server/Server")}]}],i=new c["a"]({routes:l.concat(o),scrollBehavior:function(){return{y:0}},mode:"history"});t["a"]=i}}); \ No newline at end of file diff --git a/public/static/1547366781/js/chunk-16466a44.9776d051.js b/public/static/1547565111/js/chunk-16466a44.9776d051.js similarity index 100% rename from public/static/1547366781/js/chunk-16466a44.9776d051.js rename to public/static/1547565111/js/chunk-16466a44.9776d051.js diff --git a/public/static/1547565111/js/chunk-17f71a09.db3decac.js b/public/static/1547565111/js/chunk-17f71a09.db3decac.js new file mode 100644 index 0000000..e0c23cb --- /dev/null +++ b/public/static/1547565111/js/chunk-17f71a09.db3decac.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17f71a09"],{"214f":function(t,e,a){"use strict";var i=a("32e9"),n=a("2aba"),o=a("79e5"),r=a("be13"),s=a("2b4c");t.exports=function(t,e,a){var l=s(t),c=a(r,l,""[t]),u=c[0],d=c[1];o(function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})&&(n(String.prototype,t,u),i(RegExp.prototype,l,2==e?function(t,e){return d.call(t,this,e)}:function(t){return d.call(t,this)}))}},"386d":function(t,e,a){a("214f")("search",1,function(t,e,a){return[function(a){"use strict";var i=t(this),n=void 0==a?void 0:a[e];return void 0!==n?n.call(a,i):new RegExp(a)[e](String(i))},a]})},39388:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-card",{staticClass:"app-card",attrs:{bordered:!1}},[a("div",{staticClass:"app-btn-group"},[a("a-row",{attrs:{gutter:10}},[a("a-col",{attrs:{span:4}},[t.$root.CheckPriv(t.$root.Priv.SERVER_NEW)?a("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:t.handleOpenAddServerDialog}},[t._v("新增服务器")]):t._e()],1),a("a-col",{attrs:{span:10}}),a("a-col",{attrs:{span:4}},[a("a-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",showSearch:"",placeholder:"搜索指定集群",notFoundContent:"无集群数据",optionFilterProp:"children"},model:{value:t.search.groupId,callback:function(e){t.$set(t.search,"groupId",e)},expression:"search.groupId"}},t._l(t.dialogGroupList,function(e){return a("a-select-option",{attrs:{value:e.id}},[t._v(t._s(e.name))])}))],1),a("a-col",{attrs:{span:6}},[a("a-input-search",{attrs:{placeholder:"关键词搜索,ID、名称、IP",enterButton:""},on:{search:t.handleSearch},model:{value:t.search.keyword,callback:function(e){t.$set(t.search,"keyword",e)},expression:"search.keyword"}})],1)],1)],1),a("a-table",{attrs:{columns:t.tableColumns,dataSource:t.tableSource,pagination:t.pagination,loading:t.tableLoading},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"group_id",fn:function(e,i){return[t.groupList[e]?a("span",[t._v(t._s(t.groupList[e].name))]):a("span",[a("span",{staticClass:"app-line-through"},[t._v("已删除")])])]}},{key:"op",fn:function(e,i){return a("span",{},[t.$root.CheckPriv(t.$root.Priv.SERVER_EDIT)?a("span",{staticClass:"app-link app-op",on:{click:function(e){t.handleOpenEditServerDialog(i.id)}}},[a("a-icon",{attrs:{type:"edit"}}),t._v("编辑")],1):t._e(),t.$root.CheckPriv(t.$root.Priv.SERVER_DEL)?a("a-popconfirm",{attrs:{title:"确定要删除此服务器吗?",okText:"删除",cancelText:"取消"},on:{confirm:function(e){t.handleDeleteServer(i.id)}}},[a("span",{staticClass:"app-link app-op app-remove"},[a("a-icon",{attrs:{type:"delete"}}),t._v("删除")],1)]):t._e()],1)}}])})],1),a("a-modal",{attrs:{title:t.dialogTitle,visible:t.dialogVisible,confirmLoading:t.dialogConfirmLoading,keyboard:!1,maskClosable:!1,okText:"确定",cancelText:"取消",destroyOnClose:!0},on:{ok:t.dialogSubmit,cancel:t.dialogCancel}},[a("a-spin",{attrs:{spinning:t.dialogLoading}},[a("server-update-component",{ref:"groupUpdateRef",attrs:{"group-list":t.dialogGroupList,detail:t.dialogDetail}})],1)],1)],1)},n=[],o=(a("386d"),a("ac6a"),a("92fa")),r=a.n(o),s=(a("7f7f"),a("24b4")),l={render:function(){var t=arguments[0],e=this.form,a=e.getFieldDecorator,i=(e.getFieldValue,{labelCol:{span:6},wrapperCol:{span:15}}),n=[];return this.groupList.forEach(function(e){n.push(t("a-select-option",{attrs:{value:e.id}},[e.name]))}),a("id",{initialValue:this.detail.id}),t("a-form",[t("a-form-item",r()([{props:i},{attrs:{label:"所属集群"}}]),[a("group_id",{rules:[{required:!0,message:"请选择服务器所属分组"}],initialValue:this.detail.group_id})(t("a-select",{attrs:{allowClear:!0,showSearch:!0,placeholder:"支持关键词搜索",notFoundContent:"无分组数据",optionFilterProp:"children"}},[n]))]),t("a-form-item",r()([{props:i},{attrs:{label:"服务器名称"}}]),[a("name",{rules:[{required:!0,message:"服务器名称不能为空"}],initialValue:this.detail.name})(t("a-input",{attrs:{autocomplete:"off",placeholder:"请输入服务器名称"}}))]),t("a-form-item",r()([{props:i},{attrs:{label:"IP/域名"}}]),[a("ip",{rules:[{required:!0,message:"服务器IP或域名不能为空"}],initialValue:this.detail.ip})(t("a-input",{attrs:{autocomplete:"off",placeholder:"请输入服务器IP或域名"}}))]),t("a-form-item",r()([{props:i},{attrs:{label:"ssh端口"}}]),[a("ssh_port",{rules:[{required:!0,type:"integer",min:1,max:65535,message:"请输入正确ssh端口号,1-65535之间的数字"}],initialValue:this.detail.ssh_port?this.detail.ssh_port:22,normalize:function(t){var e=parseInt(t);return isNaN(e)?t:e}})(t("a-input",{attrs:{autocomplete:"off",placeholder:"请输入ssh端口"}}))])])},props:{detail:{default:function(){return{}},type:Object},groupList:{default:function(){return[]},type:Array}}},c=s["Form"].create()(l),u=a("aa22"),d={data:function(){return{tableColumns:[{dataIndex:"id",title:"ID",width:"6%"},{dataIndex:"name",title:"名称"},{dataIndex:"group_id",title:"集群",width:"20%",scopedSlots:{customRender:"group_id"}},{dataIndex:"ip",title:"IP/域名",width:"18%"},{dataIndex:"ssh_port",title:"SSH Port",width:"10%"},{dataIndex:"op",title:"操作",width:"20%",align:"right",scopedSlots:{customRender:"op"}}],tableSource:[],pagination:{pageSize:10,current:1,total:0},tableLoading:!1,dialogTitle:"",dialogVisible:!1,dialogConfirmLoading:!1,dialogDetail:{},dialogGroupList:[],dialogLoading:!1,search:{keyword:"",groupId:void 0}}},components:{ServerUpdateComponent:c},computed:{groupList:function(){var t={};return this.dialogGroupList.forEach(function(e){t[e.id]=e}),t}},methods:{handleSearch:function(t){this.search.keyword=t,this.pagination.current=1,this.handleTableChange(this.pagination)},handleTableChange:function(t){this.pagination.current=t.current,this.getDataList({page:t.current,pageSize:t.pageSize})},handleOpenAddServerDialog:function(){this.dialogTitle="新增服务器",this.dialogVisible=!0,this.dialogDetail={}},handleOpenEditServerDialog:function(t){this.dialogTitle="编辑服务器信息",this.dialogVisible=!0,this.dialogDetail={},this.getDataDetail(t)},handleDeleteServer:function(t){var e=this;Object(u["b"])({id:t}).then(function(t){e.$message.success("删除成功",1),e.$root.ResetPagination(e.pagination),e.handleTableChange(e.pagination)})},dialogCancel:function(){this.dialogVisible=!1},dialogSubmit:function(){var t=this;this.$refs.groupUpdateRef.validateFields(function(e,a){e||(t.dialogConfirmLoading=!0,t.dialogDetail.id?Object(u["j"])(a).then(function(e){t.$message.success("服务器信息更新成功",1,function(){t.dialogCancel(),t.dialogConfirmLoading=!1,t.handleTableChange(t.pagination)})}).catch(function(e){t.dialogConfirmLoading=!1}):Object(u["h"])(a).then(function(e){t.$message.success("服务器信息创建成功",1,function(){t.dialogCancel(),t.dialogConfirmLoading=!1,t.handleTableChange(t.pagination)})}).catch(function(e){t.dialogConfirmLoading=!1}))})},getDataDetail:function(t){var e=this;this.dialogLoading=!0,Object(u["e"])({id:t}).then(function(t){e.dialogLoading=!1,e.dialogDetail=t}).catch(function(t){e.dialogLoading=!1})},getDataList:function(t){var e=this;this.tableLoading=!0;var a=(t.page-1)*t.pageSize,i=this.search.groupId?this.search.groupId:0,n=this.search.keyword;Object(u["f"])({group_id:i,keyword:n,offset:a,limit:t.pageSize}).then(function(t){e.tableLoading=!1,e.pagination.total=t.total,e.tableSource=t.list}).catch(function(t){e.tableLoading=!1})},getDataGroupList:function(){var t=this;Object(u["d"])({offset:0,limit:9999}).then(function(e){e.list&&(t.dialogGroupList=e.list)})}},mounted:function(){this.getDataGroupList();var t=this.$route.query.op,e=this.$route.query.id;"edit"==t&&e>0?(this.handleOpenEditServerDialog(e),this.handleSearch(e)):this.handleTableChange(this.pagination)}},p=d,g=a("2877"),h=Object(g["a"])(p,i,n,!1,null,null,null);h.options.__file="Server.vue";e["default"]=h.exports},"92fa":function(t,e){var a=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce(function(t,e){var n,o,r,s,l;for(r in e)if(n=t[r],o=e[r],n&&a.test(r))if("class"===r&&("string"===typeof n&&(l=n,t[r]=n={},n[l]=!0),"string"===typeof o&&(l=o,e[r]=o={},o[l]=!0)),"on"===r||"nativeOn"===r||"hook"===r)for(s in o)n[s]=i(n[s],o[s]);else if(Array.isArray(n))t[r]=n.concat(o);else if(Array.isArray(o))t[r]=[n].concat(o);else for(s in o)n[s]=o[s];else t[r]=e[r];return t},{})}},aa22:function(t,e,a){"use strict";a.d(e,"g",function(){return n}),a.d(e,"i",function(){return o}),a.d(e,"d",function(){return r}),a.d(e,"c",function(){return s}),a.d(e,"a",function(){return l}),a.d(e,"h",function(){return c}),a.d(e,"j",function(){return u}),a.d(e,"f",function(){return d}),a.d(e,"e",function(){return p}),a.d(e,"b",function(){return g});var i=a("e1d2");function n(t){return Object(i["b"])("/server/group/new",t)}function o(t){return Object(i["b"])("/server/group/update",t)}function r(t){return Object(i["a"])("/server/group/list",t)}function s(t){return Object(i["a"])("/server/group/detail",t)}function l(t){return Object(i["b"])("/server/group/delete",t)}function c(t){return Object(i["b"])("/server/new",t)}function u(t){return Object(i["b"])("/server/update",t)}function d(t){return Object(i["a"])("/server/list",t)}function p(t){return Object(i["a"])("/server/detail",t)}function g(t){return Object(i["b"])("/server/delete",t)}}}]); \ No newline at end of file diff --git a/public/static/1547366781/js/chunk-2320bf16.ff114299.js b/public/static/1547565111/js/chunk-2320bf16.beca9fa4.js similarity index 91% rename from public/static/1547366781/js/chunk-2320bf16.ff114299.js rename to public/static/1547565111/js/chunk-2320bf16.beca9fa4.js index b69a603..2a20056 100644 --- a/public/static/1547366781/js/chunk-2320bf16.ff114299.js +++ b/public/static/1547565111/js/chunk-2320bf16.beca9fa4.js @@ -5,4 +5,4 @@ * @author Feross Aboukhadijeh * @license MIT */ -e.exports=function(e){return null!=e&&(r(e)||n(e)||!!e._isBuffer)}},"0a06":function(e,t,r){"use strict";var n=r("2444"),o=r("c532"),i=r("f6b49"),a=r("5270");function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(e){"string"===typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),e=o.merge(n,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[a,void 0],r=Promise.resolve(e);this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});while(t.length)r=r.then(t.shift(),t.shift());return r},o.forEach(["delete","get","head","options"],function(e){s.prototype[e]=function(t,r){return this.request(o.merge(r||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){s.prototype[e]=function(t,r,n){return this.request(o.merge(n||{},{method:e,url:t,data:r}))}}),e.exports=s},"0df6":function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"1d2b":function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){u.headers[e]={}}),n.forEach(["post","put","patch"],function(e){u.headers[e]=n.merge(i)}),e.exports=u}).call(this,r("4362"))},"2d83":function(e,t,r){"use strict";var n=r("387f");e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},"2e67":function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,r){"use strict";var n=r("c532");function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},"387f":function(e,t,r){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e}},3934:function(e,t,r){"use strict";var n=r("c532");e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},4127:function(e,t,r){"use strict";var n=r("d233"),o=r("b313"),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,s=Array.prototype.push,u=function(e,t){s.apply(e,a(t)?t:[t])},c=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,r,o,i,a,s,c,l,p,d,h,y,m){var g=t;if("function"===typeof c?g=c(r,g):g instanceof Date&&(g=d(g)),null===g){if(i)return s&&!y?s(r,f.encoder,m):r;g=""}if("string"===typeof g||"number"===typeof g||"boolean"===typeof g||n.isBuffer(g)){if(s){var b=y?r:s(r,f.encoder,m);return[h(b)+"="+h(s(g,f.encoder,m))]}return[h(r)+"="+h(String(g))]}var v,w=[];if("undefined"===typeof g)return w;if(Array.isArray(c))v=c;else{var E=Object.keys(g);v=l?E.sort(l):E}for(var R=0;R0?D+S:""}},4328:function(e,t,r){"use strict";var n=r("4127"),o=r("9e6a"),i=r("b313");e.exports={formats:i,parse:o,stringify:n}},4362:function(e,t,r){t.nextTick=function(e){setTimeout(e,0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=r("df7c")),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"467f":function(e,t,r){"use strict";var n=r("2d83");e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},5270:function(e,t,r){"use strict";var n=r("c532"),o=r("c401"),i=r("2e67"),a=r("2444"),s=r("d925"),u=r("e683");function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){c(e),e.baseURL&&!s(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||a.adapter;return t(e).then(function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},"7a77":function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},"7aac":function(e,t,r){"use strict";var n=r("c532");e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"8df4b":function(e,t,r){"use strict";var n=r("7a77");function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e,t=new o(function(t){e=t});return{token:t,cancel:e}},e.exports=o},"9e6a":function(e,t,r){"use strict";var n=r("d233"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",c=function(e,t){var r,c={},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,p=f.split(t.delimiter,l),d=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r=0;--o){var i,a=e[o];if("[]"===a&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(s,10);r.parseArrays||""!==s?!isNaN(u)&&a!==s&&String(u)===s&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[],i[u]=n):i[s]=n:i={0:n}}n=i}return n},l=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=i.exec(n),u=s?n.slice(0,s.index):n,c=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}var l=0;while(null!==(s=a.exec(n))&&l>8-s%1*8)){if(r=i.charCodeAt(s+=.75),r>255)throw new o;t=t<<8|r}return a}o.prototype=new Error,o.prototype.code=5,o.prototype.name="InvalidCharacterError",e.exports=i},b313:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},b50d:function(e,t,r){"use strict";var n=r("c532"),o=r("467f"),i=r("30b5"),a=r("c345"),s=r("3934"),u=r("2d83"),c="undefined"!==typeof window&&window.btoa&&window.btoa.bind(window)||r("9fa6");e.exports=function(e){return new Promise(function(t,f){var l=e.data,p=e.headers;n.isFormData(l)&&delete p["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",y=!1;if("undefined"===typeof window||!window.XDomainRequest||"withCredentials"in d||s(e.url)||(d=new window.XDomainRequest,h="onload",y=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var m=e.auth.username||"",g=e.auth.password||"";p.Authorization="Basic "+c(m+":"+g)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||y)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,n=e.responseType&&"text"!==e.responseType?d.response:d.responseText,i={data:n,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:r,config:e,request:d};o(t,f,i),d=null}},d.onerror=function(){f(u("Network Error",e,null,d)),d=null},d.ontimeout=function(){f(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var b=r("7aac"),v=(e.withCredentials||s(e.url))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;v&&(p[e.xsrfHeaderName]=v)}if("setRequestHeader"in d&&n.forEach(p,function(e,t){"undefined"===typeof l&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(w){if("json"!==e.responseType)throw w}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),f(e),d=null)}),void 0===l&&(l=null),d.send(l)})}},bc3a:function(e,t,r){e.exports=r("cee4")},c345:function(e,t,r){"use strict";var n=r("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},c401:function(e,t,r){"use strict";var n=r("c532");e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},c532:function(e,t,r){"use strict";var n=r("1d2b"),o=r("044b"),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return"[object ArrayBuffer]"===i.call(e)}function u(e){return"undefined"!==typeof FormData&&e instanceof FormData}function c(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function f(e){return"string"===typeof e}function l(e){return"number"===typeof e}function p(e){return"undefined"===typeof e}function d(e){return null!==e&&"object"===typeof e}function h(e){return"[object Date]"===i.call(e)}function y(e){return"[object File]"===i.call(e)}function m(e){return"[object Blob]"===i.call(e)}function g(e){return"[object Function]"===i.call(e)}function b(e){return d(e)&&g(e.pipe)}function v(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function E(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function R(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var r=0,n=e.length;r1){var t=e.pop(),r=t.obj[t.prop];if(Array.isArray(r)){for(var n=[],o=0;o=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=n.charAt(a):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(a)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},l=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return n.exec(e).slice(1)};function i(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!n;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,n="/"===a.charAt(0))}return t=r(i(t.split("/"),function(e){return!!e}),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),o="/"===a(e,-1);return e=r(i(e.split("/"),function(e){return!!e}),!n).join("/"),e||n||(e="."),e&&o&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var o=n(e.split("/")),i=n(r.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){u.headers[e]={}}),n.forEach(["post","put","patch"],function(e){u.headers[e]=n.merge(i)}),e.exports=u}).call(this,r("4362"))},"2d83":function(e,t,r){"use strict";var n=r("387f");e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},"2e67":function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,r){"use strict";var n=r("c532");function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},"387f":function(e,t,r){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e}},3934:function(e,t,r){"use strict";var n=r("c532");e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},4127:function(e,t,r){"use strict";var n=r("d233"),o=r("b313"),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,s=Array.prototype.push,u=function(e,t){s.apply(e,a(t)?t:[t])},c=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,r,o,i,a,s,c,l,p,d,h,y,m){var g=t;if("function"===typeof c?g=c(r,g):g instanceof Date&&(g=d(g)),null===g){if(i)return s&&!y?s(r,f.encoder,m):r;g=""}if("string"===typeof g||"number"===typeof g||"boolean"===typeof g||n.isBuffer(g)){if(s){var b=y?r:s(r,f.encoder,m);return[h(b)+"="+h(s(g,f.encoder,m))]}return[h(r)+"="+h(String(g))]}var v,w=[];if("undefined"===typeof g)return w;if(Array.isArray(c))v=c;else{var E=Object.keys(g);v=l?E.sort(l):E}for(var R=0;R0?D+S:""}},4328:function(e,t,r){"use strict";var n=r("4127"),o=r("9e6a"),i=r("b313");e.exports={formats:i,parse:o,stringify:n}},4362:function(e,t,r){t.nextTick=function(e){setTimeout(e,0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=r("df7c")),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"467f":function(e,t,r){"use strict";var n=r("2d83");e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},5270:function(e,t,r){"use strict";var n=r("c532"),o=r("c401"),i=r("2e67"),a=r("2444"),s=r("d925"),u=r("e683");function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){c(e),e.baseURL&&!s(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||a.adapter;return t(e).then(function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},"7a77":function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},"7aac":function(e,t,r){"use strict";var n=r("c532");e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"8df4b":function(e,t,r){"use strict";var n=r("7a77");function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e,t=new o(function(t){e=t});return{token:t,cancel:e}},e.exports=o},"9e6a":function(e,t,r){"use strict";var n=r("d233"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",c=function(e,t){var r,c={},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,p=f.split(t.delimiter,l),d=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r=0;--o){var i,a=e[o];if("[]"===a&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(s,10);r.parseArrays||""!==s?!isNaN(u)&&a!==s&&String(u)===s&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[],i[u]=n):i[s]=n:i={0:n}}n=i}return n},l=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=i.exec(n),u=s?n.slice(0,s.index):n,c=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}var l=0;while(null!==(s=a.exec(n))&&l>8-s%1*8)){if(r=i.charCodeAt(s+=.75),r>255)throw new o;t=t<<8|r}return a}o.prototype=new Error,o.prototype.code=5,o.prototype.name="InvalidCharacterError",e.exports=i},b313:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},b50d:function(e,t,r){"use strict";var n=r("c532"),o=r("467f"),i=r("30b5"),a=r("c345"),s=r("3934"),u=r("2d83"),c="undefined"!==typeof window&&window.btoa&&window.btoa.bind(window)||r("9fa6");e.exports=function(e){return new Promise(function(t,f){var l=e.data,p=e.headers;n.isFormData(l)&&delete p["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",y=!1;if("undefined"===typeof window||!window.XDomainRequest||"withCredentials"in d||s(e.url)||(d=new window.XDomainRequest,h="onload",y=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var m=e.auth.username||"",g=e.auth.password||"";p.Authorization="Basic "+c(m+":"+g)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||y)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,n=e.responseType&&"text"!==e.responseType?d.response:d.responseText,i={data:n,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:r,config:e,request:d};o(t,f,i),d=null}},d.onerror=function(){f(u("Network Error",e,null,d)),d=null},d.ontimeout=function(){f(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var b=r("7aac"),v=(e.withCredentials||s(e.url))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;v&&(p[e.xsrfHeaderName]=v)}if("setRequestHeader"in d&&n.forEach(p,function(e,t){"undefined"===typeof l&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(w){if("json"!==e.responseType)throw w}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),f(e),d=null)}),void 0===l&&(l=null),d.send(l)})}},bc3a:function(e,t,r){e.exports=r("cee4")},c345:function(e,t,r){"use strict";var n=r("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},c401:function(e,t,r){"use strict";var n=r("c532");e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},c532:function(e,t,r){"use strict";var n=r("1d2b"),o=r("044b"),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return"[object ArrayBuffer]"===i.call(e)}function u(e){return"undefined"!==typeof FormData&&e instanceof FormData}function c(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function f(e){return"string"===typeof e}function l(e){return"number"===typeof e}function p(e){return"undefined"===typeof e}function d(e){return null!==e&&"object"===typeof e}function h(e){return"[object Date]"===i.call(e)}function y(e){return"[object File]"===i.call(e)}function m(e){return"[object Blob]"===i.call(e)}function g(e){return"[object Function]"===i.call(e)}function b(e){return d(e)&&g(e.pipe)}function v(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function E(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function R(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var r=0,n=e.length;r1){var t=e.pop(),r=t.obj[t.prop];if(Array.isArray(r)){for(var n=[],o=0;o=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=n.charAt(a):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(a)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},l=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return n.exec(e).slice(1)};function i(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!n;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,n="/"===a.charAt(0))}return t=r(i(t.split("/"),function(e){return!!e}),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),o="/"===a(e,-1);return e=r(i(e.split("/"),function(e){return!!e}),!n).join("/"),e||n||(e="."),e&&o&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var o=n(e.split("/")),i=n(r.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u0&&e.push(a)}),e},defaultOpenKeys:function(){var t=this,e=[];return r["b"].forEach(function(n){n.children&&!n.meta.single&&n.children.forEach(function(a){a.name==t.$route.name&&(e=[n.name])})}),e}},watch:{"$route.name":function(){this.initMenuSelectStatus()}},methods:{handleLogout:function(){var t=this;Object(o["k"])().then(function(e){t.$root.DeleteLoginToken(),t.$root.GotoRouter("login")}).catch(function(e){t.$root.DeleteLoginToken(),t.$root.GotoRouter("login")})},handleCollapsed:function(){this.collapsed||(this.openKeys=[]),this.collapsed=!this.collapsed},handleMenuSelect:function(t){var e=t.key;this.menuSelect(e),this.gotoMenuRouter(e)},handleOpenChange:function(t){t.length?this.openKeys=[t[t.length-1]]:this.openKeys=[]},menuSelect:function(t){var e=[];r["b"].forEach(function(n){n.children.forEach(function(a){a.name==t&&(n.meta.title&&e.push(n.meta.title),e.push(a.meta.title))})}),this.breadCrumb=e,this.selectedKeys=t?[t]:[]},gotoMenuRouter:function(t){this.$router.push({name:t})},initMenuSelectStatus:function(){this.menuSelect(this.$route.name),this.handleOpenChange(this.defaultOpenKeys)},dialogOpenPasswordDialog:function(){this.dialogPasswordVisible=!0},dialogSubmitPassword:function(){var t=this;this.$refs.passwordRef.validateFields(function(e,n){if(!e){var a={password:t.$root.Md5Sum(n.password),newpassword:t.$root.Md5Sum(n.newpassword)};Object(o["p"])(a).then(function(e){t.$message.success("密码修改成功, 需要重新登录",1,function(){t.handleLogout()})}).catch(function(e){1008==e.code&&t.$message.error("当前密码错误")})}})},dialogCancelPassword:function(){this.dialogPasswordVisible=!1},handleOpenMySettingDialog:function(){this.dialogMySettingVisible=!0},dialogSubmitMySetting:function(){var t=this;this.$refs.mySettingRef.validateFields(function(e,n){e||Object(o["o"])(n).then(function(e){t.$message.success("个人信息更新成功",1,function(){t.initLoginStatus(),t.dialogCancelMySetting()})})})},dialogCancelMySetting:function(){this.dialogMySettingVisible=!1},initLoginStatus:function(){var t=this;Object(o["j"])().then(function(e){e.is_login?t.$store.dispatch("account/login",{user_id:e.user_id,name:e.name,email:e.email,priv:e.priv,group_name:e.group_name,mobile:e.mobile,true_name:e.true_name}):t.$root.GotoRouter("login")}).catch(function(e){t.$message.warning("用户未登录",1),t.$root.GotoRouter("login")})}},mounted:function(){this.initMenuSelectStatus(),this.initLoginStatus()}},g=f,h=n("2877"),b=Object(h["a"])(g,a,s,!1,null,null,null);b.options.__file="Layer.vue";e["default"]=b.exports},"92fa":function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function a(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce(function(t,e){var s,r,o,i,l;for(o in e)if(s=t[o],r=e[o],s&&n.test(o))if("class"===o&&("string"===typeof s&&(l=s,t[o]=s={},s[l]=!0),"string"===typeof r&&(l=r,e[o]=r={},r[l]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(i in r)s[i]=a(s[i],r[i]);else if(Array.isArray(s))t[o]=s.concat(r);else if(Array.isArray(r))t[o]=[s].concat(r);else for(i in r)s[i]=r[i];else t[o]=e[o];return t},{})}},c24f:function(t,e,n){"use strict";n.d(e,"l",function(){return s}),n.d(e,"n",function(){return r}),n.d(e,"e",function(){return o}),n.d(e,"d",function(){return i}),n.d(e,"b",function(){return l}),n.d(e,"f",function(){return c}),n.d(e,"m",function(){return u}),n.d(e,"q",function(){return d}),n.d(e,"h",function(){return p}),n.d(e,"g",function(){return m}),n.d(e,"a",function(){return f}),n.d(e,"c",function(){return g}),n.d(e,"i",function(){return h}),n.d(e,"k",function(){return b}),n.d(e,"j",function(){return y}),n.d(e,"o",function(){return v}),n.d(e,"p",function(){return C});var a=n("e1d2");function s(t){return Object(a["b"])("/user/group/new",t)}function r(t){return Object(a["b"])("/user/group/update",t)}function o(t){return Object(a["a"])("/user/group/list",t)}function i(t){return Object(a["a"])("/user/group/detail",t)}function l(t){return Object(a["b"])("/user/group/delete",t)}function c(){return Object(a["a"])("/user/group/priv")}function u(t){return Object(a["b"])("/user/new",t)}function d(t){return Object(a["b"])("/user/update",t)}function p(t){return Object(a["a"])("/user/list",t)}function m(t){return Object(a["a"])("/user/detail",t)}function f(t){return Object(a["a"])("/user/checkexists",t)}function g(t){return Object(a["b"])("/user/delete",t)}function h(t){return Object(a["b"])("/user/login",t)}function b(){return Object(a["b"])("/user/logout")}function y(){return Object(a["a"])("/user/login/status")}function v(t){return Object(a["b"])("/user/my/update",t)}function C(t){return Object(a["b"])("/user/my/password",t)}},cf05:function(t,e,n){t.exports=n.p+"static/1547366781/img/logo.8ba55f46.png"}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ce5d7d5"],{5031:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout",{staticClass:"app-layer-main"},[a("a-layout-sider",{staticClass:"app-layer-aside",attrs:{trigger:null,theme:"light",collapsible:""},model:{value:t.collapsed,callback:function(e){t.collapsed=e},expression:"collapsed"}},[a("div",{staticClass:"logo"},[t.collapsed?a("img",{staticClass:"small",attrs:{src:n("cf05")}}):a("img",{staticClass:"normal",attrs:{src:n("cf05")}})]),a("a-menu",{staticClass:"app-layer-menu",attrs:{theme:"light",mode:"inline",selectedKeys:t.selectedKeys,openKeys:t.openKeys},on:{select:t.handleMenuSelect,openChange:t.handleOpenChange}},[t._l(t.appMenu,function(e){return[e.meta.single&&e.children&&1==e.children.length?a("a-menu-item",{key:e.children[0].name},[a(e.children[0].meta.icon,{tag:"component"}),a("span",{staticClass:"app-menu-title"},[t._v(t._s(e.children[0].meta.title))])],1):a("a-sub-menu",{key:e.name},[a("span",{attrs:{slot:"title"},slot:"title"},[a(e.meta.icon,{tag:"component"}),a("span",{staticClass:"app-menu-title"},[t._v(t._s(e.meta.title))])],1),t._l(e.children,function(e){return a("a-menu-item",{key:e.name,staticClass:"app-menu-title"},[a("icon-square"),a("span",{staticClass:"app-menu-title sub-menu"},[t._v(t._s(e.meta.title))])],1)})],2)]})],2)],1),a("a-layout",{staticClass:"app-layer-body"},[a("a-layout-header",{staticClass:"app-layer-header"},[a("div",{staticClass:"icon-menu-fold",on:{click:t.handleCollapsed}},[t.collapsed?a("IconMenuFold"):a("IconMenuUnfold")],1),a("div",{staticClass:"header-right"},[a("a-dropdown",{staticClass:"dropdown",attrs:{trigger:["click"]}},[a("span",{staticClass:"ant-dropdown-link",attrs:{href:"#"}},[a("icon-question",{staticClass:"icon"}),a("icon-caret-down",{staticClass:"icon-small"})],1),a("a-menu",{staticClass:"menu-wide",attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a",{attrs:{href:"https://github.com/dreamans/syncd/issues",target:"_blank"}},[t._v("帮助")])]),a("a-menu-item",[a("a",{attrs:{href:"https://github.com/dreamans/syncd",target:"_blank"}},[t._v("为Syncd做贡献")])])],1)],1),a("a-dropdown",{staticClass:"dropdown",attrs:{trigger:["click"]}},[a("span",{staticClass:"ant-dropdown-link",attrs:{href:"#"}},[a("a-avatar",{attrs:{shape:"square",size:"small",src:t.userAvatar}},[t._v(t._s(t.userName))]),a("icon-caret-down",{staticClass:"icon-small"})],1),a("a-menu",{staticClass:"menu-wide",attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",{staticClass:"pure-text"},[a("strong",[t._v(t._s(t.userName))])]),a("a-menu-divider"),a("a-menu-item",{on:{click:t.handleOpenMySettingDialog}},[a("span",[a("icon-setting"),t._v(" 个人设置")],1)]),a("a-menu-item",{on:{click:t.dialogOpenPasswordDialog}},[a("span",[a("a-icon",{attrs:{type:"key"}}),t._v(" 修改密码")],1)]),a("a-menu-divider"),a("a-menu-item",{on:{click:t.handleLogout}},[a("span",[a("icon-logout"),t._v(" 退出登录")],1)])],1)],1)],1)]),a("a-layout-content",{staticClass:"app-layer-content"},[a("div",{staticClass:"app-layer-content-header"},[t.breadCrumb.length?a("a-breadcrumb",{staticClass:"header-breadcrumb"},t._l(t.breadCrumb,function(e){return a("a-breadcrumb-item",[t._v(t._s(e))])})):t._e()],1),a("div",{staticClass:"app-layer-content-body"},[a("router-view"),a("div",{staticClass:"app-cpy"},[a("p",[t._v("©️ 2019 Syncd 版权所有, MIT License. "),a("a",{attrs:{href:"https://github.com/dreamans/syncd",target:"_blank"}},[a("a-icon",{attrs:{type:"github"}})],1)])])],1)]),a("a-modal",{attrs:{title:"个人设置",visible:t.dialogMySettingVisible,okText:"确定",cancelText:"取消",destroyOnClose:!0},on:{ok:t.dialogSubmitMySetting,cancel:t.dialogCancelMySetting}},[a("user-setting-component",{ref:"mySettingRef"})],1),a("a-modal",{attrs:{title:"修改密码",visible:t.dialogPasswordVisible,okText:"确定",cancelText:"取消",destroyOnClose:!0},on:{ok:t.dialogSubmitPassword,cancel:t.dialogCancelPassword}},[a("user-password-component",{ref:"passwordRef"})],1)],1)],1)},s=[],r=(n("7f7f"),n("ac6a"),n("a18c")),o=n("c24f"),i=n("92fa"),l=n.n(i),c=n("24b4"),u={render:function(){var t=arguments[0],e=this.form,n=e.getFieldDecorator,a=(e.getFieldValue,{labelCol:{span:6},wrapperCol:{span:16}});return t("a-form",[t("a-form-item",l()([{props:a},{attrs:{label:"角色"}}]),[this.$store.getters["account/getGroupName"]]),t("a-form-item",l()([{props:a},{attrs:{label:"头像"}}]),[t("a-avatar",{attrs:{shape:"square",size:64,src:this.$store.getters["account/getAvatar"]}}),t("div",{class:"app-font-small"},[t("a",{attrs:{href:"http://cn.gravatar.com/support/activating-your-account/",target:"_blank"}},[t("a-icon",{attrs:{type:"question-circle"}})," 如何修改头像"])])]),t("a-form-item",l()([{props:a},{attrs:{label:"用户名"}}]),[t("template",{slot:"help"},[t("span",{class:"app-font-small"},[t("a-icon",{attrs:{type:"info-circle"}})," 修改用户名请联系管理员"])]),t("a-input",{attrs:{value:this.$store.getters["account/getUserName"],disabled:!0}})]),t("a-form-item",l()([{props:a},{attrs:{label:"邮箱"}}]),[t("template",{slot:"help"},[t("span",{class:"app-font-small"},[t("a-icon",{attrs:{type:"info-circle"}})," 修改邮箱请联系管理员"])]),t("a-input",{attrs:{value:this.$store.getters["account/getEmail"],disabled:!0}})]),t("a-form-item",l()([{props:a},{attrs:{label:"真实姓名"}}]),[n("true_name",{initialValue:this.$store.getters["account/getTrueName"]})(t("a-input",{attrs:{autocomplete:"off",placeholder:"请输入真实姓名"}}))]),t("a-form-item",l()([{props:a},{attrs:{label:"手机号"}}]),[n("mobile",{rules:[{validator:function(t,e,n){e||n(),/^1[3456789][0-9]{9}$/.test(e)&&n(),n("手机号格式错误")}}],initialValue:this.$store.getters["account/getMobile"],validateTrigger:"blur"})(t("a-input",{attrs:{autocomplete:"off",placeholder:"11位数字,目前只支持中国(+86)手机号"}}))])])}},d=c["Form"].create()(u),p={render:function(){var t=arguments[0],e=this.form,n=e.getFieldDecorator,a=(e.getFieldValue,{labelCol:{span:6},wrapperCol:{span:16}});return t("a-form",[t("a-form-item",l()([{props:a},{attrs:{label:"当前密码"}}]),[n("password",{rules:[{required:!0,message:"当前密码不能为空"},{type:"string",min:6,max:20,message:"密码必须为6-20个字符"}],validateTrigger:"blur"})(t("a-input",{attrs:{type:"password",autocomplete:"off",placeholder:"请输入当前密码"}}))]),t("a-form-item",l()([{props:a},{attrs:{label:"新密码"}}]),[n("newpassword",{rules:[{required:!0,message:"新密码不能为空"},{type:"string",min:6,max:20,message:"密码必须为6-20个字符"}],validateTrigger:"blur"})(t("a-input",{attrs:{type:"password",autocomplete:"off",placeholder:"请输入新密码 6-20个字符"}}))])])}},m=c["Form"].create()(p),f={components:{UserSettingComponent:d,UserPasswordComponent:m},data:function(){return{collapsed:!1,openKeys:[],selectedKeys:[],breadCrumb:[],dialogMySettingVisible:!1,dialogPasswordVisible:!1}},computed:{userAvatar:function(){return this.$store.getters["account/getAvatar"]},userName:function(){return this.$store.getters["account/getUserName"]},userPriv:function(){return this.$store.getters["account/getPriv"]},appMenu:function(){var t=this,e=[];return r["b"].forEach(function(n){var a={name:n.name,meta:n.meta,children:[]};n.children.forEach(function(e){if(!e.meta.hide||t.$route.name==e.name){if(e.meta.role&&!t.$root.CheckPrivs(e.meta.role))return;a.children.push({name:e.name,meta:e.meta})}}),a.children.length>0&&e.push(a)}),e},defaultOpenKeys:function(){var t=this,e=[];return r["b"].forEach(function(n){n.children&&!n.meta.single&&n.children.forEach(function(a){a.name==t.$route.name&&(e=[n.name])})}),e}},watch:{"$route.name":function(){this.initMenuSelectStatus()}},methods:{handleLogout:function(){var t=this;Object(o["k"])().then(function(e){t.$root.DeleteLoginToken(),t.$root.GotoRouter("login")}).catch(function(e){t.$root.DeleteLoginToken(),t.$root.GotoRouter("login")})},handleCollapsed:function(){this.collapsed||(this.openKeys=[]),this.collapsed=!this.collapsed},handleMenuSelect:function(t){var e=t.key;this.menuSelect(e),this.gotoMenuRouter(e)},handleOpenChange:function(t){t.length?this.openKeys=[t[t.length-1]]:this.openKeys=[]},menuSelect:function(t){var e=[];r["b"].forEach(function(n){n.children.forEach(function(a){a.name==t&&(n.meta.title&&e.push(n.meta.title),e.push(a.meta.title))})}),this.breadCrumb=e,this.selectedKeys=t?[t]:[]},gotoMenuRouter:function(t){this.$router.push({name:t})},initMenuSelectStatus:function(){this.menuSelect(this.$route.name),this.handleOpenChange(this.defaultOpenKeys)},dialogOpenPasswordDialog:function(){this.dialogPasswordVisible=!0},dialogSubmitPassword:function(){var t=this;this.$refs.passwordRef.validateFields(function(e,n){if(!e){var a={password:t.$root.Md5Sum(n.password),newpassword:t.$root.Md5Sum(n.newpassword)};Object(o["p"])(a).then(function(e){t.$message.success("密码修改成功, 需要重新登录",1,function(){t.handleLogout()})}).catch(function(e){1008==e.code&&t.$message.error("当前密码错误")})}})},dialogCancelPassword:function(){this.dialogPasswordVisible=!1},handleOpenMySettingDialog:function(){this.dialogMySettingVisible=!0},dialogSubmitMySetting:function(){var t=this;this.$refs.mySettingRef.validateFields(function(e,n){e||Object(o["o"])(n).then(function(e){t.$message.success("个人信息更新成功",1,function(){t.initLoginStatus(),t.dialogCancelMySetting()})})})},dialogCancelMySetting:function(){this.dialogMySettingVisible=!1},initLoginStatus:function(){var t=this;Object(o["j"])().then(function(e){e.is_login?t.$store.dispatch("account/login",{user_id:e.user_id,name:e.name,email:e.email,priv:e.priv,group_name:e.group_name,mobile:e.mobile,true_name:e.true_name}):t.$root.GotoRouter("login")}).catch(function(e){t.$message.warning("用户未登录",1),t.$root.GotoRouter("login")})}},mounted:function(){this.initMenuSelectStatus(),this.initLoginStatus()}},g=f,h=n("2877"),b=Object(h["a"])(g,a,s,!1,null,null,null);b.options.__file="Layer.vue";e["default"]=b.exports},"92fa":function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function a(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce(function(t,e){var s,r,o,i,l;for(o in e)if(s=t[o],r=e[o],s&&n.test(o))if("class"===o&&("string"===typeof s&&(l=s,t[o]=s={},s[l]=!0),"string"===typeof r&&(l=r,e[o]=r={},r[l]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(i in r)s[i]=a(s[i],r[i]);else if(Array.isArray(s))t[o]=s.concat(r);else if(Array.isArray(r))t[o]=[s].concat(r);else for(i in r)s[i]=r[i];else t[o]=e[o];return t},{})}},c24f:function(t,e,n){"use strict";n.d(e,"l",function(){return s}),n.d(e,"n",function(){return r}),n.d(e,"e",function(){return o}),n.d(e,"d",function(){return i}),n.d(e,"b",function(){return l}),n.d(e,"f",function(){return c}),n.d(e,"m",function(){return u}),n.d(e,"q",function(){return d}),n.d(e,"h",function(){return p}),n.d(e,"g",function(){return m}),n.d(e,"a",function(){return f}),n.d(e,"c",function(){return g}),n.d(e,"i",function(){return h}),n.d(e,"k",function(){return b}),n.d(e,"j",function(){return y}),n.d(e,"o",function(){return v}),n.d(e,"p",function(){return C});var a=n("e1d2");function s(t){return Object(a["b"])("/user/group/new",t)}function r(t){return Object(a["b"])("/user/group/update",t)}function o(t){return Object(a["a"])("/user/group/list",t)}function i(t){return Object(a["a"])("/user/group/detail",t)}function l(t){return Object(a["b"])("/user/group/delete",t)}function c(){return Object(a["a"])("/user/group/priv")}function u(t){return Object(a["b"])("/user/new",t)}function d(t){return Object(a["b"])("/user/update",t)}function p(t){return Object(a["a"])("/user/list",t)}function m(t){return Object(a["a"])("/user/detail",t)}function f(t){return Object(a["a"])("/user/checkexists",t)}function g(t){return Object(a["b"])("/user/delete",t)}function h(t){return Object(a["b"])("/user/login",t)}function b(){return Object(a["b"])("/user/logout")}function y(){return Object(a["a"])("/user/login/status")}function v(t){return Object(a["b"])("/user/my/update",t)}function C(t){return Object(a["b"])("/user/my/password",t)}},cf05:function(t,e,n){t.exports=n.p+"static/1547565111/img/logo.8ba55f46.png"}}]); \ No newline at end of file diff --git a/public/static/1547366781/js/chunk-4223605d.5f39ead4.js b/public/static/1547565111/js/chunk-4223605d.5f39ead4.js similarity index 100% rename from public/static/1547366781/js/chunk-4223605d.5f39ead4.js rename to public/static/1547565111/js/chunk-4223605d.5f39ead4.js diff --git a/public/static/1547366781/js/chunk-559ea2ca.c4a85ce4.js b/public/static/1547565111/js/chunk-559ea2ca.c4a85ce4.js similarity index 100% rename from public/static/1547366781/js/chunk-559ea2ca.c4a85ce4.js rename to public/static/1547565111/js/chunk-559ea2ca.c4a85ce4.js diff --git a/public/static/1547366781/js/chunk-6ed69479.20f5e464.js b/public/static/1547565111/js/chunk-6f3e35ca.00a4837e.js similarity index 99% rename from public/static/1547366781/js/chunk-6ed69479.20f5e464.js rename to public/static/1547565111/js/chunk-6f3e35ca.00a4837e.js index b15db52..1403722 100644 --- a/public/static/1547366781/js/chunk-6ed69479.20f5e464.js +++ b/public/static/1547565111/js/chunk-6f3e35ca.00a4837e.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6ed69479","chunk-2d22bd3f"],{"214f":function(t,e,a){"use strict";var i=a("32e9"),n=a("2aba"),o=a("79e5"),r=a("be13"),s=a("2b4c");t.exports=function(t,e,a){var l=s(t),c=a(r,l,""[t]),d=c[0],p=c[1];o(function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})&&(n(String.prototype,t,d),i(RegExp.prototype,l,2==e?function(t,e){return p.call(t,this,e)}:function(t){return p.call(t,this)}))}},"386d":function(t,e,a){a("214f")("search",1,function(t,e,a){return[function(a){"use strict";var i=t(this),n=void 0==a?void 0:a[e];return void 0!==n?n.call(a,i):new RegExp(a)[e](String(i))},a]})},"41db":function(t,e,a){"use strict";a.d(e,"o",function(){return n}),a.d(e,"d",function(){return o}),a.d(e,"h",function(){return r}),a.d(e,"g",function(){return s}),a.d(e,"e",function(){return l}),a.d(e,"f",function(){return c}),a.d(e,"k",function(){return d}),a.d(e,"j",function(){return p}),a.d(e,"c",function(){return u}),a.d(e,"a",function(){return h}),a.d(e,"p",function(){return f}),a.d(e,"b",function(){return m}),a.d(e,"q",function(){return g}),a.d(e,"i",function(){return b}),a.d(e,"l",function(){return _}),a.d(e,"m",function(){return y}),a.d(e,"n",function(){return v});var i=a("e1d2");function n(t){return Object(i["b"])("/deploy/apply/submit",t)}function o(t){return Object(i["a"])("/deploy/apply/list",t)}function r(t){return Object(i["a"])("/deploy/apply/space/list",t)}function s(t){return Object(i["a"])("/deploy/apply/project/list",t)}function l(t){return Object(i["a"])("/deploy/apply/project/all",t)}function c(t){return Object(i["a"])("/deploy/apply/project/detail",t)}function d(t){return Object(i["a"])("/deploy/apply/repo/taglist",t)}function p(t){return Object(i["a"])("/deploy/apply/repo/commitlist",t)}function u(t){return Object(i["a"])("/deploy/apply/detail",t)}function h(t){return Object(i["b"])("/deploy/apply/audit",t)}function f(t){return Object(i["b"])("/deploy/apply/unaudit",t)}function m(t){return Object(i["b"])("/deploy/apply/discard",t)}function g(t){return Object(i["b"])("/deploy/apply/update",t)}function b(t){return Object(i["a"])("/deploy/apply/log",t)}function _(t){return Object(i["b"])("/deploy/deploy/start",t)}function y(t){return Object(i["a"])("/deploy/deploy/status",t)}function v(t){return Object(i["b"])("/deploy/deploy/stop",t)}},"92fa":function(t,e){var a=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce(function(t,e){var n,o,r,s,l;for(r in e)if(n=t[r],o=e[r],n&&a.test(r))if("class"===r&&("string"===typeof n&&(l=n,t[r]=n={},n[l]=!0),"string"===typeof o&&(l=o,e[r]=o={},o[l]=!0)),"on"===r||"nativeOn"===r||"hook"===r)for(s in o)n[s]=i(n[s],o[s]);else if(Array.isArray(n))t[r]=n.concat(o);else if(Array.isArray(o))t[r]=[n].concat(o);else for(s in o)n[s]=o[s];else t[r]=e[r];return t},{})}},af43:function(t,e,a){"use strict";var i=a("92fa"),n=a.n(i),o=(a("7f7f"),a("ac6a"),a("24b4")),r=a("41db"),s={render:function(){var t=this,e=arguments[0],a=this.form,i=a.getFieldDecorator,o=a.getFieldValue,r={labelCol:{span:6},wrapperCol:{span:16}},s=function(){var a=[];return t.tagList.forEach(function(t){a.push(e("a-select-option",{attrs:{value:"".concat(t)}},["".concat(t)]))}),a},l=function(){var a=[];return t.commitList.forEach(function(t){a.push(e("a-select-option",{attrs:{value:"".concat(t)}},["".concat(t)]))}),a};return i("project_id",{initialValue:this.detail.project_id}),i("id",{initialValue:this.detail.id}),e("a-form",[e("a-form-item",n()([{props:r},{attrs:{label:"项目名称"}}]),[this.projectDetail.name]),e("a-form-item",n()([{props:r},{attrs:{label:"上线单名称"}}]),[i("name",{rules:[{required:!0,message:"上线单名称不能为空"}],validateTrigger:"blur",initialValue:this.detail.name})(e("a-input",{attrs:{autocomplete:"off",placeholder:"请输入上线单名称"}}))]),e("a-form-item",n()([{props:r},{attrs:{label:"上线模式"}}]),[1==this.projectDetail.repo_mode?e("span",[e("a-icon",{attrs:{type:"branches"}})," 分支上线 - ",e("strong",[this.projectDetail.repo_branch])," 分支"]):e("span",[e("a-icon",{attrs:{type:"tag"}})," Tag上线"])]),1==this.projectDetail.repo_mode?e("a-form-item",n()([{props:r},{attrs:{label:"选择上线版本"}}]),[i("commit",{rules:[{required:!0,message:"选择上线版本"}],validateTrigger:"blur"})(e("div")),e("div",[e("a-select",{attrs:{showSearch:!0,placeholder:"关键词搜索",notFoundContent:this.fetching?void 0:"未找到数据",defaultActiveFirstOption:!1},on:{change:this.handleSelectCommit},style:{width:"100%"}},[this.fetching?e("a-spin",{slot:"notFoundContent",attrs:{size:"small"}}):"",l()]),e("a-button",{on:{click:this.handleFetchCommitList}},[e("a-icon",{attrs:{type:"sync",spin:this.fetching}})," ",this.fetchBtnTitle]),o("commit")?e("div",{style:"line-height: 1; margin-top: 10px;"},["选择版本 - ",o("commit")]):"",this.detail.repo_branch&&this.detail.repo_commit?e("div",{style:"line-height: 1; margin-top: 10px;"},[e("p",["当前版本 - ",this.detail.repo_branch," - ",this.detail.repo_commit])]):""])]):"",2==this.projectDetail.repo_mode?e("a-form-item",n()([{props:r},{attrs:{label:"选择上线Tag"}}]),[i("tag",{rules:[{required:!0,message:"选择上线Tag"}],validateTrigger:"blur"})(e("div")),e("a-row",{attrs:{gutter:10}},[e("a-col",{attrs:{span:16}},[e("a-select",{attrs:{showSearch:!0,placeholder:"关键词搜索",notFoundContent:this.fetching?void 0:"未找到数据",defaultActiveFirstOption:!1},on:{change:this.handleSelectTags},style:{width:"100%"}},[this.fetching?e("a-spin",{slot:"notFoundContent",attrs:{size:"small"}}):"",s()])]),e("a-col",{attrs:{span:8}},[e("a-button",{on:{click:this.handleFetchTagList}},[e("a-icon",{attrs:{type:"sync",spin:this.fetching}})," ",this.fetchBtnTitle])])]),""!=this.detail.repo_tag?e("div",[this.detail.repo_tag]):""]):"",e("a-form-item",n()([{props:r},{attrs:{help:this.nameHelp,label:"上线说明"}}]),[i("description",{rules:[{required:!0,message:"请填写上线说明"}],validateTrigger:"blur",initialValue:this.detail.description})(e("a-textarea",{attrs:{placeholder:"请详细填写上线说明",rows:3}}))])])},props:{detail:{type:Object,default:function(){return{}}}},data:function(){return{projectDetail:{},fetching:!1,commitList:[],tagList:[],fetchBtnTitle:"拉取列表"}},methods:{handleSelectCommit:function(t){this.form.setFieldsValue({commit:t})},handleSelectTags:function(t){this.form.setFieldsValue({tag:t})},handleFetchCommitList:function(){var t=this;this.fetching=!0,this.fetchBtnTitle="列表拉取中...",Object(r["j"])({id:this.detail.project_id}).then(function(e){t.fetching=!1,e.list&&(t.commitList=e.list),t.fetchBtnTitle="列表拉取成功"}).catch(function(e){t.fetching=!1,t.fetchBtnTitle="列表拉取失败",t.$error({title:"列表拉取失败",content:e.message,okText:"知道了"})})},handleFetchTagList:function(){var t=this;this.fetching=!0,this.fetchBtnTitle="列表拉取中...",Object(r["k"])({id:this.detail.project_id}).then(function(e){t.fetching=!1,e.list&&(t.tagList=e.list),t.fetchBtnTitle="列表拉取成功"}).catch(function(e){t.fetching=!1,t.fetchBtnTitle="列表拉取失败",t.$error({title:"列表拉取失败",content:e.message,okText:"知道了"})})},loadProjectDetail:function(){var t=this;Object(r["f"])({id:this.detail.project_id}).then(function(e){t.projectDetail=e})}},mounted:function(){this.loadProjectDetail()}};e["a"]=o["Form"].create()(s)},cbf4:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-card",{staticClass:"app-card",attrs:{title:"上线单管理",bordered:!1}},[a("div",{staticClass:"app-btn-group"},[a("a-row",{attrs:{gutter:10}},[a("a-col",{attrs:{span:3}},[a("a-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",placeholder:"选择提交时间",optionFilterProp:"children"},model:{value:t.search.time,callback:function(e){t.$set(t.search,"time",e)},expression:"search.time"}},t._l(t.searchTime,function(e){return a("a-select-option",{attrs:{value:e.day}},[t._v(t._s(e.title))])}))],1),a("a-col",{attrs:{span:3}},[a("a-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",placeholder:"状态",optionFilterProp:"children"},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},t._l(t.searchStatus,function(e){return a("a-select-option",{attrs:{value:e.id}},[t._v(t._s(e.title))])}))],1),a("a-col",{attrs:{span:12}},[a("a-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",showSearch:"",placeholder:"选择项目",notFoundContent:"无项目数据",optionFilterProp:"children"},model:{value:t.search.projectId,callback:function(e){t.$set(t.search,"projectId",e)},expression:"search.projectId"}},t._l(t.searchProjectList,function(e){return a("a-select-option",{attrs:{value:e.id}},[t._v(t._s(e.space_name)+" "),a("a-icon",{attrs:{type:"right"}}),t._v(" "+t._s(e.name)+" "),0==e.status?a("span",[t._v("(未启用)")]):t._e()],1)}))],1),a("a-col",{attrs:{span:6}},[a("a-input-search",{attrs:{placeholder:"关键词搜索,ID、名称",enterButton:""},on:{search:t.handleSearch},model:{value:t.search.keyword,callback:function(e){t.$set(t.search,"keyword",e)},expression:"search.keyword"}})],1)],1)],1),a("a-table",{attrs:{columns:t.tableColumns,dataSource:t.tableSource,pagination:t.pagination,loading:t.tableLoading},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"user_name",fn:function(e,i){return a("span",{staticClass:"app-cursor"},[i.user_name?[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(i.user_email))])]),t._v("\n "+t._s(i.user_name)+"\n ")],2)]:[a("span",{staticClass:"app-line-through"},[t._v("已删除")])]],2)}},{key:"project_name",fn:function(e,i){return a("span",{},[i.space_name&&i.project_name?[t._v("\n "+t._s(i.space_name)+" "),a("a-icon",{staticClass:"app-color-gray",attrs:{type:"right"}}),t._v(" "+t._s(i.project_name)+"\n ")]:[a("span",{staticClass:"app-line-through"},[t._v("已删除")])]],2)}},{key:"name",fn:function(e,i){return a("span",{class:t.rowClassName(i.status)},[t._v("\n "+t._s(e)+"\n ")])}},{key:"ctime",fn:function(e,i){return a("span",{staticClass:"app-cursor"},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(t.$root.FormatDateTime(e)))])]),t._v("\n "+t._s(t.$root.FormatDateFromNow(e))+"\n ")],2)],1)}},{key:"status",fn:function(e,i){return a("span",{class:t.rowClassName(i.status)},[1==e?a("span",[a("a-icon",{attrs:{type:"clock-circle"}}),t._v(" 待审核")],1):t._e(),2==e?a("span",[a("a-icon",{attrs:{type:"warning"}}),t._v(" 审核拒绝")],1):t._e(),3==e?a("span",[a("a-icon",{attrs:{type:"smile"}}),t._v(" 待上线")],1):t._e(),4==e?a("span",[a("a-icon",{attrs:{type:"coffee"}}),t._v(" 上线中")],1):t._e(),5==e?a("span",[a("a-icon",{attrs:{type:"check-circle"}}),t._v(" 已上线")],1):t._e(),6==e?a("span",[a("a-icon",{attrs:{type:"frown"}}),t._v(" 上线失败")],1):t._e(),7==e?a("span",[a("a-icon",{attrs:{type:"close-circle"}}),t._v(" 已废弃")],1):t._e()])}},{key:"op",fn:function(e,i){return a("span",{},[a("a-dropdown",{attrs:{trigger:["click"]}},[a("a-menu",{attrs:{slot:"overlay"},on:{click:function(e){t.handleMenuClick(e,i)}},slot:"overlay"},[a("a-menu-item",{key:"view"},[a("a-icon",{attrs:{type:"eye"}}),t._v("查看")],1),t.$root.CheckPriv(t.$root.Priv.DEPLOY_DEPLOY_ALL)||t.$root.CheckPriv(t.$root.Priv.DEPLOY_DEPLOY_MY)&&i.user_id==t.$store.getters["account/getUserId"]?[3==i.status||4==i.status?a("a-menu-item",{key:"deploy"},[a("a-icon",{attrs:{type:"coffee"}}),t._v("上线")],1):t._e(),6==i.status&&t.$root.CheckPrivs([t.$root.Priv.DEPLOY_DEPLOY_MY,t.$root.Priv.DEPLOY_DEPLOY_ALL])?a("a-menu-item",{key:"deploy"},[a("a-icon",{attrs:{type:"coffee"}}),t._v("再次上线")],1):t._e()]:t._e(),t.$root.CheckPriv(t.$root.Priv.DEPLOY_EDIT_MY)&&i.user_id==t.$store.getters["account/getUserId"]?[1==i.status||2==i.status?a("a-menu-item",{key:"edit"},[a("a-icon",{attrs:{type:"edit"}}),t._v("编辑")],1):t._e()]:t._e(),t.$root.CheckPriv(t.$root.Priv.DEPLOY_AUDIT_ALL)||t.$root.CheckPriv(t.$root.Priv.DEPLOY_AUDIT_MY)&&i.user_id==t.$store.getters["account/getUserId"]?[1==i.status?a("a-menu-item",{key:"audit"},[a("a-icon",{attrs:{type:"audit"}}),t._v("审核")],1):t._e(),3==i.status?a("a-menu-item",{key:"unaudit"},[a("a-icon",{attrs:{type:"close"}}),t._v("取消审核")],1):t._e()]:t._e(),1!=i.status&&2!=i.status&&3!=i.status&&6!=i.status||!(t.$root.CheckPriv(t.$root.Priv.DEPLOY_DROP_ALL)||t.$root.CheckPriv(t.$root.Priv.DEPLOY_DROP_MY)&&i.user_id==t.$store.getters["account/getUserId"])?t._e():a("a-menu-item",{key:"discard"},[a("a-icon",{attrs:{type:"delete"}}),t._v("废弃")],1)],2),a("a-button",{staticStyle:{"margin-left":"8px"}},[t._v("\n 操作 "),a("a-icon",{attrs:{type:"down"}})],1)],1)],1)}}])})],1),a("a-modal",{attrs:{title:"查看上线单",visible:t.dialogViewVisible,confirmLoading:t.dialogViewConfirmLoading,destroyOnClose:!0,width:"50%",footer:null},on:{cancel:t.dialogViewCancel}},[a("apply-view-component",{attrs:{detail:t.applyDetail}})],1),a("a-modal",{attrs:{title:"审核上线单",visible:t.dialogAuditVisible,confirmLoading:t.dialogAuditConfirmLoading,destroyOnClose:!0,width:"50%",okText:"审核",cancelText:"取消"},on:{ok:t.dialogAuditSubmit,cancel:t.dialogAuditCancel}},[a("apply-audit-component",{ref:"auditRef",attrs:{detail:t.applyDetail}})],1),a("a-modal",{attrs:{title:"编辑上线单",visible:t.dialogEditVisible,confirmLoading:t.dialogEditConfirmLoading,destroyOnClose:!0,width:"50%",okText:"再次提交审核",cancelText:"放弃"},on:{ok:t.dialogEditSubmit,cancel:t.dialogEditCancel}},[a("apply-update-component",{ref:"auditRef",attrs:{detail:t.applyDetail}})],1)],1)},n=[],o=(a("386d"),a("41db")),r=a("92fa"),s=a.n(r),l=(a("7f7f"),a("24b4")),c=a("f142"),d={render:function(){var t=arguments[0],e={labelCol:{span:6},wrapperCol:{span:16}};return t("a-form",[t("a-form-item",s()([{props:e},{attrs:{label:"项目空间"}}]),[this.detail.space_name]),t("a-form-item",s()([{props:e},{attrs:{label:"项目名称"}}]),[this.detail.project_name]),t("a-form-item",s()([{props:e},{attrs:{label:"上线单名称"}}]),[this.detail.name]),t("a-form-item",s()([{props:e},{attrs:{label:"上线模式"}}]),[1==this.detail.repo_mode?t("div",[t("div",[t("a-icon",{attrs:{type:"branches"}})," 分支上线 - ",t("strong",[this.detail.repo_branch])," 分支"]),t("div",["版本: ",this.detail.repo_commit])]):t("span",[t("a-icon",{attrs:{type:"tag"}})," Tag上线 - Tag: ",this.detail.repo_tag])]),t("a-form-item",s()([{props:e},{attrs:{label:"描述信息"}}]),[this.detail.description]),t("a-form-item",s()([{props:e},{attrs:{label:"状态"}}]),[this.applyStatusShow(this.detail.status)]),t("a-form-item",s()([{props:e},{attrs:{label:"申请时间"}}]),[this.$root.FormatDateTime(this.detail.ctime)]),t("a-form-item",s()([{props:e},{attrs:{label:"申请人"}}]),[this.detail.user_name," (",this.detail.user_email,")"]),t(c["default"],{attrs:{"log-data":this.operateLog}})])},data:function(){return{operateLog:[]}},components:{LogComponent:c["default"]},props:{detail:{type:Object,default:function(){return{}}}},methods:{applyStatusShow:function(t){var e="未知";switch(t){case 1:e="待审核";break;case 2:e="审核不通过";break;case 3:e="审核通过待上线";break;case 4:e="上线中";break;case 5:e="上线成功";break;case 6:e="上线失败";break;case 7:e="废弃";break}return e},loadOperateLog:function(){var t=this;Object(o["i"])({id:this.detail.id}).then(function(e){t.operateLog=e.list})}},mounted:function(){this.loadOperateLog()}},p=l["Form"].create()(d),u={render:function(){var t=arguments[0],e=this.form,a=e.getFieldDecorator,i=e.getFieldValue,n={labelCol:{span:6},wrapperCol:{span:16}};return a("id",{initialValue:this.detail.id}),t("a-form",[t("a-form-item",s()([{props:n},{attrs:{label:"项目空间"}}]),[this.detail.space_name]),t("a-form-item",s()([{props:n},{attrs:{label:"项目名称"}}]),[this.detail.project_name]),t("a-form-item",s()([{props:n},{attrs:{label:"上线单名称"}}]),[this.detail.name]),t("a-form-item",s()([{props:n},{attrs:{label:"上线模式"}}]),[1==this.detail.repo_mode?t("div",[t("div",[t("a-icon",{attrs:{type:"branches"}})," 分支上线 - ",t("strong",[this.detail.repo_branch])," 分支"]),t("div",["版本: ",this.detail.repo_commit])]):t("span",[t("a-icon",{attrs:{type:"tag"}})," Tag上线 - Tag: ",this.detail.repo_tag])]),t("a-form-item",s()([{props:n},{attrs:{label:"描述信息"}}]),[this.detail.description]),t("a-form-item",s()([{props:n},{attrs:{label:"申请人"}}]),[this.detail.user_name," (",this.detail.user_email,") - ",this.$root.FormatDateTime(this.detail.ctime)]),t("a-form-item",s()([{props:n},{attrs:{label:"审核"}}]),[a("audit",{initialValue:1})(t("a-radio-group",[t("a-radio",{attrs:{value:1}},[t("span",{class:"app-color-success"},["审核通过"])]),t("a-radio",{attrs:{value:0}},[t("span",{class:"app-color-error"},["审核拒绝"])])]))]),0==i("audit")?t("a-form-item",s()([{props:n},{attrs:{label:"拒绝原因"}}]),[a("reject_reason",{initialValue:""})(t("a-textarea",{attrs:{placeholder:"请输入拒绝原因",rows:3}}))]):""])},props:{detail:{type:Object,default:function(){return{}}}},methods:{}},h=l["Form"].create()(u),f=a("af43"),m={data:function(){return{tableColumns:[{dataIndex:"id",title:"ID",width:"6%"},{dataIndex:"name",title:"上线单名称",scopedSlots:{customRender:"name"}},{dataIndex:"project_name",title:"空间名称/项目名称",width:"30%",scopedSlots:{customRender:"project_name"}},{dataIndex:"ctime",title:"提交时间",width:"10%",scopedSlots:{customRender:"ctime"}},{dataIndex:"user_name",title:"提交者",width:"10%",scopedSlots:{customRender:"user_name"}},{dataIndex:"status",title:"状态",width:"12%",scopedSlots:{customRender:"status"}},{dataIndex:"op",title:"操作",width:"10%",align:"right",scopedSlots:{customRender:"op"}}],tableSource:[],pagination:{pageSize:10,current:1,total:0},tableLoading:!1,search:{keyword:"",projectId:void 0,time:void 0,status:void 0},searchProjectList:[],searchTime:[{day:1,title:"今天"},{day:7,title:"7天内"},{day:30,title:"一个月内"},{day:90,title:"3个月内"},{day:365,title:"一年内"},{day:0,title:"时间不限"}],searchStatus:[{id:0,title:"不限"},{id:1,title:"待审核"},{id:2,title:"审核拒绝"},{id:3,title:"待上线"},{id:4,title:"上线中"},{id:5,title:"已上线"},{id:6,title:"上线失败"},{id:7,title:"已废弃"}],dialogViewVisible:!1,dialogViewConfirmLoading:!1,applyDetail:{},dialogAuditVisible:!1,dialogAuditConfirmLoading:!1,dialogEditVisible:!1,dialogEditConfirmLoading:!1}},components:{ApplyViewComponent:p,ApplyAuditComponent:h,ApplyUpdateComponent:f["a"]},methods:{handleSearch:function(t){this.pagination.current=1,this.handleTableChange(this.pagination)},handleTableChange:function(t){this.pagination.current=t.current,this.getDataList({page:t.current,pageSize:t.pageSize})},handleMenuClick:function(t,e){var a=this,i=t.key;switch(i){case"view":this.handleShowView(e.id);break;case"edit":this.handleShowEdit(e.id);break;case"audit":this.handleShowAudit(e.id);break;case"unaudit":this.$confirm({title:"取消审核",content:"确定要取消已审核的上线单吗?",onOk:function(){a.handleUnAudit(e.id)},okText:"确定",cancelText:"取消"});break;case"discard":this.$confirm({title:"废弃上线单",content:"废弃后将无法恢复, 确定要废弃此上线单吗?",onOk:function(){a.handleDiscard(e.id)},okText:"确定",cancelText:"取消"});break;case"deploy":this.$root.GotoRouter("deployRelease",{id:e.id});break}},handleShowView:function(t){var e=this;this.dialogViewConfirmLoading=!0,Object(o["c"])({id:t}).then(function(t){e.dialogViewVisible=!0,e.dialogViewConfirmLoading=!1,e.applyDetail=t}).catch(function(t){e.dialogViewConfirmLoading=!1})},dialogViewCancel:function(){this.dialogViewVisible=!1},handleShowAudit:function(t){var e=this;this.dialogAuditConfirmLoading=!0,Object(o["c"])({id:t}).then(function(t){e.dialogAuditVisible=!0,e.dialogAuditConfirmLoading=!1,e.applyDetail=t}).catch(function(t){e.dialogAuditConfirmLoading=!1})},dialogAuditCancel:function(){this.dialogAuditVisible=!1},dialogAuditSubmit:function(){var t=this;this.$refs.auditRef.validateFields(function(e,a){e||(t.dialogAuditConfirmLoading=!0,Object(o["a"])(a).then(function(e){t.dialogAuditConfirmLoading=!1,t.handleTableChange(t.pagination),t.dialogAuditCancel()}).catch(function(e){t.dialogAuditConfirmLoading=!1}))})},handleShowEdit:function(t){var e=this;this.dialogEditConfirmLoading=!0,Object(o["c"])({id:t}).then(function(t){e.dialogEditVisible=!0,e.dialogEditConfirmLoading=!1,e.applyDetail=t}).catch(function(t){e.dialogEditConfirmLoading=!1})},dialogEditCancel:function(){this.dialogEditVisible=!1},dialogEditSubmit:function(){var t=this;this.$refs.auditRef.validateFields(function(e,a){e||(t.dialogEditConfirmLoading=!0,Object(o["q"])(a).then(function(e){t.dialogAuditConfirmLoading=!1,t.handleTableChange(t.pagination),t.dialogEditCancel()}).catch(function(e){t.dialogAuditConfirmLoading=!1}))})},handleUnAudit:function(t){var e=this,a=this.$message.loading("取消审核上线单...",0);Object(o["p"])({id:t}).then(function(t){a(),setTimeout(function(){e.$message.success("上线单取消成功")},500),e.handleTableChange(e.pagination)}).catch(function(t){a(),e.$message.error("上线单取消失败")})},handleDiscard:function(t){var e=this,a=this.$message.loading("废弃上线单...",0);Object(o["b"])({id:t}).then(function(t){a(),e.handleTableChange(e.pagination)}).catch(function(t){a(),e.$message.error("上线单废弃失败")})},rowClassName:function(t){var e="";switch(t){case 2:e="app-color-warning";break;case 4:e="app-color-info";break;case 7:e="app-color-gray";break;case 6:e="app-color-error";break}return e},getDataList:function(t){var e=this;this.tableLoading=!0;var a=(t.page-1)*t.pageSize;Object(o["d"])({keyword:this.search.keyword,project_id:this.search.projectId,time:this.search.time,status:this.search.status,offset:a,limit:t.pageSize}).then(function(t){e.tableLoading=!1,e.pagination.total=t.total,e.tableSource=t.list}).catch(function(t){e.tableLoading=!1})},getProjectList:function(){var t=this;Object(o["e"])().then(function(e){t.searchProjectList=e.list})}},mounted:function(){this.handleTableChange(this.pagination),this.getProjectList()}},g=m,b=a("2877"),_=Object(b["a"])(g,i,n,!1,null,null,null);_.options.__file="Deploy.vue";e["default"]=_.exports},f142:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-card",{attrs:{title:"操作日志",bodyStyle:{padding:"0px"},bordered:!1}},[a("a-table",{attrs:{columns:t.tableColumns,dataSource:t.logData,bordered:!1,pagination:!1,locale:{emptyText:"无日志"},showHeader:!1},scopedSlots:t._u([{key:"ctime",fn:function(e,i){return a("span",{staticClass:"app-cursor"},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(t.$root.FormatDateTime(e)))])]),t._v("\n "+t._s(t.$root.FormatDateFromNow(e))+"\n ")],2)],1)}},{key:"user",fn:function(e,i){return a("span",{},[i.user_id?[t._v("\n "+t._s(i.user_name)+"(UID:"+t._s(i.user_id)+")\n ")]:[t._v("\n robot\n ")]],2)}},{key:"op_content",fn:function(e,i){return a("span",{},[a("span",[t._v(t._s(t.$root.T(i.op_name)))]),i.op_content?a("span",[t._v(": "+t._s(i.op_content))]):t._e()])}}])})],1)],1)},n=[],o={data:function(){return{tableColumns:[{dataIndex:"op_content",scopedSlots:{customRender:"op_content"}},{dataIndex:"user",width:"25%",scopedSlots:{customRender:"user"}},{dataIndex:"ctime",width:"20%",scopedSlots:{customRender:"ctime"}}],dataSource:[]}},props:{logData:{type:Array,default:function(){return[]}},divider:{type:Boolean,default:!1}}},r=o,s=a("2877"),l=Object(s["a"])(r,i,n,!1,null,null,null);l.options.__file="Log.vue";e["default"]=l.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f3e35ca","chunk-2d22bd3f"],{"214f":function(t,e,a){"use strict";var i=a("32e9"),n=a("2aba"),o=a("79e5"),r=a("be13"),s=a("2b4c");t.exports=function(t,e,a){var l=s(t),c=a(r,l,""[t]),d=c[0],p=c[1];o(function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})&&(n(String.prototype,t,d),i(RegExp.prototype,l,2==e?function(t,e){return p.call(t,this,e)}:function(t){return p.call(t,this)}))}},"386d":function(t,e,a){a("214f")("search",1,function(t,e,a){return[function(a){"use strict";var i=t(this),n=void 0==a?void 0:a[e];return void 0!==n?n.call(a,i):new RegExp(a)[e](String(i))},a]})},"41db":function(t,e,a){"use strict";a.d(e,"o",function(){return n}),a.d(e,"d",function(){return o}),a.d(e,"h",function(){return r}),a.d(e,"g",function(){return s}),a.d(e,"e",function(){return l}),a.d(e,"f",function(){return c}),a.d(e,"k",function(){return d}),a.d(e,"j",function(){return p}),a.d(e,"c",function(){return u}),a.d(e,"a",function(){return h}),a.d(e,"p",function(){return f}),a.d(e,"b",function(){return m}),a.d(e,"q",function(){return g}),a.d(e,"i",function(){return b}),a.d(e,"l",function(){return _}),a.d(e,"m",function(){return y}),a.d(e,"n",function(){return v});var i=a("e1d2");function n(t){return Object(i["b"])("/deploy/apply/submit",t)}function o(t){return Object(i["a"])("/deploy/apply/list",t)}function r(t){return Object(i["a"])("/deploy/apply/space/list",t)}function s(t){return Object(i["a"])("/deploy/apply/project/list",t)}function l(t){return Object(i["a"])("/deploy/apply/project/all",t)}function c(t){return Object(i["a"])("/deploy/apply/project/detail",t)}function d(t){return Object(i["a"])("/deploy/apply/repo/taglist",t)}function p(t){return Object(i["a"])("/deploy/apply/repo/commitlist",t)}function u(t){return Object(i["a"])("/deploy/apply/detail",t)}function h(t){return Object(i["b"])("/deploy/apply/audit",t)}function f(t){return Object(i["b"])("/deploy/apply/unaudit",t)}function m(t){return Object(i["b"])("/deploy/apply/discard",t)}function g(t){return Object(i["b"])("/deploy/apply/update",t)}function b(t){return Object(i["a"])("/deploy/apply/log",t)}function _(t){return Object(i["b"])("/deploy/deploy/start",t)}function y(t){return Object(i["a"])("/deploy/deploy/status",t)}function v(t){return Object(i["b"])("/deploy/deploy/stop",t)}},"92fa":function(t,e){var a=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce(function(t,e){var n,o,r,s,l;for(r in e)if(n=t[r],o=e[r],n&&a.test(r))if("class"===r&&("string"===typeof n&&(l=n,t[r]=n={},n[l]=!0),"string"===typeof o&&(l=o,e[r]=o={},o[l]=!0)),"on"===r||"nativeOn"===r||"hook"===r)for(s in o)n[s]=i(n[s],o[s]);else if(Array.isArray(n))t[r]=n.concat(o);else if(Array.isArray(o))t[r]=[n].concat(o);else for(s in o)n[s]=o[s];else t[r]=e[r];return t},{})}},af43:function(t,e,a){"use strict";var i=a("92fa"),n=a.n(i),o=(a("7f7f"),a("ac6a"),a("24b4")),r=a("41db"),s={render:function(){var t=this,e=arguments[0],a=this.form,i=a.getFieldDecorator,o=a.getFieldValue,r={labelCol:{span:6},wrapperCol:{span:16}},s=function(){var a=[];return t.tagList.forEach(function(t){a.push(e("a-select-option",{attrs:{value:"".concat(t)}},["".concat(t)]))}),a},l=function(){var a=[];return t.commitList.forEach(function(t){a.push(e("a-select-option",{attrs:{value:"".concat(t)}},["".concat(t)]))}),a};return i("project_id",{initialValue:this.detail.project_id}),i("id",{initialValue:this.detail.id}),e("a-form",[e("a-form-item",n()([{props:r},{attrs:{label:"项目名称"}}]),[this.projectDetail.name]),e("a-form-item",n()([{props:r},{attrs:{label:"上线单名称"}}]),[i("name",{rules:[{required:!0,message:"上线单名称不能为空"}],validateTrigger:"blur",initialValue:this.detail.name})(e("a-input",{attrs:{autocomplete:"off",placeholder:"请输入上线单名称"}}))]),e("a-form-item",n()([{props:r},{attrs:{label:"上线模式"}}]),[1==this.projectDetail.repo_mode?e("span",[e("a-icon",{attrs:{type:"branches"}})," 分支上线 - ",e("strong",[this.projectDetail.repo_branch])," 分支"]):e("span",[e("a-icon",{attrs:{type:"tag"}})," Tag上线"])]),1==this.projectDetail.repo_mode?e("a-form-item",n()([{props:r},{attrs:{label:"选择上线版本"}}]),[i("commit",{rules:[{required:!0,message:"选择上线版本"}],validateTrigger:"blur"})(e("div")),e("div",[e("a-select",{attrs:{showSearch:!0,placeholder:"关键词搜索",notFoundContent:this.fetching?void 0:"未找到数据",defaultActiveFirstOption:!1},on:{change:this.handleSelectCommit},style:{width:"100%"}},[this.fetching?e("a-spin",{slot:"notFoundContent",attrs:{size:"small"}}):"",l()]),e("a-button",{on:{click:this.handleFetchCommitList}},[e("a-icon",{attrs:{type:"sync",spin:this.fetching}})," ",this.fetchBtnTitle]),o("commit")?e("div",{style:"line-height: 1; margin-top: 10px;"},["选择版本 - ",o("commit")]):"",this.detail.repo_branch&&this.detail.repo_commit?e("div",{style:"line-height: 1; margin-top: 10px;"},[e("p",["当前版本 - ",this.detail.repo_branch," - ",this.detail.repo_commit])]):""])]):"",2==this.projectDetail.repo_mode?e("a-form-item",n()([{props:r},{attrs:{label:"选择上线Tag"}}]),[i("tag",{rules:[{required:!0,message:"选择上线Tag"}],validateTrigger:"blur"})(e("div")),e("a-row",{attrs:{gutter:10}},[e("a-col",{attrs:{span:16}},[e("a-select",{attrs:{showSearch:!0,placeholder:"关键词搜索",notFoundContent:this.fetching?void 0:"未找到数据",defaultActiveFirstOption:!1},on:{change:this.handleSelectTags},style:{width:"100%"}},[this.fetching?e("a-spin",{slot:"notFoundContent",attrs:{size:"small"}}):"",s()])]),e("a-col",{attrs:{span:8}},[e("a-button",{on:{click:this.handleFetchTagList}},[e("a-icon",{attrs:{type:"sync",spin:this.fetching}})," ",this.fetchBtnTitle])])]),""!=this.detail.repo_tag?e("div",[this.detail.repo_tag]):""]):"",e("a-form-item",n()([{props:r},{attrs:{help:this.nameHelp,label:"上线说明"}}]),[i("description",{rules:[{required:!0,message:"请填写上线说明"}],validateTrigger:"blur",initialValue:this.detail.description})(e("a-textarea",{attrs:{placeholder:"请详细填写上线说明",rows:3}}))])])},props:{detail:{type:Object,default:function(){return{}}}},data:function(){return{projectDetail:{},fetching:!1,commitList:[],tagList:[],fetchBtnTitle:"拉取列表"}},methods:{handleSelectCommit:function(t){this.form.setFieldsValue({commit:t})},handleSelectTags:function(t){this.form.setFieldsValue({tag:t})},handleFetchCommitList:function(){var t=this;this.fetching=!0,this.fetchBtnTitle="列表拉取中...",Object(r["j"])({id:this.detail.project_id}).then(function(e){t.fetching=!1,e.list&&(t.commitList=e.list),t.fetchBtnTitle="列表拉取成功"}).catch(function(e){t.fetching=!1,t.fetchBtnTitle="列表拉取失败",t.$error({title:"列表拉取失败",content:e.message,okText:"知道了"})})},handleFetchTagList:function(){var t=this;this.fetching=!0,this.fetchBtnTitle="列表拉取中...",Object(r["k"])({id:this.detail.project_id}).then(function(e){t.fetching=!1,e.list&&(t.tagList=e.list),t.fetchBtnTitle="列表拉取成功"}).catch(function(e){t.fetching=!1,t.fetchBtnTitle="列表拉取失败",t.$error({title:"列表拉取失败",content:e.message,okText:"知道了"})})},loadProjectDetail:function(){var t=this;Object(r["f"])({id:this.detail.project_id}).then(function(e){t.projectDetail=e})}},mounted:function(){this.loadProjectDetail()}};e["a"]=o["Form"].create()(s)},cbf4:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-card",{staticClass:"app-card",attrs:{title:"上线单管理",bordered:!1}},[a("div",{staticClass:"app-btn-group"},[a("a-row",{attrs:{gutter:10}},[a("a-col",{attrs:{span:3}},[a("a-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",placeholder:"选择提交时间",optionFilterProp:"children"},model:{value:t.search.time,callback:function(e){t.$set(t.search,"time",e)},expression:"search.time"}},t._l(t.searchTime,function(e){return a("a-select-option",{attrs:{value:e.day}},[t._v(t._s(e.title))])}))],1),a("a-col",{attrs:{span:3}},[a("a-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",placeholder:"状态",optionFilterProp:"children"},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},t._l(t.searchStatus,function(e){return a("a-select-option",{attrs:{value:e.id}},[t._v(t._s(e.title))])}))],1),a("a-col",{attrs:{span:12}},[a("a-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",showSearch:"",placeholder:"选择项目",notFoundContent:"无项目数据",optionFilterProp:"children"},model:{value:t.search.projectId,callback:function(e){t.$set(t.search,"projectId",e)},expression:"search.projectId"}},t._l(t.searchProjectList,function(e){return a("a-select-option",{attrs:{value:e.id}},[t._v(t._s(e.space_name)+" "),a("a-icon",{attrs:{type:"right"}}),t._v(" "+t._s(e.name)+" "),0==e.status?a("span",[t._v("(未启用)")]):t._e()],1)}))],1),a("a-col",{attrs:{span:6}},[a("a-input-search",{attrs:{placeholder:"关键词搜索,ID、名称",enterButton:""},on:{search:t.handleSearch},model:{value:t.search.keyword,callback:function(e){t.$set(t.search,"keyword",e)},expression:"search.keyword"}})],1)],1)],1),a("a-table",{attrs:{columns:t.tableColumns,dataSource:t.tableSource,pagination:t.pagination,loading:t.tableLoading},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"user_name",fn:function(e,i){return a("span",{staticClass:"app-cursor"},[i.user_name?[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(i.user_email))])]),t._v("\n "+t._s(i.user_name)+"\n ")],2)]:[a("span",{staticClass:"app-line-through"},[t._v("已删除")])]],2)}},{key:"project_name",fn:function(e,i){return a("span",{},[i.space_name&&i.project_name?[t._v("\n "+t._s(i.space_name)+" "),a("a-icon",{staticClass:"app-color-gray",attrs:{type:"right"}}),t._v(" "+t._s(i.project_name)+"\n ")]:[a("span",{staticClass:"app-line-through"},[t._v("已删除")])]],2)}},{key:"name",fn:function(e,i){return a("span",{class:t.rowClassName(i.status)},[t._v("\n "+t._s(e)+"\n ")])}},{key:"ctime",fn:function(e,i){return a("span",{staticClass:"app-cursor"},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(t.$root.FormatDateTime(e)))])]),t._v("\n "+t._s(t.$root.FormatDateFromNow(e))+"\n ")],2)],1)}},{key:"status",fn:function(e,i){return a("span",{class:t.rowClassName(i.status)},[1==e?a("span",[a("a-icon",{attrs:{type:"clock-circle"}}),t._v(" 待审核")],1):t._e(),2==e?a("span",[a("a-icon",{attrs:{type:"warning"}}),t._v(" 审核拒绝")],1):t._e(),3==e?a("span",[a("a-icon",{attrs:{type:"smile"}}),t._v(" 待上线")],1):t._e(),4==e?a("span",[a("a-icon",{attrs:{type:"coffee"}}),t._v(" 上线中")],1):t._e(),5==e?a("span",[a("a-icon",{attrs:{type:"check-circle"}}),t._v(" 已上线")],1):t._e(),6==e?a("span",[a("a-icon",{attrs:{type:"frown"}}),t._v(" 上线失败")],1):t._e(),7==e?a("span",[a("a-icon",{attrs:{type:"close-circle"}}),t._v(" 已废弃")],1):t._e()])}},{key:"op",fn:function(e,i){return a("span",{},[a("a-dropdown",{attrs:{trigger:["click"]}},[a("a-menu",{attrs:{slot:"overlay"},on:{click:function(e){t.handleMenuClick(e,i)}},slot:"overlay"},[a("a-menu-item",{key:"view"},[a("a-icon",{attrs:{type:"eye"}}),t._v("查看")],1),t.$root.CheckPriv(t.$root.Priv.DEPLOY_DEPLOY_ALL)||t.$root.CheckPriv(t.$root.Priv.DEPLOY_DEPLOY_MY)&&i.user_id==t.$store.getters["account/getUserId"]?[3==i.status||4==i.status?a("a-menu-item",{key:"deploy"},[a("a-icon",{attrs:{type:"coffee"}}),t._v("上线")],1):t._e(),6==i.status&&t.$root.CheckPrivs([t.$root.Priv.DEPLOY_DEPLOY_MY,t.$root.Priv.DEPLOY_DEPLOY_ALL])?a("a-menu-item",{key:"deploy"},[a("a-icon",{attrs:{type:"coffee"}}),t._v("再次上线")],1):t._e()]:t._e(),t.$root.CheckPriv(t.$root.Priv.DEPLOY_EDIT_MY)&&i.user_id==t.$store.getters["account/getUserId"]?[1==i.status||2==i.status?a("a-menu-item",{key:"edit"},[a("a-icon",{attrs:{type:"edit"}}),t._v("编辑")],1):t._e()]:t._e(),t.$root.CheckPriv(t.$root.Priv.DEPLOY_AUDIT_ALL)||t.$root.CheckPriv(t.$root.Priv.DEPLOY_AUDIT_MY)&&i.user_id==t.$store.getters["account/getUserId"]?[1==i.status?a("a-menu-item",{key:"audit"},[a("a-icon",{attrs:{type:"audit"}}),t._v("审核")],1):t._e(),3==i.status?a("a-menu-item",{key:"unaudit"},[a("a-icon",{attrs:{type:"close"}}),t._v("取消审核")],1):t._e()]:t._e(),1!=i.status&&2!=i.status&&3!=i.status&&6!=i.status||!(t.$root.CheckPriv(t.$root.Priv.DEPLOY_DROP_ALL)||t.$root.CheckPriv(t.$root.Priv.DEPLOY_DROP_MY)&&i.user_id==t.$store.getters["account/getUserId"])?t._e():a("a-menu-item",{key:"discard"},[a("a-icon",{attrs:{type:"delete"}}),t._v("废弃")],1)],2),a("a-button",{staticStyle:{"margin-left":"8px"}},[t._v("\n 操作 "),a("a-icon",{attrs:{type:"down"}})],1)],1)],1)}}])})],1),a("a-modal",{attrs:{title:"查看上线单",visible:t.dialogViewVisible,confirmLoading:t.dialogViewConfirmLoading,destroyOnClose:!0,width:"50%",footer:null},on:{cancel:t.dialogViewCancel}},[a("apply-view-component",{attrs:{detail:t.applyDetail}})],1),a("a-modal",{attrs:{title:"审核上线单",visible:t.dialogAuditVisible,confirmLoading:t.dialogAuditConfirmLoading,destroyOnClose:!0,width:"50%",okText:"审核",cancelText:"取消"},on:{ok:t.dialogAuditSubmit,cancel:t.dialogAuditCancel}},[a("apply-audit-component",{ref:"auditRef",attrs:{detail:t.applyDetail}})],1),a("a-modal",{attrs:{title:"编辑上线单",visible:t.dialogEditVisible,confirmLoading:t.dialogEditConfirmLoading,destroyOnClose:!0,width:"50%",okText:"再次提交审核",cancelText:"放弃"},on:{ok:t.dialogEditSubmit,cancel:t.dialogEditCancel}},[a("apply-update-component",{ref:"auditRef",attrs:{detail:t.applyDetail}})],1)],1)},n=[],o=(a("386d"),a("41db")),r=a("92fa"),s=a.n(r),l=(a("7f7f"),a("24b4")),c=a("f142"),d={render:function(){var t=arguments[0],e={labelCol:{span:6},wrapperCol:{span:16}};return t("a-form",[t("a-form-item",s()([{props:e},{attrs:{label:"项目空间"}}]),[this.detail.space_name]),t("a-form-item",s()([{props:e},{attrs:{label:"项目名称"}}]),[this.detail.project_name]),t("a-form-item",s()([{props:e},{attrs:{label:"上线单名称"}}]),[this.detail.name]),t("a-form-item",s()([{props:e},{attrs:{label:"上线模式"}}]),[1==this.detail.repo_mode?t("div",[t("div",[t("a-icon",{attrs:{type:"branches"}})," 分支上线 - ",t("strong",[this.detail.repo_branch])," 分支"]),t("div",["版本: ",this.detail.repo_commit])]):t("span",[t("a-icon",{attrs:{type:"tag"}})," Tag上线 - Tag: ",this.detail.repo_tag])]),t("a-form-item",s()([{props:e},{attrs:{label:"描述信息"}}]),[this.detail.description]),t("a-form-item",s()([{props:e},{attrs:{label:"状态"}}]),[this.applyStatusShow(this.detail.status)]),t("a-form-item",s()([{props:e},{attrs:{label:"申请时间"}}]),[this.$root.FormatDateTime(this.detail.ctime)]),t("a-form-item",s()([{props:e},{attrs:{label:"申请人"}}]),[this.detail.user_name," (",this.detail.user_email,")"]),t(c["default"],{attrs:{"log-data":this.operateLog}})])},data:function(){return{operateLog:[]}},components:{LogComponent:c["default"]},props:{detail:{type:Object,default:function(){return{}}}},methods:{applyStatusShow:function(t){var e="未知";switch(t){case 1:e="待审核";break;case 2:e="审核不通过";break;case 3:e="审核通过待上线";break;case 4:e="上线中";break;case 5:e="上线成功";break;case 6:e="上线失败";break;case 7:e="废弃";break}return e},loadOperateLog:function(){var t=this;Object(o["i"])({id:this.detail.id}).then(function(e){t.operateLog=e.list})}},mounted:function(){this.loadOperateLog()}},p=l["Form"].create()(d),u={render:function(){var t=arguments[0],e=this.form,a=e.getFieldDecorator,i=e.getFieldValue,n={labelCol:{span:6},wrapperCol:{span:16}};return a("id",{initialValue:this.detail.id}),t("a-form",[t("a-form-item",s()([{props:n},{attrs:{label:"项目空间"}}]),[this.detail.space_name]),t("a-form-item",s()([{props:n},{attrs:{label:"项目名称"}}]),[this.detail.project_name]),t("a-form-item",s()([{props:n},{attrs:{label:"上线单名称"}}]),[this.detail.name]),t("a-form-item",s()([{props:n},{attrs:{label:"上线模式"}}]),[1==this.detail.repo_mode?t("div",[t("div",[t("a-icon",{attrs:{type:"branches"}})," 分支上线 - ",t("strong",[this.detail.repo_branch])," 分支"]),t("div",["版本: ",this.detail.repo_commit])]):t("span",[t("a-icon",{attrs:{type:"tag"}})," Tag上线 - Tag: ",this.detail.repo_tag])]),t("a-form-item",s()([{props:n},{attrs:{label:"描述信息"}}]),[this.detail.description]),t("a-form-item",s()([{props:n},{attrs:{label:"申请人"}}]),[this.detail.user_name," (",this.detail.user_email,") - ",this.$root.FormatDateTime(this.detail.ctime)]),t("a-form-item",s()([{props:n},{attrs:{label:"审核"}}]),[a("audit",{initialValue:1})(t("a-radio-group",[t("a-radio",{attrs:{value:1}},[t("span",{class:"app-color-success"},["审核通过"])]),t("a-radio",{attrs:{value:0}},[t("span",{class:"app-color-error"},["审核拒绝"])])]))]),0==i("audit")?t("a-form-item",s()([{props:n},{attrs:{label:"拒绝原因"}}]),[a("reject_reason",{initialValue:""})(t("a-textarea",{attrs:{placeholder:"请输入拒绝原因",rows:3}}))]):""])},props:{detail:{type:Object,default:function(){return{}}}},methods:{}},h=l["Form"].create()(u),f=a("af43"),m={data:function(){return{tableColumns:[{dataIndex:"id",title:"ID",width:"6%"},{dataIndex:"name",title:"上线单名称",scopedSlots:{customRender:"name"}},{dataIndex:"project_name",title:"空间名称/项目名称",width:"30%",scopedSlots:{customRender:"project_name"}},{dataIndex:"ctime",title:"提交时间",width:"10%",scopedSlots:{customRender:"ctime"}},{dataIndex:"user_name",title:"提交者",width:"10%",scopedSlots:{customRender:"user_name"}},{dataIndex:"status",title:"状态",width:"12%",scopedSlots:{customRender:"status"}},{dataIndex:"op",title:"操作",width:"10%",align:"right",scopedSlots:{customRender:"op"}}],tableSource:[],pagination:{pageSize:10,current:1,total:0},tableLoading:!1,search:{keyword:"",projectId:void 0,time:void 0,status:void 0},searchProjectList:[],searchTime:[{day:1,title:"今天"},{day:7,title:"7天内"},{day:30,title:"一个月内"},{day:90,title:"3个月内"},{day:365,title:"一年内"},{day:0,title:"时间不限"}],searchStatus:[{id:0,title:"不限"},{id:1,title:"待审核"},{id:2,title:"审核拒绝"},{id:3,title:"待上线"},{id:4,title:"上线中"},{id:5,title:"已上线"},{id:6,title:"上线失败"},{id:7,title:"已废弃"}],dialogViewVisible:!1,dialogViewConfirmLoading:!1,applyDetail:{},dialogAuditVisible:!1,dialogAuditConfirmLoading:!1,dialogEditVisible:!1,dialogEditConfirmLoading:!1}},components:{ApplyViewComponent:p,ApplyAuditComponent:h,ApplyUpdateComponent:f["a"]},methods:{handleSearch:function(t){this.pagination.current=1,this.handleTableChange(this.pagination)},handleTableChange:function(t){this.pagination.current=t.current,this.getDataList({page:t.current,pageSize:t.pageSize})},handleMenuClick:function(t,e){var a=this,i=t.key;switch(i){case"view":this.handleShowView(e.id);break;case"edit":this.handleShowEdit(e.id);break;case"audit":this.handleShowAudit(e.id);break;case"unaudit":this.$confirm({title:"取消审核",content:"确定要取消已审核的上线单吗?",onOk:function(){a.handleUnAudit(e.id)},okText:"确定",cancelText:"取消"});break;case"discard":this.$confirm({title:"废弃上线单",content:"废弃后将无法恢复, 确定要废弃此上线单吗?",onOk:function(){a.handleDiscard(e.id)},okText:"确定",cancelText:"取消"});break;case"deploy":this.$root.GotoRouter("deployRelease",{id:e.id});break}},handleShowView:function(t){var e=this;this.dialogViewConfirmLoading=!0,Object(o["c"])({id:t}).then(function(t){e.dialogViewVisible=!0,e.dialogViewConfirmLoading=!1,e.applyDetail=t}).catch(function(t){e.dialogViewConfirmLoading=!1})},dialogViewCancel:function(){this.dialogViewVisible=!1},handleShowAudit:function(t){var e=this;this.dialogAuditConfirmLoading=!0,Object(o["c"])({id:t}).then(function(t){e.dialogAuditVisible=!0,e.dialogAuditConfirmLoading=!1,e.applyDetail=t}).catch(function(t){e.dialogAuditConfirmLoading=!1})},dialogAuditCancel:function(){this.dialogAuditVisible=!1},dialogAuditSubmit:function(){var t=this;this.$refs.auditRef.validateFields(function(e,a){e||(t.dialogAuditConfirmLoading=!0,Object(o["a"])(a).then(function(e){t.dialogAuditConfirmLoading=!1,t.handleTableChange(t.pagination),t.dialogAuditCancel()}).catch(function(e){t.dialogAuditConfirmLoading=!1}))})},handleShowEdit:function(t){var e=this;this.dialogEditConfirmLoading=!0,Object(o["c"])({id:t}).then(function(t){e.dialogEditVisible=!0,e.dialogEditConfirmLoading=!1,e.applyDetail=t}).catch(function(t){e.dialogEditConfirmLoading=!1})},dialogEditCancel:function(){this.dialogEditVisible=!1},dialogEditSubmit:function(){var t=this;this.$refs.auditRef.validateFields(function(e,a){e||(t.dialogEditConfirmLoading=!0,Object(o["q"])(a).then(function(e){t.dialogAuditConfirmLoading=!1,t.handleTableChange(t.pagination),t.dialogEditCancel()}).catch(function(e){t.dialogAuditConfirmLoading=!1}))})},handleUnAudit:function(t){var e=this,a=this.$message.loading("取消审核上线单...",0);Object(o["p"])({id:t}).then(function(t){a(),setTimeout(function(){e.$message.success("上线单取消成功")},500),e.handleTableChange(e.pagination)}).catch(function(t){a(),e.$message.error("上线单取消失败")})},handleDiscard:function(t){var e=this,a=this.$message.loading("废弃上线单...",0);Object(o["b"])({id:t}).then(function(t){a(),e.handleTableChange(e.pagination)}).catch(function(t){a(),e.$message.error("上线单废弃失败")})},rowClassName:function(t){var e="";switch(t){case 2:e="app-color-warning";break;case 4:e="app-color-info";break;case 7:e="app-color-gray";break;case 6:e="app-color-error";break}return e},getDataList:function(t){var e=this;this.tableLoading=!0;var a=(t.page-1)*t.pageSize;Object(o["d"])({keyword:this.search.keyword,project_id:this.search.projectId,time:this.search.time,status:this.search.status,offset:a,limit:t.pageSize}).then(function(t){e.tableLoading=!1,e.pagination.total=t.total,e.tableSource=t.list}).catch(function(t){e.tableLoading=!1})},getProjectList:function(){var t=this;Object(o["e"])().then(function(e){t.searchProjectList=e.list})}},mounted:function(){this.handleTableChange(this.pagination),this.getProjectList()}},g=m,b=a("2877"),_=Object(b["a"])(g,i,n,!1,null,null,null);_.options.__file="Deploy.vue";e["default"]=_.exports},f142:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-card",{attrs:{title:"操作日志",bodyStyle:{padding:"0px"},bordered:!1}},[a("a-table",{attrs:{columns:t.tableColumns,dataSource:t.logData,bordered:!1,pagination:!1,locale:{emptyText:"无日志"},showHeader:!1},scopedSlots:t._u([{key:"ctime",fn:function(e,i){return a("span",{staticClass:"app-cursor"},[a("a-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v(t._s(t.$root.FormatDateTime(e)))])]),t._v("\n "+t._s(t.$root.FormatDateFromNow(e))+"\n ")],2)],1)}},{key:"user",fn:function(e,i){return a("span",{},[i.user_id?[t._v("\n "+t._s(i.user_name)+"(UID:"+t._s(i.user_id)+")\n ")]:[t._v("\n robot\n ")]],2)}},{key:"op_content",fn:function(e,i){return a("span",{},[a("span",[t._v(t._s(t.$root.T(i.op_name)))]),i.op_content?a("span",[t._v(": "+t._s(i.op_content))]):t._e()])}}])})],1)],1)},n=[],o={data:function(){return{tableColumns:[{dataIndex:"op_content",scopedSlots:{customRender:"op_content"}},{dataIndex:"user",width:"25%",scopedSlots:{customRender:"user"}},{dataIndex:"ctime",width:"20%",scopedSlots:{customRender:"ctime"}}],dataSource:[]}},props:{logData:{type:Array,default:function(){return[]}},divider:{type:Boolean,default:!1}}},r=o,s=a("2877"),l=Object(s["a"])(r,i,n,!1,null,null,null);l.options.__file="Log.vue";e["default"]=l.exports}}]); \ No newline at end of file diff --git a/public/static/1547366781/js/chunk-70a8b2ce.0792c6f2.js b/public/static/1547565111/js/chunk-70a8b2ce.01fcd57f.js similarity index 79% rename from public/static/1547366781/js/chunk-70a8b2ce.0792c6f2.js rename to public/static/1547565111/js/chunk-70a8b2ce.01fcd57f.js index f819e47..c6e0237 100644 --- a/public/static/1547366781/js/chunk-70a8b2ce.0792c6f2.js +++ b/public/static/1547565111/js/chunk-70a8b2ce.01fcd57f.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70a8b2ce"],{"11e9":function(e,t,a){var r=a("52a7"),i=a("4630"),n=a("6821"),o=a("6a99"),l=a("69a8"),s=a("c69a"),c=Object.getOwnPropertyDescriptor;t.f=a("9e1e")?c:function(e,t){if(e=n(e),t=o(t,!0),s)try{return c(e,t)}catch(a){}if(l(e,t))return i(!r.f.call(e,t),e[t])}},"214f":function(e,t,a){"use strict";var r=a("32e9"),i=a("2aba"),n=a("79e5"),o=a("be13"),l=a("2b4c");e.exports=function(e,t,a){var s=l(e),c=a(o,s,""[e]),p=c[0],u=c[1];n(function(){var t={};return t[s]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,p),r(RegExp.prototype,s,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},"24d2":function(e,t,a){"use strict";a.d(t,"m",function(){return i}),a.d(t,"r",function(){return n}),a.d(t,"l",function(){return o}),a.d(t,"h",function(){return l}),a.d(t,"f",function(){return s}),a.d(t,"b",function(){return c}),a.d(t,"j",function(){return p}),a.d(t,"n",function(){return u}),a.d(t,"s",function(){return d}),a.d(t,"i",function(){return f}),a.d(t,"g",function(){return h}),a.d(t,"e",function(){return b}),a.d(t,"c",function(){return m}),a.d(t,"a",function(){return v}),a.d(t,"k",function(){return g}),a.d(t,"o",function(){return _}),a.d(t,"q",function(){return C}),a.d(t,"p",function(){return y}),a.d(t,"d",function(){return j});var r=a("e1d2");function i(e){return Object(r["b"])("/project/new",e)}function n(e){return Object(r["b"])("/project/update",e)}function o(e){return Object(r["a"])("/project/list",e)}function l(e){return Object(r["a"])("/project/detail",e)}function s(e){return Object(r["b"])("/project/delete",e)}function c(e){return Object(r["b"])("/project/status/change",e)}function p(e){return Object(r["a"])("/project/space/list",e)}function u(e){return Object(r["b"])("/project/space/new",e)}function d(e){return Object(r["b"])("/project/space/update",e)}function f(e){return Object(r["a"])("/project/space/detail",e)}function h(e){return Object(r["b"])("/project/space/delete",e)}function b(e){return Object(r["a"])("/project/space/exists",e)}function m(e){return Object(r["a"])("/project/exists",e)}function v(e){return Object(r["b"])("/project/user/add",e)}function g(e){return Object(r["a"])("/project/user/list")}function _(e){return Object(r["b"])("/project/user/remove",e)}function C(e){return Object(r["a"])("/project/user/search",e)}function y(e){return Object(r["b"])("/project/repo/reset",e)}function j(e){return Object(r["a"])("/project/server/check",e)}},"386d":function(e,t,a){a("214f")("search",1,function(e,t,a){return[function(a){"use strict";var r=e(this),i=void 0==a?void 0:a[t];return void 0!==i?i.call(a,r):new RegExp(a)[t](String(r))},a]})},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"5dbc":function(e,t,a){var r=a("d3f4"),i=a("8b97").set;e.exports=function(e,t,a){var n,o=t.constructor;return o!==a&&"function"==typeof o&&(n=o.prototype)!==a.prototype&&r(n)&&i&&i(e,n),e}},"8b97":function(e,t,a){var r=a("d3f4"),i=a("cb7c"),n=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=a("9b43")(Function.call,a("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,a){return n(e,a),t?e.__proto__=a:r(e,a),e}}({},!1):void 0),check:n}},9093:function(e,t,a){var r=a("ce10"),i=a("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"92fa":function(e,t){var a=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce(function(e,t){var i,n,o,l,s;for(o in t)if(i=e[o],n=t[o],i&&a.test(o))if("class"===o&&("string"===typeof i&&(s=i,e[o]=i={},i[s]=!0),"string"===typeof n&&(s=n,t[o]=n={},n[s]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(l in n)i[l]=r(i[l],n[l]);else if(Array.isArray(i))e[o]=i.concat(n);else if(Array.isArray(n))e[o]=[i].concat(n);else for(l in n)i[l]=n[l];else e[o]=t[o];return e},{})}},aa22:function(e,t,a){"use strict";a.d(t,"g",function(){return i}),a.d(t,"i",function(){return n}),a.d(t,"d",function(){return o}),a.d(t,"c",function(){return l}),a.d(t,"a",function(){return s}),a.d(t,"h",function(){return c}),a.d(t,"j",function(){return p}),a.d(t,"f",function(){return u}),a.d(t,"e",function(){return d}),a.d(t,"b",function(){return f});var r=a("e1d2");function i(e){return Object(r["b"])("/server/group/new",e)}function n(e){return Object(r["b"])("/server/group/update",e)}function o(e){return Object(r["a"])("/server/group/list",e)}function l(e){return Object(r["a"])("/server/group/detail",e)}function s(e){return Object(r["b"])("/server/group/delete",e)}function c(e){return Object(r["b"])("/server/new",e)}function p(e){return Object(r["b"])("/server/update",e)}function u(e){return Object(r["a"])("/server/list",e)}function d(e){return Object(r["a"])("/server/detail",e)}function f(e){return Object(r["b"])("/server/delete",e)}},aa77:function(e,t,a){var r=a("5ca1"),i=a("be13"),n=a("79e5"),o=a("fdef"),l="["+o+"]",s="​…",c=RegExp("^"+l+l+"*"),p=RegExp(l+l+"*$"),u=function(e,t,a){var i={},l=n(function(){return!!o[e]()||s[e]()!=s}),c=i[e]=l?t(d):o[e];a&&(i[a]=c),r(r.P+r.F*l,"String",i)},d=u.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(p,"")),e};e.exports=u},b7bc:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-card",{staticClass:"app-card",attrs:{title:"项目管理",bordered:!1}},[a("a-spin",{attrs:{spinning:e.spaceLoading,tip:"Loading..."}},[a("div",{staticClass:"app-content-list"},[a("h3",[e._v(e._s(this.spaceDetail.name))]),this.spaceDetail.description?a("p",{staticClass:"description"},[e._v(e._s(this.spaceDetail.description))]):e._e()])]),a("a-divider"),a("div",{staticClass:"app-btn-group"},[a("a-row",{attrs:{gutter:10}},[a("a-col",{attrs:{span:4}},[e.$root.CheckPriv(e.$root.Priv.PROJECT_NEW)?a("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleOpenAddDialog}},[e._v("新增项目")]):e._e()],1),a("a-col",{attrs:{span:14}}),a("a-col",{attrs:{span:6}},[a("a-input-search",{attrs:{placeholder:"关键词搜索,ID、名称",enterButton:""},on:{search:e.handleSearch},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword",t)},expression:"search.keyword"}})],1)],1)],1),a("a-table",{attrs:{columns:e.tableColumns,dataSource:e.tableSource,pagination:e.pagination,loading:e.tableLoading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"repo_mode",fn:function(t){return[a("span",1==t?[e._v("分支")]:[e._v("Tag")])]}},{key:"status",fn:function(t,r){return[e.$root.CheckPriv(e.$root.Priv.PROJECT_AUDIT)?[a("a-switch",{attrs:{checkedChildren:"启用",unCheckedChildren:"未启用"},on:{click:function(t){e.handleProjectChange(r)}},model:{value:r.status,callback:function(t){e.$set(r,"status",t)},expression:"record.status"}})]:[e._v("\n "+e._s(r.status?"已启用":"未启用")+"\n ")]]}},{key:"need_audit",fn:function(t){return[a("span",1==t?[e._v("是")]:[e._v("否")])]}},{key:"op",fn:function(t,r){return a("span",{},[e.$root.CheckPriv(e.$root.Priv.PROJECT_CHECK)?a("span",{staticClass:"app-link app-op",on:{click:function(t){e.handleCheck(r.id)}}},[a("a-icon",{attrs:{type:"thunderbolt"}}),e._v("集群检测")],1):e._e(),e.$root.CheckPriv(e.$root.Priv.PROJECT_REPO)?a("span",{staticClass:"app-link app-op",on:{click:function(t){e.handleResetRepo(r.id)}}},[a("a-icon",{attrs:{type:"scan"}}),e._v("仓库重置")],1):e._e(),e.$root.CheckPriv(e.$root.Priv.PROJECT_VIEW)?a("span",{staticClass:"app-link app-op",on:{click:function(t){e.handleOpenViewDialog(r.id)}}},[a("a-icon",{attrs:{type:"eye"}}),e._v("查看")],1):e._e(),e.$root.CheckPriv(e.$root.Priv.PROJECT_EDIT)?a("span",{staticClass:"app-link app-op",on:{click:function(t){e.handleOpenUpdateDialog(r.id)}}},[a("a-icon",{attrs:{type:"edit"}}),e._v("编辑")],1):e._e(),e.$root.CheckPriv(e.$root.Priv.PROJECT_DEL)?[0==r.status?[a("a-popconfirm",{attrs:{title:"确定要删除此分组吗?",okText:"删除",cancelText:"取消"},on:{confirm:function(t){e.handleDeleteProject(r.id)}}},[a("span",{staticClass:"app-link app-op app-remove"},[a("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)])]:[a("a-tooltip",{attrs:{placement:"topRight"}},[a("template",{slot:"title"},[a("span",[e._v("删除项目前请先停用项目")])]),a("span",{staticClass:"app-op app-color-gray app-no-allow"},[a("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],2)]]:e._e()],2)}}])})],1),a("a-modal",{attrs:{title:"查看项目",visible:e.dialogViewVisible,destroyOnClose:!0,footer:null,width:"60vw"},on:{cancel:function(t){e.dialogViewVisible=!1}}},[a("project-view-component",{attrs:{"project-id":e.projectId}})],1),a("a-modal",{attrs:{title:"编辑项目",visible:e.dialogUpdateVisible,destroyOnClose:!0,footer:null,keyboard:!1,maskClosable:!1,width:"60vw"},on:{cancel:function(t){e.dialogUpdateVisible=!1}}},[a("project-update-component",{attrs:{"space-id":e.spaceId,"project-id":e.projectId},on:{close:e.closeUpdateDialog}})],1)],1)},i=[],n=(a("7f7f"),a("ac6a"),a("386d"),a("24d2")),o=a("aa22"),l=(a("c5f6"),a("24b4")),s={render:function(){var e=arguments[0],t={labelCol:{span:4},wrapperCol:{span:18}};return e("a-spin",{attrs:{spinning:this.loading}},[e("a-form",[e("a-form-item",{attrs:{label:"项目ID",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.id]),e("a-form-item",{attrs:{label:"项目名称",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.name]),e("a-form-item",{attrs:{label:"项目描述",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.description]),e("a-form-item",{attrs:{label:"开启审核",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.need_audit?"需要审核":"不需要审核"]),e("a-form-item",{attrs:{label:"项目启用",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[1==this.detail.status?e("span",{class:"app-color-success"},[e("a-icon",{attrs:{type:"check"}})," 已启用"]):e("span",{class:"app-color-error"},[e("a-icon",{attrs:{type:"close"}})," 未启用"])]),e("a-divider"),e("a-form-item",{attrs:{label:"代码仓库地址",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.repo_url]),e("a-form-item",{attrs:{label:"上线模式",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.repo_mode?e("span",[e("a-icon",{attrs:{type:"branches"}})," 分支上线 - ",e("strong",[this.detail.repo_branch])," 分支"]):e("span",[e("a-icon",{attrs:{type:"tag"}})," Tag上线"])]),e("a-divider"),e("a-form-item",{attrs:{label:"上线集群",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[function(t){var a=[];return t&&t.forEach(function(t){a.push(e("a-tooltip",{attrs:{placement:"top"}},[e("template",{slot:"title"},[e("span",["集群ID: ",t.id,", 集群名称: ",t.name])]),e("a-tag",[e("a-icon",{attrs:{type:"cluster"}})," ",t.name])]))}),a}(this.detail.deploy_servers)]),e("a-form-item",{attrs:{label:"用户",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.deploy_user]),e("a-form-item",{attrs:{label:"目录",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.deploy_path]),e("a-form-item",{attrs:{label:"部署前运行命令",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("pre",{class:"app-shell"},[this.detail.pre_deploy_cmd])]),e("a-form-item",{attrs:{label:"部署后运行命令",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("pre",{class:"app-shell"},[this.detail.post_deploy_cmd])]),e("a-form-item",{attrs:{label:"部署超时时间(秒)",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.deploy_timeout," 秒"]),e("a-divider"),e("a-form-item",{attrs:{label:"审核通知",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.audit_notice_email]),e("a-form-item",{attrs:{label:"上线通知",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.deploy_notice_email])])])},props:{projectId:Number},data:function(){return{loading:!1,detail:{}}},methods:{getDetail:function(e){var t=this;this.loading=!0,Object(n["h"])({id:e}).then(function(e){t.loading=!1,t.detail=e})}},mounted:function(){this.getDetail(this.projectId)}},c=l["Form"].create()(s);function p(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function u(e){for(var t=1;t-1&&t.splice(a,1),this.form.setFieldsValue({deploy_server:t})},filterInvalidServerGroup:function(e){var t=this,a=[];return e&&e.forEach(function(e){t.findServerItem(e).id&&a.push(e)}),a},getDataDetail:function(e){var t=this;this.detailLoading=!0,Object(n["h"])({id:e}).then(function(e){t.detail=e,t.detailLoading=!1})},getDataGroupList:function(){var e=this;Object(o["d"])({offset:0,limit:9999}).then(function(t){e.serverGroupList=t.list})}},mounted:function(){this.projectId&&this.getDataDetail(this.projectId),this.getDataGroupList()}},b=l["Form"].create()(h),m={components:{ProjectViewComponent:c,ProjectUpdateComponent:b},data:function(){return{tableColumns:[{dataIndex:"id",title:"项目ID",width:"10%"},{dataIndex:"name",title:"项目名称"},{dataIndex:"repo_mode",title:"上线方式",width:"10%",align:"center",scopedSlots:{customRender:"repo_mode"}},{dataIndex:"need_audit",title:"开启审核",width:"10%",align:"center",scopedSlots:{customRender:"need_audit"}},{dataIndex:"status",title:"项目启用",width:"10%",align:"center",scopedSlots:{customRender:"status"}},{dataIndex:"op",title:"操作",width:"35%",align:"right",scopedSlots:{customRender:"op"}}],tableLoading:!1,tableSource:[],pagination:{pageSize:10,current:1,total:0},search:{},dialogViewVisible:!1,dialogUpdateVisible:!1,labelCol:{span:4},wrapperCol:{span:18},projectId:0,spaceId:0,spaceLoading:!1,spaceDetail:{}}},methods:{handleSearch:function(e){this.search.keyword=e,this.pagination.current=1,this.handleTableChange(this.pagination)},handleTableChange:function(e){this.pagination.current=e.current,this.getDataList({page:e.current,pageSize:e.pageSize})},handleDeleteProject:function(e){var t=this;Object(n["f"])({id:e}).then(function(e){t.$message.success("删除成功",1),t.$root.ResetPagination(t.pagination),t.handleTableChange(t.pagination)})},handleOpenAddDialog:function(){this.projectId=0,this.dialogUpdateVisible=!0},handleOpenViewDialog:function(e){this.projectId=e,this.dialogViewVisible=!0},handleOpenUpdateDialog:function(e){this.projectId=e,this.dialogUpdateVisible=!0},handleProjectChange:function(e){Object(n["b"])({id:e.id,status:e.status?1:0}).then(function(e){}).catch(function(t){e.status=!e.status})},handleResetRepo:function(e){var t=this,a=this.$createElement,r=this.$info({title:"代码仓库重置",content:a("div",["代码仓库重置中,请不要离开此页面..."]),okText:"终止",okType:"default",iconType:"loading",keyboard:!1,onOk:function(){t.$CancelAjaxRequet()}});Object(n["p"])({id:e}).then(function(e){r.destroy(),t.$success({title:"代码仓库重置成功",content:"代码仓库重置成功",okText:"知道了"})}).catch(function(e){r.destroy(),t.$error({title:"代码仓库重置失败",content:e.message,okText:"知道了"})})},closeUpdateDialog:function(){this.dialogUpdateVisible=!1,this.handleTableChange(this.pagination)},handleCheck:function(e){var t=this,a=this.$createElement,r=this.$info({title:"集群连通性检测",content:a("div",["服务器集群连通性检测中,请不要刷新或离开页面..."]),okText:"终止检测",okType:"default",iconType:"loading",keyboard:!1,onOk:function(){t.$CancelAjaxRequet()}});Object(n["d"])({id:e}).then(function(e){r.destroy();var i=[];e.srv_list&&e.srv_list.forEach(function(e){i.push(a("div",[e.ip," - ",e.name]))}),t.$success({title:"集群连通性检测成功",content:a("div",[a("h4",["服务器列表"]),a("div",[i])]),okText:"知道了"})}).catch(function(e){r.destroy(),t.$IsCancel(e)||t.$error({title:"集群连通性检测失败",content:a("div",[a("h4",["输出日志"]),a("pre",[e.message])]),okText:"知道了"})})},getDataList:function(e){var t=this;this.tableLoading=!0;var a=(e.page-1)*e.pageSize;Object(n["l"])({space_id:this.spaceId,keyword:this.search.keyword,offset:a,limit:e.pageSize}).then(function(e){t.tableLoading=!1,t.pagination.total=e.total,e.list&&e.list.forEach(function(t,a){e.list[a].status=!!t.status}),t.tableSource=e.list}).catch(function(e){t.tableLoading=!1})},getSpaceDetail:function(e){var t=this;this.spaceLoading=!0,Object(n["i"])({id:e}).then(function(e){t.spaceLoading=!1,t.spaceDetail=e}).catch(function(e){t.spaceLoading=!1})}},mounted:function(){var e=parseInt(this.$route.query.space);e||this.$root.GotoRouter("projectSpace"),this.spaceId=e,this.getSpaceDetail(this.spaceId),this.handleTableChange(this.pagination)}},v=m,g=a("2877"),_=Object(g["a"])(v,r,i,!1,null,null,null);_.options.__file="Project.vue";t["default"]=_.exports},c5f6:function(e,t,a){"use strict";var r=a("7726"),i=a("69a8"),n=a("2d95"),o=a("5dbc"),l=a("6a99"),s=a("79e5"),c=a("9093").f,p=a("11e9").f,u=a("86cc").f,d=a("aa77").trim,f="Number",h=r[f],b=h,m=h.prototype,v=n(a("2aeb")(m))==f,g="trim"in String.prototype,_=function(e){var t=l(e,!1);if("string"==typeof t&&t.length>2){t=g?t.trim():d(t,3);var a,r,i,n=t.charCodeAt(0);if(43===n||45===n){if(a=t.charCodeAt(2),88===a||120===a)return NaN}else if(48===n){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var o,s=t.slice(2),c=0,p=s.length;ci)return NaN;return parseInt(s,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof h&&(v?s(function(){m.valueOf.call(a)}):n(a)!=f)?o(new b(_(t)),a,h):_(t)};for(var C,y=a("9e1e")?c(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j=0;y.length>j;j++)i(b,C=y[j])&&!i(h,C)&&u(h,C,p(b,C));h.prototype=m,m.constructor=h,a("2aba")(r,f,h)}},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70a8b2ce"],{"11e9":function(e,t,a){var r=a("52a7"),i=a("4630"),n=a("6821"),o=a("6a99"),l=a("69a8"),s=a("c69a"),c=Object.getOwnPropertyDescriptor;t.f=a("9e1e")?c:function(e,t){if(e=n(e),t=o(t,!0),s)try{return c(e,t)}catch(a){}if(l(e,t))return i(!r.f.call(e,t),e[t])}},"214f":function(e,t,a){"use strict";var r=a("32e9"),i=a("2aba"),n=a("79e5"),o=a("be13"),l=a("2b4c");e.exports=function(e,t,a){var s=l(e),c=a(o,s,""[e]),p=c[0],u=c[1];n(function(){var t={};return t[s]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,p),r(RegExp.prototype,s,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},"24d2":function(e,t,a){"use strict";a.d(t,"m",function(){return i}),a.d(t,"r",function(){return n}),a.d(t,"l",function(){return o}),a.d(t,"h",function(){return l}),a.d(t,"f",function(){return s}),a.d(t,"b",function(){return c}),a.d(t,"j",function(){return p}),a.d(t,"n",function(){return u}),a.d(t,"s",function(){return d}),a.d(t,"i",function(){return f}),a.d(t,"g",function(){return h}),a.d(t,"e",function(){return b}),a.d(t,"c",function(){return m}),a.d(t,"a",function(){return v}),a.d(t,"k",function(){return g}),a.d(t,"o",function(){return _}),a.d(t,"q",function(){return C}),a.d(t,"p",function(){return y}),a.d(t,"d",function(){return j});var r=a("e1d2");function i(e){return Object(r["b"])("/project/new",e)}function n(e){return Object(r["b"])("/project/update",e)}function o(e){return Object(r["a"])("/project/list",e)}function l(e){return Object(r["a"])("/project/detail",e)}function s(e){return Object(r["b"])("/project/delete",e)}function c(e){return Object(r["b"])("/project/status/change",e)}function p(e){return Object(r["a"])("/project/space/list",e)}function u(e){return Object(r["b"])("/project/space/new",e)}function d(e){return Object(r["b"])("/project/space/update",e)}function f(e){return Object(r["a"])("/project/space/detail",e)}function h(e){return Object(r["b"])("/project/space/delete",e)}function b(e){return Object(r["a"])("/project/space/exists",e)}function m(e){return Object(r["a"])("/project/exists",e)}function v(e){return Object(r["b"])("/project/user/add",e)}function g(e){return Object(r["a"])("/project/user/list")}function _(e){return Object(r["b"])("/project/user/remove",e)}function C(e){return Object(r["a"])("/project/user/search",e)}function y(e){return Object(r["b"])("/project/repo/reset",e)}function j(e){return Object(r["a"])("/project/server/check",e)}},"386d":function(e,t,a){a("214f")("search",1,function(e,t,a){return[function(a){"use strict";var r=e(this),i=void 0==a?void 0:a[t];return void 0!==i?i.call(a,r):new RegExp(a)[t](String(r))},a]})},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"5dbc":function(e,t,a){var r=a("d3f4"),i=a("8b97").set;e.exports=function(e,t,a){var n,o=t.constructor;return o!==a&&"function"==typeof o&&(n=o.prototype)!==a.prototype&&r(n)&&i&&i(e,n),e}},"8b97":function(e,t,a){var r=a("d3f4"),i=a("cb7c"),n=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=a("9b43")(Function.call,a("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,a){return n(e,a),t?e.__proto__=a:r(e,a),e}}({},!1):void 0),check:n}},9093:function(e,t,a){var r=a("ce10"),i=a("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"92fa":function(e,t){var a=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce(function(e,t){var i,n,o,l,s;for(o in t)if(i=e[o],n=t[o],i&&a.test(o))if("class"===o&&("string"===typeof i&&(s=i,e[o]=i={},i[s]=!0),"string"===typeof n&&(s=n,t[o]=n={},n[s]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(l in n)i[l]=r(i[l],n[l]);else if(Array.isArray(i))e[o]=i.concat(n);else if(Array.isArray(n))e[o]=[i].concat(n);else for(l in n)i[l]=n[l];else e[o]=t[o];return e},{})}},aa22:function(e,t,a){"use strict";a.d(t,"g",function(){return i}),a.d(t,"i",function(){return n}),a.d(t,"d",function(){return o}),a.d(t,"c",function(){return l}),a.d(t,"a",function(){return s}),a.d(t,"h",function(){return c}),a.d(t,"j",function(){return p}),a.d(t,"f",function(){return u}),a.d(t,"e",function(){return d}),a.d(t,"b",function(){return f});var r=a("e1d2");function i(e){return Object(r["b"])("/server/group/new",e)}function n(e){return Object(r["b"])("/server/group/update",e)}function o(e){return Object(r["a"])("/server/group/list",e)}function l(e){return Object(r["a"])("/server/group/detail",e)}function s(e){return Object(r["b"])("/server/group/delete",e)}function c(e){return Object(r["b"])("/server/new",e)}function p(e){return Object(r["b"])("/server/update",e)}function u(e){return Object(r["a"])("/server/list",e)}function d(e){return Object(r["a"])("/server/detail",e)}function f(e){return Object(r["b"])("/server/delete",e)}},aa77:function(e,t,a){var r=a("5ca1"),i=a("be13"),n=a("79e5"),o=a("fdef"),l="["+o+"]",s="​…",c=RegExp("^"+l+l+"*"),p=RegExp(l+l+"*$"),u=function(e,t,a){var i={},l=n(function(){return!!o[e]()||s[e]()!=s}),c=i[e]=l?t(d):o[e];a&&(i[a]=c),r(r.P+r.F*l,"String",i)},d=u.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(p,"")),e};e.exports=u},b7bc:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-card",{staticClass:"app-card",attrs:{title:"项目管理",bordered:!1}},[a("a-spin",{attrs:{spinning:e.spaceLoading,tip:"Loading..."}},[a("div",{staticClass:"app-content-list"},[a("h3",[e._v(e._s(this.spaceDetail.name))]),this.spaceDetail.description?a("p",{staticClass:"description"},[e._v(e._s(this.spaceDetail.description))]):e._e()])]),a("a-divider"),a("div",{staticClass:"app-btn-group"},[a("a-row",{attrs:{gutter:10}},[a("a-col",{attrs:{span:4}},[e.$root.CheckPriv(e.$root.Priv.PROJECT_NEW)?a("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleOpenAddDialog}},[e._v("新增项目")]):e._e()],1),a("a-col",{attrs:{span:14}}),a("a-col",{attrs:{span:6}},[a("a-input-search",{attrs:{placeholder:"关键词搜索,ID、名称",enterButton:""},on:{search:e.handleSearch},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword",t)},expression:"search.keyword"}})],1)],1)],1),a("a-table",{attrs:{columns:e.tableColumns,dataSource:e.tableSource,pagination:e.pagination,loading:e.tableLoading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"repo_mode",fn:function(t){return[a("span",1==t?[e._v("分支")]:[e._v("Tag")])]}},{key:"status",fn:function(t,r){return[e.$root.CheckPriv(e.$root.Priv.PROJECT_AUDIT)?[a("a-switch",{attrs:{checkedChildren:"启用",unCheckedChildren:"未启用"},on:{click:function(t){e.handleProjectChange(r)}},model:{value:r.status,callback:function(t){e.$set(r,"status",t)},expression:"record.status"}})]:[e._v("\n "+e._s(r.status?"已启用":"未启用")+"\n ")]]}},{key:"need_audit",fn:function(t){return[a("span",1==t?[e._v("是")]:[e._v("否")])]}},{key:"op",fn:function(t,r){return a("span",{},[e.$root.CheckPriv(e.$root.Priv.PROJECT_CHECK)?a("span",{staticClass:"app-link app-op",on:{click:function(t){e.handleCheck(r.id)}}},[a("a-icon",{attrs:{type:"thunderbolt"}}),e._v("集群检测")],1):e._e(),e.$root.CheckPriv(e.$root.Priv.PROJECT_REPO)?a("span",{staticClass:"app-link app-op",on:{click:function(t){e.handleResetRepo(r.id)}}},[a("a-icon",{attrs:{type:"scan"}}),e._v("仓库重置")],1):e._e(),e.$root.CheckPriv(e.$root.Priv.PROJECT_VIEW)?a("span",{staticClass:"app-link app-op",on:{click:function(t){e.handleOpenViewDialog(r.id)}}},[a("a-icon",{attrs:{type:"eye"}}),e._v("查看")],1):e._e(),e.$root.CheckPriv(e.$root.Priv.PROJECT_EDIT)?a("span",{staticClass:"app-link app-op",on:{click:function(t){e.handleOpenUpdateDialog(r.id)}}},[a("a-icon",{attrs:{type:"edit"}}),e._v("编辑")],1):e._e(),e.$root.CheckPriv(e.$root.Priv.PROJECT_DEL)?[0==r.status?[a("a-popconfirm",{attrs:{title:"确定要删除此分组吗?",okText:"删除",cancelText:"取消"},on:{confirm:function(t){e.handleDeleteProject(r.id)}}},[a("span",{staticClass:"app-link app-op app-remove"},[a("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)])]:[a("a-tooltip",{attrs:{placement:"topRight"}},[a("template",{slot:"title"},[a("span",[e._v("删除项目前请先停用项目")])]),a("span",{staticClass:"app-op app-color-gray app-no-allow"},[a("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],2)]]:e._e()],2)}}])})],1),a("a-modal",{attrs:{title:"查看项目",visible:e.dialogViewVisible,destroyOnClose:!0,footer:null,width:"60vw"},on:{cancel:function(t){e.dialogViewVisible=!1}}},[a("project-view-component",{attrs:{"project-id":e.projectId}})],1),a("a-modal",{attrs:{title:"编辑项目",visible:e.dialogUpdateVisible,destroyOnClose:!0,footer:null,keyboard:!1,maskClosable:!1,width:"60vw"},on:{cancel:function(t){e.dialogUpdateVisible=!1}}},[a("project-update-component",{attrs:{"space-id":e.spaceId,"project-id":e.projectId},on:{close:e.closeUpdateDialog}})],1)],1)},i=[],n=(a("7f7f"),a("ac6a"),a("386d"),a("24d2")),o=a("aa22"),l=(a("c5f6"),a("24b4")),s={render:function(){var e=arguments[0],t={labelCol:{span:4},wrapperCol:{span:18}};return e("a-spin",{attrs:{spinning:this.loading}},[e("a-form",[e("a-form-item",{attrs:{label:"项目ID",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.id]),e("a-form-item",{attrs:{label:"项目名称",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.name]),e("a-form-item",{attrs:{label:"项目描述",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.description]),e("a-form-item",{attrs:{label:"开启审核",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.need_audit?"需要审核":"不需要审核"]),e("a-form-item",{attrs:{label:"项目启用",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[1==this.detail.status?e("span",{class:"app-color-success"},[e("a-icon",{attrs:{type:"check"}})," 已启用"]):e("span",{class:"app-color-error"},[e("a-icon",{attrs:{type:"close"}})," 未启用"])]),e("a-divider"),e("a-form-item",{attrs:{label:"代码仓库地址",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.repo_url]),e("a-form-item",{attrs:{label:"上线模式",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.repo_mode?e("span",[e("a-icon",{attrs:{type:"branches"}})," 分支上线 - ",e("strong",[this.detail.repo_branch])," 分支"]):e("span",[e("a-icon",{attrs:{type:"tag"}})," Tag上线"])]),e("a-divider"),e("a-form-item",{attrs:{label:"上线集群",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[function(t){var a=[];return t&&t.forEach(function(t){a.push(e("a-tooltip",{attrs:{placement:"top"}},[e("template",{slot:"title"},[e("span",["集群ID: ",t.id,", 集群名称: ",t.name])]),e("a-tag",[e("a-icon",{attrs:{type:"cluster"}})," ",t.name])]))}),a}(this.detail.deploy_servers)]),e("a-form-item",{attrs:{label:"用户",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.deploy_user]),e("a-form-item",{attrs:{label:"目录",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.deploy_path]),e("a-form-item",{attrs:{label:"部署前运行命令",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("pre",{class:"app-shell"},[this.detail.pre_deploy_cmd])]),e("a-form-item",{attrs:{label:"部署后运行命令",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("pre",{class:"app-shell"},[this.detail.post_deploy_cmd])]),e("a-form-item",{attrs:{label:"部署超时时间(秒)",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.deploy_timeout," 秒"]),e("a-divider"),e("a-form-item",{attrs:{label:"审核通知",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.audit_notice_email]),e("a-form-item",{attrs:{label:"上线通知",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[this.detail.deploy_notice_email])])])},props:{projectId:Number},data:function(){return{loading:!1,detail:{}}},methods:{getDetail:function(e){var t=this;this.loading=!0,Object(n["h"])({id:e}).then(function(e){t.loading=!1,t.detail=e})}},mounted:function(){this.getDetail(this.projectId)}},c=l["Form"].create()(s);function p(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function u(e){for(var t=1;t-1&&t.splice(a,1),this.form.setFieldsValue({deploy_server:t})},filterInvalidServerGroup:function(e){var t=this,a=[];return e&&e.forEach(function(e){t.findServerItem(e).id&&a.push(e)}),a},getDataDetail:function(e){var t=this;this.detailLoading=!0,Object(n["h"])({id:e}).then(function(e){t.detail=e,t.detailLoading=!1})},getDataGroupList:function(){var e=this;Object(o["d"])({offset:0,limit:9999}).then(function(t){t.list?e.serverGroupList=t.list:e.serverGroupList=[]})}},mounted:function(){this.projectId&&this.getDataDetail(this.projectId),this.getDataGroupList()}},b=l["Form"].create()(h),m={components:{ProjectViewComponent:c,ProjectUpdateComponent:b},data:function(){return{tableColumns:[{dataIndex:"id",title:"项目ID",width:"10%"},{dataIndex:"name",title:"项目名称"},{dataIndex:"repo_mode",title:"上线方式",width:"10%",align:"center",scopedSlots:{customRender:"repo_mode"}},{dataIndex:"need_audit",title:"开启审核",width:"10%",align:"center",scopedSlots:{customRender:"need_audit"}},{dataIndex:"status",title:"项目启用",width:"10%",align:"center",scopedSlots:{customRender:"status"}},{dataIndex:"op",title:"操作",width:"35%",align:"right",scopedSlots:{customRender:"op"}}],tableLoading:!1,tableSource:[],pagination:{pageSize:10,current:1,total:0},search:{},dialogViewVisible:!1,dialogUpdateVisible:!1,labelCol:{span:4},wrapperCol:{span:18},projectId:0,spaceId:0,spaceLoading:!1,spaceDetail:{}}},methods:{handleSearch:function(e){this.search.keyword=e,this.pagination.current=1,this.handleTableChange(this.pagination)},handleTableChange:function(e){this.pagination.current=e.current,this.getDataList({page:e.current,pageSize:e.pageSize})},handleDeleteProject:function(e){var t=this;Object(n["f"])({id:e}).then(function(e){t.$message.success("删除成功",1),t.$root.ResetPagination(t.pagination),t.handleTableChange(t.pagination)})},handleOpenAddDialog:function(){this.projectId=0,this.dialogUpdateVisible=!0},handleOpenViewDialog:function(e){this.projectId=e,this.dialogViewVisible=!0},handleOpenUpdateDialog:function(e){this.projectId=e,this.dialogUpdateVisible=!0},handleProjectChange:function(e){Object(n["b"])({id:e.id,status:e.status?1:0}).then(function(e){}).catch(function(t){e.status=!e.status})},handleResetRepo:function(e){var t=this,a=this.$createElement,r=this.$info({title:"代码仓库重置",content:a("div",["代码仓库重置中,请不要离开此页面..."]),okText:"终止",okType:"default",iconType:"loading",keyboard:!1,onOk:function(){t.$CancelAjaxRequet()}});Object(n["p"])({id:e}).then(function(e){r.destroy(),t.$success({title:"代码仓库重置成功",content:"代码仓库重置成功",okText:"知道了"})}).catch(function(e){r.destroy(),t.$error({title:"代码仓库重置失败",content:e.message,okText:"知道了"})})},closeUpdateDialog:function(){this.dialogUpdateVisible=!1,this.handleTableChange(this.pagination)},handleCheck:function(e){var t=this,a=this.$createElement,r=this.$info({title:"集群连通性检测",content:a("div",["服务器集群连通性检测中,请不要刷新或离开页面..."]),okText:"终止检测",okType:"default",iconType:"loading",keyboard:!1,onOk:function(){t.$CancelAjaxRequet()}});Object(n["d"])({id:e}).then(function(e){r.destroy();var i=[];e.srv_list&&e.srv_list.forEach(function(e){i.push(a("div",[e.ip," - ",e.name]))}),t.$success({title:"集群连通性检测成功",content:a("div",[a("h4",["服务器列表"]),a("div",[i])]),okText:"知道了"})}).catch(function(e){r.destroy(),t.$IsCancel(e)||t.$error({title:"集群连通性检测失败",content:a("div",[a("h4",["输出日志"]),a("pre",[e.message])]),okText:"知道了"})})},getDataList:function(e){var t=this;this.tableLoading=!0;var a=(e.page-1)*e.pageSize;Object(n["l"])({space_id:this.spaceId,keyword:this.search.keyword,offset:a,limit:e.pageSize}).then(function(e){t.tableLoading=!1,t.pagination.total=e.total,e.list&&e.list.forEach(function(t,a){e.list[a].status=!!t.status}),t.tableSource=e.list}).catch(function(e){t.tableLoading=!1})},getSpaceDetail:function(e){var t=this;this.spaceLoading=!0,Object(n["i"])({id:e}).then(function(e){t.spaceLoading=!1,t.spaceDetail=e}).catch(function(e){t.spaceLoading=!1})}},mounted:function(){var e=parseInt(this.$route.query.space);e||this.$root.GotoRouter("projectSpace"),this.spaceId=e,this.getSpaceDetail(this.spaceId),this.handleTableChange(this.pagination)}},v=m,g=a("2877"),_=Object(g["a"])(v,r,i,!1,null,null,null);_.options.__file="Project.vue";t["default"]=_.exports},c5f6:function(e,t,a){"use strict";var r=a("7726"),i=a("69a8"),n=a("2d95"),o=a("5dbc"),l=a("6a99"),s=a("79e5"),c=a("9093").f,p=a("11e9").f,u=a("86cc").f,d=a("aa77").trim,f="Number",h=r[f],b=h,m=h.prototype,v=n(a("2aeb")(m))==f,g="trim"in String.prototype,_=function(e){var t=l(e,!1);if("string"==typeof t&&t.length>2){t=g?t.trim():d(t,3);var a,r,i,n=t.charCodeAt(0);if(43===n||45===n){if(a=t.charCodeAt(2),88===a||120===a)return NaN}else if(48===n){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var o,s=t.slice(2),c=0,p=s.length;ci)return NaN;return parseInt(s,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof h&&(v?s(function(){m.valueOf.call(a)}):n(a)!=f)?o(new b(_(t)),a,h):_(t)};for(var C,y=a("9e1e")?c(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j=0;y.length>j;j++)i(b,C=y[j])&&!i(h,C)&&u(h,C,p(b,C));h.prototype=m,m.constructor=h,a("2aba")(r,f,h)}},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]); \ No newline at end of file diff --git a/public/static/1547366781/js/chunk-91cc97ee.a652c32b.js b/public/static/1547565111/js/chunk-91cc97ee.a652c32b.js similarity index 100% rename from public/static/1547366781/js/chunk-91cc97ee.a652c32b.js rename to public/static/1547565111/js/chunk-91cc97ee.a652c32b.js diff --git a/public/static/1547366781/js/chunk-97e5651a.ceb1b1dd.js b/public/static/1547565111/js/chunk-97e5651a.ceb1b1dd.js similarity index 100% rename from public/static/1547366781/js/chunk-97e5651a.ceb1b1dd.js rename to public/static/1547565111/js/chunk-97e5651a.ceb1b1dd.js diff --git a/public/static/1547366781/js/chunk-a445eb90.8a819a2f.js b/public/static/1547565111/js/chunk-a445eb90.8a819a2f.js similarity index 100% rename from public/static/1547366781/js/chunk-a445eb90.8a819a2f.js rename to public/static/1547565111/js/chunk-a445eb90.8a819a2f.js diff --git a/public/static/1547366781/js/chunk-ede2b85c.e8e47bc5.js b/public/static/1547565111/js/chunk-ede2b85c.e8e47bc5.js similarity index 100% rename from public/static/1547366781/js/chunk-ede2b85c.e8e47bc5.js rename to public/static/1547565111/js/chunk-ede2b85c.e8e47bc5.js diff --git a/public/static/1547366781/js/chunk-f9243146.bd40a64d.js b/public/static/1547565111/js/chunk-f9243146.d646fdf6.js similarity index 97% rename from public/static/1547366781/js/chunk-f9243146.bd40a64d.js rename to public/static/1547565111/js/chunk-f9243146.d646fdf6.js index 4a8e2c8..d5d39c6 100644 --- a/public/static/1547366781/js/chunk-f9243146.bd40a64d.js +++ b/public/static/1547565111/js/chunk-f9243146.d646fdf6.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f9243146"],{7277:function(t,a,o){"use strict";o.r(a);var s=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"app-dashboard"},[s("div",{staticClass:"dashboard-container"},[s("a-card",{attrs:{bordered:!1}},[s("div",{staticClass:"meta"},[s("a-avatar",{attrs:{size:32,src:t.$store.getters["account/getAvatar"]}},[t._v(t._s(t.$store.getters["account/getAvatar"]))]),s("div",{staticClass:"content"},[t._v("早安,"+t._s(t.$store.getters["account/getUserName"])+",祝你开心每一天!")])],1),s("a-divider"),s("div",{staticClass:"quick-start"},[s("a-row",{attrs:{gutter:20}},[t.$root.CheckPriv(t.$root.Priv.DEPLOY_APPLY)?s("a-col",{attrs:{span:4}},[s("span",{staticClass:"quick-item",on:{click:function(a){t.$root.GotoRouter("deployApply")}}},[s("a-avatar",{staticClass:"item-icon",staticStyle:{color:"#fff",backgroundColor:"#f56a00"},attrs:{size:"small",icon:"edit"}}),t._v("提交上线申请")],1)]):t._e(),t.$root.CheckPrivs([t.$root.Priv.DEPLOY_VIEW_MY,t.$root.Priv.DEPLOY_VIEW_ALL])?s("a-col",{attrs:{span:4}},[s("span",{staticClass:"quick-item",on:{click:function(a){t.$root.GotoRouter("deployDeploy")}}},[s("a-avatar",{staticClass:"item-icon",staticStyle:{color:"#fff",backgroundColor:"#7265e6"},attrs:{size:"small",icon:"edit"}}),t._v("上线单管理")],1)]):t._e(),t.$root.CheckPriv(t.$root.Priv.PROJECT_SPACE_VIEW)?s("a-col",{attrs:{span:4}},[s("span",{staticClass:"quick-item",on:{click:function(a){t.$root.GotoRouter("projectSpace")}}},[s("a-avatar",{staticClass:"item-icon",staticStyle:{color:"#fff",backgroundColor:"#ffbf00"},attrs:{size:"small",icon:"edit"}}),t._v("项目管理")],1)]):t._e(),t.$root.CheckPriv(t.$root.Priv.SERVER_GROUP_VIEW)?s("a-col",{attrs:{span:4}},[s("span",{staticClass:"quick-item",on:{click:function(a){t.$root.GotoRouter("serverGroup")}}},[s("a-avatar",{staticClass:"item-icon",staticStyle:{color:"#fff",backgroundColor:"#00a2ae"},attrs:{size:"small",icon:"edit"}}),t._v("集群管理")],1)]):t._e(),t.$root.CheckPriv(t.$root.Priv.USER_VIEW)?s("a-col",{attrs:{span:4}},[s("span",{staticClass:"quick-item",on:{click:function(a){t.$root.GotoRouter("userList")}}},[s("a-avatar",{staticClass:"item-icon",staticStyle:{color:"#fff",backgroundColor:"#268bd2"},attrs:{size:"small",icon:"edit"}}),t._v("用户管理")],1)]):t._e()],1)],1),s("a-divider"),s("div",{staticClass:"go"},[s("img",{staticClass:"logo",attrs:{src:o("97c4")}})])],1)],1)])},i=[],r={},c=r,e=o("2877"),l=Object(e["a"])(c,s,i,!1,null,null,null);l.options.__file="Dashboard.vue";a["default"]=l.exports},"97c4":function(t,a,o){t.exports=o.p+"static/1547366781/img/syncd.b8a4ab5e.png"}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f9243146"],{7277:function(t,a,o){"use strict";o.r(a);var s=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"app-dashboard"},[s("div",{staticClass:"dashboard-container"},[s("a-card",{attrs:{bordered:!1}},[s("div",{staticClass:"meta"},[s("a-avatar",{attrs:{size:32,src:t.$store.getters["account/getAvatar"]}},[t._v(t._s(t.$store.getters["account/getAvatar"]))]),s("div",{staticClass:"content"},[t._v("早安,"+t._s(t.$store.getters["account/getUserName"])+",祝你开心每一天!")])],1),s("a-divider"),s("div",{staticClass:"quick-start"},[s("a-row",{attrs:{gutter:20}},[t.$root.CheckPriv(t.$root.Priv.DEPLOY_APPLY)?s("a-col",{attrs:{span:4}},[s("span",{staticClass:"quick-item",on:{click:function(a){t.$root.GotoRouter("deployApply")}}},[s("a-avatar",{staticClass:"item-icon",staticStyle:{color:"#fff",backgroundColor:"#f56a00"},attrs:{size:"small",icon:"edit"}}),t._v("提交上线申请")],1)]):t._e(),t.$root.CheckPrivs([t.$root.Priv.DEPLOY_VIEW_MY,t.$root.Priv.DEPLOY_VIEW_ALL])?s("a-col",{attrs:{span:4}},[s("span",{staticClass:"quick-item",on:{click:function(a){t.$root.GotoRouter("deployDeploy")}}},[s("a-avatar",{staticClass:"item-icon",staticStyle:{color:"#fff",backgroundColor:"#7265e6"},attrs:{size:"small",icon:"edit"}}),t._v("上线单管理")],1)]):t._e(),t.$root.CheckPriv(t.$root.Priv.PROJECT_SPACE_VIEW)?s("a-col",{attrs:{span:4}},[s("span",{staticClass:"quick-item",on:{click:function(a){t.$root.GotoRouter("projectSpace")}}},[s("a-avatar",{staticClass:"item-icon",staticStyle:{color:"#fff",backgroundColor:"#ffbf00"},attrs:{size:"small",icon:"edit"}}),t._v("项目管理")],1)]):t._e(),t.$root.CheckPriv(t.$root.Priv.SERVER_GROUP_VIEW)?s("a-col",{attrs:{span:4}},[s("span",{staticClass:"quick-item",on:{click:function(a){t.$root.GotoRouter("serverGroup")}}},[s("a-avatar",{staticClass:"item-icon",staticStyle:{color:"#fff",backgroundColor:"#00a2ae"},attrs:{size:"small",icon:"edit"}}),t._v("集群管理")],1)]):t._e(),t.$root.CheckPriv(t.$root.Priv.USER_VIEW)?s("a-col",{attrs:{span:4}},[s("span",{staticClass:"quick-item",on:{click:function(a){t.$root.GotoRouter("userList")}}},[s("a-avatar",{staticClass:"item-icon",staticStyle:{color:"#fff",backgroundColor:"#268bd2"},attrs:{size:"small",icon:"edit"}}),t._v("用户管理")],1)]):t._e()],1)],1),s("a-divider"),s("div",{staticClass:"go"},[s("img",{staticClass:"logo",attrs:{src:o("97c4")}})])],1)],1)])},i=[],r={},c=r,e=o("2877"),l=Object(e["a"])(c,s,i,!1,null,null,null);l.options.__file="Dashboard.vue";a["default"]=l.exports},"97c4":function(t,a,o){t.exports=o.p+"static/1547565111/img/syncd.b8a4ab5e.png"}}]); \ No newline at end of file diff --git a/public/static/1547366781/js/chunk-vendors.c07a6bf4.js b/public/static/1547565111/js/chunk-vendors.c07a6bf4.js similarity index 100% rename from public/static/1547366781/js/chunk-vendors.c07a6bf4.js rename to public/static/1547565111/js/chunk-vendors.c07a6bf4.js