Files
lz_web_qwgl/qwgl/static/js/chunk-4187f9be.052facaf.js

1 line
17 KiB
JavaScript
Raw Normal View History

2025-07-21 21:28:27 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4187f9be"],{"10bf":function(e,t,l){},"250b":function(e,t,l){"use strict";l("4127")},"38ea":function(e,t,l){"use strict";l.d(t,"a",(function(){return c})),l.d(t,"c",(function(){return r})),l.d(t,"e",(function(){return n})),l.d(t,"b",(function(){return d})),l.d(t,"d",(function(){return i})),l.d(t,"f",(function(){return b}));var a=l("b775");const o="/mosty-api/mosty-jmxf";function c(e){return Object(a["a"])({url:o+"/tbJcglJwz/addJwz",method:"post",data:e})}function r(e){return Object(a["a"])({url:o+"/tbJcglJwz/updateJwz",method:"post",data:e})}function n(e){return Object(a["a"])({url:o+"/tbJcglJwz/selectJwzList",method:"get",params:e})}function d(e){return Object(a["a"])({url:o+"/tbJcglJwz/deleteJwz",method:"post",data:e})}function i(e){return Object(a["a"])({url:o+"/tbJcglJwz/selectByid",method:"get",params:e})}function b(e){return Object(a["a"])({url:o+"/tbWzXfwz/selectLswz",method:"POST",data:e})}},"3a67":function(e,t,l){"use strict";l("10bf")},4127:function(e,t,l){},a688:function(e,t,l){"use strict";l.r(t);var a=l("7a23"),o=l("ad28"),c=l("1090"),r=l("2d16"),n=l("38ea"),d=l("b932"),i=l("986e"),b=l("7902"),s=(l("0792"),l("7824"));const u={key:0,class:"dialog"},j={class:"head_box"},m={class:"title"},p=Object(a["createTextVNode"])("保存"),O=Object(a["createTextVNode"])("关闭"),f={class:"mt20"},w={class:"pl10 pr10 pt40 pb40"},h={class:"flex"},V=Object(a["createTextVNode"])("选取坐标"),g={class:"map"};var C={__name:"editAddForm",props:{dic:Object},emits:["updateList"],setup(e,{expose:t,emit:o}){const c=e,r=Object(a["reactive"])({chooseUserVisible:!1,titleValue:"人员选择",PoliceType:"MJ",chooseUser:[]}),{proxy:C}=Object(a["getCurrentInstance"])(),v=Object(a["ref"])(!1),z=Object(a["ref"])(),y=Object(a["ref"])({}),N=Object(a["ref"])({}),x=Object(a["ref"])(!1),A=Object(a["ref"])(!1),E=(Object(a["ref"])(0),Object(a["ref"])(!1),Object(a["reactive"])({jwzMc:[{required:!0,message:"请输入警务站名称",trigger:"blur"}],ssbmdm:[{required:!0,message:"请选择所属部门",trigger:"blur"}]}));Object(a["onMounted"])(()=>{i["a"].on("coordString",e=>{"polygon"===e.type&&(N.value.xfqyList=e.coord[0])}),i["a"].on("coordString",e=>{"point"===e.type&&(N.value.jd=e.coord[0],N.value.wd=e.coord[1])})});const k=e=>{N.value.fzrXm=e[0].xm,N.value.fzrSfzh=e[0].sfzh},J=(e,t)=>{x.value="add"==e?"新增警务站":"编辑警务站",A.value=!0,t&&Object(n["d"])({id:t.jwzId}).then(e=>{N.value=e,console.log(e),L(e)})};function Z(e){N.value.jd="",N.value.wd="",i["a"].emit("deletePointArea","jcz_ht"),i["a"].emit("drawShape",{type:"point",flag:"jcz_ht",isclear:!0})}const L=e=>{e.jd&&e.wd&&setTimeout(()=>{if(i["a"].emit("addPointArea",{coords:[e],icon:l("b310"),flag:"jwz"}),i["a"].emit("setMapCenter",{location:[e.jd,e.wd],zoomLevel:14}),e.xfqyList){let t={position:[e.xfqyList]};i["a"].emit("echoPlane",{type:"polygon",coords:[t],flag:"xfqyList",isclear:!1})}},1e3)},U=()=>{A.value=!1,v.value=!1,N.value=JSON.parse(JSON.stringify(y.value))},T=()=>{z.value.validate(e=>{if(!e)return;v.value=!0;let t="新增警务站"==x.value?"新增成功":"编辑成功",l={...N.value};"新增警务站"==x.value?Object(n["a"])(l).then(e=>{U(),C.$message.success(t),o("updateList",{})}).catch(()=>{v.value=!1}):Object(n["c"])(l).then(e=>{U(),C.$message.success(t),o("updateList",{})}).catch(()=>{v.value=!1});x.value})};return t({init:J}),(e,t)=>{const l=Object(a["resolveComponent"])("el-button"),o=Object(a["resolveComponent"])("el-form-item"),n=Object(a["resolveComponent"])("el-date-picker"),i=Object(a["resolveComponent"])("el-input"),C=Object(a["resolveComponent"])("el-form");return A.value?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",u,[Object(a["createElementVNode"])("div",j,[Object(a["createElementVNode"])("span",m,Object(a["toDisplayString"])(x.value),1),Object(a["createElementVNode"])("div",null,[Object(a["createVNode"])(l,{type:"primary",size:"small",onClick:T,loading:e.buttonLoading},{default:Object(a["withCtx"])(()=>[p]),_:1},8,["loading"]),Object(a["createVNode"])(l,{size:"sm