魏超 5 anni fa
parent
commit
1d48246ed7
1 ha cambiato i file con 9 aggiunte e 5 eliminazioni
  1. 9
    5
      src/pages/h5SampleManager/h5Sample/detail.jsx

+ 9
- 5
src/pages/h5SampleManager/h5Sample/detail.jsx Vedi File

121
         </Form.Item>
121
         </Form.Item>
122
         <Form.Item wrapperCol={{ span: 15, offset: 7 }}>
122
         <Form.Item wrapperCol={{ span: 15, offset: 7 }}>
123
           <div style={{ margin: '0.16rem 0 0.06rem' }}>
123
           <div style={{ margin: '0.16rem 0 0.06rem' }}>
124
-            <Button type="primary" onClick={toAddH5(sampleId)} style={{ marginRight: '20px' }}>
125
-              创建H5活动
126
-          </Button>
124
+            <AuthButton name="admin.h5Sample.activity.add" noRight={null}>
125
+              <Button type="primary" onClick={toAddH5(sampleId)} style={{ marginRight: '20px' }}>
126
+                创建H5活动
127
+              </Button>
128
+            </AuthButton>
127
             <Button type="primary" onClick={toDetail(sampleId)} style={{ marginRight: '20px' }}>
129
             <Button type="primary" onClick={toDetail(sampleId)} style={{ marginRight: '20px' }}>
128
               提交需求
130
               提交需求
129
           </Button>
131
           </Button>
134
         </Form.Item>
136
         </Form.Item>
135
         <div style={{ position: 'fixed', right: '0.4rem', bottom: '6%' }}>
137
         <div style={{ position: 'fixed', right: '0.4rem', bottom: '6%' }}>
136
           <div style={{ display: 'flex', alignItems: 'center', minWidth: '1.1rem', justifyContent: 'space-between', marginBottom: '20px' }}>样例可直接使用 <span style={{ color: '#EF273A', margin: '0 0.1rem' }}>>></span>
138
           <div style={{ display: 'flex', alignItems: 'center', minWidth: '1.1rem', justifyContent: 'space-between', marginBottom: '20px' }}>样例可直接使用 <span style={{ color: '#EF273A', margin: '0 0.1rem' }}>>></span>
137
-            <Button type="primary" onClick={toAddH5(sampleId)} >
138
-              创建H5活动
139
+            <AuthButton name="admin.h5Sample.activity.add" noRight={null}>
140
+              <Button type="primary" onClick={toAddH5(sampleId)} >
141
+                创建H5活动
139
               </Button>
142
               </Button>
143
+            </AuthButton>
140
           </div>
144
           </div>
141
           <div style={{ display: 'flex', alignItems: 'center', minWidth: '1.1rem', justifyContent: 'space-between' }}>我想办类似活动 <span style={{ color: '#EF273A', margin: '0 0.1rem' }}>>></span>
145
           <div style={{ display: 'flex', alignItems: 'center', minWidth: '1.1rem', justifyContent: 'space-between' }}>我想办类似活动 <span style={{ color: '#EF273A', margin: '0 0.1rem' }}>>></span>
142
             <Button type="primary" onClick={toDetail(sampleId)} >
146
             <Button type="primary" onClick={toDetail(sampleId)} >