mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect.git
synced 2025-06-24 13:34:13 +08:00
fixed
This commit is contained in:
parent
cc8aa7afed
commit
335ea7c121
1
detect.gui/Embedded/dist/assets/authorityApi-dc76c7ff.js
vendored
Normal file
1
detect.gui/Embedded/dist/assets/authorityApi-dc76c7ff.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{am as a}from"./index.js";const s="/v1/system/authority",r=t=>a.post({url:`${s}/`,data:t}),l=(t,e=!1)=>a.put({url:`${s}/`,data:t,params:{updateAllFields:e}}),c=t=>a.delete({url:`${s}/${t}`}),u=t=>a.get({url:`${s}/search`,params:t}),d=t=>a.get({url:`${s}/all`,params:t}),p=t=>a.get({url:`${s}/${t}`}),$=t=>a.post({url:`${s}/batch-delete`,data:t});export{r as a,$ as b,d as c,p as g,c as r,u as s,l as u};
|
1
detect.gui/Embedded/dist/assets/detail-19166f2e.js
vendored
Normal file
1
detect.gui/Embedded/dist/assets/detail-19166f2e.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{d as D,aj as I,f as $,o as w,c as F,a6 as _,Z as r,a4 as c,a5 as l,k as i,u as a,G as f,_ as d,F as y,a7 as G,a0 as H}from"./vue-08ef39cb.js";import{al as L,_ as N}from"./index.js";import{d as P}from"./schema-86a5e5c4.js";import{g as R}from"./regionApi-ad45a6bd.js";import{G as S,H as v,a4 as V}from"./antd-fb8ca017.js";const j={key:0},A=D({__name:"detail",setup(E){var p;const m=I(),g=$((p=m.params)==null?void 0:p.id),k=m.meta.title,{state:u,isReady:b,isLoading:x,execute:C}=L(R(g.value).then(s=>s),null,{immediate:!1});w(()=>{C()});const B=F(()=>b.value?P.map(({title:e,dataIndex:o="",customRender:n})=>({key:o,title:e,value:n?n({text:u.value[o],record:u.value}):u.value[o]})):{});return(s,e)=>{const o=_("a-button"),n=_("Image");return r(),c(a(V),{bordered:!1,loading:a(x)},{default:l(()=>[i(a(S),{title:a(k),onBack:e[1]||(e[1]=()=>s.$router.go(-1))},{extra:l(()=>[i(o,{type:"primary",onClick:e[0]||(e[0]=t=>s.$router.go(-1))},{default:l(()=>e[2]||(e[2]=[f("返回上一页面")])),_:1})]),_:1},8,["title"]),i(a(v),{bordered:"",column:3},{default:l(()=>[(r(!0),d(y,null,G(B.value,t=>(r(),c(a(v).Item,{key:t.key,label:t.title,span:["avatar"].includes(t.key)?3:1},{default:l(()=>[t.key==="avatar"?(r(),d("span",j,[i(n,{style:{width:"100px"},src:t.value},null,8,["src"])])):(r(),d(y,{key:1},[f(H(t.value),1)],64))]),_:2},1032,["label","span"]))),128))]),_:1})]),_:1},8,["loading"])}}});const J=N(A,[["__scopeId","data-v-faf6371a"]]);export{J as default};
|
1
detect.gui/Embedded/dist/assets/detail-5b06a3e6.css
vendored
Normal file
1
detect.gui/Embedded/dist/assets/detail-5b06a3e6.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
[data-v-faf6371a] .ant-card-body{padding-top:0}
|
1
detect.gui/Embedded/dist/assets/detail-f0b0df05.js
vendored
Normal file
1
detect.gui/Embedded/dist/assets/detail-f0b0df05.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{d as D,aj as I,f as $,o as w,c as F,a6 as _,Z as r,a4 as c,a5 as l,k as i,u as a,G as y,_ as u,F as f,a7 as G,a0 as H}from"./vue-08ef39cb.js";import{al as L,_ as N}from"./index.js";import{d as P}from"./schema-3cd89a70.js";import{g as R}from"./authorityApi-dc76c7ff.js";import{G as S,H as v,a4 as V}from"./antd-fb8ca017.js";const j={key:0},A=D({__name:"detail",setup(E){var p;const m=I(),g=$((p=m.params)==null?void 0:p.id),k=m.meta.title,{state:d,isReady:b,isLoading:x,execute:C}=L(R(g.value).then(s=>s),null,{immediate:!1});w(()=>{C()});const B=F(()=>b.value?P.map(({title:e,dataIndex:o="",customRender:n})=>({key:o,title:e,value:n?n({text:d.value[o],record:d.value}):d.value[o]})):{});return(s,e)=>{const o=_("a-button"),n=_("Image");return r(),c(a(V),{bordered:!1,loading:a(x)},{default:l(()=>[i(a(S),{title:a(k),onBack:e[1]||(e[1]=()=>s.$router.go(-1))},{extra:l(()=>[i(o,{type:"primary",onClick:e[0]||(e[0]=t=>s.$router.go(-1))},{default:l(()=>e[2]||(e[2]=[y("返回上一页面")])),_:1})]),_:1},8,["title"]),i(a(v),{bordered:"",column:3},{default:l(()=>[(r(!0),u(f,null,G(B.value,t=>(r(),c(a(v).Item,{key:t.key,label:t.title,span:["avatar"].includes(t.key)?3:1},{default:l(()=>[t.key==="avatar"?(r(),u("span",j,[i(n,{style:{width:"100px"},src:t.value},null,8,["src"])])):(r(),u(f,{key:1},[y(H(t.value),1)],64))]),_:2},1032,["label","span"]))),128))]),_:1})]),_:1},8,["loading"])}}});const J=N(A,[["__scopeId","data-v-d041459a"]]);export{J as default};
|
1
detect.gui/Embedded/dist/assets/drawer-46e6794a.css
vendored
Normal file
1
detect.gui/Embedded/dist/assets/drawer-46e6794a.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
detect.gui/Embedded/dist/assets/drawer-4c786577.js
vendored
Normal file
1
detect.gui/Embedded/dist/assets/drawer-4c786577.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{_ as o}from"./drawer.vue_vue_type_script_setup_true_lang-f9d2c764.js";import"./useForm-322569b9.js";import"./vue-08ef39cb.js";import"./index.js";import"./antd-fb8ca017.js";import"./index-9a268806.js";import"./useWindowSizeFn-40274562.js";import"./copyTextToClipboard-bf4926ca.js";import"./schema-3cd89a70.js";import"./index-922f0b14.js";import"./authorityApi-dc76c7ff.js";export{o as default};
|
1
detect.gui/Embedded/dist/assets/drawer-5fbbea14.css
vendored
Normal file
1
detect.gui/Embedded/dist/assets/drawer-5fbbea14.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
detect.gui/Embedded/dist/assets/drawer-7e953a98.js
vendored
Normal file
1
detect.gui/Embedded/dist/assets/drawer-7e953a98.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
detect.gui/Embedded/dist/assets/drawer-b3495615.js
vendored
Normal file
1
detect.gui/Embedded/dist/assets/drawer-b3495615.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var b=Object.defineProperty,j=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var w=(s,t,e)=>t in s?b(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,u=(s,t)=>{for(var e in t||(t={}))h.call(t,e)&&w(s,e,t[e]);if(p)for(var e of p(t))y.call(t,e)&&w(s,e,t[e]);return s},D=(s,t)=>j(s,L(t));var v=(s,t)=>{var e={};for(var r in s)h.call(s,r)&&t.indexOf(r)<0&&(e[r]=s[r]);if(s!=null&&p)for(var r of p(s))t.indexOf(r)<0&&y.call(s,r)&&(e[r]=s[r]);return e};var g=(s,t,e)=>new Promise((r,c)=>{var l=a=>{try{n(e.next(a))}catch(m){c(m)}},f=a=>{try{n(e.throw(a))}catch(m){c(m)}},n=a=>a.done?r(a.value):Promise.resolve(a.value).then(l,f);n((e=e.apply(s,t)).next())});import{u as C,B as H}from"./useForm-322569b9.js";import{f as I}from"./schema-86a5e5c4.js";import{a as M,B as O}from"./index-922f0b14.js";import{a as P,u as S}from"./regionApi-ad45a6bd.js";import{j as T}from"./antd-fb8ca017.js";import{d as U,f as B,c as V,u as i,Z as A,a4 as E,a5 as G,k as N,a9 as W}from"./vue-08ef39cb.js";import{_ as Z}from"./index.js";import"./index-9a268806.js";import"./useWindowSizeFn-40274562.js";import"./copyTextToClipboard-bf4926ca.js";const $=U({__name:"drawer",emits:["success","register"],setup(s,{emit:t}){const e=t,r=B(!0),c=B(),[l,{resetFields:f,setFieldsValue:n,validate:a}]=C({labelWidth:60,schemas:I,showActionButtonGroup:!1}),[m,{setDrawerProps:_,closeDrawer:F}]=M(o=>g(this,null,function*(){yield f(),_({confirmLoading:!1}),r.value=!!(o!=null&&o.isUpdate),c.value=o==null?void 0:o.record,i(r)&&(yield n(u({},o.record)))})),x=V(()=>i(r)?"编辑":"新增");function R(){return g(this,null,function*(){try{const o=yield a();_({confirmLoading:!0});const d=v(o,[]),k=i(r)?S:P,Y=i(r)?Object.assign({},D(u(u({},i(c)),d),{updateTime:T().format("YYYY-MM-DD HH:mm:ss")})):u({},d);yield k(Y),F(),e("success")}finally{_({confirmLoading:!1})}})}return(o,d)=>(A(),E(i(O),W(o.$attrs,{onRegister:i(m),showFooter:"",title:x.value,width:"600px",onOk:R}),{default:G(()=>[N(i(H),{onRegister:i(l),name:"EditForm"},null,8,["onRegister"])]),_:1},16,["onRegister","title"]))}});const ae=Z($,[["__scopeId","data-v-21405c84"]]);export{ae as default};
|
1
detect.gui/Embedded/dist/assets/drawer.vue_vue_type_script_setup_true_lang-f9d2c764.js
vendored
Normal file
1
detect.gui/Embedded/dist/assets/drawer.vue_vue_type_script_setup_true_lang-f9d2c764.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var j=Object.defineProperty,x=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var h=(s,r,e)=>r in s?j(s,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[r]=e,u=(s,r)=>{for(var e in r||(r={}))_.call(r,e)&&h(s,e,r[e]);if(l)for(var e of l(r))B.call(r,e)&&h(s,e,r[e]);return s},D=(s,r)=>x(s,L(r));var y=(s,r)=>{var e={};for(var t in s)_.call(s,t)&&r.indexOf(t)<0&&(e[t]=s[t]);if(s!=null&&l)for(var t of l(s))r.indexOf(t)<0&&B.call(s,t)&&(e[t]=s[t]);return e};var g=(s,r,e)=>new Promise((t,n)=>{var f=a=>{try{c(e.next(a))}catch(m){n(m)}},p=a=>{try{c(e.throw(a))}catch(m){n(m)}},c=a=>a.done?t(a.value):Promise.resolve(a.value).then(f,p);c((e=e.apply(s,r)).next())});import{u as C,B as H}from"./useForm-322569b9.js";import{f as M}from"./schema-3cd89a70.js";import{a as O,B as P}from"./index-922f0b14.js";import{a as S,u as T}from"./authorityApi-dc76c7ff.js";import{j as U}from"./antd-fb8ca017.js";import{d as V,f as F,u as i,c as A,Z as G,a4 as I,a5 as N,k as W,a9 as Z}from"./vue-08ef39cb.js";const X=V({__name:"drawer",emits:["success","register"],setup(s,{emit:r}){const e=r,t=F(!0),n=F(),[f,{resetFields:p,setFieldsValue:c,validate:a}]=C({labelWidth:120,schemas:M,showActionButtonGroup:!1}),[m,{setDrawerProps:d,closeDrawer:v}]=O(o=>g(this,null,function*(){yield p(),d({confirmLoading:!1}),t.value=!!(o!=null&&o.isUpdate),n.value=o==null?void 0:o.record,i(t)&&(yield c(u({},o.record)))})),k=A(()=>i(t)?"编辑":"新增");function R(){return g(this,null,function*(){try{const o=yield a();d({confirmLoading:!0});const w=y(o,[]),Y=i(t)?T:S,b=i(t)?Object.assign({},D(u(u({},i(n)),w),{updateTime:U().format("YYYY-MM-DD HH:mm:ss")})):u({},w);yield Y(b),v(),e("success")}finally{d({confirmLoading:!1})}})}return(o,w)=>(G(),I(i(P),Z(o.$attrs,{onRegister:i(m),showFooter:"",title:k.value,width:"600px",onOk:R}),{default:N(()=>[W(i(H),{onRegister:i(f)},null,8,["onRegister"])]),_:1},16,["onRegister","title"]))}});export{X as _};
|
1
detect.gui/Embedded/dist/assets/index-50de0f48.css
vendored
Normal file
1
detect.gui/Embedded/dist/assets/index-50de0f48.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
detect.gui/Embedded/dist/assets/index-6bcf3573.js
vendored
Normal file
1
detect.gui/Embedded/dist/assets/index-6bcf3573.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var S=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var w=(s,d)=>{var i={};for(var e in s)M.call(s,e)&&d.indexOf(e)<0&&(i[e]=s[e]);if(s!=null&&S)for(var e of S(s))d.indexOf(e)<0&&O.call(s,e)&&(i[e]=s[e]);return i};import{j,k as N,S as A,m as H,_ as V}from"./index.js";import{u as z,B as E}from"./useTable-f8594a7b.js";import{T as F}from"./useForm-322569b9.js";import{O as K,j as g}from"./antd-fb8ca017.js";import{r as G,s as U}from"./regionApi-ad45a6bd.js";import{u as W}from"./index-922f0b14.js";import Z from"./drawer-b3495615.js";import{c as q,s as x}from"./schema-86a5e5c4.js";import{d as J,a6 as L,Z as D,_ as Q,$ as Y,k as u,u as l,a5 as b,l as X,G as ee,a4 as te,a8 as oe}from"./vue-08ef39cb.js";import"./index-9a268806.js";import"./useWindowSizeFn-40274562.js";import"./onMountedOrActivated-4630d53b.js";import"./sortable.esm-15c0a34e.js";import"./copyTextToClipboard-bf4926ca.js";const se={class:"header"},ae=J({name:"RegionPage",__name:"index",setup(s){j(),N();const[d,{openDrawer:i}]=W(),[e,{reload:v,setSelectedRowKeys:y}]=z({api:t=>U(R(t)),columns:q,formConfig:{labelWidth:0,schemas:x,showAdvancedButton:!1},useSearchForm:!0,showTableSetting:!1,bordered:!0,showIndexColumn:!1,canResize:!1,rowKey:t=>t.id,actionColumn:{width:170,title:"操作",dataIndex:"action",fixed:"right"}}),R=(t,n=!0)=>{const C=t,{pageNum:f,pageSize:_,field:m="id",order:$="descend"}=C,I=w(C,["pageNum","pageSize","field","order"]),a={pageNum:f,pageSize:_,orderByClause:`${m} ${$==="descend"?"desc":"asc"}`};return Object.keys(I).forEach(h=>{const c=x.find(p=>p.field===h),o=t[h],r=h;if(c){if(o!==void 0&&o!=="")if(c.component==="Input"){const p=n?"":"%";a[r]=`${p}${o.trim()}${p}`}else["Select","ApiSelect","ApiTreeSelect"].includes(c.component)?a[r]=H(o)?o.value:o:c.component==="RangePicker"?(a[`${r}From`]=g(o[0]).startOf("d").format("YYYY-MM-DD HH:mm:ss"),a[`${r}To`]=g(o[1]).endOf("d").format("YYYY-MM-DD HH:mm:ss")):c.component==="DatePicker"?a[r]=g(o).format(c.componentProps.format||"YYYY-MM-DD"):a[r]=o}else a[r]=o}),a},k=()=>{i(!0,{isUpdate:!1})},T=t=>{i(!0,{record:t,isUpdate:!0})},B=t=>{G(t.id).then(n=>{v(),y([])})},P=()=>{v()};return(t,n)=>{const f=L("a-button");return D(),Q("div",null,[Y("div",se,[u(l(A),{size:"19",name:"list"}),n[0]||(n[0]=Y("div",{class:"title"},"区域列表",-1))]),u(l(E),{onRegister:l(e)},{toolbar:b(()=>[u(f,{type:"primary",onClick:k,icon:X(l(K))},{default:b(()=>n[1]||(n[1]=[ee("新增")])),_:1},8,["icon"])]),bodyCell:b(({column:_,record:m})=>[_.dataIndex==="action"?(D(),te(l(F),{key:0,actions:[{label:"编辑",icon:"clarity:note-edit-line",onClick:T.bind(null,m),divider:!0},{label:"删除",icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:B.bind(null,m),placement:"topRight"}}]},null,8,["actions"])):oe("",!0)]),_:1},8,["onRegister"]),u(Z,{onRegister:l(d),onSuccess:P},null,8,["onRegister"])])}}});const Ce=V(ae,[["__scopeId","data-v-cf01250c"]]);export{Ce as default};
|
1
detect.gui/Embedded/dist/assets/index-878a7c61.css
vendored
Normal file
1
detect.gui/Embedded/dist/assets/index-878a7c61.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
detect.gui/Embedded/dist/assets/index-a6340964.js
vendored
Normal file
1
detect.gui/Embedded/dist/assets/index-a6340964.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
var A=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var C=(a,p)=>{var i={};for(var o in a)K.call(a,o)&&p.indexOf(o)<0&&(i[o]=a[o]);if(a!=null&&A)for(var o of A(a))p.indexOf(o)<0&&z.call(a,o)&&(i[o]=a[o]);return i};import{j as G,k as L,m as W,l as Z}from"./index.js";import{u as q,B as J}from"./useTable-f8594a7b.js";import{T as Q}from"./useForm-322569b9.js";import{j as Y,N as X,P as ee}from"./antd-fb8ca017.js";import{s as te,r as oe,b as se}from"./authorityApi-dc76c7ff.js";import{u as ne}from"./index-922f0b14.js";import{_ as ae}from"./drawer.vue_vue_type_script_setup_true_lang-f9d2c764.js";import{c as re,s as E}from"./schema-3cd89a70.js";import{d as ie,f as le,a6 as ce,n as de,Z as m,_ as y,k as _,a5 as c,u as n,F as me,$ as H,a0 as ue,G as R,a4 as v,a8 as x,m as fe}from"./vue-08ef39cb.js";import"./index-9a268806.js";import"./useWindowSizeFn-40274562.js";import"./onMountedOrActivated-4630d53b.js";import"./sortable.esm-15c0a34e.js";import"./copyTextToClipboard-bf4926ca.js";const pe={key:1},He=ie({name:"AUTH_SYSTEM_AUTHORITY",__name:"index",setup(a){const{createMessage:p}=Z(),{hasPermission:i}=G(),o=L(),u=le([]),M=e=>{u.value=e.filter(t=>typeof t!="undefined")},[U,{openDrawer:k}]=ne(),[I,{reload:g,setSelectedRowKeys:S}]=q({title:"权限表",api:e=>te(B(e)),columns:re,formConfig:{labelWidth:120,schemas:E,showAdvancedButton:!1},rowSelection:{type:"checkbox",onChange:M},useSearchForm:!0,showTableSetting:!1,bordered:!0,showIndexColumn:!1,canResize:!1,rowKey:e=>e.id,actionColumn:{width:170,title:"操作",dataIndex:"action",fixed:"right"}}),B=e=>{const w=e,{pageNum:t,pageSize:h,field:b="id",order:T="descend"}=w,f=C(w,["pageNum","pageSize","field","order"]),r={pageNum:t,pageSize:h,orderByClause:`${b} ${T==="descend"?"desc":"asc"}`};return Object.keys(f).forEach(D=>{const d=E.find(V=>V.field===D),s=e[D],l=D;d?s!==void 0&&s!==""&&(d.component==="Input"?r[l]=`%${s.trim()}%`:["Select","ApiSelect","ApiTreeSelect"].includes(d.component)?r[l]=W(s)?s.value:s:d.component==="RangePicker"?(r[`${l}From`]=Y(s[0]).startOf("d").format("YYYY-MM-DD HH:mm:ss"),r[`${l}To`]=Y(s[1]).endOf("d").format("YYYY-MM-DD HH:mm:ss")):d.component==="DatePicker"?r[l]=Y(s).format(d.componentProps.format||"YYYY-MM-DD"):r[l]=s):r[l]=s}),r},O=()=>{k(!0,{isUpdate:!1})},P=e=>{k(!0,{record:e,isUpdate:!0})},$=e=>{oe(e.id).then(t=>{g(),S([])})},N=()=>{if(u.value.length===0){p.error("当前未选中任何项目!");return}se(u.value).then(e=>{g(),S([])})},j=()=>{g()},F=e=>{o("/system/authority/detail/"+e.id)};return(e,t)=>{const h=ce("a-button"),b=de("auth");return m(),y("div",null,[_(n(J),{onRegister:n(I)},{headerTop:c(()=>[_(n(X),{type:"info","show-icon":""},{message:c(()=>[u.value.length>0?(m(),y(me,{key:0},[H("span",null,"已选中"+ue(u.value.length)+"条记录",1),_(h,{type:"link",onClick:t[0]||(t[0]=T=>n(S)([])),size:"small"},{default:c(()=>t[1]||(t[1]=[R("清空")])),_:1}),n(i)("AUTH_SYSTEM_AUTHORITY:DELETE")?(m(),v(n(ee),{key:0,class:"ml-4",title:"确定要全部删除吗?","ok-text":"是","cancel-text":"否",onConfirm:N},{default:c(()=>t[2]||(t[2]=[H("a",{href:"#",class:"text-red-500"},"删除",-1)])),_:1})):x("",!0)],64)):(m(),y("span",pe,"未选中任何项目"))]),_:1})]),toolbar:c(()=>[fe((m(),v(h,{type:"primary",onClick:O},{default:c(()=>t[3]||(t[3]=[R(" 新增")])),_:1})),[[b,"AUTH_SYSTEM_AUTHORITY:ADD"]])]),bodyCell:c(({column:T,record:f})=>[T.dataIndex==="action"?(m(),v(n(Q),{key:0,actions:[{label:"编辑",icon:"clarity:note-edit-line",onClick:P.bind(null,f),ifShow:n(i)("AUTH_SYSTEM_AUTHORITY:EDIT"),divider:!0},{label:"详情",icon:"ant-design:eye-outlined",onClick:F.bind(null,f),divider:!0}],dropDownActions:[{label:"删除",icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:$.bind(null,f),placement:"topRight"},ifShow:n(i)("AUTH_SYSTEM_AUTHORITY:DELETE")}]},null,8,["actions","dropDownActions"])):x("",!0)]),_:1},8,["onRegister"]),_(ae,{onRegister:n(U),onSuccess:j},null,8,["onRegister"])])}}});export{He as default};
|
1
detect.gui/Embedded/dist/assets/index-c435c957.js
vendored
Normal file
1
detect.gui/Embedded/dist/assets/index-c435c957.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
detect.gui/Embedded/dist/assets/index-cb4e2542.css
vendored
Normal file
1
detect.gui/Embedded/dist/assets/index-cb4e2542.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
detect.gui/Embedded/dist/assets/index-ed76e283.js
vendored
Normal file
1
detect.gui/Embedded/dist/assets/index-ed76e283.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{B as g,u as C}from"./useTable-f8594a7b.js";import{T as v}from"./useForm-322569b9.js";import{S as w,r as T,l as B,s as S,_ as R}from"./index.js";import{u as k}from"./index-922f0b14.js";import{R as D,c as y,s as I}from"./drawer-7e953a98.js";import{d as $,l as A,a6 as a,Z as _,_ as E,$ as h,k as r,a5 as m,G as F,a4 as N,a8 as V}from"./vue-08ef39cb.js";import{O}from"./antd-fb8ca017.js";import"./index-9a268806.js";import"./useWindowSizeFn-40274562.js";import"./onMountedOrActivated-4630d53b.js";import"./sortable.esm-15c0a34e.js";import"./copyTextToClipboard-bf4926ca.js";import"./authorityApi-dc76c7ff.js";const P=$({name:"UserPage",methods:{PlusOutlined:O,h:A},components:{SvgIcon:w,BasicTable:g,RoleDrawer:D,TableAction:v},setup(){const{createMessage:e}=B(),[o,{openDrawer:i}]=k(),[p,{reload:l}]=C({api:S,columns:y,formConfig:{labelWidth:0,schemas:I,showAdvancedButton:!1},useSearchForm:!0,showTableSetting:!1,bordered:!0,showIndexColumn:!1,canResize:!1,pagination:!1,actionColumn:{width:80,title:"操作",dataIndex:"action",fixed:void 0}});function f(){i(!0,{isUpdate:!1})}function c(t){i(!0,{record:t,isUpdate:!0})}function u(t){T(t.id).then(n=>{e.success("删除用户成功!"),l()},n=>{e.error(`删除用户失败:${n}`)})}function d(){l()}return{registerTable:p,registerDrawer:o,handleCreate:f,handleEdit:c,handleDelete:u,handleSuccess:d}}});const U={class:"header"};function x(e,o,i,p,l,f){const c=a("SvgIcon"),u=a("a-button"),d=a("TableAction"),t=a("BasicTable"),n=a("RoleDrawer");return _(),E("div",null,[h("div",U,[r(c,{size:"19",name:"list"}),o[0]||(o[0]=h("div",{class:"title"},"用户列表",-1))]),r(t,{onRegister:e.registerTable},{toolbar:m(()=>[r(u,{type:"primary",onClick:e.handleCreate,icon:e.h(e.PlusOutlined)},{default:m(()=>o[1]||(o[1]=[F("新增用户 ")])),_:1},8,["onClick","icon"])]),bodyCell:m(({column:b,record:s})=>[b.key==="action"?(_(),N(d,{key:0,actions:[{label:"编辑",icon:"clarity:note-edit-line",onClick:e.handleEdit.bind(null,s),divider:!0,disabled:s.username==="admin"},{label:"删除",icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:e.handleDelete.bind(null,s),placement:"topRight"},disabled:s.username==="admin"}]},null,8,["actions"])):V("",!0)]),_:1},8,["onRegister"]),r(n,{onRegister:e.registerDrawer,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])])}const Y=R(P,[["render",x],["__scopeId","data-v-f25e0200"]]);export{Y as default};
|
Loading…
Reference in New Issue
Block a user