Files
starRiverProperty/frontend-source/decompiled/cwos-portal/static/js/10.ded833a4fadfad19c31f.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
4.0 KiB
JavaScript

webpackJsonp([10],{CTnV:function(e,t,n){var r=n("rBpl");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n("rjj0")("6dafdf94",r,!0)},CeMq:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},PlrH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("Xxa5"),c=n.n(r),o=n("exGp"),a=n.n(o),s=n("XmFl"),i=n("rRm/"),u={data:function(){return{activeApp:"first",baseList:[],sceneList:[],bases:[],scenes:[],loaded:!1}},props:{id:String},computed:{noApps:function(){var e=this.baseList.some(function(e){return e.service&&e.service.length>0}),t=this.sceneList.some(function(e){return e.service&&e.service.length>0});return this.loaded&&!e&&!t}},created:function(){this.fetchData()},components:{cGroup:s.a},methods:{fetchCurrent:function(){var e=[];return this.baseList.forEach(function(t){e=e.concat(t.checkedCodes)}),this.sceneList.forEach(function(t){e=e.concat(t.checkedCodes)}),e},fetchData:function(){var e=this;return a()(c.a.mark(function t(){var n,r,o;return c.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.apps(e.id);case 2:(n=t.sent).length>1&&(r=n[0].group,o=n[1].group,e.id||(o.forEach(function(e){e.checkedCodes=[]}),r.forEach(function(e){e.checkedCodes=[]})),e.baseList=r,e.sceneList=o,e.loaded=!0,e.noApps&&e.$emit("noApp"));case 4:case"end":return t.stop()}},t,e)}))()}}},d={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-tabs",{model:{value:e.activeApp,callback:function(t){e.activeApp=t},expression:"activeApp"}},[n("el-tab-pane",{attrs:{label:"基础应用",name:"first"}},[e._l(e.baseList,function(t,r){return[n("cGroup",{key:r,attrs:{config:{title:t.groupName,key:"name",value:"serviceCode"},optionData:t.service,showCheckAll:"",showToggle:""},model:{value:t.checkedCodes,callback:function(n){e.$set(t,"checkedCodes",n)},expression:"item.checkedCodes"}})]})],2),e._v(" "),n("el-tab-pane",{attrs:{label:"场景应用",name:"second"}},[e._l(e.sceneList,function(t,r){return[n("cGroup",{key:r,attrs:{config:{title:t.groupName,key:"name",value:"serviceCode"},optionData:t.service,showCheckAll:"",showToggle:""},model:{value:t.checkedCodes,callback:function(n){e.$set(t,"checkedCodes",n)},expression:"item.checkedCodes"}})]})],2)],1)],1)},staticRenderFns:[]};var p={data:function(){return{createdLoading:!1,editId:this.$route.query.id,noApp:!1}},components:{choose:n("VU/8")(u,d,!1,function(e){n("YdrN")},"data-v-23284d2e",null).exports,noApp:n("WLhh").a},methods:{handleConfirm:function(){var e=this;return a()(c.a.mark(function t(){var n;return c.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$confirm("是否确定本次应用修改?确定之后,用户将按照最新配置使用","确认修改",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 2:return t.prev=2,e.createdLoading=!0,n=e.$refs.choose.fetchCurrent(),t.next=7,i.a.changeApp(e.editId,n);case 7:e.$message.success("修改成功"),e.$router.push({name:"enterpriseIndex"}),t.next=13;break;case 11:t.prev=11,t.t0=t.catch(2);case 13:return t.prev=13,e.createdLoading=!1,t.finish(13);case 16:case"end":return t.stop()}},t,e,[[2,11,13,16]])}))()}}},l={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[e.noApp?[n("noApp",{staticStyle:{"margin-top":"12%"},attrs:{tip:"暂无应用,请先发布应用"}})]:[n("el-card",{attrs:{shadow:"never"}},[n("choose",{ref:"choose",attrs:{id:e.editId},on:{noApp:function(t){e.noApp=!0}}})],1),e._v(" "),n("fixed-bottom",[n("el-row",[n("el-button",{attrs:{type:"primary",loading:e.createdLoading},on:{click:e.handleConfirm}},[e._v("确定")]),e._v(" "),n("el-button",{on:{click:function(t){return e.$router.go(-1)}}},[e._v("取消")])],1)],1)]],2)},staticRenderFns:[]};var f=n("VU/8")(p,l,!1,function(e){n("CTnV")},"data-v-77046e0d",null);t.default=f.exports},YdrN:function(e,t,n){var r=n("CeMq");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n("rjj0")("7684ab30",r,!0)},rBpl:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])}});