Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

2 righe
11 KiB

  1. webpackJsonp([25],{"3eLu":function(e,t,a){"use strict";function n(e){return a.i(l.a)({url:"/service-ota/upgradePackages",method:"post",data:e})}function s(e){return a.i(l.a)({url:"/service-ota/upgradePackage",method:"post",data:e})}function r(e){return a.i(l.a)({url:"/service-ota/upgradePackage",method:"delete",data:e})}function i(e){return a.i(l.a)({url:"/service-ota/upgradePackage/"+e,method:"delete"})}t.a=n,t.d=s,t.b=r,t.c=i;var l=a("Vo7i")},"6V/W":function(e,t,a){var n=a("DeK3");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("72e6e915",n,!0)},DeK3:function(e,t,a){t=e.exports=a("FZ+f")(!0),t.push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"index.vue",sourceRoot:""}])},Ih3I:function(e,t,a){"use strict";function n(e){a("6V/W")}Object.defineProperty(t,"__esModule",{value:!0});var s=a("bSCt"),r=a("q0F4"),i=a("VU/8"),l=n,o=i(s.a,r.a,l,null,null);t.default=o.exports},ToeA:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-pagination",{staticClass:"pagination",attrs:{"current-page":e.currPage,"page-sizes":[10,30,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}})},s=[],r={render:n,staticRenderFns:s};t.a=r},bSCt:function(e,t,a){"use strict";var n=a("3eLu"),s=a("jqUp");t.a={name:"versionindex",components:{Pagination:s.a},data:function(){return{value11:"",list:null,listLoading:!0,listQuery:{versionCode:"",manufacturer:"",deviceType:"",deviceModel:"",customer:"",startDate:"",endDate:"",status:"",statusArr:[0,1],limit:10,offset:0},currPage:1,total:null,statusList:{0:"可用",1:"已删除"},ptype:{0:"增量包",1:"全量包",2:"PDA包"},multipleSelection:[]}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;this.listLoading=!0,this.listQuery.status?this.listQuery.statusArr=[this.listQuery.status]:this.listQuery.statusArr=[0,1],a.i(n.a)(this.listQuery).then(function(t){e.list=t.result.rows,e.total=t.result.total,e.listLoading=!1})},handleSizeChange:function(e){this.listQuery.limit=e,this.listQuery.offset=(this.currPage-1)*e,this.fetchData()},handleCurrentChange:function(e){this.currPage=e,this.listQuery.offset=this.listQuery.limit*(e-1),this.fetchData()},upstatus:function(){var e=this,t=[];if(this.multipleSelection.forEach(function(e){t.push(e.id)}),0==t.length)return this.$message.error("请选择需要删除的数据"),!1;this.$confirm("此操作将处理您所选的数据, 是否继续?","",{type:"warning",center:!0}).then(function(){a.i(n.b)({packageIds:t}).then(function(t){e.$message({type:"success",message:"操作成功!"}),e.fetchData()})}).catch(function(){})},delversion:function(e){var t=this;this.$confirm("此操作将删除您所选的数据, 是否继续?","",{type:"warning",center:!0}).then(function(){a.i(n.c)(e).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.fetchData()})}).catch(function(){})},handleSelectionChange:function(e){this.multipleSelection=e},showRel:function(e){this.$alert(e,"ReleaseNote")},versionChofilter:function(e,t){return 1!=e.status},resetForm:function(e){this.$refs[e].resetFields()},handleDownload:function(){var e=this;a.e(90).then(a.bind(null,"zWO4")).then(function(t){console.log(t);var s=["文件名","路径","MD5","大小","版本","厂商","设备","型号","客户","类型","状态","ReleaseNote"],r=["fileName","filePath","md5Code","fileSize","versionCode","manufacturer","deviceType","deviceModel","customer","fileType","status","releaseNote"];e.listQuery.isPage=!1,a.i(n.a)(e.listQuery).then(function(a){var n=a.result.rows,i=e.formatJson(r,n);t.export_json_to_excel(s,i,"版本列表"),e.listQuery.isPage=!0})})},formatJson:function(e,t){var a=this;return t.map(function(t){return e.map(function(e){return"fileType"===e?a.ptype[t[e]]:"status"===e?a.statusList[t[e]]:t[e]})})}}}},c6uK:function(e,t,a){"use strict";t.a={name:"pageination",props:{total:Number,currPage:{type:Number,default:1},pagesize:{type:Number,default:10}},methods:{handleSizeChange:function(e){this.$emit("changePage",{pagesize:e,currPage:1})},handleCurrentChange:function(e){this.$emit("changePage",{pagesize:this.pagesize,currPage:e})}}}},jqUp:function(e,t,a){"use strict";function n(e){a("zDZy")}var s=a("c6uK"),r=a("ToeA"),i=a("VU/8"),l=n,o=i(s.a,r.a,l,null,null);t.a=o.exports},q0F4:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"listQuery",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.listQuery,size:"mini"}},[a("el-form-item",{attrs:{label:"版本",prop:"versionCode"}},[a("el-input",{attrs:{placeholder:"版本"},model:{value:e.listQuery.versionCode,callback:function(t){e.$set(e.listQuery,"versionCode",t)},expression:"listQuery.versionCode"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"厂商",prop:"manufacturer"}},[a("el-input",{attrs:{placeholder:"厂商"},model:{value:e.listQuery.manufacturer,callback:function(t){e.$set(e.listQuery,"manufacturer",t)},expression:"listQuery.manufacturer"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备",prop:"deviceType"}},[a("el-input",{attrs:{placeholder:"设备"},model:{value:e.listQuery.deviceType,callback:function(t){e.$set(e.listQuery,"deviceType",t)},expression:"listQuery.deviceType"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"型号",prop:"deviceModel"}},[a("el-input",{attrs:{placeholder:"型号"},model:{value:e.listQuery.deviceModel,callback:function(t){e.$set(e.listQuery,"deviceModel",t)},expression:"listQuery.deviceModel"}})],1),e._v(" "),a("br"),e._v(" "),a("el-form-item",{attrs:{label:"客户",prop:"customer"}},[a("el-input",{attrs:{placeholder:"客户"},model:{value:e.listQuery.customer,callback:function(t){e.$set(e.listQuery,"customer",t)},expression:"listQuery.customer"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"开始日期",prop:"startDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{placeholder:"开始日期",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.listQuery.startDate,callback:function(t){e.$set(e.listQuery,"startDate",t)},expression:"listQuery.startDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"结束日期",prop:"endDate"}},[a("el-date-picker",{staticStyle:{width:"170px"},attrs:{placeholder:"结束日期",type:"date","value-format":"yyyy-MM-dd"},model:{value:e.listQuery.endDate,callback:function(t){e.$set(e.listQuery,"endDate",t)},expression:"listQuery.endDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{attrs:{placeholder:"状态",name:"status",clearable:""},model:{value:e.listQuery.status,callback:function(t){e.$set(e.listQuery,"status",t)},expression:"listQuery.status"}},e._l(e.statusList,function(e,t){return a("el-option",{key:e.index,attrs:{label:e,value:t}})}))],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.fetchData}},[e._v("查询")]),e._v(" "),a("el-button",{on:{click:function(t){e.resetForm("listQuery")}}},[e._v("重置")]),e._v(" "),a("el-button",{attrs:{type:"success"},on:{click:e.handleDownload}},[e._v("导出")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:e.listLoading,expression:"listLoading",modifiers:{body:!0}}],attrs:{data:e.list,"element-loading-text":"拼命加载中",border:"",fit:"","highlight-current-row":"",size:"mini"}},[a("el-table-column",{attrs:{label:"文件名",align:"center",prop:"fileName"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.fileName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"路径",align:"center",prop:"filePath",width:"125px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.filePath))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"MD5",align:"center",prop:"md5Code",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.md5Code)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{"class-name":"status-col",label:"大小",prop:"fileSize",width:"65px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.fileSize)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"versionCode",label:"版本",width:"85px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.versionCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"manufacturer",label:"厂商",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.manufacturer))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"deviceType",label:"设备",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deviceType))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"deviceModel",label:"型号",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deviceModel))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"customer",label:"客户",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customer))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"fileType",label:"类型",width:"65px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.ptype[t.row.fileType]))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"状态",width:"65px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.statusList[t.row.status]))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"department",label:"ReleaseNote",width:"95px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showRel(t.row.releaseNote)}}},[e._v("查看")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",width:"95px"},scopedSlots:e._u([{key:"default",fn:function(t){return[1!=t.row.status?[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.delversion(t.row.id)}}},[e._v("删除")])]:[e._v("\n -\n ")]]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"pagination",attrs:{"current-page":e.currPage,"page-sizes":[10,30,50,100],"page-size":e.listQuery.limit,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)},s=[],r={render:n,staticRenderFns:s};t.a=r},q7la:function(e,t,a){t=e.exports=a("FZ+f")(!0),t.push([e.i,".pagination{float:right;margin-top:20px}","",{version:3,sources:["D:/projects/gitLab/wxpos/posadmin/src/components/Pageination/index.vue"],names:[],mappings:"AACA,YACE,YAAa,AACb,eAAiB,CAClB",file:"index.vue",sourcesContent:["\n.pagination{\n float: right;\n margin-top: 20px;\n}\n"],sourceRoot:""}])},zDZy:function(e,t,a){var n=a("q7la");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("1f661143",n,!0)}});
  2. //# sourceMappingURL=25.c5ecdc52d75f76284c9d.js.map