feature/2.15.1.2407.01-导入工具

This commit is contained in:
黎永顺 2024-08-19 10:42:54 +08:00
parent 1d26ef8176
commit 6a56cee090
3 changed files with 10 additions and 7 deletions

View File

@ -36,6 +36,7 @@ class ImpStep1 extends Component {
onChange: this.handleChange,
...this.props.customDragger
};
console.log("this.props.customDragger", this.props.customDragger)
return (
<div className="weapp-batch-impsteps-picker-content-imp-step1">
{/* 导入选项 */}

View File

@ -30,16 +30,18 @@ class MoveInResult extends Component {
columns={[
{ title: getLabel(111, "导入信息"), dataIndex: "message" },
{
title: getLabel(111, "下载信息"), dataIndex: "download", width: 200,
title: getLabel(111, "下载信息"), dataIndex: "download", width: 225,
render: (text, record) => (<React.Fragment>
<span style={{ marginRight: 16, color: "#0BB746", cursor: "pointer" }}
onClick={() => this.downloadTxtfile(record.success.join("\n"), getLabel(111, "成功"))}>
<span
style={{ marginRight: 16, color: "#0BB746", cursor: "pointer", display: "inline-block", minWidth: 60 }}
onClick={() => this.downloadTxtfile(record.success.join("\n"), getLabel(111, "成功"))}>
<i className="iconfont icon-successful"/><span
style={{ marginLeft: 8 }}>{record.success.length}</span></span>
<span style={{ marginRight: 16, color: "#E6960C", cursor: "pointer" }}
onClick={() => this.downloadTxtfile(record.warning.join("\n"), getLabel(111, "警告"))}><i
<span
style={{ marginRight: 16, color: "#E6960C", cursor: "pointer", display: "inline-block", minWidth: 60 }}
onClick={() => this.downloadTxtfile(record.warning.join("\n"), getLabel(111, "警告"))}><i
className="iconfont icon-warning"/><span style={{ marginLeft: 8 }}>{record.warning.length}</span></span>
<span style={{ color: "#CF3736", cursor: "pointer" }}
<span style={{ color: "#CF3736", cursor: "pointer", display: "inline-block", minWidth: 60 }}
onClick={() => this.downloadTxtfile(record.error.join("\n"), getLabel(111, "错误"))}><i
className="iconfont icon-error"/><span style={{ marginLeft: 8 }}>{record.error.length}</span></span>
</React.Fragment>)

View File

@ -39,7 +39,7 @@ class MoveInDialog extends Component {
}
handleImport = (payload) => {
const { importDialog } = this.state = this.props;
const { importDialog } = this.state;
this.setState({ importDialog: { ...importDialog, nextloading: true } });
API.uploadConfig({ ...payload }).then(({ data, status, errormsg }) => {
this.setState({ importDialog: { ...importDialog, nextloading: false } });