黑名单字典
This commit is contained in:
@ -74,7 +74,8 @@ const ReviewerSelector: React.FC<ReviewerSelectorProps> = ({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!visible) return;
|
if (!visible) return;
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
getUserPage({ basePageRequest: { pageNo: page, pageSize } })
|
const userId = sessionStorage.getItem('userId') as string
|
||||||
|
getUserPage({ basePageRequest: { pageNo: page, pageSize }, userId })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const { code, data } = res;
|
const { code, data } = res;
|
||||||
if(code == 200) {
|
if(code == 200) {
|
||||||
@ -94,7 +95,7 @@ const ReviewerSelector: React.FC<ReviewerSelectorProps> = ({
|
|||||||
|
|
||||||
const columns: ColumnsType<Reviewer> = [
|
const columns: ColumnsType<Reviewer> = [
|
||||||
{ title: '姓名', dataIndex: 'name' },
|
{ title: '姓名', dataIndex: 'name' },
|
||||||
{ title: '工号', dataIndex: 'userId' },
|
{ title: '工号', dataIndex: 'employeeNumber' },
|
||||||
{ title: '部门', dataIndex: 'orgName' },
|
{ title: '部门', dataIndex: 'orgName' },
|
||||||
{
|
{
|
||||||
title: '组长',
|
title: '组长',
|
||||||
|
@ -68,8 +68,14 @@ interface CoscoAccessWork {
|
|||||||
}
|
}
|
||||||
export const add = (data: addInterface) => request.post('/coscoAccessWork/add', { data });
|
export const add = (data: addInterface) => request.post('/coscoAccessWork/add', { data });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
interface getUserPage {
|
interface getUserPage {
|
||||||
basePageRequest: basePageRequest;
|
basePageRequest: basePageRequest;
|
||||||
|
userId: string;
|
||||||
}
|
}
|
||||||
interface basePageRequest {
|
interface basePageRequest {
|
||||||
pageNo: number;
|
pageNo: number;
|
||||||
@ -77,7 +83,7 @@ interface basePageRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export const getUserPage = (data: getUserPage) => request.post('/user/getUserPage', { data });
|
export const getUserPage = (data: getUserPage) => request.post('/v1/sysuser/getPageByUserCompany', { data });
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 品类选择查询树
|
* 品类选择查询树
|
||||||
|
@ -150,6 +150,11 @@ const SupplierEntryManage: React.FC = () => {
|
|||||||
添加供应商
|
添加供应商
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
|
{record.approveStatus !== 1 && (
|
||||||
|
<span style={{color: '#a7a7a7'}}>
|
||||||
|
添加供应商
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -5,7 +5,8 @@ import type { ColumnsType } from 'antd/es/table';
|
|||||||
import SupplierSelectModal from "./SupplierSelectModal";
|
import SupplierSelectModal from "./SupplierSelectModal";
|
||||||
import { useSupplierDetailModal } from '@/components/SupplierDetailModalContext/SupplierDetailModalContext';
|
import { useSupplierDetailModal } from '@/components/SupplierDetailModalContext/SupplierDetailModalContext';
|
||||||
//接口
|
//接口
|
||||||
import { blacklist, getAllList } from "../services";
|
import { blacklist } from "../services";
|
||||||
|
import { getDictList } from '@/servers/api/dicts';
|
||||||
|
|
||||||
|
|
||||||
const { Option } = Select;
|
const { Option } = Select;
|
||||||
@ -85,7 +86,7 @@ const CreateBlacklistModal: React.FC<CreateBlacklistModalProps> = ({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
//
|
//
|
||||||
getAllList('blacklist_deadline').then((res) => {
|
getDictList('blacklist_deadline').then((res) => {
|
||||||
const { code, data } = res;
|
const { code, data } = res;
|
||||||
if(code == 200) {
|
if(code == 200) {
|
||||||
setTimelimitOption(data)
|
setTimelimitOption(data)
|
||||||
|
Reference in New Issue
Block a user