logistics_sy/public/admin/assets/index.ac775ea3.js

2 lines
4.2 KiB
JavaScript

import{w as q,K as R,L as T,I as U,M as N}from"./element-plus.0e78cb27.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.1d09c8e8.js";import{f as K,b as M}from"./index.e36afc36.js";import{u as O}from"./usePaging.160b82b8.js";import{_ as j,a as z,b as G}from"./edit.vue_vue_type_script_setup_true_name_appUpdateEdit_lang.123da846.js";import{d as k,s as H,r as F,$ as J,af as Q,o as n,c as W,M as d,u as p,K as u,L as a,R as X,U as e,a as g,S as s,T as b,k as Y,n as y}from"./@vue.e8706010.js";import"./lodash.e8c2b926.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.d871e3e1.js";import"./axios.263e335e.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.49c13ae5.js";import"./color.6f36a052.js";import"./clone.0bac550d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.762f2b8b.js";import"./ms.a9ae1d6d.js";import"./nprogress.f7d60be2.js";import"./vue-clipboard3.536bdb56.js";import"./clipboard.cadf3e40.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.c552a3cf.js";const Z=s(" \u65B0\u589E "),ee=s(" \u5220\u9664 "),te={class:"mt-4"},oe=s(" \u7F16\u8F91 "),ae=s(" \u5220\u9664 "),ie={class:"flex mt-4 justify-end"},le=k({name:"appUpdateLists"}),Ge=k({...le,setup(ne){const c=H(),m=F(!1),B=J({title:"",content:"",type:"",version:"",dow_url:"",force:"",quiet:""}),w=F([]),D=l=>{w.value=l.map(({id:o})=>o)},{dictData:E}={dictData:{app_force_quiet:[{name:"\u662F",value:1},{name:"\u5426",value:0}],app_type:[{name:"IOS",value:1},{name:"\u5B89\u5353",value:2}]}},{pager:r,getLists:_,resetParams:se,resetPage:pe}=O({fetchFun:z,params:B}),S=async()=>{var l;m.value=!0,await y(),(l=c.value)==null||l.open("add")},$=async l=>{var o,f;m.value=!0,await y(),(o=c.value)==null||o.open("edit"),(f=c.value)==null||f.setFormData(l)},C=async l=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await G({id:l}),_()};return _(),(l,o)=>{const f=M,v=q,i=R,x=T,A=I,P=U,h=Q("perms"),V=N;return n(),W("div",null,[d((n(),u(P,{class:"!border-none",shadow:"never"},{default:a(()=>[d((n(),u(v,{type:"primary",onClick:S},{icon:a(()=>[e(f,{name:"el-icon-Plus"})]),default:a(()=>[Z]),_:1})),[[h,["app_update/add"]]]),d((n(),u(v,{disabled:!w.value.length,onClick:o[0]||(o[0]=t=>C(w.value))},{default:a(()=>[ee]),_:1},8,["disabled"])),[[h,["app_update/delete"]]]),g("div",te,[e(x,{data:p(r).lists,onSelectionChange:D},{default:a(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u6807\u9898",prop:"title","show-overflow-tooltip":""}),e(i,{label:"\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(i,{label:"APP\u7C7B\u578B",prop:"type"},{default:a(({row:t})=>[s(b(t.force==1?"IOS":"\u5B89\u5353"),1)]),_:1}),e(i,{label:"\u7248\u672C",prop:"version","show-overflow-tooltip":""}),e(i,{label:"app\u94FE\u63A5",prop:"dow_url","show-overflow-tooltip":""}),e(i,{label:"\u662F\u5426\u5F3A\u5236\u66F4\u65B0",prop:"force"},{default:a(({row:t})=>[s(b(t.force==1?"\u662F":"\u5426"),1)]),_:1}),e(i,{label:"\u662F\u5426\u9759\u9ED8\u66F4\u65B0",prop:"quiet"},{default:a(({row:t})=>[s(b(t.quiet==1?"\u662F":"\u5426"),1)]),_:1}),e(i,{label:"\u66F4\u65B0\u65F6\u95F4",prop:"update_time","show-overflow-tooltip":""}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:t})=>[d((n(),u(v,{type:"primary",link:"",onClick:L=>$(t)},{default:a(()=>[oe]),_:2},1032,["onClick"])),[[h,["app_update/edit"]]]),d((n(),u(v,{type:"danger",link:"",onClick:L=>C(t.id)},{default:a(()=>[ae]),_:2},1032,["onClick"])),[[h,["app_update/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",ie,[e(A,{modelValue:p(r),"onUpdate:modelValue":o[1]||(o[1]=t=>Y(r)?r.value=t:null),onChange:p(_)},null,8,["modelValue","onChange"])])]),_:1})),[[V,p(r).loading]]),m.value?(n(),u(j,{key:0,ref_key:"editRef",ref:c,"dict-data":p(E),onSuccess:p(_),onClose:o[2]||(o[2]=t=>m.value=!1)},null,8,["dict-data","onSuccess"])):X("",!0)])}}});export{Ge as default};