update 搬迁list组件

This commit is contained in:
2021-06-14 10:35:57 +08:00
parent 453ee91b22
commit 3221960ec2
10 changed files with 774 additions and 14 deletions

View File

@@ -23,6 +23,12 @@ const name = '应用'
export default class index extends Component {
state = {
codes: {
commonStatus: []
}
}
// 表格实例
table = React.createRef()
@@ -162,7 +168,7 @@ export default class index extends Component {
name = toCamelCase(name)
const codes = this.state.codes[name]
if (codes) {
const c = codes.find((p) => p.code == code)
const c = codes.find((p) => p.code === code)
if (c) {
return c.value
}