water-ldht/dist/static/js/chunk-a278f102.a2f642cc.js

7 lines
3.4 KiB
JavaScript

/*!
* build: vue-admin-beautiful
* vue-admin-beautiful author: chuzhixin 1204505056@qq.com
* vue-admin-beautiful QQ Group(QQ群): 972435319、1139183756
* time: 2024-10-10 11:14:28
*/
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a278f102"],{"8bae":function(e,t,a){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},a712:function(e,t,a){"use strict";a.r(t);var n=a("f2bf");const r={class:"manage-container"};function o(e,t,a,o,c,i){const l=Object(n["resolveComponent"])("el-table-column"),s=Object(n["resolveComponent"])("el-table"),u=Object(n["resolveComponent"])("el-pagination"),d=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",r,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(s,{data:c.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{prop:"tqImei",label:"imei",width:"200",align:"center"}),Object(n["createVNode"])(l,{fixed:"",prop:"tqNum",label:e.$t("vehicle.cph"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{prop:"projects",label:e.$t("vehicle.gsxm"),align:"center"},{default:Object(n["withCtx"])(({row:e})=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.projects,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",{key:t},Object(n["toDisplayString"])(e)+" , ",1))),128))]),_:1},8,["label"])]),_:1},8,["data"])),[[d,c.listLoading]]),Object(n["createVNode"])(u,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:i.handleCurrentChange,onSizeChange:i.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])}var c=a("fbb2"),i={data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["getList"])(this.queryForm);this.tableData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},l=(a("f62d"),a("d959")),s=a.n(l);const u=s()(i,[["render",o]]);t["default"]=u},f62d:function(e,t,a){"use strict";a("8bae")},fbb2:function(e,t,a){"use strict";a.r(t),a.d(t,"getList",(function(){return r})),a.d(t,"getDeviceList",(function(){return o})),a.d(t,"getProjects",(function(){return c})),a.d(t,"bindProject",(function(){return i}));var n=a("b775");function r(e){const t="?page="+e.page+"&size="+e.size+"&projectId="+e.projectId;return Object(n["default"])({url:"/vehicle/list"+t,method:"get",data:e})}function o(e){return Object(n["default"])({url:"/tq/api/getDeviceList",method:"get",data:e})}function c(e){return Object(n["default"])({url:"/tq/api/projects",method:"get",data:e})}function i(e){return Object(n["default"])({url:"/tq/api/bindProject?imei="+e.imei+"&num="+e.num+"&projectIds="+e.projectIds,method:"post",data:e})}}}]);