1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-30a2f08a"],{"2d16":function(e,t,l){"use strict";var a=l("7a23"),c=l("7902");const o={class:"box"},r={key:0,class:"label"},n=Object(a["createTextVNode"])("全选"),s={key:11},p={class:"flex"},b=Object(a["createTextVNode"])("确定"),u=Object(a["createTextVNode"])("重置");var d={__name:"Search",props:{searchArr:{type:Array,default:()=>[{showType:"select",prop:"selectKey",options:[{value:1,label:"选择1"}],defaultVal:"",label:"选择",dict:""},{showType:"input",prop:"inputKey",defaultVal:"",label:"输入"},{showType:"daterange",prop:"daterangeKey",defaultVal:"",label:"输入"},{showType:"date",prop:"date",defaultVal:""},{showType:"checkbox",prop:"checkboxKey1",options:[{value:1,label:"选择1"}],defaultVal:""},{showType:"cascader",prop:"cascaderKey",label:"级联选择",checkStrictly:!1,defaultVal:""},{showType:"radio",defaultVal:""},{showType:"defaultTime",prop:"timeField",options:[]}]},marginBottom:{type:Number,default:15},backgroundColor:{type:String,default:"rgb(255, 255, 255, 1)"}},emits:["submit","reset"],setup(e,{emit:t}){const l=e,{proxy:d}=Object(a["getCurrentInstance"])();let i=Object(a["ref"])(!1);Object(a["ref"])(!1);let m=Object(a["reactive"])({});Object(a["reactive"])({typeValue:"01",timeArry:[]}),Object(a["ref"])("qs");const j={clearable:!0,filterable:!0,multiple:!1,placeholder:"请选择"};let O=Object(a["reactive"])({});const h={clearable:!0,placeholder:"请输入"},f=[{text:"今天",value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-0),[t,e]}},{text:"昨天",value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-864e5),e.setTime(e.getTime()-864e5),[t,e]}},{text:"最近7天",value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-6048e5),[t,e]}},{text:"最近30天",value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-2592e6),[t,e]}},{text:"最近90天",value:()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-7776e6),[t,e]}}],k={rangeSeparator:"至",startPlaceholder:"开始日期",endPlaceholder:"结束日期",shortcuts:[],defaultShortcuts:!0},g={clearable:!0,placeholder:"请输入",shortcuts:[],defaultShortcuts:!0},v=[{text:"今天",value:new Date},{text:"昨天",value:()=>{const e=new Date;return e.setTime(e.getTime()-864e5),e}},{text:"7天前",value:()=>{const e=new Date;return e.setTime(e.getTime()-6048e5),e}},{text:"30天前",value:()=>{const e=new Date;return e.setTime(e.getTime()-2592e6),e}},{text:"90天前",value:()=>{const e=new Date;return e.setTime(e.getTime()-7776e6),e}}],y=e=>e.getTime()>Date.now(),V=Object(a["reactive"])({defaultVal:[],checkAll:!1,isIndeterminate:!1,showSelectAll:!0}),x=(e,t)=>{m[t.prop]=e?t.checkboxValueArr:[],t.isIndeterminate=!1},w=(e,t)=>{const l=e.length;t.checkAll=l===t.checkboxValueArr.length,t.isIndeterminate=l>0&&l<t.checkboxValueArr.length},B=(e,t)=>{console.log(e,t)};let T={filterable:!0,clearable:!0,placeholder:"请选择",checkStrictly:!0,showAllLevels:!1,lazy:!0,portUrl:"",props:{label:"label",value:"value",children:"children"},options:[]};const C=Object(a["reactive"])({value:"value",label:"label",lazy:!0,lazyLoad(e,t){const{level:l}=e;let a=[];switch(l){case 0:a=[{value:1,label:"选择1",leaf:!1},{value:2,label:"选择2",leaf:!1},{value:3,label:"选择3",leaf:!1},{value:4,label:"选择4",leaf:!0}];break;case 1:a=[{value:11,label:"选择1_1",leaf:!0},{value:21,label:"选择2_1",leaf:!0},{value:31,label:"选择3_1",leaf:!0},{value:41,label:"选择4_1",leaf:!0}]}t(a)}});function D(e){console.log("vvvv",e)}let S=Object(a["reactive"])([]);const U=()=>{t("submit",m)},E=()=>{S.forEach(e=>{m[e.prop]=e.defaultVal}),t("submit",m),t("reset",!1)};Object(a["reactive"])([]);return Object(a["watchEffect"])(()=>{i.value=!0,S=JSON.parse(JSON.stringify(l.searchArr)),S=S.map(e=>{switch(e.showType){case"select":e={...j,...e},e.options=Object(a["reactive"])(e.options),O[e.prop]=e.options;break;case"input":e={...h,...e};break;case"daterange":e={...k,...e},e.defaultShortcuts&&(e.shortcuts=f);break;case"date":e={...g,...e},e.defaultShortcuts&&(e.shortcuts=v);break;case"checkbox":e=Object(a["reactive"])({...V,...e}),e.checkboxValueArr=e.options.map(e=>e.value);break;case"cascader":e={...T,...e},e.lazy?(C.checkStrictly=e.checkStrictly,e.props={...C,...e.props||{}},delete e.options):(e.props={...T.props,...e.props||{},checkStrictly:e.checkStrictly},O[e.prop]=Object(a["reactive"])(e.options));break}return i.value=!1,m[e.prop]=e.defaultVal,e})}),(t,l)=>{const d=Object(a["resolveComponent"])("el-option"),j=Object(a["resolveComponent"])("el-select"),h=Object(a["resolveComponent"])("el-input"),f=Object(a["resolveComponent"])("el-date-picker"),k=Object(a["resolveComponent"])("el-time-picker"),g=Object(a["resolveComponent"])("el-checkbox"),v=Object(a["resolveComponent"])("el-checkbox-group"),V=Object(a["resolveComponent"])("el-radio"),T=Object(a["resolveComponent"])("el-radio-group"),C=Object(a["resolveComponent"])("el-cascader"),N=Object(a["resolveComponent"])("el-button"),A=Object(a["resolveDirective"])("loading");return Object(a["withDirectives"])((Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"pageSearch searchBox",style:Object(a["normalizeStyle"])(`margin-bottom: ${e.marginBottom}px;background-color: ${e.backgroundColor}`)},[Object(a["createElementVNode"])("div",o,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(Object(a["unref"])(S),(e,l)=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:l,class:"item"},[e.label?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",r,Object(a["toDisplayString"])(e.label),1)):Object(a["createCommentVNode"])("",!0),"select"===e.showType?(Object(a["openBlock"])(),Object(a["createBlock"])(j,{key:1,modelValue:Object(a["unref"])(m)[e.prop],"onUpdate:modelValue":t=>Object(a["unref"])(m)[e.prop]=t,multiple:e.multiple,clearable:e.clearable,filterable:e.filterable,placeholder:e.placeholder,"collapse-tags":"","collapse-tags-tooltip":""},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(Object(a["unref"])(O)[e.prop],e=>(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:e.value,label:e.label||e.lable,value:e.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","multiple","clearable","filterable","placeholder"])):"input"===e.showType?(Object(a["openBlock"])(),Object(a["createBlock"])(h,{key:2,class:"input",modelValue:Object(a["unref"])(m)[e.prop],"onUpdate:modelValue":t=>Object(a["unref"])(m)[e.prop]=t,clearable:e.clearable,placeholder:e.placeholder},null,8,["modelValue","onUpdate:modelValue","clearable","placeholder"])):"daterange"===e.showType?(Object(a["openBlock"])(),Object(a["createBlock"])(f,{key:3,modelValue:Object(a["unref"])(m)[e.prop],"onUpdate:modelValue":t=>Object(a["unref"])(m)[e.prop]=t,type:"daterange","unlink-panels":"","range-separator":e.rangeSeparator,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,shortcuts:e.shortcuts,disabledDate:e.bool?y:"","value-format":"YYYY-MM-DD"},null,8,["modelValue","onUpdate:modelValue","range-separator","start-placeholder","end-placeholder","shortcuts","disabledDate"])):"date"===e.showType?(Object(a["openBlock"])(),Object(a["createBlock"])(f,{key:4,modelValue:Object(a["unref"])(m)[e.prop],"onUpdate:modelValue":t=>Object(a["unref"])(m)[e.prop]=t,type:"date",placeholder:e.placeholder,"disabled-date":y,shortcuts:e.shortcuts,"value-format":"YYYY-MM-DD"},null,8,["modelValue","onUpdate:modelValue","placeholder","shortcuts"])):"time"===e.showType?(Object(a["openBlock"])(),Object(a["createBlock"])(k,{key:5,modelValue:Object(a["unref"])(m)[e.prop],"onUpdate:modelValue":t=>Object(a["unref"])(m)[e.prop]=t,format:"HH:mm:ss","value-format":"HH:mm:ss",placeholder:e.placeholder},null,8,["modelValue","onUpdate:modelValue","placeholder"])):"datetime"===e.showType?(Object(a["openBlock"])(),Object(a["createBlock"])(f,{key:6,modelValue:Object(a["unref"])(m)[e.prop],"onUpdate:modelValue":t=>Object(a["unref"])(m)[e.prop]=t,type:"datetime",placeholder:e.placeholder,format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","onUpdate:modelValue","placeholder"])):"department"===e.showType?(Object(a["openBlock"])(),Object(a["createBlock"])(c["a"],{key:7,clearable:"",modelValue:e.ssbmdm,"onUpdate:modelValue":t=>e.ssbmdm=t},null,8,["modelValue","onUpdate:modelValue"])):"checkbox"===e.showType?(Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],{key:8},[e.showSelectAll?(Object(a["openBlock"])(),Object(a["createBlock"])(g,{key:0,modelValue:e.checkAll,"onUpdate:modelValue":t=>e.checkAll=t,indeterminate:e.isIndeterminate,onChange:t=>{x(t,e)}},{default:Object(a["withCtx"])(()=>[n]),_:2},1032,["modelValue","onUpdate:modelValue","indeterminate","onChange"])):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(v,{modelValue:Object(a["unref"])(m)[e.prop],"onUpdate:modelValue":t=>Object(a["unref"])(m)[e.prop]=t,onChange:t=>{w(t,e)}},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.options,e=>(Object(a["openBlock"])(),Object(a["createBlock"])(g,{key:e.value,label:e.value},{default:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])],64)):"radio"===e.showType?(Object(a["openBlock"])(),Object(a["createBlock"])(T,{key:9,modelValue:Object(a["unref"])(m)[e.prop],"onUpdate:modelValue":t=>Object(a["unref"])(m)[e.prop]=t,onChange:t=>{B(t,e)}},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.options,e=>(Object(a["openBlock"])(),Object(a["createBlock"])(V,{key:e.value,label:e.value},{default:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):"cascader"===e.showType?(Object(a["openBlock"])(),Object(a["createBlock"])(C,{key:10,onChange:D,modelValue:Object(a["unref"])(m)[e.prop],"onUpdate:modelValue":t=>Object(a["unref"])(m)[e.prop]=t,props:e.props,"show-all-levels":e.showAllLevels,clearable:e.clearable,options:Object(a["unref"])(O)[e.prop],placeholder:e.placeholder},null,8,["modelValue","onUpdate:modelValue","props","show-all-levels","clearable","options","placeholder"])):"defaultSlot"===e.showType?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",s,[Object(a["renderSlot"])(t.$slots,"defaultSlot")])):Object(a["createCommentVNode"])("",!0)]))),128)),Object(a["createElementVNode"])("div",p,[Object(a["createVNode"])(N,{type:"primary",onClick:U},{default:Object(a["withCtx"])(()=>[b]),_:1}),Object(a["createVNode"])(N,{type:"",onClick:E},{default:Object(a["withCtx"])(()=>[u]),_:1}),Object(a["renderSlot"])(t.$slots,"default")])])],4)),[[A,Object(a["unref"])(i)]])}}},i=(l("af0d"),l("6b0d")),m=l.n(i);const j=m()(d,[["__scopeId","data-v-42cc49f1"]]);t["a"]=j},"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"},s={class:"cnetr"},p={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,r))),128))])):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",n,Object(a["toDisplayString"])(e.title),1))]),Object(a["createElementVNode"])("div",s,[Object(a["renderSlot"])(t.$slots,"center")]),Object(a["createElementVNode"])("div",p,[Object(a["renderSlot"])(t.$slots,"default")])],4))}},u=(l("7a6f"),l("6b0d")),d=l.n(u);const i=d()(b,[["__scopeId","data-v-7d703107"]]);t["a"]=i},6641:function(e,t,l){},"7a6f":function(e,t,l){"use strict";l("6641")},"853d":function(e,t,l){"use strict";l.d(t,"k",(function(){return o})),l.d(t,"b",(function(){return r})),l.d(t,"j",(function(){return n})),l.d(t,"i",(function(){return s})),l.d(t,"a",(function(){return p})),l.d(t,"g",(function(){return b})),l.d(t,"e",(function(){return u})),l.d(t,"n",(function(){return d})),l.d(t,"m",(function(){return i})),l.d(t,"l",(function(){return m})),l.d(t,"h",(function(){return j})),l.d(t,"c",(function(){return O})),l.d(t,"o",(function(){return h})),l.d(t,"f",(function(){return f})),l.d(t,"d",(function(){return k}));var a=l("b775");const c="/mosty-api/mosty-zhgj",o=e=>Object(a["a"])({url:c+"/tbGjtj/gjCount",method:"get",params:e}),r=e=>Object(a["a"])({url:c+"/tbGjYjxx/getPageList",method:"post",data:e}),n=e=>Object(a["a"])({url:c+"/tbGjcl/selectPage",method:"get",params:e}),s=e=>Object(a["a"])({url:c+"/tbGjcl/selectList",method:"get",params:e}),p=e=>Object(a["a"])({url:c+"/gjDwjbxx/selectPage",method:"get",params:e}),b=e=>Object(a["a"])({url:c+"/tbGjclXlxx/selectPage",method:"get",params:e}),u=e=>Object(a["a"])({url:c+"/tbGjZdxx/selectPage",method:"get",params:e}),d=e=>Object(a["a"])({url:c+"/tbJcxxAbry/selectList",method:"get",params:e}),i=e=>Object(a["a"])({url:c+"/tbGpJbxx/selectPage",method:"get",params:e}),m=e=>Object(a["a"])({url:c+"/tbGpJbxx/getInfo/"+e,method:"post"}),j=e=>Object(a["a"])({url:c+"/tbGjcl/getInfo/"+e,method:"post"}),O=e=>Object(a["a"])({url:c+"/tbGjYjxx/getInfo/"+e,method:"get"}),h=e=>Object(a["a"])({url:c+"/tbJcxxAbry/selectPage",method:"get",params:e}),f=e=>Object(a["a"])({url:c+"/tbGjclXlxx/selectList",method:"get",params:e}),k=e=>Object(a["a"])({url:c+"/tbGjZdxx/selectList",method:"get",params:e})},"8cb5":function(e,t,l){},af0d:function(e,t,l){"use strict";l("8cb5")}}]); |