张延森 vor 4 Jahren
Ursprung
Commit
216e9b5a90

+ 1
- 1
package.json Datei anzeigen

@@ -72,7 +72,7 @@
72 72
     "umi-plugin-pro-block": "^1.3.6",
73 73
     "umi-plugin-react": "^1.15.8",
74 74
     "umi-request": "^1.0.8",
75
-    "wangeditor": "^4.6.4"
75
+    "wangeditor": "4.6.4"
76 76
   },
77 77
   "devDependencies": {
78 78
     "@ant-design/colors": "^3.1.0",

+ 4
- 4
src/pages/activity/ActivityList.jsx Datei anzeigen

@@ -182,11 +182,11 @@ const header = props => {
182 182
             <EditIcon type="end" text="结束活动" onClick={finishDynamic.bind(this, row)} />
183 183
           </AuthButton> : null,
184 184
 
185
-        <AuthButton name="admin.buildingDynamic.tag" noRight={null}>
186
-          <EditIcon type={row.weight === 1 ? 'cancel' : 'add'} text={row.weight === 1 ? '取消标签' : '添加标签'} onClick={topDynamic(row)} />
187
-        </AuthButton>,
185
+        // <AuthButton name="admin.buildingDynamic.tag" noRight={null}>
186
+        //   <EditIcon type={row.weight === 1 ? 'cancel' : 'add'} text={row.weight === 1 ? '取消标签' : '添加标签'} onClick={topDynamic(row)} />
187
+        // </AuthButton>,
188 188
 
189
-        <EditIcon type={row.home === 1 ? 'cancel' : 'top'} text={row.home === 1 ? '取消推首页' : '推荐首页'} onClick={homeDynamic(row)} />,
189
+        // <EditIcon type={row.home === 1 ? 'cancel' : 'top'} text={row.home === 1 ? '取消推首页' : '推荐首页'} onClick={homeDynamic(row)} />,
190 190
 
191 191
         // <AuthButton name="admin.buildingDynamic.dataRecord" noRight={null}>
192 192
         //   <EditIcon type="record" text="数据记录" onClick={toDataReacord(row.dynamicId)} />

+ 2
- 2
src/pages/activity/detailActivity.jsx Datei anzeigen

@@ -161,9 +161,9 @@ const BasicForm = props => {
161 161
         <Form.Item label="报名时间">
162 162
           <span>{`${moment(detailData.enlistStart).format('YYYY-MM-DD HH:mm')} —— ${moment(detailData.enlistEnd).format('YYYY-MM-DD HH:mm')}`}</span>
163 163
         </Form.Item>
164
-        {/* <Form.Item label="权重">
164
+        <Form.Item label="权重">
165 165
           <span>{detailData.heavy}</span>
166
-        </Form.Item> */}
166
+        </Form.Item>
167 167
       </Form>
168 168
     </>
169 169
   )

+ 2
- 2
src/pages/activity/editActivity.jsx Datei anzeigen

@@ -277,7 +277,7 @@ const BasicForm = props => {
277 277
           })(<RangePicker showTime={{ format: 'HH:mm' }}
278 278
           format="YYYY-MM-DD HH:mm" onChange={changeTime} />)}
279 279
         </Form.Item>
280
-        {/* <Form.Item label="权重">
280
+        <Form.Item label="权重">
281 281
           {getFieldDecorator('heavy', {
282 282
 
283 283
             rules: [
@@ -287,7 +287,7 @@ const BasicForm = props => {
287 287
               },
288 288
             ],
289 289
           })(<Input type="number" style={{ width: 80 }} />)}<span style={{ marginLeft: 30, color: 'grey' }}>数字越大越靠前</span>
290
-        </Form.Item> */}
290
+        </Form.Item>
291 291
         <Form.Item wrapperCol={{ span: 12, offset: 8 }}>
292 292
           <Button type="primary" htmlType="submit">
293 293
             确认