摘要: //属性按照@分割 const splitKey = key.split('@'); console.log(splitKey,"splitKey") //如果长度为2 取出数组的属性值 const operation = splitKey.length == 2 ? splitKey[1] : d 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(18) 评论(0) 推荐(0)
摘要: 利用方法找到map中属性的值 const getPrimaryKey = (resource: string, primaryKeys: Map<string, PrimaryKey>) => { return primaryKeys.get(resource) || ['id']; } const 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: 表示插入的Map 的key与value的类型 // compound keys capability type PrimaryKey = Array<string>; primaryKeys: Map<string, PrimaryKey> primaryKeys: Map<string, Prim 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(15) 评论(0) 推荐(0)
摘要: disabled={menu&&menu.id ? true : false} 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: else { instDetail({ id: record.id }) .unwrap() .then((response: any) => { if (response.code == 200) { setEditVisible(true); setCurrentMenu(response.da 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(4) 评论(0) 推荐(0)
摘要: else { setEditVisible(true); setCurrentMenu(menuData.list[index]) instDetail({ id: record.id }) .unwrap() .then((response: any) => { setCurrentMenu(re 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(8) 评论(0) 推荐(0)
摘要: 找到tsconfig.json的配置文件: isolatedModules字段改为false 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(14) 评论(0) 推荐(0)
摘要: useEffect(()=>{ if(!idRemark){ procedureDetail({ id: idRemark }) .unwrap() .then((response: any) => { if (response.code 200) { const { remark } = resp 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(6) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(4) 评论(0) 推荐(0)
摘要: Modal.confirm({ title: '系统提示', content: '是否删除?', onOk() { }, onCancel() { }, }); 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(5) 评论(0) 推荐(0)