1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/likeadmin-likeadmin_java

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Это зеркальный репозиторий, синхронизируется ежедневно с исходного репозитория.
Клонировать/Скачать
index.401b11d9.js 5.4 КБ
Копировать Редактировать Исходные данные Просмотреть построчно История
Jason Отправлено 2 лет назад c64d015
import{Z as J,C as M,D as Q,Q as Z,R as G,w as H,F as W,I as X,J as Y,K as ee,L as te}from"./element-plus.dc25723c.js";import{u as oe,_ as ae}from"./usePaging.a52dcef9.js";import{j as le,f as T,b as ne}from"./index.4333e73f.js";import{d as R,s as ie,r as D,a0 as se,a5 as ue,ag as de,o as l,c as x,V as e,M as t,aa as S,u as n,a as E,O as p,L as c,k as ce,S as re,T as s,n as N}from"./@vue.cab01781.js";import{h as pe,i as me}from"./dict.e05e17e9.js";import{_ as _e}from"./edit.vue_vue_type_script_setup_true_lang.6c818e35.js";import"./@vueuse.724ed0af.js";import"./@element-plus.92b4185f.js";import"./lodash-es.29c53eac.js";import"./dayjs.37ec2129.js";import"./axios.fd02a783.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.75518cf9.js";import"./vue-router.5046cc50.js";import"./pinia.e85e8286.js";import"./vue-demi.bfae2336.js";import"./css-color-function.a8f9466d.js";import"./color.903ca10f.js";import"./clone.9d64bb7a.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.748450be.js";import"./vue-clipboard3.049f28db.js";import"./clipboard.6e731210.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0ab41b7b.js";import"./index.857546d9.js";const fe={class:"dict-type"},ye=s("\u67E5\u8BE2"),ve=s("\u91CD\u7F6E"),ge=s(" \u65B0\u589E "),Ce=s(" \u5220\u9664 "),he={class:"mt-4"},be=s("\u6B63\u5E38"),ke=s("\u505C\u7528"),Ee=s(" \u7F16\u8F91 "),Be=s(" \u6570\u636E\u7BA1\u7406 "),we=s(" \u5220\u9664 "),Fe={class:"flex justify-end mt-4"},Ve=R({name:"dictType"}),dt=R({...Ve,setup(Te){const y=ie(),v=D(!1),u=se({dictName:"",dictType:"",dictStatus:""}),{pager:m,getLists:g,resetPage:h,resetParams:$}=oe({fetchFun:me,params:u}),b=D([]),K=i=>{b.value=i.map(({id:o})=>o)},P=async()=>{var i;v.value=!0,await N(),(i=y.value)==null||i.open("add")},L=async i=>{var o,_;v.value=!0,await N(),(o=y.value)==null||o.open("edit"),(_=y.value)==null||_.setFormData(i)},B=async i=>{await T.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({ids:i}),T.msgSuccess("\u5220\u9664\u6210\u529F"),g()};return g(),(i,o)=>{const _=M,C=Q,k=Z,A=G,r=H,I=W,w=X,F=ne,d=Y,V=J,U=ue("router-link"),j=ee,q=ae,f=de("perms"),O=te;return l(),x("div",fe,[e(w,{class:"!border-none",shadow:"never"},{default:t(()=>[e(I,{ref:"formRef",class:"mb-[-16px]",model:u,inline:""},{default:t(()=>[e(C,{label:"\u5B57\u5178\u540D\u79F0"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:u.dictName,"onUpdate:modelValue":o[0]||(o[0]=a=>u.dictName=a),clearable:"",onKeyup:S(n(h),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,{label:"\u5B57\u5178\u7C7B\u578B"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:u.dictType,"onUpdate:modelValue":o[1]||(o[1]=a=>u.dictType=a),clearable:"",onKeyup:S(n(h),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,{label:"\u72B6\u6001"},{default:t(()=>[e(A,{class:"w-[280px]",modelValue:u.dictStatus,"onUpdate:modelValue":o[2]||(o[2]=a=>u.dictStatus=a)},{default:t(()=>[e(k,{label:"\u5168\u90E8",value:""}),e(k,{label:"\u6B63\u5E38",value:1}),e(k,{label:"\u505C\u7528",value:0})]),_:1},8,["modelValue"])]),_:1}),e(C,null,{default:t(()=>[e(r,{type:"primary",onClick:n(h)},{default:t(()=>[ye]),_:1},8,["onClick"]),e(r,{onClick:n($)},{default:t(()=>[ve]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),e(w,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[E("div",null,[p((l(),c(r,{type:"primary",onClick:P},{icon:t(()=>[e(F,{name:"el-icon-Plus"})]),default:t(()=>[ge]),_:1})),[[f,["setting:dict:type:add"]]]),p((l(),c(r,{disabled:!b.value.length,type:"danger",onClick:o[3]||(o[3]=a=>B(b.value))},{icon:t(()=>[e(F,{name:"el-icon-Delete"})]),default:t(()=>[Ce]),_:1},8,["disabled"])),[[f,["setting:dict:type:list"]]])]),p((l(),x("div",he,[E("div",null,[e(j,{data:n(m).lists,size:"large",onSelectionChange:K},{default:t(()=>[e(d,{type:"selection",width:"55"}),e(d,{label:"ID",prop:"id"}),e(d,{label:"\u5B57\u5178\u540D\u79F0",prop:"dictName","min-width":"120"}),e(d,{label:"\u5B57\u5178\u7C7B\u578B",prop:"dictType","min-width":"120"}),e(d,{label:"\u72B6\u6001"},{default:t(({row:a})=>[a.dictStatus==1?(l(),c(V,{key:0},{default:t(()=>[be]),_:1})):(l(),c(V,{key:1,type:"danger"},{default:t(()=>[ke]),_:1}))]),_:1}),e(d,{label:"\u5907\u6CE8",prop:"dictRemark","show-tooltip-when-overflow":""}),e(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime","min-width":"180"}),e(d,{label:"\u64CD\u4F5C",width:"190",fixed:"right"},{default:t(({row:a})=>[p((l(),c(r,{link:"",type:"primary",onClick:z=>L(a)},{default:t(()=>[Ee]),_:2},1032,["onClick"])),[[f,["setting:dict:type:edit"]]]),p((l(),c(r,{type:"primary",link:""},{default:t(()=>[e(U,{to:{path:n(le)("setting:dict:data:list"),query:{type:a.dictType}}},{default:t(()=>[Be]),_:2},1032,["to"])]),_:2},1024)),[[f,["setting:dict:data:list"]]]),p((l(),c(r,{link:"",type:"danger",onClick:z=>B([a.id])},{default:t(()=>[we]),_:2},1032,["onClick"])),[[f,["setting:dict:type:del"]]])]),_:1})]),_:1},8,["data"])]),E("div",Fe,[e(q,{modelValue:n(m),"onUpdate:modelValue":o[4]||(o[4]=a=>ce(m)?m.value=a:null),onChange:n(g)},null,8,["modelValue","onChange"])])])),[[O,n(m).loading]])]),_:1}),v.value?(l(),c(_e,{key:0,ref_key:"editRef",ref:y,onSuccess:n(g),onClose:o[5]||(o[5]=a=>v.value=!1)},null,8,["onSuccess"])):re("",!0)])}}});export{dt as default};

Комментарий ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://gitlife.ru/oschina-mirror/likeadmin-likeadmin_java.git
git@gitlife.ru:oschina-mirror/likeadmin-likeadmin_java.git
oschina-mirror
likeadmin-likeadmin_java
likeadmin-likeadmin_java
1.3.4