摘要: Postgrest使用手册 1 过滤出 is_delete = 0 的数据 分页查询并按照 id 倒叙排列 2 GET http: // 127.0.0.1 : 3000 / t_wms_location?is_delete = eq .0 & limit = 10 & offset = 2 3 & 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(30) 评论(0) 推荐(0)
摘要: <Form.Item labelCol={{ span: 8 }} label="文件上传" name={"uoload"} rules={[{ required: true, message: '文件上传' }]} > <Upload name="file" fileList={fileList} 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(20) 评论(0) 推荐(0)
摘要: URLSearchParams API 提供对 URL 查询的读写访问。 URLSearchParams 类也可以与以下四个构造函数之一单独使用。 URLSearchParams 类也在全局对象上可用。 WHATWG URLSearchParams 接口和 querystring 模块具有相似的用途 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(33) 评论(0) 推荐(0)
摘要: { title: '房号', dataIndex: 'bedCode', key: 'bedCode', render: (value, record, index) => { // 处理列,相同数据则合并 // 处理rowSpan const obj = { children: value, pr 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(81) 评论(0) 推荐(0)
摘要: const onChangeValue = (e: any) => { console.log(e,"eeeeee") const length=e let arr:any=[] for(var i=0;i<length;i++){ arr.push({index:i}) } setDataList 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(16) 评论(0) 推荐(0)
摘要: import React, { useState, useEffect, useCallback, memo } from 'react'; import { Select, Table, Button, Modal, message, Card, Form, DatePicker } from ' 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(33) 评论(0) 推荐(0)
摘要: postGrest().getOne('search_holiday_detail',{holiday_id:id}). then((response:any)=> { if (!response.code) { setMenuDataSpecial(response.data) } else { 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(18) 评论(0) 推荐(0)
摘要: const onOk = useCallback(() => { form.validateFields().then(res => { debugger const values = res as AddOrEditMenuFormProps; const info: any = { ...men 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(18) 评论(0) 推荐(0)
摘要: //数组对象中得值进行乘法处理 export function dataRuduce(arr1: any) { const result = [] for (const v1 of arr1) { result.push({ ...v1, // arr2 count: Number(v1.layer 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(24) 评论(0) 推荐(0)
摘要: <Col span={4}> {index 0 && ( <Button onClick={handleAdd}>新增</Button> )} {index !== 0 && ( <Button style={{ marginLeft: "20px" }} onClick={() => handle 阅读全文
posted @ 2022-10-22 17:03 前端导师歌谣 阅读(22) 评论(0) 推荐(0)