Commit 1ad469d7ad21b0e8af7c20a460be5b78fb877b3d

Authored by loveumiko
1 parent 8e8b3094

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

... ... @@ -189,7 +189,6 @@ export const formSchema: FormSchema[] = [
189 189 label: 'secretKey',
190 190 required: true,
191 191 componentProps: {
192   - maxLength: 36,
193 192 placeholder: '请输入secretKey',
194 193 },
195 194
... ...
... ... @@ -2,7 +2,7 @@ import { BasicColumn } from '/@/components/Table';
2 2 import { FormSchema } from '/@/components/Table';
3 3 import { findDictItemByCode } from '/@/api/system/dict';
4 4 import { findMessageConfig } from '/@/api/message/config';
5   -import { isMessage } from '/@/views/message/config/config.data';
  5 +import { isDingtalk, isMessage } from '/@/views/message/config/config.data';
6 6
7 7 export enum PlateFormTypeEnum {
8 8 ali_cound = 'ALI_CLOUD',
... ... @@ -172,6 +172,7 @@ export const formSchema: FormSchema[] = [
172 172 const record = await findMessageConfig(params);
173 173 return record.filter((item) => item.status === 1);
174 174 } catch (error) {
  175 + // eslint-disable-next-line no-console
175 176 console.log(error);
176 177 return [];
177 178 }
... ... @@ -218,7 +219,9 @@ export const formSchema: FormSchema[] = [
218 219 placeholder: '请输入签名',
219 220 },
220 221
221   - ifShow: ({ values }) => isMessage(Reflect.get(values, 'messageType')),
  222 + ifShow: ({ values }) =>
  223 + isMessage(Reflect.get(values, 'messageType')) ||
  224 + isDingtalk(Reflect.get(values, 'messageType')),
222 225 },
223 226 {
224 227 field: 'templatePurpose',
... ...