轮播修改
This commit is contained in:
@@ -57,10 +57,12 @@ export default defineConfig({
|
||||
*/
|
||||
proxy: proxy['pro'],
|
||||
define: {
|
||||
'pro': {
|
||||
API_URL: "https://iadminapi.zhongshuai2023.com",
|
||||
// API_URL: "https://shopapi.jitucdz.com",
|
||||
}
|
||||
"process.env": {
|
||||
API_URL: "https://shopapi.jitucdz.com",
|
||||
WS_URL: "ws://shopapi.jitucdz.com",
|
||||
STATIC_URL: "https://shopapi.jitucdz.com",
|
||||
WEMAP_KEY: "ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X",
|
||||
},
|
||||
},
|
||||
/**
|
||||
* @name 快速热更新配置
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -8,6 +8,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="/umi.552cb5ae.js"></script>
|
||||
<script src="/umi.e4c2eae3.js"></script>
|
||||
|
||||
</body></html>
|
||||
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9532],{35748:function(A,d,e){var l=e(35361),o=e(56929),t=e(50959),a=e(20734),s=e(11527),i=["fieldProps","min","proFieldProps","max"],u=function(r,m){var E=r.fieldProps,P=r.min,h=r.proFieldProps,M=r.max,C=(0,o.Z)(r,i);return(0,s.jsx)(a.Z,(0,l.Z)({valueType:"digit",fieldProps:(0,l.Z)({min:P,max:M},E),ref:m,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:h},C))},_=t.forwardRef(u);d.Z=_},92323:function(A,d,e){var l=e(35361),o=e(56929),t=e(50959),a=e(20734),s=e(11527),i=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],u=t.forwardRef(function(_,p){var r=_.fieldProps,m=_.unCheckedChildren,E=_.checkedChildren,P=_.proFieldProps,h=(0,o.Z)(_,i);return(0,s.jsx)(a.Z,(0,l.Z)({valueType:"switch",fieldProps:(0,l.Z)({unCheckedChildren:m,checkedChildren:E},r),ref:p,valuePropName:"checked",proFieldProps:P,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},h))});d.Z=u},33245:function(A,d,e){e.r(d);var l=e(90228),o=e.n(l),t=e(87999),a=e.n(t),s=e(48305),i=e.n(s),u=e(50959),_=e(49547),p=e(35748),r=e(19014),m=e(92323),E=e(50925),P=e(94675),h=e(3598),M=e(7485),C=e(2733),n=e(11527),R=function(D){var T=E.Z.useForm(),x=i()(T,1),c=x[0],O=D.values;(0,u.useEffect)(function(){console.log(O,"values"),c.resetFields(),c.setFieldsValue(O)},[c,D]);var L=(0,M.useIntl)(),I=function(){c.submit()},U=function(){D.onCancel()},W=function(){var v=a()(o()().mark(function F(j){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:D.onSubmit(j);case 1:case"end":return f.stop()}},F)}));return function(j){return v.apply(this,arguments)}}();return(0,n.jsx)(P.Z,{width:640,title:"\u8F6E\u64AD\u56FE",open:D.open,forceRender:!0,destroyOnClose:!0,onOk:I,onCancel:U,children:(0,n.jsxs)(_.A,{form:c,submitter:!1,layout:"horizontal",onFinish:W,children:[(0,n.jsx)(p.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,n.jsx)(_.A.Group,{children:(0,n.jsx)(r.Z,{name:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"})}),(0,n.jsxs)(_.A.Group,{children:[(0,n.jsx)(_.A.Item,{label:"\u6392\u5E8F",name:"sortOrder",children:(0,n.jsx)(h.Z,{style:{width:200}})}),(0,n.jsx)(r.Z,{name:"jumpUrl",label:"\u8DF3\u8F6C\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165\u8DF3\u8F6C\u5730\u5740"}),(0,n.jsx)(m.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],checkedChildren:"\u542F\u7528",unCheckedChildren:"\u7981\u7528",name:"status",label:"\u662F\u5426\u542F\u7528",fieldProps:{defaultChecked:!0}})]}),(0,n.jsx)(_.A.Group,{children:(0,n.jsx)(_.A.Item,{label:"\u56FE\u7247",name:"imageUrl",children:(0,n.jsx)(C.Z,{fileType:"image",defaultValue:O==null?void 0:O.imageUrl,count:1,mode:""})})})]})})};d.default=R}}]);
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9532],{35748:function(A,d,e){var l=e(35361),o=e(56929),t=e(50959),a=e(20734),i=e(11527),s=["fieldProps","min","proFieldProps","max"],u=function(r,m){var E=r.fieldProps,P=r.min,h=r.proFieldProps,M=r.max,C=(0,o.Z)(r,s);return(0,i.jsx)(a.Z,(0,l.Z)({valueType:"digit",fieldProps:(0,l.Z)({min:P,max:M},E),ref:m,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:h},C))},_=t.forwardRef(u);d.Z=_},92323:function(A,d,e){var l=e(35361),o=e(56929),t=e(50959),a=e(20734),i=e(11527),s=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],u=t.forwardRef(function(_,p){var r=_.fieldProps,m=_.unCheckedChildren,E=_.checkedChildren,P=_.proFieldProps,h=(0,o.Z)(_,s);return(0,i.jsx)(a.Z,(0,l.Z)({valueType:"switch",fieldProps:(0,l.Z)({unCheckedChildren:m,checkedChildren:E},r),ref:p,valuePropName:"checked",proFieldProps:P,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},h))});d.Z=u},33245:function(A,d,e){e.r(d);var l=e(90228),o=e.n(l),t=e(87999),a=e.n(t),i=e(48305),s=e.n(i),u=e(50959),_=e(49547),p=e(35748),r=e(19014),m=e(92323),E=e(50925),P=e(94675),h=e(3598),M=e(7485),C=e(2733),n=e(11527),R=function(D){var T=E.Z.useForm(),x=s()(T,1),c=x[0],O=D.values;(0,u.useEffect)(function(){console.log(O,"values"),c.resetFields(),c.setFieldsValue(O)},[c,D]);var L=(0,M.useIntl)(),I=function(){c.submit()},U=function(){D.onCancel()},W=function(){var v=a()(o()().mark(function F(j){return o()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:D.onSubmit(j);case 1:case"end":return f.stop()}},F)}));return function(j){return v.apply(this,arguments)}}();return(0,n.jsx)(P.Z,{width:640,title:"\u8F6E\u64AD\u56FE",open:D.open,forceRender:!0,destroyOnClose:!0,onOk:I,onCancel:U,children:(0,n.jsxs)(_.A,{form:c,submitter:!1,layout:"horizontal",onFinish:W,children:[(0,n.jsx)(p.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,n.jsx)(_.A.Group,{children:(0,n.jsx)(r.Z,{name:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"})}),(0,n.jsxs)(_.A.Group,{children:[(0,n.jsx)(_.A.Item,{label:"\u6392\u5E8F",name:"sortOrder",children:(0,n.jsx)(h.Z,{style:{width:200}})}),(0,n.jsx)(r.Z,{name:"jumpUrl",label:"\u8DF3\u8F6C\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165\u8DF3\u8F6C\u5730\u5740"}),(0,n.jsx)(m.Z,{checkedChildren:"\u542F\u7528",unCheckedChildren:"\u7981\u7528",name:"status",label:"\u662F\u5426\u542F\u7528",fieldProps:{defaultChecked:!0}})]}),(0,n.jsx)(_.A.Group,{children:(0,n.jsx)(_.A.Item,{label:"\u56FE\u7247",name:"imageUrl",children:(0,n.jsx)(C.Z,{fileType:"image",defaultValue:O==null?void 0:O.imageUrl,count:1,mode:""})})})]})})};d.default=R}}]);
|
||||
File diff suppressed because one or more lines are too long
1
dist/src__pages__config__banner__index.2dd7ea85.async.js
vendored
Normal file
1
dist/src__pages__config__banner__index.2dd7ea85.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
6
dist/umi.552cb5ae.js → dist/umi.e4c2eae3.js
vendored
6
dist/umi.552cb5ae.js → dist/umi.e4c2eae3.js
vendored
File diff suppressed because one or more lines are too long
@@ -77,7 +77,6 @@ const RoleForm: React.FC = (props: any) => {
|
||||
/>
|
||||
|
||||
<ProFormSwitch
|
||||
rules={[{ required: true, message: '请输入' }]}
|
||||
checkedChildren="启用"
|
||||
unCheckedChildren="禁用"
|
||||
name="status"
|
||||
|
||||
@@ -35,7 +35,9 @@ const handleAdd = async (fields) => {
|
||||
*
|
||||
* @param fields
|
||||
*/
|
||||
const handleUpdate = async (fields: API.System.Menu) => {
|
||||
const handleUpdate = async (fields) => {
|
||||
fields.status = fields.status ? 1 : 0
|
||||
|
||||
const hide = message.loading('正在修改');
|
||||
try {
|
||||
await bannerUpdate(fields);
|
||||
@@ -49,7 +51,7 @@ const handleUpdate = async (fields: API.System.Menu) => {
|
||||
}
|
||||
};
|
||||
|
||||
const handleRemoveOne = async (selectedRow: API.System.Menu) => {
|
||||
const handleRemoveOne = async (selectedRow) => {
|
||||
const hide = message.loading('正在删除');
|
||||
if (!selectedRow) return true;
|
||||
try {
|
||||
|
||||
@@ -213,7 +213,6 @@ export default () => {
|
||||
</ProForm.Item>
|
||||
</ProForm.Group>
|
||||
<ProFormSwitch
|
||||
rules={[{ required: true, message: '请输入' }]}
|
||||
checkedChildren="上架"
|
||||
unCheckedChildren="下架"
|
||||
name="isUp"
|
||||
|
||||
@@ -19,5 +19,5 @@
|
||||
"@@test/*": ["./src/.umi-test/*"]
|
||||
}
|
||||
},
|
||||
"include": ["./**/*.d.ts", "./**/*.ts", "./**/*.tsx", "src/pages/config/agreement/edit.jsx"]
|
||||
"include": ["./**/*.d.ts", "./**/*.ts", "./**/*.tsx", "src/pages/config/agreement/edit.jsx", "config/config.js"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user