修改api路径问题,以及部分没用变量注释(有一个暂时不敢动)

This commit is contained in:
Lhk0001
2023-11-20 20:52:43 +08:00
parent 3995318ff8
commit 95b5604801
6 changed files with 53 additions and 103 deletions

View File

@@ -74,7 +74,6 @@ interface queryParamsType {
let thisrole: any = {};
export default function Inform() {
const { confirm } = Modal;
const { RangePicker } = DatePicker;
//提示组件
const [messageApi, contextHolder] = message.useMessage();
//搜索框内所有内容
@@ -241,17 +240,14 @@ export default function Inform() {
};
const handleSerach = () => {
searchValue = formSearch.getFieldsValue();
if (typeof searchValue.dateTime !== "undefined") {
searchValue.startTime = (searchValue.dateTime as string[])[0];
searchValue.endTime = (searchValue.dateTime as string[])[1];
}
console.log(searchValue);
setSearchValue(searchValue)
count = 1;
setQueryTableDataParams({ ...searchValue });
};
const handleReset = () => {
formSearch.resetFields();
searchValue = formSearch.getFieldsValue();
setSearchValue(searchValue)
setQueryTableDataParams({ ...searchValue });
};
//Modal区域
@@ -429,50 +425,6 @@ export default function Inform() {
getDataList(queryTableDataParams);
// console.log(queryParams);
}, [queryTableDataParams]);
const SendIds = function () {
if (senderIds === undefined)
return (
<Select
mode="multiple"
style={{ textAlign: "left" }}
allowClear
showSearch
placeholder="请选择发送对象"
optionFilterProp="lable"
filterOption={filterOption}
/>
);
else if (senderIds[0].children === undefined) {
return (
<Select
mode="multiple"
style={{ textAlign: "left" }}
allowClear
showSearch
placeholder="请选择发送对象"
optionFilterProp="lable"
filterOption={filterOption}
options={senderIds}
/>
);
} else
return (
<TreeSelect
multiple
// mode="multiple"
// showSearch
style={{ textAlign: "left" }}
// value={value}
dropdownStyle={{ maxHeight: 400, overflow: "auto" }}
placeholder="请选择发送对象"
allowClear
// treeDefaultExpandAll
// onChange={onChange}
treeData={senderIds}
//
/>
);
};
return (
<ConfigProvider locale={zh_CN}>
<div className="Box">