Files
ba_web/ab/static/js/chunk-7ca55f58.b8fae790.js

1 line
9.9 KiB
JavaScript
Raw Normal View History

2025-09-26 12:56:52 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ca55f58"],{"3ea6":function(e,t,l){"use strict";l.r(t);var a=l("7a23"),o=l("3ef4"),c=l("92c2");const r=e=>(Object(a["pushScopeId"])("data-v-44b8e9da"),e=e(),Object(a["popScopeId"])(),e),b={class:"titleBox"},n=r(()=>Object(a["createElementVNode"])("div",{class:"title"},"岗位列表",-1)),d={class:"btnBox"},i=r(()=>Object(a["createElementVNode"])("span",null,"新增",-1)),s=Object(a["createTextVNode"])(" 查询 "),u=Object(a["createTextVNode"])(" 重置 "),j={class:"tabBox"},O=Object(a["createTextVNode"])("正常"),p=Object(a["createTextVNode"])("注销"),m=Object(a["createTextVNode"])("未知"),v=Object(a["createTextVNode"])("修改"),f=Object(a["createTextVNode"])("删除"),V={key:0,class:"dialog"},x={class:"head_box"},h={class:"title"},w=Object(a["createTextVNode"])("保存"),N=Object(a["createTextVNode"])("保存"),C=Object(a["createTextVNode"])("关闭");var g={__name:"index",setup(e){const{proxy:t}=Object(a["getCurrentInstance"])(),l=Object(a["ref"])(null),r=Object(a["ref"])(0),g=Object(a["ref"])(),k=Object(a["ref"])(0),_=(Object(a["ref"])(1),Object(a["ref"])(20),Object(a["ref"])(!1)),y=(Object(a["ref"])({}),Object(a["ref"])({page:1,size:10,positionName:"",positionCode:""})),z=Object(a["ref"])(null),B=Object(a["ref"])({postName:[{required:!0,message:"请输入岗位名称",trigger:"change"}],postCode:[{required:!0,message:"请输入岗位编码",trigger:"change"}]}),E=Object(a["ref"])(!0),T=Object(a["ref"])({}),U=()=>{y.value={page:1,size:10,positionName:"",positionCode:""},D()},Z=Object(a["ref"])([]),S=Object(a["ref"])(!1),D=async()=>{const e=y.value;e.current=e.page,e.current=e.page;const t=await Object(c["M"])(e);Z.value=null===t||void 0===t?void 0:t.records,k.value=Number(t.total)},I=()=>{y.value.page=1,D()};D();const R=e=>{y.value.size=e,D()},F=e=>{y.value.page=e,D()},q=e=>{E.value=!0,T.value={...e},S.value=!0},H=e=>{E.value=!1,T.value={},S.value=!0},J=()=>{z.value.validate(e=>{if(!e)return o["a"].error("请完成必填项!"),!1;_.value=!0,Object(c["V"])({...T.value}).then(e=>{S.value=!1,o["a"].success("修改成功"),_.value=!1,I()}).finally(()=>{_.value=!1})})},M=()=>{z.value.validate(e=>{if(!e)return o["a"].error("请完成必填项!"),!1;_.value=!0,Object(c["e"])({...T.value}).then(e=>{S.value=!1,o["a"].success("新增成功"),_.value=!1,I()}).finally(()=>{_.value=!1})})},P=e=>{Object(c["m"])({id:Number(e.id)}).then(e=>{o["a"].success("删除成功"),I()})},$=()=>{T.value={},S.value=!1},A=()=>{g.value=window.innerHeight-l.value.offsetHeight-240};return Object(a["onMounted"])(()=>{A(),window.onresize=function(){A()},t.mittBus.on("mittFn",e=>{r.value=e})}),Object(a["onUnmounted"])(()=>{t.mittBus.off("mittFn")}),(e,t)=>{const o=Object(a["resolveComponent"])("CirclePlus"),c=Object(a["resolveComponent"])("el-icon"),D=Object(a["resolveComponent"])("el-button"),A=Object(a["resolveComponent"])("el-input"),G=Object(a["resolveComponent"])("el-form-item"),K=Object(a["resolveComponent"])("el-form"),L=Object(a["resolveComponent"])("el-table-column"),Q=Object(a["resolveComponent"])("el-tag"),W=Object(a["resolveComponent"])("el-popconfirm"),X=Object(a["resolveComponent"])("el-table"),Y=Object(a["resolveComponent"])("el-pagination"),ee=Object(a["resolveComponent"])("el-option"),te=Object(a["resolveComponent"])("el-select");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",null,[Object(a["createElementVNode"])("div",b,[n,Object(a["createElementVNode"])("div",d,[Object(a["createVNode"])(D,{type:"primary",onClick:t[0]||(t[0]=e=>H())},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,null,{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(o)]),_:1}),i]),_:1})])]),Object(a["createElementVNode"])("div",{class:"searchBox",ref_key:"searchBox",ref:l},[Object(a["createVNode"])(K,{model:y.value,inline:!0},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(G,{label:"岗位名称"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(A,{placeholder:"请输入岗位名称",modelValue:y.value.positionName,"onUpd