/** * 由 Fantastic-admin 提供技术支持 * Powered by Fantastic-admin * Gitee https://gitee.com/hooray/fantastic-admin * Github https://github.com/hooray/fantastic-admin */ import{_ as N}from"./index-ac700926.js";import{_ as z}from"./index-5f219f3f.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_name_SvgIcon_lang-9ad2d3e0.js";import L from"./position-e40d49df.js";import{g as M,d as P}from"./positionApi-ffb3fd92.js";import{K as $}from"./index-cd68550b.js";import{aU as A}from"./index-5cddd228.js";import{j as g,J as S,r as V,o as H,a3 as n,ad as J,k as d,l as K,E as e,y as t,C as p,z as R,u as m,x as f,B as j,q,aJ as F,aK as T,m as U}from"./runtime-core.esm-bundler-5fc1c360.js";import{_ as G}from"./_plugin-vue_export-helper-c27b6911.js";import"./iconify-3d8b277a.js";import"./route-block-83d24a4e.js";import"./menu-2c9c5182.js";import"./settings-be8974ad.js";import"./pinia-7162f4ce.js";import"./_MapCache-1b613190.js";import"./vue-router-8a13d09b.js";import"./index-c228ae8f.js";import"./iframe-10768394.js";import"./runtime-dom.esm-bundler-e65f1c43.js";const O=i=>(F("data-v-3a5dd047"),i=i(),T(),i),Q=O(()=>U("div",null," 设定单位的人员岗位信息 ",-1)),W=g({name:"roleIndex"}),X=g({...W,setup(i){const a=S({loading:!1,tableAutoHeight:!1,search:{keywords:""},dataList:[]}),l=V(),c=async()=>{a.loading=!0;const{data:o}=await M({});a.dataList=o,a.loading=!1};H(()=>{c()});function h(){l.value.showAddModel()}function b(o){const u=o.positionId;l.value.showEditModel(u)}function v(o){$.confirm(`确认删除「${o.positionName}」吗?`,"确认信息").then(async()=>{await P(o.positionId),await c(),A.success({message:"删除成功",center:!0})}).catch(()=>{})}return(o,u)=>{const y=D,w=n("el-icon"),r=n("el-button"),x=n("el-button-group"),k=z,s=n("el-table-column"),C=n("el-table"),I=N,B=J("loading");return d(),K("div",{class:q({"absolute-container":m(a).tableAutoHeight})},[e(k,{title:"岗位管理"},{content:t(()=>[Q]),default:t(()=>[e(x,null,{default:t(()=>[e(r,{type:"primary",size:"large",plain:"",onClick:h},{icon:t(()=>[e(w,null,{default:t(()=>[e(y,{name:"ep:plus"})]),_:1})]),default:t(()=>[p(" 新增 ")]),_:1})]),_:1})]),_:1}),e(I,null,{default:t(()=>[R((d(),f(C,{class:"list-table",data:m(a).dataList,border:"",stripe:"","highlight-current-row":"",height:"100%"},{default:t(()=>[e(s,{type:"index",label:"序号",width:"60","header-align":"center",align:"center"}),e(s,{prop:"positionName",label:"名称","header-align":"center",align:"center",width:"200"}),e(s,{prop:"positionDesc",label:"说明"}),e(s,{label:"操作",width:"250",align:"center",fixed:"right"},{default:t(_=>[e(r,{type:"primary",size:"small",plain:"",onClick:E=>b(_.row)},{default:t(()=>[p(" 编辑 ")]),_:2},1032,["onClick"]),_.row.isFixed?j("",!0):(d(),f(r,{key:0,type:"danger",size:"small",plain:"",onClick:E=>v(_.row)},{default:t(()=>[p(" 删除 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])),[[B,m(a).loading]])]),_:1}),e(L,{ref_key:"positionRef",ref:l,onSuccess:c},null,512)],2)}}});const he=G(X,[["__scopeId","data-v-3a5dd047"]]);export{he as default};