Commit 57caa805 by 无尘

feat: 增加接口

parent 07df1ecc
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>运维平台</title><link href=./static/css/app.a5c7673c12ebacff5f9762541608281a.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.5ad31888110f31da949e.1557819940580.js></script><script type=text/javascript src=./static/js/vendor.59758b0c50cb7f43000e.1557819940580.js></script><script type=text/javascript src=./static/js/app.7b52570cb8fa294c928e.1557819940580.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>运维平台</title><link href=./static/css/app.feb8d8d0af3e57c260300e01fe23dabc.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.ab21900ed4c0cb74e6bd.1557916290126.js></script><script type=text/javascript src=./static/js/vendor.0971f19715201bb9cecd.1557916290126.js></script><script type=text/javascript src=./static/js/app.461c7cf45f9decd91acc.1557916290126.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([11],{"9e4x":function(t,e){},HFdE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("P9l9"),o={name:"tableList",props:{activeTab:{type:String,default:function(){return"android"}}},data:function(){return{requestProject:"gic-bizdict",platform:"android"==this.activeTab?"0":"1",tableData:[],loading:!1}},watch:{activeTab:function(t){"android"==t?(this.platform="0",this.getData()):(this.platform="1",this.getData())}},mounted:function(){"android"==this.activeTab?(this.platform="0",this.getData()):(this.platform="1",this.getData())},methods:{changeRoute:function(t){this.$router.push(t)},changeStatus:function(t,e){var a=this;e.status?a.$confirm("确认启用该更新?启用后,此更新将可用","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postStatus(e)}).catch(function(){e.status=!1}):a.$confirm("确认关闭该更新?关闭后,此更新将不可用","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postStatus(e)}).catch(function(){e.status=!0})},postStatus:function(t){var e=this,a={requestProject:e.requestProject,packageId:t.packageId,status:t.status};Object(n.c)("/gic-haoban-operation/app-package/"+t.packageId+"/"+t.status,a).then(function(t){var a=t.data;0==a.errorCode?e.$message({message:"更改成功",type:"success"}):e.$message.error(a.message)}).catch(function(t){e.$message.error(t)})},toShow:function(t,e){this.changeRoute("/setDetail?packageId="+e.packageId+"&activeTab="+this.activeTab+"&name="+this.$route.query.name+"&icon="+this.$route.query.icon+"&code="+this.$route.query.code+"&tabId="+this.$route.query.tabId)},toDownload:function(t,e){window.open("")},toEdit:function(t,e){this.changeRoute("/addSet?packageId="+e.packageId+"&activeTab="+this.activeTab+"&name="+this.$route.query.name+"&icon="+this.$route.query.icon+"&code="+this.$route.query.code+"&tabId="+this.$route.query.tabId)},toDel:function(t,e){var a=this;a.$confirm("确认删除吗?删除后无法恢复","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(t,e)})},postDel:function(t,e){var a=this,o={requestProject:a.requestProject,packageId:e.packageId,status:0};Object(n.c)("/gic-haoban-operation/app-package/"+e.packageId+"/0",o).then(function(e){var n=e.data;0==n.errorCode?(a.$message({message:"删除成功",type:"success"}),a.tableData.splice(t,1)):a.$message.error(n.message)}).catch(function(t){a.$message.error(t)})},getData:function(){var t=this;t.loading=!0;var e={requestProject:t.requestProject,platform:t.platform};Object(n.b)("/gic-haoban-operation/app-packages/"+t.platform,e).then(function(e){var a=e.data;t.loading=!1,0==a.errorCode?(a.result&&a.result.length&&a.result.forEach(function(t){t.status=1==t.status}),t.tableData=a.result?a.result:[]):t.$message.error(a.message)}).catch(function(e){t.loading=!1,t.$message.error(e)})}}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"android-content border-box"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:t.tableData}},[n("el-table-column",{attrs:{prop:"categoryName",label:"版本号"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.version)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"code",label:"强制更新"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.forcedUpdating?"是":"否")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"parentCode",label:"最近编辑","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.operatorName))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"code",label:"最后更新时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.updateTime)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"code",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){return t.changeStatus(e.$index,e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scoped.row.status"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"opr",label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toShow(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDownload(e.$index,e.row)}}},[t._v("下载")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{disabled:1==e.row.status,type:"text"},on:{click:function(a){return t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])}),t._v(" "),n("template",{slot:"empty"},[n("div",{staticClass:"no-data-wrap"},[n("div",{staticClass:"no-data-icon"},[n("img",{attrs:{src:a("8Td+"),alt:""}})]),t._v(" "),n("p",[t._v("暂无数据")])])])],2)],1)},staticRenderFns:[]};var c={name:"versionList",data:function(){return{requestProject:"gic-bizdict",activeTab:"android"}},mounted:function(){this.$route.query.activeTab&&(this.activeTab=this.$route.query.activeTab)},methods:{changeRoute:function(t){this.$router.push(t)},chooseTab:function(t){this.activeTab=t},toAddSet:function(){this.changeRoute("/addSet?addType="+this.activeTab+"&name="+this.$route.query.name+"&icon="+this.$route.query.icon+"&code="+this.$route.query.code+"&tabId="+this.$route.query.tabId)}},components:{androidTable:a("VU/8")(o,r,!1,function(t){a("TDEH")},"data-v-417753a8",null).exports}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-right-content border-box"},[a("div",{staticClass:"right-content-top border-box"},[a("div",{staticClass:"right-top-wrap flex flex-row flex-space-between flex-pack-center"},[a("div",{staticClass:"right-top-wrap_left flex flex-pack-center"},[a("ul",{staticClass:"flex flex-row flex-pack-center"},[a("li",{class:["flex flex-align-center flex-pack-center p-lr-24","android"==t.activeTab?"active-li":""],on:{click:function(e){return t.chooseTab("android")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[t._v("安卓配置")])]),t._v(" "),a("li",{class:["flex flex-align-center flex-pack-center p-lr-24","ios"==t.activeTab?"active-li":""],on:{click:function(e){return t.chooseTab("ios")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[t._v("iOS配置")])])])]),t._v(" "),a("div",{staticClass:"right-top-wrap_right border-box"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toAddSet(t.activeTab)}}},[t._v("新建"+t._s("android"==t.activeTab?"安卓":"iOS")+"配置")])],1)])]),t._v(" "),a("android-table",{attrs:{activeTab:t.activeTab}})],1)},staticRenderFns:[]};var s=a("VU/8")(c,i,!1,function(t){a("9e4x")},"data-v-5b5ac35b",null);e.default=s.exports},TDEH:function(t,e){}});
//# sourceMappingURL=11.a90d29d264a5d341a98f.1557819940580.js.map
\ No newline at end of file
webpackJsonp([11],{"/WQV":function(t,e){},HFdE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("P9l9"),o={name:"tableList",props:{activeTab:{type:String,default:function(){return""}}},data:function(){return{requestProject:"gic-bizdict",platform:"android"==this.activeTab?"0":"1",tableData:[],loading:!1}},filters:{formatTime:function(t){var e=new Date(t),a=e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate(),o=a<10?"0"+a:a,r=e.getHours()<10?"0"+e.getHours():e.getHours(),i=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return e.getFullYear()+"-"+o+"-"+n+" "+r+":"+i+":"+s}},watch:{activeTab:function(t){if(console.log(2,t),!t)return!1;"android"==t?(this.platform="0",this.getData()):(this.platform="1",this.getData())}},mounted:function(){console.log(1,this.activeTab),""!=this.activeTab&&("android"==this.activeTab?(this.platform="0",this.getData()):(this.platform="1",this.getData()))},methods:{changeRoute:function(t){this.$router.push(t)},formatTime:function(t){var e=new Date(t),a=e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate(),o=a<10?"0"+a:a,r=e.getHours()<10?"0"+e.getHours():e.getHours(),i=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return e.getFullYear()+"-"+o+"-"+n+" "+r+":"+i+":"+s},changeStatus:function(t,e){var a=this;e.status?(e.status=!1,a.$confirm("确认启用该更新?启用后,此更新将可用","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postStatus(t,e)}).catch(function(){e.status=!1})):(e.status=!0,a.$confirm("确认关闭该更新?关闭后,此更新将不可用","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postStatus(t,e)}).catch(function(){e.status=!0}))},postStatus:function(t,e){var a=this,o={requestProject:a.requestProject,packageId:e.packageId,status:e.status?"2":"1"};Object(n.d)("/gic-haoban-operation/app-package/"+e.packageId+"/"+o.status,o).then(function(t){var n=t.data;0==n.errorCode?(a.$message({message:"更改成功",type:"success"}),e.status=1==o.status):a.$message.error(n.message)}).catch(function(t){a.$message.error(t)})},toShow:function(t,e){this.changeRoute("/setDetail?packageId="+e.packageId+"&activeTab="+this.activeTab+"&name="+this.$route.query.name+"&icon="+this.$route.query.icon+"&code="+this.$route.query.code+"&tabId="+this.$route.query.tabId)},toDownload:function(t,e){window.open(e.url)},toEdit:function(t,e){this.changeRoute("/addSet?packageId="+e.packageId+"&activeTab="+this.activeTab+"&name="+this.$route.query.name+"&icon="+this.$route.query.icon+"&code="+this.$route.query.code+"&tabId="+this.$route.query.tabId)},toDel:function(t,e){var a=this;a.$confirm("确认删除吗?删除后无法恢复","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(t,e)})},postDel:function(t,e){var a=this,o={requestProject:a.requestProject,packageId:e.packageId,status:0};Object(n.d)("/gic-haoban-operation/app-package/"+e.packageId+"/0",o).then(function(e){var n=e.data;0==n.errorCode?(a.$message({message:"删除成功",type:"success"}),a.tableData.splice(t,1)):a.$message.error(n.message)}).catch(function(t){a.$message.error(t)})},getData:function(){var t=this;t.loading=!0;var e={requestProject:t.requestProject,platform:t.$route.query.activeTab?"ios"==t.$route.query.activeTab?"1":"0":t.platform};Object(n.b)("/gic-haoban-operation/app-packages/"+t.platform,e).then(function(e){var a=e.data;t.loading=!1,0==a.errorCode?(a.result&&a.result.length&&a.result.forEach(function(e){e.status=1==e.status,e.updateTime=t.formatTime(e.updateTime)}),t.tableData=a.result?a.result:[]):t.$message.error(a.message)}).catch(function(e){t.loading=!1,t.$message.error(e)})}}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"android-content border-box"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:t.tableData}},[n("el-table-column",{attrs:{prop:"categoryName",label:"版本号"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.version)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"code",label:"强制更新"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.forcedUpdating?"是":"否")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"parentCode",label:"最近编辑","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.operatorName))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"code",label:"最后更新时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.updateTime)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"code",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){return t.changeStatus(e.$index,e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scoped.row.status"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"opr",label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toShow(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDownload(e.$index,e.row)}}},[t._v("下载")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{disabled:1==e.row.status,type:"text"},on:{click:function(a){return t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])}),t._v(" "),n("template",{slot:"empty"},[n("div",{staticClass:"no-data-wrap"},[n("div",{staticClass:"no-data-icon"},[n("img",{attrs:{src:a("8Td+"),alt:""}})]),t._v(" "),n("p",[t._v("暂无数据")])])])],2)],1)},staticRenderFns:[]};var i={name:"versionList",data:function(){return{requestProject:"gic-bizdict",activeTab:""}},mounted:function(){this.$route.query.activeTab&&"undefined"!=this.$route.query.activeTab?this.activeTab=this.$route.query.activeTab:this.activeTab="android"},methods:{changeRoute:function(t){this.$router.push(t)},chooseTab:function(t){this.activeTab=t},toAddSet:function(){this.changeRoute("/addSet?activeTab="+this.activeTab+"&name="+this.$route.query.name+"&icon="+this.$route.query.icon+"&code="+this.$route.query.code+"&tabId="+this.$route.query.tabId)}},components:{androidTable:a("VU/8")(o,r,!1,function(t){a("ynTw")},"data-v-e7b2b542",null).exports}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-right-content border-box"},[a("div",{staticClass:"right-content-top border-box"},[a("div",{staticClass:"right-top-wrap flex flex-row flex-space-between flex-pack-center"},[a("div",{staticClass:"right-top-wrap_left flex flex-pack-center"},[a("ul",{staticClass:"flex flex-row flex-pack-center"},[a("li",{class:["flex flex-align-center flex-pack-center p-lr-24","android"==t.activeTab?"active-li":""],on:{click:function(e){return t.chooseTab("android")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[t._v("安卓配置")])]),t._v(" "),a("li",{class:["flex flex-align-center flex-pack-center p-lr-24","ios"==t.activeTab?"active-li":""],on:{click:function(e){return t.chooseTab("ios")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[t._v("iOS配置")])])])]),t._v(" "),a("div",{staticClass:"right-top-wrap_right border-box"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toAddSet(t.activeTab)}}},[t._v("新建"+t._s("android"==t.activeTab?"安卓":"iOS")+"配置")])],1)])]),t._v(" "),a("android-table",{attrs:{activeTab:t.activeTab}})],1)},staticRenderFns:[]};var c=a("VU/8")(i,s,!1,function(t){a("/WQV")},"data-v-64024894",null);e.default=c.exports},ynTw:function(t,e){}});
//# sourceMappingURL=11.f295eb390460e277779c.1557916290126.js.map
\ No newline at end of file
webpackJsonp([12],{"3RDD":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("MOmO"),s=i.n(a),r={name:"page401",data:function(){return{errGif:s.a+"?"+ +new Date,ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/"}):this.$router.go(-1)}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"errPage-container"},[i("el-button",{staticClass:"pan-back-btn",attrs:{icon:"arrow-left"},on:{click:t.back}},[t._v("返回")]),t._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("h1",{staticClass:"text-jumbo text-ginormous"},[t._v("Oops!")]),t._v("\n 页面\n "),i("h2",[t._v("你没有权限去该页面")]),t._v(" "),i("h6",[t._v("如有不满请联系你领导")]),t._v(" "),i("ul",{staticClass:"list-unstyled"},[i("li",[t._v("或者你可以去:")]),t._v(" "),i("li",{staticClass:"link-type"},[i("router-link",{attrs:{to:"/index"}},[t._v("回首页")])],1),t._v(" "),i("li",{staticClass:"link-type"},[i("router-link",{attrs:{to:"/index"}},[t._v("回首页")])],1),t._v(" "),i("li",[i("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.dialogVisible=!0}}},[t._v("点我看图")])])])]),t._v(" "),i("el-col",{attrs:{span:12}},[i("img",{attrs:{src:t.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1),t._v(" "),i("el-dialog",{attrs:{title:"随便看",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("img",{staticClass:"pan-img",attrs:{src:t.ewizardClap}})])],1)},staticRenderFns:[]};var l=i("VU/8")(r,n,!1,function(t){i("TRfO")},"data-v-04f5cca3",null);e.default=l.exports},MOmO:function(t,e,i){t.exports=i.p+"static/img/401.089007e.gif"},TRfO:function(t,e){}}); webpackJsonp([12],{"3RDD":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("MOmO"),s=i.n(a),r={name:"page401",data:function(){return{errGif:s.a+"?"+ +new Date,ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/"}):this.$router.go(-1)}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"errPage-container"},[i("el-button",{staticClass:"pan-back-btn",attrs:{icon:"arrow-left"},on:{click:t.back}},[t._v("返回")]),t._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("h1",{staticClass:"text-jumbo text-ginormous"},[t._v("Oops!")]),t._v("\n 页面\n "),i("h2",[t._v("你没有权限去该页面")]),t._v(" "),i("h6",[t._v("如有不满请联系你领导")]),t._v(" "),i("ul",{staticClass:"list-unstyled"},[i("li",[t._v("或者你可以去:")]),t._v(" "),i("li",{staticClass:"link-type"},[i("router-link",{attrs:{to:"/index"}},[t._v("回首页")])],1),t._v(" "),i("li",{staticClass:"link-type"},[i("router-link",{attrs:{to:"/index"}},[t._v("回首页")])],1),t._v(" "),i("li",[i("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.dialogVisible=!0}}},[t._v("点我看图")])])])]),t._v(" "),i("el-col",{attrs:{span:12}},[i("img",{attrs:{src:t.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1),t._v(" "),i("el-dialog",{attrs:{title:"随便看",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("img",{staticClass:"pan-img",attrs:{src:t.ewizardClap}})])],1)},staticRenderFns:[]};var l=i("VU/8")(r,n,!1,function(t){i("TRfO")},"data-v-04f5cca3",null);e.default=l.exports},MOmO:function(t,e,i){t.exports=i.p+"static/img/401.089007e.gif"},TRfO:function(t,e){}});
//# sourceMappingURL=12.32f967d8775c85545060.1557819940580.js.map //# sourceMappingURL=12.32f967d8775c85545060.1557916290126.js.map
\ No newline at end of file \ No newline at end of file
webpackJsonp([13],{HFkx:function(e,t){},"Rw+R":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("P9l9"),r={name:"log",data:function(){return{requestProject:"gic-authcenter",bgHeight:window.screen.availHeight-320+"px",dateValue:[],optionsSearch:[{value:"1",label:"用户工号"},{value:"2",label:"用户姓名"},{value:"3",label:"手机号"},{value:"4",label:"职位"},{value:"5",label:"日志标题"},{value:"6",label:"日志内容"}],searchInput:"",searchType:"1",options:[{value:"",label:"所有类型"},{value:"0",label:"登录"},{value:"1",label:"登出"},{value:"2",label:"查看"},{value:"3",label:"新增"},{value:"4",label:"修改"},{value:"5",label:"删除"}],optionsApply:[],oprStyle:"",applyId:"",tableData:[],currentPage:1,pageSize:10,totalCount:0,loading:!1}},mounted:function(){this.$emit("getLinkType","log"),this.getLogList(),this.getApplyList()},methods:{getLogList:function(){var e=this,t={requestProject:this.requestProject,currentPage:this.currentPage,pageSize:this.pageSize,search:this.searchInput,searchType:this.searchType,startTime:this.dateValue[0],endTime:this.dateValue[1],type:this.oprStyle,appId:this.applyId};this.loading=!0,Object(l.b)("/gic-authcenter/log",t).then(function(t){var a=t.data;if(e.loading=!1,0==a.errorCode){var l=a.result;e.tableData=l.result?l.result:[],e.totalCount=l.totalCount,e.dateValue=[l.startTime,l.endTime]}else e.$message.error(a.message)})},getApplyList:function(){var e=this,t={requestProject:this.requestProject};Object(l.b)("/gic-authcenter/app",t).then(function(t){var a=t.data;if(0==a.errorCode){e.optionsApply=a.result?a.result:[];e.optionsApply.unshift({id:"",appName:"所有模块"})}else e.$message.error(a.message)}).catch(function(e){console.log(e)})},changeDate:function(){this.currentPage=1,this.getLogList()},handleCurrentChange:function(e){this.currentPage=e,this.getLogList()},handleSizeChange:function(e){this.pageSize=e,this.getLogList()}},components:{}},n={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"log-wrap",style:{"min-height":e.bgHeight}},[l("div",{staticClass:"search-wrap"},[l("el-input",{staticClass:"input-w265",attrs:{placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changeDate(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[l("el-select",{staticClass:"search-select",attrs:{slot:"prepend",placeholder:"请选择"},on:{change:e.changeDate},slot:"prepend",model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},e._l(e.optionsSearch,function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),l("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:e.changeDate},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}}),e._v(" "),l("el-select",{staticClass:"margin-l8 width158",attrs:{placeholder:"请选择操作类型"},on:{change:e.changeDate},model:{value:e.oprStyle,callback:function(t){e.oprStyle=t},expression:"oprStyle"}},e._l(e.options,function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),l("el-select",{staticClass:"margin-l8 width158",attrs:{placeholder:"请选择应用模块"},on:{change:e.changeDate},model:{value:e.applyId,callback:function(t){e.applyId=t},expression:"applyId"}},e._l(e.optionsApply,function(e){return l("el-option",{key:e.id,attrs:{label:e.appName,value:e.id}})}),1)],1),e._v(" "),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:e.tableData,"max-height":"550"}},[l("el-table-column",{attrs:{prop:"employeeNumber",label:"用户工号",width:"80"}}),e._v(" "),l("el-table-column",{attrs:{prop:"userName",label:"用户姓名"}}),e._v(" "),l("el-table-column",{attrs:{prop:"userMobile",label:"手机号"}}),e._v(" "),l("el-table-column",{attrs:{prop:"position",label:"职位"}}),e._v(" "),l("el-table-column",{attrs:{prop:"ipAddress",label:"IP地址"}}),e._v(" "),l("el-table-column",{attrs:{prop:"appName",label:"应用模块"}}),e._v(" "),l("el-table-column",{attrs:{prop:"type",label:"操作类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.type?l("p",[e._v("登录")]):1==t.row.type?l("p",[e._v("登出")]):2==t.row.type?l("p",[e._v("查看")]):3==t.row.type?l("p",[e._v("新增")]):4==t.row.type?l("p",[e._v("修改")]):5==t.row.type?l("p",[e._v("删除")]):e._e()]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"createTime",label:"操作时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dateFormat")(t.row.createTime,"YYYY-MM-DD"))),l("br"),l("span",{staticClass:"date-second-item"},[e._v(e._s(e._f("dateFormat")(t.row.createTime,"hh:mm:ss")))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"operTitle",label:"日志标题"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("p",{staticClass:"oper-content-wrap",attrs:{title:t.row.operTitle}},[e._v(e._s(t.row.operTitle?t.row.operTitle:"--"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"operContent",label:"日志内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("p",{staticClass:"oper-content-wrap",attrs:{title:t.row.operContent}},[e._v(e._s(t.row.operContent?t.row.operContent:"--"))])]}}])}),e._v(" "),l("template",{slot:"empty"},[l("div",{staticClass:"no-data-wrap"},[l("div",{staticClass:"no-data-icon"},[l("img",{attrs:{src:a("8Td+"),alt:""}})]),e._v(" "),l("p",[e._v("暂无数据")])])])],2),e._v(" "),l("div",{directives:[{name:"show",rawName:"v-show",value:e.totalCount>0,expression:"totalCount > 0"}],staticClass:"pagination"},[l("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var o=a("VU/8")(r,n,!1,function(e){a("HFkx")},"data-v-66a59421",null);t.default=o.exports}}); webpackJsonp([13],{HFkx:function(e,t){},"Rw+R":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("P9l9"),r={name:"log",data:function(){return{requestProject:"gic-authcenter",bgHeight:window.screen.availHeight-320+"px",dateValue:[],optionsSearch:[{value:"1",label:"用户工号"},{value:"2",label:"用户姓名"},{value:"3",label:"手机号"},{value:"4",label:"职位"},{value:"5",label:"日志标题"},{value:"6",label:"日志内容"}],searchInput:"",searchType:"1",options:[{value:"",label:"所有类型"},{value:"0",label:"登录"},{value:"1",label:"登出"},{value:"2",label:"查看"},{value:"3",label:"新增"},{value:"4",label:"修改"},{value:"5",label:"删除"}],optionsApply:[],oprStyle:"",applyId:"",tableData:[],currentPage:1,pageSize:10,totalCount:0,loading:!1}},mounted:function(){this.$emit("getLinkType","log"),this.getLogList(),this.getApplyList()},methods:{getLogList:function(){var e=this,t={requestProject:this.requestProject,currentPage:this.currentPage,pageSize:this.pageSize,search:this.searchInput,searchType:this.searchType,startTime:this.dateValue[0],endTime:this.dateValue[1],type:this.oprStyle,appId:this.applyId};this.loading=!0,Object(l.b)("/gic-authcenter/log",t).then(function(t){var a=t.data;if(e.loading=!1,0==a.errorCode){var l=a.result;e.tableData=l.result?l.result:[],e.totalCount=l.totalCount,e.dateValue=[l.startTime,l.endTime]}else e.$message.error(a.message)})},getApplyList:function(){var e=this,t={requestProject:this.requestProject};Object(l.b)("/gic-authcenter/app",t).then(function(t){var a=t.data;if(0==a.errorCode){e.optionsApply=a.result?a.result:[];e.optionsApply.unshift({id:"",appName:"所有模块"})}else e.$message.error(a.message)}).catch(function(e){console.log(e)})},changeDate:function(){this.currentPage=1,this.getLogList()},handleCurrentChange:function(e){this.currentPage=e,this.getLogList()},handleSizeChange:function(e){this.pageSize=e,this.getLogList()}},components:{}},n={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"log-wrap",style:{"min-height":e.bgHeight}},[l("div",{staticClass:"search-wrap"},[l("el-input",{staticClass:"input-w265",attrs:{placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changeDate(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[l("el-select",{staticClass:"search-select",attrs:{slot:"prepend",placeholder:"请选择"},on:{change:e.changeDate},slot:"prepend",model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},e._l(e.optionsSearch,function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),l("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:e.changeDate},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}}),e._v(" "),l("el-select",{staticClass:"margin-l8 width158",attrs:{placeholder:"请选择操作类型"},on:{change:e.changeDate},model:{value:e.oprStyle,callback:function(t){e.oprStyle=t},expression:"oprStyle"}},e._l(e.options,function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),l("el-select",{staticClass:"margin-l8 width158",attrs:{placeholder:"请选择应用模块"},on:{change:e.changeDate},model:{value:e.applyId,callback:function(t){e.applyId=t},expression:"applyId"}},e._l(e.optionsApply,function(e){return l("el-option",{key:e.id,attrs:{label:e.appName,value:e.id}})}),1)],1),e._v(" "),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:e.tableData,"max-height":"550"}},[l("el-table-column",{attrs:{prop:"employeeNumber",label:"用户工号",width:"80"}}),e._v(" "),l("el-table-column",{attrs:{prop:"userName",label:"用户姓名"}}),e._v(" "),l("el-table-column",{attrs:{prop:"userMobile",label:"手机号"}}),e._v(" "),l("el-table-column",{attrs:{prop:"position",label:"职位"}}),e._v(" "),l("el-table-column",{attrs:{prop:"ipAddress",label:"IP地址"}}),e._v(" "),l("el-table-column",{attrs:{prop:"appName",label:"应用模块"}}),e._v(" "),l("el-table-column",{attrs:{prop:"type",label:"操作类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.type?l("p",[e._v("登录")]):1==t.row.type?l("p",[e._v("登出")]):2==t.row.type?l("p",[e._v("查看")]):3==t.row.type?l("p",[e._v("新增")]):4==t.row.type?l("p",[e._v("修改")]):5==t.row.type?l("p",[e._v("删除")]):e._e()]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"createTime",label:"操作时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dateFormat")(t.row.createTime,"YYYY-MM-DD"))),l("br"),l("span",{staticClass:"date-second-item"},[e._v(e._s(e._f("dateFormat")(t.row.createTime,"hh:mm:ss")))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"operTitle",label:"日志标题"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("p",{staticClass:"oper-content-wrap",attrs:{title:t.row.operTitle}},[e._v(e._s(t.row.operTitle?t.row.operTitle:"--"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"operContent",label:"日志内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("p",{staticClass:"oper-content-wrap",attrs:{title:t.row.operContent}},[e._v(e._s(t.row.operContent?t.row.operContent:"--"))])]}}])}),e._v(" "),l("template",{slot:"empty"},[l("div",{staticClass:"no-data-wrap"},[l("div",{staticClass:"no-data-icon"},[l("img",{attrs:{src:a("8Td+"),alt:""}})]),e._v(" "),l("p",[e._v("暂无数据")])])])],2),e._v(" "),l("div",{directives:[{name:"show",rawName:"v-show",value:e.totalCount>0,expression:"totalCount > 0"}],staticClass:"pagination"},[l("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var o=a("VU/8")(r,n,!1,function(e){a("HFkx")},"data-v-66a59421",null);t.default=o.exports}});
//# sourceMappingURL=13.1a2817468fa4adc40be1.1557819940580.js.map //# sourceMappingURL=13.4ff256255021a5cc0dfc.1557916290126.js.map
\ No newline at end of file \ No newline at end of file
webpackJsonp([14],{"8ElP":function(e,t){},kP3l:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("ueeG"),r=o("P9l9"),i=o("rM4U"),a=function(e,t,o){t?Object(i.a)(t)?o():o(new Error("分类目录名称不允许有空格")):o(new Error("请输入分类目录名称"))},s=function(e,t,o){t?Object(i.b)(t)?o():o(new Error("分类目录编码只能由英文、下划线、数字组成")):o(new Error("请输入分类目录编码"))},u={name:"categoryList",data:function(){return{requestProject:"gic-bizdict",tableData:[],menuTitle:"创建字典分类",dialogVisible:!1,options:[],editCodeBool:!1,menuForm:{name:"",menuCode:"",parentCode:""},rules:{name:[{required:!0,trigger:"blur",validator:a}],menuCode:[{required:!0,trigger:"blur",validator:s}]},loading:!1,menuType:"",menuId:""}},mounted:function(){this.init()},methods:{init:function(){var e=this.$route.query.tabId;this.$emit("showTab",e),this.getDictionaryList()},getDictionaryList:function(){var e=this;this.loading=!0;var t={requestProject:this.requestProject};Object(r.b)("/gic-bizdict/category/tree",t).then(function(t){var o=t.data;if(e.loading=!1,0==o.errorCode){var n=o.result?o.result:[];e.tableData=e.addMenuPara(n)}else e.$message.error(o.message)}).catch(function(e){console.log(e)})},addMenuPara:function(e){var t=this;return e.forEach(function(o){o.numBool=!0,o.children=o.nodeChildren?o.nodeChildren:[],o.total=e.length,o.oldSort=o.indexSort,o.children.length>0&&t.addMenuPara(o.children)}),e},changeNum:function(e){e.numBool=!1},blurNumInput:function(e){e.numBool=!0,e.indexSort>e.total||e.indexSort<1?e.indexSort=e.oldSort:this.sortMenu(e)},sortMenu:function(e){var t=this,o={requestProject:this.requestProject,sortCategory:!0,sort:e.indexSort};Object(r.d)("/gic-bizdict/category/"+e.code,o).then(function(e){var o=e.data;0==o.errorCode?(t.getDictionaryList(),t.$message.success("排序成功")):t.$message.error(o.message)}).catch(function(e){console.log(e)})},keyupInput:function(e){(e.indexSort>e.total||e.indexSort<1)&&(e.indexSort="")},delMenu:function(e,t,o){var n=this;this.$confirm("是否要删除选中的分类?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={requestProject:n.requestProject};Object(r.a)("/gic-bizdict/category/"+t.code,e).then(function(e){var t=e.data;0==t.errorCode?(n.getDictionaryList(),n.$message.success("删除成功")):n.$message.error(t.message)})}).catch(function(e){console.log(e)})},editMenu:function(e){this.menuTitle="编辑字典分类",this.menuType="edit",this.dialogVisible=!0,this.editCodeBool=!0,this.menuId=e.id,this.menuForm={name:e.categoryName,menuCode:e.code,parentCode:e.parentCode}},toCreateMenu:function(e,t){this.dialogVisible=!0,this.editCodeBool=!1,this.menuId="",this.menuType="add",this.$refs.menuForm&&this.$refs.menuForm.resetFields(),"main"==e?(this.menuTitle="创建字典分类",this.menuForm.parentCode=""):"child"==e&&(this.menuForm.parentCode=t.code,this.menuTitle="创建子节点"),this.menuForm.name="",this.menuForm.menuCode=""},cancelCreate:function(){this.dialogVisible=!1,this.$refs.menuForm.clearValidate()},sureCreate:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;var o={requestProject:t.requestProject,categoryName:t.menuForm.name,code:t.menuForm.menuCode,parentCode:t.menuForm.parentCode};"add"==t.menuType?Object(r.c)("/gic-bizdict/category",o).then(function(e){var o=e.data;0==o.errorCode?(t.dialogVisible=!1,t.getDictionaryList(),t.$message.success("保存成功")):t.$message.error(o.message)}).catch(function(e){console.log(e)}):"edit"==t.menuType&&Object(r.d)("/gic-bizdict/category/"+t.menuForm.menuCode,o).then(function(e){var o=e.data;0==o.errorCode?(t.dialogVisible=!1,t.getDictionaryList(),t.$message.success("保存成功")):t.$message.error(o.message)}).catch(function(e){console.log(e)})})}},components:{ywInput:n.a}},l={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"my-right-content"},[n("div",{staticClass:"create-btn"},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.toCreateMenu("main")}}},[e._v("创建字典分类")])],1),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:e.tableData,"max-height":"636","row-key":"id"}},[n("el-table-column",{attrs:{prop:"categoryName",label:"分类目录名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"menu-name-wrap"},[t.row.numBool?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"排序",placement:"top"}},[n("span",{on:{click:function(o){return e.changeNum(t.row)}}},[e._v(e._s(t.row.indexSort))])]):n("el-input",{directives:[{name:"focus",rawName:"v-focus",value:!t.row.numBool,expression:"!scoped.row.numBool"}],staticClass:"num-input-wrap",attrs:{type:"number"},on:{blur:function(o){return e.blurNumInput(t.row)}},nativeOn:{keyup:function(o){return e.keyupInput(t.row)}},model:{value:t.row.indexSort,callback:function(o){e.$set(t.row,"indexSort","string"==typeof o?o.trim():o)},expression:"scoped.row.indexSort"}}),e._v("\n "+e._s(t.row.categoryName)+"\n ")],1)]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"code",label:"分类目录编码"}}),e._v(" "),n("el-table-column",{attrs:{prop:"parentCode",label:"父级编码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.parentCode?t.row.parentCode:"--"))]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"opr",label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text"},on:{click:function(o){return e.editMenu(t.row)}}},[e._v("编辑")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(o){return e.toCreateMenu("child",t.row)}}},[e._v("创建子节点")]),e._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.row.children.length<1,expression:"scoped.row.children.length < 1"}],attrs:{type:"text"},on:{click:function(o){return e.delMenu(t,t.row,t.$index)}}},[e._v("删除")])]}}])}),e._v(" "),n("template",{slot:"empty"},[n("div",{staticClass:"no-data-wrap"},[n("div",{staticClass:"no-data-icon"},[n("img",{attrs:{src:o("8Td+"),alt:""}})]),e._v(" "),n("p",[e._v("暂无数据")])])])],2),e._v(" "),n("el-dialog",{attrs:{title:e.menuTitle,visible:e.dialogVisible,width:"425px","before-close":e.cancelCreate},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("el-form",{ref:"menuForm",attrs:{model:e.menuForm,rules:e.rules,"label-width":"110px"}},[n("el-form-item",{attrs:{label:"分类目录名称",prop:"name"}},[n("yw-input",{attrs:{byteType:0,maxlength:20},model:{value:e.menuForm.name,callback:function(t){e.$set(e.menuForm,"name",t)},expression:"menuForm.name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"分类目录编码",prop:"menuCode"}},[n("yw-input",{attrs:{disabled:e.editCodeBool,byteType:0,maxlength:32},model:{value:e.menuForm.menuCode,callback:function(t){e.$set(e.menuForm,"menuCode",t)},expression:"menuForm.menuCode"}})],1),e._v(" "),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.menuForm.parentCode,expression:"menuForm.parentCode"}],attrs:{label:"父级编码"}},[n("el-input",{attrs:{disabled:""},model:{value:e.menuForm.parentCode,callback:function(t){e.$set(e.menuForm,"parentCode",t)},expression:"menuForm.parentCode"}})],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.cancelCreate}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.sureCreate("menuForm")}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c=o("VU/8")(u,l,!1,function(e){o("8ElP")},"data-v-63f43350",null);t.default=c.exports}});
//# sourceMappingURL=14.0ac5d5e5a5eaccf19847.1557819940580.js.map
\ No newline at end of file
webpackJsonp([15],{EpjD:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("P9l9"),c={name:"entrance",data:function(){return{requestProject:"gic-authcenter",entranceList:[]}},mounted:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this,n={requestProject:this.requestProject};Object(r.b)("/gic-authcenter/loginuser",n).then(function(n){var r=n.data;if(0==r.errorCode){e.entranceList=[];var c=[];(r.result.menuTree?r.result.menuTree:[]).forEach(function(e){1==e.isShow&&(""!=e.iconUrl?e.iconUrlNew=t("gbs+")("./"+e.iconUrl+".png"):e.iconUrlNew=t("Ajpb"),c.push(e))});for(var i=0;i<c.length;i+=4)e.entranceList.push(c.slice(i,i+4))}else e.$message.error(r.message)}).catch(function(e){console.log(e)})},entranceDic:function(e){var n=e.nodeChildren[0].nodeChildren?e.nodeChildren[0].nodeChildren[0].uri:e.nodeChildren[0].uri;this.$router.push({path:n,query:{code:e.code,name:e.menuName,icon:e.iconUrl}})}}},i={render:function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"my-index"},[t("h2",[e._v("运维平台快捷入口")]),e._v(" "),t("div",{staticClass:"entrance-wrap"},e._l(e.entranceList,function(n,r){return t("ul",{key:r,staticClass:"clearfix"},e._l(n,function(n){return t("li",{key:n.id,staticClass:"fl",on:{click:function(t){return e.entranceDic(n)}}},[t("div",{staticClass:"img"},[t("img",{attrs:{src:n.iconUrlNew,alt:"图片"}})]),e._v(" "),t("p",[e._v(e._s(n.menuName))])])}),0)}),0)])},staticRenderFns:[]};var s=t("VU/8")(c,i,!1,function(e){t("Gc4l")},"data-v-5f250a98",null);n.default=s.exports},Gc4l:function(e,n){}}); webpackJsonp([14],{EpjD:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("P9l9"),c={name:"entrance",data:function(){return{requestProject:"gic-authcenter",entranceList:[]}},mounted:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this,n={requestProject:this.requestProject};Object(r.b)("/gic-authcenter/loginuser",n).then(function(n){var r=n.data;if(0==r.errorCode){e.entranceList=[];var c=[];(r.result.menuTree?r.result.menuTree:[]).forEach(function(e){1==e.isShow&&(""!=e.iconUrl?e.iconUrlNew=t("gbs+")("./"+e.iconUrl+".png"):e.iconUrlNew=t("Ajpb"),c.push(e))});for(var i=0;i<c.length;i+=4)e.entranceList.push(c.slice(i,i+4))}else e.$message.error(r.message)}).catch(function(e){console.log(e)})},entranceDic:function(e){var n=e.nodeChildren[0].nodeChildren?e.nodeChildren[0].nodeChildren[0].uri:e.nodeChildren[0].uri;this.$router.push({path:n,query:{code:e.code,name:e.menuName,icon:e.iconUrl}})}}},i={render:function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"my-index"},[t("h2",[e._v("运维平台快捷入口")]),e._v(" "),t("div",{staticClass:"entrance-wrap"},e._l(e.entranceList,function(n,r){return t("ul",{key:r,staticClass:"clearfix"},e._l(n,function(n){return t("li",{key:n.id,staticClass:"fl",on:{click:function(t){return e.entranceDic(n)}}},[t("div",{staticClass:"img"},[t("img",{attrs:{src:n.iconUrlNew,alt:"图片"}})]),e._v(" "),t("p",[e._v(e._s(n.menuName))])])}),0)}),0)])},staticRenderFns:[]};var s=t("VU/8")(c,i,!1,function(e){t("Gc4l")},"data-v-5f250a98",null);n.default=s.exports},Gc4l:function(e,n){}});
//# sourceMappingURL=15.0d46848c680417ed9058.1557819940580.js.map //# sourceMappingURL=14.a4291429e5d860792093.1557916290126.js.map
\ No newline at end of file \ No newline at end of file
webpackJsonp([16],{R6fb:function(e,t){},kP3l:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("ueeG"),r=o("P9l9"),i=o("rM4U"),a=function(e,t,o){t?Object(i.a)(t)?o():o(new Error("分类目录名称不允许有空格")):o(new Error("请输入分类目录名称"))},s=function(e,t,o){t?Object(i.b)(t)?o():o(new Error("分类目录编码只能由英文、下划线、数字组成")):o(new Error("请输入分类目录编码"))},u={name:"categoryList",data:function(){return{requestProject:"gic-bizdict",tableData:[],menuTitle:"创建字典分类",dialogVisible:!1,options:[],editCodeBool:!1,menuForm:{name:"",menuCode:"",parentCode:""},rules:{name:[{required:!0,trigger:"blur",validator:a}],menuCode:[{required:!0,trigger:"blur",validator:s}]},loading:!1,menuType:"",menuId:""}},mounted:function(){this.init()},methods:{init:function(){var e=this.$route.query.tabId;this.$emit("showTab",e),this.getDictionaryList()},getDictionaryList:function(){var e=this;this.loading=!0;var t={requestProject:this.requestProject};Object(r.b)("/gic-bizdict/category/tree",t).then(function(t){var o=t.data;if(e.loading=!1,0==o.errorCode){var n=o.result?o.result:[];e.tableData=e.addMenuPara(n)}else e.$message.error(o.message)}).catch(function(e){console.log(e)})},addMenuPara:function(e){var t=this;return e.forEach(function(o){o.numBool=!0,o.children=o.nodeChildren?o.nodeChildren:[],o.total=e.length,o.oldSort=o.indexSort,o.children.length>0&&t.addMenuPara(o.children)}),e},changeNum:function(e){e.numBool=!1},blurNumInput:function(e){e.numBool=!0,e.indexSort>e.total||e.indexSort<1?e.indexSort=e.oldSort:this.sortMenu(e)},sortMenu:function(e){var t=this,o={requestProject:this.requestProject,sortCategory:!0,sort:e.indexSort};Object(r.d)("/gic-bizdict/category/"+e.code,o).then(function(e){var o=e.data;0==o.errorCode?(t.getDictionaryList(),t.$message.success("排序成功")):t.$message.error(o.message)}).catch(function(e){console.log(e)})},keyupInput:function(e){(e.indexSort>e.total||e.indexSort<1)&&(e.indexSort="")},delMenu:function(e,t,o){var n=this;this.$confirm("是否要删除选中的分类?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={requestProject:n.requestProject};Object(r.a)("/gic-bizdict/category/"+t.code,e).then(function(e){var t=e.data;0==t.errorCode?(n.getDictionaryList(),n.$message.success("删除成功")):n.$message.error(t.message)})}).catch(function(e){console.log(e)})},editMenu:function(e){this.menuTitle="编辑字典分类",this.menuType="edit",this.dialogVisible=!0,this.editCodeBool=!0,this.menuId=e.id,this.menuForm={name:e.categoryName,menuCode:e.code,parentCode:e.parentCode}},toCreateMenu:function(e,t){this.dialogVisible=!0,this.editCodeBool=!1,this.menuId="",this.menuType="add",this.$refs.menuForm&&this.$refs.menuForm.resetFields(),"main"==e?(this.menuTitle="创建字典分类",this.menuForm.parentCode=""):"child"==e&&(this.menuForm.parentCode=t.code,this.menuTitle="创建子节点"),this.menuForm.name="",this.menuForm.menuCode=""},cancelCreate:function(){this.dialogVisible=!1,this.$refs.menuForm.clearValidate()},sureCreate:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;var o={requestProject:t.requestProject,categoryName:t.menuForm.name,code:t.menuForm.menuCode,parentCode:t.menuForm.parentCode};"add"==t.menuType?Object(r.c)("/gic-bizdict/category",o).then(function(e){var o=e.data;0==o.errorCode?(t.dialogVisible=!1,t.getDictionaryList(),t.$message.success("保存成功")):t.$message.error(o.message)}).catch(function(e){console.log(e)}):"edit"==t.menuType&&Object(r.d)("/gic-bizdict/category/"+t.menuForm.menuCode,o).then(function(e){var o=e.data;0==o.errorCode?(t.dialogVisible=!1,t.getDictionaryList(),t.$message.success("保存成功")):t.$message.error(o.message)}).catch(function(e){console.log(e)})})}},components:{ywInput:n.a}},l={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"my-right-content"},[n("div",{staticClass:"create-btn"},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.toCreateMenu("main")}}},[e._v("创建字典分类")])],1),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:e.tableData,"max-height":"636","row-key":"id"}},[n("el-table-column",{attrs:{prop:"categoryName",label:"分类目录名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"menu-name-wrap"},[t.row.numBool?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"排序",placement:"top"}},[n("span",{on:{click:function(o){return e.changeNum(t.row)}}},[e._v(e._s(t.row.indexSort))])]):n("el-input",{directives:[{name:"focus",rawName:"v-focus",value:!t.row.numBool,expression:"!scoped.row.numBool"}],staticClass:"num-input-wrap",attrs:{type:"number"},on:{blur:function(o){return e.blurNumInput(t.row)}},nativeOn:{keyup:function(o){return e.keyupInput(t.row)}},model:{value:t.row.indexSort,callback:function(o){e.$set(t.row,"indexSort","string"==typeof o?o.trim():o)},expression:"scoped.row.indexSort"}}),e._v("\n "+e._s(t.row.categoryName)+"\n ")],1)]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"code",label:"分类目录编码"}}),e._v(" "),n("el-table-column",{attrs:{prop:"parentCode",label:"父级编码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.parentCode?t.row.parentCode:"--"))]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"opr",label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text"},on:{click:function(o){return e.editMenu(t.row)}}},[e._v("编辑")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(o){return e.toCreateMenu("child",t.row)}}},[e._v("创建子节点")]),e._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.row.children.length<1,expression:"scoped.row.children.length < 1"}],attrs:{type:"text"},on:{click:function(o){return e.delMenu(t,t.row,t.$index)}}},[e._v("删除")])]}}])}),e._v(" "),n("template",{slot:"empty"},[n("div",{staticClass:"no-data-wrap"},[n("div",{staticClass:"no-data-icon"},[n("img",{attrs:{src:o("8Td+"),alt:""}})]),e._v(" "),n("p",[e._v("暂无数据")])])])],2),e._v(" "),n("el-dialog",{attrs:{title:e.menuTitle,visible:e.dialogVisible,width:"425px","before-close":e.cancelCreate},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("el-form",{ref:"menuForm",attrs:{model:e.menuForm,rules:e.rules,"label-width":"110px"}},[n("el-form-item",{attrs:{label:"分类目录名称",prop:"name"}},[n("yw-input",{attrs:{byteType:0,maxlength:20},model:{value:e.menuForm.name,callback:function(t){e.$set(e.menuForm,"name",t)},expression:"menuForm.name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"分类目录编码",prop:"menuCode"}},[n("yw-input",{attrs:{disabled:e.editCodeBool,byteType:0,maxlength:32},model:{value:e.menuForm.menuCode,callback:function(t){e.$set(e.menuForm,"menuCode",t)},expression:"menuForm.menuCode"}})],1),e._v(" "),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.menuForm.parentCode,expression:"menuForm.parentCode"}],attrs:{label:"父级编码"}},[n("el-input",{attrs:{disabled:""},model:{value:e.menuForm.parentCode,callback:function(t){e.$set(e.menuForm,"parentCode",t)},expression:"menuForm.parentCode"}})],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.cancelCreate}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.sureCreate("menuForm")}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c=o("VU/8")(u,l,!1,function(e){o("R6fb")},"data-v-54ee88ae",null);t.default=c.exports}});
//# sourceMappingURL=16.7abd22a290977482c997.1557916290126.js.map
\ No newline at end of file
webpackJsonp([17],{CSLK:function(t,e){},eZJA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("P9l9"),o={name:"userList",data:function(){return{requestProject:"gic-authcenter",searchInput:"",tableData:[],currentPage:1,pageSize:10,totalCount:0,loading:!1}},mounted:function(){this.init()},methods:{init:function(){var t=this.$route.query.tabId;this.$emit("showTab",t),this.getList()},getList:function(){var t=this;this.loading=!0;var e={requestProject:this.requestProject,currentPage:this.currentPage,pageSize:this.pageSize,search:this.searchInput};Object(n.b)("/gic-authcenter/user",e).then(function(e){var a=e.data;t.loading=!1,0==a.errorCode?(t.tableData=a.result?a.result:[],t.totalCount=a.totalCount):t.$message.error(a.message)}).catch(function(t){console.log(t)})},handleCurrentChange:function(t){this.currentPage=t,this.getList()},handleSizeChange:function(t){this.pageSize=t,this.getList()},searchList:function(){this.currentPage=1,this.getList()},delAuthority:function(t,e){var a=this;this.$confirm("是否要删除选中的用户?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var o={requestProject:a.requestProject};Object(n.a)("/gic-authcenter/user/"+t.loginName,o).then(function(t){var n=t.data;0==n.errorCode?(a.totalCount--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getList()):a.totalCount>0&&a.getList()),a.$message.success("删除成功")):a.$message.error(n.message)})}).catch(function(t){console.log(t)})},addUserBtn:function(t,e){"add"==t?this.$router.push({path:"/addUser",query:{tabId:this.$route.query.tabId}}):"edit"==t&&this.$router.push({path:"/addUser",query:{loginName:e.loginName,tabId:this.$route.query.tabId}})}},components:{}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-right-content"},[n("div",{staticClass:"search-wrap clearfix"},[n("el-input",{staticClass:"fl",attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchList(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),t._v(" "),n("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(e){return t.addUserBtn("add")}}},[t._v("新增用户")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:t.tableData,"max-height":"550"}},[n("el-table-column",{attrs:{prop:"loginName",label:"用户名","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"employeeNumber",label:"工号","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"realName",label:"姓名","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"sex",label:"性别"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.sex?n("span",[t._v("女")]):1==e.row.sex?n("span",[t._v("男")]):n("span",[t._v("未知")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"departmentName",label:"部门名称","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"position",label:"职位","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"email",label:"邮箱","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.email?e.row.email:"--")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"userMobile",label:"手机号码","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"opr",label:"操作",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.addUserBtn("edit",e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.delAuthority(e.row,e.$index)}}},[t._v("删除")])]}}])}),t._v(" "),n("template",{slot:"empty"},[n("div",{staticClass:"no-data-wrap"},[n("div",{staticClass:"no-data-icon"},[n("img",{attrs:{src:a("8Td+"),alt:""}})]),t._v(" "),n("p",[t._v("暂无数据")])])])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.totalCount>0,expression:"totalCount > 0"}],staticClass:"pagination"},[n("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next",total:t.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var s=a("VU/8")(o,r,!1,function(t){a("CSLK")},"data-v-43a7013d",null);e.default=s.exports}}); webpackJsonp([17],{CSLK:function(t,e){},eZJA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("P9l9"),o={name:"userList",data:function(){return{requestProject:"gic-authcenter",searchInput:"",tableData:[],currentPage:1,pageSize:10,totalCount:0,loading:!1}},mounted:function(){this.init()},methods:{init:function(){var t=this.$route.query.tabId;this.$emit("showTab",t),this.getList()},getList:function(){var t=this;this.loading=!0;var e={requestProject:this.requestProject,currentPage:this.currentPage,pageSize:this.pageSize,search:this.searchInput};Object(n.b)("/gic-authcenter/user",e).then(function(e){var a=e.data;t.loading=!1,0==a.errorCode?(t.tableData=a.result?a.result:[],t.totalCount=a.totalCount):t.$message.error(a.message)}).catch(function(t){console.log(t)})},handleCurrentChange:function(t){this.currentPage=t,this.getList()},handleSizeChange:function(t){this.pageSize=t,this.getList()},searchList:function(){this.currentPage=1,this.getList()},delAuthority:function(t,e){var a=this;this.$confirm("是否要删除选中的用户?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var o={requestProject:a.requestProject};Object(n.a)("/gic-authcenter/user/"+t.loginName,o).then(function(t){var n=t.data;0==n.errorCode?(a.totalCount--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getList()):a.totalCount>0&&a.getList()),a.$message.success("删除成功")):a.$message.error(n.message)})}).catch(function(t){console.log(t)})},addUserBtn:function(t,e){"add"==t?this.$router.push({path:"/addUser",query:{tabId:this.$route.query.tabId}}):"edit"==t&&this.$router.push({path:"/addUser",query:{loginName:e.loginName,tabId:this.$route.query.tabId}})}},components:{}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-right-content"},[n("div",{staticClass:"search-wrap clearfix"},[n("el-input",{staticClass:"fl",attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchList(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),t._v(" "),n("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(e){return t.addUserBtn("add")}}},[t._v("新增用户")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:t.tableData,"max-height":"550"}},[n("el-table-column",{attrs:{prop:"loginName",label:"用户名","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"employeeNumber",label:"工号","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"realName",label:"姓名","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"sex",label:"性别"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.sex?n("span",[t._v("女")]):1==e.row.sex?n("span",[t._v("男")]):n("span",[t._v("未知")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"departmentName",label:"部门名称","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"position",label:"职位","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"email",label:"邮箱","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.email?e.row.email:"--")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"userMobile",label:"手机号码","show-overflow-tooltip":""}}),t._v(" "),n("el-table-column",{attrs:{prop:"opr",label:"操作",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.addUserBtn("edit",e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.delAuthority(e.row,e.$index)}}},[t._v("删除")])]}}])}),t._v(" "),n("template",{slot:"empty"},[n("div",{staticClass:"no-data-wrap"},[n("div",{staticClass:"no-data-icon"},[n("img",{attrs:{src:a("8Td+"),alt:""}})]),t._v(" "),n("p",[t._v("暂无数据")])])])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.totalCount>0,expression:"totalCount > 0"}],staticClass:"pagination"},[n("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next",total:t.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var s=a("VU/8")(o,r,!1,function(t){a("CSLK")},"data-v-43a7013d",null);e.default=s.exports}});
//# sourceMappingURL=17.11d2245865cad2922350.1557819940580.js.map //# sourceMappingURL=17.361b0fa77a8271459a33.1557916290126.js.map
\ No newline at end of file \ No newline at end of file
webpackJsonp([18],{FgHG:function(e,t){},lBqE:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("P9l9"),r={name:"dictionaryLog",data:function(){return{requestProject:"gic-bizdict",bgHeight:window.screen.availHeight-320+"px",dateValue:[],optionsSearch:[{value:"1",label:"用户工号"},{value:"2",label:"用户姓名"},{value:"3",label:"手机号"},{value:"4",label:"职位"},{value:"5",label:"日志标题"},{value:"6",label:"日志内容"}],searchInput:"",searchType:"1",options:[{value:"",label:"所有类型"},{value:"0",label:"登录"},{value:"1",label:"登出"},{value:"2",label:"查看"},{value:"3",label:"新增"},{value:"4",label:"修改"},{value:"5",label:"删除"}],oprStyle:"",tableData:[],currentPage:1,pageSize:10,totalCount:0,loading:!1}},mounted:function(){this.init()},methods:{init:function(){var e=this.$route.query.tabId;this.$emit("showTab",e),this.getLogList()},getLogList:function(){var e=this,t={requestProject:this.requestProject,currentPage:this.currentPage,pageSize:this.pageSize,search:this.searchInput,searchType:this.searchType,startTime:this.dateValue[0],endTime:this.dateValue[1],type:this.oprStyle};this.loading=!0,Object(l.b)("/gic-bizdict/log",t).then(function(t){var a=t.data;if(e.loading=!1,0==a.errorCode){var l=a.result;e.tableData=l.result?l.result:[],e.totalCount=l.totalCount,e.dateValue=[l.startTime,l.endTime]}else e.$message.error(a.message)})},changeDate:function(){this.currentPage=1,this.getLogList()},handleCurrentChange:function(e){this.currentPage=e,this.getLogList()},handleSizeChange:function(e){this.pageSize=e,this.getLogList()}},components:{}},n={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"log-wrap"},[l("div",{staticClass:"search-wrap"},[l("el-input",{staticClass:"input-w265",attrs:{placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changeDate(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[l("el-select",{staticClass:"search-select",attrs:{slot:"prepend",placeholder:"请选择"},on:{change:e.changeDate},slot:"prepend",model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},e._l(e.optionsSearch,function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),l("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:e.changeDate},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}}),e._v(" "),l("el-select",{staticClass:"margin-l8 width158",attrs:{placeholder:"请选择操作类型"},on:{change:e.changeDate},model:{value:e.oprStyle,callback:function(t){e.oprStyle=t},expression:"oprStyle"}},e._l(e.options,function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:e.tableData,"max-height":"545"}},[l("el-table-column",{attrs:{prop:"employeeNumber",label:"用户工号",width:"80"}}),e._v(" "),l("el-table-column",{attrs:{prop:"userName",label:"用户姓名"}}),e._v(" "),l("el-table-column",{attrs:{prop:"userMobile",label:"手机号",width:"110"}}),e._v(" "),l("el-table-column",{attrs:{prop:"position",label:"职位"}}),e._v(" "),l("el-table-column",{attrs:{prop:"ipAddress",label:"IP地址",width:"130"}}),e._v(" "),l("el-table-column",{attrs:{prop:"appName",label:"应用模块"}}),e._v(" "),l("el-table-column",{attrs:{prop:"type",label:"操作类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.type?l("p",[e._v("登录")]):1==t.row.type?l("p",[e._v("登出")]):2==t.row.type?l("p",[e._v("查看")]):3==t.row.type?l("p",[e._v("新增")]):4==t.row.type?l("p",[e._v("修改")]):5==t.row.type?l("p",[e._v("删除")]):e._e()]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"createTime",label:"操作时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dateFormat")(t.row.createTime,"YYYY-MM-DD"))),l("br"),l("span",{staticClass:"date-second-item"},[e._v(e._s(e._f("dateFormat")(t.row.createTime,"hh:mm:ss")))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"operContent",label:"日志标题"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("p",{staticClass:"oper-content-wrap",attrs:{title:t.row.operTitle}},[e._v(e._s(t.row.operTitle?t.row.operTitle:"--"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"operContent",label:"日志内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("p",{staticClass:"oper-content-wrap",attrs:{title:t.row.operContent}},[e._v(e._s(t.row.operContent?t.row.operContent:"--"))])]}}])}),e._v(" "),l("template",{slot:"empty"},[l("div",{staticClass:"no-data-wrap"},[l("div",{staticClass:"no-data-icon"},[l("img",{attrs:{src:a("8Td+"),alt:""}})]),e._v(" "),l("p",[e._v("暂无数据")])])])],2),e._v(" "),l("div",{directives:[{name:"show",rawName:"v-show",value:e.totalCount>0,expression:"totalCount > 0"}],staticClass:"pagination"},[l("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var o=a("VU/8")(r,n,!1,function(e){a("FgHG")},"data-v-4071e035",null);t.default=o.exports}}); webpackJsonp([18],{FgHG:function(e,t){},lBqE:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("P9l9"),r={name:"dictionaryLog",data:function(){return{requestProject:"gic-bizdict",bgHeight:window.screen.availHeight-320+"px",dateValue:[],optionsSearch:[{value:"1",label:"用户工号"},{value:"2",label:"用户姓名"},{value:"3",label:"手机号"},{value:"4",label:"职位"},{value:"5",label:"日志标题"},{value:"6",label:"日志内容"}],searchInput:"",searchType:"1",options:[{value:"",label:"所有类型"},{value:"0",label:"登录"},{value:"1",label:"登出"},{value:"2",label:"查看"},{value:"3",label:"新增"},{value:"4",label:"修改"},{value:"5",label:"删除"}],oprStyle:"",tableData:[],currentPage:1,pageSize:10,totalCount:0,loading:!1}},mounted:function(){this.init()},methods:{init:function(){var e=this.$route.query.tabId;this.$emit("showTab",e),this.getLogList()},getLogList:function(){var e=this,t={requestProject:this.requestProject,currentPage:this.currentPage,pageSize:this.pageSize,search:this.searchInput,searchType:this.searchType,startTime:this.dateValue[0],endTime:this.dateValue[1],type:this.oprStyle};this.loading=!0,Object(l.b)("/gic-bizdict/log",t).then(function(t){var a=t.data;if(e.loading=!1,0==a.errorCode){var l=a.result;e.tableData=l.result?l.result:[],e.totalCount=l.totalCount,e.dateValue=[l.startTime,l.endTime]}else e.$message.error(a.message)})},changeDate:function(){this.currentPage=1,this.getLogList()},handleCurrentChange:function(e){this.currentPage=e,this.getLogList()},handleSizeChange:function(e){this.pageSize=e,this.getLogList()}},components:{}},n={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"log-wrap"},[l("div",{staticClass:"search-wrap"},[l("el-input",{staticClass:"input-w265",attrs:{placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changeDate(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[l("el-select",{staticClass:"search-select",attrs:{slot:"prepend",placeholder:"请选择"},on:{change:e.changeDate},slot:"prepend",model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},e._l(e.optionsSearch,function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),l("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},on:{change:e.changeDate},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}}),e._v(" "),l("el-select",{staticClass:"margin-l8 width158",attrs:{placeholder:"请选择操作类型"},on:{change:e.changeDate},model:{value:e.oprStyle,callback:function(t){e.oprStyle=t},expression:"oprStyle"}},e._l(e.options,function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:e.tableData,"max-height":"545"}},[l("el-table-column",{attrs:{prop:"employeeNumber",label:"用户工号",width:"80"}}),e._v(" "),l("el-table-column",{attrs:{prop:"userName",label:"用户姓名"}}),e._v(" "),l("el-table-column",{attrs:{prop:"userMobile",label:"手机号",width:"110"}}),e._v(" "),l("el-table-column",{attrs:{prop:"position",label:"职位"}}),e._v(" "),l("el-table-column",{attrs:{prop:"ipAddress",label:"IP地址",width:"130"}}),e._v(" "),l("el-table-column",{attrs:{prop:"appName",label:"应用模块"}}),e._v(" "),l("el-table-column",{attrs:{prop:"type",label:"操作类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.type?l("p",[e._v("登录")]):1==t.row.type?l("p",[e._v("登出")]):2==t.row.type?l("p",[e._v("查看")]):3==t.row.type?l("p",[e._v("新增")]):4==t.row.type?l("p",[e._v("修改")]):5==t.row.type?l("p",[e._v("删除")]):e._e()]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"createTime",label:"操作时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dateFormat")(t.row.createTime,"YYYY-MM-DD"))),l("br"),l("span",{staticClass:"date-second-item"},[e._v(e._s(e._f("dateFormat")(t.row.createTime,"hh:mm:ss")))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"operContent",label:"日志标题"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("p",{staticClass:"oper-content-wrap",attrs:{title:t.row.operTitle}},[e._v(e._s(t.row.operTitle?t.row.operTitle:"--"))])]}}])}),e._v(" "),l("el-table-column",{attrs:{prop:"operContent",label:"日志内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("p",{staticClass:"oper-content-wrap",attrs:{title:t.row.operContent}},[e._v(e._s(t.row.operContent?t.row.operContent:"--"))])]}}])}),e._v(" "),l("template",{slot:"empty"},[l("div",{staticClass:"no-data-wrap"},[l("div",{staticClass:"no-data-icon"},[l("img",{attrs:{src:a("8Td+"),alt:""}})]),e._v(" "),l("p",[e._v("暂无数据")])])])],2),e._v(" "),l("div",{directives:[{name:"show",rawName:"v-show",value:e.totalCount>0,expression:"totalCount > 0"}],staticClass:"pagination"},[l("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var o=a("VU/8")(r,n,!1,function(e){a("FgHG")},"data-v-4071e035",null);t.default=o.exports}});
//# sourceMappingURL=18.0f244870808a8d88b409.1557819940580.js.map //# sourceMappingURL=18.03a42eb1f63e0b2b0c15.1557916290126.js.map
\ No newline at end of file \ No newline at end of file
webpackJsonp([20],{V0Ja:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("P9l9"),n={name:"index",data:function(){return{requestProject:"gic-authcenter",bgHeight:window.screen.availHeight-320+"px",tabListData:[],activeSelTab:"",headerCode:""}},mounted:function(){this.init()},methods:{init:function(){this.headerCode=this.$route.query.code,this.$emit("getLinkType","authority"),this.getMenuTree()},getMenuTree:function(){var e=this;Object(i.b)("/gic-authcenter/loginuser",{requestProject:"gic-authcenter"}).then(function(t){var a=t.data;0==a.errorCode?(e.entranceList=[],(a.result.menuTree?a.result.menuTree:[]).forEach(function(t){"authcenter"==t.code&&t.nodeChildren&&t.nodeChildren.length>0&&t.nodeChildren.forEach(function(t){if(t.code==e.headerCode){var a=[];a.push(t),e.tabListData=e.getNewTabList(a),e.activeSelTab||(e.activeSelTab=e.tabListData[0].children.length>0?e.tabListData[0].children[0].tabId:e.tabListData[0].tabId)}})})):e.$message.error(a.message)}).catch(function(e){console.log(e)})},getNewTabList:function(e){var t=this;return e.forEach(function(e){1==e.isShow&&(e.tabId=e.id,e.tabName=e.menuName,e.icon=""!=e.iconUrl?e.iconUrl:"iconcaidan",e.onlyIconActive=!1,e.children=e.nodeChildren?e.nodeChildren:[],e.children.length>0&&(e.children.forEach(function(e){e.icon=""}),t.getNewTabList(e.children)))}),e},setSelectTab:function(e){this.$router.push({path:e.uri,query:{code:this.headerCode,tabId:e.tabId}})},showTab:function(e){this.activeSelTab=e}},beforeRouteLeave:function(e,t,a){var i=e;"/menuManage"==i.path&&"/roleManage"==i.path&&"/addRole"==i.path&&"/userManage"==i.path&&"/addUser"==i.path&&"/authorityList"==i.path||this.$emit("getLinkType",""),a()},components:{ywLeftAside:a("TaZW").a}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"authority-wrap",style:{"min-height":this.bgHeight}},[t("div",{staticClass:"my-left-aside"},[t("yw-left-aside",{attrs:{tabListData:this.tabListData,activeSelTab:this.activeSelTab},on:{setSelectTab:this.setSelectTab}})],1),this._v(" "),t("div",{staticClass:"my-right-wrap"},[t("router-view",{on:{showTab:this.showTab}})],1)])},staticRenderFns:[]};var s=a("VU/8")(n,r,!1,function(e){a("Z4E5")},"data-v-32327f16",null);t.default=s.exports},Z4E5:function(e,t){}}); webpackJsonp([20],{V0Ja:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("P9l9"),n={name:"index",data:function(){return{requestProject:"gic-authcenter",bgHeight:window.screen.availHeight-320+"px",tabListData:[],activeSelTab:"",headerCode:""}},mounted:function(){this.init()},methods:{init:function(){this.headerCode=this.$route.query.code,this.$emit("getLinkType","authority"),this.getMenuTree()},getMenuTree:function(){var e=this;Object(i.b)("/gic-authcenter/loginuser",{requestProject:"gic-authcenter"}).then(function(t){var a=t.data;0==a.errorCode?(e.entranceList=[],(a.result.menuTree?a.result.menuTree:[]).forEach(function(t){"authcenter"==t.code&&t.nodeChildren&&t.nodeChildren.length>0&&t.nodeChildren.forEach(function(t){if(t.code==e.headerCode){var a=[];a.push(t),e.tabListData=e.getNewTabList(a),e.activeSelTab||(e.activeSelTab=e.tabListData[0].children.length>0?e.tabListData[0].children[0].tabId:e.tabListData[0].tabId)}})})):e.$message.error(a.message)}).catch(function(e){console.log(e)})},getNewTabList:function(e){var t=this;return e.forEach(function(e){1==e.isShow&&(e.tabId=e.id,e.tabName=e.menuName,e.icon=""!=e.iconUrl?e.iconUrl:"iconcaidan",e.onlyIconActive=!1,e.children=e.nodeChildren?e.nodeChildren:[],e.children.length>0&&(e.children.forEach(function(e){e.icon=""}),t.getNewTabList(e.children)))}),e},setSelectTab:function(e){this.$router.push({path:e.uri,query:{code:this.headerCode,tabId:e.tabId}})},showTab:function(e){this.activeSelTab=e}},beforeRouteLeave:function(e,t,a){var i=e;"/menuManage"==i.path&&"/roleManage"==i.path&&"/addRole"==i.path&&"/userManage"==i.path&&"/addUser"==i.path&&"/authorityList"==i.path||this.$emit("getLinkType",""),a()},components:{ywLeftAside:a("TaZW").a}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"authority-wrap",style:{"min-height":this.bgHeight}},[t("div",{staticClass:"my-left-aside"},[t("yw-left-aside",{attrs:{tabListData:this.tabListData,activeSelTab:this.activeSelTab},on:{setSelectTab:this.setSelectTab}})],1),this._v(" "),t("div",{staticClass:"my-right-wrap"},[t("router-view",{on:{showTab:this.showTab}})],1)])},staticRenderFns:[]};var s=a("VU/8")(n,r,!1,function(e){a("Z4E5")},"data-v-32327f16",null);t.default=s.exports},Z4E5:function(e,t){}});
//# sourceMappingURL=20.6c3a1d9996efcd79d71e.1557819940580.js.map //# sourceMappingURL=20.dffacded4647c010ae5c.1557916290126.js.map
\ No newline at end of file \ No newline at end of file
webpackJsonp([21],{"7fCI":function(e,t){},saP7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("ueeG"),n=a("P9l9"),o=a("rM4U"),i=function(e,t,a){t?Object(o.a)(t)?a():a(new Error("权限名称不允许有空格")):a(new Error("请输入权限名称"))},s=function(e,t,a){t?Object(o.b)(t)?a():a(new Error("权限code只能由英文、下划线、数字组成")):a(new Error("请输入权限code"))},l={name:"authorityList",data:function(){return{requestProject:"gic-authcenter",searchInput:"",tableData:[],currentPage:1,pageSize:10,totalCount:0,loading:!1,dialogVisible:!1,menuTitle:"新增权限",editCodeType:"add",menuForm:{menuName:"",menuCode:"",detail:""},rules:{menuName:[{required:!0,trigger:"blur",validator:i}],menuCode:[{required:!0,trigger:"blur",validator:s}]}}},mounted:function(){this.init()},methods:{init:function(){var e=this.$route.query.tabId;this.$emit("showTab",e),this.getList()},getList:function(){var e=this;this.loading=!0;var t={requestProject:this.requestProject,currentPage:this.currentPage,pageSize:this.pageSize,search:this.searchInput};Object(n.b)("/gic-authcenter/permission",t).then(function(t){var a=t.data;e.loading=!1,0==a.errorCode?(e.tableData=a.result?a.result:[],e.totalCount=a.totalCount):e.$message.error(a.message)}).catch(function(e){console.log(e)})},handleCurrentChange:function(e){this.currentPage=e,this.getList()},handleSizeChange:function(e){this.pageSize=e,this.getList()},searchList:function(){this.currentPage=1,this.getList()},delAuthority:function(e,t){var a=this;this.$confirm("是否要删除选中的权限?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var r={requestProject:a.requestProject};Object(n.a)("/gic-authcenter/permission/"+e.permissionCode,r).then(function(e){var r=e.data;0==r.errorCode?(a.totalCount--,a.tableData.splice(t,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getList()):a.totalCount>0&&a.getList()),a.$message.success("删除成功")):a.$message.error(r.message)})}).catch(function(e){console.log(e)})},addUserBtn:function(){},addCreate:function(e,t){this.dialogVisible=!0,this.editCodeType=e,"add"==e?(this.menuTitle="新增权限",this.menuForm.menuName="",this.menuForm.menuCode="",this.menuForm.detail=""):"edit"==e&&(this.menuTitle="编辑权限",this.menuForm.menuName=t.permissionName,this.menuForm.menuCode=t.permissionCode,this.menuForm.detail=t.remark)},cancelCreate:function(){this.dialogVisible=!1,this.$refs.menuForm.clearValidate()},sureCreate:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;var a={requestProject:t.requestProject,permissionName:t.menuForm.menuName,permissionCode:t.menuForm.menuCode,remark:t.menuForm.detail};"add"==t.editCodeType?Object(n.c)("/gic-authcenter/permission",a).then(function(e){var a=e.data;0==a.errorCode?(t.dialogVisible=!1,t.getList(),t.$message.success("保存成功")):t.$message.error(a.message)}).catch(function(e){console.log(e)}):"edit"==t.editCodeType&&(delete a.permissionCode,Object(n.d)("/gic-authcenter/permission/"+t.menuForm.menuCode,a).then(function(e){var a=e.data;0==a.errorCode?(t.dialogVisible=!1,t.getList(),t.$message.success("保存成功")):t.$message.error(a.message)}).catch(function(e){console.log(e)}))})}},components:{ywInput:r.a}},u={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"my-right-content"},[r("div",{staticClass:"search-wrap clearfix"},[r("el-input",{staticClass:"fl",attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchList(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),r("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(t){return e.addCreate("add")}}},[e._v("新增权限")])],1),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:e.tableData,"max-height":"550"}},[r("el-table-column",{attrs:{prop:"permissionName",label:"权限名称","show-overflow-tooltip":""}}),e._v(" "),r("el-table-column",{attrs:{prop:"permissionCode",label:"权限code","show-overflow-tooltip":""}}),e._v(" "),r("el-table-column",{attrs:{prop:"remark",label:"说明","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remark?t.row.remark:"--")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"address",label:"操作日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dateFormat")(t.row.updateTime,"YYYY-MM-DD hh:mm:ss"))+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"opr",label:"操作",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addCreate("edit",t.row)}}},[e._v("编辑")]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(a){return e.delAuthority(t.row,t.$index)}}},[e._v("删除")])]}}])}),e._v(" "),r("template",{slot:"empty"},[r("div",{staticClass:"no-data-wrap"},[r("div",{staticClass:"no-data-icon"},[r("img",{attrs:{src:a("8Td+"),alt:""}})]),e._v(" "),r("p",[e._v("暂无数据")])])])],2),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.totalCount>0,expression:"totalCount > 0"}],staticClass:"pagination"},[r("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),r("el-dialog",{attrs:{title:e.menuTitle,visible:e.dialogVisible,width:"425px","before-close":e.cancelCreate},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("el-form",{ref:"menuForm",attrs:{model:e.menuForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"权限名称",prop:"menuName"}},[r("yw-input",{attrs:{byteType:0,maxlength:20},model:{value:e.menuForm.menuName,callback:function(t){e.$set(e.menuForm,"menuName",t)},expression:"menuForm.menuName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"权限code",prop:"menuCode"}},[r("yw-input",{attrs:{disabled:"edit"==e.editCodeType,byteType:0,maxlength:32},model:{value:e.menuForm.menuCode,callback:function(t){e.$set(e.menuForm,"menuCode",t)},expression:"menuForm.menuCode"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"说明"}},[r("yw-input",{attrs:{type:"textarea",byteType:0,maxlength:200},model:{value:e.menuForm.detail,callback:function(t){e.$set(e.menuForm,"detail",t)},expression:"menuForm.detail"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.cancelCreate}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.sureCreate("menuForm")}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c=a("VU/8")(l,u,!1,function(e){a("7fCI")},"data-v-1b88df78",null);t.default=c.exports}}); webpackJsonp([21],{"7fCI":function(e,t){},saP7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("ueeG"),n=a("P9l9"),o=a("rM4U"),i=function(e,t,a){t?Object(o.a)(t)?a():a(new Error("权限名称不允许有空格")):a(new Error("请输入权限名称"))},s=function(e,t,a){t?Object(o.b)(t)?a():a(new Error("权限code只能由英文、下划线、数字组成")):a(new Error("请输入权限code"))},l={name:"authorityList",data:function(){return{requestProject:"gic-authcenter",searchInput:"",tableData:[],currentPage:1,pageSize:10,totalCount:0,loading:!1,dialogVisible:!1,menuTitle:"新增权限",editCodeType:"add",menuForm:{menuName:"",menuCode:"",detail:""},rules:{menuName:[{required:!0,trigger:"blur",validator:i}],menuCode:[{required:!0,trigger:"blur",validator:s}]}}},mounted:function(){this.init()},methods:{init:function(){var e=this.$route.query.tabId;this.$emit("showTab",e),this.getList()},getList:function(){var e=this;this.loading=!0;var t={requestProject:this.requestProject,currentPage:this.currentPage,pageSize:this.pageSize,search:this.searchInput};Object(n.b)("/gic-authcenter/permission",t).then(function(t){var a=t.data;e.loading=!1,0==a.errorCode?(e.tableData=a.result?a.result:[],e.totalCount=a.totalCount):e.$message.error(a.message)}).catch(function(e){console.log(e)})},handleCurrentChange:function(e){this.currentPage=e,this.getList()},handleSizeChange:function(e){this.pageSize=e,this.getList()},searchList:function(){this.currentPage=1,this.getList()},delAuthority:function(e,t){var a=this;this.$confirm("是否要删除选中的权限?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var r={requestProject:a.requestProject};Object(n.a)("/gic-authcenter/permission/"+e.permissionCode,r).then(function(e){var r=e.data;0==r.errorCode?(a.totalCount--,a.tableData.splice(t,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getList()):a.totalCount>0&&a.getList()),a.$message.success("删除成功")):a.$message.error(r.message)})}).catch(function(e){console.log(e)})},addUserBtn:function(){},addCreate:function(e,t){this.dialogVisible=!0,this.editCodeType=e,"add"==e?(this.menuTitle="新增权限",this.menuForm.menuName="",this.menuForm.menuCode="",this.menuForm.detail=""):"edit"==e&&(this.menuTitle="编辑权限",this.menuForm.menuName=t.permissionName,this.menuForm.menuCode=t.permissionCode,this.menuForm.detail=t.remark)},cancelCreate:function(){this.dialogVisible=!1,this.$refs.menuForm.clearValidate()},sureCreate:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;var a={requestProject:t.requestProject,permissionName:t.menuForm.menuName,permissionCode:t.menuForm.menuCode,remark:t.menuForm.detail};"add"==t.editCodeType?Object(n.c)("/gic-authcenter/permission",a).then(function(e){var a=e.data;0==a.errorCode?(t.dialogVisible=!1,t.getList(),t.$message.success("保存成功")):t.$message.error(a.message)}).catch(function(e){console.log(e)}):"edit"==t.editCodeType&&(delete a.permissionCode,Object(n.d)("/gic-authcenter/permission/"+t.menuForm.menuCode,a).then(function(e){var a=e.data;0==a.errorCode?(t.dialogVisible=!1,t.getList(),t.$message.success("保存成功")):t.$message.error(a.message)}).catch(function(e){console.log(e)}))})}},components:{ywInput:r.a}},u={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"my-right-content"},[r("div",{staticClass:"search-wrap clearfix"},[r("el-input",{staticClass:"fl",attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchList(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),r("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(t){return e.addCreate("add")}}},[e._v("新增权限")])],1),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table-no-line-wrap",attrs:{data:e.tableData,"max-height":"550"}},[r("el-table-column",{attrs:{prop:"permissionName",label:"权限名称","show-overflow-tooltip":""}}),e._v(" "),r("el-table-column",{attrs:{prop:"permissionCode",label:"权限code","show-overflow-tooltip":""}}),e._v(" "),r("el-table-column",{attrs:{prop:"remark",label:"说明","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remark?t.row.remark:"--")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"address",label:"操作日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dateFormat")(t.row.updateTime,"YYYY-MM-DD hh:mm:ss"))+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"opr",label:"操作",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addCreate("edit",t.row)}}},[e._v("编辑")]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(a){return e.delAuthority(t.row,t.$index)}}},[e._v("删除")])]}}])}),e._v(" "),r("template",{slot:"empty"},[r("div",{staticClass:"no-data-wrap"},[r("div",{staticClass:"no-data-icon"},[r("img",{attrs:{src:a("8Td+"),alt:""}})]),e._v(" "),r("p",[e._v("暂无数据")])])])],2),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.totalCount>0,expression:"totalCount > 0"}],staticClass:"pagination"},[r("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),r("el-dialog",{attrs:{title:e.menuTitle,visible:e.dialogVisible,width:"425px","before-close":e.cancelCreate},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("el-form",{ref:"menuForm",attrs:{model:e.menuForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"权限名称",prop:"menuName"}},[r("yw-input",{attrs:{byteType:0,maxlength:20},model:{value:e.menuForm.menuName,callback:function(t){e.$set(e.menuForm,"menuName",t)},expression:"menuForm.menuName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"权限code",prop:"menuCode"}},[r("yw-input",{attrs:{disabled:"edit"==e.editCodeType,byteType:0,maxlength:32},model:{value:e.menuForm.menuCode,callback:function(t){e.$set(e.menuForm,"menuCode",t)},expression:"menuForm.menuCode"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"说明"}},[r("yw-input",{attrs:{type:"textarea",byteType:0,maxlength:200},model:{value:e.menuForm.detail,callback:function(t){e.$set(e.menuForm,"detail",t)},expression:"menuForm.detail"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.cancelCreate}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.sureCreate("menuForm")}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c=a("VU/8")(l,u,!1,function(e){a("7fCI")},"data-v-1b88df78",null);t.default=c.exports}});
//# sourceMappingURL=21.2443d2576a1b3ff14606.1557819940580.js.map //# sourceMappingURL=21.695f42e43dec64c6ac10.1557916290126.js.map
\ No newline at end of file \ No newline at end of file
webpackJsonp([22],{"/MZh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("P9l9"),r={name:"roleManage",data:function(){return{requestProject:"gic-authcenter",searchInput:"",tableData:[],currentPage:1,pageSize:10,totalCount:0}},mounted:function(){this.init()},methods:{init:function(){var t=this.$route.query.tabId;this.$emit("showTab",t),this.getRoleList()},getRoleList:function(){var t=this,e={requestProject:this.requestProject,currentPage:this.currentPage,pageSize:this.pageSize,listAll:!1,search:this.searchInput};Object(n.b)("/gic-authcenter/role",e).then(function(e){var a=e.data;0==a.errorCode?(t.tableData=a.result?a.result:[],t.totalCount=a.totalCount):t.$message.error(a.message)})},handleCurrentChange:function(t){this.currentPage=t,this.getRoleList()},handleSizeChange:function(t){this.pageSize=t,this.getRoleList()},searchRole:function(){this.pageSize=1,this.getRoleList()},delRole:function(t,e){var a=this;this.$confirm("是否要删除选中的角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var r={requestProject:a.requestProject};Object(n.a)("/gic-authcenter/role/"+t.id,r).then(function(t){var n=t.data;0==n.errorCode?(a.totalCount--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getRoleList()):a.totalCount>0&&a.getRoleList()),a.$message.success("删除成功")):a.$message.error(n.message)})}).catch(function(){})},addRoleBtn:function(t,e){"add"==t?this.$router.push({path:"/addRole",query:{tabId:this.$route.query.tabId}}):"edit"==t&&this.$router.push({path:"/addRole",query:{roleId:e.id,tabId:this.$route.query.tabId}})}},components:{}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-right-content"},[n("div",{staticClass:"search-wrap clearfix"},[n("el-input",{staticClass:"fl",attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchRole(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),t._v(" "),n("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(e){return t.addRoleBtn("add")}}},[t._v("创建角色")])],1),t._v(" "),n("el-table",{staticClass:"table-no-line-wrap",attrs:{data:t.tableData,"max-height":"550"}},[n("el-table-column",{attrs:{prop:"roleName",label:"名称"}}),t._v(" "),n("el-table-column",{attrs:{prop:"systemCount",label:"关联系统"}}),t._v(" "),n("el-table-column",{attrs:{prop:"menuCount",label:"关联菜单"}}),t._v(" "),n("el-table-column",{attrs:{prop:"permissionCount",label:"权限"}}),t._v(" "),n("el-table-column",{attrs:{prop:"remark",label:"说明","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.remark?e.row.remark:"--")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"opr",label:"操作",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.addRoleBtn("edit",e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.delRole(e.row,e.$index)}}},[t._v("删除")])]}}])}),t._v(" "),n("template",{slot:"empty"},[n("div",{staticClass:"no-data-wrap"},[n("div",{staticClass:"no-data-icon"},[n("img",{attrs:{src:a("8Td+"),alt:""}})]),t._v(" "),n("p",[t._v("暂无数据")])])])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.totalCount>0,expression:"totalCount > 0"}],staticClass:"pagination"},[n("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next",total:t.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var s=a("VU/8")(r,o,!1,function(t){a("GxFT")},"data-v-0a7696e4",null);e.default=s.exports},GxFT:function(t,e){}}); webpackJsonp([22],{"/MZh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("P9l9"),r={name:"roleManage",data:function(){return{requestProject:"gic-authcenter",searchInput:"",tableData:[],currentPage:1,pageSize:10,totalCount:0}},mounted:function(){this.init()},methods:{init:function(){var t=this.$route.query.tabId;this.$emit("showTab",t),this.getRoleList()},getRoleList:function(){var t=this,e={requestProject:this.requestProject,currentPage:this.currentPage,pageSize:this.pageSize,listAll:!1,search:this.searchInput};Object(n.b)("/gic-authcenter/role",e).then(function(e){var a=e.data;0==a.errorCode?(t.tableData=a.result?a.result:[],t.totalCount=a.totalCount):t.$message.error(a.message)})},handleCurrentChange:function(t){this.currentPage=t,this.getRoleList()},handleSizeChange:function(t){this.pageSize=t,this.getRoleList()},searchRole:function(){this.pageSize=1,this.getRoleList()},delRole:function(t,e){var a=this;this.$confirm("是否要删除选中的角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var r={requestProject:a.requestProject};Object(n.a)("/gic-authcenter/role/"+t.id,r).then(function(t){var n=t.data;0==n.errorCode?(a.totalCount--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getRoleList()):a.totalCount>0&&a.getRoleList()),a.$message.success("删除成功")):a.$message.error(n.message)})}).catch(function(){})},addRoleBtn:function(t,e){"add"==t?this.$router.push({path:"/addRole",query:{tabId:this.$route.query.tabId}}):"edit"==t&&this.$router.push({path:"/addRole",query:{roleId:e.id,tabId:this.$route.query.tabId}})}},components:{}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-right-content"},[n("div",{staticClass:"search-wrap clearfix"},[n("el-input",{staticClass:"fl",attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchRole(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),t._v(" "),n("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(e){return t.addRoleBtn("add")}}},[t._v("创建角色")])],1),t._v(" "),n("el-table",{staticClass:"table-no-line-wrap",attrs:{data:t.tableData,"max-height":"550"}},[n("el-table-column",{attrs:{prop:"roleName",label:"名称"}}),t._v(" "),n("el-table-column",{attrs:{prop:"systemCount",label:"关联系统"}}),t._v(" "),n("el-table-column",{attrs:{prop:"menuCount",label:"关联菜单"}}),t._v(" "),n("el-table-column",{attrs:{prop:"permissionCount",label:"权限"}}),t._v(" "),n("el-table-column",{attrs:{prop:"remark",label:"说明","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.remark?e.row.remark:"--")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"opr",label:"操作",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.addRoleBtn("edit",e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.delRole(e.row,e.$index)}}},[t._v("删除")])]}}])}),t._v(" "),n("template",{slot:"empty"},[n("div",{staticClass:"no-data-wrap"},[n("div",{staticClass:"no-data-icon"},[n("img",{attrs:{src:a("8Td+"),alt:""}})]),t._v(" "),n("p",[t._v("暂无数据")])])])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.totalCount>0,expression:"totalCount > 0"}],staticClass:"pagination"},[n("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next",total:t.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var s=a("VU/8")(r,o,!1,function(t){a("GxFT")},"data-v-0a7696e4",null);e.default=s.exports},GxFT:function(t,e){}});
//# sourceMappingURL=22.c76c5133d3642b138a21.1557819940580.js.map //# sourceMappingURL=22.8fa7151b31b97a62cc60.1557916290126.js.map
\ No newline at end of file \ No newline at end of file
webpackJsonp([23],{M5Na:function(l,e,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u("VU/8")(null,null,!1,null,null,null);e.default=n.exports}}); webpackJsonp([23],{M5Na:function(l,e,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u("VU/8")(null,null,!1,null,null,null);e.default=n.exports}});
//# sourceMappingURL=23.0f5e09018b293701b277.1557819940580.js.map //# sourceMappingURL=23.0f5e09018b293701b277.1557916290126.js.map
\ No newline at end of file \ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/haoban/adList.vue"],"names":["Object","defineProperty","__webpack_exports__","value","Component","__webpack_require__","normalizeComponent"],"mappings":"qDAAAA,OAAAC,eAAAC,EAAA,cAAAC,OAAA,QAaAC,EAbyBC,EAAQ,OAajCC,CAXA,KAEA,MAEA,EAEA,KAEA,KAEA,MAUeJ,EAAA,QAAAE,EAAiB","file":"static/js/23.0f5e09018b293701b277.1557819940580.js","sourcesContent":["var normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nvar __vue_script__ = null\n/* template */\nvar __vue_template__ = null\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/haoban/adList.vue\n// module id = M5Na\n// module chunks = 23"],"sourceRoot":""} {"version":3,"sources":["webpack:///./src/views/haoban/adList.vue"],"names":["Object","defineProperty","__webpack_exports__","value","Component","__webpack_require__","normalizeComponent"],"mappings":"qDAAAA,OAAAC,eAAAC,EAAA,cAAAC,OAAA,QAaAC,EAbyBC,EAAQ,OAajCC,CAXA,KAEA,MAEA,EAEA,KAEA,KAEA,MAUeJ,EAAA,QAAAE,EAAiB","file":"static/js/23.0f5e09018b293701b277.1557916290126.js","sourcesContent":["var normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nvar __vue_script__ = null\n/* template */\nvar __vue_template__ = null\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/haoban/adList.vue\n// module id = M5Na\n// module chunks = 23"],"sourceRoot":""}
\ No newline at end of file \ No newline at end of file
webpackJsonp([3],{"44uD":function(e,t){},Y6Av:function(e,t,r){"use strict";var a=r("P9l9"),i={name:"ywOtherHeader",props:{headerIcon:{type:String,default:""},headerName:{type:String,default:""}},data:function(){return{requestProject:"gic-authcenter",dialogPawVisible:!1,pawForm:{oldPaw:"",newPaw:"",surePaw:""},rules:{oldPaw:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPaw:[{required:!0,message:"请输入新密码",trigger:"blur"}],surePaw:[{required:!0,message:"请输入确认密码",trigger:"blur"}]},userFormVisible:!1,userInfoForm:{realName:"",gender:0,clerkCode:"",phoneNumber:"",positionName:""},userFormRules:{realName:[{required:!0,message:"请输入姓名",trigger:"blur"}],gender:[{required:!0,message:"请选择性别",trigger:"change"}],clerkCode:[{required:!0,message:"请输入员工代码",trigger:"blur"}],phoneNumber:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^1[34578]\d{9}$/,message:"手机号码格式不正确"}],positionName:[{required:!0,message:"请输入职位",trigger:"blur"}]},isIndex:!1,entranceType:"",loginName:"",headerImg:""}},watch:{headerIcon:function(e){this.headerImg=e,this.init()}},created:function(){this.init()},methods:{init:function(){""!=this.headerIcon?this.headerImg=r("gbs+")("./"+this.headerImg+".png"):this.headerImg=r("Ajpb"),this.getUserInfo()},getUserInfo:function(){var e=this,t={requestProject:this.requestProject};Object(a.b)("/gic-authcenter/loginuser",t).then(function(t){var r=t.data;if(0==r.errorCode){var a=r.result;e.userInfoForm.realName=a.realName,e.userInfoForm.gender=parseInt(a.sex),e.userInfoForm.clerkCode=a.employeeNumber,e.userInfoForm.phoneNumber=a.userMobile,e.userInfoForm.positionName=a.position,e.loginName=a.loginName}else e.$message.error(r.message)}).catch(function(e){console.log(e)})},toModifyUser:function(){this.userFormVisible=!0},cancelModUserInfo:function(e){this.userFormVisible=!1,this.$refs[e].clearValidate()},confirmModUserInfo:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;var r={requestProject:t.requestProject,realName:t.userInfoForm.realName,sex:t.userInfoForm.gender,userMobile:t.userInfoForm.phoneNumber,position:t.userInfoForm.positionName};Object(a.d)("/gic-authcenter/loginuser/"+t.loginName,r).then(function(e){var r=e.data;0==r.errorCode?(t.userFormVisible=!1,t.$message.success("修改成功")):t.$message.error(r.message)}).catch(function(e){console.log(e)})})},toModifyPaw:function(){this.dialogPawVisible=!0,this.pawForm.oldPaw="",this.pawForm.newPaw="",this.pawForm.surePaw=""},toModifyPawCancel:function(e){this.dialogPawVisible=!1,this.$refs[e].clearValidate()},toModifyPawSure:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;var r={oldPassword:t.pawForm.oldPaw,newPassword:t.pawForm.newPaw};return t.pawForm.oldPaw.trim()&&t.pawForm.newPaw.trim()&&t.pawForm.surePaw.trim()?t.pawForm.newPaw.trim()!=t.pawForm.surePaw.trim()?(t.$message.error("两次密码输入不一致!"),!1):void Object(a.c)("/gic-authcenter/password",r).then(function(e){var r=e.data;0==r.errorCode?(t.dialogPawVisible=!1,t.$message.success("修改成功"),Object(a.b)("/gic-authcenter/logout",{}).then(function(e){var r=e.data;0==r.errorCode?window.location.href=window.location.origin+"/operation-platform/#/":t.$message.error(r.message)}).catch(function(e){console.log(e)})):t.$message.error(r.message)}).catch(function(e){console.log(e)}):(t.$message.error("请输入密码"),!1)})},toLoginOut:function(){var e=this;this.$confirm("确认退出吗?","提示",{type:"warning"}).then(function(){Object(a.b)("/gic-authcenter/logout",{}).then(function(t){var r=t.data;0==r.errorCode?(e.$message.success("退出成功"),window.location.href=window.location.origin+"/operation-platform/#/"):e.$message.error(r.message)}).catch(function(e){console.log(e)})}).catch(function(){})},entranceAuthority:function(e){this.entranceType=e,this.$router.push("/menuManage")},entranceLog:function(e){this.entranceType=e,this.$router.push("/log")},backIndex:function(){this.$router.push("/index")}}},o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"header clearfix"},[r("div",{staticClass:"fl logo",on:{click:e.backIndex}},[r("img",{attrs:{src:e.headerImg,alt:"",width:"30px",height:"30px"}}),e._v(" "),r("span",[e._v(e._s(e.headerName))])]),e._v(" "),r("div",{staticClass:"fr login-user-info"},[r("div",{staticClass:"user-info-wrap",class:{"index-user-info":e.isIndex}},[r("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"74",trigger:"hover","popper-class":e.isIndex?"user-header-pop":"com-user-header-pop"}},[r("ul",{staticClass:"navsuerwrap"},[r("li",{staticClass:"useritem",on:{click:e.toModifyUser}},[r("span",{staticClass:"usertext"},[e._v("账号信息")])]),e._v(" "),r("li",{staticClass:"useritem",on:{click:e.toModifyPaw}},[r("span",{staticClass:"usertext"},[e._v("修改密码")])]),e._v(" "),r("li",{staticClass:"useritem loginout",on:{click:e.toLoginOut}},[r("span",{staticClass:"usertext"},[e._v("退出登录")])])]),e._v(" "),r("span",{staticClass:"navusername",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.userInfoForm.realName)),r("i",{staticClass:"el-icon-arrow-down arrowico"})])])],1)])])},staticRenderFns:[]};var s=r("VU/8")(i,o,!1,function(e){r("44uD")},"data-v-bae8a6b8",null);t.a=s.exports},b0s5:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("P9l9"),i=r("Y6Av"),o=r("TaZW"),s=r("TFYU"),n={name:"dictionary",data:function(){return{requestProject:"gic-bizdict",bgHeight:window.screen.availHeight-320+"px",tabList:[],tabListData:[],activeSelTab:"",headerIcon:"",headerName:"",headerCode:""}},mounted:function(){this.init()},methods:{init:function(){this.headerIcon=this.$route.query.icon,this.headerName=this.$route.query.name,this.headerCode=this.$route.query.code,this.activeSelTab=this.$route.query.tabId,this.getMenuTree()},getMenuTree:function(){var e=this;Object(a.b)("/gic-authcenter/loginuser",{requestProject:"gic-authcenter"}).then(function(t){var r=t.data;0==r.errorCode?(e.entranceList=[],(r.result.menuTree?r.result.menuTree:[]).forEach(function(t){if(t.code==e.headerCode){var r=t.nodeChildren?t.nodeChildren:[];e.tabListData=e.getNewTabList(r),e.activeSelTab||(e.activeSelTab=e.tabListData[0].children.length>0?e.tabListData[0].children[0].tabId:e.tabListData[0].tabId)}})):e.$message.error(r.message)}).catch(function(e){console.log(e)})},getNewTabList:function(e){var t=this;return e.forEach(function(e){1==e.isShow&&(e.tabId=e.id,e.tabName=e.menuName,e.icon=e.iconUrl?e.iconUrl:"iconcaidan",e.onlyIconActive=!1,e.children=e.nodeChildren?e.nodeChildren:[],e.children.length>0&&(e.children.forEach(function(e){e.icon=""}),t.getNewTabList(e.children)))}),e},setSelectTab:function(e){this.$router.push({path:e.uri,query:{name:this.headerName,icon:this.headerIcon,code:this.headerCode,tabId:e.tabId}})},showTab:function(e){this.activeSelTab=e}},components:{ywOtherHeader:i.a,ywLeftAside:o.a,ywFooter:s.a}},c={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"my-content-wrap"},[r("yw-other-header",{attrs:{headerIcon:e.headerIcon,headerName:e.headerName},on:{"update:headerIcon":function(t){e.headerIcon=t},"update:header-icon":function(t){e.headerIcon=t}}}),e._v(" "),r("div",{staticClass:"my-content-content"},[r("div",{staticClass:"dictionary-wrap",style:{"min-height":e.bgHeight}},[r("div",{staticClass:"my-left-aside"},[r("yw-left-aside",{attrs:{tabListData:e.tabListData,activeSelTab:e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),e._v(" "),r("div",{staticClass:"my-right-wrap"},[r("router-view",{on:{showTab:e.showTab}})],1)])]),e._v(" "),r("yw-footer")],1)},staticRenderFns:[]};var u=r("VU/8")(n,c,!1,function(e){r("xcPw")},"data-v-7c556bb4",null);t.default=u.exports},xcPw:function(e,t){}});
//# sourceMappingURL=3.cdd72e1cee1673654856.1557916290126.js.map
\ No newline at end of file
webpackJsonp([4],{"44uD":function(e,t){},"9F3s":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("P9l9"),i=r("Y6Av"),o=r("TaZW"),s=r("TFYU"),n={name:"haoban",data:function(){return{requestProject:"gic-bizdict",bgHeight:window.screen.availHeight-320+"px",tabList:[],tabListData:[],activeSelTab:"",headerIcon:"",headerName:"",headerCode:""}},mounted:function(){this.init()},methods:{init:function(){this.headerIcon=this.$route.query.icon,this.headerName=this.$route.query.name,this.headerCode=this.$route.query.code,this.activeSelTab=this.$route.query.tabId},getMenuTree:function(){var e=this;Object(a.b)("/gic-authcenter/loginuser",{requestProject:"gic-authcenter"}).then(function(t){var r=t.data;0==r.errorCode?(e.entranceList=[],(r.result.menuTree?r.result.menuTree:[]).forEach(function(t){if(t.code==e.headerCode){var r=t.nodeChildren?t.nodeChildren:[];e.tabListData=e.getNewTabList(r),e.activeSelTab||(e.activeSelTab=e.tabListData[0].children.length>0?e.tabListData[0].children[0].tabId:e.tabListData[0].tabId)}})):e.$message.error(r.message)}).catch(function(e){console.log(e)})},getNewTabList:function(e){var t=this;return e.forEach(function(e){1==e.isShow&&(e.tabId=e.id,e.tabName=e.menuName,e.icon=e.iconUrl?e.iconUrl:"iconcaidan",e.onlyIconActive=!1,e.children=e.nodeChildren?e.nodeChildren:[],e.children.length>0&&(e.children.forEach(function(e){e.icon=""}),t.getNewTabList(e.children)))}),e},setSelectTab:function(e){this.$router.push({path:e.uri,query:{name:this.headerName,icon:this.headerIcon,code:this.headerCode,tabId:e.tabId}})},showTab:function(e){this.activeSelTab=e}},components:{ywOtherHeader:i.a,ywLeftAside:o.a,ywFooter:s.a}},c={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"my-content-wrap"},[r("yw-other-header",{attrs:{headerIcon:e.headerIcon,headerName:e.headerName},on:{"update:headerIcon":function(t){e.headerIcon=t},"update:header-icon":function(t){e.headerIcon=t}}}),e._v(" "),r("div",{staticClass:"my-content-content"},[r("div",{staticClass:"dictionary-wrap",style:{"min-height":e.bgHeight}},[r("div",{staticClass:"my-left-aside"},[r("yw-left-aside",{attrs:{tabListData:e.tabListData,activeSelTab:e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),e._v(" "),r("div",{staticClass:"my-right-wrap"},[r("router-view",{on:{showTab:e.showTab}})],1)])]),e._v(" "),r("yw-footer")],1)},staticRenderFns:[]};var u=r("VU/8")(n,c,!1,function(e){r("fNPR")},"data-v-73d188a4",null);t.default=u.exports},Y6Av:function(e,t,r){"use strict";var a=r("P9l9"),i={name:"ywOtherHeader",props:{headerIcon:{type:String,default:""},headerName:{type:String,default:""}},data:function(){return{requestProject:"gic-authcenter",dialogPawVisible:!1,pawForm:{oldPaw:"",newPaw:"",surePaw:""},rules:{oldPaw:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPaw:[{required:!0,message:"请输入新密码",trigger:"blur"}],surePaw:[{required:!0,message:"请输入确认密码",trigger:"blur"}]},userFormVisible:!1,userInfoForm:{realName:"",gender:0,clerkCode:"",phoneNumber:"",positionName:""},userFormRules:{realName:[{required:!0,message:"请输入姓名",trigger:"blur"}],gender:[{required:!0,message:"请选择性别",trigger:"change"}],clerkCode:[{required:!0,message:"请输入员工代码",trigger:"blur"}],phoneNumber:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^1[34578]\d{9}$/,message:"手机号码格式不正确"}],positionName:[{required:!0,message:"请输入职位",trigger:"blur"}]},isIndex:!1,entranceType:"",loginName:"",headerImg:""}},watch:{headerIcon:function(e){this.headerImg=e,this.init()}},created:function(){this.init()},methods:{init:function(){""!=this.headerIcon?this.headerImg=r("gbs+")("./"+this.headerImg+".png"):this.headerImg=r("Ajpb"),this.getUserInfo()},getUserInfo:function(){var e=this,t={requestProject:this.requestProject};Object(a.b)("/gic-authcenter/loginuser",t).then(function(t){var r=t.data;if(0==r.errorCode){var a=r.result;e.userInfoForm.realName=a.realName,e.userInfoForm.gender=parseInt(a.sex),e.userInfoForm.clerkCode=a.employeeNumber,e.userInfoForm.phoneNumber=a.userMobile,e.userInfoForm.positionName=a.position,e.loginName=a.loginName}else e.$message.error(r.message)}).catch(function(e){console.log(e)})},toModifyUser:function(){this.userFormVisible=!0},cancelModUserInfo:function(e){this.userFormVisible=!1,this.$refs[e].clearValidate()},confirmModUserInfo:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;var r={requestProject:t.requestProject,realName:t.userInfoForm.realName,sex:t.userInfoForm.gender,userMobile:t.userInfoForm.phoneNumber,position:t.userInfoForm.positionName};Object(a.d)("/gic-authcenter/loginuser/"+t.loginName,r).then(function(e){var r=e.data;0==r.errorCode?(t.userFormVisible=!1,t.$message.success("修改成功")):t.$message.error(r.message)}).catch(function(e){console.log(e)})})},toModifyPaw:function(){this.dialogPawVisible=!0,this.pawForm.oldPaw="",this.pawForm.newPaw="",this.pawForm.surePaw=""},toModifyPawCancel:function(e){this.dialogPawVisible=!1,this.$refs[e].clearValidate()},toModifyPawSure:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;var r={oldPassword:t.pawForm.oldPaw,newPassword:t.pawForm.newPaw};return t.pawForm.oldPaw.trim()&&t.pawForm.newPaw.trim()&&t.pawForm.surePaw.trim()?t.pawForm.newPaw.trim()!=t.pawForm.surePaw.trim()?(t.$message.error("两次密码输入不一致!"),!1):void Object(a.c)("/gic-authcenter/password",r).then(function(e){var r=e.data;0==r.errorCode?(t.dialogPawVisible=!1,t.$message.success("修改成功"),Object(a.b)("/gic-authcenter/logout",{}).then(function(e){var r=e.data;0==r.errorCode?window.location.href=window.location.origin+"/operation-platform/#/":t.$message.error(r.message)}).catch(function(e){console.log(e)})):t.$message.error(r.message)}).catch(function(e){console.log(e)}):(t.$message.error("请输入密码"),!1)})},toLoginOut:function(){var e=this;this.$confirm("确认退出吗?","提示",{type:"warning"}).then(function(){Object(a.b)("/gic-authcenter/logout",{}).then(function(t){var r=t.data;0==r.errorCode?(e.$message.success("退出成功"),window.location.href=window.location.origin+"/operation-platform/#/"):e.$message.error(r.message)}).catch(function(e){console.log(e)})}).catch(function(){})},entranceAuthority:function(e){this.entranceType=e,this.$router.push("/menuManage")},entranceLog:function(e){this.entranceType=e,this.$router.push("/log")},backIndex:function(){this.$router.push("/index")}}},o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"header clearfix"},[r("div",{staticClass:"fl logo",on:{click:e.backIndex}},[r("img",{attrs:{src:e.headerImg,alt:"",width:"30px",height:"30px"}}),e._v(" "),r("span",[e._v(e._s(e.headerName))])]),e._v(" "),r("div",{staticClass:"fr login-user-info"},[r("div",{staticClass:"user-info-wrap",class:{"index-user-info":e.isIndex}},[r("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"74",trigger:"hover","popper-class":e.isIndex?"user-header-pop":"com-user-header-pop"}},[r("ul",{staticClass:"navsuerwrap"},[r("li",{staticClass:"useritem",on:{click:e.toModifyUser}},[r("span",{staticClass:"usertext"},[e._v("账号信息")])]),e._v(" "),r("li",{staticClass:"useritem",on:{click:e.toModifyPaw}},[r("span",{staticClass:"usertext"},[e._v("修改密码")])]),e._v(" "),r("li",{staticClass:"useritem loginout",on:{click:e.toLoginOut}},[r("span",{staticClass:"usertext"},[e._v("退出登录")])])]),e._v(" "),r("span",{staticClass:"navusername",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.userInfoForm.realName)),r("i",{staticClass:"el-icon-arrow-down arrowico"})])])],1)])])},staticRenderFns:[]};var s=r("VU/8")(i,o,!1,function(e){r("44uD")},"data-v-bae8a6b8",null);t.a=s.exports},fNPR:function(e,t){}});
//# sourceMappingURL=4.17774d52779a1716aba4.1557916290126.js.map
\ No newline at end of file
webpackJsonp([5],{"8Q+b":function(t,e){},b9YQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("oaqO"),n=a("P9l9"),i={name:"tableList",components:{navBread:r.a},data:function(){return{requestProject:"gic-bizdict",menuData:[{name:"android"==this.$route.query.activeTab?"安卓配置":"iOS配置",path:"/versionList?activeTab="+this.$route.query.activeTab+"&name="+this.$route.query.name+"&icon="+this.$route.query.icon+"&code="+this.$route.query.code+"&tabId="+this.$route.query.tabId},{name:"查看详情",path:""}],formData:{packageId:"",version:"",title:"",content:"",forcedUpdating:"",operatorName:"",updateTime:"",status:"",apkName:""},loading:!1}},mounted:function(){this.formData.packageId=this.$route.query.packageId,this.$route.query.activeTab,this.getData()},methods:{changeRoute:function(t){this.$router.push(t)},formatTime:function(t){var e=new Date(t),a=e.getMonth()+1,r=e.getDate()<10?"0"+e.getDate():e.getDate(),n=a<10?"0"+a:a,i=e.getHours()<10?"0"+e.getHours():e.getHours(),o=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return e.getFullYear()+"-"+n+"-"+r+" "+i+":"+o+":"+s},getData:function(){var t=this;t.loading=!0;var e={requestProject:t.requestProject,packageId:t.formData.packageId};Object(n.b)("/gic-haoban-operation/app-package/"+t.formData.packageId,e).then(function(e){var a=e.data;if(t.loading=!1,0==a.errorCode){if(a.result.updateTime&&(a.result.updateTime=t.formatTime(a.result.updateTime)),t.formData=a.result?a.result:{},a.result.url){var r=a.result.url.split("/");t.formData.apkName=r[r.length-1]}}else t.$message.error(a.message)}).catch(function(e){t.loading=!1,t.$message.error(e)})}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-right-content border-box"},[a("nav-bread",{attrs:{menuData:t.menuData}}),t._v(" "),a("div",{staticClass:"detail-content"},[a("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"版本号"}},[a("span",[t._v(t._s(t.formData.version))])]),t._v(" "),a("el-form-item",{attrs:{label:"标题"}},[a("span",[t._v(t._s(t.formData.title))])]),t._v(" "),a("el-form-item",{attrs:{label:"版本内容"}},[a("span",[t._v(t._s(t.formData.content))])]),t._v(" "),"android"==t.$route.query.activeTab?a("el-form-item",{attrs:{label:"安装包上传"}},[a("span",[t._v(t._s(t.formData.apkName))])]):t._e(),t._v(" "),a("el-form-item",{attrs:{label:"强制更新"}},[a("span",[t._v(t._s(1==t.formData.forcedUpdating?"是":"否"))])]),t._v(" "),a("el-form-item",{attrs:{label:"状态"}},[a("span",[t._v(t._s(1==t.formData.status?"启用":"停用"))])]),t._v(" "),a("el-form-item",{attrs:{label:"最近编辑"}},[a("span",[t._v(t._s(t.formData.operatorName))])]),t._v(" "),a("el-form-item",{attrs:{label:"最近更新时间"}},[a("span",[t._v(t._s(t.formData.updateTime))])])],1)],1)],1)},staticRenderFns:[]};var s=a("VU/8")(i,o,!1,function(t){a("8Q+b")},"data-v-338d444f",null);e.default=s.exports},dAr1:function(t,e){},oaqO:function(t,e,a){"use strict";var r={name:"tableList",props:{menuData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{requestProject:"gic-bizdict",titleData:[]}},watch:{menuData:function(t){t&&(this.titleData=t)}},mounted:function(){this.menuData&&(this.titleData=this.menuData)},methods:{changeRoute:function(t){this.$router.push(t)},redirectRoute:function(t){t&&this.changeRoute(t)}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"right-content-top border-box"},[a("div",{staticClass:"right-top-wrap flex flex-row flex-space-between flex-pack-center"},[a("div",{staticClass:"right-top-wrap_left flex flex-pack-center"},[a("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[t._l(t.titleData,function(e,r){return[a("span",{key:r,staticClass:"el-breadcrumb__item",on:{click:function(a){return t.redirectRoute(e.path)}}},[a("span",{class:["el-breadcrumb__inner",e.path?"is-link":""],attrs:{role:"link"}},[t._v(t._s(e.name))]),t._v(" "),a("i",{staticClass:"el-breadcrumb__separator el-icon-arrow-right"})])]})],2)])])])},staticRenderFns:[]};var i=a("VU/8")(r,n,!1,function(t){a("dAr1")},"data-v-8bdb489c",null);e.a=i.exports}});
//# sourceMappingURL=5.2bc976b1ad68369e2389.1557916290126.js.map
\ No newline at end of file
webpackJsonp([6],{VlQh:function(t,a){},b9YQ:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("oaqO"),n=e("P9l9"),i={name:"tableList",props:{activeTab:{type:String,default:function(){return"android"}}},components:{navBread:r.a},data:function(){return{requestProject:"gic-bizdict",menuData:[{name:"android"==this.$route.query.activeTab?"安卓配置":"iOS配置",path:"/versionList?activeTab="+this.$route.query.activeTab+"&name="+this.$route.query.name+"&icon="+this.$route.query.icon+"&code="+this.$route.query.code+"&tabId="+this.$route.query.tabId},{name:"查看详情",path:""}],formData:{packageId:"",version:"",title:"新版本",content:"",forcedUpdating:"",operatorName:"",updateTime:"2019-04-04 13:45:54",status:"",installName:"2.0.1版本.apk"},loading:!1}},watch:{activeTab:function(t){this.getData()}},mounted:function(){this.formData.packageId=this.$route.query.packageId,this.activeTab,this.getData()},methods:{changeRoute:function(t){this.$router.push(t)},getData:function(){var t=this;t.loading=!0;var a={requestProject:t.requestProject,packageId:t.formData.packageId};Object(n.b)("/gic-haoban-operation/app-package/"+t.formData.packageId,a).then(function(a){var e=a.data;t.loading=!1,0==e.errorCode?t.formData=e.result?e.result:{}:t.$message.error(e.message)}).catch(function(a){t.loading=!1,t.$message.error(a)})}}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-right-content border-box"},[e("nav-bread",{attrs:{menuData:t.menuData}}),t._v(" "),e("div",{staticClass:"detail-content"},[e("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"110px"}},[e("el-form-item",{attrs:{label:"版本号"}},[e("span",[t._v(t._s(t.formData.version))])]),t._v(" "),e("el-form-item",{attrs:{label:"标题"}},[e("span",[t._v(t._s(t.formData.title))])]),t._v(" "),e("el-form-item",{attrs:{label:"版本内容"}},[e("span",[t._v(t._s(t.formData.content))])]),t._v(" "),"android"==t.activeTab?e("el-form-item",{attrs:{label:"安装包上传"}},[e("span",[t._v(t._s(t.formData.installName))])]):t._e(),t._v(" "),e("el-form-item",{attrs:{label:"强制更新"}},[e("span",[t._v(t._s(1==t.formData.forcedUpdating?"是":"否"))])]),t._v(" "),e("el-form-item",{attrs:{label:"状态"}},[e("span",[t._v(t._s(1==t.formData.status?"启用":"停用"))])]),t._v(" "),e("el-form-item",{attrs:{label:"最近编辑"}},[e("span",[t._v(t._s(t.formData.operatorName))])]),t._v(" "),e("el-form-item",{attrs:{label:"最近更新时间"}},[e("span",[t._v(t._s(t.formData.updateTime))])])],1)],1)],1)},staticRenderFns:[]};var s=e("VU/8")(i,o,!1,function(t){e("VlQh")},"data-v-21b846df",null);a.default=s.exports},dAr1:function(t,a){},oaqO:function(t,a,e){"use strict";var r={name:"tableList",props:{menuData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{requestProject:"gic-bizdict",titleData:[]}},watch:{menuData:function(t){t&&(this.titleData=t)}},mounted:function(){this.menuData&&(this.titleData=this.menuData)},methods:{changeRoute:function(t){this.$router.push(t)},redirectRoute:function(t){t&&this.changeRoute(t)}}},n={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"right-content-top border-box"},[e("div",{staticClass:"right-top-wrap flex flex-row flex-space-between flex-pack-center"},[e("div",{staticClass:"right-top-wrap_left flex flex-pack-center"},[e("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[t._l(t.titleData,function(a,r){return[e("span",{key:r,staticClass:"el-breadcrumb__item",on:{click:function(e){return t.redirectRoute(a.path)}}},[e("span",{class:["el-breadcrumb__inner",a.path?"is-link":""],attrs:{role:"link"}},[t._v(t._s(a.name))]),t._v(" "),e("i",{staticClass:"el-breadcrumb__separator el-icon-arrow-right"})])]})],2)])])])},staticRenderFns:[]};var i=e("VU/8")(r,n,!1,function(t){e("dAr1")},"data-v-8bdb489c",null);a.a=i.exports}});
//# sourceMappingURL=6.210dc1cdd96c1d8a02df.1557819940580.js.map
\ No newline at end of file
...@@ -6,4 +6,4 @@ webpackJsonp([8],{BJH1:function(e,r,o){"use strict";Object.defineProperty(r,"__e ...@@ -6,4 +6,4 @@ webpackJsonp([8],{BJH1:function(e,r,o){"use strict";Object.defineProperty(r,"__e
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
* Released under the MIT license * Released under the MIT license
*/!function(n){if(void 0===(s="function"==typeof(t=n)?t.call(r,o,r,e):t)||(e.exports=s),!0,e.exports=n(),!!0){var i=window.Cookies,c=window.Cookies=n();c.noConflict=function(){return window.Cookies=i,c}}}(function(){function e(){for(var e=0,r={};e<arguments.length;e++){var o=arguments[e];for(var t in o)r[t]=o[t]}return r}return function r(o){function t(r,s,n){var i;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(n=e({path:"/"},t.defaults,n)).expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*n.expires),n.expires=c}n.expires=n.expires?n.expires.toUTCString():"";try{i=JSON.stringify(s),/^[\{\[]/.test(i)&&(s=i)}catch(e){}s=o.write?o.write(s,r):encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),r=(r=(r=encodeURIComponent(String(r))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var a="";for(var l in n)n[l]&&(a+="; "+l,!0!==n[l]&&(a+="="+n[l]));return document.cookie=r+"="+s+a}r||(i={});for(var u=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,d=0;d<u.length;d++){var p=u[d].split("="),f=p.slice(1).join("=");this.json||'"'!==f.charAt(0)||(f=f.slice(1,-1));try{var v=p[0].replace(h,decodeURIComponent);if(f=o.read?o.read(f,v):o(f,v)||f.replace(h,decodeURIComponent),this.json)try{f=JSON.parse(f)}catch(e){}if(r===v){i=f;break}r||(i[v]=f)}catch(e){}}return i}}return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(r,o){t(r,"",e(o,{expires:-1}))},t.withConverter=r,t}(function(){})})},ms4L:function(e,r){}}); */!function(n){if(void 0===(s="function"==typeof(t=n)?t.call(r,o,r,e):t)||(e.exports=s),!0,e.exports=n(),!!0){var i=window.Cookies,c=window.Cookies=n();c.noConflict=function(){return window.Cookies=i,c}}}(function(){function e(){for(var e=0,r={};e<arguments.length;e++){var o=arguments[e];for(var t in o)r[t]=o[t]}return r}return function r(o){function t(r,s,n){var i;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(n=e({path:"/"},t.defaults,n)).expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*n.expires),n.expires=c}n.expires=n.expires?n.expires.toUTCString():"";try{i=JSON.stringify(s),/^[\{\[]/.test(i)&&(s=i)}catch(e){}s=o.write?o.write(s,r):encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),r=(r=(r=encodeURIComponent(String(r))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var a="";for(var l in n)n[l]&&(a+="; "+l,!0!==n[l]&&(a+="="+n[l]));return document.cookie=r+"="+s+a}r||(i={});for(var u=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,d=0;d<u.length;d++){var p=u[d].split("="),f=p.slice(1).join("=");this.json||'"'!==f.charAt(0)||(f=f.slice(1,-1));try{var v=p[0].replace(h,decodeURIComponent);if(f=o.read?o.read(f,v):o(f,v)||f.replace(h,decodeURIComponent),this.json)try{f=JSON.parse(f)}catch(e){}if(r===v){i=f;break}r||(i[v]=f)}catch(e){}}return i}}return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(r,o){t(r,"",e(o,{expires:-1}))},t.withConverter=r,t}(function(){})})},ms4L:function(e,r){}});
//# sourceMappingURL=8.350ba116b64f35c0edbf.1557819940580.js.map //# sourceMappingURL=8.7c18bd7603e2a2cb1d5d.1557916290126.js.map
\ No newline at end of file \ No newline at end of file
...@@ -6,4 +6,4 @@ webpackJsonp([9],{PI0u:function(e,r,t){"use strict";r.a=function(e,r){var t,r=r| ...@@ -6,4 +6,4 @@ webpackJsonp([9],{PI0u:function(e,r,t){"use strict";r.a=function(e,r){var t,r=r|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
* Released under the MIT license * Released under the MIT license
*/!function(n){if(void 0===(s="function"==typeof(o=n)?o.call(r,t,r,e):o)||(e.exports=s),!0,e.exports=n(),!!0){var i=window.Cookies,c=window.Cookies=n();c.noConflict=function(){return window.Cookies=i,c}}}(function(){function e(){for(var e=0,r={};e<arguments.length;e++){var t=arguments[e];for(var o in t)r[o]=t[o]}return r}return function r(t){function o(r,s,n){var i;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(n=e({path:"/"},o.defaults,n)).expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*n.expires),n.expires=c}n.expires=n.expires?n.expires.toUTCString():"";try{i=JSON.stringify(s),/^[\{\[]/.test(i)&&(s=i)}catch(e){}s=t.write?t.write(s,r):encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),r=(r=(r=encodeURIComponent(String(r))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var a="";for(var u in n)n[u]&&(a+="; "+u,!0!==n[u]&&(a+="="+n[u]));return document.cookie=r+"="+s+a}r||(i={});for(var l=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,p=0;p<l.length;p++){var h=l[p].split("="),f=h.slice(1).join("=");this.json||'"'!==f.charAt(0)||(f=f.slice(1,-1));try{var v=h[0].replace(d,decodeURIComponent);if(f=t.read?t.read(f,v):t(f,v)||f.replace(d,decodeURIComponent),this.json)try{f=JSON.parse(f)}catch(e){}if(r===v){i=f;break}r||(i[v]=f)}catch(e){}}return i}}return o.set=o,o.get=function(e){return o.call(o,e)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(r,t){o(r,"",e(t,{expires:-1}))},o.withConverter=r,o}(function(){})})}}); */!function(n){if(void 0===(s="function"==typeof(o=n)?o.call(r,t,r,e):o)||(e.exports=s),!0,e.exports=n(),!!0){var i=window.Cookies,c=window.Cookies=n();c.noConflict=function(){return window.Cookies=i,c}}}(function(){function e(){for(var e=0,r={};e<arguments.length;e++){var t=arguments[e];for(var o in t)r[o]=t[o]}return r}return function r(t){function o(r,s,n){var i;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(n=e({path:"/"},o.defaults,n)).expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*n.expires),n.expires=c}n.expires=n.expires?n.expires.toUTCString():"";try{i=JSON.stringify(s),/^[\{\[]/.test(i)&&(s=i)}catch(e){}s=t.write?t.write(s,r):encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),r=(r=(r=encodeURIComponent(String(r))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var a="";for(var u in n)n[u]&&(a+="; "+u,!0!==n[u]&&(a+="="+n[u]));return document.cookie=r+"="+s+a}r||(i={});for(var l=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,p=0;p<l.length;p++){var h=l[p].split("="),f=h.slice(1).join("=");this.json||'"'!==f.charAt(0)||(f=f.slice(1,-1));try{var v=h[0].replace(d,decodeURIComponent);if(f=t.read?t.read(f,v):t(f,v)||f.replace(d,decodeURIComponent),this.json)try{f=JSON.parse(f)}catch(e){}if(r===v){i=f;break}r||(i[v]=f)}catch(e){}}return i}}return o.set=o,o.get=function(e){return o.call(o,e)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(r,t){o(r,"",e(t,{expires:-1}))},o.withConverter=r,o}(function(){})})}});
//# sourceMappingURL=9.f8dd6ed6c6552c255f3e.1557819940580.js.map //# sourceMappingURL=9.5785151b121bc51a14e8.1557916290126.js.map
\ No newline at end of file \ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(n,a,o){for(var d,f,i,u=0,b=[];u<n.length;u++)f=n[u],r[f]&&b.push(r[f][0]),r[f]=0;for(d in a)Object.prototype.hasOwnProperty.call(a,d)&&(e[d]=a[d]);for(c&&c(n,a,o);b.length;)b.shift()();if(o)for(u=0;u<o.length;u++)i=t(t.s=o[u]);return i};var n={},r={26:0};function t(c){if(n[c])return n[c].exports;var r=n[c]={i:c,l:!1,exports:{}};return e[c].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.e=function(e){var c=r[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var n=new Promise(function(n,t){c=r[e]=[n,t]});c[2]=n;var a=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,t.nc&&o.setAttribute("nonce",t.nc),o.src=t.p+"static/js/"+e+"."+{0:"891eab9f732f92c47df5",1:"5ce1be40897adc209199",2:"f1d65953446bcad4586c",3:"ea0d8cd7cbafd8b8f601",4:"3d265f3faeecbbcc7424",5:"579b657163327c2f20d0",6:"210dc1cdd96c1d8a02df",7:"357c293d859c31bc03e9",8:"350ba116b64f35c0edbf",9:"f8dd6ed6c6552c255f3e",10:"23130c90b3acc43dc326",11:"a90d29d264a5d341a98f",12:"32f967d8775c85545060",13:"1a2817468fa4adc40be1",14:"0ac5d5e5a5eaccf19847",15:"0d46848c680417ed9058",16:"0225774dd276b09a8d08",17:"11d2245865cad2922350",18:"0f244870808a8d88b409",19:"c6f292e293ff7a9bb967",20:"6c3a1d9996efcd79d71e",21:"2443d2576a1b3ff14606",22:"c76c5133d3642b138a21",23:"0f5e09018b293701b277"}[e]+".1557819940580.js";var d=setTimeout(f,12e4);function f(){o.onerror=o.onload=null,clearTimeout(d);var c=r[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return o.onerror=o.onload=f,a.appendChild(o),n},t.m=e,t.c=n,t.d=function(e,c,n){t.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(c,"a",c),c},t.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},t.p="./",t.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.5ad31888110f31da949e.1557819940580.js.map
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(n,t,o){for(var f,d,i,u=0,b=[];u<n.length;u++)d=n[u],r[d]&&b.push(r[d][0]),r[d]=0;for(f in t)Object.prototype.hasOwnProperty.call(t,f)&&(e[f]=t[f]);for(a&&a(n,t,o);b.length;)b.shift()();if(o)for(u=0;u<o.length;u++)i=c(c.s=o[u]);return i};var n={},r={26:0};function c(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,c),r.l=!0,r.exports}c.e=function(e){var a=r[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var n=new Promise(function(n,c){a=r[e]=[n,c]});a[2]=n;var t=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,c.nc&&o.setAttribute("nonce",c.nc),o.src=c.p+"static/js/"+e+"."+{0:"fc8f97aa6d6f6e79826c",1:"20dc812ec384fa5a8668",2:"20bf78580daa37f2ba96",3:"cdd72e1cee1673654856",4:"17774d52779a1716aba4",5:"2bc976b1ad68369e2389",6:"b2ce85457d6455441f8a",7:"28c8ef0d27216d07ada1",8:"7c18bd7603e2a2cb1d5d",9:"5785151b121bc51a14e8",10:"e3e3daa9b204121e26a8",11:"f295eb390460e277779c",12:"32f967d8775c85545060",13:"4ff256255021a5cc0dfc",14:"a4291429e5d860792093",15:"4a96716fbc7f4fc90058",16:"7abd22a290977482c997",17:"361b0fa77a8271459a33",18:"03a42eb1f63e0b2b0c15",19:"603551e77bacadc3aa95",20:"dffacded4647c010ae5c",21:"695f42e43dec64c6ac10",22:"8fa7151b31b97a62cc60",23:"0f5e09018b293701b277"}[e]+".1557916290126.js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var a=r[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return o.onerror=o.onload=d,t.appendChild(o),n},c.m=e,c.c=n,c.d=function(e,a,n){c.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},c.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(a,"a",a),a},c.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},c.p="./",c.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.ab21900ed4c0cb74e6bd.1557916290126.js.map
\ No newline at end of file
...@@ -9,7 +9,7 @@ let local = ''; ...@@ -9,7 +9,7 @@ let local = '';
let localLocal = window.location.origin; let localLocal = window.location.origin;
// let host = window.location.host; // let host = window.location.host;
if (localLocal.indexOf('gicdev.demogic.com') != -1 || localLocal.indexOf('localhost') != -1) { if (localLocal.indexOf('gicdev.demogic.com') != -1 || localLocal.indexOf('localhost') != -1) {
local = 'https://www.gicdev.com'; local = 'http://gicdev.demogic.com';
// protocol = protocol == 'http:' ? 'https:' : ''; // protocol = protocol == 'http:' ? 'https:' : '';
} else { } else {
local = localLocal; local = localLocal;
...@@ -53,13 +53,6 @@ Vue.axios.interceptors.response.use( ...@@ -53,13 +53,6 @@ Vue.axios.interceptors.response.use(
} }
); );
// var localhost = window.location.protocol +'//'+ window.location.host
// log(localhost)
// let base = local + '/gicweb/cloudweb/';
// const timeout = 15000;
// let token = ''; //sessionStorage.getItem('user');
/* /*
* *
* 统一 get 请求方法 * 统一 get 请求方法
...@@ -142,27 +135,6 @@ export const postForm = (url, params) => { ...@@ -142,27 +135,6 @@ export const postForm = (url, params) => {
method: 'post', method: 'post',
url: `${local}${url}`, url: `${local}${url}`,
data: params, data: params,
// params: params,
// paramsSerializer: function(params) {
// return QS.stringify(params, {arrayFormat: 'brackets'})
// },
// transformRequest: [function (data) {
// // Do whatever you want to transform the data
// log(data)
// data = JSON.stringify(data)
// return data;
// }],
// transformRequest: [
// function (data) { // 解决传递数组变成对象的问题
// Object.keys(data).forEach((key) => {
// if ((typeof data[key]) === 'object') {
// data[key] = JSON.stringify(data[key]) // 这里必须使用内置JSON对象转换
// }
// })
// data = qs.stringify(data) // 这里必须使用qs库进行转换
// return data
// }
// ],
headers: {} //'content-type': 'application/x-www-form-urlencoded'multipart/form-data{"token": token} headers: {} //'content-type': 'application/x-www-form-urlencoded'multipart/form-data{"token": token}
}); });
}; };
...@@ -176,6 +148,17 @@ export const putRequest = (url, params) => { ...@@ -176,6 +148,17 @@ export const putRequest = (url, params) => {
}); });
}; };
export const putUpload = (url, params) => {
return Vue.axios({
method: 'put',
url: `${local}${url}`,
data: params,
headers: {
'Content-Type': 'multipart/form-data'
}
});
};
export const deleteRequest = (url, params) => { export const deleteRequest = (url, params) => {
return Vue.axios({ return Vue.axios({
method: 'delete', method: 'delete',
......
...@@ -52,14 +52,14 @@ components: { ...@@ -52,14 +52,14 @@ components: {
</div> </div>
</template> </template>
<script> <script>
import { getRequest, postRequest } from '@/api/api'; import { getRequest, putRequest } from '@/api/api';
export default { export default {
name: 'tableList', name: 'tableList',
props: { props: {
activeTab: { activeTab: {
type: String, type: String,
default() { default() {
return 'android'; return '';
} }
} }
}, },
...@@ -79,9 +79,25 @@ export default { ...@@ -79,9 +79,25 @@ export default {
loading: false loading: false
}; };
}, },
filters: {
formatTime(data) {
let date = new Date(data);
let month = date.getMonth() + 1;
let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
let newMonth = month < 10 ? '0' + month : month;
let hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
let minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
let seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
return `${date.getFullYear()}-${newMonth}-${day} ${hours}:${minutes}:${seconds}`;
}
},
watch: { watch: {
activeTab(newDate) { activeTab(newDate) {
let that = this; let that = this;
console.log(2, newDate);
if (!newDate) {
return false;
}
if (newDate == 'android') { if (newDate == 'android') {
that.platform = '0'; that.platform = '0';
that.getData(); that.getData();
...@@ -93,12 +109,15 @@ export default { ...@@ -93,12 +109,15 @@ export default {
}, },
mounted() { mounted() {
let that = this; let that = this;
if (that.activeTab == 'android') { console.log(1, that.activeTab);
that.platform = '0'; if (that.activeTab != '') {
that.getData(); if (that.activeTab == 'android') {
} else { that.platform = '0';
that.platform = '1'; that.getData();
that.getData(); } else {
that.platform = '1';
that.getData();
}
} }
}, },
methods: { methods: {
...@@ -109,6 +128,20 @@ export default { ...@@ -109,6 +128,20 @@ export default {
this.$router.push(path); this.$router.push(path);
}, },
/* *
* 格式化时间戳
*/
formatTime(data) {
let date = new Date(data);
let month = date.getMonth() + 1;
let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
let newMonth = month < 10 ? '0' + month : month;
let hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
let minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
let seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
return `${date.getFullYear()}-${newMonth}-${day} ${hours}:${minutes}:${seconds}`;
},
/** /**
* 改变状态 * 改变状态
* *
...@@ -116,6 +149,7 @@ export default { ...@@ -116,6 +149,7 @@ export default {
changeStatus(index, row) { changeStatus(index, row) {
let that = this; let that = this;
if (row.status) { if (row.status) {
row.status = false;
that that
.$confirm('确认启用该更新?启用后,此更新将可用', '提示', { .$confirm('确认启用该更新?启用后,此更新将可用', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -123,13 +157,14 @@ export default { ...@@ -123,13 +157,14 @@ export default {
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
that.postStatus(row); that.postStatus(index, row);
}) })
.catch(() => { .catch(() => {
// 重置状态 // 重置状态
row.status = false; row.status = false;
}); });
} else { } else {
row.status = true;
that that
.$confirm('确认关闭该更新?关闭后,此更新将不可用', '提示', { .$confirm('确认关闭该更新?关闭后,此更新将不可用', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -137,7 +172,7 @@ export default { ...@@ -137,7 +172,7 @@ export default {
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
that.postStatus(row); that.postStatus(index, row);
}) })
.catch(() => { .catch(() => {
// 重置状态 // 重置状态
...@@ -145,14 +180,14 @@ export default { ...@@ -145,14 +180,14 @@ export default {
}); });
} }
}, },
postStatus(row) { postStatus(index, row) {
let that = this; let that = this;
let para = { let para = {
requestProject: that.requestProject, requestProject: that.requestProject,
packageId: row.packageId, packageId: row.packageId,
status: row.status status: !!row.status ? '2' : '1'
}; };
postRequest(`/gic-haoban-operation/app-package/${row.packageId}/${row.status}`, para) putRequest(`/gic-haoban-operation/app-package/${row.packageId}/${para.status}`, para)
.then(res => { .then(res => {
let data = res.data; let data = res.data;
if (data.errorCode == 0) { if (data.errorCode == 0) {
...@@ -160,6 +195,7 @@ export default { ...@@ -160,6 +195,7 @@ export default {
message: '更改成功', message: '更改成功',
type: 'success' type: 'success'
}); });
row.status = para.status == 1 ? true : false;
} else { } else {
that.$message.error(data.message); that.$message.error(data.message);
} }
...@@ -181,7 +217,7 @@ export default { ...@@ -181,7 +217,7 @@ export default {
* *
*/ */
toDownload(index, row) { toDownload(index, row) {
window.open(''); window.open(row.url);
}, },
/** /**
...@@ -215,7 +251,7 @@ export default { ...@@ -215,7 +251,7 @@ export default {
packageId: row.packageId, packageId: row.packageId,
status: 0 status: 0
}; };
postRequest(`/gic-haoban-operation/app-package/${row.packageId}/0`, para) putRequest(`/gic-haoban-operation/app-package/${row.packageId}/0`, para)
.then(res => { .then(res => {
let data = res.data; let data = res.data;
if (data.errorCode == 0) { if (data.errorCode == 0) {
...@@ -241,7 +277,7 @@ export default { ...@@ -241,7 +277,7 @@ export default {
that.loading = true; that.loading = true;
let para = { let para = {
requestProject: that.requestProject, requestProject: that.requestProject,
platform: that.platform platform: !!that.$route.query.activeTab ? (that.$route.query.activeTab == 'ios' ? '1' : '0') : that.platform
}; };
getRequest(`/gic-haoban-operation/app-packages/${that.platform}`, para) getRequest(`/gic-haoban-operation/app-packages/${that.platform}`, para)
.then(res => { .then(res => {
...@@ -251,6 +287,7 @@ export default { ...@@ -251,6 +287,7 @@ export default {
if (!!data.result && !!data.result.length) { if (!!data.result && !!data.result.length) {
data.result.forEach(ele => { data.result.forEach(ele => {
ele.status = ele.status == 1 ? true : false; ele.status = ele.status == 1 ? true : false;
ele.updateTime = that.formatTime(ele.updateTime);
}); });
} }
that.tableData = !!data.result ? data.result : []; that.tableData = !!data.result ? data.result : [];
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="detail-content"> <div class="detail-content">
<el-form :model="formData" :rules="rules" ref="ruleForm" label-width="110px"> <el-form :model="formData" :rules="rules" ref="ruleForm" label-width="110px">
<el-form-item label="版本号" prop="version"> <el-form-item label="版本号" prop="version">
<limitInput :inputWidth="325" :inputValue.sync="formData.version" :holder="'请输入版本号'" :getByType="'word'" :maxLength="15"></limitInput> <limitInput :inputWidth="325" :inputValue.sync="formData.version" :holder="'请输入版本号(如: 1.0.1)'" :getByType="'word'" :maxLength="15"></limitInput>
</el-form-item> </el-form-item>
<el-form-item label="标题" prop="title"> <el-form-item label="标题" prop="title">
<limitInput :inputWidth="325" :inputValue.sync="formData.title" :holder="'请输入标题'" :getByType="'word'" :maxLength="15"></limitInput> <limitInput :inputWidth="325" :inputValue.sync="formData.title" :holder="'请输入标题'" :getByType="'word'" :maxLength="15"></limitInput>
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
<el-form-item label="版本内容" prop="content"> <el-form-item label="版本内容" prop="content">
<limit-textarea :inputWidth="325" :inputValue.sync="formData.content" :holder="'请输入版本内容'" :getByType="'word'" :maxLength="150"> </limit-textarea> <limit-textarea :inputWidth="325" :inputValue.sync="formData.content" :holder="'请输入版本内容'" :getByType="'word'" :maxLength="150"> </limit-textarea>
</el-form-item> </el-form-item>
<el-form-item label="安装包上传" prop="installName" v-if="$route.query.addType == 'android'"> <el-form-item label="安装包上传" prop="url" v-if="$route.query.activeTab == 'android'">
<el-upload class="avatar-uploader" action="/gic-haoban-operation/app-package/upload" :show-file-list="false" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload"> <el-upload class="avatar-uploader" accept=".apk" :show-file-list="false" :http-request="uploadFile" :before-upload="beforeAvatarUpload">
<el-button size="small" type="primary"><i class="el-icon-upload p-r-6"></i>上 传</el-button><span class="p-l-10">{{ apkName }}</span> <el-button size="small" :disabled="upload.disable" type="primary" :loading="upload.loading"><i class="el-icon-upload p-r-6"></i>上 传</el-button><span class="p-l-10">{{ apkName }}</span>
<div slot="tip" class="el-upload__tip">仅支持 apk 格式</div> <div slot="tip" class="el-upload__tip">仅支持 apk 格式</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
...@@ -42,32 +42,35 @@ ...@@ -42,32 +42,35 @@
import navBread from '@/components/haoban/nav-bread.vue'; import navBread from '@/components/haoban/nav-bread.vue';
import limitInput from '@/components/haoban/limit-input.vue'; import limitInput from '@/components/haoban/limit-input.vue';
import limitTextarea from '@/components/haoban/limit-textarea.vue'; import limitTextarea from '@/components/haoban/limit-textarea.vue';
import { getRequest } from '@/api/api'; import { getRequest, putRequest, putUpload } from '@/api/api';
export default { export default {
name: 'tableList', name: 'tableList',
props: {
activeTab: {
type: String,
default() {
return 'android';
}
}
},
components: { components: {
navBread, navBread,
limitInput, limitInput,
limitTextarea limitTextarea
}, },
data() { data() {
let validateVersion = (rule, value, callback) => {
if (value === '') {
callback(new Error('请输入版本号'));
} else {
let reg = /^\d+(\.\d+){2}\w*$/;
if (!reg.test(value)) {
callback(new Error('版本号格式不正确!'));
}
callback();
}
};
return { return {
requestProject: 'gic-bizdict', requestProject: 'gic-bizdict',
menuData: [ menuData: [
{ {
name: this.$route.query.addType == 'android' ? '安卓配置' : 'iOS配置', name: this.$route.query.activeTab == 'android' ? '安卓配置' : 'iOS配置',
path: `/versionList?activeTab=${this.$route.query.addType}&name=${this.$route.query.name}&icon=${this.$route.query.icon}&code=${this.$route.query.code}&tabId=${this.$route.query.tabId}` path: `/versionList?activeTab=${this.$route.query.activeTab}&name=${this.$route.query.name}&icon=${this.$route.query.icon}&code=${this.$route.query.code}&tabId=${this.$route.query.tabId}`
}, },
{ {
name: this.$route.query.addType == 'android' ? '新增安卓配置' : '新增iOS配置', name: this.$route.query.activeTab == 'android' ? '新增安卓配置' : '新增iOS配置',
path: '' path: ''
} }
], ],
...@@ -77,16 +80,13 @@ export default { ...@@ -77,16 +80,13 @@ export default {
title: '', title: '',
content: '', content: '',
forcedUpdating: '0', // 默认否 forcedUpdating: '0', // 默认否
recentEdit: '',
lastDate: '',
status: '2', // 默认否 status: '2', // 默认否
installName: '' url: ''
}, },
rules: { rules: {
version: [ version: [
{ {
required: true, validator: validateVersion,
message: '请输入版本号',
trigger: 'blur' trigger: 'blur'
} }
], ],
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
trigger: 'blur' trigger: 'blur'
} }
], ],
installName: [ url: [
{ {
required: true, required: true,
message: '请上传安装包', message: '请上传安装包',
...@@ -126,24 +126,25 @@ export default { ...@@ -126,24 +126,25 @@ export default {
} }
] ]
}, },
loading: false loading: false,
}; upload: {
}, loading: false,
watch: { disable: false
activeTab(newDate) {
if (newDate == 'android') {
this.getData();
} else {
this.getData();
} }
} };
}, },
mounted() { mounted() {
let that = this; let that = this;
if (that.activeTab == 'android') { that.formData.packageId = that.$route.query.packageId;
that.getData(); if (that.$route.query.activeTab == 'android') {
if (that.formData.packageId) {
that.getData();
}
} else { } else {
that.getData(); if (that.formData.packageId) {
that.getData();
}
} }
}, },
methods: { methods: {
...@@ -161,15 +162,52 @@ export default { ...@@ -161,15 +162,52 @@ export default {
console.log(res, file); console.log(res, file);
}, },
beforeAvatarUpload(file) { beforeAvatarUpload(file) {
console.log(file);
let that = this; let that = this;
that.apkName = file.name; that.apkName = file.name;
const isApk = file.type === 'application/vnd.android.package-archive'; const isApk = file.type === 'application/vnd.android.package-archive';
const isLt2M = file.size / 1024 / 1024 < 2000; const isLt1G = file.size / 1024 / 1024 <= 1024;
if (!isLt2M) { if (!isApk) {
that.$message.error('上传头像图片大小不能超过 2000MB!'); that.$message.error('上传文件必须是 apk 格式!');
}
if (!isLt1G) {
that.$message.error('上传文件大小不能超过 1GB!');
} }
return isApk && isLt2M; return isApk && isLt1G;
},
async uploadFile(params) {
let that = this;
that.upload.loading = true;
that.upload.disable = true;
// 通过 FormData 对象上传文件
var formData = new FormData();
const fileObj = params.file;
formData.append('file', fileObj);
that.putUpload(formData);
},
putUpload(formData) {
let that = this;
putUpload('/gic-haoban-operation/app-package/upload', formData)
.then(res => {
let data = res.data;
that.upload.loading = false;
that.upload.disable = false;
if (data.errorCode == 0) {
that.$message({
message: '上传成功!',
type: 'success'
});
that.formData.url = '//' + data.result;
} else {
that.$message.error(data.message);
}
})
.catch(function(error) {
that.upload.loading = false;
that.upload.disable = false;
that.$message.error(error);
});
}, },
/** /**
...@@ -208,14 +246,26 @@ export default { ...@@ -208,14 +246,26 @@ export default {
postAdd() { postAdd() {
let that = this; let that = this;
let para = { let para = {
requestProject: that.requestProject requestProject: that.requestProject,
title: that.formData.title,
content: that.formData.content,
version: that.formData.version,
forcedUpdating: that.formData.forcedUpdating,
status: that.formData.status,
platform: that.$route.query.activeTab == 'android' ? '0' : '1',
url: that.formData.url,
packageId: that.formData.packageId
}; };
getRequest('/gic-bizdict/category/tree', para) putRequest('/gic-haoban-operation/app-package/save', para)
.then(res => { .then(res => {
let data = res.data; let data = res.data;
that.loading = false; that.loading = false;
if (data.errorCode == 0) { if (data.errorCode == 0) {
// that.tableData = data.result ? data.result : []; that.$message({
message: '保存成功!',
type: 'success'
});
that.changeRoute(that.menuData[0].path);
} else { } else {
that.$message.error(data.message); that.$message.error(data.message);
} }
...@@ -234,14 +284,21 @@ export default { ...@@ -234,14 +284,21 @@ export default {
let that = this; let that = this;
that.loading = true; that.loading = true;
let para = { let para = {
requestProject: that.requestProject requestProject: that.requestProject,
packageId: that.formData.packageId
}; };
getRequest('/gic-bizdict/category/tree', para) getRequest(`/gic-haoban-operation/app-package/${that.formData.packageId}`, para)
.then(res => { .then(res => {
let data = res.data; let data = res.data;
that.loading = false; that.loading = false;
if (data.errorCode == 0) { if (data.errorCode == 0) {
// that.tableData = data.result ? data.result : []; data.result.forcedUpdating = String(data.result.forcedUpdating);
data.result.status = String(data.result.status);
that.formData = data.result ? data.result : [];
if (!!data.result.url) {
let urlArr = data.result.url.split('/');
that.apkName = urlArr[urlArr.length - 1];
}
} else { } else {
that.$message.error(data.message); that.$message.error(data.message);
} }
......
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
this.headerName = this.$route.query.name; this.headerName = this.$route.query.name;
this.headerCode = this.$route.query.code; this.headerCode = this.$route.query.code;
this.activeSelTab = this.$route.query.tabId; this.activeSelTab = this.$route.query.tabId;
this.getMenuTree(); // this.getMenuTree();
}, },
// 获取左侧 // 获取左侧
getMenuTree() { getMenuTree() {
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
<el-form-item label="版本内容"> <el-form-item label="版本内容">
<span>{{ formData.content }}</span> <span>{{ formData.content }}</span>
</el-form-item> </el-form-item>
<el-form-item label="安装包上传" v-if="activeTab == 'android'"> <el-form-item label="安装包上传" v-if="$route.query.activeTab == 'android'">
<span>{{ formData.installName }}</span> <span>{{ formData.apkName }}</span>
</el-form-item> </el-form-item>
<el-form-item label="强制更新"> <el-form-item label="强制更新">
<span>{{ formData.forcedUpdating == 1 ? '是' : '否' }}</span> <span>{{ formData.forcedUpdating == 1 ? '是' : '否' }}</span>
...@@ -36,14 +36,6 @@ import navBread from '@/components/haoban/nav-bread.vue'; ...@@ -36,14 +36,6 @@ import navBread from '@/components/haoban/nav-bread.vue';
import { getRequest } from '@/api/api'; import { getRequest } from '@/api/api';
export default { export default {
name: 'tableList', name: 'tableList',
props: {
activeTab: {
type: String,
default() {
return 'android';
}
}
},
components: { components: {
navBread navBread
}, },
...@@ -63,30 +55,21 @@ export default { ...@@ -63,30 +55,21 @@ export default {
formData: { formData: {
packageId: '', packageId: '',
version: '', version: '',
title: '新版本', title: '',
content: '', content: '',
forcedUpdating: '', forcedUpdating: '',
operatorName: '', operatorName: '',
updateTime: '2019-04-04 13:45:54', updateTime: '',
status: '', status: '',
installName: '2.0.1版本.apk' apkName: ''
}, },
loading: false loading: false
}; };
}, },
watch: {
activeTab(newDate) {
if (newDate == 'android') {
this.getData();
} else {
this.getData();
}
}
},
mounted() { mounted() {
let that = this; let that = this;
that.formData.packageId = that.$route.query.packageId; that.formData.packageId = that.$route.query.packageId;
if (that.activeTab == 'android') { if (that.$route.query.activeTab == 'android') {
that.getData(); that.getData();
} else { } else {
that.getData(); that.getData();
...@@ -99,6 +82,19 @@ export default { ...@@ -99,6 +82,19 @@ export default {
changeRoute(path) { changeRoute(path) {
this.$router.push(path); this.$router.push(path);
}, },
/* *
* 格式化时间戳
*/
formatTime(data) {
let date = new Date(data);
let month = date.getMonth() + 1;
let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
let newMonth = month < 10 ? '0' + month : month;
let hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
let minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
let seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
return `${date.getFullYear()}-${newMonth}-${day} ${hours}:${minutes}:${seconds}`;
},
/** /**
* 获取数据 * 获取数据
...@@ -116,7 +112,14 @@ export default { ...@@ -116,7 +112,14 @@ export default {
let data = res.data; let data = res.data;
that.loading = false; that.loading = false;
if (data.errorCode == 0) { if (data.errorCode == 0) {
if (!!data.result.updateTime) {
data.result.updateTime = that.formatTime(data.result.updateTime);
}
that.formData = data.result ? data.result : {}; that.formData = data.result ? data.result : {};
if (!!data.result.url) {
let urlArr = data.result.url.split('/');
that.formData.apkName = urlArr[urlArr.length - 1];
}
} else { } else {
that.$message.error(data.message); that.$message.error(data.message);
} }
......
...@@ -26,13 +26,15 @@ export default { ...@@ -26,13 +26,15 @@ export default {
data() { data() {
return { return {
requestProject: 'gic-bizdict', requestProject: 'gic-bizdict',
activeTab: 'android', activeTab: '',
}; };
}, },
mounted() { mounted() {
let that = this; let that = this;
if (that.$route.query.activeTab) { if (that.$route.query.activeTab && that.$route.query.activeTab !='undefined') {
that.activeTab = that.$route.query.activeTab; that.activeTab = that.$route.query.activeTab;
}else {
that.activeTab = 'android'
} }
}, },
methods: { methods: {
...@@ -54,7 +56,7 @@ export default { ...@@ -54,7 +56,7 @@ export default {
*/ */
toAddSet() { toAddSet() {
let that = this; let that = this;
that.changeRoute(`/addSet?addType=${that.activeTab}&name=${that.$route.query.name}&icon=${that.$route.query.icon}&code=${that.$route.query.code}&tabId=${that.$route.query.tabId}`) that.changeRoute(`/addSet?activeTab=${that.activeTab}&name=${that.$route.query.name}&icon=${that.$route.query.icon}&code=${that.$route.query.code}&tabId=${that.$route.query.tabId}`)
} }
}, },
components: { components: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment