index-50524668.js 2.9 KB

123456789
  1. /**
  2. * 由 Fantastic-admin 提供技术支持
  3. * Powered by Fantastic-admin
  4. * Gitee https://gitee.com/hooray/fantastic-admin
  5. * Github https://github.com/hooray/fantastic-admin
  6. */
  7. import{_ as A}from"./index-ac700926.js";import{_ as B}from"./index-5f219f3f.js";import{a as I,u as S,d as T}from"./appApi-6362aa8c.js";import{K as _}from"./index-cd68550b.js";import{aU as m}from"./index-5cddd228.js";import{j as g,J as D,r as L,o as R,a3 as l,ad as z,k as r,l as E,E as e,y as n,z as K,u as c,x as u,C as f,B as N,q as V,aJ as $,aK as M,m as H}from"./runtime-core.esm-bundler-5fc1c360.js";import{_ as J}from"./_plugin-vue_export-helper-c27b6911.js";import"./index.vue_vue_type_script_setup_true_name_SvgIcon_lang-9ad2d3e0.js";import"./iconify-3d8b277a.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 j=s=>($("data-v-d051c4a4"),s=s(),M(),s),q=j(()=>H("div",null," 系统支持管理应用市场中已下架的应用 ",-1)),F=g({name:"AppRemoved"}),P=g({...F,setup(s){const a=D({loading:!1,tableAutoHeight:!1,search:{ifStore:0,keywords:""},dataList:[]}),h=L(),p=async()=>{a.loading=!0;const{data:t}=await I(a.search);a.dataList=t,a.loading=!1};R(()=>{p()});function b(t){_.confirm(`确认上架「${t.appTitle}」吗?`,"确认信息").then(async()=>{await S({appId:t.appId,ifStore:1}),await p(),m.success({message:"上架成功",center:!0})}).catch(()=>{})}function v(t){_.confirm(`确认删除「${t.appTitle}」吗?`,"确认信息").then(async()=>{await T(t.appId),await p(),m.success({message:"删除成功",center:!0})}).catch(()=>{})}return(t,U)=>{const y=B,o=l("el-table-column"),d=l("el-button"),w=l("el-table"),x=A,k=z("loading");return r(),E("div",{class:V({"absolute-container":c(a).tableAutoHeight})},[e(y,{title:"已下架应用"},{content:n(()=>[q]),_:1}),e(x,null,{default:n(()=>[K((r(),u(w,{ref_key:"appRemovedTableRef",ref:h,class:"list-table",data:c(a).dataList,border:"",stripe:"","highlight-current-row":"",height:"100%"},{default:n(()=>[e(o,{type:"index",label:"序号",width:"60","header-align":"center",align:"center"}),e(o,{prop:"appTitle",label:"名称","header-align":"center",align:"center",width:"200"}),e(o,{prop:"appCatTitle",label:"分类"}),e(o,{prop:"appKey",label:"app Key"}),e(o,{prop:"appSecret",label:"app Secret"}),e(o,{prop:"appDesc",label:"说明"}),e(o,{label:"操作",width:"250",align:"center",fixed:"right"},{default:n(i=>[e(d,{type:"primary",size:"small",plain:"",onClick:C=>b(i.row)},{default:n(()=>[f(" 重新上架 ")]),_:2},1032,["onClick"]),i.row.isFixed?N("",!0):(r(),u(d,{key:0,type:"danger",size:"small",plain:"",onClick:C=>v(i.row)},{default:n(()=>[f(" 删除 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])),[[k,c(a).loading]])]),_:1})],2)}}});const ce=J(P,[["__scopeId","data-v-d051c4a4"]]);export{ce as default};