|
5 | 5 | :data="dataList" |
6 | 6 | :columns="columns" |
7 | 7 | :loading="loading" |
8 | | - :scroll="{ x: '100%', y: '100%', minWidth: 1500 }" |
| 8 | + :scroll="{ x: '100%', y: '100%', minWidth: 1200 }" |
9 | 9 | :pagination="pagination" |
10 | 10 | :disabled-tools="['size']" |
11 | 11 | :disabled-column-keys="['clientKey']" |
12 | 12 | @refresh="search" |
13 | 13 | > |
14 | 14 | <template #toolbar-left> |
15 | | - <a-input-search v-model="queryForm.clientKey" placeholder="搜索终端Key" allow-clear @search="search" /> |
16 | 15 | <a-select |
17 | 16 | v-model="queryForm.clientType" |
18 | 17 | :options="client_type" |
@@ -83,10 +82,8 @@ const { |
83 | 82 | } = useDict('client_type', 'auth_type_enum') |
84 | 83 |
|
85 | 84 | const queryForm = reactive<ClientQuery>({ |
86 | | - clientKey: '', |
87 | | - clientSecret: '', |
88 | | - authType: [] as string[], |
89 | 85 | clientType: '', |
| 86 | + authType: [] as string[], |
90 | 87 | status: '', |
91 | 88 | sort: ['id,desc'], |
92 | 89 | }) |
@@ -123,30 +120,28 @@ const columns: TableInstance['columns'] = [ |
123 | 120 | ) |
124 | 121 | }, |
125 | 122 | }, |
126 | | - { title: '终端 Key', dataIndex: 'clientKey', slotName: 'clientKey', ellipsis: true, tooltip: true, align: 'center' }, |
127 | | - { title: '终端秘钥', dataIndex: 'clientSecret', slotName: 'clientSecret', ellipsis: true, tooltip: true, align: 'center' }, |
128 | 123 | { |
129 | | - title: '认证类型', |
130 | | - dataIndex: 'authType', |
131 | | - slotName: 'authType', |
| 124 | + title: '终端类型', |
| 125 | + dataIndex: 'clientType', |
| 126 | + slotName: 'clientType', |
132 | 127 | ellipsis: true, |
133 | 128 | tooltip: true, |
134 | 129 | align: 'center', |
135 | 130 | render: ({ record }) => { |
136 | | - return ( |
137 | | - <GiCellTags data={formatAuthType(record.authType)} /> |
138 | | - ) |
| 131 | + return <GiCellTag value={record.clientType} dict={client_type.value} /> |
139 | 132 | }, |
140 | 133 | }, |
141 | 134 | { |
142 | | - title: '终端类型', |
143 | | - dataIndex: 'clientType', |
144 | | - slotName: 'clientType', |
| 135 | + title: '认证类型', |
| 136 | + dataIndex: 'authType', |
| 137 | + slotName: 'authType', |
145 | 138 | ellipsis: true, |
146 | 139 | tooltip: true, |
147 | 140 | align: 'center', |
148 | 141 | render: ({ record }) => { |
149 | | - return <GiCellTag value={record.clientType} dict={client_type.value} /> |
| 142 | + return ( |
| 143 | + <GiCellTags data={formatAuthType(record.authType)} /> |
| 144 | + ) |
150 | 145 | }, |
151 | 146 | }, |
152 | 147 | { title: 'Token 最低活跃频率', dataIndex: 'activeTimeout', slotName: 'activeTimeout', width: 180, align: 'center', render: ({ record }) => `${record.activeTimeout} 秒` }, |
@@ -177,10 +172,8 @@ const columns: TableInstance['columns'] = [ |
177 | 172 |
|
178 | 173 | // 重置 |
179 | 174 | const reset = () => { |
180 | | - queryForm.clientKey = '' |
181 | | - queryForm.clientSecret = '' |
182 | | - queryForm.authType = [] |
183 | 175 | queryForm.clientType = '' |
| 176 | + queryForm.authType = [] |
184 | 177 | queryForm.status = '' |
185 | 178 | search() |
186 | 179 | } |
|
0 commit comments