随笔分类 - 前端记录-work-react-最近工作
摘要:常用数据 var dataList = JSON.parse(JSON.stringify(bedList)); var code = "4435956c-c964-4816-96c2-7bceb8aca941"
阅读全文
摘要:<Select showSearch onChange={onChangeManufacture} style={{ width: '200px' }} placeholder="请选择生产单号" optionFilterProp="children" filterOption={(input, o
阅读全文
摘要:const handleSave = (row: DataType) => { const newData: any = [...menuData.list]; const index = newData.findIndex((item: any) => row?.id == item.id); c
阅读全文
摘要:{editing ? ( <Form.Item name={dataIndex} style={{ margin: 0 }} rules={[ { required: type == "1"?true:false, message: `Please Input ${title}!`, }, ]} >
阅读全文
摘要:const inputNode = dataIndex == "split_type" ? ( <Select onChange={handleChange} style={{ width: "300px" }} placeholder="请选择分扎类型" optionFilterProp="chi
阅读全文
摘要:export interface AddOrEditMenuProps { visible: boolean; menu: Menu | null; onClose: () => void; onConfirm: () => void; } interface AddOrEditMenuFormPr
阅读全文
摘要:pickList && pickList.map((item: any, index: any) => { pickList && pickList.map((item1: any, index1: any) => { if (index == index1) { arr[index].id = i
阅读全文
摘要:import { render } from "@testing-library/react"; import React, { useEffect, useState, useRef, FC, PropsWithChildren, } from "react"; import { Checkbox
阅读全文
摘要:<Button block color="primary" size="large" onClick={() => handleEdit(item.id, item.billId)} > 编辑 </Button>
阅读全文
摘要:<NavBar back="返回" onBack={back}> 菜单界面 </NavBar>
阅读全文
摘要:const handleClear = (index: any) => { form.setFieldsValue({ [`overlayLength-${index}`]: null, [`layers-${index}`]: null, [`colorId-${index}`]: null, [
阅读全文
摘要:#print { // width: 30mm; // height: 40mm; } // #customers :nth-child(1) { // margin-top: 0mm; // } #customers { padding: 2.5mm 0; width: 40mm; height:
阅读全文
摘要:<img className='imgData' src={`data:image/jpeg;base64,${item?.base64}`}></img>
阅读全文
摘要:summary={(data) => { let totalCount = 0; data.forEach((item: any) => { if (item.styleId == getStyle) { totalCount += parseInt(item.count); } }); retur
阅读全文
摘要:<Select mode="multiple" size={size} placeholder="Please select" defaultValue={['a10', 'c12']} onChange={handleChange} style={{ width: '100%' }} option
阅读全文
摘要:<Select mode="multiple" size={size} placeholder="Please select" defaultValue={['a10', 'c12']} onChange={handleChange} style={{ width: '100%' }} option
阅读全文
摘要:const billCode=localStorage.getItem("billCode") 存入的是string类型
阅读全文
摘要:onConfirm: async () => { const response = await paveClothDeleteByIds({ ids: ids }) if (response.code == 200) { Toast.show({ icon: 'success', content:
阅读全文
摘要:{codeList && codeList.map((item: any, index) => ( <div key={index} className='rablist_list'> <div className='rablist_title'>{item.materialCode}({item.
阅读全文
摘要:Dialog.confirm({ content: '是否确定删除', onConfirm: async () => { const response = await paveClothDeleteByIds({ ids: ids }) if (response.code == 200) { Toa
阅读全文