1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-103b6c32"],{"0431":function(e,t,a){"use strict";a.r(t);var r=(a("a15b"),a("d81d"),a("a9e3"),a("ac1f"),a("1276"),a("7e6a")),n=a("4a06"),i={mounted:function(){this.getList(),this.getLaborManagementList()},components:{gdMap:a("15af").a},data:function(){return{showMap:!1,props:{multiple:!0},formInline:{},addEditRules:{waterMeterName:[{required:!0,message:this.$t("message.deviceManage.rules.devName"),trigger:"blur"},{required:!0,message:this.$t("message.deviceManage.rules.devName"),trigger:"change"}]},options:[],warningInfo:{},addEditForm:{},List:[],Popup:{type:"edit",show:!1},pagInfo:{pageNo:1,pageSize:10,total:0},thresholdArr:[]}},methods:{selelctWaterMeterThreshold:function(e){var t=this;Object(r.l)({waterMeterNo:e,projectSn:this.$store.state.projectSn}).then((function(a){if(a.result&&a.result.length>0)t.thresholdArr=a.result;else{t.thresholdArr=[];for(var r=1;r<=12;r++)t.thresholdArr.push({thresholdValue:"",waterMeterNo:e,projectSn:t.$store.state.projectSn,monthNum:r})}}))},toGetLocalFn:function(){this.showMap=!0},closeMap:function(e){this.showMap=e},getLngLat:function(e){this.showMap=!1,this.addEditForm.lng=e.lng,this.addEditForm.lat=e.lat},SizeChange:function(e){this.pagInfo.pageSize=e,this.getList()},CurrentChange:function(e){this.pagInfo.pageNo=e,this.getList()},handle:function(e,t){this.Popup={type:e,show:t}},setWarningType:function(e){var t=this;Object(r.b)(this.thresholdArr).then((function(e){e.success&&t.$message.success(e.message)}))},submit:function(){var e=this;"threshold"===this.Popup.type?(this.setWarningType(1),this.Popup.show=!1):"edit"===this.Popup.type&&this.$refs.addEditForm.validate((function(t){if(!t)return!1;var a=e.addEditForm;a.alarmPushWorkerId=e.addEditForm.alarmPushWorkerId.join(","),a.projectSn=e.$store.state.projectSn,Object(r.e)(a).then((function(t){t.success&&(e.$message.success(t.message),e.getList(),e.Popup.show=!1)}))}))},Change:function(){},threshold:function(e){this.handle("threshold",!0),this.selelctWaterMeterThreshold(e.waterMeterNo)},edit:function(e){this.addEditForm=JSON.parse(JSON.stringify(e)),"string"==typeof e.alarmPushWorkerId&&""!=e.alarmPushWorkerId&&(this.addEditForm.alarmPushWorkerId=e.alarmPushWorkerId.split(",").map(Number)),this.handle("edit",!0)},getList:function(){var e=this;Object(r.g)({projectSn:this.$store.state.projectSn}).then((function(t){t.success&&(e.List=t.result)}))},refresh:function(){this.getList()},getWarningInfo:function(e){var t=this,a=e.deviceId,r=e.projectSn,n=e.warningType;getEnvironmentWarningInfo({deviceId:a,projectSn:r,warningType:n}).then((function(e){e.success&&(t.warningInfo=e.result)}))},getLaborManagementList:function(){var e=this;Object(n.o)({projectSn:this.$store.state.projectSn}).then((function(t){t.success&&(e.options=t.result)}))}}},o=(a("2edd"),a("2877")),s=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"fullHeight"},[r("div",{staticClass:"searchBox whiteBlock"},[r("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,size:"medium",model:e.formInline}},[r("el-form-item",[r("el-button",{attrs:{type:"warning",plain:""},on:{click:e.refresh}},[e._v(e._s(e.$t("message.alarmValueSet.refresh")))])],1)],1)],1),r("div",{staticClass:"table_wrap whiteBlock"},[r("el-table",{staticClass:"tables",attrs:{data:e.List}},[r("el-table-column",{attrs:{width:"50",type:"index",label:e.$t("message.energyManage.material.serialNo")}}),r("el-table-column",{attrs:{prop:"waterMeterName",align:"center",label:e.$t("message.alarmValueSet.deviceName")}}),r("el-table-column",{attrs:{prop:"waterMeterNo",label:e.$t("message.alarmValueSet.deviceId"),align:"center"}}),r("el-table-column",{attrs:{prop:"deviceStatus",label:e.$t("message.energyManage.devStatus"),align:"center"}}),r("el-table-column",{attrs:{prop:"gateStatus",label:e.$t("message.energyManage.valveControl2"),align:"center"}}),r("el-table-column",{attrs:{label:e.$t("message.alarmValueSet.operation"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"tableBtns"},[r("el-button",{staticClass:"operationText",attrs:{type:"text"},on:{click:function(a){return e.threshold(t.row)}}},[e._v(e._s(e.$t("message.energyManage.valveControlSet")))]),r("div",{staticClass:"operationText",on:{click:function(a){return e.edit(t.row)}}},[r("img",{attrs:{src:a("0e0b"),width:"15px",height:"15px"}}),r("span",[e._v(e._s(e.$t("message.alarmValueSet.edit")))])])],1)]}}])})],1)],1),r("el-dialog",{attrs:{"modal-append-to-body":!1,title:e.$t("message.alarmValueSet.Popup_title")[e.Popup.type],visible:e.Popup.show,width:"667px"},on:{"update:visible":function(t){return e.$set(e.Popup,"show",t)}}},[r("div",{staticClass:"dialog_content"},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:"edit"===e.Popup.type,expression:"Popup.type === 'edit'"}],ref:"addEditForm",staticClass:"dialogFormBox",attrs:{size:"medium",model:e.addEditForm,rules:e.addEditRules,"label-width":"120px"}},[r("el-form-item",{attrs:{label:e.$t("message.alarmValueSet.dialog_edit.deviceId"),prop:"waterMeterNo"}},[r("el-input",{attrs:{disabled:"",placeholder:e.$t("message.alarmValueSet.placeholder")},model:{value:e.addEditForm.waterMeterNo,callback:function(t){e.$set(e.addEditForm,"waterMeterNo",t)},expression:"addEditForm.waterMeterNo"}})],1),r("el-form-item",{attrs:{label:e.$t("message.alarmValueSet.dialog_edit.isEnable"),prop:"isEnable"}},[r("el-radio-group",{model:{value:e.addEditForm.isEnable,callback:function(t){e.$set(e.addEditForm,"isEnable",t)},expression:"addEditForm.isEnable"}},[r("el-radio",{attrs:{label:0}},[e._v(e._s(e.$t("message.alarmValueSet.dialog_edit.isEnableArr")[0]))]),r("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("message.alarmValueSet.dialog_edit.isEnableArr")[1]))])],1)],1),r("el-form-item",{attrs:{label:e.$t("message.alarmValueSet.dialog_edit.name"),prop:"waterMeterName"}},[r("el-input",{attrs:{placeholder:e.$t("message.alarmValueSet.placeholder")},model:{value:e.addEditForm.waterMeterName,callback:function(t){e.$set(e.addEditForm,"waterMeterName",t)},expression:"addEditForm.waterMeterName"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.installLocation")}},[r("el-input",{attrs:{placeholder:e.$t("message.alarmValueSet.placeholder")},model:{value:e.addEditForm.waterPosition,callback:function(t){e.$set(e.addEditForm,"waterPosition",t)},expression:"addEditForm.waterPosition"}})],1),r("el-form-item",{attrs:{label:e.$t("message.alarmValueSet.dialog_edit.lng")}},[r("el-input",{attrs:{disabled:"",placeholder:e.$t("message.alarmValueSet.placeholder")},model:{value:e.addEditForm.lng,callback:function(t){e.$set(e.addEditForm,"lng",t)},expression:"addEditForm.lng"}},[r("template",{slot:"append"},[r("el-link",{attrs:{type:"primary"},on:{click:e.toGetLocalFn}},[e._v(e._s(e.$t("message.companyDiagram.dialog_ProjectPop_up.coordinatePicking")))])],1)],2)],1),r("el-form-item",{attrs:{label:e.$t("message.alarmValueSet.dialog_edit.lat")}},[r("el-input",{attrs:{disabled:"",placeholder:e.$t("message.alarmValueSet.placeholder")},model:{value:e.addEditForm.lat,callback:function(t){e.$set(e.addEditForm,"lat",t)},expression:"addEditForm.lat"}})],1),r("el-form-item",{attrs:{label:e.$t("message.alarmValueSet.dialog_edit.pusher")}},[r("el-select",{attrs:{multiple:"",placeholder:e.$t("message.alarmValueSet.placeholder_select")},model:{value:e.addEditForm.alarmPushWorkerId,callback:function(t){e.$set(e.addEditForm,"alarmPushWorkerId",t)},expression:"addEditForm.alarmPushWorkerId"}},e._l(e.options,(function(e){return r("el-option",{key:e.workerId,attrs:{label:e.workerName,value:e.workerId}})})),1)],1),r("div",{staticClass:"dialog-footer"},[r("el-button",{staticClass:"cancleBtn",attrs:{icon:"el-icon-circle-close",size:"medium"},on:{click:function(t){e.Popup.show=!1}}},[e._v(e._s(e.$t("message.alarmValueSet.cancel"))+" ")]),r("el-button",{attrs:{type:"primary",icon:"el-icon-circle-check",size:"medium"},on:{click:e.submit}},[e._v(e._s(e.$t("message.alarmValueSet.save"))+" ")])],1)],1),"threshold"===e.Popup.type?r("el-form",{ref:"warningForm",staticClass:"dialogFormBox yj-dialogFormBox",attrs:{size:"medium","label-width":"140px"}},[e._l(e.thresholdArr,(function(t,a){return r("el-form-item",{key:a,attrs:{label:t.monthNum+e.$t("message.energyManage.monthUseWater2"),prop:"pm25Warning"}},[r("el-input",{attrs:{placeholder:e.$t("message.alarmValueSet.placeholder")},model:{value:t.thresholdValue,callback:function(a){e.$set(t,"thresholdValue",a)},expression:"item.thresholdValue"}})],1)})),r("div",{staticClass:"dialog-footer"},[r("el-button",{staticClass:"cancleBtn",attrs:{icon:"el-icon-circle-close",size:"medium"},on:{click:function(t){e.Popup.show=!1}}},[e._v(e._s(e.$t("message.alarmValueSet.cancel"))+" ")]),r("el-button",{attrs:{type:"primary",icon:"el-icon-circle-check",size:"medium"},on:{click:e.submit}},[e._v(e._s(e.$t("message.alarmValueSet.save"))+" ")])],1)],2):e._e()],1)]),e.showMap?r("gd-map",{on:{closeMap:e.closeMap,save:e.getLngLat}}):e._e()],1)}),[],!1,null,null,null);t.default=s.exports},"0e0b":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAb5JREFUKBVjZCAChK76z/zv5o8KJkaGg6trOI/AtDDBGLjo////M/65/mMukDb4+49hUUjjd2eYWoKaQ5q/T2Bg/O8B1PCElZHJ+y8Dw5yglu/yIAPwag5q/N70j4HRkEWYU4WBgVHsz/+/GQyMDN9Z/zNx4dUc3PSt6D/jfy8uAQ6f1dmMX9hYGaqBPkhjZGJoX1nLfh2n5qCm7yn/GRiTOLg4PZbmMX6K7Pkv8usXw3ZGRsbCdTWci0EaQQDD2UAbwxj+M5SzsXO4LS9hfJPU+Z/3x7fvO4AqF62t45gB0QYhGZE5IY0/PP8y/J/GwsTgtLqW837C/P8cHx//2M7wn/H0+nqOMmS1IDbcZmAI2v1j/L8WGJczQRob9v9n+fT4+0qgK25j0wjSDLYZFJfBTd+fAQOj7x/QyYz/meIZGP6H/2dkYNev5YhsYGT8B1KMDsA2R7T8VAJKPFlby9XN+J8xFBjKa4EaRUTFOWJwaQQZBNb8698/I6AbHgQ2f3cChqgXUPwUCw9H8Kx0xt8gRbgAWDNQAz8warSBjkv6x8jwDBy3RYzfcWmCiTMCU5EjjEMqzQLUkE6qJph6AErYncWlgAYnAAAAAElFTkSuQmCC"},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},"15af":function(e,t,a){"use strict";var r=(a("d81d"),a("b0c0"),a("ac1f"),a("841c"),{props:{addProjectForm:{type:Object,default:{}}},name:"gd-map",data:function(){return{coordinateInfo:{city:"",lng:"",lat:""},map:{},auto:{},placeSearch:{},dialogVisible:!0}},mounted:function(){var e=this;this.coordinateInfo.city=this.addProjectForm.areaName,this.coordinateInfo.lng=this.addProjectForm.longitude,this.coordinateInfo.lat=this.addProjectForm.latitude,this.$nextTick((function(){e.initMap()}))},methods:{initMap:function(){var e=this;this.map=new AMap.Map("container",{resizeEnable:!0,center:[""!=this.addProjectForm.longitude?this.addProjectForm.longitude:"112.5",""!=this.addProjectForm.latitude?this.addProjectForm.latitude:"23"]});this.auto=new AMap.Autocomplete({input:"tipinput"}),this.placeSearch=new AMap.PlaceSearch({map:this.map}),AMap.event.addListener(this.auto,"select",this.select),this.map.on("click",(function(t){e.coordinateInfo.lng=t.lnglat.getLng(),e.coordinateInfo.lat=t.lnglat.getLat()}))},select:function(e){this.placeSearch.setCity(e.poi.adcode),this.placeSearch.search(e.poi.name)},search:function(){},submit:function(){this.$emit("save",this.coordinateInfo)},closeMap:function(){this.$emit("closeMap",!1)}}}),n=(a("fbaf"),a("2877")),i=Object(n.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:e.$t("message.alarmValueSet.coordinatePick"),visible:e.dialogVisible,"modal-append-to-body":!1,width:"80%"},on:{close:e.closeMap,"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"coordinate-picking",attrs:{slot:"default"},slot:"default"},[e._v(" "+e._s(e.$t("message.alarmValueSet.gdAddress"))+": "),a("el-input",{attrs:{size:"medium",id:"tipinput",placeholder:e.$t("message.alarmValueSet.placeholder")},model:{value:e.coordinateInfo.city,callback:function(t){e.$set(e.coordinateInfo,"city",t)},expression:"coordinateInfo.city"}}),e._v(" "+e._s(e.$t("message.alarmValueSet.longitude"))+": "),a("el-input",{attrs:{size:"medium",placeholder:e.$t("message.alarmValueSet.placeholder")},model:{value:e.coordinateInfo.lng,callback:function(t){e.$set(e.coordinateInfo,"lng",t)},expression:"coordinateInfo.lng"}}),e._v(" "+e._s(e.$t("message.alarmValueSet.latitude"))+": "),a("el-input",{attrs:{size:"medium",placeholder:e.$t("message.alarmValueSet.placeholder")},model:{value:e.coordinateInfo.lat,callback:function(t){e.$set(e.coordinateInfo,"lat",t)},expression:"coordinateInfo.lat"}}),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.submit}},[e._v(" "+e._s(e.$t("message.alarmValueSet.submit"))+" ")])],1),a("div",{attrs:{id:"container"}})])],1)}),[],!1,null,"7f2e726e",null);t.a=i.exports},"2edd":function(e,t,a){"use strict";var r=a("6a64");a.n(r).a},"4a06":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"h",(function(){return i})),a.d(t,"f",(function(){return o})),a.d(t,"m",(function(){return s})),a.d(t,"q",(function(){return l})),a.d(t,"i",(function(){return c})),a.d(t,"p",(function(){return d})),a.d(t,"e",(function(){return u})),a.d(t,"k",(function(){return m})),a.d(t,"o",(function(){return p})),a.d(t,"n",(function(){return g})),a.d(t,"v",(function(){return f})),a.d(t,"d",(function(){return h})),a.d(t,"u",(function(){return b})),a.d(t,"c",(function(){return v})),a.d(t,"r",(function(){return j})),a.d(t,"l",(function(){return w})),a.d(t,"t",(function(){return S})),a.d(t,"b",(function(){return M})),a.d(t,"j",(function(){return x})),a.d(t,"g",(function(){return A})),a.d(t,"s",(function(){return y}));var r=a("22b6"),n=function(e){return Object(r.b)("xmgl/baseRole/add",e)},i=function(e){return Object(r.b)("xmgl/baseRole/edit",e)},o=function(e){return Object(r.b)("xmgl/baseRole/delete",e)},s=function(e){return Object(r.b)("xmgl/baseRole/getProjectBaseRoleList",e)},l=function(e){return Object(r.b)("xmgl/baseAuthority/getRoleAuthorityList",e)},c=function(e){return Object(r.b)("xmgl/baseAuthority/grantAuthorityRole",e)},d=function(e){return Object(r.b)("xmgl/baseMenu/getProjectModuleGroupMenuList",e)},u=function(e){return Object(r.b)("xmgl/systemUser/addProjectUser",e)},m=function(e){return Object(r.b)("xmgl/systemUser/editProjectUser",e)},p=function(e){return Object(r.b)("xmgl/systemUser/getProjectChilderSystemUserList",e)},g=function(e){return Object(r.b)("xmgl/workerInfo/getLaborManagementInfoList",e)},f=function(e){return Object(r.b)("xmgl/userEnterprise/selectUserEnterpriseByUserId",e)},h=function(e){return Object(r.b)("xmgl/userEnterprise/addOrEditUserEnterprise",e)},b=function(e){return Object(r.b)("xmgl/userDevAuthority/selectUserDevAuthorityByUserId",e)},v=function(e){return Object(r.b)("xmgl/userDevAuthority/addOrEditUserDevAuthority",e)},j=function(e){return Object(r.b)("xmgl/videoItem/selecAllVideoList",e)},w=function(e){return Object(r.b)("xmgl/smsPlatformConfig/editSmsConfig",e)},S=function(e){return Object(r.b)("xmgl/smsPlatformConfig/selectSmsPlatformConfig",e)},M=function(e){return Object(r.b)("xmgl/noticeRemindSound/add",e)},x=function(e){return Object(r.b)("xmgl/noticeRemindSound/edit",e)},A=function(e){return Object(r.b)("xmgl/noticeRemindSound/delete",e)},y=function(e){return Object(r.b)("xmgl/noticeRemindSound/list",e)}},"6a64":function(e,t,a){},"7e6a":function(e,t,a){"use strict";a.d(t,"j",(function(){return n})),a.d(t,"a",(function(){return i})),a.d(t,"k",(function(){return o})),a.d(t,"m",(function(){return s})),a.d(t,"c",(function(){return l})),a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return d})),a.d(t,"g",(function(){return u})),a.d(t,"b",(function(){return m})),a.d(t,"l",(function(){return p})),a.d(t,"h",(function(){return g})),a.d(t,"f",(function(){return f})),a.d(t,"i",(function(){return h}));var r=a("22b6"),n=function(e){return Object(r.b)("xmgl/projectMeterSupplier/selelctProjectMeterSupplier",e)},i=function(e){return Object(r.b)("xmgl/projectMeterSupplier/addOrUpdateProjectMeterSupplier",e)},o=function(e){return Object(r.a)("xmgl/waterSupplierRecord/list",e)},s=function(e){return Object(r.b)("xmgl/waterMeterAlarm/list",e)},l=function(e){return Object(r.b)("xmgl/waterMeter/add",e)},c=function(e){return Object(r.b)("xmgl/waterMeter/edit",e)},d=function(e){return Object(r.b)("xmgl/waterMeter/delete",e)},u=function(e){return Object(r.b)("xmgl/waterMeter/list",e)},m=function(e){return Object(r.b)("xmgl/waterMeterThreshold/addOrUpdateWaterMeterThreshold",e)},p=function(e){return Object(r.b)("xmgl/waterMeterThreshold/selelctWaterMeterThreshold",e)},g=function(e){return Object(r.b)("xmgl/waterMeterMonthRecord/selectWaterMeterStatistics",e)},f=function(e){return Object(r.b)("xmgl/waterMeterMonthRecord/getCurrentMonthMeterRecord",e)},h=function(e){return Object(r.b)("xmgl/waterMeterRecordDetail/selectWaterRecordDetailPageList",e)}},"841c":function(e,t,a){"use strict";var r=a("d784"),n=a("825a"),i=a("1d80"),o=a("129f"),s=a("14c3");r("search",1,(function(e,t,a){return[function(t){var a=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,a):new RegExp(t)[e](String(a))},function(e){var r=a(t,e,this);if(r.done)return r.value;var i=n(e),l=String(this),c=i.lastIndex;o(c,0)||(i.lastIndex=0);var d=s(i,l);return o(i.lastIndex,c)||(i.lastIndex=c),null===d?-1:d.index}]}))},d81d:function(e,t,a){"use strict";var r=a("23e7"),n=a("b727").map,i=a("1dde"),o=a("ae40"),s=i("map"),l=o("map");r({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},ed05:function(e,t,a){},fbaf:function(e,t,a){"use strict";var r=a("ed05");a.n(r).a}}]); |