新增,修改,查询,删除功能,有一点bug
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import React ,{useState,createContext} from 'react'
|
||||
import RoleTable from './RoleTable';
|
||||
import Search from './Search'
|
||||
import './index.scss'
|
||||
import Newadd from './newadd'
|
||||
export default function Role() {
|
||||
// let valueSch={}
|
||||
let [valueSch,setValueSch]=useState<any>({})
|
||||
const getValue=(value:any)=>{
|
||||
console.log(value);
|
||||
// console.log(...value);
|
||||
// valueSch={...value}
|
||||
setValueSch(value)
|
||||
console.log({...valueSch});
|
||||
|
||||
}
|
||||
const tableData=(setdata:any)=>{
|
||||
|
||||
}
|
||||
return (
|
||||
<div className='roleBox'>
|
||||
<Search getValue={getValue}/>
|
||||
<Newadd/>
|
||||
<RoleTable valueSch={valueSch}/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user