diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index 9de3eba0a..5e62e755c 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -510,6 +510,36 @@ var table = { }); return actions.join(''); }, + // 回显活动名称 + selectDrawname: function(datas, value) { + if ($.common.isEmpty(datas) || $.common.isEmpty(value)) { + return ''; + } + var actions = []; + $.each(datas, function(index, draw) { + if (draw.drawcode == ('' + value)) { + var listClass = $.common.equals("default", draw.listClass) || $.common.isEmpty(draw.listClass) ? "" : "badge badge-" + draw.listClass; + actions.push($.common.sprintf("%s", listClass, draw.drawname)); + return false; + } + }); + return actions.join(''); + }, + // 回显奖品名称 + selectprivename: function(datas, value) { + if ($.common.isEmpty(datas) || $.common.isEmpty(value)) { + return ''; + } + var actions = []; + $.each(datas, function(index, draw) { + if (draw.prizecode == ('' + value)) { + var listClass = $.common.equals("default", draw.listClass) || $.common.isEmpty(draw.listClass) ? "" : "badge badge-" + draw.listClass; + actions.push($.common.sprintf("%s", listClass, draw.prizename)); + return false; + } + }); + return actions.join(''); + }, // 回显数据字典(字符串数组) selectDictLabels: function(datas, value, separator) { if ($.common.isEmpty(datas) || $.common.isEmpty(value)) { diff --git a/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawInfoMapper.java b/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawInfoMapper.java index 3962dd31a..a8cecb22d 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawInfoMapper.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawInfoMapper.java @@ -29,6 +29,8 @@ public interface DrawInfoMapper */ public List selectDrawInfoList(DrawInfo drawInfo); + List findDrawInfoList(); + /** * 新增抽奖活动管理对象 * diff --git a/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawPrizeInfoMapper.java b/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawPrizeInfoMapper.java index b0f16ce55..567c6b0a1 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawPrizeInfoMapper.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawPrizeInfoMapper.java @@ -33,6 +33,8 @@ public interface DrawPrizeInfoMapper */ public List selectDrawPrizeInfoList(DrawPrizeInfo drawPrizeInfo); + List findDrawPrizeInfoList(); + /** * 新增存储奖品的基础信息 * diff --git a/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java b/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java index 29ea2bf75..1435171f3 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java @@ -29,6 +29,12 @@ public interface IDrawInfoService */ public List selectDrawInfoList(DrawInfo drawInfo); + /** + * 查询活动列表-下拉用 + * @return + */ + public List findDrawInfoList(); + /** * 新增抽奖活动管理对象 * diff --git a/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawPrizeInfoService.java b/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawPrizeInfoService.java index 9de3daee9..81be02b7d 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawPrizeInfoService.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawPrizeInfoService.java @@ -27,6 +27,12 @@ public interface IDrawPrizeInfoService */ public List selectDrawPrizeInfoList(DrawPrizeInfo drawPrizeInfo); + /** + * 奖品列表-下拉框 + * @return + */ + List findDrawPrizeInfoList(); + /** * 新增存储奖品的基础信息 * diff --git a/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java b/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java index 8a2c2a4a8..948480cc0 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java @@ -16,7 +16,7 @@ import com.ruoyi.common.core.text.Convert; * @author xlh * @date 2021-03-25 */ -@Service +@Service("drawInfo") public class DrawInfoServiceImpl implements IDrawInfoService { @Autowired @@ -46,6 +46,11 @@ public class DrawInfoServiceImpl implements IDrawInfoService return drawInfoMapper.selectDrawInfoList(drawInfo); } + @Override + public List findDrawInfoList() { + return drawInfoMapper.findDrawInfoList(); + } + /** * 新增抽奖活动管理对象 * diff --git a/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawPrizeInfoServiceImpl.java b/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawPrizeInfoServiceImpl.java index 70831ff96..d30523a76 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawPrizeInfoServiceImpl.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawPrizeInfoServiceImpl.java @@ -15,7 +15,7 @@ import com.ruoyi.common.core.text.Convert; * @author dy * @date 2021-03-25 */ -@Service +@Service("drawPrize") public class DrawPrizeInfoServiceImpl implements IDrawPrizeInfoService { @Autowired @@ -45,6 +45,11 @@ public class DrawPrizeInfoServiceImpl implements IDrawPrizeInfoService return drawPrizeInfoMapper.selectDrawPrizeInfoList(drawPrizeInfo); } + @Override + public List findDrawPrizeInfoList() { + return drawPrizeInfoMapper.findDrawPrizeInfoList(); + } + /** * 新增存储奖品的基础信息 * diff --git a/sino-activity/src/main/resources/mapper/activity/DrawInfoMapper.xml b/sino-activity/src/main/resources/mapper/activity/DrawInfoMapper.xml index d67c7da8f..126ce3df1 100644 --- a/sino-activity/src/main/resources/mapper/activity/DrawInfoMapper.xml +++ b/sino-activity/src/main/resources/mapper/activity/DrawInfoMapper.xml @@ -56,6 +56,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and VALIDATETYPE = #{VALIDATETYPE} + + + + - -
  • - - -
  • -
  • - - -
  • - - - - -
  • - - -
  • - - - - -
  • - - -
  • - - - - -
  • - - -
  • - - - - - - - - -
  • -  搜索 -  重置 -
  • - - - - +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • -
      - - - - - - - - - - - 导出 - -
      -
      -
      -
      +
    • + + +
    • + + + + + + + + + + + + + + + + + + + + + + + +
    • + + +
    • + + + + + + + + +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + +
    + + + + + + + + + + + 导出 + +
    +
    +
    - - + ] + }; + $.table.init(options); + }); + \ No newline at end of file diff --git a/sino-activity/src/main/resources/templates/activity/awardRecord/add.html b/sino-activity/src/main/resources/templates/activity/awardRecord/add.html index fd8b563db..7296a9083 100644 --- a/sino-activity/src/main/resources/templates/activity/awardRecord/add.html +++ b/sino-activity/src/main/resources/templates/activity/awardRecord/add.html @@ -14,7 +14,7 @@
    - +
    diff --git a/sino-activity/src/main/resources/templates/activity/awardRecord/edit.html b/sino-activity/src/main/resources/templates/activity/awardRecord/edit.html index f3e0dbd64..469875523 100644 --- a/sino-activity/src/main/resources/templates/activity/awardRecord/edit.html +++ b/sino-activity/src/main/resources/templates/activity/awardRecord/edit.html @@ -15,7 +15,7 @@
    - +
    diff --git a/sino-activity/src/main/resources/templates/activity/awardRecord/record.html b/sino-activity/src/main/resources/templates/activity/awardRecord/record.html index e4bdfd4d0..4c3bdbe5a 100644 --- a/sino-activity/src/main/resources/templates/activity/awardRecord/record.html +++ b/sino-activity/src/main/resources/templates/activity/awardRecord/record.html @@ -1,185 +1,212 @@ - + -
    -
    -
    -
    -
    -
      -
    • - - -
    • - - - - - - - - - - - - -
    • - - -
    • - - - - - - - - - - - - -
    • - - -
    • -
    • - - -
    • - - - - - - - - -
    • - - -
    • -
    • - - -
    • - - - - - - - - - - - - - - - - - - - - - - - - -
    • -  搜索 -  重置 -
    • -
    -
    -
    -
    +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • + + + + + + + + +
    • + + +
    • + + + + + + + + +
    • + + +
    • +
    • + + +
    • + + + + + + + + +
    • + + +
    • +
    • + + +
    • + + + + + + + + + + + + + + + + + + + + + + + + +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    -
    - - - - - - - - - - - 导出 - -
    -
    -
    -
    +
    + + + + + + + + + + + 导出 + +
    +
    +
    - - + ] + }; + $.table.init(options); + }); + \ No newline at end of file diff --git a/sino-activity/src/main/resources/templates/activity/consume/consume.html b/sino-activity/src/main/resources/templates/activity/consume/consume.html index 352c7241e..94f8ecffc 100644 --- a/sino-activity/src/main/resources/templates/activity/consume/consume.html +++ b/sino-activity/src/main/resources/templates/activity/consume/consume.html @@ -1,100 +1,111 @@ - + -
    -
    -
    -
    -
    -
      -
    • - - -
    • -
    • - - -
    • - - - - -
    • - - -
    • - - - - - - - - - - - - -
    • - - -
    • -
    • -  搜索 -  重置 -
    • -
    -
    -
    -
    +
    +
    +
    +
    +
    +
      +
    • + + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • + + + + + + + + + + + + +
    • + + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    -
    - - - - - - - - - - - 导出 - -
    -
    -
    -
    +
    + + + + + + + + + + + 导出 + +
    +
    +
    - - + ] + }; + $.table.init(options); + }); + \ No newline at end of file diff --git a/sino-activity/src/main/resources/templates/activity/prizeInfo/info.html b/sino-activity/src/main/resources/templates/activity/prizeInfo/info.html index 92ea7690b..30505eaa9 100644 --- a/sino-activity/src/main/resources/templates/activity/prizeInfo/info.html +++ b/sino-activity/src/main/resources/templates/activity/prizeInfo/info.html @@ -11,24 +11,24 @@
    • - +
    • +
    • + + +
    • -
    • -
    • - - -
    • @@ -39,7 +39,7 @@
    • - @@ -142,16 +142,17 @@ field: 'integralprojectcode', title: '积分项目编码' }, - { - title: '操作', - align: 'center', - formatter: function(value, row, index) { - var actions = []; - actions.push('编辑 '); - actions.push('删除'); - return actions.join(''); - } - }] + // { + // title: '操作', + // align: 'center', + // formatter: function(value, row, index) { + // var actions = []; + // actions.push('编辑 '); + // actions.push('删除'); + // return actions.join(''); + // } + // } + ] }; $.table.init(options); }); diff --git a/sino-activity/src/main/resources/templates/activity/record/add.html b/sino-activity/src/main/resources/templates/activity/record/add.html index 987ea0b78..9481bc051 100644 --- a/sino-activity/src/main/resources/templates/activity/record/add.html +++ b/sino-activity/src/main/resources/templates/activity/record/add.html @@ -41,7 +41,7 @@
    - +
    diff --git a/sino-activity/src/main/resources/templates/activity/record/edit.html b/sino-activity/src/main/resources/templates/activity/record/edit.html index 336407fac..181e090e6 100644 --- a/sino-activity/src/main/resources/templates/activity/record/edit.html +++ b/sino-activity/src/main/resources/templates/activity/record/edit.html @@ -42,7 +42,7 @@
    - +
    diff --git a/sino-activity/src/main/resources/templates/activity/record/record.html b/sino-activity/src/main/resources/templates/activity/record/record.html index 4d3f1adbb..dacb7d2d0 100644 --- a/sino-activity/src/main/resources/templates/activity/record/record.html +++ b/sino-activity/src/main/resources/templates/activity/record/record.html @@ -1,171 +1,215 @@ - + -
    -
    -
    -
    -
    -
      -
    • - - -
    • -
    • - - -
    • - - - - - - - - -
    • - - -
    • -
    • - - -
    • -
    • - - -
    • - - - - - - - - - - - - - - - - -
    • - - -
    • -
    • - - -
    • - - - - - - - - -
    • - - -
    • -
    • -  搜索 -  重置 -
    • -
    -
    -
    -
    +
    +
    +
    +
    +
    +
      + + + + +
    • + + +
    • +
    • + + +
    • + + + + +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    • + + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    -
    - - - - - - - - - - - 导出 - -
    -
    -
    -
    +
    + + + + + + + + + + + 导出 + +
    +
    +
    - - + ] + }; + $.table.init(options); + }); + \ No newline at end of file