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
6e6e36a5
Commit
6e6e36a5
authored
Aug 15, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
d94573d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
8 deletions
+37
-8
index.jsx
src/components/DrawInitForm/index.jsx
+2
-1
index.jsx
src/components/Footer/index.jsx
+6
-6
printHandle.js
src/utils/printHandle.js
+29
-1
No files found.
src/components/DrawInitForm/index.jsx
View file @
6e6e36a5
...
...
@@ -48,9 +48,10 @@ function DrawInitForm(props) {
closable=
{
true
}
getContainer=
{
false
}
style=
{
{
position
:
"absolute"
,
transform
:
"translateX(0)"
,
maxWidth
:
"100%"
}
}
width=
{
props
.
val
==
"detail"
?
1000
:
props
.
width
}
{
...
props
}
width=
{
props
.
val
==
"detail"
?
"80vw"
:
props
.
width
}
destroyOnClose=
{
true
}
>
{
props
.
val
==
"only"
&&
props
.
children
}
{
props
.
val
==
"only"
?
null
:
props
.
val
==
"detail"
?
<
Details
{
...
detailprops
}
></
Details
>
:
<
InitForm
{
...
newProps
}
></
InitForm
>
}
...
...
src/components/Footer/index.jsx
View file @
6e6e36a5
...
...
@@ -9,12 +9,12 @@ const Footer = () => {
<
DefaultFooter
copyright=
{
`${currentYear} 江苏南高智能装备创新中心出品`
}
links=
{
[
{
key
:
"download"
,
title
:
"插件下载"
,
blankTarget
:
true
,
href
:
'/staticfile/download/CLodop_Setup_for_Win32NT.exe'
,
},
//
{
//
key: "download",
//
title: "插件下载",
//
blankTarget: true,
//
href: '/staticfile/download/CLodop_Setup_for_Win32NT.exe',
//
},
//
{
// key: "github",
// title: <GithubOutlined />,
...
...
src/utils/printHandle.js
View file @
6e6e36a5
import
{
str
}
from
"@/utils/mymodelhtml.js"
;
import
{
doFetch
}
from
"./doFetch"
;
import
{
Button
,
Modal
,
Space
}
from
"antd"
;
const
{
confirm
}
=
Modal
;
export
async
function
start
(
url
,
params
)
{
try
{
var
LODOP
=
window
.
getLodop
();
...
...
@@ -39,6 +42,31 @@ export async function start(url, params) {
);
}
}
catch
(
err
)
{
alert
(
"系统检测当前环境未安装相关插件,请先安装C-Lodop插件!"
);
// alert("系统检测当前环境未安装相关插件,请先安装C-Lodop插件!");
// var message =
// '系统检测当前环境未安装相关插件,请先安装C-Lodop插件!<a href="/staticfile/download/CLodop_Setup_for_Win32NT.exe">点击此处下载插件</a>';
// var tempElement = document.createElement("div");
// tempElement.innerHTML = message;
// var alertText = tempElement.textContent || tempElement.innerText || "";
const
showDeleteConfirm
=
()
=>
{
confirm
({
title
:
"提示"
,
content
:
(
<
div
>
系统检测当前环境未安装
C
-
Lodop
相关插件!
{
/* <br /> */
}
{
/* <a href="/staticfile/download/CLodop_Setup_for_Win32NT.exe">
点击此处下载插件
</a> */
}
<
/div
>
),
okText
:
"下载插件"
,
onOk
()
{
location
.
href
=
"/staticfile/download/CLodop_Setup_for_Win32NT.exe"
;
},
});
};
showDeleteConfirm
();
}
}
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