1 line
5.7 KiB
JavaScript
1 line
5.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-431b3396"],{"0dd5":function(e,t,c){"use strict";c.r(t);var n=c("7a23"),r=c("1ed9"),a=c("675e");c("cadb");const l=e=>(Object(n["pushScopeId"])("data-v-68feb7dd"),e=e(),Object(n["popScopeId"])(),e),o={class:"qxzbrl"},b=l(()=>Object(n["createElementVNode"])("div",{class:"titleBox"},[Object(n["createElementVNode"])("div",{class:"title"},"部门巡防排班日历")],-1)),u={class:"calendarLoad"},d=l(()=>Object(n["createElementVNode"])("p",null,"跨天数:",-1)),i=Object(n["createTextVNode"])(" 勤务民警: "),s=Object(n["createTextVNode"])(" 勤务辅警: "),j=l(()=>Object(n["createElementVNode"])("p",null,[Object(n["createTextVNode"])(" 武装类型: "),Object(n["createElementVNode"])("span",{class:"t"}),Object(n["createTextVNode"])(" 着装类型: "),Object(n["createElementVNode"])("span",{class:"t"})],-1)),p=l(()=>Object(n["createElementVNode"])("p",null,"物资:",-1)),O={class:"wz"};var m={__name:"index",setup(e){const t=Object(n["ref"])("排班详情"),c=(Object(n["ref"])([{name:"警组一",c:"hwb(28deg 41% 23%)"},{name:"警组二",c:"rgb(254 94 33)"},{name:"警组三",c:"rgb(15 246 7)"}]),Object(n["ref"])([])),l=Object(n["ref"])({}),m=Object(n["ref"])(!1);function f(e){let c={pbrq:e};Object(r["i"])(c).then(c=>{t.value=e+"排班详情",l.value=c,m.value=!0})}function g(e){let t=new Date(e);return t.toLocaleDateString().replace(/\//g,"-")}function k(e,t){return JSON.parse(e)}return Object(n["onMounted"])(()=>{Object(r["f"])({pageCurrent:1,pageSize:1e3}).then(e=>{let t=[];e.records.forEach(e=>{e.ksrq&&e.jsrq}),c.value=t})}),(e,r)=>{const E=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",o,[b,c.value.length>0?(Object(n["openBlock"])(),Object(n["createBlock"])(Object(n["unref"])(a["a"]),{key:0,onCalClick:f,list:c.value,isClick:!0,API:e.getXfpbInfo},null,8,["list","API"])):Object(n["createCommentVNode"])("",!0),Object(n["createVNode"])(E,{width:"90%",modelValue:m.value,"onUpdate:modelValue":r[0]||(r[0]=e=>m.value=e),title:t.value},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",u,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.value,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"item",key:e.id},[Object(n["createElementVNode"])("span",{style:Object(n["normalizeStyle"])({background:k(e.qwbcId)[t%k(e.qwbcId).length].bcys}),class:"jz"},Object(n["toDisplayString"])(k(e.qwbcId)[t%k(e.qwbcId).length].bcmc),5),Object(n["createElementVNode"])("p",null," 时间:"+Object(n["toDisplayString"])(g(e.ksrq)+" "+e.kssj)+"-"+Object(n["toDisplayString"])(g(e.jsrq)+" "+e.jssj),1),d,Object(n["createElementVNode"])("p",null,"执勤时长:"+Object(n["toDisplayString"])(e.zqsc/60)+" 小时",1),Object(n["createElementVNode"])("p",null,"警组负责人:"+Object(n["toDisplayString"])(e.fzrXm),1),Object(n["createElementVNode"])("p",null,[i,(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(k(e.pbmj),e=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",{class:"t",key:e.id},Object(n["toDisplayString"])(e.jlxm),1))),128))]),Object(n["createElementVNode"])("p",null,[s,(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(k(e.pbfj),e=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",{class:"t",key:e.id},Object(n["toDisplayString"])(e.jlxm),1))),128))]),j,p,Object(n["createElementVNode"])("div",O,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(k(e.jyqx),(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",{key:t+.678},Object(n["toDisplayString"])(e.qxmc)+" ("+Object(n["toDisplayString"])(e.qxsl)+"个)",1))),128))])]))),128))])]),_:1},8,["modelValue","title"])])}}},f=(c("2a97"),c("d959")),g=c.n(f);const k=g()(m,[["__scopeId","data-v-68feb7dd"]]);t["default"]=k},"1ed9":function(e,t,c){"use strict";c.d(t,"f",(function(){return a})),c.d(t,"g",(function(){return l})),c.d(t,"a",(function(){return o})),c.d(t,"b",(function(){return b})),c.d(t,"h",(function(){return u})),c.d(t,"j",(function(){return d})),c.d(t,"i",(function(){return i})),c.d(t,"e",(function(){return s})),c.d(t,"c",(function(){return j})),c.d(t,"d",(function(){return p}));var n=c("b775");const r="/mosty-api/mosty-qwzx";function a(e){return Object(n["a"])({url:r+"/tbQwXfpb",method:"GET",params:e})}function l(e){return Object(n["a"])({url:r+"/tbQwXfpb/getMyXfpb",method:"GET",params:e})}function o(e){return Object(n["a"])({url:r+"/tbQwXfpb",method:"POST",data:e})}function b(e){return Object(n["a"])({url:r+"/tbQwXfpb/"+e,method:"delete"})}function u(e){return Object(n["a"])({url:r+"/tbQwXfpb/"+e,method:"GET"})}function d(e){return Object(n["a"])({url:r+"/tbQwXfpb",method:"put",data:e})}function i(e){return Object(n["a"])({url:r+"/tbQwXfpb/rlpbQuery",method:"GET",params:e})}function s(e){return Object(n["a"])({url:r+"/tbQwXfpb/getThisMonthPbList",method:"GET",params:e})}function j(e){return Object(n["a"])({url:"/mosty-api/mosty-sjzx/tbJq/getJqCount",method:"GET",params:e})}function p(e){return Object(n["a"])({url:r+"/tbQwXfpb/getPbbbByMonth",method:"GET",params:e})}},"2a97":function(e,t,c){"use strict";c("e1b4")},cadb:function(e,t,c){"use strict";function n(e,t){const c=e?new Date(e):new Date,n=c.getFullYear(),r=(c.getMonth()+1).toString().padStart(2,"0"),a=c.getDate().toString().padStart(2,"0"),l=c.getHours().toString().padStart(2,"0"),o=c.getMinutes().toString().padStart(2,"0"),b=c.getSeconds().toString().padStart(2,"0");return"ymd"==t?`${n}-${r}-${a}`:`${n}-${r}-${a} ${l}:${o}:${b}`}c.d(t,"a",(function(){return n}))},e1b4:function(e,t,c){}}]); |