Newer
Older
smartwell_front_dz / smartwell / static / js / 2101.e0c4ace9.js
wangxitong on 11 Sep 2023 32 KB first commit
(self["webpackChunknewfront"]=self["webpackChunknewfront"]||[]).push([[2101],{81618:function(e){"use strict";(function(t,o){e.exports=o()})(0,(function(){function e(e){var r=[];return e.AMapUI&&r.push(t(e.AMapUI)),e.Loca&&r.push(o(e.Loca)),Promise.all(r)}function t(e){return new Promise((function(t,o){var n=[];if(e.plugins)for(var s=0;s<e.plugins.length;s+=1)-1==a.AMapUI.plugins.indexOf(e.plugins[s])&&n.push(e.plugins[s]);if(i.AMapUI===r.failed)o("前次请求 AMapUI 失败");else if(i.AMapUI===r.notload){i.AMapUI=r.loading,a.AMapUI.version=e.version||a.AMapUI.version,s=a.AMapUI.version;var p=document.body||document.head,d=document.createElement("script");d.type="text/javascript",d.src="https://webapi.amap.com/ui/"+s+"/main.js",d.onerror=function(e){i.AMapUI=r.failed,o("请求 AMapUI 失败")},d.onload=function(){if(i.AMapUI=r.loaded,n.length)window.AMapUI.loadUI(n,(function(){for(var e=0,o=n.length;e<o;e++){var r=n[e].split("/").slice(-1)[0];window.AMapUI[r]=arguments[e]}for(t();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()}));else for(t();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()},p.appendChild(d)}else i.AMapUI===r.loaded?e.version&&e.version!==a.AMapUI.version?o("不允许多个版本 AMapUI 混用"):n.length?window.AMapUI.loadUI(n,(function(){for(var e=0,o=n.length;e<o;e++){var r=n[e].split("/").slice(-1)[0];window.AMapUI[r]=arguments[e]}t()})):t():e.version&&e.version!==a.AMapUI.version?o("不允许多个版本 AMapUI 混用"):l.AMapUI.push((function(e){e?o(e):n.length?window.AMapUI.loadUI(n,(function(){for(var e=0,o=n.length;e<o;e++){var r=n[e].split("/").slice(-1)[0];window.AMapUI[r]=arguments[e]}t()})):t()}))}))}function o(e){return new Promise((function(t,o){if(i.Loca===r.failed)o("前次请求 Loca 失败");else if(i.Loca===r.notload){i.Loca=r.loading,a.Loca.version=e.version||a.Loca.version;var n=a.Loca.version,s=a.AMap.version.startsWith("2"),p=n.startsWith("2");if(s&&!p||!s&&p)o("JSAPI 与 Loca 版本不对应!!");else{s=a.key,p=document.body||document.head;var d=document.createElement("script");d.type="text/javascript",d.src="https://webapi.amap.com/loca?v="+n+"&key="+s,d.onerror=function(e){i.Loca=r.failed,o("请求 AMapUI 失败")},d.onload=function(){for(i.Loca=r.loaded,t();l.Loca.length;)l.Loca.splice(0,1)[0]()},p.appendChild(d)}}else i.Loca===r.loaded?e.version&&e.version!==a.Loca.version?o("不允许多个版本 Loca 混用"):t():e.version&&e.version!==a.Loca.version?o("不允许多个版本 Loca 混用"):l.Loca.push((function(e){e?o(e):o()}))}))}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var r;(function(e){e.notload="notload",e.loading="loading",e.loaded="loaded",e.failed="failed"})(r||(r={}));var a={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},i={AMap:r.notload,AMapUI:r.notload,Loca:r.notload},l={AMap:[],AMapUI:[],Loca:[]},n=[],s=function(e){"function"==typeof e&&(i.AMap===r.loaded?e(window.AMap):n.push(e))};return{load:function(t){return new Promise((function(o,l){if(i.AMap==r.failed)l("");else if(i.AMap==r.notload){var p=t.key,d=t.version,c=t.plugins;p?(window.AMap&&"lbs.amap.com"!==location.host&&l("禁止多种API加载方式混用"),a.key=p,a.AMap.version=d||a.AMap.version,a.AMap.plugins=c||a.AMap.plugins,i.AMap=r.loading,d=document.body||document.head,window.___onAPILoaded=function(a){if(delete window.___onAPILoaded,a)i.AMap=r.failed,l(a);else for(i.AMap=r.loaded,e(t).then((function(){o(window.AMap)}))["catch"](l);n.length;)n.splice(0,1)[0]()},c=document.createElement("script"),c.type="text/javascript",c.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+a.AMap.version+"&key="+p+"&plugin="+a.AMap.plugins.join(","),c.onerror=function(e){i.AMap=r.failed,l(e)},d.appendChild(c)):l("请填写key")}else if(i.AMap==r.loaded)if(t.key&&t.key!==a.key)l("多个不一致的 key");else if(t.version&&t.version!==a.AMap.version)l("不允许多个版本 JSAPI 混用");else{if(p=[],t.plugins)for(d=0;d<t.plugins.length;d+=1)-1==a.AMap.plugins.indexOf(t.plugins[d])&&p.push(t.plugins[d]);p.length?window.AMap.plugin(p,(function(){e(t).then((function(){o(window.AMap)}))["catch"](l)})):e(t).then((function(){o(window.AMap)}))["catch"](l)}else if(t.key&&t.key!==a.key)l("多个不一致的 key");else if(t.version&&t.version!==a.AMap.version)l("不允许多个版本 JSAPI 混用");else{var u=[];if(t.plugins)for(d=0;d<t.plugins.length;d+=1)-1==a.AMap.plugins.indexOf(t.plugins[d])&&u.push(t.plugins[d]);s((function(){u.length?window.AMap.plugin(u,(function(){e(t).then((function(){o(window.AMap)}))["catch"](l)})):e(t).then((function(){o(window.AMap)}))["catch"](l)}))}}))},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,a={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},i={AMap:r.notload,AMapUI:r.notload,Loca:r.notload},l={AMap:[],AMapUI:[],Loca:[]}}}}))},13816:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>k});o(73210),o(68309);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-form"},[t("el-form",{ref:"dataForm",attrs:{"label-position":e.labelPosition,rules:e.rules,model:e.wellForm,"label-width":"120px"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:9}},[t("el-form-item",{attrs:{label:"点位名称",prop:"wellName"}},[t("el-input",{attrs:{type:"text",placeholder:"必填"},model:{value:e.wellForm.wellName,callback:function(t){e.$set(e.wellForm,"wellName","string"===typeof t?t.trim():t)},expression:"wellForm.wellName"}})],1)],1),t("el-col",{attrs:{span:9,offset:3}},[t("el-form-item",{attrs:{label:"点位编号",prop:"wellCode"}},[t("el-input",{attrs:{type:"text",placeholder:"必填"},model:{value:e.wellForm.wellCode,callback:function(t){e.$set(e.wellForm,"wellCode","string"===typeof t?t.trim():t)},expression:"wellForm.wellCode"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:9}},[t("el-form-item",{attrs:{label:"点位类型",prop:"wellType"}},[t("el-select",{attrs:{placeholder:"选择点位类型",clearable:""},model:{value:e.wellForm.wellType,callback:function(t){e.$set(e.wellForm,"wellType",t)},expression:"wellForm.wellType"}},e._l(e.wellTypeList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1)],1),t("el-col",{attrs:{span:9,offset:3}},[t("el-form-item",{attrs:{label:"权属单位",prop:"deptid"}},[t("dept-select",{attrs:{size:"normal","need-top":e.deptShowTop,"dept-show":e.deptShow,"dept-type":"03",placeholder:"选择权属单位"},model:{value:e.wellForm.deptid,callback:function(t){e.$set(e.wellForm,"deptid",t)},expression:"wellForm.deptid"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:9}},[t("el-form-item",{attrs:{label:"井深(m)",prop:"deep"}},[t("el-input",{attrs:{type:"text",placeholder:"需要装液位监测仪的井必填"},model:{value:e.wellForm.deep,callback:function(t){e.$set(e.wellForm,"deep","string"===typeof t?t.trim():t)},expression:"wellForm.deep"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:9}},[t("el-form-item",{attrs:{label:"经度",prop:"coordinateX"}},[t("el-input",{attrs:{type:"text",placeholder:"必填"},model:{value:e.wellForm.coordinateX,callback:function(t){e.$set(e.wellForm,"coordinateX","string"===typeof t?t.trim():t)},expression:"wellForm.coordinateX"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-location-outline"},on:{click:e.mapSelect},slot:"append"})],1)],1)],1),t("el-col",{attrs:{span:9,offset:3}},[t("el-form-item",{attrs:{label:"纬度",prop:"coordinateY"}},[t("el-input",{attrs:{type:"text",placeholder:"必填"},model:{value:e.wellForm.coordinateY,callback:function(t){e.$set(e.wellForm,"coordinateY","string"===typeof t?t.trim():t)},expression:"wellForm.coordinateY"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"路标图片",prop:"images"}},[t("el-upload",{ref:"upload",class:{hide:e.hideUpload},attrs:{"before-upload":e.handleBeforeUpload,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"on-exceed":e.handleExceed,"on-change":e.handleChange,"on-success":e.handleSuccess,limit:4,"http-request":e.uploadFile,action:"string",multiple:"",accept:".jpg,.jpeg,.png ","list-type":"picture-card"}},[t("i",{staticClass:"el-icon-plus"})]),t("el-dialog",{attrs:{visible:e.dialogVisible,title:"图片预览","append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"imgBox"},[t("img",{staticStyle:{margin:"0 auto"},attrs:{src:e.dialogImageUrl,"max-height":"400px;",alt:""}})])])],1)],1)],1),t("el-row",{attrs:{gutter:1}},[t("el-form-item",{attrs:{label:"所在区域"}},[t("el-col",{attrs:{span:5}},[t("el-form-item",{attrs:{prop:"qu"}},[t("el-select",{attrs:{disabled:e.showArea,placeholder:"请选择所在区/县",clearable:""},model:{value:e.wellForm.qu,callback:function(t){e.$set(e.wellForm,"qu",t)},expression:"wellForm.qu"}},e._l(e.quList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),t("el-col",{staticClass:"line",attrs:{span:1}},[e._v(" 区/县 ")]),t("el-col",{attrs:{span:5}},[t("el-form-item",{attrs:{prop:"area"}},[t("el-select",{attrs:{disabled:e.showArea,placeholder:"请选择所在街道/镇",clearable:""},model:{value:e.wellForm.area,callback:function(t){e.$set(e.wellForm,"area",t)},expression:"wellForm.area"}},e._l(e.jiedaoList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),t("el-col",{staticClass:"line",attrs:{span:1}},[e._v(" 街道/镇 ")])],1)],1),t("el-row",{attrs:{gutter:1}},[t("el-col",{attrs:{span:15}},[t("el-form-item",{attrs:{label:"所在道路",prop:"road"}},[t("el-input",{attrs:{type:"text",placeholder:"非必填,建议填写,不填影响统计结果"},model:{value:e.wellForm.road,callback:function(t){e.$set(e.wellForm,"road","string"===typeof t?t.trim():t)},expression:"wellForm.road"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:15}},[t("el-form-item",{attrs:{label:"详细地址",prop:"position"}},[t("el-input",{attrs:{type:"text",placeholder:"必填"},model:{value:e.wellForm.position,callback:function(t){e.$set(e.wellForm,"position","string"===typeof t?t.trim():t)},expression:"wellForm.position"}},[t("el-button",{attrs:{slot:"append",size:"small",icon:"el-icon-refresh"},on:{click:e.generateAddress},slot:"append"},[e._v(" 坐标解析 ")])],1)],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:9}},[t("el-form-item",{attrs:{label:"井维护机构",prop:"responsibleDept"}},[t("el-select",{attrs:{disabled:e.showResponseDept,placeholder:"选择维护机构,默认同权属单位",clearable:""},model:{value:e.wellForm.responsibleDept,callback:function(t){e.$set(e.wellForm,"responsibleDept",t)},expression:"wellForm.responsibleDept"}},e._l(e.secondDeptTreeList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{staticStyle:{"margin-left":"120px","margin-bottom":"40px"},attrs:{span:15}},[t("el-button",{attrs:{size:"medium"},on:{click:e.resetForm}},[e._v(" 重置 ")]),t("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"medium"},on:{click:e.saveData}},[e._v(" 保存 ")])],1)],1)],1),t("detail-map-lon-lat",{ref:"detailMap",on:{getLonLat:e.getMapPostion}})],1)},a=[],i=o(66347),l=(o(74916),o(77601),o(21703),o(96647),o(54678),o(82772),o(40561),o(92222),o(50275)),n=o(79053),s=o(96831),p=o(9632),d=o(56955),c=o(62566),u=o(81037),m=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"append-to-body":"",title:"选择位置",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[t("el-row",[t("el-col",{staticClass:"overview-map-container",attrs:{span:24}},[t("a-map-container",{ref:"map",staticClass:"map-demo",staticStyle:{height:"300px"},attrs:{center:e.center,zoom:e.zoom,"base-layer":e.baseLayer,vid:"choose-position"},on:{ready:e.mapReady}})],1)],1),t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:5}},[t("el-input",{attrs:{type:"text",placeholder:"经度",disabled:""},model:{value:e.positionForm.longitude,callback:function(t){e.$set(e.positionForm,"longitude","string"===typeof t?t.trim():t)},expression:"positionForm.longitude"}})],1),t("el-col",{attrs:{span:5}},[t("el-input",{attrs:{type:"text",placeholder:"纬度",disabled:""},model:{value:e.positionForm.latitude,callback:function(t){e.$set(e.positionForm,"latitude","string"===typeof t?t.trim():t)},expression:"positionForm.latitude"}})],1),t("el-col",{attrs:{span:14}},[t("el-input",{attrs:{type:"text",placeholder:"详细地址",disabled:""},model:{value:e.positionForm.position,callback:function(t){e.$set(e.positionForm,"position","string"===typeof t?t.trim():t)},expression:"positionForm.position"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:e.saveData}},[e._v(" 确定 ")]),t("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 取消 ")])],1)],1)},h=[],f=o(95082),g=(o(21249),o(65069),o(20629)),w=o(97795);const A={name:"DetailMapLonLat",components:{AMapContainer:w.Z},props:{position:{type:Array,default:null}},data:function(){return{searchResultIcon:o(2449),searchResultSize:[24,30],marker:null,locationMarker:"",positionForm:{longitude:"",latitude:"",qu:"",area:"",position:""},map:null,baseLayer:"gaode_vec",center:[this.$store.getters.lng,this.$store.getters.lat],zoom:12,dialogFormVisible:!1}},computed:(0,f.Z)({},(0,g.Se)(["bodyHeight"])),methods:{mapReady:function(e){var t=this;this.map=e;var o=this.searchResultIcon,r=this.searchResultSize;this.center=this.position?this.position:[this.$store.getters.lng,this.$store.getters.lat],this.center&&(this.positionForm.longitude=this.center[0],this.positionForm.latitude=this.center[1],(0,c.Ww)(this.center).then((function(e){t.positionForm.position=e.formattedAddress,t.positionForm.qu=e.addressComponent.adcode})));var a=new window.AMap.Icon({size:(0,c.Pq)(r),image:o,imageSize:(0,c.Pq)(r)});this.locationMarker=new window.AMap.Marker({icon:a,position:this.position?this.position:[this.$store.getters.lng,this.$store.getters.lat],draggable:!0,cursor:"move"}),this.locationMarker.setMap(this.map),this.locationMarker.on("dragend",(function(e){t.positionForm.longitude=e.lnglat.lng,t.positionForm.latitude=e.lnglat.lat,t.reverse([e.lnglat.lng,e.lnglat.lat])}))},reverse:function(e){var t=this;(0,c.Ww)(e).then((function(e){t.positionForm.position=e.formattedAddress,t.positionForm.qu=e.addressComponent.adcode}))},initDialog:function(){this.dialogFormVisible=!0},saveData:function(){this.$emit("getLonLat",this.positionForm),this.dialogFormVisible=!1}}},v=A;var y=o(1001),F=(0,y.Z)(v,m,h,!1,null,"f4894300",null);const b=F.exports;var M=o(25108);const L={name:"AddWell",components:{DeptSelect:u.Z,detailMapLonLat:b},data:function(){var e=function(e,t,o){if(""!==t)if(!1===/^[+]{0,1}(\d+)$|^[+]{0,1}(\d+\.\d+)$/.test(t))o(new Error("请填写大于0的数字"));else{var r=parseFloat(t);r>10||r<0?o(new Error("请填写0到10数值")):o()}else o()},t=function(e,t,o){""!==t?!1===/^[+]{0,1}(\d+)$|^[+]{0,1}(\d+\.\d+)$/.test(t)?o(new Error("请填写大于0的数字")):o():o(new Error("经度不能为空"))},o=function(e,t,o){""!==t?!1===/^[+]{0,1}(\d+)$|^[+]{0,1}(\d+\.\d+)$/.test(t)?o(new Error("请填写大于0的数字")):o():o(new Error("纬度不能为空"))};return{dialogFormVisible:!1,dialogStatus:"",wellForm:{wellCode:"",wellName:"",wellType:"",deptid:"",deep:"",position:"",coordinateX:"",coordinateY:"",lngGaode:"",latGaode:"",photos:"",notes:"",qu:"",area:"",road:"",responsibleDept:""},deptProps:{parent:"pid",value:"id",label:"name",children:"children"},hideUpload:!1,fileList:[],imageList:[],deptTreeList:null,secondDeptTreeList:null,wellTypeList:null,quList:null,jiedaoList:null,textMap:{update:"编辑",create:"新增"},rules:{wellCode:[{required:!0,message:"点位编号不能为空",trigger:["blur","change"]}],wellName:[{required:!0,message:"点位名称不能为空",trigger:["blur","change"]}],position:[{required:!0,message:"井详细地址不能为空",trigger:["blur","change"]}],deep:[{required:!1,trigger:["blur","change"],validator:e}],coordinateX:[{required:!0,trigger:["blur","change"],validator:o}],coordinateY:[{required:!0,trigger:["blur","change"],validator:t}],deptid:[{required:!0,message:"组织机构必选",trigger:"change"}],wellType:[{required:!0,message:"点位类型必选",trigger:"change"}]},uploadPath:this.baseConfig.baseUrl+"/imageUpload",dialogImageUrl:"",dialogVisible:!1,labelPosition:"right",responseAssignShow:!1,deptShowTop:!1,deptShow:!0}},computed:{showResponseDept:function(){return""===this.wellForm.deptid||!(this.secondDeptTreeList&&this.secondDeptTreeList.length>=1)},showArea:function(){return""===this.wellForm.deptid},firstDept:function(){return this.wellForm.deptid},qu:function(){return this.wellForm.qu},area:function(){return this.wellForm.area}},watch:{firstDept:function(e){""!==e&&(this.wellForm.qu="",this.wellForm.area="",this.wellForm.responsibleDept="",this.fetchSecondDeptTree(),this.fetchArea1())},qu:function(e){""!==e&&this.fetchArea2()}},created:function(){this.fetchWellType(),this.imageList=[],this.fileList=[]},methods:{getMapPostion:function(e){this.wellForm.lngGaode=e.longitude,this.wellForm.latGaode=e.latitude,this.wellForm.coordinateX=e.longitude,this.wellForm.coordinateY=e.latitude,this.wellForm.qu=e.qu,this.wellForm.area=e.area,this.wellForm.position=e.position},generateAddress:function(){var e=this;this.wellForm.deptid?this.wellForm.coordinateX&&this.wellForm.coordinateY&&(0,c.Hk)([this.wellForm.coordinateX,this.wellForm.coordinateY]).then((function(t){(0,c.Ww)(t).then((function(t){e.wellForm.position=t.formattedAddress,e.wellForm.qu=t.addressComponent.adcode,e.wellForm.road=t.addressComponent.street}))})):this.$message.warning("请先选择权属单位")},mapSelect:function(){this.$refs.detailMap.initDialog()},fetchSecondDeptTree:function(){var e=this,t={pid:this.wellForm.deptid,deptType:"04"};(0,n.t5)(t).then((function(t){M.log(t.data),t.data.list&&(e.secondDeptTreeList=(0,l.WP)(t.data.list,e.wellForm.deptid))}))},fetchWellType:function(){var e=this;(0,p.jo)().then((function(t){e.wellTypeList=[];var o,r=e.$store.getters.wellTypes,a=(0,i.Z)(t.data);try{for(a.s();!(o=a.n()).done;){var l=o.value;-1!==r.indexOf(l.value)&&e.wellTypeList.push(l)}}catch(n){a.e(n)}finally{a.f()}e.wellTypeList.length<=1&&(e.showWellType=!1)}))},fetchArea1:function(){var e=this;(0,s.t9)(this.wellForm.deptid).then((function(t){if(200===t.code){var o=t.data.area;(0,s.RT)(o).then((function(t){e.quList=t.data}))}}))},fetchArea2:function(){var e=this;(0,s.RT)(this.wellForm.qu).then((function(t){e.jiedaoList=t.data}))},cancel:function(){var e=this;this.dialogFormVisible=!1,this.fileList=[],this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},resetForm:function(){var e=this;this.wellForm={wellCode:"",wellName:"",wellType:"",deptid:"",deep:"",position:"",coordinateX:"",coordinateY:"",photos:"",notes:"",qu:"",area:"",responsibleDept:""},this.$refs.upload.clearFiles(),this.fileList=[],this.imageList=[],this.hideUpload=this.fileList.length>=4,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},saveData:function(){var e=this;this.wellForm.photos="";for(var t=this.fileList.length<4?this.fileList.length:4,o=0;o<t;o++){var r=this.fileList[o];this.wellForm.photos+=r.url+";"}if(""===this.wellForm.responsibleDept){if(this.secondDeptTreeList&&this.secondDeptTreeList.length>0)return void this.$message.warning("必须选择维护机构");this.wellForm.responsibleDept=this.wellForm.deptid}this.$refs["dataForm"].validate((function(t){t&&(0,p.jA)(e.wellForm).then((function(t){M.log("新增井"),200===t.code&&(e.$message.success("新增成功!"),e.resetForm())}))}))},uploadFile:function(e){var t=this;M.log("uploadFile:"+e.file.name),(0,d.W)(e).then((function(o){200===o.code&&t.fileList.push({name:e.file.name,url:o.data})}))},handleBeforeUpload:function(e){var t="image/jpeg"===e.type||"image/png"===e.type,o=!0,r=e.size/1024/1024<5;for(var a in t||(this.$message.error("上传图片只能是 JPG 或 PNG 格式!"),o=!1),r||(this.$message.error("上传图片大小不能超过 5MB!"),o=!1),this.fileList)this.fileList[a].name===e.name&&(this.$message.error("该图片已上传过,请选择其他图片"),o=!1);return o},handleRemove:function(e,t){for(var o in M.log("handleRemove"),this.fileList)if(this.fileList[o].name===e.name)return this.fileList.splice(o,1),void(this.hideUpload=this.fileList.length>=4);this.handleChange()},handleExceed:function(e,t){M.log("handleExceed"),this.$message.warning("限制选择 4 张图片,本次选择了 ".concat(e.length," 张图片,共选择了 ").concat(e.length+t.length," 张图片"))},handlePictureCardPreview:function(e){M.log("handlePictureCardPreview"),this.dialogImageUrl=e.url,this.dialogVisible=!0},handleChange:function(e,t){M.log("handleChange"),this.hideUpload=!!t&&t.length>=4},handleSuccess:function(e,t,o){M.log("handleSuccess");var r=this.baseConfig.baseUrl+"/static/";200===e.code?(this.fileList.push({name:t.file.name,url:r+e.data}),this.handleChange()):this.$message.warning(e.message)}}},U=L;var q=(0,y.Z)(U,r,a,!1,null,null,null);const k=q.exports},69098:(e,t,o)=>{"use strict";var r=o(77710),a=o(95631);r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},51532:(e,t,o)=>{o(69098)},56955:(e,t,o)=>{"use strict";o.d(t,{W:()=>l,f:()=>i});var r=o(84471),a="";function i(e){return(0,r.Z)({url:a+"template/download",method:"get",params:{filename:e},responseType:"blob"})}function l(e){var t=new FormData;return t.append("file",e.file),(0,r.Z)({url:a+"imageUpload",method:"post",headers:{"Content-Type":"multipart/form-data"},data:t})}},96831:(e,t,o)=>{"use strict";o.d(t,{BS:()=>s,RT:()=>l,SV:()=>n,Se:()=>p,kg:()=>c,s2:()=>a,t9:()=>i,wm:()=>d});var r=o(84471);function a(e){return(0,r.Z)({url:"sys/area/listPage",method:"get",params:e})}function i(e){return(0,r.Z)({url:"config/getAreaByDept",method:"get",params:{deptId:e}})}function l(e){return(0,r.Z)({url:"sys/area/list",method:"get",params:{pid:e}})}function n(e){return(0,r.Z)({url:"sys/area/list",method:"get",params:e})}function s(){return(0,r.Z)({url:"sys/dict/code/levelType",method:"get"})}function p(e){return(0,r.Z)({url:"sys/area/add",method:"post",data:e})}function d(e){return(0,r.Z)({url:"sys/area/update",method:"post",data:e})}function c(e){return(0,r.Z)({url:"sys/area/delete",method:"post",data:{id:e}})}},79053:(e,t,o)=>{"use strict";o.d(t,{CZ:()=>n,MB:()=>s,U4:()=>a,cd:()=>l,mv:()=>p,t5:()=>i});var r=o(84471);function a(e){return(0,r.Z)({url:"sys/dept/list",method:"get",params:e})}function i(e){return(0,r.Z)({url:"sys/dept/tree",method:"get",params:e})}function l(e){return(0,r.Z)({url:"sys/role/treeByRoleId",method:"get",params:{roleId:e}})}function n(e){return(0,r.Z)({url:"sys/dept/add",method:"post",data:e})}function s(e){return(0,r.Z)({url:"sys/dept/update",method:"post",data:e})}function p(e){return(0,r.Z)({url:"sys/dept/delete",method:"post",data:{id:e}})}},9632:(e,t,o)=>{"use strict";o.d(t,{Ek:()=>u,HL:()=>g,M8:()=>s,ej:()=>d,fP:()=>A,jA:()=>c,jo:()=>p,jx:()=>h,ke:()=>f,lL:()=>w,o5:()=>y,vE:()=>n,yW:()=>m,z1:()=>v});var r=o(95082),a=o(84471),i=o(80129),l=o.n(i);function n(e){return(0,a.Z)({url:"well/list",method:"get",params:e})}function s(e){return(0,a.Z)({url:"well/info",method:"get",params:{id:e}})}function p(e){return(0,a.Z)({url:"/sys/dict/code/sluicewellType",method:"get",params:e})}function d(e){return(0,a.Z)({url:"/sys/dict/code/communicationType",method:"get",params:e})}function c(e){return(0,a.Z)({url:"well/add",method:"post",params:e})}function u(e){return(0,a.Z)({url:"well/update",method:"post",params:e})}function m(e){return(0,a.Z)({url:"well/delete",method:"post",params:{ids:e},paramsSerializer:function(e){return l().stringify(e,{indices:!1})}})}function h(e){var t=new FormData;return t.append("file",e),(0,a.Z)({url:"well/batchImport",method:"post",headers:{"Content-Type":"multipart/form-data"},data:t})}function f(e,t){return(0,a.Z)((0,r.Z)((0,r.Z)({url:"well/batchExport",method:"get",timeout:12e4,params:e},t),{},{responseType:"blob"}))}function g(e){return(0,a.Z)({url:"well/watchDataByWell",method:"get",params:{id:e}})}function w(e,t){return(0,a.Z)({url:"well/bfcf",method:"post",params:{wellId:e,bfzt:t}})}function A(e){return(0,a.Z)({url:"well/batchBfcf",method:"post",params:e})}function v(){return(0,a.Z)({url:"well/countByBfzt",method:"get"})}function y(e){return(0,a.Z)({url:"well/selectOne",method:"get",params:e})}},50275:(e,t,o)=>{"use strict";o.d(t,{P7:()=>d,WP:()=>l,qd:()=>i});var r=o(89584),a=o(66347);o(21249),o(41539),o(70189),o(78783),o(33948),o(40561);function i(e){if(e&&e.length>0){var t,o=!1,r=e[0].pid,i=(0,a.Z)(e);try{for(i.s();!(t=i.n()).done;){var l=t.value;if(l.pid!==r){o=!0;break}}}catch(n){i.e(n)}finally{i.f()}return o}return!1}function l(e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=p(e);if(o.length>1)return e;var r=s(n(e,o[0],t));return r}function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",o=arguments.length>2?arguments[2]:void 0,r=function t(o){for(var r=[],a=0;a<e.length;a++){var i=e[a],l=""+i.id,n=""+i.pid;n===o&&(i.children=t(l),r.push(i))}return r};if(!o)return r(t);var i,l=1,n=[],s=(0,a.Z)(e);try{for(s.s();!(i=s.n()).done;){var p=i.value,d=""+p.id;if(d===t)return p.children=r(t),l=0,n.push(p),n}}catch(c){s.e(c)}finally{s.f()}return 1===l?r(t):void 0}function s(e){var t=function e(t){return t.map((function(t){return t&&t.children&&t.children.length?e(t.children):delete t.children,t})),t};return t(e)}function p(e){var t=new Set;if(e){var o,i=(0,a.Z)(e);try{for(i.s();!(o=i.n()).done;){var l=o.value;t.add(l.pid)}}catch(c){i.e(c)}finally{i.f()}var n,s=(0,a.Z)(e);try{for(s.s();!(n=s.n()).done;){var p=n.value;t.has(p.id)&&t["delete"](p.id)}}catch(c){s.e(c)}finally{s.f()}var d=(0,r.Z)(t);return d}return null}function d(e){for(var t=[],o=[],r=0;r<e.length;r++)"true"!==e[r].open&&!0!==e[r].open||t.push(e[r].id),"true"!==e[r].checked&&!0!==e[r].checked||o.push(e[r].id);return[t,o]}},19668:(e,t,o)=>{"use strict";const r=o(78998);e.exports=function(){const e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},78998:e=>{"use strict";function t(e){let t=!1,o=!1,r=!1;for(let a=0;a<e.length;a++){const i=e[a];t&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(e=e.substr(0,a)+"-"+e.substr(a),t=!1,r=o,o=!0,a++):o&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(e=e.substr(0,a-1)+"-"+e.substr(a-1),r=o,o=!1,t=!0):(t=i.toLowerCase()===i,r=o,o=i.toUpperCase()===i)}return e}e.exports=function(e){if(e=arguments.length>1?Array.from(arguments).map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim(),0===e.length)return"";if(1===e.length)return e.toLowerCase();if(/^[a-z0-9]+$/.test(e))return e;const o=e!==e.toLowerCase();return o&&(e=t(e)),e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((e,t)=>t.toUpperCase()))}},2449:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAABECAYAAAAhmH0UAAAKL2lDQ1BJQ0MgcHJvZmls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OHH5Q4fvDtz0+O771GRw41HbSWgMrQtoOq61BjI8NrgQzBjt6/2jp1dPTMRTc+/pXbn9kK4JWnD5wc3zulwRcfpfHHRoZngNND2w7OrDrU2MhwH3AJzY9rWwTn0Qf//HbXxGV35LYC/PnNrh8ITkafAf4myIc3yjIIDI6NDFeAyaFtB0urMqfGRoYHCHbFmwGtBYaAK4DB4sQXU355esovT0+dOjp6Ugt+BbBZ1z1fSQMbdF+roqmLWXpD+Co9pxaWy8ePjJ+nnqvrFpolhXRf010xFMsmN3787MhqnmFoB+o4cPkS2joGXNOorZnJ7043WYsdW2r9qJckLRejldWqkan/+mE5Q2ETHNwY1HXdBpBSE0OxOA8yqYoTpdWEajQKTU16i8XXmaPTwIwqTnTN+c7oyyD4mVFvo/MFHP1deIhD6GHlLXK+ZaCsihPdd76Lxn9JX80rreDtd2z4/VeKyf+w/AOVFtUOX/vFHAAAAABJRU5ErkJggg=="},13087:(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});o(21703),o(96647);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},62833:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});o(69070);function r(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,o){return t&&r(e.prototype,t),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}}}]);