|
@@ -107,7 +107,15 @@ const WeGZHContent: React.FC = () => {
|
|
|
),
|
|
|
},
|
|
|
];
|
|
|
- const cloumns2: TableProps<GzhPlanDataType>['columns'] = columns.filter(item => item.title !== '发布场景');
|
|
|
+ const cloumns2: TableProps<GzhPlanDataType>['columns'] = columns.filter(item => item.title !== '发布场景').map(item => {
|
|
|
+ if (item.title === '公众号名称') {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ title: '服务号名称',
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return item;
|
|
|
+ });
|
|
|
|
|
|
const deletePlan = async (record: GzhPlanDataType) => {
|
|
|
setIsLoading(true);
|
|
@@ -153,7 +161,8 @@ const WeGZHContent: React.FC = () => {
|
|
|
if (params.type !== planType) {
|
|
|
setPlanType(params.type as GzhPlanType);
|
|
|
}
|
|
|
- const res = await http.post<GzhPlanDataType>(saveGzhPlanApi, params)
|
|
|
+
|
|
|
+ const res = await http.post<GzhPlanDataType>(saveGzhPlanApi, {...params, type: +params.type})
|
|
|
.catch(err => {
|
|
|
message.error(err.msg);
|
|
|
})
|