wjx 2 minggu lalu
induk
melakukan
db1ce2be40

+ 3 - 3
src/pages/weComTask/page/businessPlan/create/components/highMassSending/strategy.tsx

@@ -176,7 +176,7 @@ const Strategy = forwardRef(({ value, onChange }: TASK_CREATE.StrategyProps, ref
                 }}
                 initialValues={{
                     taskType: 'novel',
-                    strategySettings: [{ sendData: [{ externalUserType: 'all' }] }],
+                    strategySettings: [{ sendData: [{ externalUserType: 'specify' }] }],
                 }}
                 onFieldsChange={() => {
                     filedUpdateChange(form.getFieldsValue())
@@ -254,7 +254,7 @@ const Strategy = forwardRef(({ value, onChange }: TASK_CREATE.StrategyProps, ref
                                                         </Card>
                                                     })}
                                                     <Form.Item>
-                                                        <Button type="dashed" onClick={() => add({ externalUserType: 'all' })} block icon={<PlusOutlined />}>
+                                                        <Button type="dashed" onClick={() => add({ externalUserType: 'specify' })} block icon={<PlusOutlined />}>
                                                             新增发送对象
                                                         </Button>
                                                     </Form.Item>
@@ -265,7 +265,7 @@ const Strategy = forwardRef(({ value, onChange }: TASK_CREATE.StrategyProps, ref
                                 </Card>
                             })}
                             <Form.Item>
-                                <Button type="primary" onClick={() => add({ sendData: [{ externalUserType: 'all' }] })} block icon={<PlusOutlined />}>
+                                <Button type="primary" onClick={() => add({ sendData: [{ externalUserType: 'specify' }] })} block icon={<PlusOutlined />}>
                                     新增策略组
                                 </Button>
                             </Form.Item>

+ 3 - 3
src/pages/weComTask/page/businessPlan/create/components/massSending/strategy.tsx

@@ -176,7 +176,7 @@ const Strategy = forwardRef(({ value, onChange }: TASK_CREATE.StrategyProps, ref
                 }}
                 initialValues={{
                     taskType: 'novel',
-                    strategySettings: [{ sendData: [{ externalUserType: 'all', id: Date.now() }], id: Date.now() }],
+                    strategySettings: [{ sendData: [{ externalUserType: 'specify', id: Date.now() }], id: Date.now() }],
                 }}
                 onFieldsChange={() => {
                     filedUpdateChange(form.getFieldsValue())
@@ -263,7 +263,7 @@ const Strategy = forwardRef(({ value, onChange }: TASK_CREATE.StrategyProps, ref
                                                         </Card>
                                                     })}
                                                     <Form.Item>
-                                                        <Button type="dashed" onClick={() => add({ externalUserType: 'all', id: Date.now() })} block icon={<PlusOutlined />}>
+                                                        <Button type="dashed" onClick={() => add({ externalUserType: 'specify', id: Date.now() })} block icon={<PlusOutlined />}>
                                                             新增发送对象
                                                         </Button>
                                                     </Form.Item>
@@ -274,7 +274,7 @@ const Strategy = forwardRef(({ value, onChange }: TASK_CREATE.StrategyProps, ref
                                 </Card>
                             })}
                             <Form.Item>
-                                <Button type="primary" onClick={() => add({ sendData: [{ externalUserType: 'all', id: Date.now() }], id: Date.now() })} block icon={<PlusOutlined />}>
+                                <Button type="primary" onClick={() => add({ sendData: [{ externalUserType: 'specify', id: Date.now() }], id: Date.now() })} block icon={<PlusOutlined />}>
                                     新增策略组
                                 </Button>
                             </Form.Item>

+ 3 - 3
src/pages/weComTask/page/businessPlan/create/components/userInherit/settingsUserlnherit.tsx

