魏超 5 yıl önce
ebeveyn
işleme
bfad6ce973
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      src/pages/activity/ActivityList.jsx

+ 2
- 2
src/pages/activity/ActivityList.jsx Dosyayı Görüntüle

131
       render: (x, row) => (
131
       render: (x, row) => (
132
         <>
132
         <>
133
           <AuthButton name="admin.SignList.get" noRight={null}>
133
           <AuthButton name="admin.SignList.get" noRight={null}>
134
-            <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={getSignList.bind(this, row.dynamicId)}>{row.isEnlist == '1' || row.isEnlist == '2' ? '报名记录' : ''}{ (row.isEnlist==1||row.isEnlist==2)  && <Icon type="snippets" className={styles.shoppingCart} />}</span>
134
+            <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={getSignList.bind(this, row.dynamicId)}>{row.isEnlist == '1' ? '报名记录' : ''}{ (row.isEnlist==1)  && <Icon type="snippets" className={styles.shoppingCart} />}</span>
135
           </AuthButton>
135
           </AuthButton>
136
           <AuthButton name="admin.buildingDynamic.send.dynamicId.put" noRight={null}>
136
           <AuthButton name="admin.buildingDynamic.send.dynamicId.put" noRight={null}>
137
             {row.activityStatus != 0 && <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={sendOrPublicDynamic.bind(this, row)}>{row.status === 1 ? '取消发布' : '发布'}<Icon type="close-circle" className={styles.edit} /></span>}
137
             {row.activityStatus != 0 && <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={sendOrPublicDynamic.bind(this, row)}>{row.status === 1 ? '取消发布' : '发布'}<Icon type="close-circle" className={styles.edit} /></span>}
189
   }
189
   }
190
 
190
 
191
   const sendOrPublicDynamic = row => {
191
   const sendOrPublicDynamic = row => {
192
-    if (row.status === 1) {
192
+    if (row.status === 0) {
193
       cancelDynamic(row)
193
       cancelDynamic(row)
194
     } else {
194
     } else {
195
       sendDynamic(row)
195
       sendDynamic(row)