Files
starRiverProperty/frontend-source/decompiled/cwos-portal/static/js/62.459d866bc5e8f05562bd.js
T
反编译工作区 4f79e10bd6 chore: cleanup stray nested directories in frontend-source
Former-commit-id: 376f94edd602d3dfed1cbada6e08361ee7b08e73
2026-04-29 13:07:40 +08:00

1 line
12 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
webpackJsonp([62],{"0tZw":function(e,t,a){var n=a("NP7+");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("0682e8fa",n,!0)},"5lYz":function(e,t,a){"use strict";t.a={computed:{applicationTypeStore:function(){return this.$route.matched[1].meta.serviceCode}}}},"NP7+":function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n[data-v-1caa301f] .el-radio-button__orig-radio:checked + .el-radio-button__inner {\n background: #e4071e;\n border: 1px solid #e4071e;\n -webkit-box-shadow: 0 0 0 0;\n box-shadow: 0 0 0 0;\n}\n[data-v-1caa301f] .el-radio-button__orig-radio:checked + .el-radio-button__inner:hover {\n color: #fff;\n}\n[data-v-1caa301f] .el-radio-button__inner {\n height: 36px;\n line-height: 10px;\n border-radius: 0;\n}\n[data-v-1caa301f] .el-radio-button__inner:hover {\n color: #606266;\n}\n.warning-info[data-v-1caa301f] {\n font-size: 12px;\n color: #74777c;\n background: rgba(51, 153, 255, 0.1);\n height: 32px;\n line-height: 32px;\n padding: 0 10px;\n border-radius: 4px;\n margin: 20px 0 20px 0;\n}\n.demo-table-expand[data-v-1caa301f] {\n font-size: 0;\n}\n.demo-table-expand label[data-v-1caa301f] {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item[data-v-1caa301f] {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\n[data-v-1caa301f]\n.el-table--enable-row-transition\n.el-table__body\ntd:nth-child(1)\ndiv {\n display: none;\n}\n[data-v-1caa301f]\n.el-table--enable-row-transition\n.el-table__body\ntd:nth-child(2)\ndiv {\n margin-left: -40px;\n}\n[data-v-1caa301f] .el-table thead.has-gutter th:nth-child(2) {\n position: absolute;\n left: 10px;\n width: 1000px;\n}\n[data-v-1caa301f] .el-table__expanded-cell {\n background: #F4F5F6;\n padding: 15px 25px;\n}\n[data-v-1caa301f] .el-table__expanded-cell:hover {\n background: #F4F5F6 !important;\n}\n[data-v-1caa301f] .el-form-item__error--inline {\n position: static;\n width: 140px;\n}\n[data-v-1caa301f] .el-table__expand-icon .el-icon-arrow-right {\n display: none;\n}\n[data-v-1caa301f] .el-checkbox + .el-checkbox {\n margin-left: 0px !important;\n}\n[data-v-1caa301f] .el-checkbox {\n margin-right: 48px;\n}\n.word-limit-ctnr .word-limit[data-v-1caa301f] {\n bottom: -4px;\n right: -30px;\n}\n[data-v-1caa301f] .el-radio-button__inner:nth-child(2) {\n width: 126px;\n}\n[data-v-1caa301f] .el-table td:nth-child(2) div {\n left: -40px;\n position: relative;\n}\n[data-v-1caa301f] .el-button--primary:focus {\n background: #E4071E;\n border: 1px solid #E4071E;\n}\n",""])},dE3K:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("lHA8"),i=a.n(n),s=a("c/Tr"),o=a.n(s),r=a("hmNX"),l=a("Bv8y"),c=a("5lYz"),u=a("/W+i"),d={mixins:[l.a,c.a],data:function(){return{isOpen:!1,keyTableData:[],id:null,expands:[],ruleForm2:{password:""},dialogVisible:!1,cur:"",secretId:"",authId:null,service:null}},watch:{isOpen:function(){this.isOpen&&this.fetchData()}},created:function(){this.initAuth(),this.getStatus()},methods:{initAuth:function(){var e=this;this.$route.matched.forEach(function(t){t.meta&&t.meta.service&&(e.authId=t.meta.service.auth,e.service=t.meta.service)})},getStatus:function(){var e=this,t=this.applicationIdStore;r.a.detail(t).then(function(t){e.isOpen=!!t.authStatus&&{1:!0,2:!1}[t.authStatus]}).catch(function(t){e.$message.error(t.message)})},hideAS:function(e){this.keyTableData[e].AS=""},creatKey:function(){var e=this;if(this.keyTableData.length>=10)return this.$message.error("应用授权最多允许创建10组"),!1;var t={applicationName:this.applicationTypeStore,applicationId:this.applicationIdStore};r.a.creatKey(t).then(function(t){var a=[];t.data.totalList.forEach(function(e){a.push(e.bindValue)}),e.$set(t.data,"bindInfos",a),e.keyTableData.push(t.data),e.$message.success("成功")}).catch(function(t){e.$message.error(t.message)})},fetchData:function(){var e=this,t={bindType:1,bindValue:this.applicationIdStore};r.a.queryKeySecret(t).then(function(t){e.keyTableData=t.data,e.keyTableData.forEach(function(t){var a=[];t.extendList.forEach(function(e,t){a.push(e.bindValue)}),a=o()(new i.a(a)),e.$set(t,"bindInfos",a)})}).catch(function(t){e.$message.error(t.message)})},handleCheckedCitiesChange:function(){this.editChannel()},editChannel:function(){var e=this,t=[],a=!1;this.keyTableData.forEach(function(e){var n={};n.keySecretId=e.id,n.bindType=2,n.bindInfos=e.totalList.filter(function(t){return e.bindInfos.indexOf(t.bindValue)>-1}),0==n.bindInfos.length&&(a=!0),t.push(n)});var n={keySecretExts:t};r.a.keyAdd(n).then(function(t){a&&e.fetchData(),e.$message.success(t.data.message)})},disable:function(e){var t=this,a=this.$createElement;this.$msgbox({showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",title:"提示",message:a("div",null,[a("p",null,"是否确定要禁用该AKAS?"),a("p",null,"禁用之后,该AKAS将不可以继续使用")])}).then(function(){t.$set(e,"loading",!0);var a={authKey:e.authKey,id:e.id,authStatus:2};r.a.enableKey(a).then(function(a){t.$set(e,"loading",!1),t.fetchData(),t.$message.success(a.message)})})},enable:function(e){var t=this,a={authKey:e.authKey,id:e.id,authStatus:1};r.a.enableKey(a).then(function(a){t.$set(e,"loading",!1),t.fetchData(),t.$message.success(a.message)})},del:function(e){var t=this;this.$confirm("确认删除此秘钥吗?","确认删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.a.delKey(e.id).then(function(e){t.$message.success(e.message),t.fetchData()}).catch(function(e){t.$message.error(e.message)})})},authEanble:function(){var e=this,t=this.applicationIdStore;this.isOpen?r.a.openAuthStatus(t).then(function(t){t.success?e.$message.success("应用授权开启成功"):e.$message.error("应用授权开启失败")}).catch(function(t){e.$message.error(t.message)}):r.a.closeAuthStatus(t).then(function(t){t.success?e.$message.success("应用授权关闭成功"):e.$message.error("应用授权关闭失败")}).catch(function(t){e.$message.error(t.message)})},open:function(e){if(0==this.expands.length)this.expands.push(this.keyTableData[e].id);else if(this.expands.includes(this.keyTableData[e].id)){var t=this.expands.indexOf(this.keyTableData[e].id);this.expands.splice(t,1)}else this.expands.push(this.keyTableData[e].id)},getRowKeys:function(e){return e.id},showAS:function(e,t){this.dialogVisible=!0,this.cur=t,this.secretId=e.id,this.ruleForm2.password=""},checkPassword:function(e){var t=this;this.$refs[e].validate(function(a){a&&(r.a.checkPassword({secretId:t.secretId,password:Object(u.a)(t.ruleForm2.password)}).then(function(e){t.$set(t.keyTableData[t.cur],"AS",e.data),t.dialogVisible=!1}).catch(function(e){t.$message.error(e.message)}),t.$refs[e].resetFields())})}}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{staticClass:"step-two"},[a("el-radio-group",{staticStyle:{"margin-bottom":"-4px"},on:{change:e.authEanble},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[a("el-radio-button",{attrs:{label:!0}},[e._v("应用授权开启")]),e._v(" "),a("el-radio-button",{attrs:{label:!1}},[e._v("关闭")])],1),e._v(" "),a("p",{staticClass:"warning-info"},[a("el-icon",{staticClass:"el-icon-warning"}),e._v("\n   应用授权开启后,新建授权将会自动生成一组授权AK,AS;访问此应用,必须通过此AK,AS进行鉴权,授权关闭,则访问此应用无需鉴权\n ")],1),e._v(" "),e.isOpen?a("div",[a("el-button",{directives:[{name:"auth",rawName:"v-auth",value:{authId:e.authId,id:e.service.addAuth},expression:"{ authId, id: service.addAuth}"}],staticStyle:{"margin-top":"30px","margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.creatKey}},[e._v("新建授权")]),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.keyTableData,"row-key":e.getRowKeys,"expand-row-keys":e.expands}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{display:"inline-block","margin-bottom":"10px"}},[e._v("渠道授权:")]),e._v(" "),a("el-checkbox-group",{staticStyle:{display:"inline-block"},on:{change:e.handleCheckedCitiesChange},model:{value:t.row.bindInfos,callback:function(a){e.$set(t.row,"bindInfos",a)},expression:"scope.row.bindInfos"}},e._l(t.row.totalList,function(t){return a("el-checkbox",{key:t.bindValue,attrs:{label:t.bindValue}},[e._v("\n "+e._s(t.bindValueName))])}),1)]}}],null,!1,3580516684)}),e._v(" "),a("el-table-column",{attrs:{label:"APP Key /App Secret",prop:"authKey","min-width":"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("AK:  "+e._s(t.row.authKey))]),e._v(" "),a("p",[e._v("\n AS:  \n "),t.row.AS?a("span",[e._v(e._s(t.row.AS))]):a("span",[e._v("***************")]),e._v("    \n "),t.row.AS?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.hideAS(t.$index)}}},[e._v("隐藏")]):a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.showAS(t.row,t.$index)}}},[e._v("显示\n ")])],1)]}}],null,!1,2664064359)}),e._v(" "),a("el-table-column",{attrs:{label:"更新时间",prop:"updateTime"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("datetime")(t.row.updateTime)))]}}],null,!1,4277226209)}),e._v(" "),a("el-table-column",{attrs:{label:"状态",prop:"authStatus"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("status-point",{attrs:{disabled:2==e.row.authStatus,value:e.row.authStatus}})]}}],null,!1,11104963)}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"auth",rawName:"v-auth",value:{authId:e.authId,id:e.service.channelAuth},expression:"{ authId, id: service.channelAuth}"}],attrs:{type:"text",size:"small"},on:{click:function(a){return e.open(t.$index)}}},[e._v("渠道授权")]),e._v(" "),2==t.row.authStatus?a("el-button",{directives:[{name:"auth",rawName:"v-auth",value:{authId:e.authId,id:e.service.enalble},expression:"{ authId, id: service.enalble}"}],attrs:{type:"text",size:"small"},on:{click:function(a){return e.enable(t.row)}}},[e._v("启用")]):a("el-button",{directives:[{name:"auth",rawName:"v-auth",value:{authId:e.authId,id:e.service.enalble},expression:"{ authId, id: service.enalble}"}],attrs:{type:"text",size:"small"},on:{click:function(a){return e.disable(t.row)}}},[e._v("禁用")]),e._v(" "),2==t.row.authStatus?a("el-button",{directives:[{name:"auth",rawName:"v-auth",value:{authId:e.authId,id:e.service.remove},expression:"{ authId, id: service.remove}"}],staticStyle:{color:"rgb(250, 85, 85)"},attrs:{type:"text",size:"small"},on:{click:function(a){return e.del(t.row)}}},[e._v("删除")]):e._e()]}}],null,!1,1846261172)})],1)],1):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"密码确认",visible:e.dialogVisible,width:"500px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"ruleForm2",staticClass:"demo-ruleForm password-input",attrs:{model:e.ruleForm2,"status-icon":"","label-width":"100px"}},[a("el-form-item",{staticStyle:{width:"85%"},attrs:{label:"密码",prop:"password",rules:[{required:!0,message:"密码不能为空"}]}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.checkPassword("ruleForm2")}},model:{value:e.ruleForm2.password,callback:function(t){e.$set(e.ruleForm2,"password",t)},expression:"ruleForm2.password"}}),e._v(" "),a("p",{staticStyle:{color:"#e9394b","font-size":"12px","margin-left":"3px"}},[e._v("秘钥类信息查看需要重新认证系统登录密码")])],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.checkPassword("ruleForm2")}}},[e._v("确 定")]),e._v(" "),a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")])],1)],1)],1)},staticRenderFns:[]};var p=a("VU/8")(d,h,!1,function(e){a("0tZw")},"data-v-1caa301f",null);t.default=p.exports}});