Files
xzlz_JczWeb/ylth/static/js/chunk-ecf840f0.d5dbf545.js

1 line
15 KiB
JavaScript
Raw Normal View History

2025-07-07 20:49:08 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ecf840f0"],{"2e9d":function(e,t,l){"use strict";var a=l("7a23");const c={class:"title"},o={key:0,class:"flex"},d=["onClick"],r={key:1,class:"font"},b={class:"cnetr"},n={class:"right"};var i={__name:"PageTitle",props:{title:{type:String,default:""},marginBottom:{type:Number,default:0},active:{type:Number,default:0},backgroundColor:{type:String,default:"rgb(255, 255, 255, 0)"}},emits:["update:active","change"],setup(e,{emit:t}){const l=(e,l)=>{t("update:active",l),t("change",l)};return(t,i)=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"pageTitle",style:Object(a["normalizeStyle"])(`margin-bottom: ${e.marginBottom}px;background-color: ${e.backgroundColor}`)},[Object(a["createElementVNode"])("div",c,[Array.isArray(e.title)?(Object(a["openBlock"])(),Object(a["createElementBlock"])("ul",o,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.title,(t,c)=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("li",{class:Object(a["normalizeClass"])([c==e.active?"hedBtn":"","pointer ml10 mr10"]),onClick:e=>l(t,c),key:t},Object(a["toDisplayString"])(t),11,d))),128))])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",r,Object(a["toDisplayString"])(e.title),1))]),Object(a["createElementVNode"])("div",b,[Object(a["renderSlot"])(t.$slots,"center")]),Object(a["createElementVNode"])("div",n,[Object(a["renderSlot"])(t.$slots,"default")])],4))}},s=(l("7a6f"),l("6b0d")),u=l.n(s);const j=u()(i,[["__scopeId","data-v-7d703107"]]);t["a"]=j},6641:function(e,t,l){},"7a6f":function(e,t,l){"use strict";l("6641")},9045:function(e,t,l){"use strict";l("f3ce")},c602:function(e,t,l){e.exports=l.p+"static/img/gzy.24797911.png"},ea7f:function(e,t,l){"use strict";l.r(t);var a=l("7a23"),c=l("2e9d"),o=l("ad28"),d=l("1090"),r=l("2d16"),b=(l("caad"),l("7beb")),n=l("7902"),i=l("986e"),s=l("b932"),u=l("3ef4");const j={key:0,class:"dialog"},O={class:"head_box"},p={class:"title"},m=Object(a["createTextVNode"])("保存"),v=Object(a["createTextVNode"])("关闭"),f={class:"cntinfo"},h={class:"latlng flex"},g=Object(a["createTextVNode"])("选择定位"),w={class:"mapbox"};var V={__name:"editAddForm",props:{dict:{type:Object,default:()=>{}}},emits:["getjczgetXfllList"],setup(e,{expose:t,emit:c}){const o=Object(a["reactive"])({sbmc:[{required:!0,message:"请输入感知源名称"}],sblx:[{required:!0,message:"请选择感知源类型"}],sbbh:[{required:!0,message:"请输入感知源编号",trigger:"change"}],wd:[{required:!0,message:"请输入维度"}],jd:[{required:!0,message:"请输入经度"}]}),d=Object(a["ref"])(null),r=Object(a["ref"])(!1),V=Object(a["ref"])({fl:"02"}),C={edit:{title:"编辑",url:""},add:{title:"新增",url:""},detail:{title:"详情"}};Object(a["onMounted"])(()=>{i["a"].on("coordString",e=>{"point"===e.type&&(V.value.jd=e.coord[0],V.value.wd=e.coord[1],x())})});let k=Object(a["ref"])("add");const y=Object(a["ref"])(!1),_=(e,t)=>{k.value=e,r.value=!0,E(),"edit"==e||"detail"==e?(V.value={...t},"detail"==e&&(y.value=!0)):V.value={}},B=()=>{d&&(d.value.validate((e,t)=>{e?"add"==k.value?Object(b["w"])(V.value).then(e=>{Object(u["a"])({message:"新增成功",type:"success"}),c("getjczgetXfllList"),D()}):Object(b["y"])(V.value).then(e=>{Object(u["a"])({message:"修改成功",type:"success"}),c("getjczgetXfllList"),D()}):console.log("error submit!",t)}),console.log())},N=()=>{i["a"].emit("drawShape",{flag:"select_point",type:"point",isclear:!0})},x=e=>{const{jd:t,wd:a}=V.value;i["a"].emit("deletePointArea","jczMap_Gzy"),t&&a&&i["a"].emit("addPointArea",{coords:[{jd:t,wd:a}],icon:l("c602"),flag:"jczMap_Gzy"})},D=()=>{r.value=!1,y.value=!1,V.value={}},S=Object(a["ref"])(),E=()=>{S.value=window.innerHeight-450};return t({init:_}),(t,l)=>{const c=Object(a["resolveComponent"])("el-button"),b=Object(a["resolveComponent"])("el-form-item"),i=Object(a["resolveComponent"])("el-input"),u=Object(a["resolveComponent"])("el-option"),_=Object(a["resolveComponent"])("el-select"),x=Object(a["resolveComponent"