Browse Source

增加公众号推送

jihuaqiang 1 week ago
parent
commit
5117fb726a

+ 1 - 0
src/views/publishContent/weGZH/components/publishPlanModal/index.tsx

@@ -178,6 +178,7 @@ const AddPunlishPlanModal: React.FC<AddPunlishPlanModalProps> = ({
 						<Select placeholder="选择计划类型" onChange={onTypeChange} className='!w-50' disabled={actionType === 'edit'}>
 							<Option value={GzhPlanType.自动回复}>自动回复</Option>
 							<Option value={GzhPlanType.服务号推送}>服务号推送</Option>
+							<Option value={GzhPlanType.公众号推送}>公众号推送</Option>
 						</Select>
 					</Form.Item>
 					<Form.Item

+ 1 - 0
src/views/publishContent/weGZH/hooks/useGzhPlanList.ts

@@ -6,6 +6,7 @@ import { VideoItem } from '../components/types';
 export enum GzhPlanType {
 	自动回复 = '0',
 	服务号推送 = '1',
+	公众号推送 = '2',
 }
 
 export interface GzhPlanDataType {

+ 1 - 0
src/views/publishContent/weGZH/index.tsx

@@ -301,6 +301,7 @@ const WeGZHContent: React.FC = () => {
 					items={[
 						{ label: '自动回复', key: GzhPlanType.自动回复 },
 						{ label: '服务号推送', key: GzhPlanType.服务号推送 },
+						{ label: '公众号推送', key: GzhPlanType.公众号推送 },
 					]}
 					activeKey={planType}
 					onChange={(key) => setPlanType(key as GzhPlanType)}

+ 40 - 0
src/views/weData/gzh/index.tsx

@@ -320,6 +320,46 @@ const Gzh: React.FC = () => {
           {
             key: "3",
             label: "服务号分账号",
+            children: (
+              <Table
+                dataSource={separateDataSource}
+                columns={separateColumns}
+                rowKey={(record, idx) => record.dateStr + record.ghId + idx}
+                loading={loading}
+                pagination={{
+                  current: pagination.current,
+                  pageSize: pagination.pageSize,
+                  total: pagination.total,
+                  showSizeChanger: true,
+                  showTotal: (total) => `共 ${total} 条`,
+                }}
+                onChange={handleTableChange}
+              />
+            ),
+					},
+					{
+            key: "5",
+            label: "公众号总计",
+            children: (
+              <Table
+                dataSource={allDataSource}
+                columns={columns}
+                rowKey={(record, idx) => record.dateStr + record.ghId + idx}
+                loading={loading}
+                pagination={{
+                  current: pagination.current,
+                  pageSize: pagination.pageSize,
+                  total: pagination.total,
+                  showSizeChanger: true,
+                  showTotal: (total) => `共 ${total} 条`,
+                }}
+                onChange={handleTableChange}
+              />
+            ),
+          },
+          {
+            key: "6",
+            label: "公众号分账号",
             children: (
               <Table
                 dataSource={separateDataSource}