1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1fd3fb10"],{"2e9d":function(e,t,l){"use strict";var a=l("7a23");const c={class:"title"},o={key:0,class:"flex"},r=["onClick"],n={key:1,class:"font"},d={class:"cnetr"},b={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,r))),128))])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",n,Object(a["toDisplayString"])(e.title),1))]),Object(a["createElementVNode"])("div",d,[Object(a["renderSlot"])(t.$slots,"center")]),Object(a["createElementVNode"])("div",b,[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")},c602:function(e,t,l){e.exports=l.p+"static/img/gzy.24797911.png"},cb18:function(e,t,l){},cd3f:function(e,t,l){},ea7f:function(e,t,l){"use strict";l.r(t);var a=l("7a23"),c=l("2e9d"),o=l("ad28"),r=l("1090"),n=l("2d16"),d=(l("caad"),l("7beb")),b=l("7902"),i=l("986e"),s=l("b932"),u=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"])("选择定位"),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:"请输入经度"}]}),r=Object(a["ref"])(null),n=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],N())})});let k=Object(a["ref"])("add");const y=(e,t)=>{k.value=e,n.value=!0,S(),V.value="edit"==e?{...t}:{}},_=()=>{r&&(r.value.validate((e,t)=>{e?"add"==k.value?Object(d["I"])(V.value).then(e=>{Object(u["a"])({message:"新增成功",type:"success"}),c("getjczgetXfllList"),x()}):Object(d["K"])(V.value).then(e=>{Object(u["a"])({message:"修改成功",type:"success"}),c("getjczgetXfllList"),x()}):console.log("error submit!",t)}),console.log())},B=()=>{i["a"].emit("drawShape",{flag:"select_point",type:"point",isclear:!0})},N=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"})},x=()=>{n.value=!1,V.value={}},D=Object(a["ref"])(),S=()=>{D.value=window.innerHeight-450};return t({init:y}),(t,l)=>{const c=Object(a["resolveComponent"])("el-button"),d=Object(a["resolveComponent"])("el-form-item"),i=Object(a["resolveComponent"])("el-input"),u=Object(a["resolveComponent"])("el-option"),y=Object(a["resolveComponent"])("el-select"),N=Object(a["resolveComponent"])("el-form");return n.value?(Object(a["openBlock"])(),Object(a["createElementBloc
|