刘涛 5 жил өмнө
parent
commit
b542be4b0a

+ 1 - 2
src/pages/fengkong/features/feature.js

@@ -3,7 +3,6 @@ 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 FeaturesList extends React.PureComponent {
   state = {
@@ -75,7 +74,7 @@ class FeaturesList extends React.PureComponent {
     return (
       <div>
         <FilterTable filterSetting={this.filterSetting} tableSetting={this.tableSetting} apiUrl={apiUrl}
-          />
+        />
       </div>
     )
   }

+ 4 - 17
src/pages/fengkong/features/group.js

@@ -30,15 +30,13 @@ class GroupList extends React.PureComponent {
 
   // filtertable的列表配置
   tableSetting = {
-    // rowKey: 'alias',
-    // isFrontPagination: true,
     pagination: {
       pageSize: 10
     },
     columnConfig: [
       {
-          title: 'ID',
-          dataIndex: 'id'
+        title: 'ID',
+        dataIndex: 'id'
       },
       {
         title: '分组名称',
@@ -64,28 +62,17 @@ class GroupList extends React.PureComponent {
         title: '修改人',
         dataIndex: 'updateUser'
       }
-    //   {
-    //     title: '操作',
-    //     dataIndex: 'actions',
-    //     // 所有需要弹窗操作的都可以用编辑的逻辑;所有不需要弹窗的操作,比如上架、发布等,都可以用”删除“的逻辑
-    //     render: (text, record) => <span><a onClick={() => this.editItem(record)}>编辑</a><Divider
-    //       type="vertical"/><Popconfirm
-    //       title="确定删除"
-    //       onConfirm={() => this.delItem(record)}>
-    //       <a>删除</a>
-    //     </Popconfirm><Divider type="vertical"/></span>
-    //   }
     ],
     getRefresh: refresh => {
       this.refresh = refresh
-    },
+    }
   }
 
   render () {
     return (
       <div>
         <FilterTable filterSetting={this.filterSetting} tableSetting={this.tableSetting} apiUrl={apiUrl}
-          />
+        />
       </div>
     )
   }