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
9.6 KiB
JavaScript
1 line
9.6 KiB
JavaScript
webpackJsonp([137],{"6gX/":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("EEkg"),l=a("JSQk"),n=a.n(l),o=a("ssE9"),s={data:function(){return{showTask:!1,fileList:[],acceptFileList:"application/x-gzip,application/vnd.android.package-archive,application/zip",fileName:"",percent:0,loading:!1,uploaders:[]}},props:{dataSetId:{type:String,default:""}},computed:{currentFile:function(){return this.fileList.length>0?this.fileList[this.fileList.length-1].name:""}},destroyed:function(){this.uploaders.length>0&&(this.uploaders.forEach(function(e){e.cancel()}),this.uploaders=[])},methods:{handleFileChange:function(e){if(this.uploaders.length>0&&(this.uploaders.forEach(function(e){e.cancel()}),this.uploaders=[]),this.fileName="",this.percent=0,"application/x-zip-compressed"!=e.target.files[0].type&&"application/x-gzip"!=e.target.files[0].type&&"application/vnd.android.package-archive"!=e.target.files[0].type&&"application/zip"!=e.target.files[0].type)return this.$message.error("请上传.tar.gz或者.apk或者.zip格式的文件"),!1;var t=e.target.files;t.length>0&&(this.showTask=!0),this.loading=!0;for(var a=0;a<t.length;a++){var i=t[a];this.fileList.push(i),this.initChunkUpload(i,this.fileList.length-1),this.packageSuccess2(i)}this.$refs.uploader.value=""},fetchAllComplete:function(e){e===this.fileList.length-1&&this.$emit("complete",this.fileList[0])},initChunkUpload:function(e,t){var a=this,i=new o.a(e,{dataSetId:this.dataSetId,url:"/cwos-portal/portal/fileManager/chunkUpload",chunkSize:8*Math.pow(1024,2),progress:function(l,n,o){e.code=l,e.status=i.state,e.progress=n,a.percent=n,100!=a.percent&&0!=a.percent&&1!=a.percent&&(a.loading=!1),o&&(e.message=o),i.state>0&&(a.$set(a.fileList,t,e),a.fetchAllComplete(t))},complete:function(t){a.$emit("complete",t),e.success=!0,a.fileName=e.name,a.loading=!1,a.uploaders=[],a.percent=0},final:function(e){a.$emit("final",e),a.loading=!1,a.uploaders=[],a.percent=0}});this.uploaders.push(i),i.run(),e._uploader=i},packageSuccess2:function(e){var t=new FileReader,a=this;t.onload=function(e){a.$emit("fullMd5",n.a.hashBinary(e.target.result))},t.onerror=function(){},t.readAsBinaryString(e),this.percent=0},removeFile:function(){this.fileName="",this.$emit("removeFullFile")}},watch:{uploaders:{immediate:!0,handler:function(e){e.length||(this.percent=0)}}},components:{}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex-box",staticStyle:{width:"230px"}},[a("div",{staticClass:"upload-wrp flex-item"},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{size:"small"}},[e._v("上传文件")]),e._v(" "),a("input",{ref:"uploader",attrs:{type:"file",id:"uploadButton",accept:e.acceptFileList,"on-success":e.packageSuccess2},on:{change:e.handleFileChange}}),e._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("支持扩展名:.tar.gz、apk、zip")]),e._v(" "),e.fileName?a("div",{staticClass:"file-name"},[a("el-icon",{staticClass:"el-icon-document"}),e._v(" "),a("span",[e._v(e._s(e.fileName))]),e._v(" "),a("el-icon",{staticClass:"el-icon-upload-success el-icon-circle-check",staticStyle:{float:"right","margin-right":"4px","margin-top":"5px",color:"#67c23a"}}),e._v(" "),a("el-icon",{staticClass:"el-icon-close",staticStyle:{float:"right",opacity:"0",display:"inline-block","margin-right":"4px","margin-top":"5px"},nativeOn:{click:function(t){return e.removeFile(t)}}})],1):e._e(),e._v(" "),0!=e.percent&&100!=e.percent&&1!=e.percent&&e.uploaders.length?a("el-progress",{staticStyle:{width:"746px"},attrs:{percentage:e.percent}}):e._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(s,r,!1,function(e){a("Y+lB")},"data-v-ec5c01ae",null).exports,p=a("TIfe"),d={name:"addFile",props:{dialogVisible:{type:Boolean,default:!1}},components:{fileUpload:c},data:function(){return{actionUrl:"/zuul/cwos-portal/portal/device/upgrade/descFileUpload",headers:{Authorization:"Basic "+Object(p.b)()},modelForm:{remark:"",configFilePath:"",packageAppendPath:"",packageFullPath:"",packageAppendMd5:"",packageFullMd5:""},rules:{fileDescribe:[{required:!0,message:"请上传升级描述文件",trigger:"change"}],filePackage:[{required:!0,message:"请上传升级文件包",trigger:"change"}]},fileList:[]}},created:function(){},methods:{handleFinal:function(e){this.modelForm.packageFullPath=e},handleFinal1:function(e){this.modelForm.packageAppendPath=e},handleConfirm:function(e){var t=this;if(this.modelForm.configFilePath)if(this.modelForm.packageAppendPath)if(this.modelForm.packageFullPath&&this.modelForm.packageAppendMd5){var a=this.$loading({lock:!0,text:"",background:"rgba(255, 255, 255, 0.7)"});i.a.fileAdd(this.modelForm).then(function(e){t.$message.success(e.message),t.$router.push("/control/fileManage/index"),a.close()}).catch(function(e){t.$message.error(e.message),a.close()})}else this.$message.warning("请先上传全量升级文件包");else this.$message.warning("请先上传增量升级文件包");else this.$message.warning("请先上传升级描述文件")},fileError:function(e,t,a){this.$message.error(e)},fileSuccess:function(e,t,a){"00000000"==e.code?this.modelForm.configFilePath=e.data:(this.$message.error(e.message),this.$refs.upload.clearFiles())},fullMd5:function(e){this.modelForm.packageFullMd5=e},fullMd51:function(e){this.modelForm.packageAppendMd5=e},removeFullFile:function(){this.modelForm.packageFullPath="",this.modelForm.packageFullMd5=""},removeFile:function(){this.modelForm.packageAppendPath="",this.modelForm.packageAppendMd5=""},cancle:function(){this.$router.go(-1)},handleChange:function(e,t){2==t.length&&(this.fileList=t.slice(1))},beforeFileUpload:function(e){if("application/json"!=e.type&&"text/xml"!=e.type)return this.$message.error("请上传.xml或.json格式的文件"),!1}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container",staticStyle:{width:"100%"}},[a("el-card",{staticClass:"upadd-card",attrs:{shadow:"hover"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("文件上传")])]),e._v(" "),a("div",{staticClass:"add-form",staticStyle:{width:"100%"}},[a("el-form",{ref:"detailData",staticClass:"demo-detailData",attrs:{model:e.modelForm,rules:e.rules,"label-width":"140px"}},[a("el-form-item",{attrs:{label:"升级描述文件",prop:"fileDescribe"}},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:e.actionUrl,headers:e.headers,"before-remove":e.beforeRemove,"before-upload":e.beforeFileUpload,"on-change":e.handleChange,"on-success":e.fileSuccess,"file-list":e.fileList,"on-error":e.fileError,limit:2,name:"descFile",accept:".xml, .json"}},[a("el-button",{attrs:{size:"small"}},[e._v("上传文件")]),e._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("支持扩展名:.xml或.json")]),e._v(" "),a("div",{attrs:{id:"box"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"增量升级文件包",prop:"filePackage"}},[a("file-upload",{staticClass:"flex-item",on:{final:e.handleFinal1,fullMd5:e.fullMd51,removeFullFile:e.removeFile}})],1),e._v(" "),a("el-form-item",{attrs:{label:"全量升级文件包",prop:"filePackage"}},[a("file-upload",{staticClass:"flex-item",on:{final:e.handleFinal,fullMd5:e.fullMd5,removeFullFile:e.removeFullFile}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%"},attrs:{label:"备注",prop:"remark"}},[a("div",{staticClass:"word-limit-ctnr",staticStyle:{width:"555px"}},[a("el-input",{staticStyle:{width:"555px"},attrs:{type:"textarea",placeholder:"请输入备注",maxlength:"255",resize:"none"},model:{value:e.modelForm.remark,callback:function(t){e.$set(e.modelForm,"remark",t)},expression:"modelForm.remark"}}),e._v(" "),a("span",{staticClass:"word-limit"},[e._v(e._s(e.modelForm.remark&&e.modelForm.remark.length||0)+"/255")])],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleConfirm("modelForm")}}},[e._v("确定")]),e._v(" "),a("el-button",{on:{click:e.cancle}},[e._v("取消")])],1)],1)],1)])],1)},staticRenderFns:[]};var f=a("VU/8")(d,u,!1,function(e){a("oNnO")},"data-v-0f31e4b0",null);t.default=f.exports},"Y+lB":function(e,t,a){var i=a("oKkW");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);a("rjj0")("412e0a3d",i,!0)},mEio:function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n[data-v-0f31e4b0] .el-upload {\n text-align: left;\n width: 100px;\n}\n[data-v-0f31e4b0] .el-upload-list__item {\n width: 560px;\n}\n.upadd-card[data-v-0f31e4b0] {\n margin-bottom: 100px;\n padding-bottom: 18px;\n}\n[data-v-0f31e4b0] .el-button--default:hover {\n opacity: 1;\n}\n",""])},oKkW:function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n.upload-wrp[data-v-ec5c01ae] {\n position: relative;\n}\n.upload-wrp #uploadButton[data-v-ec5c01ae] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100px;\n bottom: 0;\n right: 0;\n opacity: 0;\n z-index: 33;\n}\n.file-list-wrp[data-v-ec5c01ae] {\n max-height: 200px;\n overflow-y: auto;\n margin: 10px 0;\n}\n.file-name[data-v-ec5c01ae] {\n width: 560px;\n color: #606266;\n -webkit-transition: color 0.3s;\n transition: color 0.3s;\n overflow: hidden;\n font-size: 14px;\n line-height: 1.8;\n}\n.file-name[data-v-ec5c01ae]:hover {\n background: #f5f7fa;\n cursor: pointer;\n}\n.file-name:hover span[data-v-ec5c01ae] {\n color: #3399ff;\n}\n.file-name:hover .el-icon-close[data-v-ec5c01ae] {\n opacity: 1 !important;\n}\n.file-name:hover .el-icon-upload-success[data-v-ec5c01ae] {\n display: none !important;\n}\n#uploadButton[data-v-ec5c01ae] {\n cursor: pointer;\n}\n",""])},oNnO:function(e,t,a){var i=a("mEio");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);a("rjj0")("0f3280e8",i,!0)}}); |