12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5752744e"],{"129d":function(e,t,a){"use strict";a("a210")},3900:function(e,t,a){},9973:function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-pagination",{attrs:{background:"","page-size":e.page_size?e.page_size:20,"current-page":e.current,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"total,sizes,prev, pager, next",total:e.total},on:{"current-change":e.getData,"size-change":e.handleSizeChange}})},i=[],n={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(e){this.page=e,this.$emit("pageChange")},handleSizeChange:function(e){this.$emit("pageChange",e)}},created:function(){}},s=n,o=(a("129d"),a("5d22")),r=Object(o["a"])(s,l,i,!1,null,null,null);t["a"]=r.exports},"9be7":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"checker"},[e._m(0),a("div",{staticClass:"content"},[a("div",{staticClass:"filter"},[a("el-form",{attrs:{size:"small","label-width":"70px",inline:!0,"label-position":"left"}},[a("el-form-item",{attrs:{label:""}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择会议"},model:{value:e.form.conference_id,callback:function(t){e.$set(e.form,"conference_id",t)},expression:"form.conference_id"}},e._l(e.conference_list,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入姓名"},model:{value:e.form.user_name,callback:function(t){e.$set(e.form,"user_name",t)},expression:"form.user_name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getData}},[e._v("搜索")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{icon:"el-icon-plud",type:"primary"},on:{click:function(t){e.dialogVisible=!0}}},[e._v("添加核销员")]),a("el-button",{attrs:{plain:"",icon:"el-icon-download",type:"primary"}},[e._v("导出Excel")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.list,height:"59vh",border:"","default-expand-all":"","row-key":"id"}},[a("el-table-column",{attrs:{prop:"name",label:"核销员头像"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{attrs:{width:"100",src:e.row.user_avatar,alt:""}})]}}])}),a("el-table-column",{attrs:{prop:"user_name",label:"核销员昵称"}}),a("el-table-column",{attrs:{prop:"conference_name",label:"所属会议"}}),a("el-table-column",{attrs:{prop:"ctime",label:"加入时间"}}),a("el-table-column",{attrs:{prop:"",label:"核销详细"}}),a("el-table-column",{attrs:{prop:"zip",width:"100",fixed:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticClass:"edit",attrs:{type:"text"},on:{click:function(a){return e.del(t.row.id)}}},[e._v("解除核销员")])]}}])})],1),a("Page",{ref:"pageButton",attrs:{current:e.form.page,page_size:e.form.page_size,total:e.total},on:{pageChange:e.gopage}})],1),a("el-dialog",{attrs:{width:"70%",title:"添加核销员","close-on-click-modal":!1,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-table",{staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.conference_list,"default-expand-all":""}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.id},model:{value:e.check,callback:function(t){e.check=t},expression:"check"}},[e._v(" ")])]}}])}),a("el-table-column",{attrs:{prop:"name",label:"会议名称"}}),a("el-table-column",{attrs:{prop:"name",label:"会议头像"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{attrs:{width:"100",src:e.row.img,alt:""}})]}}])}),a("el-table-column",{attrs:{prop:"ctime",label:"创建时间"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.sure}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{width:"70%",title:"备选核销员列表","close-on-click-modal":!1,visible:e.dialogVisible1},on:{"update:visible":function(t){e.dialogVisible1=t}}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入姓名"},on:{change:e.getUser},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getUser},slot:"append"})],1),a("el-table",{staticClass:"table",staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.user_list,height:"400","default-expand-all":""}},[a("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:t.row.id},model:{value:e.check1,callback:function(t){e.check1=t},expression:"check1"}},[e._v(" ")])]}}])}),a("el-table-column",{attrs:{prop:"nickname",label:"用户昵称"}}),a("el-table-column",{attrs:{prop:"",label:"用户头像"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("img",{attrs:{width:"100",src:e.row.avatar,alt:""}})]}}])})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible1=!1}}},[e._v("返回")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.add}},[e._v("确认选择")])],1)],1)],1)},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("span",[e._v("会议管理>")]),e._v("核销员管理")])}],n=(a("a450"),a("9973")),s={components:{Page:n["a"]},data:function(){return{form:{},list:[{}],dialogVisible:!1,dialogVisible1:!1,conference_list:[],user_list:[],loading:!1,total:0,check:"",check1:"",name:""}},methods:{gopage:function(e){e&&(this.form.page_size=e),this.form.page=this.$refs.pageButton.page,this.getData()},add:function(){var e=this;this.$api.addVerifier({conference_id:this.check,user_id:this.check1}).then((function(t){0==t.data.code?(e.$message({message:"添加成功",type:"success"}),e.dialogVisible=!1,e.dialogVisible1=!1,e.getData()):e.$message({message:t.data.message,type:"error"})}))},del:function(e){var t=this;this.$confirm("确定解除","提示",{type:"warning"}).then((function(){t.$api.deleteVerifier({id:e}).then((function(e){0==e.data.code?(t.$message({message:"解除成功",type:"success"}),t.getData()):t.$message.error(e.data.message)}))}))},getData:function(){var e=this,t=this.form;this.loading=!0,this.$api.getVerifierList(t).then((function(t){e.list=t.data.data.list,e.total=t.data.data.total,e.loading=!1})),this.$api.getConferenceList().then((function(t){e.conference_list=t.data.data.list}))},getUser:function(){var e=this;this.$api.getUserinfoList({name:this.name}).then((function(t){e.user_list=t.data.data.list}))},sure:function(){this.check?this.dialogVisible1=!0:this.$message({message:"请选择会议",type:"error"})}},created:function(){this.getData(),this.getUser()}},o=s,r=(a("b6a7"),a("5d22")),c=Object(r["a"])(o,l,i,!1,null,null,null);t["default"]=c.exports},a210:function(e,t,a){},a450:function(e,t,a){var l=a("bb8b").f,i=Function.prototype,n=/^\s*function ([^ (]*)/,s="name";s in i||a("26df")&&l(i,s,{configurable:!0,get:function(){try{return(""+this).match(n)[1]}catch(e){return""}}})},b6a7:function(e,t,a){"use strict";a("3900")}}]);
- //# sourceMappingURL=chunk-5752744e.702c9fb6.js.map
|