Merge branch 'fix_0731_2'
This commit is contained in:
@ -242,9 +242,9 @@ const Sing: React.FC<{}> = () => {
|
|||||||
<Spin spinning={spin}>
|
<Spin spinning={spin}>
|
||||||
<div className='xsy-headerDiv pd24'>
|
<div className='xsy-headerDiv pd24'>
|
||||||
<h3 className="first-title floatLeft">{showNameT.kb}列表</h3>
|
<h3 className="first-title floatLeft">{showNameT.kb}列表</h3>
|
||||||
<div className='xsy-rightDiv-struct'>
|
{/* <div className='xsy-rightDiv-struct'>
|
||||||
<Button type="primary" onClick={() => window.open(`/bidOpening/bidOpening.html?&roomType=${roomType}`)}>虚拟大厅</Button>
|
<Button type="primary" onClick={() => window.open(`/bidOpening/bidOpening.html?&roomType=${roomType}`)}>虚拟大厅</Button>
|
||||||
</div>
|
</div> */}
|
||||||
</div>
|
</div>
|
||||||
<ProTable
|
<ProTable
|
||||||
columns={columns}//表格
|
columns={columns}//表格
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { UnorderedListOutlined } from "@ant-design/icons"
|
import { UnorderedListOutlined } from "@ant-design/icons"
|
||||||
import ProTable, { ActionType, ProColumns } from "@ant-design/pro-table"
|
import ProTable, { ActionType, ProColumns } from "@ant-design/pro-table"
|
||||||
import tableProps from '@/utils/tableProps';
|
import tableProps from '@/utils/tableProps';
|
||||||
import { Button, Card, Divider, message, Spin } from "antd"
|
import { Button, Card, Divider, message, Modal, Popconfirm, Spin } from "antd"
|
||||||
import React, { useEffect, useRef, useState } from "react"
|
import React, { useEffect, useRef, useState } from "react"
|
||||||
import BiddingDocument from "./components/BiddingDocument"
|
import BiddingDocument from "./components/BiddingDocument"
|
||||||
import {
|
import {
|
||||||
@ -95,7 +95,9 @@ const BiddingDocumentList: React.FC<{}> = (props) => {
|
|||||||
let btn1 = (
|
let btn1 = (
|
||||||
<>
|
<>
|
||||||
<Button hidden={btnAuthority(['ebtp-agency-project-manager', 'ebtp-purchase'])} type="text" onClick={() => toEdit(record)}>修改</Button>
|
<Button hidden={btnAuthority(['ebtp-agency-project-manager', 'ebtp-purchase'])} type="text" onClick={() => toEdit(record)}>修改</Button>
|
||||||
<Button hidden={btnAuthority(['ebtp-agency-project-manager', 'ebtp-purchase'])} type="text" onClick={() => toRemove(record)}>删除</Button>
|
<Popconfirm title="确定删除吗?" onConfirm={() => toRemove(record)}>
|
||||||
|
<Button hidden={btnAuthority(['ebtp-agency-project-manager', 'ebtp-purchase'])} type="text">删除</Button>
|
||||||
|
</Popconfirm>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
let btn2 = (
|
let btn2 = (
|
||||||
@ -172,21 +174,31 @@ const BiddingDocumentList: React.FC<{}> = (props) => {
|
|||||||
}
|
}
|
||||||
const toRemoveMore = () => {
|
const toRemoveMore = () => {
|
||||||
if (selectedRowsState.length != 0) {
|
if (selectedRowsState.length != 0) {
|
||||||
setPageloading(true);
|
Modal.confirm({
|
||||||
let param = []
|
title: '确定删除吗?',
|
||||||
for (const item of selectedRowsState) {
|
onOk: () => {
|
||||||
param.push(item.id);
|
setPageloading(true);
|
||||||
}
|
let param = []
|
||||||
removefile(param).then(res => {
|
for (const item of selectedRowsState) {
|
||||||
if (res.code == 200) {
|
param.push(item.id);
|
||||||
message.success('删除成功');
|
}
|
||||||
}
|
removefile(param).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
message.success('删除成功');
|
||||||
|
}
|
||||||
|
|
||||||
setPageloading(false);
|
setPageloading(false);
|
||||||
setRefresh(Math.random() + 1)
|
setRefresh(Math.random() + 1)
|
||||||
setSelectedRows([]);
|
setSelectedRows([]);
|
||||||
actionRef?.current?.reloadAndRest?.();
|
actionRef?.current?.reloadAndRest?.();
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
onCancel: () => {
|
||||||
|
setSelectedRows([]);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
message.warn('请选择要删除的资审文件');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user