mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 17:00:30 +08:00
7b2bd307f1
- 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.
1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
webpackJsonp([245],{"/wV3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n("yfAY");var a=n("x1DN"),i=n("vMX1"),l=n("FNiI"),o={mixins:[{data:function(){return{idKey:"id",selectNum:0,multipleSelectionAll:[],multipleSelection:[]}},methods:{setSelectRow:function(e){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)||e){var t=this.idKey,n=[];this.multipleSelectionAll.forEach(function(e){n.push(e[t])});for(var a=0;a<this.tableData.length;a++)n.indexOf(this.tableData[a][t])>=0?this.$refs.table.toggleRowSelection(this.tableData[a],!0):this.$refs.table.toggleRowSelection(this.tableData[a],!1)}},emitAllData:function(){this.$emit("change",this.$clone(this.multipleSelectionAll))},changePageCoreRecordData:function(){var e=this.idKey,t=this;if(this.multipleSelectionAll.length<=0)return this.multipleSelectionAll=this.multipleSelection,void this.emitAllData();var n=[];this.multipleSelectionAll.forEach(function(t){n.push(t[e])});var a=[];this.multipleSelection.forEach(function(i){a.push(i[e]),n.indexOf(i[e])<0&&t.multipleSelectionAll.push(i)});var i=[];this.tableData.forEach(function(t){a.indexOf(t[e])<0&&i.push(t[e])}),i.forEach(function(a){if(n.indexOf(a)>=0)for(var i=0;i<t.multipleSelectionAll.length;i++)if(t.multipleSelectionAll[i][e]==a){t.multipleSelectionAll.splice(i,1);break}}),this.emitAllData()},selectAll:function(e){this.multipleSelectionAll=0==this.multipleSelectionAll.length?e:this.multipleSelectionAll,this.selectNum=this.multipleSelectionAll.length,this.getAllSelectionData()},getAllSelectionData:function(){this.changePageCoreRecordData(),this.selectNum=this.multipleSelectionAll.length},handleSelectionChange:function(e){this.multipleSelection=e,this.multipleSelectionAll[0]&&this.multipleSelectionAll[0]instanceof Array&&this.multipleSelectionAll.shift(),this.selectNum=this.multipleSelectionAll.length},handleSelect:function(e,t){this.getAllSelectionData()}}}],data:function(){return{total:10,tableData:[],tableLoading:!1,bools:[],ServiceTypes:[],statusOptions:[{label:"启用",value:1},{label:"禁用",value:2},{label:"全部",value:""}],roles:[],form:{type:null,status:1,name:null,pageSize:10,pageNum:1}}},created:function(){this.fetchData(),this.fetchOptions()},methods:{pageChange:function(){this.changePageCoreRecordData(),this.fetchData()},fetchOptions:function(){this.ServiceTypes=this.$store.getters.dicts.filter(function(e){return 1==e.status&&"aiServiceType"==e.typeCode}),this.ServiceTypes.unshift({name:"全部",code:""})},showServiceType:function(e){var t="";return this.ServiceTypes.some(function(n){if(n.code==e)return t=n.name,!0}),t},fetchData:function(){var e=this;this.tableLoading=!0,l.a.search(this.form).then(function(t){setTimeout(function(){e.tableData=t.data,e.total=t.total,e.tableLoading=!1,setTimeout(function(){e.setSelectRow()},200)},500)}).catch(function(t){e.tableLoading=!1})},goDetail:function(e){this.$router.push({name:"EngineEdit",params:{id:e.id}})},enable:function(e){var t=this;this.$set(e,"loading",!0),l.a.enable(e.userId).then(function(n){t.$set(e,"loading",!1),t.fetchData()}).catch(function(n){t.$message.error(n.message),t.$set(e,"loading",!1),t.fetchData()})},disable:function(e){var t=this;this.$confirm("是否确定注销?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$set(e,"loading",!0),l.a.disable(e.id).then(function(n){t.$set(e,"loading",!1),t.fetchData()}).catch(function(n){t.$set(e,"loading",!1),t.$message.error(n.message),t.fetchData()})}).catch(function(){})},handleReset:function(){this.$refs.queryForm.resetFields(),this.fetchData()},handleQuery:function(){this.form.pageNum=1,this.fetchData()}},components:{searchPage:i.a,cascader:a.a}},r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("search-page",{attrs:{pageSize:e.form.pageSize,pageNum:e.form.pageNum,fixed:!1,total:e.total},on:{"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.form,"pageNum",t)},"update:page-num":function(t){return e.$set(e.form,"pageNum",t)},change:e.pageChange}},[n("el-form",{ref:"queryForm",attrs:{inline:!0,model:e.form}},[n("el-form-item",{attrs:{label:"服务分类",prop:"type"}},[n("el-select",{attrs:{placeholder:"全部"},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.ServiceTypes,function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.code}})}),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"服务名称",prop:"name"}},[n("el-input",{attrs:{placeholder:"请输入服务名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"warning"},on:{click:e.handleQuery}},[e._v("查询")]),e._v(" "),n("el-button",{on:{click:e.handleReset}},[e._v("重置")])],1)],1),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],ref:"table",staticClass:"table_expand",attrs:{data:e.tableData},on:{"selection-change":e.handleSelectionChange,"select-all":e.selectAll,select:e.handleSelect}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{prop:"code","show-overflow-tooltip":"",label:"服务代码"}}),e._v(" "),n("el-table-column",{attrs:{prop:"name","show-overflow-tooltip":"",label:"服务名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"type","show-overflow-tooltip":"",label:"服务分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.showServiceType(t.row.type))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"serveVersion","show-overflow-tooltip":"",label:"服务版本"}}),e._v(" "),n("el-table-column",{attrs:{prop:"sdkVersion","show-overflow-tooltip":"",label:"SDK版本"}}),e._v(" "),n("el-table-column",{attrs:{prop:"modelVersion","show-overflow-tooltip":"",label:"模型版本"}}),e._v(" "),n("el-table-column",{attrs:{prop:"createTime","show-overflow-tooltip":"",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("datetime")(t.row.createTime))+"\n ")]}}])})],1)],1)},staticRenderFns:[]};var s=n("VU/8")(o,r,!1,function(e){n("0Wvp")},"data-v-dfbc08a4",null);t.default=s.exports},"0Wvp":function(e,t,n){var a=n("W7lm");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("2c31e305",a,!0)},"1N4N":function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\n.hideLast[data-v-2cb107d8] .el-pager li:last-child,\n.hideLast[data-v-2cb107d8] .el-pagination__jump {\n display: none;\n}\n",""])},W7lm:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\n.left[data-v-dfbc08a4] {\n display: inline-block;\n margin-right: 20px;\n position: absolute;\n right: 110px;\n}\n",""])},dbtM:function(e,t,n){var a=n("1N4N");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("9065d7b2",a,!0)},r0hc:function(e,t,n){"use strict";var a=n("imqz");n.d(t,"b",function(){return i});t.a={search:function(e){return a.a.post("/portal/organization/pageList",e).then(function(e){return{data:e.data.datas,total:e.data.totalRows}})},tree:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a.a.post("/portal/organization/tree",e).then(function(e){if(e.success)return e.data;throw new Error(e.message)})},orgTree:function(e){return a.a.post("/portal/organization/orgListAuthTree",e)},allTree:function(e){return a.a.post("/portal/organization/orgListTree",e)},detail:function(e){return a.a.post("/portal/organization/gets",{ids:[e]}).then(function(e){if(e.success&&e.data&&e.data.length>0)return e.data[0];throw new Error(e.message)})},enable:function(e){return a.a.post("/portal/organization/enable",{ids:[e]}).then(function(e){if(e.success)return e;throw new Error(e.message)})},disable:function(e){return a.a.post("/portal/organization/disable",{ids:[e]}).then(function(e){if(e.success)return e;throw new Error(e.message)})},add:function(e){return a.a.post("/portal/organization/add",e).then(function(e){if(e.success)return e;throw new Error(e.message)})},edit:function(e){return a.a.post("/portal/organization/edit",e).then(function(e){if(e.success)return e;throw new Error(e.message)})}};var i={batch:function(e){return a.a.post("/portal/organization/batchImport",{filePath:e})},download:function(){return Object(a.a)({url:"/portal/organization/downloadOrgTemplate",method:"GET",responseType:"blob"})},log:function(e){return a.a.post("/portal/organization/batchImport/page",e).then(function(e){return{data:e.data.datas,total:e.data.totalRows}})},downloadFailedFile:function(e){return Object(a.a)({url:"/portal/organization/downloadImportFailedOrg",method:"GET",params:{batchId:e},responseType:"blob"})},downloadCodes:function(){return Object(a.a)({url:"/portal/organization/downloadCityList",method:"GET",params:{},responseType:"blob"})}}},vMX1:function(e,t,n){"use strict";var a={data:function(){return{}},props:{fixed:{type:Boolean,default:!0},hidePage:{type:Boolean,default:!1},limit:{type:Boolean,default:!1},pageSize:{type:Number,default:10},pageNum:{type:Number,default:1},total:{type:Number,default:0},maxNum:{type:Number,default:1e5}},computed:{hideLast:function(){return this.total>=this.maxNum&&this.limit}},methods:{handleSizeChange:function(e){this.$emit("update:pageSize",e),this.$emit("change")},handleCurrentChange:function(e){this.$emit("update:pageNum",e),this.$emit("change")}},components:{}},i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default"),e._v(" "),n("div",{class:{"fixed-pagination-ctnr":e.fixed}},[n("el-pagination",{directives:[{name:"show",rawName:"v-show",value:!e.hidePage,expression:"!hidePage"}],class:{hideLast:e.hideLast},attrs:{"current-page":e.pageNum,"page-sizes":[10,20,50,100],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],2)},staticRenderFns:[]};var l=n("VU/8")(a,i,!1,function(e){n("dbtM")},"data-v-2cb107d8",null);t.a=l.exports},x1DN:function(e,t,n){"use strict";var a=n("r0hc");var i={data:function(){return{options:[],current:[],preArray:[],preID:"",showCascader:!0,props:{label:"name",value:"id",children:"children"}}},created:function(){this.fetchOption()},props:{orgName:{type:String,default:""},disabled:{type:Boolean,default:!1},orgOnly:{type:Boolean,default:!1},allAuth:Boolean,value:{type:String,default:function(){return""}},orgPath:{type:String,value:""},code:{type:String,value:""}},watch:{value:{immediate:!0,handler:function(e){this.fetchCurrent()}},orgName:{immediate:!0,handler:function(e){var t=this;this.$nextTick(function(){t.$refs.cascader&&(t.$refs.cascader.inputValue=e)})}}},methods:{fetchCurrent:function(){var e,t,n,a;this.options.length>0&&this.value&&this.current.length<=0?(this.current=(e=this.options,t=this.value,n=function(e){var t=[];return function e(n){for(var a=0;a<n.length;a++){var i=n[a],l=i.name,o=i.id,r=i.parentId;t.push({name:l,id:o,parentId:r}),n[a].children&&n[a].children.length>0&&e(n[a].children)}}(e),t}(e),a=[],function e(t,n){for(var i=0;i<t.length;i++){var l=t[i];l.id==n&&(a.push(l.id),e(t,l.parentId))}}(n,t),a.reverse()),this.$forceUpdate()):this.current.length>0&&(""===this.value||!this.value)&&(this.current=[])},fetchOption:function(){var e=this;(this.allAuth?a.a.allTree({}):a.a.orgTree({})).then(function(t){t.data.forEach(function(e){e.children=[]}),e.options=t.data,e.fetchCurrent(),e.setTitle()})},setTitle:function(){var e=this.$refs.cascader;this.$nextTick(function(){try{e.popperElm.querySelectorAll(".el-cascader-menu__item").forEach(function(e){e.setAttribute("title",e.innerText)})}catch(e){}})},fetchNext:function(e){var t=this;!e.id||e.children&&e.children.length>0||(this.loading=!0,(this.allAuth?a.a.allTree:a.a.orgTree)({id:e.id}).then(function(n){if(n.data.forEach(function(e){e.hasChildren?e.children=[]:e.children=null}),n.data&&n.data.length>0){e.children=n.data,t.$forceUpdate();try{t.$nextTick(function(){var e=t.$refs.cascader;e.menu.options=e.options,t.setTitle(),e.$nextTick(function(t){e.updatePopper(),e.menu.inputWidth=e.$refs.input.$el.offsetWidth-2})})}catch(e){}}else e.children=null,t.$forceUpdate();t.loading=!1}).catch(function(e){t.loading=!1}))},checkPre:function(e){return this.preArray.length==e.length&&e[e.length-1]==e[e.length-1]||(this.preArray=e,!1)},handleItemChange:function(e){if(this.$emit("input",e[e.length-1]||""),this.checkPre(e))return this.preArray=[],void(this.loading||this.$refs.cascader.handleClickoutside());var t=function e(t,n){var a="";return n?(n.some(function(n){return n.id===t?(a=n.path,!0):a=e(t,n.children)}),a):""}(e[e.length-1],this.options),n=function e(t,n){var a=null;return n?(n.some(function(n){return n.id===t?(a=n,!0):a=e(t,n.children)}),a):null}(e[e.length-1],this.options);n.id!==this.preID?(this.preID=n.id,this.fetchNext(n),this.$emit("levelChange",n.level),this.$emit("update:orgPath",t),this.$emit("update:code",n.code)):this.preID=n.id}}},l={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-cascader",{ref:"cascader",staticClass:"org-cascader",attrs:{options:e.options,disabled:e.disabled,filterable:"","show-all-levels":!1,"change-on-select":"",props:e.props},on:{change:e.handleItemChange},model:{value:e.current,callback:function(t){e.current=t},expression:"current"}})},staticRenderFns:[]},o=n("VU/8")(i,l,!1,null,null,null);t.a=o.exports}}); |