1 Star 0 Fork 0

阿炸克斯/approval-data-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
p__qa__index.async.js 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
GitHub Action 提交于 2024-11-04 03:32 . update
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[445],{3049:function(F,r,t){t.r(r),t.d(r,{default:function(){return z}});var o=t(54306),y=t.n(o),m=t(71569),v=t(16112),f="/db/qa/list.json",A=function(){return v.f.getData(f)},C=function(d){return v.f.updateData(f,d)},e=t(89101),D=t(37516),a=t(57002),P=t(78990),E=t(20231),B=t(55595),L=t(45043),V=t(89865),R=t(54263),p=t(40761),n=t(62086),h=function(){return{Q:"",A:""}};function z(){var s=e.Z.useForm(),d=y()(s,1),u=d[0],g=(0,m.Z)(function(){return A().then(function(l){return u.setFieldsValue({list:l.data}),l})}),I=g.loading,Q=g.run,j=(0,m.Z)(function(){return C(u.getFieldsValue().list||[]).then(function(l){D.ZP.success("\u4FDD\u5B58\u6210\u529F"),Q()})},{manual:!0}),T=j.loading,H=j.run;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(V.Z,{children:(0,n.jsx)(a.ZP,{loading:T,onClick:H,type:"primary",children:"\u4FDD\u5B58\u4FEE\u6539"})}),(0,n.jsx)(R.Z,{children:(0,n.jsx)(e.Z,{form:u,children:(0,n.jsx)(e.Z.List,{name:"list",children:function(M,Z){var x=Z.add,O=Z.remove;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(P.Z,{justify:"center",children:(0,n.jsx)(a.ZP,{style:{width:300},type:"primary",onClick:function(){x(h(),0)},children:"\u6DFB\u52A0"})}),(0,n.jsx)("br",{}),M.map(function(i,c){return(0,n.jsxs)(E.Z,{size:"small",style:{marginBottom:8},title:"".concat(c+1),loading:I,extra:(0,n.jsxs)(B.Z,{children:[(0,n.jsx)(a.ZP,{size:"small",type:"primary",onClick:function(){x(h(),c+1),console.log(u.getFieldsValue())},children:"\u6DFB\u52A0"}),(0,n.jsx)(a.ZP,{size:"small",danger:!0,onClick:function(){O(c)},children:"\u5220\u9664"})]}),children:[(0,n.jsx)(e.Z.Item,{name:[i.name,"Q"],rules:[{required:!0}],label:"\u95EE",children:(0,n.jsx)(L.Z,{})}),(0,n.jsx)(e.Z.Item,{name:[i.name,"A"],rules:[{required:!0}],label:"\u7B54",children:(0,n.jsx)(p.Z,{})})]},i.key)})]})}})})})]})}},78990:function(F,r,t){var o=t(31546);r.Z=o.Z}}]);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/ajax_lv/approval-data-admin.git
git@gitee.com:ajax_lv/approval-data-admin.git
ajax_lv
approval-data-admin
approval-data-admin
gh-pages

搜索帮助