魏超 5 年之前
父節點
當前提交
26f4b5c760
共有 3 個檔案被更改,包括 19 行新增19 行删除
  1. 2
    2
      src/pages/activity/groupActivity/helpRecord.jsx
  2. 4
    4
      src/pages/activity/groupActivity/list.jsx
  3. 13
    13
      src/services/apis.js

+ 2
- 2
src/pages/activity/groupActivity/helpRecord.jsx 查看文件

@@ -477,7 +477,7 @@ function helpRecord(row) {
477 477
       render: (x, row) => (
478 478
         <>
479 479
           {row.verificationStatus === 0 &&
480
-          <AuthButton name="admin.SignList.get" noRight={null}>
480
+          <AuthButton name="admin.taShareSuccessRecord.get" noRight={null}>
481 481
            <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={(e) => shareRecordVerify(row)}>核销</span>
482 482
           </AuthButton>
483 483
         }
@@ -519,7 +519,7 @@ function helpRecord(row) {
519 519
       </Button>
520 520
 
521 521
       <div style={{ margin: '20px 0' }}>
522
-        <AuthButton name="admin.customer.recommend.get" noRight={null}>
522
+        <AuthButton name="admin.taShareSuccessRecord.get" noRight={null}>
523 523
           <Radio.Group value={groupStatus} onChange={radioButtonHandleSizeChange} buttonStyle="solid">
524 524
             <Radio.Button value="0">拼团成功</Radio.Button>
525 525
             <Radio.Button value="1">进行中</Radio.Button>

+ 4
- 4
src/pages/activity/groupActivity/list.jsx 查看文件

@@ -99,7 +99,7 @@ const toEditActivity = (groupActivityId) => () => {
99 99
       render: (x, row) => (
100 100
         <>
101 101
           {row.activityStatus === 0 &&
102
-          <AuthButton name="admin.SignList.get" noRight={null}>
102
+          <AuthButton name="admin.taShareActivity.list.get" noRight={null}>
103 103
         
104 104
             <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={ getSignList.bind(this, row.groupActivityId)}>拼团记录<Icon type="snippets" className={styles.shoppingCart} /></span>
105 105
             <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={endGroupActivity(row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>
@@ -108,7 +108,7 @@ const toEditActivity = (groupActivityId) => () => {
108 108
         </AuthButton> }
109 109
 
110 110
           {row.activityStatus === 1 &&
111
-           <AuthButton name="admin.buildingDynamic.finish.put" noRight={null}>
111
+           <AuthButton name="admin.taShareActivity.list.get" noRight={null}>
112 112
                       <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEditActivity(row.groupActivityId)}>编辑<Icon type="form" className={styles.edit} /></span>
113 113
                       <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={endGroupActivity(row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>
114 114
                       <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topGroupActivity(row, row.weight)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
@@ -117,7 +117,7 @@ const toEditActivity = (groupActivityId) => () => {
117 117
           }
118 118
 
119 119
           {row.activityStatus === 2 &&
120
-        <AuthButton name="admin.buildingDynamic.finish.put" noRight={null}>
120
+        <AuthButton name="admin.taShareActivity.list.get" noRight={null}>
121 121
            <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={ getSignList.bind(this, row.groupActivityId)}>拼团记录<Icon type="snippets" className={styles.shoppingCart} /></span>
122 122
            <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topGroupActivity(row, row.weight)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
123 123
             <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={recommendGroupActivity(row)}>{ row.sort === true ? '取消推荐首页' : '推荐首页' }<Icon type="vertical-align-top" className={styles.edit} /></span>
@@ -263,7 +263,7 @@ const handleSubmit = (e, props) => {
263 263
             </Button>
264 264
         </Form.Item>
265 265
       </Form>
266
-      <AuthButton name="admin.buildingDynamic.add.post" noRight={null}>
266
+      <AuthButton name="admin.taShareActivity.post" noRight={null}>
267 267
         <Button type="danger" className={styles.addBtn} onClick={toEditActivity()}>新增</Button>
268 268
       </AuthButton>
269 269
       <Table dataSource={data.records} columns={columns} pagination={false} rowKey="activityList"/>

+ 13
- 13
src/services/apis.js 查看文件

@@ -789,67 +789,67 @@ export default {
789 789
   list: {
790 790
     url: `${prefix}/taShareActivity/list`,
791 791
     method: 'get',
792
-    action: 'admin.taShareActivity.get',
792
+    action: 'admin.taShareActivity.list.get',
793 793
   },
794 794
   add: {
795 795
     url: `${prefix}/taShareActivity`,
796 796
     method: 'post',
797
-    action: 'admin.taRole.get',
797
+    action: 'admin.taShareActivity.post',
798 798
   },
799 799
   details: {
800 800
     url: `${prefix}/taShareActivity/:id`,
801 801
     method: 'get',
802
-    action: 'admin.taRole.get',
802
+    action: 'admin.taShareActivity.id.get',
803 803
   },
804 804
   avgScore: {
805 805
     url: `${prefix}/taShareActivity/avgScore`,
806 806
     method: 'get',
807
-    action: 'admin.taRole.get',
807
+    action: 'admin.taShareActivity.avgScore.get',
808 808
   },
809 809
   update: {
810 810
     url: `${prefix}/taShareActivity/update`,
811 811
     method: 'put',
812
-    action: 'admin.taRole.get',
812
+    action: 'admin.taShareActivity.update.put',
813 813
   },
814 814
   finish: {
815 815
     url: `${prefix}/taShareActivity/finish/:id`,
816 816
     method: 'put',
817
-    action: 'admin.taShareActivity.finish',
817
+    action: 'admin.taShareActivity.finish.put',
818 818
   },
819 819
   top: {
820 820
     url: `${prefix}/taShareActivity/weight`,
821 821
     method: 'put',
822
-    action: 'admin.taShareActivity.weight',
822
+    action: 'admin.taShareActivity.weight.put',
823 823
   },
824 824
   shareSuccList: {
825 825
     url: `${prefix}/taShareSuccessRecord`,
826 826
     method: 'get',
827
-    action: 'admin.taRole.get',
827
+    action: 'admin.taShareSuccessRecord.get',
828 828
   },
829 829
   shareFailList : {
830 830
     url: `${prefix}/taShareFailAndProcessingRecord`,
831 831
     method: 'get',
832
-    action: 'admin.taRole.get',
832
+    action: 'admin.taShareFailAndProcessingRecord.get',
833 833
   },
834 834
   shareChildList : {
835 835
     url: `${prefix}/taShareChildRecord`,
836 836
     method: 'get',
837
-    action: 'admin.taRole.get',
837
+    action: 'admin.taShareChildRecord.get',
838 838
   },
839 839
   exportShareChildRecord: {
840 840
     url: `${prefix}/taShareChildRecord/export`,
841 841
     method: 'get',
842
-    action: 'admin.taRole.get',
842
+    action: 'admin.taShareChildRecord.export.get',
843 843
   },
844 844
   exportShareRecord: {
845 845
     url: `${prefix}/taShareRecord/export`,
846 846
     method: 'get',
847
-    action: 'admin.taRole.get',
847
+    action: 'admin.taShareRecord.export.get',
848 848
   },
849 849
   verification: {
850 850
     url: `${prefix}/taShareRecord/verificate`,
851 851
     method: 'put',
852
-    action: 'admin.taRole.get',
852
+    action: 'admin.taShareRecord.verificate.put',
853 853
   }
854 854
  },
855 855
  third: {