|
@@ -2,6 +2,7 @@ import React from 'react'
|
|
|
import { FilterTable } from 'wptpc-design'
|
|
|
import s from './index.less'
|
|
|
import { dc } from '@/conf/config'
|
|
|
+
|
|
|
const apiUrl = `${dc}/dc/web/get-all-rule-field`
|
|
|
|
|
|
class List extends React.PureComponent {
|
|
@@ -11,11 +12,16 @@ class List extends React.PureComponent {
|
|
|
}
|
|
|
|
|
|
filterSetting = {
|
|
|
- // isClearSearch: true,
|
|
|
- // formFields: [
|
|
|
- // { label: 'ID:', type: 'input', key: 'id', placeholder: '请输入账户ID' },
|
|
|
- // ],
|
|
|
- // // 在接口请求前,可以修改给接口的入参
|
|
|
+ isClearSearch: true,
|
|
|
+ formFields: [
|
|
|
+ {
|
|
|
+ label: '描述:',
|
|
|
+ type: 'input',
|
|
|
+ key: 'desc',
|
|
|
+ placeholder: '请输入相关描述'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ // 在接口请求前,可以修改给接口的入参
|
|
|
// beforeSearchFunc: params => {
|
|
|
// params.pageNum = params.pageNum
|
|
|
// }
|
|
@@ -46,22 +52,12 @@ class List extends React.PureComponent {
|
|
|
dataIndex: 'url'
|
|
|
}
|
|
|
],
|
|
|
- // 通过这个函数可以获取列表的刷新的函数,编辑、删除后可以用它来刷新列表
|
|
|
getRefresh: refresh => {
|
|
|
this.refresh = refresh
|
|
|
}
|
|
|
- // 筛选和列表的中间位置如果有批量操作按钮,可以放在这个位置
|
|
|
- // batchBtns: [{
|
|
|
- // label: '创建',
|
|
|
- // type: 'primary',
|
|
|
- // onClick: () => this.editItem({ fieldsJson: '{}' })
|
|
|
- // }]
|
|
|
}
|
|
|
|
|
|
render () {
|
|
|
- // const { showModal, params } = this.state
|
|
|
- // const { actionLoading } = this.props
|
|
|
-
|
|
|
return (
|
|
|
<div className={s.templatePage}>
|
|
|
<FilterTable filterSetting={this.filterSetting} tableSetting={this.tableSetting} apiUrl={apiUrl} isPage={false}/>
|