Commit 8da2bbd4 by crushh

update: dist

parent ef3a44f7
.table-row:hover .deactive[data-v-01f8fe8e]{color:#606266;display:block;cursor:-webkit-grabbing;cursor:grabbing}
\ No newline at end of file
.table-row:hover .deactive[data-v-069ece18]{color:#606266;display:block;cursor:-webkit-grabbing;cursor:grabbing}
\ No newline at end of file
.section[data-v-454b9fa2]{margin:20px 0 40px 0}.flex-gap[data-v-454b9fa2],.flex[data-v-454b9fa2]{display:-webkit-box;display:-ms-flexbox;display:flex}.flex-gap[data-v-454b9fa2]{gap:20px}.multiBox[data-v-454b9fa2]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:1px solid #dcdfe6;padding:10px 20px}.multiBox-line[data-v-454b9fa2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.multi[data-v-454b9fa2]{padding:10px 20px 20px 20px;background:#f7f8fa}.flex-column[data-v-454b9fa2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.checkBoxContainer[data-v-454b9fa2]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:1116px}.checkBoxContainer .el-checkbox+.el-checkbox[data-v-454b9fa2]{margin-left:0}.checkBoxContainer[data-v-454b9fa2] .el-checkbox__label{width:140px;overflow:hidden;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.tips[data-v-454b9fa2]{font-size:12px;color:#909399;line-height:17px;cursor:default}.dm-form-bottom[data-v-454b9fa2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:fixed;right:0;bottom:0;z-index:100;height:56px;background:#fff;width:calc(100% - 200px);-webkit-box-shadow:1px -2px 8px 0 rgba(220,223,230,.6);box-shadow:1px -2px 8px 0 rgba(220,223,230,.6)}.temlpatePrizeImg[data-v-454b9fa2] .el-form-item__label{line-height:14px}.colorBtn[data-v-454b9fa2]{color:#2f54eb;border-color:#2f54eb}
\ No newline at end of file
.section[data-v-77b16af7]{margin:20px 0 40px 0}.flex-gap[data-v-77b16af7],.flex[data-v-77b16af7]{display:-webkit-box;display:-ms-flexbox;display:flex}.flex-gap[data-v-77b16af7]{gap:20px}.multiBox[data-v-77b16af7]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:1px solid #dcdfe6;padding:10px 20px}.multiBox-line[data-v-77b16af7]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.multi[data-v-77b16af7]{padding:10px 20px 20px 20px;background:#f7f8fa}.flex-column[data-v-77b16af7]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.checkBoxContainer[data-v-77b16af7]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:1116px}.checkBoxContainer .el-checkbox+.el-checkbox[data-v-77b16af7]{margin-left:0}.checkBoxContainer[data-v-77b16af7] .el-checkbox__label{width:140px;overflow:hidden;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.tips[data-v-77b16af7]{font-size:12px;color:#909399;line-height:17px;cursor:default}.dm-form-bottom[data-v-77b16af7]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:fixed;right:0;bottom:0;z-index:100;height:56px;background:#fff;width:calc(100% - 200px);-webkit-box-shadow:1px -2px 8px 0 rgba(220,223,230,.6);box-shadow:1px -2px 8px 0 rgba(220,223,230,.6)}.temlpatePrizeImg[data-v-77b16af7] .el-form-item__label{line-height:14px}.colorBtn[data-v-77b16af7]{color:#2f54eb;border-color:#2f54eb}
\ No newline at end of file
.templateList[data-v-beeb24be]{padding:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:20px;-webkit-box-sizing:border-box;box-sizing:border-box}.card[data-v-beeb24be]{width:285px;height:230px;background:#fff;border-radius:8px;border:1px solid #e4e7ed;padding:17px 21px}.card[data-v-beeb24be]:hover{-webkit-box-shadow:0 4px 12px 0 rgba(220,223,230,.6);box-shadow:0 4px 12px 0 rgba(220,223,230,.6);-webkit-transition:-webkit-transform .5s;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s;-webkit-transform:translateY(-5px);transform:translateY(-5px)}.card .template-head img[data-v-beeb24be]{width:32px;height:32px;margin-bottom:8px;border-radius:6px}.card .template-head .template-name[data-v-beeb24be]{font-size:16px;font-weight:500;color:#303133;line-height:22px}.card .template-content[data-v-beeb24be]{margin-top:16px}.card .template-content p[data-v-beeb24be]{font-size:14px;font-weight:400;color:#909399;line-height:20px;margin-bottom:4px}.card .template-content span[data-v-beeb24be]{font-size:20px;font-weight:500;color:#303133;line-height:28px}.card .template-content .line[data-v-beeb24be]{margin:0 4px}.card .progress[data-v-beeb24be]{margin:12px 0 16px 0}
\ No newline at end of file
.templateList[data-v-274e8b61]{padding:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:20px;-webkit-box-sizing:border-box;box-sizing:border-box}.card[data-v-274e8b61]{width:285px;height:230px;background:#fff;border-radius:8px;border:1px solid #e4e7ed;padding:17px 21px}.card[data-v-274e8b61]:hover{-webkit-box-shadow:0 4px 12px 0 rgba(220,223,230,.6);box-shadow:0 4px 12px 0 rgba(220,223,230,.6);-webkit-transition:-webkit-transform .5s;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s;-webkit-transform:translateY(-5px);transform:translateY(-5px)}.card .template-head img[data-v-274e8b61]{width:32px;height:32px;margin-bottom:8px;border-radius:6px}.card .template-head .template-name[data-v-274e8b61]{font-size:16px;font-weight:500;color:#303133;line-height:22px}.card .template-content[data-v-274e8b61]{margin-top:16px}.card .template-content p[data-v-274e8b61]{font-size:14px;font-weight:400;color:#909399;line-height:20px;margin-bottom:4px}.card .template-content span[data-v-274e8b61]{font-size:20px;font-weight:500;color:#303133;line-height:28px}.card .template-content .line[data-v-274e8b61]{margin:0 4px}.card .progress[data-v-274e8b61]{margin:12px 0 16px 0}
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/gic-marketing-operation/favicon2.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.68.css><link rel=stylesheet href=//at.alicdn.com/t/font_2995156_rf810o69kh.css><link rel=stylesheet href=//at.alicdn.com/t/font_2859043_3i96mi4mdy2.css><title>实施运维</title><link href=/gic-marketing-operation/css/chunk-0c547bbb.fd3c80c5.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-181c7f3a.8d7ba5d1.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-23d5a356.ee74c307.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-323b34bd.092677a6.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-358db6e9.2420d837.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-3c8e61f9.91919a21.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-4d05c9c2.a78c0148.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-579d39b4.a745441e.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-63502675.ca3245d5.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-696ad248.836e070a.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-74ea1fe8.62fd728d.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-7b1cf69a.3f8d4acd.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-b9842a10.97597fac.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-ca00aa7a.b66ce923.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-eaf899f2.4b1b9817.css rel=prefetch><link href=/gic-marketing-operation/js/chunk-0455f82a.dee55319.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-0647d46f.f2e90450.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-0c547bbb.8c5eca85.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-181c7f3a.801facb3.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-23d5a356.d43da598.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-2d212b99.fbe1ef17.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-323b34bd.886a3af2.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-358db6e9.595c93ef.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-395d477c.c96dba97.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-3c8e61f9.fbce20a2.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-4d05c9c2.841f5379.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-579d39b4.0f069738.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-63502675.98309312.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-696ad248.a5c37512.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-69e3e419.9d1394a5.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-74ea1fe8.8b6352c7.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-7b1cf69a.42010e2b.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-7ca26874.7ce9868f.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-b9842a10.255fc211.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-ca00aa7a.379def1a.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-eaf899f2.0604fed7.js rel=prefetch><link href=/gic-marketing-operation/css/app.5225fcf2.css rel=preload as=style><link href=/gic-marketing-operation/js/app.df35332a.js rel=preload as=script><link href=/gic-marketing-operation/js/chunk-vendors.20653c28.js rel=preload as=script><link href=/gic-marketing-operation/css/app.5225fcf2.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script>(function() {
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/gic-marketing-operation/favicon2.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.68.css><link rel=stylesheet href=//at.alicdn.com/t/font_2995156_rf810o69kh.css><link rel=stylesheet href=//at.alicdn.com/t/font_2859043_3i96mi4mdy2.css><title>实施运维</title><link href=/gic-marketing-operation/css/chunk-08b2c888.5cd1bdf7.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-181c7f3a.8d7ba5d1.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-23d5a356.ee74c307.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-27da2abc.e89adf5a.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-323b34bd.092677a6.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-358db6e9.2420d837.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-3c8e61f9.91919a21.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-579d39b4.a745441e.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-5d4f7ed4.d3906d9e.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-63502675.ca3245d5.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-696ad248.836e070a.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-74ea1fe8.62fd728d.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-7b1cf69a.3f8d4acd.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-b9842a10.97597fac.css rel=prefetch><link href=/gic-marketing-operation/css/chunk-eaf899f2.4b1b9817.css rel=prefetch><link href=/gic-marketing-operation/js/chunk-0455f82a.dee55319.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-0647d46f.f2e90450.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-08b2c888.ff531b86.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-181c7f3a.801facb3.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-23d5a356.d43da598.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-27da2abc.b5e7d274.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-2d212b99.fbe1ef17.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-323b34bd.886a3af2.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-358db6e9.595c93ef.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-395d477c.c96dba97.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-3c8e61f9.fbce20a2.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-579d39b4.0f069738.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-5d4f7ed4.9cb6d163.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-63502675.98309312.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-696ad248.a5c37512.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-69e3e419.9d1394a5.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-74ea1fe8.8b6352c7.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-7b1cf69a.42010e2b.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-7ca26874.7ce9868f.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-b9842a10.255fc211.js rel=prefetch><link href=/gic-marketing-operation/js/chunk-eaf899f2.0604fed7.js rel=prefetch><link href=/gic-marketing-operation/css/app.5225fcf2.css rel=preload as=style><link href=/gic-marketing-operation/js/app.cd733143.js rel=preload as=script><link href=/gic-marketing-operation/js/chunk-vendors.20653c28.js rel=preload as=script><link href=/gic-marketing-operation/css/app.5225fcf2.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script>(function() {
var src = '/component/static/import-component.js?timestrap=' + new Date().getTime();
var host = window.location.host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host;
document.write('<script src="//' + host + src + '"><\/script>');
})();</script><script src=//web-1251519181.file.myqcloud.com/components/user-info.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=/gic-marketing-operation/js/chunk-vendors.20653c28.js></script><script src=/gic-marketing-operation/js/app.df35332a.js></script></body></html>
\ No newline at end of file
})();</script><script src=//web-1251519181.file.myqcloud.com/components/user-info.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=/gic-marketing-operation/js/chunk-vendors.20653c28.js></script><script src=/gic-marketing-operation/js/app.cd733143.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08b2c888"],{"57b1":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"pt10 pb10 pl20 border-bottom"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[a("el-breadcrumb-item",{attrs:{to:{path:"/activity/template-config?tabId="+t.$route.query.tabId}}},[t._v("营销游戏配置")]),a("el-breadcrumb-item",[t._v("模板列表")])],1)],1),a("div",{staticStyle:{padding:"20px"}},[a("el-row",{attrs:{type:"flex",justify:"space-between"}},[a("el-row",{staticStyle:{"margin-right":"10px"},attrs:{type:"flex",align:"middle"}},[a("el-input",{staticStyle:{width:"260px","margin-right":"10px"},attrs:{placeholder:"请输入模板名称","prefix-icon":"el-icon-search",clearable:""},on:{change:t.getList},model:{value:t.searchParams.templateName,callback:function(e){t.$set(t.searchParams,"templateName",e)},expression:"searchParams.templateName"}}),a("el-select",{attrs:{clearable:"",placeholder:"模板状态"},on:{change:t.getList},model:{value:t.searchParams.statusFlag,callback:function(e){t.$set(t.searchParams,"statusFlag",e)},expression:"searchParams.statusFlag"}},t._l(t.statusList,(function(t){return a("el-option",{key:t.label,attrs:{label:t.label,value:t.val}})})),1)],1),a("el-row",{attrs:{type:"flex",align:"middle"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addTemplate()}}},[t._v("新增模板")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"sortTable",staticStyle:{"margin-top":"20px"},attrs:{"row-key":"sort","row-class-name":"table-row",data:t.list}},[a("el-table-column",{attrs:{width:"40","label-class-name":"tag-head"}},[[a("el-tooltip",{attrs:{placement:"top",content:"拖动排序",trigger:"hover",effect:"dark","popper-class":"drag-tooltip"}},[a("i",{staticClass:"iconfont-components3 icon-cp-tuozhuaipaixu deactive"})])]],2),a("el-table-column",{attrs:{label:"模板名称","min-width":"290px",prop:"templateName"}}),a("el-table-column",{attrs:{label:"展示数量","min-width":"310px",prop:"viewPrize"}}),a("el-table-column",{attrs:{label:"模板状态","min-width":"306px",prop:"statusFlag"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(e){return t.handleSwitch(l.statusFlag,l.templateId)}},model:{value:l.statusFlag,callback:function(e){t.$set(l,"statusFlag",e)},expression:"row.statusFlag"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"155px"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[a("el-row",{attrs:{type:"flex"}},[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.edit(l)}}},[t._v("编辑")])],1)]}}])})],1)],1)])},n=[],i=a("aa47"),s=a("c356"),r={data:function(){return{searchParams:{templateName:"",statusFlag:"",templateType:this.$route.query.type},loading:!1,list:[],statusList:[{label:"关闭",val:0},{label:"开启",val:1}]}},mounted:function(){this.drag(),this.getList()},methods:{getList:function(){var t=this;this.loading=!0,s["a"].getGameTemplatList(this.searchParams).then((function(e){var a=e.result;t.list=a})).finally((function(e){t.loading=!1}))},addTemplate:function(){this.$router.push("/activity/template-detail/".concat(this.$route.query.type,"?tabId=").concat(this.$route.query.tabId))},edit:function(t){this.$router.push({path:"/activity/template-detail/".concat(this.$route.query.type,"?tabId=").concat(this.$route.query.tabId),query:{id:t.templateId}})},handleSwitch:function(t,e){var a=this;this.$confirm("".concat(0==t?"关闭后,商户在创建此类型游戏时将无法选用此游戏模板,确认关闭":"开启后,商户将可引用次模板,确认开启","?"),"".concat(0==t?"关闭":"开启","提示"),{distinguishCancelAndClose:!0,type:"warning",confirmButtonText:"".concat(0==t?"关闭":"开启"),cancelButtonText:"取消"}).then((function(){s["a"].updateTemplateStatus({statusFlag:t,templateId:e}).then((function(t){a.getList()})).catch((function(l){a.list.filter((function(t){return t.templateId==e}))[0].statusFlag=0==t?1:0}))}))},drag:function(){var t=this,e=this.$refs.sortTable.$el.querySelector(".el-table__body tbody"),a=i["default"].create(e,{onChoose:function(t){var e=t.originalEvent.target.classList.contains("icon-cp-tuozhuaipaixu");a.option("sort",e)},onEnd:function(e){var a=e.newIndex,l=e.oldIndex,n=t.list.splice(l,1)[0];t.list.splice(a,0,n);var i=t.list.map((function(t,e){return{sort:e,templateId:t.templateId}}));t.batchupdateTemplateSort(i)}})},batchupdateTemplateSort:function(t){var e=this;s["a"].batchupdateTemplateSort(t).then((function(t){e.getList()}))}}},o=r,c=(a("5e85"),a("2877")),u=Object(c["a"])(o,l,n,!1,null,"069ece18",null);e["default"]=u.exports},"5e85":function(t,e,a){"use strict";a("a761")},a761:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d05c9c2"],{"1b80":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"templateList"},t._l(t.list,(function(e){return s("div",{key:e.templateType,staticClass:"card"},[s("div",{staticClass:"template-head"},[s("img",{attrs:{src:"https://pic01-10001430.image.myqcloud.com/4fa9caf2-d494-407e-bbed-f0198cb14695"}}),s("div",{staticClass:"template-name"},[t._v(t._s(t.typeMap[e.templateType]))])]),s("div",{staticClass:"template-content"},[s("p",[t._v("已配置模板/总量")]),s("span",[t._v(t._s(e.configNum)),s("span",{staticClass:"line"},[t._v("/")]),t._v("20")])]),s("div",{staticClass:"progress"},[s("el-progress",{attrs:{percentage:e.configNum/20*100,"show-text":!1}})],1),s("div",{staticClass:"btn"},[e.configNum>0?s("el-button",{on:{click:function(s){return t.$router.push("/activity/template-list?type="+e.templateType)}}},[t._v("模板列表")]):s("el-button",{on:{click:function(s){return t.$router.push("/activity/template-detail/"+e.type)}}},[t._v("前往配置")])],1)])})),0)},i=[],n=s("c356"),c={data:function(){return{list:[],typeMap:{1:"幸运盲盒"}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;n["a"].getGameTemplateConfig().then((function(e){var s=e.result;t.list=s}))}}},l=c,p=(s("882b"),s("2877")),u=Object(p["a"])(l,a,i,!1,null,"beeb24be",null);e["default"]=u.exports},"882b":function(t,e,s){"use strict";s("a3fc")},a3fc:function(t,e,s){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d4f7ed4"],{"1b80":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"templateList"},t._l(t.list,(function(e){return a("div",{key:e.templateType,staticClass:"card"},[a("div",{staticClass:"template-head"},[a("img",{attrs:{src:"https://pic01-10001430.image.myqcloud.com/4fa9caf2-d494-407e-bbed-f0198cb14695"}}),a("div",{staticClass:"template-name"},[t._v(t._s(t.typeMap[e.templateType]))])]),a("div",{staticClass:"template-content"},[a("p",[t._v("已配置模板/总量")]),a("span",[t._v(t._s(e.configNum)),a("span",{staticClass:"line"},[t._v("/")]),t._v("20")])]),a("div",{staticClass:"progress"},[a("el-progress",{attrs:{percentage:e.configNum/20*100,"show-text":!1}})],1),a("div",{staticClass:"btn"},[e.configNum>0?a("el-button",{on:{click:function(a){return t.$router.push("/activity/template-list?type="+e.templateType+"&tabId="+t.$route.query.tabId)}}},[t._v("模板列表")]):a("el-button",{on:{click:function(a){return t.$router.push("/activity/template-detail/"+e.type+"&tabId="+t.$route.query.tabId)}}},[t._v("前往配置")])],1)])})),0)},i=[],n=a("c356"),c={data:function(){return{list:[],typeMap:{1:"幸运盲盒"}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;n["a"].getGameTemplateConfig().then((function(e){var a=e.result;t.list=a}))}}},l=c,u=(a("dd3a"),a("2877")),r=Object(u["a"])(l,s,i,!1,null,"274e8b61",null);e["default"]=r.exports},b5a2:function(t,e,a){},dd3a:function(t,e,a){"use strict";a("b5a2")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ca00aa7a"],{"57b1":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"pt10 pb10 pl20 border-bottom"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[a("el-breadcrumb-item",{attrs:{to:{path:"/activity/template-config"}}},[t._v("营销游戏配置")]),a("el-breadcrumb-item",[t._v("模板列表")])],1)],1),a("div",{staticStyle:{padding:"20px"}},[a("el-row",{attrs:{type:"flex",justify:"space-between"}},[a("el-row",{staticStyle:{"margin-right":"10px"},attrs:{type:"flex",align:"middle"}},[a("el-input",{staticStyle:{width:"260px","margin-right":"10px"},attrs:{placeholder:"请输入模板名称","prefix-icon":"el-icon-search",clearable:""},on:{change:t.getList},model:{value:t.searchParams.templateName,callback:function(e){t.$set(t.searchParams,"templateName",e)},expression:"searchParams.templateName"}}),a("el-select",{attrs:{clearable:"",placeholder:"模板状态"},on:{change:t.getList},model:{value:t.searchParams.statusFlag,callback:function(e){t.$set(t.searchParams,"statusFlag",e)},expression:"searchParams.statusFlag"}},t._l(t.statusList,(function(t){return a("el-option",{key:t.label,attrs:{label:t.label,value:t.val}})})),1)],1),a("el-row",{attrs:{type:"flex",align:"middle"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addTemplate()}}},[t._v("新增模板")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"sortTable",staticStyle:{"margin-top":"20px"},attrs:{"row-key":"sort","row-class-name":"table-row",data:t.list}},[a("el-table-column",{attrs:{width:"40","label-class-name":"tag-head"}},[[a("el-tooltip",{attrs:{placement:"top",content:"拖动排序",trigger:"hover",effect:"dark","popper-class":"drag-tooltip"}},[a("i",{staticClass:"iconfont-components3 icon-cp-tuozhuaipaixu deactive"})])]],2),a("el-table-column",{attrs:{label:"模板名称","min-width":"290px",prop:"templateName"}}),a("el-table-column",{attrs:{label:"展示数量","min-width":"310px",prop:"viewPrize"}}),a("el-table-column",{attrs:{label:"模板状态","min-width":"306px",prop:"statusFlag"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(e){return t.handleSwitch(l.statusFlag,l.templateId)}},model:{value:l.statusFlag,callback:function(e){t.$set(l,"statusFlag",e)},expression:"row.statusFlag"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"155px"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[a("el-row",{attrs:{type:"flex"}},[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.edit(l)}}},[t._v("编辑")])],1)]}}])})],1)],1)])},n=[],i=a("aa47"),s=a("c356"),r={data:function(){return{searchParams:{templateName:"",statusFlag:"",templateType:this.$route.query.type},loading:!1,list:[],statusList:[{label:"关闭",val:0},{label:"开启",val:1}]}},mounted:function(){this.drag(),this.getList()},methods:{getList:function(){var t=this;this.loading=!0,s["a"].getGameTemplatList(this.searchParams).then((function(e){var a=e.result;t.list=a})).finally((function(e){t.loading=!1}))},addTemplate:function(){this.$router.push("/activity/template-detail/".concat(this.$route.query.type))},edit:function(t){this.$router.push({path:"/activity/template-detail/".concat(this.$route.query.type),query:{id:t.templateId}})},handleSwitch:function(t,e){var a=this;this.$confirm("".concat(0==t?"关闭后,商户在创建此类型游戏时将无法选用此游戏模板,确认关闭":"开启后,商户将可引用次模板,确认开启","?"),"".concat(0==t?"关闭":"开启","提示"),{distinguishCancelAndClose:!0,type:"warning",confirmButtonText:"".concat(0==t?"关闭":"开启"),cancelButtonText:"取消"}).then((function(){s["a"].updateTemplateStatus({statusFlag:t,templateId:e}).then((function(t){a.getList()})).catch((function(l){a.list.filter((function(t){return t.templateId==e}))[0].statusFlag=0==t?1:0}))}))},drag:function(){var t=this,e=this.$refs.sortTable.$el.querySelector(".el-table__body tbody"),a=i["default"].create(e,{onChoose:function(t){var e=t.originalEvent.target.classList.contains("icon-cp-tuozhuaipaixu");a.option("sort",e)},onEnd:function(e){var a=e.newIndex,l=e.oldIndex,n=t.list.splice(l,1)[0];t.list.splice(a,0,n);var i=t.list.map((function(t,e){return{sort:e,templateId:t.templateId}}));t.batchupdateTemplateSort(i)}})},batchupdateTemplateSort:function(t){var e=this;s["a"].batchupdateTemplateSort(t).then((function(t){e.getList()}))}}},o=r,c=(a("db66"),a("2877")),u=Object(c["a"])(o,l,n,!1,null,"01f8fe8e",null);e["default"]=u.exports},"6f92":function(t,e,a){},db66:function(t,e,a){"use strict";a("6f92")}}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment