mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-11 01:10:29 +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
7.1 KiB
JavaScript
1 line
7.1 KiB
JavaScript
webpackJsonp([136],{"+z+N":function(t,e,a){var n=a("NJuG");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("3523ce1c",n,!0)},"/P3s":function(t,e,a){var n=a("eZc0");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("7afa06ae",n,!0)},NJuG:function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.info[data-v-277e6379] {\n line-height: 16px;\n margin: 10px;\n}\n.upload-demo[data-v-277e6379] .el-upload--text {\n width: 84px;\n margin-right: 10px;\n}\n.el-dialog[data-v-277e6379] {\n height: 401px;\n}\n",""])},eZc0:function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.download-link[data-v-31207b5d] {\n display: inline-block;\n color: #3399ff;\n text-decoration: underline;\n cursor: pointer;\n font-size: 14px;\n margin-bottom: 24px;\n padding-top: 0;\n padding-bottom: 0;\n height: 14px;\n line-height: 14px;\n}\n.error[data-v-31207b5d] {\n color: #f00;\n}\n[data-v-31207b5d] .el-table .cell {\n line-height: 36px;\n}\n",""])},wYXf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("7ktU"),o=a("r0hc"),s={data:function(){return{disabled:!0,form:{filePath:""},acceptFileList:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]}},props:{show:{type:Boolean,default:!1}},created:function(){},methods:{handleSuccess:function(t){this.$refs.chunk.reset(),t.success?(this.$message.success("机构批量导入中"),this.$emit("success"),this.handleClose()):this.$message.error(t.message||"导入失败")},fileChange:function(t){t?(this.form.filePath=t,this.disabled=!1,this.$forceUpdate()):this.disabled=!0},submit:function(){var t=this;this.form.filePath?o.b.batch(this.form.filePath).then(function(e){t.handleSuccess(e)}).catch(function(e){t.$refs.chunk.reset()}):this.$message.error("请上传文件")},handleClose:function(){var t=this;this.form={},this.$refs.chunk.reset(),this.$nextTick(function(){t.$refs.ruleForm.clearValidate(),t.$emit("update:show",!1)})}},components:{chunk:n.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{staticClass:"cmt-wrp",attrs:{title:"批量导入机构",width:"538px",visible:t.show,"before-close":t.handleClose},on:{"update:visible":function(e){t.show=e}}},[a("el-form",{ref:"ruleForm",attrs:{model:t.form,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"机构文件",rules:[t.$rule.normalRule()],prop:"filePath"}},[a("chunk",{ref:"chunk",attrs:{acceptFileList:t.acceptFileList},on:{change:t.fileChange}},[a("div",{staticStyle:{height:"30px","line-height":"30px"},attrs:{slot:"tip"},slot:"tip"},[t._v("支持.xlsx文件")])])],1),t._v(" "),a("el-form-item",{staticClass:"tip",attrs:{label:"文件格式要求"}},[a("p",{staticClass:"info"},[t._v("1)Excel文件中有数字的单元格格式必须为文本格式")]),t._v(" "),a("p",{staticClass:"info"},[t._v("2)表头顺序为:上级机构、机构层级、机构代码、机构名称、是否独立运营、省、市、详细地址 为必输项;联系人、联系方式、传真、备注 为非必填项")]),t._v(" "),a("p",{staticClass:"info"},[t._v("3) 注意:在按照模板编写机构导入文件时, 请按照机构层级顺序进行编写,或按照机构层级一层层上传")])]),t._v(" "),a("el-row",{staticStyle:{"text-align":"right"}},[a("el-button",{attrs:{type:"primary",disabled:t.disabled},on:{click:t.submit}},[t._v("确认")]),t._v(" "),a("el-button",{on:{click:t.handleClose}},[t._v("取消")])],1)],1)],1)},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(t){a("+z+N")},"data-v-277e6379",null).exports,r=a("vMX1"),c=a("HKNJ"),d=a("xT6B"),u={data:function(){return{codesLoading:!1,showDialog:!1,total:0,tableLoading:!1,tableData:[],form:{rowsOfPage:10,currentPage:1}}},created:function(){this.fetchData()},filters:{status:function(t){return{2:"进行中",3:"已完成",4:"异常"}[t]||""}},methods:{downloadCodes:function(){var t=this;this.codesLoading=!0,o.b.downloadCodes().then(function(e){setTimeout(function(){t.codesLoading=!1},200),Object(c.a)(e.data,"国家省市地区代码表.xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}).catch(function(e){t.codesLoading=!1})},fetchData:function(){var t=this;return this.tableLoading=!0,o.b.log(this.form).then(function(e){setTimeout(function(){t.total=e.total,t.tableData=e.data,t.tableLoading=!1},500)}).catch(function(e){t.tableLoading=!1})},download:function(){o.b.download().then(function(t){Object(c.a)(t.data,"机构导入模板.xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")})},fetchFaildFile:function(t,e){this.$set(t,"loading",!0),o.b.downloadFailedFile(e).then(function(e){t.loading=!1;var a=Object(d.a)(new Date(t.createTime),"yyyyMMddhhmm");Object(c.a)(e.data,"机构导入失败文件_"+a+".xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")})},refresh:function(){this.fetchData()}},components:{searchPage:r.a,importDialog:l}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.showDialog=!0}}},[t._v("批量导入")]),t._v(" "),a("el-button",{attrs:{icon:"el-icon-download"},on:{click:t.download}},[t._v("模板下载")]),t._v(" "),a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:t.refresh}},[t._v("刷新")])],1),t._v(" "),a("search-page",{attrs:{pageSize:t.form.rowsOfPage,pageNum:t.form.currentPage,total:t.total},on:{"update:pageSize":function(e){return t.$set(t.form,"rowsOfPage",e)},"update:page-size":function(e){return t.$set(t.form,"rowsOfPage",e)},"update:pageNum":function(e){return t.$set(t.form,"currentPage",e)},"update:page-num":function(e){return t.$set(t.form,"currentPage",e)},change:t.fetchData}},[t._e(),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableLoading,expression:"tableLoading"}],attrs:{data:t.tableData}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"60",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"操作人"}}),t._v(" "),a("el-table-column",{attrs:{prop:"address",label:"导入时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("datetime")(e.row.importTime))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{error:4==e.row.status}},[t._v("\n "+t._s(t._f("status")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"address",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[4==e.row.status?a("el-button",{attrs:{type:"text",loading:e.row.loading,size:"small"},on:{click:function(a){return t.fetchFaildFile(e.row,e.row.id)}}},[t._v("下载失败文件")]):t._e()]}}])})],1)],1)],1),t._v(" "),a("import-dialog",{attrs:{show:t.showDialog},on:{success:t.fetchData,"update:show":function(e){t.showDialog=e}}})],1)},staticRenderFns:[]};var h=a("VU/8")(u,f,!1,function(t){a("/P3s")},"data-v-31207b5d",null);e.default=h.exports}}); |