随笔分类 - 前端歌谣-工作篇-项目实战
摘要:var currentY = new Date().getFullYear(); var currentM = new Date().getMonth() + 1; var lastDay = new Date(currentY, currentM, 0).getDate(); let start
阅读全文
摘要:传入得值为下面得数据 和当月日期形成得数组[xxxx-xx-xx]格式 { "manufacture": [ { "dayPlan": [ { "dayDate": "2022-11-02", "targetCapacity": "186.93" }, { "dayDate": "2022-11-0
阅读全文
摘要:return( <div> <ul> {(()=>{ let color; let temp = []; for(let i = 0; i < 10; i++){ (i % 2) 0? color = 'red': color='black'; temp.push(<li key={i} style
阅读全文
摘要:{items.map((pane, index) => ( <TabPane closable={!disFlag} tab={pane.styleNameValue} key={pane.styleId}> </TabPane> ))}
阅读全文
摘要:export function changeDate(data1: any, data2: any) { console.log(1111) var start = new Date(data1) var end = new Date(data2) var count = end.getDate()
阅读全文
摘要:<RangePicker ranges={{ Today: [moment(), moment()], 'This Month': [moment().startOf('month'), moment().endOf('month')], }} format="YYYY/MM/DD" onChang
阅读全文
摘要:.main{ :global{ .ant-select-dropdown{ height: 520px !important; } } }
阅读全文
摘要:<RangePicker ranges={{ Today: [moment(), moment()], 'This Month': [moment().startOf('month'), moment().endOf('month')], }} showTime format="YYYY/MM/DD
阅读全文
摘要:pagination={{ pageSizeOptions: ['5', '10', '20', '50'], ...pagination, total: page.dataTotal, showTotal: () => { return '共 ' + page.dataTotal + ' 条记录'
阅读全文
摘要:const getSize = (value: any) => { let text: any = '' sizeList.forEach((item) => { if (value == item.id) { text = item.name } }) return text }
阅读全文
摘要:function handleClear(){ console.lo var scan=document.getElementById("scanId") scan.text="" } let scanner = null; let callback = null; function onmarke
阅读全文
摘要:import React, { useEffect, useState } from 'react'; import { Input, Button, Form, message } from 'antd'; import "./login.scss" import { useForm } from
阅读全文
摘要:.Login { height: 100vh; background-image: linear-gradient(to right, #43c6ac 0%, #191654 100%); display: flex; flex-direction: column; align-items: cen
阅读全文
摘要:useEffect(() => { (async function fn() { const response = await CodeList({ bedId: 3, userId: 12, taskState: -1 }) console.log(response.data, "response
阅读全文
摘要:const instance = axios.create({ baseURL: "http://192.168.1.49:10010", timeout: 60000 }) 加个https
阅读全文
摘要:npm cache clean --force或者yarn cache clean
阅读全文
摘要:import React, {useState} from 'react'; import {Input, Button} from 'antd'; function App() { const [content, setContent] = useState(''); const handleCh
阅读全文
摘要:<Table.Column title={item} // width="300px" align="center" fixed={index > 6 ? undefined : 'left'} // className={item == "款式号" ? "antColumn" : ""} data
阅读全文
摘要:const save = async (key: any) => { try { const row: any = await formKuan.validateFields(); const newData = [...data]; const index = newData.findIndex(
阅读全文
摘要:export function changeDataList(data: any, dataTemp: any) { const table = [] for (const rowData of data.manufacture) { const row = new Array((dataTemp.
阅读全文