diff --git a/deliver-front/vue/components.d.ts b/deliver-front/vue/components.d.ts index de4136662f80ebad3306c4db341293bb7d78d42e..21a3877f42571609c72c480a6ea7d16747e4d0ba 100644 --- a/deliver-front/vue/components.d.ts +++ b/deliver-front/vue/components.d.ts @@ -13,40 +13,20 @@ declare module 'vue' { ACard: typeof import('ant-design-vue/es')['Card'] ACardMeta: typeof import('ant-design-vue/es')['CardMeta'] ACol: typeof import('ant-design-vue/es')['Col'] - ADescriptions: typeof import('ant-design-vue/es')['Descriptions'] - ADescriptionsItem: typeof import('ant-design-vue/es')['DescriptionsItem'] - ADivider: typeof import('ant-design-vue/es')['Divider'] - ADrawer: typeof import('ant-design-vue/es')['Drawer'] - AForm: typeof import('ant-design-vue/es')['Form'] - AFormItem: typeof import('ant-design-vue/es')['FormItem'] - AInput: typeof import('ant-design-vue/es')['Input'] - AInputGroup: typeof import('ant-design-vue/es')['InputGroup'] - AInputNumber: typeof import('ant-design-vue/es')['InputNumber'] ALayout: typeof import('ant-design-vue/es')['Layout'] ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent'] ALayoutFooter: typeof import('ant-design-vue/es')['LayoutFooter'] ALayoutHeader: typeof import('ant-design-vue/es')['LayoutHeader'] ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider'] - AList: typeof import('ant-design-vue/es')['List'] - AListItem: typeof import('ant-design-vue/es')['ListItem'] AMenu: typeof import('ant-design-vue/es')['Menu'] AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] AModal: typeof import('ant-design-vue/es')['Modal'] - APagination: typeof import('ant-design-vue/es')['Pagination'] - APopconfirm: typeof import('ant-design-vue/es')['Popconfirm'] ARadioButton: typeof import('ant-design-vue/es')['RadioButton'] ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] - ARangePicker: typeof import('ant-design-vue/es')['RangePicker'] ARow: typeof import('ant-design-vue/es')['Row'] - ASelect: typeof import('ant-design-vue/es')['Select'] - ASelectOption: typeof import('ant-design-vue/es')['SelectOption'] AStatistic: typeof import('ant-design-vue/es')['Statistic'] ASubMenu: typeof import('ant-design-vue/es')['SubMenu'] - ASwitch: typeof import('ant-design-vue/es')['Switch'] - ATable: typeof import('ant-design-vue/es')['Table'] - ATag: typeof import('ant-design-vue/es')['Tag'] ATooltip: typeof import('ant-design-vue/es')['Tooltip'] - AUploadDragger: typeof import('ant-design-vue/es')['UploadDragger'] Banner: typeof import('./src/components/Banner/index.vue')['default'] Code: typeof import('./src/components/Code/index.vue')['default'] Drawer: typeof import('./src/components/Drawer/index.vue')['default'] diff --git a/deliver-front/vue/src/components/Drawer/index.vue b/deliver-front/vue/src/components/Drawer/index.vue index 9841ca175ef5e0d185c6726ebd099c083effd018..50192bbe4772dde8e4a1b30a1b4e473a85a513db 100644 --- a/deliver-front/vue/src/components/Drawer/index.vue +++ b/deliver-front/vue/src/components/Drawer/index.vue @@ -6,7 +6,7 @@ import JsonEditorVue from 'json-editor-vue3' interface Props { config: Form.Feedback model: Record - _options: Form.Options + _options: any } interface EmitEvent { (e: 'submit', params: any): void @@ -19,7 +19,7 @@ const cache = new Map() watch( () => props.model, () => { - drawerModel.value[props.model.key] = props.model[props.model.key] + drawerModel.value[props.model.rowKey] = props.model[props.model.rowKey] props.config.formData.forEach((item) => { if (item.type === 'cascader') { item.options.forEach((opt: any) => { diff --git a/deliver-front/vue/src/config/table.ts b/deliver-front/vue/src/config/table.ts index 5395d8b82efcd5b6f7d66cb5387c9d4975caf830..829a09130ebf142255837472b8850442af1c04df 100644 --- a/deliver-front/vue/src/config/table.ts +++ b/deliver-front/vue/src/config/table.ts @@ -314,7 +314,7 @@ export const tableColumns: Table.Columns[] = [ config: { ...editTemplateField, title: '修改模板' }, tip: '修改消息模版', icon: EditTwoTone, - options: { resetButtonText: '重置', submitButtonText: '确认修改' } + options: { rowKey: 'templateId', resetButtonText: '重置', submitButtonText: '确认修改' } }, { command: 'send', @@ -324,7 +324,7 @@ export const tableColumns: Table.Columns[] = [ config: sendTest, tip: '测试消息模板发送', icon: ApiTwoTone, - options: { resetButtonText: '清空', submitButtonText: '发送' } + options: { rowKey: 'templateId', resetButtonText: '清空', submitButtonText: '发送' } }, { command: 'delete', diff --git a/deliver-front/vue/vite.config.ts b/deliver-front/vue/vite.config.ts index de3fe16e1579b2105d71a0ea62f17ba584614256..b53c461d2ad74d6f0549e893ecea31e59e0053be 100644 --- a/deliver-front/vue/vite.config.ts +++ b/deliver-front/vue/vite.config.ts @@ -13,7 +13,7 @@ export default defineConfig({ proxy: { '/backend': { // 请求接口中要替换的标识 - target: 'http://localhost:6060', // 代理地址 + target: 'http://localhost:9090', // 代理地址 changeOrigin: true, // 是否允许跨域 secure: true }