Commit f1164823 authored by wuhao's avatar wuhao 🎯

asder

parent d353e947
......@@ -11,7 +11,7 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/wms/": {
// 要代理的地址
target: "http://192.168.40.114:28040/", //39:18040 23/wms/ //60 翔 //18
target: "http://192.168.40.18:18040/", //39:18040 23/wms/ //60 翔 //18
changeOrigin: true,
pathRewrite: {
"^/wms": "",
......
......@@ -97,7 +97,7 @@ const Deviceprovide = (props) => {
return <div style={{ padding: '3px 0', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' }}>
<Tooltip title={row.customerName}>
<a onClick={() => {
doFetch({url:"/ngic-auth/sysCustomer/query/detail",params:{id: row.id } }).then(res => {
doFetch({ url: "/ngic-auth/sysCustomer/query/detail", params: { id: row.id } }).then(res => {
let data = res?.data?.data || {};
dispatch({ type: "cdetails", dataSource: data })
})
......@@ -242,15 +242,14 @@ const Deviceprovide = (props) => {
extrafields[i].value = []
}
}
dispatch({ type: "add", fields: { ...defaultFields, ...extrafields } })
}}>新增</Button>
]);
useAsyncEffect(async () => {
let res = await tempfields("/ngic-auth/sysCustomerChar/queryCommonList", { id: curitem.id })
setextrafields(res?.fields);
setsubdata(res?.data);
let result = await tempfields("/ngic-auth/sysCustomerChar/queryCommonList", { id: curitem.id })
await setsubdata(result?.data);
if (curitem.key == "edit") {
doFetch({ url: "/ngic-auth/sysCustomer/query/detail", params: { id: curitem.id } }).then(res => {
if (res.code == "0000") {
......@@ -258,7 +257,7 @@ const Deviceprovide = (props) => {
for (let i in defaultFields) {
defaultFields[i].value = data[i];
}
dispatch({ type: "edit", fields: { ...defaultFields, ...extrafields } })
dispatch({ type: "edit", fields: { ...defaultFields, ...result?.fields } })
}
})
}
......
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