WokerTask/public/admin/assets/index.db2ea703.js

2 lines
7.0 KiB
JavaScript

import{C as J,D as W,N as G,O as H,w as K,F as M,J as X,P as Y,Q as Z,R as ee}from"./element-plus.ff90c99c.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.a844fe51.js";import{f as oe,b as ae}from"./index.2c97e227.js";import{u as ue}from"./usePaging.bd7a7dec.js";import{u as pe}from"./useDictOptions.262f9fba.js";import{_ as ne,a as re,b as ie}from"./edit.vue_vue_type_script_setup_true_name_appUpdateEdit_lang.37b023ed.js";import"./lodash.2e6f447e.js";import{d as $,s as se,r as P,$ as de,aq as me,o as p,c as E,W as e,Q as o,u as t,F as h,a9 as x,P as i,U as v,R as F,a as A,j as ce,T as _e,n as U}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./axios.075403c9.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.b6f240ee.js";import"./color.35874cfa.js";import"./clone.d8e67888.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.e6aad81b.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";import"./index.9321816e.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";const fe={class:"mt-4"},ve={class:"flex mt-4 justify-end"},be=$({name:"appUpdateLists"}),il=$({...be,setup(Fe){const B=se(),w=P(!1),u=de({title:"",content:"",type:"",version:"",dow_url:"",force:"",quiet:""}),V=P([]),R=r=>{V.value=r.map(({id:a})=>a)},{dictData:s}=pe("app_type,app_force_quiet"),{pager:b,getLists:C,resetParams:L,resetPage:N}=ue({fetchFun:ie,params:u}),S=async()=>{var r;w.value=!0,await U(),(r=B.value)==null||r.open("add")},T=async r=>{var a,c;w.value=!0,await U(),(a=B.value)==null||a.open("edit"),(c=B.value)==null||c.setFormData(r)},D=async r=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await re({id:r}),C()};return C(),(r,a)=>{const c=J,d=W,_=G,k=H,f=K,j=M,q=X,I=ae,n=Y,g=te,O=Z,Q=le,y=me("perms"),z=ee;return p(),E("div",null,[e(q,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(j,{class:"mb-[-16px]",model:t(u),inline:""},{default:o(()=>[e(d,{label:"\u6807\u9898",prop:"title"},{default:o(()=>[e(c,{class:"w-[280px]",modelValue:t(u).title,"onUpdate:modelValue":a[0]||(a[0]=l=>t(u).title=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u5185\u5BB9",prop:"content"},{default:o(()=>[e(c,{class:"w-[280px]",modelValue:t(u).content,"onUpdate:modelValue":a[1]||(a[1]=l=>t(u).content=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9",type:"textarea",autosize:""},null,8,["modelValue"])]),_:1}),e(d,{label:"APP\u7C7B\u578B",prop:"type"},{default:o(()=>[e(k,{class:"w-[280px]",modelValue:t(u).type,"onUpdate:modelValue":a[2]||(a[2]=l=>t(u).type=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9APP\u7C7B\u578B"},{default:o(()=>[e(_,{label:"\u5168\u90E8",value:""}),(p(!0),E(h,null,x(t(s).app_type,(l,m)=>(p(),i(_,{key:m,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u7248\u672C",prop:"version"},{default:o(()=>[e(c,{class:"w-[280px]",modelValue:t(u).version,"onUpdate:modelValue":a[3]||(a[3]=l=>t(u).version=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7248\u672C"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u662F\u5426\u5F3A\u5236\u66F4\u65B0",prop:"force"},{default:o(()=>[e(k,{class:"w-[280px]",modelValue:t(u).force,"onUpdate:modelValue":a[4]||(a[4]=l=>t(u).force=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u5F3A\u5236\u66F4\u65B0"},{default:o(()=>[e(_,{label:"\u5168\u90E8",value:""}),(p(!0),E(h,null,x(t(s).app_force_quiet,(l,m)=>(p(),i(_,{key:m,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u662F\u5426\u9759\u9ED8\u66F4\u65B0",prop:"quiet"},{default:o(()=>[e(k,{class:"w-[280px]",modelValue:t(u).quiet,"onUpdate:modelValue":a[5]||(a[5]=l=>t(u).quiet=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u9759\u9ED8\u66F4\u65B0"},{default:o(()=>[e(_,{label:"\u5168\u90E8",value:""}),(p(!0),E(h,null,x(t(s).app_force_quiet,(l,m)=>(p(),i(_,{key:m,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:o(()=>[e(f,{type:"primary",onClick:t(N)},{default:o(()=>[v("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:t(L)},{default:o(()=>[v("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((p(),i(q,{class:"!border-none",shadow:"never"},{default:o(()=>[F((p(),i(f,{type:"primary",onClick:S},{icon:o(()=>[e(I,{name:"el-icon-Plus"})]),default:o(()=>[v(" \u65B0\u589E ")]),_:1})),[[y,["app_update/add"]]]),F((p(),i(f,{disabled:!t(V).length,onClick:a[6]||(a[6]=l=>D(t(V)))},{default:o(()=>[v(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[y,["app_update/delete"]]]),A("div",fe,[e(O,{data:t(b).lists,onSelectionChange:R},{default:o(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u6807\u9898",prop:"title","show-overflow-tooltip":""}),e(n,{label:"\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(n,{label:"APP\u7C7B\u578B",prop:"type"},{default:o(({row:l})=>[e(g,{options:t(s).app_type,value:l.type},null,8,["options","value"])]),_:1}),e(n,{label:"\u7248\u672C",prop:"version","show-overflow-tooltip":""}),e(n,{label:"app\u94FE\u63A5",prop:"dow_url","show-overflow-tooltip":""}),e(n,{label:"\u662F\u5426\u5F3A\u5236\u66F4\u65B0",prop:"force"},{default:o(({row:l})=>[e(g,{options:t(s).app_force_quiet,value:l.force},null,8,["options","value"])]),_:1}),e(n,{label:"\u662F\u5426\u9759\u9ED8\u66F4\u65B0",prop:"quiet"},{default:o(({row:l})=>[e(g,{options:t(s).app_force_quiet,value:l.quiet},null,8,["options","value"])]),_:1}),e(n,{label:"\u66F4\u65B0\u65F6\u95F4",prop:"update_time","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:l})=>[F((p(),i(f,{type:"primary",link:"",onClick:m=>T(l)},{default:o(()=>[v(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["app_update/edit"]]]),F((p(),i(f,{type:"danger",link:"",onClick:m=>D(l.id)},{default:o(()=>[v(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["app_update/delete"]]])]),_:1})]),_:1},8,["data"])]),A("div",ve,[e(Q,{modelValue:t(b),"onUpdate:modelValue":a[7]||(a[7]=l=>ce(b)?b.value=l:null),onChange:t(C)},null,8,["modelValue","onChange"])])]),_:1})),[[z,t(b).loading]]),t(w)?(p(),i(ne,{key:0,ref_key:"editRef",ref:B,"dict-data":t(s),onSuccess:t(C),onClose:a[8]||(a[8]=l=>w.value=!1)},null,8,["dict-data","onSuccess"])):_e("",!0)])}}});export{il as default};