魏超 5 anos atrás
pai
commit
bfad6ce973
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      src/pages/activity/ActivityList.jsx

+ 2
- 2
src/pages/activity/ActivityList.jsx Ver arquivo

@@ -131,7 +131,7 @@ const header = props => {
131 131
       render: (x, row) => (
132 132
         <>
133 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 135
           </AuthButton>
136 136
           <AuthButton name="admin.buildingDynamic.send.dynamicId.put" noRight={null}>
137 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,7 +189,7 @@ const header = props => {
189 189
   }
190 190
 
191 191
   const sendOrPublicDynamic = row => {
192
-    if (row.status === 1) {
192
+    if (row.status === 0) {
193 193
       cancelDynamic(row)
194 194
     } else {
195 195
       sendDynamic(row)