You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
3.5 KiB
1 lines
3.5 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1584e602"],{"1bde":function(t,e,n){},f77a:function(t,e,n){"use strict";n.r(e),n("b0c0");var a=n("b7be"),i={name:"",data:function(){return{signFrom:{type:0,page:1,limit:20},tabList:[{type:"0",name:"连续签到奖励"},{type:"1",name:"累积签到奖励"}],total:0,tableData:[],loading:!1}},created:function(){this.getList()},mounted:function(){},methods:{onClickTab:function(){this.signFrom.page=1,this.getList()},getList:function(){var t=this;this.loading=!0,Object(a.ob)(this.signFrom).then((function(e){t.tableData=e.data.list,t.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.msg),t.loading=!1}))},pageChange:function(t){this.signFrom.page=t,this.getList()},add:function(){var t=this;this.$modalForm(Object(a.a)({type:this.signFrom.type})).then((function(e){t.getList()}))},edit:function(t){var e=this;this.$modalForm(Object(a.u)(t.id)).then((function(t){e.getList()}))},del:function(t){var e=this;t={title:(0==t.type?"删除连续签到":"删除累计签到").concat(t.days,"天奖励"),url:"/marketing/sign/del_rewards/".concat(t.id),method:"DELETE"};this.$modalSure(t).then((function(t){e.$message.success(t.msg),e.getList()})).catch((function(t){e.$message.error(t.msg)}))}}};n("f97b"),n=n("2877"),n=Object(n.a)(i,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{attrs:{bordered:!1,shadow:"never","body-style":{padding:"0 20px 20px"}}},[e("el-tabs",{on:{"tab-click":t.onClickTab},model:{value:t.signFrom.type,callback:function(e){t.$set(t.signFrom,"type",e)},expression:"signFrom.type"}},t._l(t.tabList,(function(t,n){return e("el-tab-pane",{key:n,attrs:{label:t.name,name:t.type}})})),1),e("el-button",{attrs:{type:"primary"},on:{click:t.add}},[t._v(t._s(0==t.signFrom.type?"添加连续签到奖励":"添加累积签到奖励"))]),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.tableData,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s((0==n.row.type?"连续签到":"累积签到").concat(n.row.days,"天奖励")))])]}}])}),e("el-table-column",{attrs:{label:"天数","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.days)+" (天)")])]}}])}),e("el-table-column",{attrs:{label:"奖励积分","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.point)+" (积分)")])]}}])}),e("el-table-column",{attrs:{label:"奖励经验","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.exp)+" (经验)")])]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("a",{on:{click:function(e){return t.edit(n.row)}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.del(n.row)}}},[t._v("删除")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.signFrom.page,limit:t.signFrom.limit},on:{"update:page":function(e){return t.$set(t.signFrom,"page",e)},"update:limit":function(e){return t.$set(t.signFrom,"limit",e)},pagination:t.pageChange}}):t._e()],1)],1)],1)}),[],!1,null,"b4aaa872",null);e.default=n.exports},f97b:function(t,e,n){"use strict";n("1bde")}}]); |