Commit d55a262bd96fd99fcb9f7236c1e9b7bb43e39b09
Merge branch 'd-ww' into 'main'
perf: message manage sms && email tabel add remark column See merge request huang/yun-teng-iot-front!334
Showing
4 changed files
with
31 additions
and
5 deletions
... | ... | @@ -16,6 +16,11 @@ |
16 | 16 | </Popconfirm> |
17 | 17 | </Authority> |
18 | 18 | </template> |
19 | + <template #remark="{ record }"> | |
20 | + <Tooltip :title="record.remark"> | |
21 | + <div class="truncate w-full">{{ record.remark }}</div> | |
22 | + </Tooltip> | |
23 | + </template> | |
19 | 24 | <template #action="{ record }"> |
20 | 25 | <TableAction |
21 | 26 | :actions="[ |
... | ... | @@ -51,11 +56,11 @@ |
51 | 56 | import EmailDetail from './EmailDetail.vue'; |
52 | 57 | import { useBatchDelete } from '/@/hooks/web/useBatchDelete'; |
53 | 58 | import { Authority } from '/@/components/Authority'; |
54 | - import { Popconfirm } from 'ant-design-vue'; | |
59 | + import { Popconfirm, Tooltip } from 'ant-design-vue'; | |
55 | 60 | |
56 | 61 | export default defineComponent({ |
57 | 62 | name: 'EmailLog', |
58 | - components: { EmailDetail, BasicTable, TableAction, Authority, Popconfirm }, | |
63 | + components: { EmailDetail, BasicTable, TableAction, Authority, Popconfirm, Tooltip }, | |
59 | 64 | setup() { |
60 | 65 | const [registerModal, { openModal }] = useModal(); |
61 | 66 | const [registerTable, { reload, setProps }] = useTable({ | ... | ... |
... | ... | @@ -16,6 +16,11 @@ |
16 | 16 | </Popconfirm> |
17 | 17 | </Authority> |
18 | 18 | </template> |
19 | + <template #remark="{ record }"> | |
20 | + <Tooltip :title="record.remark"> | |
21 | + <div class="truncate w-full">{{ record.remark }}</div> | |
22 | + </Tooltip> | |
23 | + </template> | |
19 | 24 | <template #action="{ record }"> |
20 | 25 | <TableAction |
21 | 26 | :actions="[ |
... | ... | @@ -45,7 +50,7 @@ |
45 | 50 | import { defineComponent, h, nextTick } from 'vue'; |
46 | 51 | import { BasicTable, useTable, TableAction } from '/@/components/Table'; |
47 | 52 | import { columns, searchFormSchema } from './sms.data'; |
48 | - import { Modal, Popconfirm } from 'ant-design-vue'; | |
53 | + import { Modal, Popconfirm, Tooltip } from 'ant-design-vue'; | |
49 | 54 | import { smsLogPage, deleteSmsLog } from '/@/api/message/records'; |
50 | 55 | import { JsonPreview } from '/@/components/CodeEditor'; |
51 | 56 | import { useBatchDelete } from '/@/hooks/web/useBatchDelete'; |
... | ... | @@ -53,7 +58,7 @@ |
53 | 58 | |
54 | 59 | export default defineComponent({ |
55 | 60 | name: 'SmsLog', |
56 | - components: { BasicTable, TableAction, Authority, Popconfirm }, | |
61 | + components: { BasicTable, TableAction, Authority, Popconfirm, Tooltip }, | |
57 | 62 | setup() { |
58 | 63 | const [registerTable, { reload, setProps }] = useTable({ |
59 | 64 | title: '短信发送列表', |
... | ... | @@ -86,7 +91,7 @@ |
86 | 91 | }); |
87 | 92 | function handleQuery(record: Recordable) { |
88 | 93 | Modal.info({ |
89 | - title: '当前配置', | |
94 | + title: '消息内容', | |
90 | 95 | width: 480, |
91 | 96 | centered: true, |
92 | 97 | maskClosable: true, | ... | ... |
... | ... | @@ -36,6 +36,14 @@ export const columns: BasicColumn[] = [ |
36 | 36 | width: 160, |
37 | 37 | }, |
38 | 38 | { |
39 | + title: '备注', | |
40 | + dataIndex: 'remark', | |
41 | + width: 120, | |
42 | + slots: { | |
43 | + customRender: 'remark', | |
44 | + }, | |
45 | + }, | |
46 | + { | |
39 | 47 | title: '发送时间', |
40 | 48 | dataIndex: 'sendTime', |
41 | 49 | width: 180, | ... | ... |