water-ldht/dist/static/js/chunk-6e59efde.e9cf6a7c.js

7 lines
8.9 KiB
JavaScript
Raw Normal View History

2024-11-01 16:58:10 +08:00
/*!
* build: vue-admin-beautiful
* vue-admin-beautiful author: chuzhixin 1204505056@qq.com
* vue-admin-beautiful QQ Group(QQ群): 9724353191139183756
* time: 2024-10-10 11:14:28
*/
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6e59efde","chunk-244d441e"],{2161:function(e,t,a){"use strict";a.r(t);var o=a("f2bf");function i(e,t,a,i,c,l){const r=Object(o["resolveComponent"])("el-table-column"),d=Object(o["resolveComponent"])("el-tag"),n=Object(o["resolveComponent"])("el-button"),s=Object(o["resolveComponent"])("el-table"),u=Object(o["resolveComponent"])("el-pagination"),b=Object(o["resolveComponent"])("distribute"),f=Object(o["resolveDirective"])("loading");return Object(o["openBlock"])(),Object(o["createElementBlock"])(o["Fragment"],null,[Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createBlock"])(s,{data:c.sensorData,border:"",stripe:"",style:{width:"100%"}},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(r,{prop:"name",label:e.$t("siteDetails.cgqmc"),align:"center"},null,8,["label"]),Object(o["createVNode"])(r,{prop:"dataKey",label:e.$t("siteDetails.csid"),align:"center"},null,8,["label"]),Object(o["createVNode"])(r,{prop:"dataValue",label:e.$t("siteDetails.zhi"),align:"center"},{default:Object(o["withCtx"])(({row:e})=>[Object(o["createVNode"])(d,{type:"success"},{default:Object(o["withCtx"])(()=>[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.dataValue),1)]),_:2},1024)]),_:1},8,["label"]),Object(o["createVNode"])(r,{prop:"unit",label:e.$t("siteDetails.dw"),align:"center"},null,8,["label"]),Object(o["createVNode"])(r,{label:e.$t("defalult.cz"),align:"center"},{default:Object(o["withCtx"])(({row:t})=>[t.readWrite==e.$t("defalult.zx")?(Object(o["openBlock"])(),Object(o["createBlock"])(n,{key:0,type:"text",onClick:e=>l.distribute(t)},{default:Object(o["withCtx"])(()=>[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("siteDetails.xfzl")),1)]),_:2},1032,["onClick"])):Object(o["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1},8,["data"])),[[f,c.listLoading]]),Object(o["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:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(o["createVNode"])(b,{ref:"distribute"},null,512)],64)}var c=a("7cf8"),l=a("ca6a"),r={components:{distribute:l["default"]},data(){return{sensorData:[],lazy:!0,activeName:"first",layout:"prev, pager, next",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:5,deviceCode:""}}},computed:{height(){return 500}},methods:{showData(e){this.queryForm.deviceCode=e.deviceCode,this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["sensorsOfWrite"])(this.queryForm);this.sensorData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},distribute(e){const t=e.dataKey,a=this.queryForm.deviceCode;this.$refs["distribute"].showEdit({deviceCode:a,dataKey:t,unit:e.unit,convertFlag:e.convertFlag})},handleQuery(){this.queryForm.pageNo=1,this.fetchData()},handleSizeChange(e){this.queryForm.pageSize=e,this.fetchData()},handleCurrentChange(e){this.queryForm.pageNo=e,this.fetchData()}}},d=(a("f84e"),a("d959")),n=a.n(d);const s=n()(r,[["render",i],["__scopeId","data-v-34ea189e"]]);t["default"]=s},"7cf8":function(e,t,a){"use strict";a.r(t),a.d(t,"getSiteList",(function(){return c})),a.d(t,"getDeviceInfo",(function(){return l})),a.d(t,"getDeviceList",(function(){return r})),a.d(t,"getDeviceInfos",(function(){return d})),a.d(t,"getLiveAddr",(function(){return n})),a.d(t,"getWaterRate",(function(){return s})),a.d(t,"getCaptureImg",(function(){return u})),a.d(t,"deviceCode",(function(){return b})),a.d(t,"sensorsOfWrite",(function(){return f})),a.d(t,"writeData",(function(){return m}));var o=a("b775"),i=a("2ef0");const c=()=>Object(o["default"])({url:"/map/devices?projectId="+sessionStorage.getItem("projectId"),method:"get"}).then(e=>((null===e||void 0===e?void 0:e.data)||[]).map(e=>({...e,label:e.townName,id:Object(i["uniqueId"])("mo"),iconType:"folder",type:"town"