Commit 8e8b3094c966f729a5dbb82a3ef0c8716a6fdf8a

Authored by loveumiko
1 parent ee9b5b61

perf: 消息记录优化,添加消息平台选择

@@ -6,7 +6,7 @@ export interface TabItem { @@ -6,7 +6,7 @@ export interface TabItem {
6 export const achieveList: TabItem[] = [ 6 export const achieveList: TabItem[] = [
7 { 7 {
8 key: '1', 8 key: '1',
9 - name: '短信发送记录', 9 + name: '消息发送记录',
10 component: 'SmsLog', 10 component: 'SmsLog',
11 }, 11 },
12 { 12 {
@@ -61,7 +61,7 @@ @@ -61,7 +61,7 @@
61 components: { BasicTable, TableAction, Authority, Popconfirm, Tooltip }, 61 components: { BasicTable, TableAction, Authority, Popconfirm, Tooltip },
62 setup() { 62 setup() {
63 const [registerTable, { reload, setProps }] = useTable({ 63 const [registerTable, { reload, setProps }] = useTable({
64 - title: '短信发送列表', 64 + title: '消息发送列表',
65 api: smsLogPage, 65 api: smsLogPage,
66 columns, 66 columns,
67 formConfig: { 67 formConfig: {
@@ -4,6 +4,7 @@ import { h } from 'vue'; @@ -4,6 +4,7 @@ import { h } from 'vue';
4 import { Tag } from 'ant-design-vue'; 4 import { Tag } from 'ant-design-vue';
5 import { useI18n } from '/@/hooks/web/useI18n'; 5 import { useI18n } from '/@/hooks/web/useI18n';
6 import moment from 'moment'; 6 import moment from 'moment';
  7 +import { findDictItemByCode } from '/@/api/system/dict';
7 const { t } = useI18n(); 8 const { t } = useI18n();
8 export const columns: BasicColumn[] = [ 9 export const columns: BasicColumn[] = [
9 { 10 {
@@ -12,7 +13,7 @@ export const columns: BasicColumn[] = [ @@ -12,7 +13,7 @@ export const columns: BasicColumn[] = [
12 width: 160, 13 width: 160,
13 }, 14 },
14 { 15 {
15 - title: '短信平台', 16 + title: '消息平台',
16 dataIndex: 'typeDictText', 17 dataIndex: 'typeDictText',
17 width: 160, 18 width: 160,
18 }, 19 },
@@ -61,6 +62,20 @@ export const searchFormSchema: FormSchema[] = [ @@ -61,6 +62,20 @@ export const searchFormSchema: FormSchema[] = [
61 }, 62 },
62 }, 63 },
63 { 64 {
  65 + field: 'typeDictText',
  66 + label: '消息平台',
  67 + component: 'ApiSelect',
  68 + colProps: { span: 6 },
  69 + componentProps: {
  70 + api: findDictItemByCode,
  71 + params: {
  72 + dictCode: 'message_type',
  73 + },
  74 + labelField: 'itemText',
  75 + valueField: 'itemValue',
  76 + },
  77 + },
  78 + {
64 field: 'sendTime', 79 field: 'sendTime',
65 label: '发送时间', 80 label: '发送时间',
66 component: 'RangePicker', 81 component: 'RangePicker',