@@ -178,7 +178,7 @@ const SettingsUserInherit: React.FC<TASK_CREATE.UserInheritProps<any>> = ({ valu
                 }}
                 onFinish={handleOk}
                 initialValues={{
-                    schedulingStrategyDTO: [{ inheritDto: [{ transferType: 'all' }] }],
+                    schedulingStrategyDTO: [{ inheritDto: [{ transferType: 'specify' }] }],
                 }}
                 onFieldsChange={() => {
                     filedUpdateChange(form.getFieldsValue())
@@ -263,7 +263,7 @@ const SettingsUserInherit: React.FC<TASK_CREATE.UserInheritProps<any>> = ({ valu
                                                         </Card>
                                                     })}
                                                     <Form.Item>
-                                                        <Button type="dashed" onClick={() => add({ transferType: 'all' })} block icon={<PlusOutlined />}>
+                                                        <Button type="dashed" onClick={() => add({ transferType: 'specify' })} block icon={<PlusOutlined />}>
                                                             新增继承转移
                                                         </Button>
                                                     </Form.Item>
@@ -274,7 +274,7 @@ const SettingsUserInherit: React.FC<TASK_CREATE.UserInheritProps<any>> = ({ valu
                                 </Card>
                             })}
                             <Form.Item>
-                                <Button type="primary" onClick={() => add({ inheritDto: [{ transferType: 'all' }] })} block icon={<PlusOutlined />}>
+                                <Button type="primary" onClick={() => add({ inheritDto: [{ transferType: 'specify' }] })} block icon={<PlusOutlined />}>
                                     新增策略组
                                 </Button>
                             </Form.Item>

+ 1 - 1
src/pages/weComTask/page/groupChat/create/components/groupUser/addGroupObject.tsx

@@ -325,7 +325,7 @@ const AddGroupObjectModal: React.FC<GROUP_CHAT_CREATE.AddGroupObjectModalProps>
                 message.error(errorFields?.[0]?.errors?.[0])
             }}
             onFinish={handleOk}
-            initialValues={(initialValues && Object.keys(initialValues).length > 0) ? initialValues : { externalUserType: 'all', isRepair: false, groupIndex: 1, groupUserCount: 37, autoOutGroup: false, excludeInGroup: true, deleteGroupTag: true }}
+            initialValues={(initialValues && Object.keys(initialValues).length > 0) ? initialValues : { externalUserType: 'specify', isRepair: false, groupIndex: 1, groupUserCount: 37, autoOutGroup: false, excludeInGroup: true, deleteGroupTag: true }}
             preserve={true}
         >
             <Form.Item

+ 1 - 1
src/pages/weComTask/page/groupChatSend/official/create/components/Strategy/settingsSendObject.tsx

@@ -53,7 +53,7 @@ const AddSendObject: React.FC<OFFICIAL_CHAT_CREATE.AddSendObjectProps> = ({ mpLi
                 message.error(errorFields?.[0]?.errors?.[0])
             }}
             onFinish={handleOk}
-            initialValues={(initialValues && Object.keys(initialValues).length > 0) ? initialValues : { externalUserType: 'all' }}
+            initialValues={(initialValues && Object.keys(initialValues).length > 0) ? initialValues : { externalUserType: 'specify' }}
             preserve={true}
         >
             <Form.Item label={<strong>发送群对象名称</strong>} name={'sendGroupName'} rules={[{ required: true, message: '请输入发送群对象名称!' }]}>

+ 3 - 3
src/pages/weComTask/page/groupChatSend/official/create/components/Strategy/settingsStrategy.tsx

