Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
wms
Commits
e2e36256
Commit
e2e36256
authored
Jul 19, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代理
parent
019e6db4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
63 deletions
+66
-63
config.js
config/config.js
+1
-1
proxy.js
config/proxy.js
+4
-3
index.jsx
src/components/Footer/index.jsx
+15
-15
login.js
src/services/login.js
+5
-5
mymodelhtml.js
src/utils/mymodelhtml.js
+41
-39
No files found.
config/config.js
View file @
e2e36256
...
@@ -56,7 +56,7 @@ export default defineConfig({
...
@@ -56,7 +56,7 @@ export default defineConfig({
nodeModulesTransform
:
{
nodeModulesTransform
:
{
type
:
"all"
,
type
:
"all"
,
},
},
headScripts
:
[
`alert(0)`
,
{
src
:
"/LodopFuncs.js"
,
defer
:
true
}],
headScripts
:
[{
src
:
"/LodopFuncs.js"
,
defer
:
true
}],
//mfsu: {},
//mfsu: {},
//webpack5: {}
//webpack5: {}
});
});
config/proxy.js
View file @
e2e36256
...
@@ -9,13 +9,14 @@
...
@@ -9,13 +9,14 @@
export
default
{
export
default
{
dev
:
{
dev
:
{
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/wms/"
:
{
"/
sr
wms/"
:
{
// 要代理的地址
// 要代理的地址
// target: "http://192.168.40.18/wms/", //39:28040 18/wms/
// target: "http://192.168.40.18/wms/", //39:28040 18/wms/
target
:
"http://192.168.40.203:28040"
,
//39:28040 18/wms/
// target: "http://192.168.40.203:28040", //39:28040 18/wms/ dj
target
:
"http://192.168.40.117:28040"
,
//39:28040 18/wms/ dj
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
"^/wms"
:
""
,
"^/
sr
wms"
:
""
,
},
},
},
},
"/staticfile/"
:
{
"/staticfile/"
:
{
...
...
src/components/Footer/index.jsx
View file @
e2e36256
...
@@ -9,21 +9,21 @@ const Footer = () => {
...
@@ -9,21 +9,21 @@ const Footer = () => {
<
DefaultFooter
<
DefaultFooter
copyright=
{
`${currentYear} 江苏南高智能装备创新中心出品`
}
copyright=
{
`${currentYear} 江苏南高智能装备创新中心出品`
}
links=
{
[
links=
{
[
{
//
{
key
:
"Ant Design Pro"
,
//
key: "Ant Design Pro",
title
:
"JiangSuNanGao"
,
//
title: "JiangSuNanGao",
blankTarget
:
true
,
//
blankTarget: true,
},
//
},
{
//
{
key
:
"github"
,
//
key: "github",
title
:
<
GithubOutlined
/>,
//
title: <GithubOutlined />,
blankTarget
:
true
,
//
blankTarget: true,
},
//
},
{
//
{
key
:
"Designed By Wuhao"
,
//
key: "Designed By Wuhao",
title
:
"Designed By Wuhao"
,
//
title: "Designed By Wuhao",
blankTarget
:
true
,
//
blankTarget: true,
},
//
},
]
}
]
}
/>
/>
);
);
...
...
src/services/login.js
View file @
e2e36256
...
@@ -2,7 +2,7 @@ import request from "@/utils/request";
...
@@ -2,7 +2,7 @@ import request from "@/utils/request";
//登录
//登录
export
async
function
fakeAccountLogin
(
params
)
{
export
async
function
fakeAccountLogin
(
params
)
{
return
request
(
"/wms/ngic-auth/sysAccount/login"
,
{
return
request
(
"/
sr
wms/ngic-auth/sysAccount/login"
,
{
method
:
"POST"
,
method
:
"POST"
,
data
:
params
,
data
:
params
,
});
});
...
@@ -10,7 +10,7 @@ export async function fakeAccountLogin(params) {
...
@@ -10,7 +10,7 @@ export async function fakeAccountLogin(params) {
//登出
//登出
export
async
function
fakeAccountLoginOut
(
params
)
{
export
async
function
fakeAccountLoginOut
(
params
)
{
return
request
(
`/wms/ngic-auth/sysAccount/logout`
,
{
return
request
(
`/
sr
wms/ngic-auth/sysAccount/logout`
,
{
method
:
"POST"
,
method
:
"POST"
,
body
:
params
,
body
:
params
,
});
});
...
@@ -18,7 +18,7 @@ export async function fakeAccountLoginOut(params) {
...
@@ -18,7 +18,7 @@ export async function fakeAccountLoginOut(params) {
//登录
//登录
export
async
function
saveForRegister
(
params
)
{
export
async
function
saveForRegister
(
params
)
{
return
request
(
"/wms/ngic-auth/sysAccountApply/saveForRegister"
,
{
return
request
(
"/
sr
wms/ngic-auth/sysAccountApply/saveForRegister"
,
{
method
:
"POST"
,
method
:
"POST"
,
data
:
params
,
data
:
params
,
});
});
...
@@ -27,7 +27,7 @@ export async function saveForRegister(params) {
...
@@ -27,7 +27,7 @@ export async function saveForRegister(params) {
//个人信息
//个人信息
export
async
function
queryCurrentUser
(
params
)
{
export
async
function
queryCurrentUser
(
params
)
{
return
request
(
"/wms/ngic-auth/sysUser/query"
,
{
return
request
(
"/
sr
wms/ngic-auth/sysUser/query"
,
{
method
:
"POST"
,
method
:
"POST"
,
data
:
params
,
data
:
params
,
});
});
...
@@ -35,7 +35,7 @@ export async function queryCurrentUser(params) {
...
@@ -35,7 +35,7 @@ export async function queryCurrentUser(params) {
//获取菜单/权限/菜单/公司类型
//获取菜单/权限/菜单/公司类型
export
async
function
getMenu
(
params
)
{
export
async
function
getMenu
(
params
)
{
return
request
(
`/wms/ngic-auth/sysPermission/queryMenu`
,
{
return
request
(
`/
sr
wms/ngic-auth/sysPermission/queryMenu`
,
{
method
:
"POST"
,
method
:
"POST"
,
data
:
params
,
data
:
params
,
});
});
...
...
src/utils/mymodelhtml.js
View file @
e2e36256
import
src
from
"../../public/ewm.png"
;
import
src
from
"../../public/ewm.png"
;
export
const
str
=
`<table
export
const
str
=
`<table
border="1"
border="1"
width="100%"
width="100%"
height="100%"
height="100%"
style="border-collapse: collapse; border: solid 1px"
style="border-collapse: collapse; border: solid 1px"
bordercolor="#000000"
bordercolor="#000000"
cellpadding="0"
cellpadding="0"
>
>
<tr>
<tr>
<td colspan="6">卷料名称:剪切后硅钢片</td>
<td colspan="8">卷料名称:剪切后硅钢片</td>
</tr>
</tr>
<tr>
<tr>
<td colspan="6">卷料编码:PDC010100093</td>
<td colspan="8">卷料编码:PDC010100093</td>
</tr>
</tr>
<tr>
<tr>
<td colspan="3">牌号:070片</td>
<td colspan="4">牌号:070片</td>
<td colspan="3">母卷编号:20SQC</td>
<td colspan="4">母卷编号:20SQC</td>
</tr>
</tr>
<tr>
<tr>
<td colspan="3">厂家:江苏南高</td>
<td colspan="4">厂家:江苏南高</td>
<td colspan="3">母卷重量:100KG</td>
<td colspan="4">母卷重量:100KG</td>
</tr>
</tr>
<tr>
<tr>
<td colspan="2" rowspan='4'><img src=
${
src
}
width='80%' /></td>
<td colspan="8">单边卷料厚度:200mm</td>
<td colspan="4">单边卷料厚度:200mm</td>
</tr>
</tr>
<tr>
<tr>
<td colspan="2" rowspan="3">
<td colspan="2">铁损:0.68w/kg</td>
<img src=
${
src
}
style="width:50px"/>
<td colspan="2">批次:20230412</td>
</td>
</tr>
<td colspan="3">铁损:0.68w/kg</td>
<tr>
<td colspan="3">批次:20230412</td>
<td colspan="2">宽度:188mm</td>
</tr>
<td colspan="2">片厚:0.2mm</td>
<tr>
</tr>
<td colspan="3">宽度:188mm</td>
<tr>
<td colspan="3">片厚:0.2mm</td>
<td colspan="2">重量:631KG</td>
</tr>
<td colspan="2">米数2292M</td>
<tr>
</tr>
<td colspan="3">重量:631KG</td>
<tr>
<td colspan="3">米数:2292M</td>
<td colspan="6">条码:1BR157846039401296</td>
</tr>
</tr>
<tr>
<td colspan="8">条码:1BR157846039401296</td>
</tr>
</table>`
;
</table>`
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment