|
@@ -3,8 +3,9 @@ import { FilterTable } from 'wptpc-design'
|
|
|
import { thanos } from '@/conf/config'
|
|
|
|
|
|
const apiUrl = `${thanos}/thanos-admin/api/v1/feature/list`
|
|
|
+const apiQueryUrl = `${thanos}/thanos-admin/api/v1/feature/query`
|
|
|
|
|
|
-class SubJobList extends React.PureComponent {
|
|
|
+class FeaturesList extends React.PureComponent {
|
|
|
state = {
|
|
|
showModal: false,
|
|
|
params: {}
|
|
@@ -16,7 +17,7 @@ class SubJobList extends React.PureComponent {
|
|
|
{
|
|
|
label: '描述:',
|
|
|
type: 'input',
|
|
|
- key: 'desc',
|
|
|
+ key: 'queryName',
|
|
|
placeholder: '特征名称'
|
|
|
}
|
|
|
]
|
|
@@ -28,12 +29,16 @@ class SubJobList extends React.PureComponent {
|
|
|
|
|
|
// filtertable的列表配置
|
|
|
tableSetting = {
|
|
|
- rowKey: 'alias',
|
|
|
- isFrontPagination: true,
|
|
|
+ // rowKey: 'alias',
|
|
|
+ // isFrontPagination: true,
|
|
|
pagination: {
|
|
|
pageSize: 10
|
|
|
},
|
|
|
columnConfig: [
|
|
|
+ {
|
|
|
+ title: 'ID',
|
|
|
+ dataIndex: 'id'
|
|
|
+ },
|
|
|
{
|
|
|
title: '名称',
|
|
|
dataIndex: 'name'
|
|
@@ -44,11 +49,23 @@ class SubJobList extends React.PureComponent {
|
|
|
},
|
|
|
{
|
|
|
title: '是否输出',
|
|
|
- dataIndex: 'overt'
|
|
|
+ dataIndex: 'overt',
|
|
|
+ render: (text) => {
|
|
|
+ if(text === true) {
|
|
|
+ return '是'
|
|
|
+ }
|
|
|
+ return '否'
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '是否IO型特征',
|
|
|
- dataIndex: 'io'
|
|
|
+ dataIndex: 'io',
|
|
|
+ render: (text) => {
|
|
|
+ if(text === true) {
|
|
|
+ return '是'
|
|
|
+ }
|
|
|
+ return '否'
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '数据类型',
|
|
@@ -68,10 +85,10 @@ class SubJobList extends React.PureComponent {
|
|
|
return (
|
|
|
<div>
|
|
|
<FilterTable filterSetting={this.filterSetting} tableSetting={this.tableSetting} apiUrl={apiUrl}
|
|
|
- isPage={false}/>
|
|
|
+ />
|
|
|
</div>
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export default SubJobList
|
|
|
+export default FeaturesList
|