xujing 5 년 전
부모
커밋
c60c44a175

+ 3
- 2
src/pages/h5SampleManager/h5Demand/components/BatchDel.jsx 파일 보기

@@ -15,7 +15,8 @@ const BatchDel = props => {
15 15
     props.form.validateFields((err, values) => {
16 16
       if (!err){
17 17
         request({ ...apis.taH5SampleManager.batchDelDemands, data: { taH5Demands: taRaiseRecords }, }).then((data) => {
18
-          message.info("操作成功")
18
+          const resultMessage = '操作成功,其中'+data.successNum+'条成功删除,'+data.failNum+'条非作废/提交状态未删除。'
19
+          message.info(resultMessage)
19 20
           props.onSuccess(false);
20 21
         }).catch((err) => {
21 22
           message.info(err.msg || err.message)
@@ -38,7 +39,7 @@ const BatchDel = props => {
38 39
             <Button type="primary" htmlType="submit" >
39 40
               确定
40 41
             </Button>
41
-            <Button type="primary" onClick={props.onCancel} style={{marginLeft:'20px'}}>
42
+            <Button onClick={props.onCancel} style={{marginLeft:'20px'}}>
42 43
               取消
43 44
             </Button>
44 45
           </Form.Item>

+ 1
- 3
src/pages/h5SampleManager/h5Demand/edit.jsx 파일 보기

@@ -77,9 +77,7 @@ const header = props => {
77 77
           <Button type="primary" htmlType="submit">
78 78
             保存
79 79
           </Button>
80
-          <Button className={channels.formButton} onClick = { go } type="primary" htmlType="submit">
81
-            取消
82
-          </Button>
80
+          <Button className={channels.formButton}  onClick={() => router.go(-1)}>取消</Button>
83 81
         </Form.Item>
84 82
       </Form>
85 83
   </>

+ 4
- 1
src/pages/h5SampleManager/h5Demand/list.jsx 파일 보기

@@ -148,12 +148,15 @@ const header = props => {
148 148
   }
149 149
 
150 150
   function showBatchDel(e){
151
+  
151 152
     if (demandIds.length <= 0){
152 153
       message.info("请选择数据");
153 154
       return;
154 155
     }
155 156
     setBatchDel(e);
156
-    getList();
157
+    if(!e.visable){
158
+      getList()
159
+    }
157 160
   }
158 161
 
159 162
   function addDemandInfo(e){

+ 1
- 0
src/pages/h5SampleManager/h5Sample/add.jsx 파일 보기

@@ -87,6 +87,7 @@ const header = props => {
87 87
               message: '请填写正确的联系方式',
88 88
               max:11,
89 89
               min:11,
90
+              pattern: new RegExp('^[0-9]*$'),
90 91
             },
91 92
           ],
92 93
         })(<Input/>)}

+ 3
- 3
src/pages/h5SampleManager/h5Sample/detail.jsx 파일 보기

@@ -84,8 +84,8 @@ const header = props => {
84 84
         <Form.Item label="样例名">
85 85
           <span>{demandData.sampleName}</span>
86 86
         </Form.Item>
87
-        {demandData.sampleTryLink != '' && demandData.sampleTryLink != null && <Form.Item label="样例体验链接">
88
-          <span>{demandData.sampleTryLink}</span><span style={{ marginLeft: '10px' }}><a onClick={(e) => copyLink(demandData.sampleTryLink)} style={{ color: 'orange' }}> <img src={copyImg} height="16px" width="14px" /> 复制链接</a></span>
87
+        {demandData.sampleTryLink != '' && demandData.sampleTryLink != null && <Form.Item label="样例体验链接" help="请复制发送到手机,用手机微信打开,PC端打开样式比例与手机端不同,以手机端为准">
88
+          <span>{demandData.sampleTryLink}</span><span style={{marginLeft:'10px'}}><a onClick={(e) => copyLink(demandData.sampleTryLink)} style={{ color: 'orange' }}> <img src={copyImg} height="16px" width="14px" /> 复制链接</a></span>
89 89
         </Form.Item>}
90 90
         {demandData.sampleTryCode != '' && demandData.sampleTryCode != null && <Form.Item label="样例体验小程序码/二维码" help="请使用微信扫码查看样例体验">
91 91
           <img src={demandData.sampleTryCode} height="100px" width="120px" />
@@ -95,7 +95,7 @@ const header = props => {
95 95
           <DragableUploadImageList sampleId={sampleId}></DragableUploadImageList>
96 96
         </Form.Item>}
97 97
         <Form.Item label="样例内容">
98
-          {demandData.sampleType === 'rich' ? getFieldDecorator('sampleContent')(<Wangedit contenteditable={false} />) : getFieldDecorator('sampleContentLink')(<a href={demandData.sampleContentLink} target="_blank">{demandData.sampleContentLink}</a>)}
98
+            {demandData.sampleType === 'rich' ? getFieldDecorator('sampleContent')(<Wangedit contenteditable={false}/>) : getFieldDecorator('sampleContentLink')(<a style={{color: "blue"}}  href={demandData.sampleContentLink} target="_blank" >{demandData.sampleContentLink}</a>)}
99 99
         </Form.Item>
100 100
         <Form.Item wrapperCol={{ span: 15, offset: 7 }}>
101 101
           <div style={{ margin: '0.16rem 0 0.06rem' }}>