Commit 6e6e36a5 authored by krysent's avatar krysent

new

parent d94573d6
...@@ -48,9 +48,10 @@ function DrawInitForm(props) { ...@@ -48,9 +48,10 @@ function DrawInitForm(props) {
closable={true} closable={true}
getContainer={false} getContainer={false}
style={{ position: "absolute", transform: "translateX(0)",maxWidth:"100%" }} style={{ position: "absolute", transform: "translateX(0)",maxWidth:"100%" }}
width={props.val == "detail" ? 1000 : props.width}
{...props} {...props}
width={props.val == "detail" ? "80vw" : props.width}
destroyOnClose={true} destroyOnClose={true}
> >
{props.val == "only" && props.children} {props.val == "only" && props.children}
{props.val == "only" ? null : props.val == "detail" ? <Details {...detailprops}></Details> : <InitForm {...newProps}></InitForm>} {props.val == "only" ? null : props.val == "detail" ? <Details {...detailprops}></Details> : <InitForm {...newProps}></InitForm>}
......
...@@ -9,12 +9,12 @@ const Footer = () => { ...@@ -9,12 +9,12 @@ const Footer = () => {
<DefaultFooter <DefaultFooter
copyright={`${currentYear} 江苏南高智能装备创新中心出品`} copyright={`${currentYear} 江苏南高智能装备创新中心出品`}
links={[ links={[
{ // {
key: "download", // key: "download",
title: "插件下载", // title: "插件下载",
blankTarget: true, // blankTarget: true,
href: '/staticfile/download/CLodop_Setup_for_Win32NT.exe', // href: '/staticfile/download/CLodop_Setup_for_Win32NT.exe',
}, // },
// { // {
// key: "github", // key: "github",
// title: <GithubOutlined />, // title: <GithubOutlined />,
......
import { str } from "@/utils/mymodelhtml.js"; import { str } from "@/utils/mymodelhtml.js";
import { doFetch } from "./doFetch"; import { doFetch } from "./doFetch";
import { Button, Modal, Space } from "antd";
const { confirm } = Modal;
export async function start(url, params) { export async function start(url, params) {
try { try {
var LODOP = window.getLodop(); var LODOP = window.getLodop();
...@@ -39,6 +42,31 @@ export async function start(url, params) { ...@@ -39,6 +42,31 @@ export async function start(url, params) {
); );
} }
} catch (err) { } 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();
} }
} }
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