Commit 9c552251 authored by wuhao's avatar wuhao 🎯

asder

parent fe9dd3d9
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
dev: { dev: {
[defaultSetting.proxypath]: { [defaultSetting.proxypath]: {
// 要代理的地址 // 要代理的地址
target: 'http://192.168.40.64:28000', //jf哥 target: 'http://192.168.40.64:28001', //jf哥
// target: 'http://192.168.40.203:8000', //dj哥 // target: 'http://192.168.40.203:8000', //dj哥
changeOrigin: true, changeOrigin: true,
}, },
......
...@@ -14,6 +14,7 @@ function DrawerPro(props) { ...@@ -14,6 +14,7 @@ function DrawerPro(props) {
fields: props.fields, fields: props.fields,
detailData: props.detailData, detailData: props.detailData,
}; };
return ( return (
<Drawer <Drawer
maskClosable={false} maskClosable={false}
......
...@@ -731,7 +731,6 @@ function Model(props) { ...@@ -731,7 +731,6 @@ function Model(props) {
} }
}, },
fn2 = async () => { fn2 = async () => {
console.log('d');
const res = await doFetch({ const res = await doFetch({
url: urlParams.detail, url: urlParams.detail,
params: { id: drawer?.item?.id }, params: { id: drawer?.item?.id },
...@@ -1813,7 +1812,6 @@ function Model(props) { ...@@ -1813,7 +1812,6 @@ function Model(props) {
<> <>
<ProDescriptions <ProDescriptions
request={async () => { request={async () => {
console.log('cc');
const { data } = await doFetch({ const { data } = await doFetch({
url: urlParams.detail, url: urlParams.detail,
params: { id: drawer?.item?.id }, params: { id: drawer?.item?.id },
...@@ -1882,7 +1880,6 @@ function Model(props) { ...@@ -1882,7 +1880,6 @@ function Model(props) {
]} ]}
/> />
<Divider /> <Divider />
<Tabs <Tabs
activeKey={activeTab} activeKey={activeTab}
onChange={setactiveTab} onChange={setactiveTab}
...@@ -1902,8 +1899,7 @@ function Model(props) { ...@@ -1902,8 +1899,7 @@ function Model(props) {
}); });
if (res.code === '0000') { if (res.code === '0000') {
message.success('登记成功!'); message.success('登记成功!');
console.log(drawer); await setDrawer((s) => ({
setDrawer((s) => ({
...s, ...s,
visible: false, visible: false,
item: null, item: null,
...@@ -1928,7 +1924,7 @@ function Model(props) { ...@@ -1928,7 +1924,7 @@ function Model(props) {
}); });
if (res.code === '0000') { if (res.code === '0000') {
message.success('登记成功!'); message.success('登记成功!');
setDrawer((s) => ({ await setDrawer((s) => ({
...s, ...s,
visible: false, visible: false,
item: null, item: null,
...@@ -1954,7 +1950,7 @@ function Model(props) { ...@@ -1954,7 +1950,7 @@ function Model(props) {
}); });
if (res.code === '0000') { if (res.code === '0000') {
message.success('登记成功!'); message.success('登记成功!');
setDrawer((s) => ({ await setDrawer((s) => ({
...s, ...s,
visible: false, visible: false,
item: null, item: null,
...@@ -1980,7 +1976,7 @@ function Model(props) { ...@@ -1980,7 +1976,7 @@ function Model(props) {
}); });
if (res.code === '0000') { if (res.code === '0000') {
message.success('登记成功!'); message.success('登记成功!');
setDrawer((s) => ({ await setDrawer((s) => ({
...s, ...s,
visible: false, visible: false,
item: null, item: null,
...@@ -2006,7 +2002,7 @@ function Model(props) { ...@@ -2006,7 +2002,7 @@ function Model(props) {
}); });
if (res.code === '0000') { if (res.code === '0000') {
message.success('登记成功!'); message.success('登记成功!');
setDrawer((s) => ({ await setDrawer((s) => ({
...s, ...s,
visible: false, visible: false,
item: null, item: null,
...@@ -2243,7 +2239,7 @@ function Model(props) { ...@@ -2243,7 +2239,7 @@ function Model(props) {
span: 8, span: 8,
}} }}
> >
{selectMoreDrawerType(drawer?.type)} {drawer?.visible && selectMoreDrawerType(drawer?.type)}
</DrawerPro> </DrawerPro>
<DrawerPro <DrawerPro
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment