2 lines
7.7 KiB
JavaScript
2 lines
7.7 KiB
JavaScript
import{C as M,D as Z,K as z,L as G,w as H,F as J,T as W,O as X,Q as Y,R as ee}from"./element-plus.681b9893.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import{f as oe,b as ae}from"./index.0c8416f0.js";import{u as ue}from"./usePaging.6a6670f9.js";import{u as pe}from"./useDictOptions.b307efcf.js";import{d as ne,e as re}from"./app_update.812915cf.js";import"./lodash.466e9fe4.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_appUpdateEdit_lang.46af8aa9.js";import{d as L,s as se,r as q,Z as de,ap as me,o as p,c as V,U as e,L as o,u as t,T as g,a9 as x,K as i,R as v,M as F,a as A,j as _e,Q as ce,n as $}from"./@vue.18505fe0.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.a7179cc9.js";const fe={class:"mt-4"},ve={class:"flex mt-4 justify-end"},be=L({name:"appUpdateLists"}),Vl=L({...be,setup(Fe){const w=se(),E=q(!1),u=de({title:"",content:"",type:"",version:"",dow_url:"",force:"",quiet:""}),y=q([]),R=r=>{y.value=r.map(({id:a})=>a)},{dictData:d}=pe("app_update_type,app_update_force,app_update_quiet"),{pager:b,getLists:B,resetParams:T,resetPage:P}=ue({fetchFun:re,params:u}),S=async()=>{var r;E.value=!0,await $(),(r=w.value)==null||r.open("add")},N=async r=>{var a,m;E.value=!0,await $(),(a=w.value)==null||a.open("edit"),(m=w.value)==null||m.setFormData(r)},h=async r=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:r}),B()};return B(),(r,a)=>{const m=M,s=Z,c=z,k=G,f=H,I=J,U=W,j=ae,n=X,D=te,K=Y,O=le,C=me("perms"),Q=ee;return p(),V("div",null,[e(U,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(I,{class:"mb-[-16px]",model:t(u),inline:""},{default:o(()=>[e(s,{label:"\u6807\u9898",prop:"title"},{default:o(()=>[e(m,{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(s,{label:"\u5185\u5BB9",prop:"content"},{default:o(()=>[e(m,{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"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u7CFB\u7EDF",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\u62E9\u7CFB\u7EDF"},{default:o(()=>[e(c,{label:"\u5168\u90E8",value:""}),(p(!0),V(g,null,x(t(d).app_update_type,(l,_)=>(p(),i(c,{key:_,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u7248\u672C",prop:"version"},{default:o(()=>[e(m,{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(s,{label:"app\u94FE\u63A5",prop:"dow_url"},{default:o(()=>[e(m,{class:"w-[280px]",modelValue:t(u).dow_url,"onUpdate:modelValue":a[4]||(a[4]=l=>t(u).dow_url=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165app\u94FE\u63A5"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5F3A\u5236\u66F4\u65B0",prop:"force"},{default:o(()=>[e(k,{class:"w-[280px]",modelValue:t(u).force,"onUpdate:modelValue":a[5]||(a[5]=l=>t(u).force=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5F3A\u5236\u66F4\u65B0"},{default:o(()=>[e(c,{label:"\u5168\u90E8",value:""}),(p(!0),V(g,null,x(t(d).app_update_force,(l,_)=>(p(),i(c,{key:_,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u9759\u9ED8\u66F4\u65B0",prop:"quiet"},{default:o(()=>[e(k,{class:"w-[280px]",modelValue:t(u).quiet,"onUpdate:modelValue":a[6]||(a[6]=l=>t(u).quiet=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u9759\u9ED8\u66F4\u65B0"},{default:o(()=>[e(c,{label:"\u5168\u90E8",value:""}),(p(!0),V(g,null,x(t(d).app_update_quiet,(l,_)=>(p(),i(c,{key:_,label:l.name,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,null,{default:o(()=>[e(f,{type:"primary",onClick:t(P)},{default:o(()=>[v("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:t(T)},{default:o(()=>[v("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),F((p(),i(U,{class:"!border-none",shadow:"never"},{default:o(()=>[F((p(),i(f,{type:"primary",onClick:S},{icon:o(()=>[e(j,{name:"el-icon-Plus"})]),default:o(()=>[v(" \u65B0\u589E ")]),_:1})),[[C,["app_update.app_update/add"]]]),F((p(),i(f,{disabled:!t(y).length,onClick:a[7]||(a[7]=l=>h(t(y)))},{default:o(()=>[v(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["app_update.app_update/delete"]]]),A("div",fe,[e(K,{data:t(b).lists,onSelectionChange:R},{default:o(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(n,{label:"\u6807\u9898",prop:"title","show-overflow-tooltip":""}),e(n,{label:"\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(n,{label:"1ios 2\u5B89\u5353",prop:"type"},{default:o(({row:l})=>[e(D,{options:t(d).app_update_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:"\u5F3A\u5236\u66F4\u65B0",prop:"force"},{default:o(({row:l})=>[e(D,{options:t(d).app_update_force,value:l.force},null,8,["options","value"])]),_:1}),e(n,{label:"\u9759\u9ED8\u66F4\u65B0",prop:"quiet"},{default:o(({row:l})=>[e(D,{options:t(d).app_update_quiet,value:l.quiet},null,8,["options","value"])]),_:1}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:l})=>[F((p(),i(f,{type:"primary",link:"",onClick:_=>N(l)},{default:o(()=>[v(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[C,["app_update.app_update/edit"]]]),F((p(),i(f,{type:"danger",link:"",onClick:_=>h(l.id)},{default:o(()=>[v(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[C,["app_update.app_update/delete"]]])]),_:1})]),_:1},8,["data"])]),A("div",ve,[e(O,{modelValue:t(b),"onUpdate:modelValue":a[8]||(a[8]=l=>_e(b)?b.value=l:null),onChange:t(B)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,t(b).loading]]),t(E)?(p(),i(ie,{key:0,ref_key:"editRef",ref:w,"dict-data":t(d),onSuccess:t(B),onClose:a[9]||(a[9]=l=>E.value=!1)},null,8,["dict-data","onSuccess"])):ce("",!0)])}}});export{Vl as default};
|