|
@@ -9,7 +9,7 @@ import styles from "./index.module.scss";
|
|
import { Button, Cascader, Input, Select, Table, Tooltip } from "antd";
|
|
import { Button, Cascader, Input, Select, Table, Tooltip } from "antd";
|
|
import { useSelector } from "react-redux";
|
|
import { useSelector } from "react-redux";
|
|
import { RootState } from "@/store";
|
|
import { RootState } from "@/store";
|
|
-import { A1_APIIgetList } from "@/store/action/A1Project";
|
|
|
|
|
|
+import { A1_APIIdowns, A1_APIIgetList } from "@/store/action/A1Project";
|
|
import { A1ItableType } from "@/types";
|
|
import { A1ItableType } from "@/types";
|
|
import { authFilesLookFu, urlChangeFu } from "@/utils/authFilesLook";
|
|
import { authFilesLookFu, urlChangeFu } from "@/utils/authFilesLook";
|
|
import A1IRemove from "./A1IRemove";
|
|
import A1IRemove from "./A1IRemove";
|
|
@@ -28,10 +28,11 @@ type FromType = {
|
|
|
|
|
|
type Props = {
|
|
type Props = {
|
|
projectId: number;
|
|
projectId: number;
|
|
- myTitle:string
|
|
|
|
|
|
+ myTitle: string;
|
|
|
|
+ projectName: string;
|
|
};
|
|
};
|
|
|
|
|
|
-function A1Inner({ projectId,myTitle }: Props) {
|
|
|
|
|
|
+function A1Inner({ projectId, myTitle, projectName }: Props) {
|
|
// 表单数据
|
|
// 表单数据
|
|
const [fromData, setFromData] = useState<FromType>({
|
|
const [fromData, setFromData] = useState<FromType>({
|
|
searchKey: "",
|
|
searchKey: "",
|
|
@@ -95,9 +96,15 @@ function A1Inner({ projectId,myTitle }: Props) {
|
|
|
|
|
|
// 点击批量下载
|
|
// 点击批量下载
|
|
const downSelectFu = useCallback(async () => {
|
|
const downSelectFu = useCallback(async () => {
|
|
- // 清空选中
|
|
|
|
- setSelectedRowKeys([]);
|
|
|
|
- }, []);
|
|
|
|
|
|
+ const res = await A1_APIIdowns(selectedRowKeys.join(","));
|
|
|
|
+
|
|
|
|
+ if (res.code === 0) {
|
|
|
|
+ // console.log(123,res.data);
|
|
|
|
+ urlChangeFu(res.data, true, undefined, projectName + "(内)");
|
|
|
|
+ // 清空选中
|
|
|
|
+ setSelectedRowKeys([]);
|
|
|
|
+ }
|
|
|
|
+ }, [projectName, selectedRowKeys]);
|
|
|
|
|
|
// 删除的弹窗数据
|
|
// 删除的弹窗数据
|
|
const [delInfo, setDelInfo] = useState({ id: 0, name: "" });
|
|
const [delInfo, setDelInfo] = useState({ id: 0, name: "" });
|
|
@@ -108,7 +115,7 @@ function A1Inner({ projectId,myTitle }: Props) {
|
|
|
|
|
|
const txt = num === 0 ? "待审批" : num === 1 ? "审批通过" : "审批驳回";
|
|
const txt = num === 0 ? "待审批" : num === 1 ? "审批通过" : "审批驳回";
|
|
|
|
|
|
- const dom = item.auditDesc ? (
|
|
|
|
|
|
+ const dom = item.auditDesc&&num !== 0 ? (
|
|
<Tooltip title={item.auditDesc}>
|
|
<Tooltip title={item.auditDesc}>
|
|
<div
|
|
<div
|
|
className="iconHoverTit A1ItablauidtBox"
|
|
className="iconHoverTit A1ItablauidtBox"
|
|
@@ -170,7 +177,7 @@ function A1Inner({ projectId,myTitle }: Props) {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "上传时间",
|
|
title: "上传时间",
|
|
- dataIndex: "createTime",
|
|
|
|
|
|
+ dataIndex: "updateTime",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "审批状态",
|
|
title: "审批状态",
|