Commit 41e8ae43feeed55c521149b6967a469659d24042
1 parent
ed95231e
perf: product profile detail physical hidden unit creator readWrite column
Showing
1 changed file
with
22 additions
and
24 deletions
| ... | ... | @@ -3,8 +3,6 @@ import { FormSchema } from '/@/components/Table'; |
| 3 | 3 | import { findDictItemByCode } from '/@/api/system/dict'; |
| 4 | 4 | import { MessageEnum } from '/@/enums/messageEnum'; |
| 5 | 5 | import { numberRule } from '/@/utils/rules'; |
| 6 | -import { Tag } from 'ant-design-vue'; | |
| 7 | -import { h } from 'vue'; | |
| 8 | 6 | |
| 9 | 7 | import { deviceConfigGetRuleChain } from '/@/api/device/deviceConfigApi'; |
| 10 | 8 | |
| ... | ... | @@ -40,28 +38,28 @@ export const physicalColumn: BasicColumn[] = [ |
| 40 | 38 | dataIndex: 'transportType', |
| 41 | 39 | width: 100, |
| 42 | 40 | }, |
| 43 | - { | |
| 44 | - title: '单位', | |
| 45 | - dataIndex: 'description1', | |
| 46 | - width: 90, | |
| 47 | - }, | |
| 48 | - { | |
| 49 | - title: '读写类型', | |
| 50 | - dataIndex: 'default', | |
| 51 | - width: 60, | |
| 52 | - customRender: ({ record }) => { | |
| 53 | - const status = record.actionStatus; | |
| 54 | - const enable = status === 'SUCCESS' ? '读写' : '只读'; | |
| 55 | - const color = enable === '读写' ? 'blue' : 'green'; | |
| 56 | - const text = enable === '读写' ? '读写' : '只读'; | |
| 57 | - return h(Tag, { color }, () => text); | |
| 58 | - }, | |
| 59 | - }, | |
| 60 | - { | |
| 61 | - title: '创建人', | |
| 62 | - dataIndex: 'description', | |
| 63 | - width: 80, | |
| 64 | - }, | |
| 41 | + // { | |
| 42 | + // title: '单位', | |
| 43 | + // dataIndex: 'description1', | |
| 44 | + // width: 90, | |
| 45 | + // }, | |
| 46 | + // { | |
| 47 | + // title: '读写类型', | |
| 48 | + // dataIndex: 'default', | |
| 49 | + // width: 60, | |
| 50 | + // customRender: ({ record }) => { | |
| 51 | + // const status = record.actionStatus; | |
| 52 | + // const enable = status === 'SUCCESS' ? '读写' : '只读'; | |
| 53 | + // const color = enable === '读写' ? 'blue' : 'green'; | |
| 54 | + // const text = enable === '读写' ? '读写' : '只读'; | |
| 55 | + // return h(Tag, { color }, () => text); | |
| 56 | + // }, | |
| 57 | + // }, | |
| 58 | + // { | |
| 59 | + // title: '创建人', | |
| 60 | + // dataIndex: 'description', | |
| 61 | + // width: 80, | |
| 62 | + // }, | |
| 65 | 63 | { |
| 66 | 64 | title: '创建时间', |
| 67 | 65 | dataIndex: 'createTime', | ... | ... |