Files
xzlz_JczWeb/ylth/static/js/chunk-b61f34c0.6e443595.js

1 line
15 KiB
JavaScript
Raw Normal View History

2025-06-23 09:57:34 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b61f34c0"],{"1d61":function(e,t,l){"use strict";l("299d")},"299d":function(e,t,l){},"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"},n={class:"cnetr"},i={class:"right"};var b={__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,b)=>(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",n,[Object(a["renderSlot"])(t.$slots,"center")]),Object(a["createElementVNode"])("div",i,[Object(a["renderSlot"])(t.$slots,"default")])],4))}},u=(l("7a6f"),l("6b0d")),s=l.n(u);const j=s()(b,[["__scopeId","data-v-7d703107"]]);t["a"]=j},"3fd9":function(e,t,l){e.exports=l.p+"static/img/zsdw.7a3091f9.png"},"47d1":function(e,t,l){"use strict";l("a9c3")},6641:function(e,t,l){},"69f1":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"),n=(l("caad"),l("7beb")),i=l("7902"),b=l("986e"),u=l("b932"),s=l("3ef4");const j={key:0,class:"dialog"},p={class:"head_box"},O={class:"title"},m=Object(a["createTextVNode"])("保存"),f=Object(a["createTextVNode"])("关闭"),h={class:"cntinfo"},v={class:"latlng flex"},g=Object(a["createTextVNode"])("选择定位"),V={class:"mapbox"};var w={__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),w=Object(a["ref"])({fl:"02"}),C={edit:{title:"编辑",url:""},add:{title:"新增",url:""},detail:{title:"详情"}};Object(a["onMounted"])(()=>{b["a"].on("coordString",e=>{"point"===e.type&&(w.value.jd=e.coord[0],w.value.wd=e.coord[1],N())})});let _=Object(a["ref"])("add");const y=(e,t)=>{_.value=e,r.value=!0,D(),w.value="edit"==e?{...t}:{}},x=()=>{d&&(d.value.validate((e,t)=>{e?"add"==_.value?Object(n["w"])(w.value).then(e=>{Object(s["a"])({message:"新增成功",type:"success"}),c("getjczgetXfllList"),B()}):Object(n["z"])(w.value).then(e=>{Object(s["a"])({message:"修改成功",type:"success"}),c("getjczgetXfllList"),B()}):console.log("error submit!",t)}),console.log())},k=()=>{b["a"].emit("drawShape",{flag:"select_point",type:"point",isclear:!0})},N=e=>{const{jd:t,wd:a}=w.value;b["a"].emit("deletePointArea","jczMap_Gzy"),t&&a&&b["a"].emit("addPointArea",{coords:[{jd:t,wd:a}],icon:l("3fd9"),flag:"jczMap_Gzy"})},B=()=>{r.value=!1,w.value={}},z=Object(a["ref"])(),D=()=>{z.value=window.innerHeight-450};return t({init:y}),(t,l)=>{const c=Object(a["resolveComponent"])("el-button"),n=Object(a["resolveComponent"])("el-form-item"),b=Object(a["resolveComponent"])("el-input"),s=Object(a["resolveComponent"])("el-option"),y=Object(a["resolveComponent"])("el-select"),N=Object(a["resolveComponent"])("el-form");return r.value?(Object(a["openBlock"]