17.407240e7e5a6e8782bca.js 10.1 KB
webpackJsonp([17],{ESGR:function(t,e,n){var a=n("Z60/");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("7f649a22",a,!1,{})},PLv6:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"dialog.vue",sourceRoot:""}])},"Z60/":function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,'\n.fl-r[data-v-81d63a18] {\n  float: right;\n}\n.main-block[data-v-81d63a18] {\n  margin: 5px;\n  background: white;\n  padding: 5px;\n}\nhtml[data-v-81d63a18] {\n  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-81d63a18]:after {\n  content: \'\';\n  display: block;\n  clear: both;\n}\n[data-v-81d63a18]::-webkit-scrollbar-track-piece {\n  border-radius: 10px;\n}\n[data-v-81d63a18]::-webkit-scrollbar {\n  width: 5px;\n  height: 5px;\n}\n[data-v-81d63a18]::-webkit-scrollbar-thumb {\n  background-color: #999;\n  border-radius: 10px;\n  height: 10px;\n  min-height: 10px;\n}\n.text-r[data-v-81d63a18] {\n  padding: 10px;\n  text-align: right;\n}\n.qrcode[data-v-81d63a18] {\n  padding: 10px;\n}\n.img[data-v-81d63a18] {\n  width: 50px;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/qrcode/index.vue"],names:[],mappings:";AACA;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,cAAc;EACd,kBAAkB;CACnB;AACD;EACE,cAAc;CACf;AACD;EACE,YAAY;CACb",file:"index.vue",sourcesContent:['\n.fl-r[data-v-81d63a18] {\n  float: right;\n}\n.main-block[data-v-81d63a18] {\n  margin: 5px;\n  background: white;\n  padding: 5px;\n}\nhtml[data-v-81d63a18] {\n  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-81d63a18]:after {\n  content: \'\';\n  display: block;\n  clear: both;\n}\n[data-v-81d63a18]::-webkit-scrollbar-track-piece {\n  border-radius: 10px;\n}\n[data-v-81d63a18]::-webkit-scrollbar {\n  width: 5px;\n  height: 5px;\n}\n[data-v-81d63a18]::-webkit-scrollbar-thumb {\n  background-color: #999;\n  border-radius: 10px;\n  height: 10px;\n  min-height: 10px;\n}\n.text-r[data-v-81d63a18] {\n  padding: 10px;\n  text-align: right;\n}\n.qrcode[data-v-81d63a18] {\n  padding: 10px;\n}\n.img[data-v-81d63a18] {\n  width: 50px;\n}\n'],sourceRoot:""}])},lNiQ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("CCn6"),l={props:["newObj"],data:function(){return{form:{title:null,type:2,invite_code:null,status:0,end_at:null},pickerOptions1:{disabledDate:function(t){var e=new Date,n=new Date(e.getFullYear(),e.getMonth()+1,e.getDate());return!(t.getTime()>e.getTime()&&t.getTime()<n.getTime())}},typeOption:[{label:"临时",value:2},{label:"永久",value:1}],statusOption:[{label:"正常",value:0},{label:"禁用",value:1}]}},methods:{onSave:function(){var t=this,e={title:this.form.title,type:this.form.type,invite_code:"CC-SOURCE-"+this.form.invite_code,status:this.form.status,end_at:this.form.end_at};Object(a.t)(e).then(function(e){t.$message("创建成功"),t.$emit("initPage"),t.form={title:null,type:2,invite_code:null,status:0,end_at:null},t.newObj.show=!1})}}},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"新建二维码",width:"600px",visible:t.newObj.show},on:{"update:visible":function(e){t.$set(t.newObj,"show",e)}}},[n("el-form",{attrs:{"label-width":"100px"}},[n("el-form-item",{attrs:{label:"名称"}},[n("el-input",{model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"推广码"}},[n("el-input",{model:{value:t.form.invite_code,callback:function(e){t.$set(t.form,"invite_code",e)},expression:"form.invite_code"}},[n("template",{slot:"prepend"},[t._v("CC-SOURCE-")])],2)],1),t._v(" "),n("el-form-item",{attrs:{label:"状态"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.statusOption,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),n("el-form-item",{attrs:{label:"二维码类型"}},[n("el-switch",{attrs:{"active-value":1,"inactive-value":2,"active-text":"永久","inactive-text":"临时"},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}}),t._v(" "),2===t.form.type?n("span",{staticStyle:{"font-size":"12px",color:"#888"}},[t._v("\n        (最多持续一个月)\n      ")]):t._e(),t._v(" "),1===t.form.type?n("span",{staticStyle:{"font-size":"12px",color:"#888"}},[t._v("\n        (永久二维码最多10万个)\n      ")]):t._e()],1),t._v(" "),2===t.form.type?n("el-form-item",{attrs:{label:"结束时间"}},[n("el-date-picker",{attrs:{type:"datetime","picker-options":t.pickerOptions1,format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期"},model:{value:t.form.end_at,callback:function(e){t.$set(t.form,"end_at",e)},expression:"form.end_at"}})],1):t._e()],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.newObj.show=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.onSave}},[t._v("确 定")])],1)],1)};o._withStripped=!0;var i={render:o,staticRenderFns:[]},r=i;var s=!1;var c=n("VU/8")(l,r,!1,function(t){s||n("ma/u")},"data-v-b1ddc6d4",null);c.options.__file="src\\components\\qrcode\\dialog.vue";var u=c.exports,d=n("+TkF"),p={name:"index",filters:{qrType:function(t){return d.n[t]},qrStatus:function(t){return d.m[t]},qrCodeType:function(t){return d.l[t]}},data:function(){return{newObj:{show:!1},list:[],limit:10,nowPage:1,typeOption:[{label:"请选择",value:""},{label:"永久",value:1},{label:"临时",value:2}],code_typeOption:[{label:"请选择",value:""},{label:"渠道",value:1},{label:"用户",value:2}],statusOption:[{label:"请选择",value:""},{label:"正常",value:0},{label:"禁用",value:1}],total:0,searchFrom:{title:"",type:"",code_type:"",status:""}}},components:{dialogDiv:u,page:n("kmJW").a},mounted:function(){this.initPage()},methods:{onPageChange:function(t){this.nowPage=t,this.initPage()},initPage:function(){var t=this,e={title:this.searchFrom.title,type:this.searchFrom.type,code_type:this.searchFrom.code_type,status:this.searchFrom.status,limit:this.limit,page:this.nowPage};Object(a._26)(e).then(function(e){t.list=e.list,t.total=e.total})}}},v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"qrcode"},[n("el-form",{attrs:{"label-width":"100px",inline:""}},[n("el-form-item",{attrs:{label:"标题"}},[n("el-input")],1),t._v(" "),n("el-form-item",{attrs:{label:"二维码类型"}},[n("el-select",{attrs:{placeholder:"请选择"},on:{change:function(e){t.nowPage=1,t.initPage()}},model:{value:t.searchFrom.type,callback:function(e){t.$set(t.searchFrom,"type",e)},expression:"searchFrom.type"}},t._l(t.typeOption,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),n("el-form-item",{attrs:{label:"渠道类型"}},[n("el-select",{attrs:{placeholder:"请选择"},on:{change:function(e){t.nowPage=1,t.initPage()}},model:{value:t.searchFrom.code_type,callback:function(e){t.$set(t.searchFrom,"code_type",e)},expression:"searchFrom.code_type"}},t._l(t.code_typeOption,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),n("el-form-item",{attrs:{label:"状态"}},[n("el-select",{attrs:{placeholder:"请选择"},on:{change:function(e){t.nowPage=1,t.initPage()}},model:{value:t.searchFrom.status,callback:function(e){t.$set(t.searchFrom,"status",e)},expression:"searchFrom.status"}},t._l(t.statusOption,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),n("el-form-item",{attrs:{label:""}},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:t.initPage}},[t._v("\n        搜索\n      ")])],1),t._v(" "),n("el-form-item",{attrs:{label:""}},[n("el-button",{attrs:{type:"success",plain:""},on:{click:function(e){t.newObj.show=!0}}},[t._v("\n        创建二维码\n      ")])],1)],1),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[n("el-table-column",{attrs:{prop:"title",label:"标题"}}),t._v(" "),n("el-table-column",{attrs:{prop:"title",label:"二维码类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n        "+t._s(t._f("qrType")(e.row.type))+"\n      ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"invite_code",label:"推广码"}}),t._v(" "),n("el-table-column",{attrs:{label:"渠道码类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n        "+t._s(t._f("qrCodeType")(e.row.code_type))+"\n      ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n        "+t._s(t._f("qrStatus")(e.row.status))+"\n      ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"二维码"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("a",{attrs:{target:"_blank",download:"二维码",href:t.row.open_url}},[n("img",{staticClass:"img",attrs:{src:t.row.open_url}})])]}}])})],1),t._v(" "),n("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}}),t._v(" "),n("dialog-div",{attrs:{newObj:t.newObj},on:{initPage:t.initPage}})],1)};v._withStripped=!0;var m={render:v,staticRenderFns:[]},f=m;var b=!1;var h=n("VU/8")(p,f,!1,function(t){b||n("ESGR")},"data-v-81d63a18",null);h.options.__file="src\\components\\qrcode\\index.vue";e.default=h.exports},"ma/u":function(t,e,n){var a=n("PLv6");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("53a742e5",a,!1,{})}});