@@ -183,7 +183,7 @@ const SettingsStrategy: React.FC<GROUP_CHAT_CREATE.FoundationProps<any>> = ({ vi
                 }}
                 onFinish={handleOk}
                 initialValues={{
-                    strategyList: [{ id: Date.now(), sendData: [{ externalUserType: 'all', id: Date.now() }] }]
+                    strategyList: [{ id: Date.now(), sendData: [{ externalUserType: 'specify', id: Date.now() }] }]
                 }}
                 onFieldsChange={() => {
                     filedUpdateChange(form.getFieldsValue())
@@ -263,7 +263,7 @@ const SettingsStrategy: React.FC<GROUP_CHAT_CREATE.FoundationProps<any>> = ({ vi
                                                     </Card>
                                                 })}
                                                 <Form.Item>
-                                                    <Button type="dashed" onClick={() => add({ externalUserType: 'all', id: Date.now() })} block icon={<PlusOutlined />}>
+                                                    <Button type="dashed" onClick={() => add({ externalUserType: 'specify', id: Date.now() })} block icon={<PlusOutlined />}>
                                                         新增发送群对象
                                                     </Button>
                                                 </Form.Item>
@@ -273,7 +273,7 @@ const SettingsStrategy: React.FC<GROUP_CHAT_CREATE.FoundationProps<any>> = ({ vi
                                 </Card>
                             })}
                             <Form.Item>
-                                <Button type="primary" onClick={() => add({ id: Date.now(), sendData: [{ externalUserType: 'all', id: Date.now() }] })} block icon={<PlusOutlined />}>
+                                <Button type="primary" onClick={() => add({ id: Date.now(), sendData: [{ externalUserType: 'specify', id: Date.now() }] })} block icon={<PlusOutlined />}>
                                     新增策略
                                 </Button>
                             </Form.Item>

+ 1 - 1
src/pages/weComTask/page/groupChatSend/robot/create/components/Strategy/settingsSendObject.tsx

@@ -53,7 +53,7 @@ const AddSendObject: React.FC<ROBOT_CHAT_CREATE.AddSendObjectProps> = ({ mpList,
                 message.error(errorFields?.[0]?.errors?.[0])
             }}
             onFinish={handleOk}
-            initialValues={(initialValues && Object.keys(initialValues).length > 0) ? initialValues : { externalUserType: 'all' }}
+            initialValues={(initialValues && Object.keys(initialValues).length > 0) ? initialValues : { externalUserType: 'specify' }}
             preserve={true}
         >
             <Form.Item label={<strong>发送群对象名称</strong>} name={'sendGroupName'} rules={[{ required: true, message: '请输入发送群对象名称!' }]}>

+ 3 - 3
src/pages/weComTask/page/groupChatSend/robot/create/components/Strategy/settingsStrategy.tsx

@@ -191,7 +191,7 @@ const SettingsStrategy: React.FC<Props> = ({ visible, onClose, value, onChange,
                 }}
                 onFinish={handleOk}
                 initialValues={{
-                    strategyList: [{ id: Date.now(), sendData: [{ externalUserType: 'all', id: Date.now() }] }]
+                    strategyList: [{ id: Date.now(), sendData: [{ externalUserType: 'specify', id: Date.now() }] }]
                 }}
                 onFieldsChange={() => {
                     filedUpdateChange(form.getFieldsValue())
@@ -297,7 +297,7 @@ const SettingsStrategy: React.FC<Props> = ({ visible, onClose, value, onChange,
                                                     </Card>
                                                 })}
                                                 <Form.Item>
-                                                    <Button type="dashed" onClick={() => add({ externalUserType: 'all', id: Date.now() })} block icon={<PlusOutlined />}>
+                                                    <Button type="dashed" onClick={() => add({ externalUserType: 'specify', id: Date.now() })} block icon={<PlusOutlined />}>
                                                         新增发送群对象
                                                     </Button>
                                                 </Form.Item>
@@ -307,7 +307,7 @@ const SettingsStrategy: React.FC<Props> = ({ visible, onClose, value, onChange,
                                 </Card>
                             })}
                             <Form.Item>
-                                <Button type="primary" onClick={() => add({ id: Date.now(), sendData: [{ externalUserType: 'all', id: Date.now() }] })} block icon={<PlusOutlined />}>
+                                <Button type="primary" onClick={() => add({ id: Date.now(), sendData: [{ externalUserType: 'specify', id: Date.now() }] })} block icon={<PlusOutlined />}>
                                     新增策略
                                 </Button>
                             </Form.Item>