Files
starRiverProperty/frontend/decompiled/cwos-portal/static/js/6.76d3cf8cac7e4fc8d8ca.js
T
hpd840321 7b2bd307f1 Initial commit: reorganized source tree
- backend/: 13 Maven modules (cw-elevator-application, cloudwalk-cloud, intelligent-cwoscomponent, ninca-crk, etc.)
- frontend/: 4 Vue projects (elevator-front, cwos-portal, alarm-front, front_acs) + decompiled + scripts
- scripts/: build, test-env, tools (Docker Compose, service templates, API parity)
- docs/: AGENTS.md, superpowers specs, architecture docs
- .gitignore: standard Java/Maven exclusions

Moved from legacy maven-*/ root layout to backend/ organized structure.
2026-05-09 09:56:45 +08:00

1 line
9.5 KiB
JavaScript

webpackJsonp([6],{"0je0":function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"",""])},"6Ddt":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),i=a.n(n),s=a("exGp"),o=a.n(s),r=a("SR6C"),c=a("fZjL"),l=a.n(c),p=a("BO1k"),h=a.n(p);function d(t){var e={};return t.forEach(function(t){var a=e[t.applicationId];a?a.push(t.apiId):e[t.applicationId]=[t.apiId]}),l()(e).map(function(t){return{applicationId:t,apiIds:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],a={},n=!0,i=!1,s=void 0;try{for(var o,r=h()(t);!(n=(o=r.next()).done);n=!0){var c=o.value;a[c]||(e.push(c),a[c]=1)}}catch(t){i=!0,s=t}finally{try{!n&&r.return&&r.return()}finally{if(i)throw s}}return e}(e[t])}})}var u=a("0jG4"),f={data:function(){return{array:[],isExpand:!1}},props:{options:{type:Array,default:function(){return[]}},value:{default:""},label:{default:"label"},idKey:{default:"value"}},watch:{options:{immediate:!0,handler:function(t){t&&t.length?this.array=this.$clone(t):this.array=[]}},value:{immediate:!0,handler:function(t){var e=this;t&&this.array.length&&(this.array.forEach(function(a,n){t==a[e.idKey]?a.active=!0:a.active=!1}),this.$forceUpdate())}}},methods:{toggleExpand:function(){this.isExpand=!this.isExpand},choose:function(t){this.array.forEach(function(t){t.active=!1}),t.active=!0,this.$forceUpdate(),this.$emit("change",t)}},components:{}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-row",{staticClass:"tabs-wrap",class:{"tabs-wrap-expand":t.isExpand},attrs:{gutter:0}},[a("el-col",{attrs:{span:22}},t._l(t.array,function(e,n){return a("el-button",{key:n,attrs:{type:e.active?"primary":"default"},on:{click:function(a){return t.choose(e)}}},[t._v("\n "+t._s(e[t.label])+"\n ")])}),1),t._v(" "),a("el-col",{attrs:{span:2}},[t.array.length>5?[t.isExpand?a("el-button",{attrs:{type:"text"},on:{click:t.toggleExpand}},[t._v("收起\n "),a("i",{staticClass:"el-icon-arrow-up el-icon--right"})]):a("el-button",{attrs:{type:"text"},on:{click:t.toggleExpand}},[t._v("展开\n "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]:t._e()],2)],1)],1)},staticRenderFns:[]};var b={components:{radioBtn:a("VU/8")(f,v,!1,function(t){a("C4Jh")},"data-v-5b484284",null).exports},data:function(){return{appMenus:[],appTypes:[],apps:[],first:"",second:"",third:""}},created:function(){var t=this;Object(u.d)().then(function(e){t.getAllApps(e),t.appMenus=e,t.appMenus.length&&t.chooseFirst(t.appMenus[0])})},methods:{getAllApps:function(t){var e=[];t.forEach(function(t){t.group&&t.group.length&&t.group.forEach(function(t){e=e.concat(t.service||[])})});var a={};e.forEach(function(t){a[t.serviceCode]={data:[],id:t.applicationId}}),this.$emit("allApp",a)},chooseFirst:function(t){this.first=t.typeCode,this.appTypes=t.group,this.appTypes.length?this.chooseSecond(this.appTypes[0]):(this.second="",this.third="",this.apps=[])},chooseSecond:function(t){this.second=t.groupCode,this.apps=t.service,this.apps.length||(this.third=""),this.chooseApp(this.apps[0]||{serviceCode:t.groupCode}),this.$forceUpdate()},chooseApp:function(t){t?(this.third=t.serviceCode,this.$emit("change",this.third)):this.$emit("change")}}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{attrs:{"label-width":"100px","label-position":"left"}},[a("el-form-item",{attrs:{label:"所属应用:"}},[a("radioBtn",{attrs:{label:"typeName",idKey:"typeCode",value:t.first,options:t.appMenus},on:{change:t.chooseFirst}})],1),t._v(" "),a("el-form-item",{attrs:{label:"应用类型:"}},[a("radioBtn",{attrs:{label:"groupName",idKey:"groupCode",value:t.second,options:t.appTypes},on:{change:t.chooseSecond}})],1),t._v(" "),a("el-form-item",{attrs:{label:"具体应用:"}},[a("radioBtn",{attrs:{label:"name",idKey:"serviceCode",value:t.third,options:t.apps},on:{change:t.chooseApp}})],1)],1)],1)},staticRenderFns:[]};var m={components:{choose:a("VU/8")(b,g,!1,function(t){a("KhSC")},"data-v-53f80a0d",null).exports},data:function(){return{log:console.log,editableTabsValue:0,editableTabs:[],tableData:[],currentPage4:1,businessId:window.sessionStorage.getItem("businessId"),submitData:{businessId:window.sessionStorage.getItem("businessId"),applications:[]},loading:!1,checkedApi:[],apiKey:this.$route.query.apiKey,isExpand:!1,tabelHash:{},ready:!1,serviceCode:""}},created:function(){var t=this;this.fetchDetail().then(function(e){t.ready=!0})},methods:{handleAllApp:function(t){this.tabelHash=t},handleAppChange:function(t){this.serviceCode=t,this.queryDeviceInter(t)},fetchDetail:function(){var t=this;return o()(i.a.mark(function e(){var a,n,s;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.apiKey){e.next=13;break}return a={businessId:t.businessId,apiKey:t.apiKey},e.prev=2,e.next=5,r.a.getKeyDetail(a);case 5:n=e.sent,s=n.data.applicationApies,t.submitData.applications=d(s),t.checkedApi=s.map(function(t){return t.bind?t.apiId:""}),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(2);case 13:return e.abrupt("return");case 14:case"end":return e.stop()}},e,t,[[2,11]])}))()},toggle:function(t){var e=this;if(this.apiKey){var a=this.tabelHash[t].data,n=[];a.forEach(function(t,a){e.checkedApi.includes(t.id)&&n.push(a)}),setTimeout(function(){n.forEach(function(n){e.$refs["multipleTable"+t][0].toggleRowSelection(a[n],!0)}),e.loading=!1},100)}else this.loading=!1},queryDeviceInter:function(t){var e=this;if(this.tabelHash[t]&&!this.tabelHash[t].data.length){var a={serviceCode:t};this.loading=!0,r.a.queryDeviceInter(a).then(function(a){e.tabelHash[t].data=a.data,e.toggle(t),e.$forceUpdate()}).catch(function(t){e.loading=!1,e.$message.error(t.message)})}},handleSizeChange:function(t){},handleCurrentChange:function(t){},handleSelectionChange:function(t){var e=this.serviceCode,a=this.tabelHash[e].id,n=this.submitData.applications,i=t.map(function(t){return t.id});n.some(function(t){if(t.applicationId===a)return t.apiIds=i,!0})||n.push({applicationId:a,apiIds:i})},submit:function(){var t=this,e=this.$clone(this.submitData);e.applications=e.applications.filter(function(t){return t.apiIds.length}),this.apiKey&&(e.apiKey=this.apiKey),(this.apiKey?r.a.updateKey(e):r.a.creatKey(e)).then(function(e){t.$message.success(t.apiKey?"编辑成功":"新增授权成功"),t.$router.push("/authmanage/index")}).catch(function(e){t.$message.error(e.message)})},handleReset:function(){},toggleExpand:function(){this.isExpand=!this.isExpand}}},y={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container auth-add"},[a("el-card",{staticStyle:{"min-height":"100%"}},[a("div",{staticClass:"page-title"},[t._v("授权信息")]),t._v(" "),t.ready?a("choose",{on:{allApp:t.handleAllApp,change:t.handleAppChange}}):t._e(),t._v(" "),t._l(t.tabelHash,function(e,n){return a("div",{key:""+e.id},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"},{name:"show",rawName:"v-show",value:t.serviceCode===n,expression:"serviceCode === key"}],ref:"multipleTable"+n,refInFor:!0,staticStyle:{width:"100%"},attrs:{data:e.data,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),a("el-table-column",{attrs:{label:"接口名称",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.name))]}}],null,!0)}),t._v(" "),a("el-table-column",{attrs:{prop:"uri",label:"接口地址","show-overflow-tooltip":""}})],1),t._v(" "),t._e()],1)}),t._v(" "),a("fixed-bottom",[[a("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确定")]),t._v(" "),a("el-button",{on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")])]],2)],2)],1)},staticRenderFns:[]};var x=a("VU/8")(m,y,!1,function(t){a("WGTm")},"data-v-b715ccb4",null);e.default=x.exports},C4Jh:function(t,e,a){var n=a("ei94");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("72aa7947",n,!0)},KhSC:function(t,e,a){var n=a("0je0");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("63f575ca",n,!0)},WGTm:function(t,e,a){var n=a("rY3c");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("d2e3402a",n,!0)},ei94:function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.el-button[data-v-5b484284] {\n margin: 0 24px 12px 0;\n}\n.el-button.active[data-v-5b484284] {\n background: #3399ff;\n color: #ffffff;\n border-color: #3399ff;\n}\n.tabs-wrap[data-v-5b484284] {\n max-height: 48px;\n overflow: hidden;\n -webkit-transition: max-height 0.25s linear;\n transition: max-height 0.25s linear;\n}\n.tabs-wrap-expand[data-v-5b484284] {\n max-height: 300px;\n -webkit-transition: max-height 0.25s linear;\n transition: max-height 0.25s linear;\n}\n",""])},rY3c:function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.page-title[data-v-b715ccb4] {\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n color: #2a2c44;\n font-size: 16px;\n font-weight: 900;\n height: 50px;\n line-height: 50px;\n}\n.tabs-wrap .el-button[data-v-b715ccb4] {\n margin: 0 24px 12px 0;\n}\n.tabs-wrap .el-button.active[data-v-b715ccb4] {\n background: #3399ff;\n color: #ffffff;\n border-color: #3399ff;\n}\n.tabs-wrap .el-button.active[data-v-b715ccb4]:hover {\n opacity: 0.8;\n}\n.tabs-wrap[data-v-b715ccb4] {\n max-height: 48px;\n overflow: hidden;\n -webkit-transition: max-height 0.25s linear;\n transition: max-height 0.25s linear;\n}\n.tabs-wrap-expand[data-v-b715ccb4] {\n max-height: 300px;\n -webkit-transition: max-height 0.25s linear;\n transition: max-height 0.25s linear;\n}\n",""])}});