Files
xzlz_JczWeb/ylth/static/js/chunk-27c75eb6.429039eb.js
2025-07-21 17:47:27 +08:00

1 line
27 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27c75eb6"],{"0156":function(e,t,l){},2705:function(e,t,l){"use strict";l("0156")},"2e9d":function(e,t,l){"use strict";var a=l("7a23");const o={class:"title"},c={key:0,class:"flex"},r=["onClick"],d={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",o,[Array.isArray(e.title)?(Object(a["openBlock"])(),Object(a["createElementBlock"])("ul",c,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.title,(t,o)=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("li",{class:Object(a["normalizeClass"])([o==e.active?"hedBtn":"","pointer ml10 mr10"]),onClick:e=>l(t,o),key:t},Object(a["toDisplayString"])(t),11,r))),128))])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",d,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},5530:function(e,t,l){"use strict";l.d(t,"a",(function(){return c})),l.d(t,"b",(function(){return r}));var a=l("b775");const o="/mosty-api/mosty-yszx",c=(e={})=>Object(a["a"])({url:o+"/tbYsSxt/getList",method:"POST",data:e}),r=(e={})=>Object(a["a"])({url:o+"/tbYsSxt/getPageList",method:"POST",data:e})},6641:function(e,t,l){},"667e":function(e,t,l){"use strict";l("bf5a")},"69f1":function(e,t,l){"use strict";l.r(t);var a=l("7a23"),o=l("3ef4"),c=l("2e9d"),r=(l("0792"),l("7902")),d=(l("c5cb"),l("5530"));const n={key:0},i=Object(a["createTextVNode"])("查询"),b=Object(a["createTextVNode"])(" 重置 "),u={key:0,class:"tabBox",style:{"margin-top":"0px"}},s={class:"fenye"},j={class:"dialog-footer"},O=Object(a["createTextVNode"])("取消"),p=Object(a["createTextVNode"])("确认");var m={__name:"Gzyloder",props:{modelValue:{type:Boolean,required:!0},titleValue:{type:String,default:"选择环林卡口"},Single:{type:Boolean,default:!1},data:{type:Array,default:[]}},emits:["update:modelValue","choosedJcz"],setup(e,{emit:t}){const l=e,{proxy:o}=Object(a["getCurrentInstance"])(),{D_BZ_JCZLX:c}=o.$dict("D_BZ_JCZLX"),m=e=>e.id,v=Object(a["ref"])(null),f=Object(a["ref"])(0),h=Object(a["ref"])({pageCurrent:1,pageSize:20,jczmc:"",ssbmdm:""}),g=Object(a["ref"])([]),V=Object(a["ref"])(!1),w=()=>{h.value.jczmc="",t("update:modelValue",!1)},C=()=>{h.value={pageCurrent:1,pageSize:20,jczmc:"",ssbmdm:""},_()},x=Object(a["ref"])([]),y=()=>{if(l.Single){if(![v.value][0])return void o.$message.warning("请选择环林卡口");const e=g.value.find(e=>e.id===v.value);t("choosedJcz",JSON.parse(JSON.stringify(e)))}else{const e=JSON.parse(JSON.stringify(S.value));if(0===e.length)return void o.$message.warning("请选择环林卡口");t("choosedJcz",[...e,...x.value])}w()};Object(a["onMounted"])(()=>{_()});const N=e=>{h.value.pageSize=e,_()},k=e=>{h.value.pageCurrent=e,_()},_=async()=>{V.value=!0,Object(d["b"])(h.value).then(e=>{g.value=null===e||void 0===e?void 0:e.records,V.value=!1,L(l.data,g.value),f.value=Number(e.total)}).catch(()=>{V.value=!1})},B=()=>{h.value.pageCurrent=1,_()},z=Object(a["ref"])(null),S=Object(a["ref"])([]),E=e=>{if(S.value=e,x.value)for(let t=0;t<S.value.length;t++){const e=S.value[t];for(let t=0;t<x.value.length;t++){const l=x.value[t];e.id==l.id&&x.value.splice(t,1)}}};function L(e,t){e&&(l.Single?e.forEach(e=>{t.forEach(t=>{"object"==typeof e?e.id==t.id&&(v.value=e.id):e==t.id&&(v.value=e)})}):e.forEach(e=>{t.forEach(t=>{e.id==t.id&&z.value&&z.value.toggleRowSelection(t,!0)})}))}return Object(a["watch"])(()=>l.modelValue,e=>{!0===e&&(v.value="",B())}),Object(a["watch"])(()=>l.data,e=>{z.value&&L(e,g.value),x.value=JSON.parse(JSON.stringify(e))}),(t,o)=>{const c=Object(a["resolveComponent"])("el-form-item"),d=Object(a["resolveComponent"])("el-input"),x=Object(a["resolveComponent"])("el-button"),_=Object(a["resolveComponent"])("el-form"),S=Object(a["resolveComponent"])("el-table-column"),L=Object(a["resolveComponent"])("el-radio"),D=Object(a["resolveComponent"])("el-table"),T=Object(a["resolveComponent"])("el-pagination"),Z=Object(a["resolveComponent"])("el-dialog"),J=Object(a["resolveDirective"])("loading");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",null,[Object(a["createVNode"])(Z,{title:e.titleValue,width:"1400px",modelValue:e.modelValue,"onUpdate:modelValue":o[4]||(o[4]=e=>Object(a["isRef"])(modelValue)?modelValue.value=e:null),onClose:w},{footer:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("div",j,[Object(a["createVNode"])(x,{onClick:w},{default:Object(a["withCtx"])(()=>[O]),_:1}),Object(a["createVNode"])(x,{type:"primary",onClick:y},{default:Object(a["withCtx"])(()=>[p]),_:1})])]),default:Object(a["withCtx"])(()=>[e.modelValue?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",n,[Object(a["createVNode"])(_,{model:h.value,class:"mosty-from-wrap",inline:!0},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,{label:"所属部门"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r["a"],{width:"100%",clearable:"",modelValue:h.value.ssbmdm,"onUpdate:modelValue":o[0]||(o[0]=e=>h.value.ssbmdm=e)},null,8,["modelValue"])]),_:1}),Object(a["createVNode"])(c,{label:"感知源名称"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(d,{modelValue:h.value.sbmc,"onUpdate:modelValue":o[1]||(o[1]=e=>h.value.sbmc=e),placeholder:"请输入感知源名称",clearable:""},null,8,["modelValue"])]),_:1}),Object(a["createVNode"])(c,null,{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(x,{type:"success",onClick:B},{default:Object(a["withCtx"])(()=>[i]),_:1}),Object(a["createVNode"])(x,{type:"info",onClick:o[2]||(o[2]=e=>C())},{default:Object(a["withCtx"])(()=>[b]),_:1})]),_:1})]),_:1},8,["model"]),e.modelValue?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",u,[Object(a["withDirectives"])((Object(a["openBlock"])(),Object(a["createBlock"])(D,{ref_key:"multipleUserRef",ref:z,onSelectionChange:E,data:g.value,"highlight-current-row":l.Single,border:"",style:{width:"100%"},"row-key":m,height:"450"},{default:Object(a["withCtx"])(()=>[l.Single?(Object(a["openBlock"])(),Object(a["createBlock"])(S,{key:1,width:"55"},{default:Object(a["withCtx"])(({row:e})=>[Object(a["createVNode"])(L,{modelValue:v.value,"onUpdate:modelValue":o[3]||(o[3]=e=>v.value=e),label:e.id},null,8,["modelValue","label"])]),_:1})):(Object(a["openBlock"])(),Object(a["createBlock"])(S,{key:0,type:"selection",width:"55","reserve-selection":!0})),Object(a["createVNode"])(S,{label:"序号",type:"index",align:"center",sortable:"",width:"80"}),Object(a["createVNode"])(S,{sortable:"",prop:"ssbm",label:"所属部门","show-overflow-tooltip":"",align:"center"}),Object(a["createVNode"])(S,{sortable:"",prop:"sbmc","show-overflow-tooltip":"",align:"center",label:"感知源名称"}),Object(a["createVNode"])(S,{"show-overflow-tooltip":"",align:"center",label:"厂商名称",prop:"csmc"}),Object(a["createVNode"])(S,{prop:"sbbh","show-overflow-tooltip":"",align:"center",label:"设备编号"}),Object(a["createVNode"])(S,{sortable:"",prop:"jd","show-overflow-tooltip":"",label:"经度",align:"center"}),Object(a["createVNode"])(S,{sortable:"",prop:"wd","show-overflow-tooltip":"",label:"纬度",align:"center"})]),_:1},8,["data","highlight-current-row"])),[[J,V.value]])])):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("div",s,[Object(a["createVNode"])(T,{class:"pagination",onSizeChange:N,onCurrentChange:k,"current-page":h.value.pageCurrent,"page-sizes":[2,5,10,20],"page-size":h.value.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:f.value},null,8,["current-page","page-size","total"])])])):Object(a["createCommentVNode"])("",!0)]),_:1},8,["title","modelValue"])])}}},v=(l("d9bd"),l("6b0d")),f=l.n(v);const h=f()(m,[["__scopeId","data-v-24d65fba"]]);var g=h,V=l("7beb");const w=e=>(Object(a["pushScopeId"])("data-v-2d781b8b"),e=e(),Object(a["popScopeId"])(),e),C={key:0,class:"dialog"},x={class:"head_box"},y=w(()=>Object(a["createElementVNode"])("span",{class:"title"},"新增感知源",-1)),N=Object(a["createTextVNode"])("保存"),k=Object(a["createTextVNode"])("关闭"),_={class:"cntinfo"},B={key:0},z={key:1,class:"placeholder"};var S={__name:"perceptionSource",emits:["getjczgetXfllList"],setup(e,{expose:t,emit:l}){const c=Object(a["ref"])(null),r=Object(a["ref"])({});Object(a["onMounted"])(()=>{O(),console.log("xxxx")});const d=Object(a["ref"])([]),n=Object(a["ref"])(!1),i=Object(a["ref"])(),b=e=>{n.value=!0,r.value.jczid=e.id,i.value=e.jczmc,Object(V["q"])({id:e.id}).then(e=>{e&&(r.value.sxtList=e.sxtList?e.sxtList:[])})},u=()=>{Object(V["eb"])(r.value).then(e=>{console.log(e),Object(o["a"])({message:"新增成功",type:"success"}),l("getjczgetXfllList"),j()})},s=Object(a["reactive"])({tableData:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"null",loading:!1},total:0,pageConfiger:{pageSize:20,pageCurrent:1},controlsWidth:250,tableColumn:[{label:"所属部门",prop:"ssbm",showOverflowTooltip:!0},{label:"环林卡口名称",prop:"jczmc",showOverflowTooltip:!0},{label:"环林卡口类型",prop:"jczlx",showOverflowTooltip:!0,showSolt:!0},{label:"执勤类型",prop:"zqlx",showSolt:!0,showOverflowTooltip:!0},{label:"环林卡口地址",prop:"xxdz",showOverflowTooltip:!0}]}),j=()=>{n.value=!1,r.value={}},O=()=>{console.log(c.value),s.tableHeight=window.innerHeight-370,window.onresize=function(){O()}};t({init:b});const p=Object(a["ref"])(!1),m=e=>{r.value.sxtList=e},v=e=>{r.value.sxtList.splice(r.value.sxtList.indexOf(e),1)};return(e,t)=>{const l=Object(a["resolveComponent"])("el-button"),o=Object(a["resolveComponent"])("el-input"),c=Object(a["resolveComponent"])("el-form-item"),b=Object(a["resolveComponent"])("el-tag"),s=Object(a["resolveComponent"])("el-form");return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],null,[n.value?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",C,[Object(a["createElementVNode"])("div",x,[y,Object(a["createElementVNode"])("div",null,[Object(a["createVNode"])(l,{size:"small",type:"primary",onClick:u},{default:Object(a["withCtx"])(()=>[N]),_:1}),Object(a["createVNode"])(l,{size:"small",onClick:j},{default:Object(a["withCtx"])(()=>[k]),_:1})])]),Object(a["createElementVNode"])("div",_,[Object(a["createVNode"])(s,{ref:"formRef",model:r.value,rules:e.rules,inline:!0,"label-position":"top"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,{style:{width:"40%"},label:"感知源"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(o,{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),disabled:""},null,8,["modelValue"])]),_:1}),Object(a["createVNode"])(c,{style:{width:"40%"},label:"感知源"},{default:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("div",{class:"diviput",onClick:t[1]||(t[1]=e=>p.value=!0)},[r.value.sxtList&&r.value.sxtList.length>0?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",B,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(r.value.sxtList,(e,t)=>(Object(a["openBlock"])(),Object(a["createBlock"])(b,{closable:"",onClose:e=>v(t),key:t},{default:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.sbmc),1)]),_:2},1032,["onClose"]))),128))])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",z," 请选择感知源"))])]),_:1})]),_:1},8,["model","rules"])])])):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(g,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=e=>p.value=e),Single:!1,onChoosedJcz:m,data:d.value},null,8,["modelValue","data"])],64)}}};l("2705");const E=f()(S,[["__scopeId","data-v-2d781b8b"]]);var L=E,D=l("ad28"),T=l("1090"),Z=l("2d16"),J=(l("caad"),l("986e")),X=l("b932");const q={key:0,class:"dialog"},U={class:"head_box"},H={class:"title"},I=Object(a["createTextVNode"])("保存"),$=Object(a["createTextVNode"])("关闭"),F={class:"cntinfo"},A={class:"latlng flex"},P=Object(a["createTextVNode"])("选择定位"),M={class:"mapbox"};var G={__name:"editAddForm",props:{dict:{type:Object,default:()=>{}}},emits:["getjczgetXfllList"],setup(e,{expose:t,emit:c}){const d=Object(a["reactive"])({jczmc:[{required:!0,message:"请输入检查站名称"}],zqlx:[{required:!0,message:"请选择执勤类型",trigger:"change"}],jczlx:[{required:!0,message:"请选择环林卡口类型",trigger:"change"}],jczjb:[{required:!0,message:"请选择环林卡口级别",trigger:"change"}],wd:[{required:!0,message:"请输入维度"}],jd:[{required:!0,message:"请输入经度"}]}),n=Object(a["ref"])(null),i=Object(a["ref"])(!1),b=Object(a["ref"])({fl:"02"}),u={edit:{title:"编辑",url:""},add:{title:"新增",url:""},detail:{title:"详情"}};Object(a["onMounted"])(()=>{J["a"].on("coordString",e=>{"point"===e.type&&(b.value.jd=e.coord[0],b.value.wd=e.coord[1],v())})});let s=Object(a["ref"])("add");const j=Object(a["ref"])(!1),O=(e,t)=>{s.value=e,i.value=!0,g(),"edit"==e||"detail"==e?(b.value={...t},"detail"==e&&(j.value=!0),v()):b.value={}},p=()=>{n&&(n.value.validate((e,t)=>{e?"add"==s.value?Object(V["o"])(b.value).then(e=>{Object(o["a"])({message:"新增成功",type:"success"}),c("getjczgetXfllList"),f()}):Object(V["s"])(b.value).then(e=>{Object(o["a"])({message:"修改成功",type:"success"}),c("getjczgetXfllList"),f()}):console.log("error submit!",t)}),console.log())},m=()=>{J["a"].emit("drawShape",{flag:"select_point",type:"point",isclear:!0})},v=()=>{const{jd:e,wd:t}=b.value;console.log(e,t),J["a"].emit("deletePointArea","jczMap_Gzy"),e&&t&&setTimeout(()=>{J["a"].emit("addPointArea",{coords:[{jd:e,wd:t}],icon:l("c602"),flag:"jczMap_Gzy"})},1e3)},f=()=>{i.value=!1,j.value=!1,b.value={}},h=Object(a["ref"])(),g=()=>{h.value=window.innerHeight-450};return t({init:O}),(t,l)=>{const o=Object(a["resolveComponent"])("el-button"),c=Object(a["resolveComponent"])("el-form-item"),O=Object(a["resolveComponent"])("el-input"),v=Object(a["resolveComponent"])("el-option"),h=Object(a["resolveComponent"])("el-select"),g=Object(a["resolveComponent"])("el-form");return i.value?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",q,[Object(a["createElementVNode"])("div",U,[Object(a["createElementVNode"])("span",H,Object(a["toDisplayString"])(u[Object(a["unref"])(s)].title),1),Object(a["createElementVNode"])("div",null,[["add","edit"].includes(Object(a["unref"])(s))?(Object(a["openBlock"])(),Object(a["createBlock"])(o,{key:0,size:"small",type:"primary",onClick:p},{default:Object(a["withCtx"])(()=>[I]),_:1})):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(o,{size:"small",onClick:f},{default:Object(a["withCtx"])(()=>[$]),_:1})])]),Object(a["createElementVNode"])("div",F,[Object(a["createVNode"])(g,{ref_key:"formRef",ref:n,model:b.value,rules:d,inline:!0,"label-position":"top"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,{style:{width:"40%"},prop:"ssbmdm",label:"所属部门"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r["a"],{width:"100%",clearable:"",disabled:j.value,modelValue:b.value.ssbmdm,"onUpdate:modelValue":l[0]||(l[0]=e=>b.value.ssbmdm=e),placeholder:b.value.ssbm?b.value.ssbm:"请选择所属部门"},null,8,["disabled","modelValue","placeholder"])]),_:1}),Object(a["createVNode"])(c,{style:{width:"40%"},prop:"jczmc",label:"环林卡口名称"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(O,{disabled:j.value,modelValue:b.value.jczmc,"onUpdate:modelValue":l[1]||(l[1]=e=>b.value.jczmc=e),placeholder:"请输入环林卡口名称",style:{width:"100%"},clearable:""},null,8,["disabled","modelValue"])]),_:1}),Object(a["createVNode"])(c,{style:{width:"40%"},prop:"zqlx",label:"执勤类型"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(h,{disabled:j.value,modelValue:b.value.zqlx,"onUpdate:modelValue":l[2]||(l[2]=e=>b.value.zqlx=e),placeholder:"请选择执勤类型"},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.dict.D_BZ_ZQLX,e=>(Object(a["openBlock"])(),Object(a["createBlock"])(v,{key:e.value,value:e.value,label:e.label},null,8,["value","label"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1}),Object(a["createVNode"])(c,{style:{width:"40%"},prop:"jczlx",label:"环林卡口类型"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(h,{disabled:j.value,modelValue:b.value.jczlx,"onUpdate:modelValue":l[3]||(l[3]=e=>b.value.jczlx=e),placeholder:"请选择环林卡口类型"},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.dict.D_BZ_JCZLX,e=>(Object(a["openBlock"])(),Object(a["createBlock"])(v,{key:e.value,value:e.value,label:e.label},null,8,["value","label"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1}),Object(a["createVNode"])(c,{style:{width:"40%"},prop:"jczjb",label:"环林卡口级别"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(h,{disabled:j.value,modelValue:b.value.jczjb,"onUpdate:modelValue":l[4]||(l[4]=e=>b.value.jczjb=e),placeholder:"请选择环林卡口级别"},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.dict.D_BZ_JCZJB,e=>(Object(a["openBlock"])(),Object(a["createBlock"])(v,{key:e.value,value:e.value,label:e.label},null,8,["value","label"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1}),Object(a["createVNode"])(c,{style:{width:"40%"},prop:"fzr",label:"负责人"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(O,{disabled:j.value,modelValue:b.value.fzr,"onUpdate:modelValue":l[5]||(l[5]=e=>b.value.fzr=e),placeholder:"请输入负责人",style:{width:"100%"},clearable:""},null,8,["disabled","modelValue"])]),_:1}),Object(a["createVNode"])(c,{style:{width:"40%"},prop:"lxdh",label:"联系电话"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(O,{disabled:j.value,modelValue:b.value.lxdh,"onUpdate:modelValue":l[6]||(l[6]=e=>b.value.lxdh=e),placeholder:"请输入联系电话",style:{width:"100%"},clearable:""},null,8,["disabled","modelValue"])]),_:1}),Object(a["createVNode"])(c,{style:{width:"40%"},prop:"dllx",label:"道路类型"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(h,{disabled:j.value,modelValue:b.value.dllx,"onUpdate:modelValue":l[7]||(l[7]=e=>b.value.dllx=e),placeholder:"请选择道路类型"},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.dict.D_BZ_DLLX,e=>(Object(a["openBlock"])(),Object(a["createBlock"])(v,{key:e.value,value:e.value,label:e.label},null,8,["value","label"]))),128))]),_:1},8,["disabled","modelValue"])]),_:1}),Object(a["createVNode"])(c,{style:{width:"40%"},prop:"xxdz",label:"环林卡口地址"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(O,{disabled:j.value,modelValue:b.value.xxdz,"onUpdate:modelValue":l[8]||(l[8]=e=>b.value.xxdz=e),placeholder:"请输入环林卡口地址",style:{width:"100%"},clearable:""},null,8,["disabled","modelValue"])]),_:1}),Object(a["createVNode"])(c,{label:"示意图(最多3张)",prop:"fjid",style:{width:"40%"}},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r["j"],{disableds:j.value,isImg:!0,width:"100%",limit:3,modelValue:b.value.fjid,"onUpdate:modelValue":l[9]||(l[9]=e=>b.value.fjid=e)},null,8,["disableds","modelValue"])]),_:1}),Object(a["createVNode"])(c,{label:"全景图(正面、侧面、俯视共3张)",prop:"qjfjid",style:{width:"48%"}},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r["j"],{disableds:j.value,width:"100%",isImg:!0,limit:3,modelValue:b.value.qjfjid,"onUpdate:modelValue":l[10]||(l[10]=e=>b.value.qjfjid=e)},null,8,["disableds","modelValue"])]),_:1}),Object(a["createVNode"])(c,{style:{width:"85%"},prop:"jd",label:"坐标位置"},{default:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("div",A,[Object(a["createVNode"])(O,{disabled:!0,modelValue:b.value.jd,"onUpdate:modelValue":l[11]||(l[11]=e=>b.value.jd=e),clearable:"",placeholder:"请选择坐标",style:{width:"42%"}},null,8,["modelValue"]),Object(a["createVNode"])(O,{disabled:!0,modelValue:b.value.wd,"onUpdate:modelValue":l[12]||(l[12]=e=>b.value.wd=e),clearable:"",placeholder:"请选择坐标",style:{width:"42%","margin-left":"1%"}},null,8,["modelValue"]),Object(a["createVNode"])(o,{onClick:m,disabled:j.value},{default:Object(a["withCtx"])(()=>[P]),_:1},8,["disabled"])])]),_:1}),Object(a["createVNode"])(c,{style:{width:"100%"}},{default:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("div",M,[Object(a["createVNode"])(X["a"])])]),_:1})]),_:1},8,["model","rules"])])])):Object(a["createCommentVNode"])("",!0)}}};l("667e");const R=f()(G,[["__scopeId","data-v-e2e6e04a"]]);var W=R,Q=l("b893");const Y={class:"titleBox"},K={class:"tabBox"},ee=Object(a["createTextVNode"])("修改"),te=Object(a["createTextVNode"])("删除"),le=Object(a["createTextVNode"])("新增感知源"),ae=Object(a["createTextVNode"])("详情");var oe={__name:"index",setup(e){const{proxy:t}=Object(a["getCurrentInstance"])(),{D_BZ_JCZLX:l,D_BZ_ZQLX:r,D_BZ_DLLX:d,D_BZ_JCZJB:n}=t.$dict("D_BZ_JCZLX","D_BZ_ZQLX","D_BZ_DLLX","D_BZ_JCZJB"),i=Object(a["ref"])([{showType:"department",prop:"ssbmdm",placeholder:"请选择所属部门",label:"所属部门"},{label:"环林卡口名称",prop:"jczmc",placeholder:"请输入环林卡口名称",showType:"input"},{label:"执勤类型",prop:"zqlx",placeholder:"请选择执勤类型",showType:"select",options:r},{label:"环林卡口类型",prop:"jczlx",placeholder:"请选择环林卡口类型",showType:"select",options:l}]),b=Object(a["ref"])(),u=Object(a["reactive"])({tableData:[],keyCount:0,tableConfiger:{rowHieght:61,showSelectType:"null",loading:!1},total:0,pageConfiger:{pageSize:20,pageCurrent:1},controlsWidth:250,tableColumn:[{label:"所属部门",prop:"ssbm",showOverflowTooltip:!0},{label:"环林卡口名称",prop:"jczmc",showOverflowTooltip:!0},{label:"环林卡口类型",prop:"jczlx",showOverflowTooltip:!0,showSolt:!0},{label:"执勤类型",prop:"zqlx",showSolt:!0,showOverflowTooltip:!0},{label:"环林卡口地址",prop:"xxdz",showOverflowTooltip:!0}]}),s=Object(a["ref"])(!0);Object(a["onMounted"])(()=>{s.value=Object(Q["c"])(),w()});const j=Object(a["ref"])({}),O=()=>{u.tableConfiger.loading=!0;const e={...j.value,...u.pageConfiger};Object(V["r"])(e).then(e=>{u.tableData=e.records,u.total=e.total}).finally(()=>{u.tableConfiger.loading=!1})};O();const p=e=>{j.value={...j.value,...e},O()},m=e=>{u.pageConfiger.pageCurrent=e},v=e=>{u.pageConfiger.pageSize=e},f=e=>{t.$confirm("确定删除该数据?","警告",{type:"warning"}).then(()=>{Object(V["p"])(e).then(e=>{Object(o["a"])({message:"删除成功",type:"success"}),u.pageConfiger.pageCurrent=1,O()})}).catch(()=>{t.$message.info("已取消")})},h=(e,t)=>{b.value.init(e,t)},g=Object(a["ref"])(null),w=()=>{u.tableHeight=window.innerHeight-g.value.offsetHeight-280,window.onresize=function(){w()}},C=Object(a["ref"])(),x=e=>{C.value.init(e)};return(e,t)=>{const o=Object(a["resolveComponent"])("CirclePlus"),j=Object(a["resolveComponent"])("el-icon"),V=Object(a["resolveComponent"])("el-button"),w=Object(a["resolveComponent"])("dict-tag"),y=Object(a["resolveComponent"])("el-link");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",null,[Object(a["createElementVNode"])("div",Y,[Object(a["createVNode"])(c["a"],{title:"环林卡口管理"},{default:Object(a["withCtx"])(()=>[s.value?(Object(a["openBlock"])(),Object(a["createBlock"])(V,{key:0,type:"primary",onClick:t[1]||(t[1]=e=>h("add",""))},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(j,{style:{"vertical-align":"middle"}},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(o)]),_:1}),Object(a["createElementVNode"])("span",{style:{"vertical-align":"middle"},onClick:t[0]||(t[0]=t=>h("add",e.row))},"新增")]),_:1})):Object(a["createCommentVNode"])("",!0)]),_:1})]),Object(a["createElementVNode"])("div",{ref_key:"searchBox",ref:g},[Object(a["createVNode"])(Z["a"],{searchArr:i.value,onSubmit:p},null,8,["searchArr"])],512),Object(a["createElementVNode"])("div",K,[(Object(a["openBlock"])(),Object(a["createBlock"])(D["a"],{tableData:u.tableData,tableColumn:u.tableColumn,tableHeight:u.tableHeight,key:u.keyCount,tableConfiger:u.tableConfiger,controlsWidth:u.controlsWidth,onChooseData:e.chooseData},{jczlx:Object(a["withCtx"])(({row:e})=>[Object(a["createVNode"])(w,{value:e.jczlx,options:Object(a["unref"])(l),tag:!1},null,8,["value","options"])]),zqlx:Object(a["withCtx"])(({row:e})=>[Object(a["createVNode"])(w,{options:Object(a["unref"])(r),value:e.zqlx,tag:!1},null,8,["options","value"])]),jczjb:Object(a["withCtx"])(({row:e})=>[Object(a["createVNode"])(w,{options:Object(a["unref"])(n),value:e.jczjb,tag:!1},null,8,["options","value"])]),controls:Object(a["withCtx"])(({row:e})=>[s.value?(Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],{key:0},[Object(a["createVNode"])(y,{type:"primary",onClick:t=>h("edit",e)},{default:Object(a["withCtx"])(()=>[ee]),_:2},1032,["onClick"]),Object(a["createVNode"])(y,{type:"primary",onClick:t=>f(e.id)},{default:Object(a["withCtx"])(()=>[te]),_:2},1032,["onClick"]),Object(a["createVNode"])(y,{type:"primary",onClick:t=>x(e)},{default:Object(a["withCtx"])(()=>[le]),_:2},1032,["onClick"])],64)):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(y,{type:"primary",onClick:t=>h("detail",e)},{default:Object(a["withCtx"])(()=>[ae]),_:2},1032,["onClick"])]),_:1},8,["tableData","tableColumn","tableHeight","tableConfiger","controlsWidth","onChooseData"])),Object(a["createVNode"])(T["a"],{onChangeNo:m,onChangeSize:v,tableHeight:u.tableHeight,pageConfiger:{...u.pageConfiger,total:u.total}},null,8,["tableHeight","pageConfiger"])]),Object(a["createVNode"])(W,{ref_key:"detailDiloag",ref:b,dict:{D_BZ_JCZLX:Object(a["unref"])(l),D_BZ_ZQLX:Object(a["unref"])(r),D_BZ_DLLX:Object(a["unref"])(d),D_BZ_JCZJB:Object(a["unref"])(n)},onGetjczgetXfllList:O},null,8,["dict"]),Object(a["createVNode"])(L,{ref_key:"perceptionSource",ref:C,onGetjczgetXfllList:O},null,512)])}}};l("c397");const ce=oe;t["default"]=ce},"7a6f":function(e,t,l){"use strict";l("6641")},bf5a:function(e,t,l){},c397:function(e,t,l){"use strict";l("c59b")},c59b:function(e,t,l){},c602:function(e,t,l){e.exports=l.p+"static/img/gzy.24797911.png"},d436:function(e,t,l){},d9bd:function(e,t,l){"use strict";l("d436")}}]);