提交 f50acbb7 编写于 作者: 刘英杰's avatar 刘英杰

V20240219 奖金配置完成模版 复制到各项列表 版本

上级 8346d6e1
流水线 #24174 已通过 ,包含阶段
in 49 second
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>竞赛管理</title><link href=css/chunk-vendors.064c214c.css rel=stylesheet><link href=css/app.4d451aa6.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 竞赛管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.5f8df71a.js></script><script src=js/app.24768e83.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>竞赛管理</title><link href=css/chunk-vendors.064c214c.css rel=stylesheet><link href=css/app.9f69cce4.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 竞赛管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.64179f05.js></script><script src=js/app.00ce8b11.js></script></body></html>
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01d0593f"],{"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,c){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=c(i,e,this);if(t.done)return t.value;var r=n(e),s=String(this),d=r.lastIndex;a(d,0)||(r.lastIndex=0);var l=o(r,s);return a(r.lastIndex,d)||(r.lastIndex=d),null===l?-1:l.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},cc45:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,switchChange:e.switchChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("96cf"),i("1da1")),c=(i("ac6a"),i("386d"),i("ade3")),r=i("967e"),s=i.n(r),d=i("5ccc");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){Object(c["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var u={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:0,money:0,is_enabled:0,is_del:0,createby:"",createtime:""},cmdDetailsModalShow:!1,cmdDetailsFormItem:[{id:"bonusconfig_name",name:"配置",type:"input",disabled:!1,require:!1,optList:[]},{id:"hierarchy_name",name:"获奖等级名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitionlevel_name",name:"级别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitiontype_name",name:"类别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"way",name:"比赛方式",type:"input",disabled:!1,require:!1,optList:[]},{id:"money",name:"金额",type:"input",disabled:!1,require:!1,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!1,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"配置",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"是否启用",minWidth:120,align:"center",show:!0},{slot:"action",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10},defaultFormData:{id:"",place_code:"",place_name:"",place_type_id:"",place_address:"",building:"",floor:"",room:"",acreage:"",capacity:1,threshold:0,sex:"",description:"",is_enable:1,is_del:"",createby:"",createtime:"",modifyby:"",modify_time:"",file_list:[]}}},computed:{publicState:function(){return d["a"]}},watch:{},methods:{add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",this.defaultFormData,"新增场地")},search:function(e){this.init.search=h(h({},this.init.search),e),this.onPageChange(1)},reset:function(){var e=this;this.init.searchCondList.forEach((function(t){"way"===t.id?e.init.search.way=2:e.init.search[t.id]=""})),this.onPageChange(1)},switchChange:function(e){},rowDetails:function(e){},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",e,"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){},getData:function(){var e=this;this.hooks.getInitListRequest(Object(o["a"])(s.a.mark((function t(){var i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=u,m=i("2877"),f=Object(m["a"])(p,n,a,!1,null,"01a88093",null);t["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01d0593f"],{"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,s){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=s(i,e,this);if(t.done)return t.value;var r=n(e),c=String(this),l=r.lastIndex;a(l,0)||(r.lastIndex=0);var d=o(r,c);return a(r.lastIndex,l)||(r.lastIndex=l),null===d?-1:d.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},cc45:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{switchChange:e.switchChange,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,formRule:e.init.modal.cmdDetailsFormRule,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onSubmit:e.onSubmit,onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("ac6a"),i("386d"),i("ade3")),s=(i("96cf"),i("1da1")),r=i("967e"),c=i.n(r),l=i("5ccc");function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){Object(o["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:"2",money:"0",is_enabled:1,is_del:0},cmdDetailsModalShow:!1,cmdDetailsFormRule:{hierarchy_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitionlevel_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitiontype_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],way:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}],money:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}]},cmdDetailsFormItem:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",disabled:!1,require:!0,optList:[{label:"个人",value:"1"},{label:"团队",value:"0"},{label:"不限",value:"2"}]},{id:"money",name:"金额",type:"input",disabled:!1,require:!0,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!0,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"奖金配置名称",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"启用",minWidth:120,align:"center",show:!0},{slot:"actionAndDetails",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10}}},computed:{publicState:function(){return l["a"]}},watch:{},methods:{onSubmit:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.init.modal.cmdDetailsModalLoading=!0,i.abrupt("return",t.asc.postApiCommonBonusConfigSave(e).then((function(e){return t.getData(),t.init.modal.cmdDetailsModalShow=!1,e})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1})));case 2:case"end":return i.stop()}}),i)}))))},BonusConfigSave:function(){var e=this;this.hooks.myEncapsulationFunction((function(){e.asc.postApiCommonBonusConfigSave()}))},add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",u(u({},this.init.modal.formData),{},{way:String(this.init.modal.formData.way),money:String(this.init.modal.formData.money)}),"新增奖金")},search:function(e){this.init.search=u(u({},this.init.search),e),this.onPageChange(1)},reset:function(){this.init.search={hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},this.onPageChange(1)},switchChange:function(e,t,i){var n=this;this.hooks.myEncapsulationFunction((function(){return n.asc.getApiCommonBonusConfigEnable({id:t.bonusconfigid,is_enable:e}).then((function(e){return 1===e.code&&n.getData(),e}))}))},rowDetails:function(e){var t=this;this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.asc.getApiCommonGetBonusConfigInfo({id:e.bonusconfigid}).then((function(e){e.response.itemName="奖金",t.$refs.addModal.modalDetailsInit(e.response,"itemName")})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1}))},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",u(u({},e),{},{way:String(e.way),money:String(e.money)}),"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.abrupt("return",t.asc.getApiCommonBonusConfigDel({id:e.bonusconfigid,is_del:1}).then((function(e){return t.getData(),e})));case 1:case"end":return i.stop()}}),i)}))))},getData:function(){var e=this;this.hooks.getInitListRequest(Object(s["a"])(c.a.mark((function t(){var i;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},h=m,p=i("2877"),f=Object(p["a"])(h,n,a,!1,null,"6f233171",null);t["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-169a9d5f"],{"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,r){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=r(i,e,this);if(t.done)return t.value;var c=n(e),s=String(this),d=c.lastIndex;a(d,0)||(c.lastIndex=0);var l=o(c,s);return a(c.lastIndex,d)||(c.lastIndex=d),null===l?-1:l.index}]}))},"67dd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,switchChange:e.switchChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("96cf"),i("1da1")),r=(i("ac6a"),i("386d"),i("ade3")),c=i("967e"),s=i.n(c),d=i("5ccc");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){Object(r["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var u={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:0,money:0,is_enabled:0,is_del:0,createby:"",createtime:""},cmdDetailsModalShow:!1,cmdDetailsFormItem:[{id:"bonusconfig_name",name:"配置",type:"input",disabled:!1,require:!1,optList:[]},{id:"hierarchy_name",name:"获奖等级名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitionlevel_name",name:"级别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitiontype_name",name:"类别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"way",name:"比赛方式",type:"input",disabled:!1,require:!1,optList:[]},{id:"money",name:"金额",type:"input",disabled:!1,require:!1,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!1,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"配置",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"是否启用",minWidth:120,align:"center",show:!0},{slot:"action",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10},defaultFormData:{id:"",place_code:"",place_name:"",place_type_id:"",place_address:"",building:"",floor:"",room:"",acreage:"",capacity:1,threshold:0,sex:"",description:"",is_enable:1,is_del:"",createby:"",createtime:"",modifyby:"",modify_time:"",file_list:[]}}},computed:{publicState:function(){return d["a"]}},watch:{},methods:{add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",this.defaultFormData,"新增场地")},search:function(e){this.init.search=h(h({},this.init.search),e),this.onPageChange(1)},reset:function(){var e=this;this.init.searchCondList.forEach((function(t){"way"===t.id?e.init.search.way=2:e.init.search[t.id]=""})),this.onPageChange(1)},switchChange:function(e){},rowDetails:function(e){},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",e,"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){},getData:function(){var e=this;this.hooks.getInitListRequest(Object(o["a"])(s.a.mark((function t(){var i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=u,m=i("2877"),f=Object(m["a"])(p,n,a,!1,null,"30843746",null);t["default"]=f.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-169a9d5f"],{"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,s){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=s(i,e,this);if(t.done)return t.value;var r=n(e),c=String(this),l=r.lastIndex;a(l,0)||(r.lastIndex=0);var d=o(r,c);return a(r.lastIndex,l)||(r.lastIndex=l),null===d?-1:d.index}]}))},"67dd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{switchChange:e.switchChange,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,formRule:e.init.modal.cmdDetailsFormRule,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onSubmit:e.onSubmit,onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("ac6a"),i("386d"),i("ade3")),s=(i("96cf"),i("1da1")),r=i("967e"),c=i.n(r),l=i("5ccc");function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){Object(o["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:"2",money:"0",is_enabled:1,is_del:0},cmdDetailsModalShow:!1,cmdDetailsFormRule:{hierarchy_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitionlevel_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitiontype_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],way:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}],money:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}]},cmdDetailsFormItem:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",disabled:!1,require:!0,optList:[{label:"个人",value:"1"},{label:"团队",value:"0"},{label:"不限",value:"2"}]},{id:"money",name:"金额",type:"input",disabled:!1,require:!0,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!0,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"奖金配置名称",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"启用",minWidth:120,align:"center",show:!0},{slot:"actionAndDetails",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10}}},computed:{publicState:function(){return l["a"]}},watch:{},methods:{onSubmit:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.init.modal.cmdDetailsModalLoading=!0,i.abrupt("return",t.asc.postApiCommonBonusConfigSave(e).then((function(e){return t.getData(),t.init.modal.cmdDetailsModalShow=!1,e})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1})));case 2:case"end":return i.stop()}}),i)}))))},BonusConfigSave:function(){var e=this;this.hooks.myEncapsulationFunction((function(){e.asc.postApiCommonBonusConfigSave()}))},add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",u(u({},this.init.modal.formData),{},{way:String(this.init.modal.formData.way),money:String(this.init.modal.formData.money)}),"新增奖金")},search:function(e){this.init.search=u(u({},this.init.search),e),this.onPageChange(1)},reset:function(){this.init.search={hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},this.onPageChange(1)},switchChange:function(e,t,i){var n=this;this.hooks.myEncapsulationFunction((function(){return n.asc.getApiCommonBonusConfigEnable({id:t.bonusconfigid,is_enable:e}).then((function(e){return 1===e.code&&n.getData(),e}))}))},rowDetails:function(e){var t=this;this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.asc.getApiCommonGetBonusConfigInfo({id:e.bonusconfigid}).then((function(e){e.response.itemName="奖金",t.$refs.addModal.modalDetailsInit(e.response,"itemName")})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1}))},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",u(u({},e),{},{way:String(e.way),money:String(e.money)}),"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.abrupt("return",t.asc.getApiCommonBonusConfigDel({id:e.bonusconfigid,is_del:1}).then((function(e){return t.getData(),e})));case 1:case"end":return i.stop()}}),i)}))))},getData:function(){var e=this;this.hooks.getInitListRequest(Object(s["a"])(c.a.mark((function t(){var i;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},h=m,p=i("2877"),f=Object(p["a"])(h,n,a,!1,null,"0522ee8a",null);t["default"]=f.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a67b9d1"],{"37f5":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{switchChange:e.switchChange,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,formRule:e.init.modal.cmdDetailsFormRule,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onSubmit:e.onSubmit,onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("ac6a"),i("386d"),i("ade3")),s=(i("96cf"),i("1da1")),r=i("967e"),c=i.n(r),l=i("5ccc");function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){Object(o["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:"2",money:"0",is_enabled:1,is_del:0},cmdDetailsModalShow:!1,cmdDetailsFormRule:{hierarchy_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitionlevel_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitiontype_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],way:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}],money:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}]},cmdDetailsFormItem:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",disabled:!1,require:!0,optList:[{label:"个人",value:"1"},{label:"团队",value:"0"},{label:"不限",value:"2"}]},{id:"money",name:"金额",type:"input",disabled:!1,require:!0,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!0,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"奖金配置名称",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"启用",minWidth:120,align:"center",show:!0},{slot:"actionAndDetails",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10}}},computed:{publicState:function(){return l["a"]}},watch:{},methods:{onSubmit:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.init.modal.cmdDetailsModalLoading=!0,i.abrupt("return",t.asc.postApiCommonBonusConfigSave(e).then((function(e){return t.getData(),t.init.modal.cmdDetailsModalShow=!1,e})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1})));case 2:case"end":return i.stop()}}),i)}))))},BonusConfigSave:function(){var e=this;this.hooks.myEncapsulationFunction((function(){e.asc.postApiCommonBonusConfigSave()}))},add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",u(u({},this.init.modal.formData),{},{way:String(this.init.modal.formData.way),money:String(this.init.modal.formData.money)}),"新增奖金")},search:function(e){this.init.search=u(u({},this.init.search),e),this.onPageChange(1)},reset:function(){this.init.search={hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},this.onPageChange(1)},switchChange:function(e,t,i){var n=this;this.hooks.myEncapsulationFunction((function(){return n.asc.getApiCommonBonusConfigEnable({id:t.bonusconfigid,is_enable:e}).then((function(e){return 1===e.code&&n.getData(),e}))}))},rowDetails:function(e){var t=this;this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.asc.getApiCommonGetBonusConfigInfo({id:e.bonusconfigid}).then((function(e){e.response.itemName="奖金",t.$refs.addModal.modalDetailsInit(e.response,"itemName")})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1}))},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",u(u({},e),{},{way:String(e.way),money:String(e.money)}),"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.abrupt("return",t.asc.getApiCommonBonusConfigDel({id:e.bonusconfigid,is_del:1}).then((function(e){return t.getData(),e})));case 1:case"end":return i.stop()}}),i)}))))},getData:function(){var e=this;this.hooks.getInitListRequest(Object(s["a"])(c.a.mark((function t(){var i;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},h=m,p=i("2877"),f=Object(p["a"])(h,n,a,!1,null,"4492b7de",null);t["default"]=f.exports},"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,s){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=s(i,e,this);if(t.done)return t.value;var r=n(e),c=String(this),l=r.lastIndex;a(l,0)||(r.lastIndex=0);var d=o(r,c);return a(r.lastIndex,l)||(r.lastIndex=l),null===d?-1:d.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a67b9d1"],{"37f5":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,switchChange:e.switchChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("96cf"),i("1da1")),r=(i("ac6a"),i("386d"),i("ade3")),c=i("967e"),s=i.n(c),d=i("5ccc");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){Object(r["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var u={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:0,money:0,is_enabled:0,is_del:0,createby:"",createtime:""},cmdDetailsModalShow:!1,cmdDetailsFormItem:[{id:"bonusconfig_name",name:"配置",type:"input",disabled:!1,require:!1,optList:[]},{id:"hierarchy_name",name:"获奖等级名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitionlevel_name",name:"级别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitiontype_name",name:"类别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"way",name:"比赛方式",type:"input",disabled:!1,require:!1,optList:[]},{id:"money",name:"金额",type:"input",disabled:!1,require:!1,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!1,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"配置",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"是否启用",minWidth:120,align:"center",show:!0},{slot:"action",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10},defaultFormData:{id:"",place_code:"",place_name:"",place_type_id:"",place_address:"",building:"",floor:"",room:"",acreage:"",capacity:1,threshold:0,sex:"",description:"",is_enable:1,is_del:"",createby:"",createtime:"",modifyby:"",modify_time:"",file_list:[]}}},computed:{publicState:function(){return d["a"]}},watch:{},methods:{add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",this.defaultFormData,"新增场地")},search:function(e){this.init.search=h(h({},this.init.search),e),this.onPageChange(1)},reset:function(){var e=this;this.init.searchCondList.forEach((function(t){"way"===t.id?e.init.search.way=2:e.init.search[t.id]=""})),this.onPageChange(1)},switchChange:function(e){},rowDetails:function(e){},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",e,"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){},getData:function(){var e=this;this.hooks.getInitListRequest(Object(o["a"])(s.a.mark((function t(){var i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=u,m=i("2877"),f=Object(m["a"])(p,n,a,!1,null,"0b694740",null);t["default"]=f.exports},"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,r){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=r(i,e,this);if(t.done)return t.value;var c=n(e),s=String(this),d=c.lastIndex;a(d,0)||(c.lastIndex=0);var l=o(c,s);return a(c.lastIndex,d)||(c.lastIndex=d),null===l?-1:l.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36a68690"],{"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,r){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=r(i,e,this);if(t.done)return t.value;var c=n(e),s=String(this),d=c.lastIndex;a(d,0)||(c.lastIndex=0);var l=o(c,s);return a(c.lastIndex,d)||(c.lastIndex=d),null===l?-1:l.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},a663:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,switchChange:e.switchChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("96cf"),i("1da1")),r=(i("ac6a"),i("386d"),i("ade3")),c=i("967e"),s=i.n(c),d=i("5ccc");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){Object(r["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var u={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:0,money:0,is_enabled:0,is_del:0,createby:"",createtime:""},cmdDetailsModalShow:!1,cmdDetailsFormItem:[{id:"bonusconfig_name",name:"配置",type:"input",disabled:!1,require:!1,optList:[]},{id:"hierarchy_name",name:"获奖等级名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitionlevel_name",name:"级别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitiontype_name",name:"类别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"way",name:"比赛方式",type:"input",disabled:!1,require:!1,optList:[]},{id:"money",name:"金额",type:"input",disabled:!1,require:!1,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!1,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"配置",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"是否启用",minWidth:120,align:"center",show:!0},{slot:"action",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10},defaultFormData:{id:"",place_code:"",place_name:"",place_type_id:"",place_address:"",building:"",floor:"",room:"",acreage:"",capacity:1,threshold:0,sex:"",description:"",is_enable:1,is_del:"",createby:"",createtime:"",modifyby:"",modify_time:"",file_list:[]}}},computed:{publicState:function(){return d["a"]}},watch:{},methods:{add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",this.defaultFormData,"新增场地")},search:function(e){this.init.search=h(h({},this.init.search),e),this.onPageChange(1)},reset:function(){var e=this;this.init.searchCondList.forEach((function(t){"way"===t.id?e.init.search.way=2:e.init.search[t.id]=""})),this.onPageChange(1)},switchChange:function(e){},rowDetails:function(e){},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",e,"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){},getData:function(){var e=this;this.hooks.getInitListRequest(Object(o["a"])(s.a.mark((function t(){var i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=u,m=i("2877"),f=Object(m["a"])(p,n,a,!1,null,"3f3e2bd1",null);t["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36a68690"],{"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,s){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=s(i,e,this);if(t.done)return t.value;var r=n(e),c=String(this),l=r.lastIndex;a(l,0)||(r.lastIndex=0);var d=o(r,c);return a(r.lastIndex,l)||(r.lastIndex=l),null===d?-1:d.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},a663:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{switchChange:e.switchChange,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,formRule:e.init.modal.cmdDetailsFormRule,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onSubmit:e.onSubmit,onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("ac6a"),i("386d"),i("ade3")),s=(i("96cf"),i("1da1")),r=i("967e"),c=i.n(r),l=i("5ccc");function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){Object(o["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:"2",money:"0",is_enabled:1,is_del:0},cmdDetailsModalShow:!1,cmdDetailsFormRule:{hierarchy_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitionlevel_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitiontype_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],way:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}],money:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}]},cmdDetailsFormItem:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",disabled:!1,require:!0,optList:[{label:"个人",value:"1"},{label:"团队",value:"0"},{label:"不限",value:"2"}]},{id:"money",name:"金额",type:"input",disabled:!1,require:!0,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!0,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"奖金配置名称",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"启用",minWidth:120,align:"center",show:!0},{slot:"actionAndDetails",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10}}},computed:{publicState:function(){return l["a"]}},watch:{},methods:{onSubmit:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.init.modal.cmdDetailsModalLoading=!0,i.abrupt("return",t.asc.postApiCommonBonusConfigSave(e).then((function(e){return t.getData(),t.init.modal.cmdDetailsModalShow=!1,e})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1})));case 2:case"end":return i.stop()}}),i)}))))},BonusConfigSave:function(){var e=this;this.hooks.myEncapsulationFunction((function(){e.asc.postApiCommonBonusConfigSave()}))},add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",u(u({},this.init.modal.formData),{},{way:String(this.init.modal.formData.way),money:String(this.init.modal.formData.money)}),"新增奖金")},search:function(e){this.init.search=u(u({},this.init.search),e),this.onPageChange(1)},reset:function(){this.init.search={hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},this.onPageChange(1)},switchChange:function(e,t,i){var n=this;this.hooks.myEncapsulationFunction((function(){return n.asc.getApiCommonBonusConfigEnable({id:t.bonusconfigid,is_enable:e}).then((function(e){return 1===e.code&&n.getData(),e}))}))},rowDetails:function(e){var t=this;this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.asc.getApiCommonGetBonusConfigInfo({id:e.bonusconfigid}).then((function(e){e.response.itemName="奖金",t.$refs.addModal.modalDetailsInit(e.response,"itemName")})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1}))},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",u(u({},e),{},{way:String(e.way),money:String(e.money)}),"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.abrupt("return",t.asc.getApiCommonBonusConfigDel({id:e.bonusconfigid,is_del:1}).then((function(e){return t.getData(),e})));case 1:case"end":return i.stop()}}),i)}))))},getData:function(){var e=this;this.hooks.getInitListRequest(Object(s["a"])(c.a.mark((function t(){var i;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},h=m,p=i("2877"),f=Object(p["a"])(h,n,a,!1,null,"52d006bb",null);t["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6ed514ae"],{"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,r){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=r(i,e,this);if(t.done)return t.value;var c=n(e),s=String(this),d=c.lastIndex;a(d,0)||(c.lastIndex=0);var l=o(c,s);return a(c.lastIndex,d)||(c.lastIndex=d),null===l?-1:l.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},d164:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,switchChange:e.switchChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("96cf"),i("1da1")),r=(i("ac6a"),i("386d"),i("ade3")),c=i("967e"),s=i.n(c),d=i("5ccc");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){Object(r["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var u={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:0,money:0,is_enabled:0,is_del:0,createby:"",createtime:""},cmdDetailsModalShow:!1,cmdDetailsFormItem:[{id:"bonusconfig_name",name:"配置",type:"input",disabled:!1,require:!1,optList:[]},{id:"hierarchy_name",name:"获奖等级名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitionlevel_name",name:"级别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitiontype_name",name:"类别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"way",name:"比赛方式",type:"input",disabled:!1,require:!1,optList:[]},{id:"money",name:"金额",type:"input",disabled:!1,require:!1,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!1,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"配置",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"是否启用",minWidth:120,align:"center",show:!0},{slot:"action",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10},defaultFormData:{id:"",place_code:"",place_name:"",place_type_id:"",place_address:"",building:"",floor:"",room:"",acreage:"",capacity:1,threshold:0,sex:"",description:"",is_enable:1,is_del:"",createby:"",createtime:"",modifyby:"",modify_time:"",file_list:[]}}},computed:{publicState:function(){return d["a"]}},watch:{},methods:{add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",this.defaultFormData,"新增场地")},search:function(e){this.init.search=h(h({},this.init.search),e),this.onPageChange(1)},reset:function(){var e=this;this.init.searchCondList.forEach((function(t){"way"===t.id?e.init.search.way=2:e.init.search[t.id]=""})),this.onPageChange(1)},switchChange:function(e){},rowDetails:function(e){},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",e,"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){},getData:function(){var e=this;this.hooks.getInitListRequest(Object(o["a"])(s.a.mark((function t(){var i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=u,m=i("2877"),f=Object(m["a"])(p,n,a,!1,null,"2009d679",null);t["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6ed514ae"],{"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,s){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=s(i,e,this);if(t.done)return t.value;var r=n(e),c=String(this),l=r.lastIndex;a(l,0)||(r.lastIndex=0);var d=o(r,c);return a(r.lastIndex,l)||(r.lastIndex=l),null===d?-1:d.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},d164:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{switchChange:e.switchChange,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,formRule:e.init.modal.cmdDetailsFormRule,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onSubmit:e.onSubmit,onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("ac6a"),i("386d"),i("ade3")),s=(i("96cf"),i("1da1")),r=i("967e"),c=i.n(r),l=i("5ccc");function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){Object(o["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:"2",money:"0",is_enabled:1,is_del:0},cmdDetailsModalShow:!1,cmdDetailsFormRule:{hierarchy_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitionlevel_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitiontype_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],way:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}],money:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}]},cmdDetailsFormItem:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",disabled:!1,require:!0,optList:[{label:"个人",value:"1"},{label:"团队",value:"0"},{label:"不限",value:"2"}]},{id:"money",name:"金额",type:"input",disabled:!1,require:!0,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!0,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"奖金配置名称",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"启用",minWidth:120,align:"center",show:!0},{slot:"actionAndDetails",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10}}},computed:{publicState:function(){return l["a"]}},watch:{},methods:{onSubmit:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.init.modal.cmdDetailsModalLoading=!0,i.abrupt("return",t.asc.postApiCommonBonusConfigSave(e).then((function(e){return t.getData(),t.init.modal.cmdDetailsModalShow=!1,e})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1})));case 2:case"end":return i.stop()}}),i)}))))},BonusConfigSave:function(){var e=this;this.hooks.myEncapsulationFunction((function(){e.asc.postApiCommonBonusConfigSave()}))},add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",u(u({},this.init.modal.formData),{},{way:String(this.init.modal.formData.way),money:String(this.init.modal.formData.money)}),"新增奖金")},search:function(e){this.init.search=u(u({},this.init.search),e),this.onPageChange(1)},reset:function(){this.init.search={hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},this.onPageChange(1)},switchChange:function(e,t,i){var n=this;this.hooks.myEncapsulationFunction((function(){return n.asc.getApiCommonBonusConfigEnable({id:t.bonusconfigid,is_enable:e}).then((function(e){return 1===e.code&&n.getData(),e}))}))},rowDetails:function(e){var t=this;this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.asc.getApiCommonGetBonusConfigInfo({id:e.bonusconfigid}).then((function(e){e.response.itemName="奖金",t.$refs.addModal.modalDetailsInit(e.response,"itemName")})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1}))},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",u(u({},e),{},{way:String(e.way),money:String(e.money)}),"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.abrupt("return",t.asc.getApiCommonBonusConfigDel({id:e.bonusconfigid,is_del:1}).then((function(e){return t.getData(),e})));case 1:case"end":return i.stop()}}),i)}))))},getData:function(){var e=this;this.hooks.getInitListRequest(Object(s["a"])(c.a.mark((function t(){var i;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},h=m,p=i("2877"),f=Object(p["a"])(h,n,a,!1,null,"6690f7d7",null);t["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c29f670"],{"0ba9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,switchChange:e.switchChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("96cf"),i("1da1")),c=(i("ac6a"),i("386d"),i("ade3")),r=i("967e"),s=i.n(r),d=i("5ccc");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){Object(c["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var u={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:0,money:0,is_enabled:0,is_del:0,createby:"",createtime:""},cmdDetailsModalShow:!1,cmdDetailsFormItem:[{id:"bonusconfig_name",name:"配置",type:"input",disabled:!1,require:!1,optList:[]},{id:"hierarchy_name",name:"获奖等级名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitionlevel_name",name:"级别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitiontype_name",name:"类别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"way",name:"比赛方式",type:"input",disabled:!1,require:!1,optList:[]},{id:"money",name:"金额",type:"input",disabled:!1,require:!1,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!1,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"配置",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"是否启用",minWidth:120,align:"center",show:!0},{slot:"action",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10},defaultFormData:{id:"",place_code:"",place_name:"",place_type_id:"",place_address:"",building:"",floor:"",room:"",acreage:"",capacity:1,threshold:0,sex:"",description:"",is_enable:1,is_del:"",createby:"",createtime:"",modifyby:"",modify_time:"",file_list:[]}}},computed:{publicState:function(){return d["a"]}},watch:{},methods:{add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",this.defaultFormData,"新增场地")},search:function(e){this.init.search=h(h({},this.init.search),e),this.onPageChange(1)},reset:function(){var e=this;this.init.searchCondList.forEach((function(t){"way"===t.id?e.init.search.way=2:e.init.search[t.id]=""})),this.onPageChange(1)},switchChange:function(e){},rowDetails:function(e){},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",e,"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){},getData:function(){var e=this;this.hooks.getInitListRequest(Object(o["a"])(s.a.mark((function t(){var i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=u,m=i("2877"),f=Object(m["a"])(p,n,a,!1,null,"054b13e9",null);t["default"]=f.exports},"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,c){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=c(i,e,this);if(t.done)return t.value;var r=n(e),s=String(this),d=r.lastIndex;a(d,0)||(r.lastIndex=0);var l=o(r,s);return a(r.lastIndex,d)||(r.lastIndex=d),null===l?-1:l.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c29f670"],{"0ba9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{switchChange:e.switchChange,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,formRule:e.init.modal.cmdDetailsFormRule,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onSubmit:e.onSubmit,onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("ac6a"),i("386d"),i("ade3")),s=(i("96cf"),i("1da1")),r=i("967e"),c=i.n(r),l=i("5ccc");function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){Object(o["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:"2",money:"0",is_enabled:1,is_del:0},cmdDetailsModalShow:!1,cmdDetailsFormRule:{hierarchy_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitionlevel_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitiontype_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],way:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}],money:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}]},cmdDetailsFormItem:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",disabled:!1,require:!0,optList:[{label:"个人",value:"1"},{label:"团队",value:"0"},{label:"不限",value:"2"}]},{id:"money",name:"金额",type:"input",disabled:!1,require:!0,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!0,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"奖金配置名称",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"启用",minWidth:120,align:"center",show:!0},{slot:"actionAndDetails",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10}}},computed:{publicState:function(){return l["a"]}},watch:{},methods:{onSubmit:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.init.modal.cmdDetailsModalLoading=!0,i.abrupt("return",t.asc.postApiCommonBonusConfigSave(e).then((function(e){return t.getData(),t.init.modal.cmdDetailsModalShow=!1,e})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1})));case 2:case"end":return i.stop()}}),i)}))))},BonusConfigSave:function(){var e=this;this.hooks.myEncapsulationFunction((function(){e.asc.postApiCommonBonusConfigSave()}))},add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",u(u({},this.init.modal.formData),{},{way:String(this.init.modal.formData.way),money:String(this.init.modal.formData.money)}),"新增奖金")},search:function(e){this.init.search=u(u({},this.init.search),e),this.onPageChange(1)},reset:function(){this.init.search={hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},this.onPageChange(1)},switchChange:function(e,t,i){var n=this;this.hooks.myEncapsulationFunction((function(){return n.asc.getApiCommonBonusConfigEnable({id:t.bonusconfigid,is_enable:e}).then((function(e){return 1===e.code&&n.getData(),e}))}))},rowDetails:function(e){var t=this;this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.asc.getApiCommonGetBonusConfigInfo({id:e.bonusconfigid}).then((function(e){e.response.itemName="奖金",t.$refs.addModal.modalDetailsInit(e.response,"itemName")})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1}))},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",u(u({},e),{},{way:String(e.way),money:String(e.money)}),"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.abrupt("return",t.asc.getApiCommonBonusConfigDel({id:e.bonusconfigid,is_del:1}).then((function(e){return t.getData(),e})));case 1:case"end":return i.stop()}}),i)}))))},getData:function(){var e=this;this.hooks.getInitListRequest(Object(s["a"])(c.a.mark((function t(){var i;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},h=m,p=i("2877"),f=Object(p["a"])(h,n,a,!1,null,"a99f3f9a",null);t["default"]=f.exports},"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,s){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=s(i,e,this);if(t.done)return t.value;var r=n(e),c=String(this),l=r.lastIndex;a(l,0)||(r.lastIndex=0);var d=o(r,c);return a(r.lastIndex,l)||(r.lastIndex=l),null===d?-1:d.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8260cf02"],{"1df4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{switchChange:e.switchChange,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,formRule:e.init.modal.cmdDetailsFormRule,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onSubmit:e.onSubmit,onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("ac6a"),i("386d"),i("ade3")),s=(i("96cf"),i("1da1")),r=i("967e"),c=i.n(r),l=i("5ccc");function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){Object(o["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:"2",money:"0",is_enabled:1,is_del:0},cmdDetailsModalShow:!1,cmdDetailsFormRule:{hierarchy_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitionlevel_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitiontype_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],way:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}],money:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}]},cmdDetailsFormItem:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",disabled:!1,require:!0,optList:[{label:"个人",value:"1"},{label:"团队",value:"0"},{label:"不限",value:"2"}]},{id:"money",name:"金额",type:"input",disabled:!1,require:!0,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!0,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"奖金配置名称",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"启用",minWidth:120,align:"center",show:!0},{slot:"actionAndDetails",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10}}},computed:{publicState:function(){return l["a"]}},watch:{},methods:{onSubmit:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.init.modal.cmdDetailsModalLoading=!0,i.abrupt("return",t.asc.postApiCommonBonusConfigSave(e).then((function(e){return t.getData(),t.init.modal.cmdDetailsModalShow=!1,e})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1})));case 2:case"end":return i.stop()}}),i)}))))},BonusConfigSave:function(){var e=this;this.hooks.myEncapsulationFunction((function(){e.asc.postApiCommonBonusConfigSave()}))},add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",u(u({},this.init.modal.formData),{},{way:String(this.init.modal.formData.way),money:String(this.init.modal.formData.money)}),"新增奖金")},search:function(e){this.init.search=u(u({},this.init.search),e),this.onPageChange(1)},reset:function(){this.init.search={hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},this.onPageChange(1)},switchChange:function(e,t,i){var n=this;this.hooks.myEncapsulationFunction((function(){return n.asc.getApiCommonBonusConfigEnable({id:t.bonusconfigid,is_enable:e}).then((function(e){return 1===e.code&&n.getData(),e}))}))},rowDetails:function(e){var t=this;this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.asc.getApiCommonGetBonusConfigInfo({id:e.bonusconfigid}).then((function(e){e.response.itemName="奖金",t.$refs.addModal.modalDetailsInit(e.response,"itemName")})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1}))},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",u(u({},e),{},{way:String(e.way),money:String(e.money)}),"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.abrupt("return",t.asc.getApiCommonBonusConfigDel({id:e.bonusconfigid,is_del:1}).then((function(e){return t.getData(),e})));case 1:case"end":return i.stop()}}),i)}))))},getData:function(){var e=this;this.hooks.getInitListRequest(Object(s["a"])(c.a.mark((function t(){var i;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},h=m,p=i("2877"),f=Object(p["a"])(h,n,a,!1,null,"7a208e15",null);t["default"]=f.exports},"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,s){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=s(i,e,this);if(t.done)return t.value;var r=n(e),c=String(this),l=r.lastIndex;a(l,0)||(r.lastIndex=0);var d=o(r,c);return a(r.lastIndex,l)||(r.lastIndex=l),null===d?-1:d.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8260cf02"],{"1df4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,switchChange:e.switchChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("96cf"),i("1da1")),c=(i("ac6a"),i("386d"),i("ade3")),r=i("967e"),s=i.n(r),d=i("5ccc");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){Object(c["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var u={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:0,money:0,is_enabled:0,is_del:0,createby:"",createtime:""},cmdDetailsModalShow:!1,cmdDetailsFormItem:[{id:"bonusconfig_name",name:"配置",type:"input",disabled:!1,require:!1,optList:[]},{id:"hierarchy_name",name:"获奖等级名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitionlevel_name",name:"级别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitiontype_name",name:"类别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"way",name:"比赛方式",type:"input",disabled:!1,require:!1,optList:[]},{id:"money",name:"金额",type:"input",disabled:!1,require:!1,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!1,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"配置",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"是否启用",minWidth:120,align:"center",show:!0},{slot:"action",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10},defaultFormData:{id:"",place_code:"",place_name:"",place_type_id:"",place_address:"",building:"",floor:"",room:"",acreage:"",capacity:1,threshold:0,sex:"",description:"",is_enable:1,is_del:"",createby:"",createtime:"",modifyby:"",modify_time:"",file_list:[]}}},computed:{publicState:function(){return d["a"]}},watch:{},methods:{add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",this.defaultFormData,"新增场地")},search:function(e){this.init.search=h(h({},this.init.search),e),this.onPageChange(1)},reset:function(){var e=this;this.init.searchCondList.forEach((function(t){"way"===t.id?e.init.search.way=2:e.init.search[t.id]=""})),this.onPageChange(1)},switchChange:function(e){},rowDetails:function(e){},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",e,"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){},getData:function(){var e=this;this.hooks.getInitListRequest(Object(o["a"])(s.a.mark((function t(){var i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=u,m=i("2877"),f=Object(m["a"])(p,n,a,!1,null,"ccd5eb92",null);t["default"]=f.exports},"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,c){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=c(i,e,this);if(t.done)return t.value;var r=n(e),s=String(this),d=r.lastIndex;a(d,0)||(r.lastIndex=0);var l=o(r,s);return a(r.lastIndex,d)||(r.lastIndex=d),null===l?-1:l.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c0871fb2"],{"0229":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{switchChange:e.switchChange,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,formRule:e.init.modal.cmdDetailsFormRule,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onSubmit:e.onSubmit,onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("ac6a"),i("386d"),i("ade3")),s=(i("96cf"),i("1da1")),r=i("967e"),c=i.n(r),l=i("5ccc");function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){Object(o["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:"2",money:"0",is_enabled:1,is_del:0},cmdDetailsModalShow:!1,cmdDetailsFormRule:{hierarchy_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitionlevel_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitiontype_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],way:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}],money:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}]},cmdDetailsFormItem:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",disabled:!1,require:!0,optList:[{label:"个人",value:"1"},{label:"团队",value:"0"},{label:"不限",value:"2"}]},{id:"money",name:"金额",type:"input",disabled:!1,require:!0,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!0,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"奖金配置名称",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"启用",minWidth:120,align:"center",show:!0},{slot:"actionAndDetails",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10}}},computed:{publicState:function(){return l["a"]}},watch:{},methods:{onSubmit:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.init.modal.cmdDetailsModalLoading=!0,i.abrupt("return",t.asc.postApiCommonBonusConfigSave(e).then((function(e){return t.getData(),t.init.modal.cmdDetailsModalShow=!1,e})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1})));case 2:case"end":return i.stop()}}),i)}))))},BonusConfigSave:function(){var e=this;this.hooks.myEncapsulationFunction((function(){e.asc.postApiCommonBonusConfigSave()}))},add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",u(u({},this.init.modal.formData),{},{way:String(this.init.modal.formData.way),money:String(this.init.modal.formData.money)}),"新增奖金")},search:function(e){this.init.search=u(u({},this.init.search),e),this.onPageChange(1)},reset:function(){this.init.search={hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},this.onPageChange(1)},switchChange:function(e,t,i){var n=this;this.hooks.myEncapsulationFunction((function(){return n.asc.getApiCommonBonusConfigEnable({id:t.bonusconfigid,is_enable:e}).then((function(e){return 1===e.code&&n.getData(),e}))}))},rowDetails:function(e){var t=this;this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.asc.getApiCommonGetBonusConfigInfo({id:e.bonusconfigid}).then((function(e){e.response.itemName="奖金",t.$refs.addModal.modalDetailsInit(e.response,"itemName")})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1}))},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",u(u({},e),{},{way:String(e.way),money:String(e.money)}),"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.abrupt("return",t.asc.getApiCommonBonusConfigDel({id:e.bonusconfigid,is_del:1}).then((function(e){return t.getData(),e})));case 1:case"end":return i.stop()}}),i)}))))},getData:function(){var e=this;this.hooks.getInitListRequest(Object(s["a"])(c.a.mark((function t(){var i;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},h=m,p=i("2877"),f=Object(p["a"])(h,n,a,!1,null,"8dabf6a4",null);t["default"]=f.exports},"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,s){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=s(i,e,this);if(t.done)return t.value;var r=n(e),c=String(this),l=r.lastIndex;a(l,0)||(r.lastIndex=0);var d=o(r,c);return a(r.lastIndex,l)||(r.lastIndex=l),null===d?-1:d.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c0871fb2"],{"0229":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,switchChange:e.switchChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("96cf"),i("1da1")),c=(i("ac6a"),i("386d"),i("ade3")),r=i("967e"),s=i.n(r),d=i("5ccc");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){Object(c["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var u={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:0,money:0,is_enabled:0,is_del:0,createby:"",createtime:""},cmdDetailsModalShow:!1,cmdDetailsFormItem:[{id:"bonusconfig_name",name:"配置",type:"input",disabled:!1,require:!1,optList:[]},{id:"hierarchy_name",name:"获奖等级名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitionlevel_name",name:"级别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitiontype_name",name:"类别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"way",name:"比赛方式",type:"input",disabled:!1,require:!1,optList:[]},{id:"money",name:"金额",type:"input",disabled:!1,require:!1,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!1,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"配置",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"是否启用",minWidth:120,align:"center",show:!0},{slot:"action",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10},defaultFormData:{id:"",place_code:"",place_name:"",place_type_id:"",place_address:"",building:"",floor:"",room:"",acreage:"",capacity:1,threshold:0,sex:"",description:"",is_enable:1,is_del:"",createby:"",createtime:"",modifyby:"",modify_time:"",file_list:[]}}},computed:{publicState:function(){return d["a"]}},watch:{},methods:{add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",this.defaultFormData,"新增场地")},search:function(e){this.init.search=h(h({},this.init.search),e),this.onPageChange(1)},reset:function(){var e=this;this.init.searchCondList.forEach((function(t){"way"===t.id?e.init.search.way=2:e.init.search[t.id]=""})),this.onPageChange(1)},switchChange:function(e){},rowDetails:function(e){},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",e,"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){},getData:function(){var e=this;this.hooks.getInitListRequest(Object(o["a"])(s.a.mark((function t(){var i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=u,m=i("2877"),f=Object(m["a"])(p,n,a,!1,null,"53441810",null);t["default"]=f.exports},"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,c){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=c(i,e,this);if(t.done)return t.value;var r=n(e),s=String(this),d=r.lastIndex;a(d,0)||(r.lastIndex=0);var l=o(r,s);return a(r.lastIndex,d)||(r.lastIndex=d),null===l?-1:l.index}]}))},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c5667af2"],{"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,c){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=c(i,e,this);if(t.done)return t.value;var r=n(e),s=String(this),d=r.lastIndex;a(d,0)||(r.lastIndex=0);var l=o(r,s);return a(r.lastIndex,d)||(r.lastIndex=d),null===l?-1:l.index}]}))},"404a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,switchChange:e.switchChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("96cf"),i("1da1")),c=(i("ac6a"),i("386d"),i("ade3")),r=i("967e"),s=i.n(r),d=i("5ccc");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){Object(c["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var u={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:0,money:0,is_enabled:0,is_del:0,createby:"",createtime:""},cmdDetailsModalShow:!1,cmdDetailsFormItem:[{id:"bonusconfig_name",name:"配置",type:"input",disabled:!1,require:!1,optList:[]},{id:"hierarchy_name",name:"获奖等级名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitionlevel_name",name:"级别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"competitiontype_name",name:"类别名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"way",name:"比赛方式",type:"input",disabled:!1,require:!1,optList:[]},{id:"money",name:"金额",type:"input",disabled:!1,require:!1,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!1,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"配置",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"是否启用",minWidth:120,align:"center",show:!0},{slot:"action",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10},defaultFormData:{id:"",place_code:"",place_name:"",place_type_id:"",place_address:"",building:"",floor:"",room:"",acreage:"",capacity:1,threshold:0,sex:"",description:"",is_enable:1,is_del:"",createby:"",createtime:"",modifyby:"",modify_time:"",file_list:[]}}},computed:{publicState:function(){return d["a"]}},watch:{},methods:{add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",this.defaultFormData,"新增场地")},search:function(e){this.init.search=h(h({},this.init.search),e),this.onPageChange(1)},reset:function(){var e=this;this.init.searchCondList.forEach((function(t){"way"===t.id?e.init.search.way=2:e.init.search[t.id]=""})),this.onPageChange(1)},switchChange:function(e){},rowDetails:function(e){},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",e,"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){},getData:function(){var e=this;this.hooks.getInitListRequest(Object(o["a"])(s.a.mark((function t(){var i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=u,m=i("2877"),f=Object(m["a"])(p,n,a,!1,null,"719b23de",null);t["default"]=f.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c5667af2"],{"386d":function(e,t,i){"use strict";var n=i("cb7c"),a=i("83a1"),o=i("5f1b");i("214f")("search",1,(function(e,t,i,s){return[function(i){var n=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=s(i,e,this);if(t.done)return t.value;var r=n(e),c=String(this),l=r.lastIndex;a(l,0)||(r.lastIndex=0);var d=o(r,c);return a(r.lastIndex,l)||(r.lastIndex=l),null===d?-1:d.index}]}))},"404a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("card",[i("cs-search-cond-form",{attrs:{searchCondList:e.init.searchCondList,labelWidth:120},on:{onSubmit:e.search,onReset:e.reset}}),i("div",{staticStyle:{display:"flex"}},[i("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.add}},[i("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1)],1),i("cs-c-table",{attrs:{tableColumns:e.init.tableColumns.filter((function(e){return e.show})),tableData:e.init.tableData,tableLoading:e.init.tableLoading,tableSize:e.init.tableSize,dataCount:e.init.dataCount,pageIndex:e.init.page_index,pageSize:e.init.page_size},on:{switchChange:e.switchChange,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,rowDetails:e.rowDetails,rowEdit:e.rowEdit,rowDelete:e.rowDelete},scopedSlots:e._u([{key:"way",fn:function(t){var n=t.row;return[i("Tag",{attrs:{color:e.publicState.tag[n.way]}},[e._v(e._s(["个人","团队","不限"][n.way]))])]}}])})],1),i("cs-c-edit-modal",{ref:"addModal",attrs:{formItem:e.init.modal.cmdDetailsFormItem,formRule:e.init.modal.cmdDetailsFormRule,loading:e.init.modal.cmdDetailsModalLoading,formLabelWidth:100,width:800},on:{onSubmit:e.onSubmit,onClose:function(t){e.init.modal.cmdDetailsModalShow=!1}},model:{value:e.init.modal.cmdDetailsModalShow,callback:function(t){e.$set(e.init.modal,"cmdDetailsModalShow",t)},expression:"init.modal.cmdDetailsModalShow"}})],1)},a=[],o=(i("8e6e"),i("456d"),i("7f7f"),i("ac6a"),i("386d"),i("ade3")),s=(i("96cf"),i("1da1")),r=i("967e"),c=i.n(r),l=i("5ccc");function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){Object(o["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m={components:{},data:function(){return{init:{modal:{formData:{bonusconfigid:"",bonusconfig_name:"",hierarchy_id:"",hierarchy_name:"",competitionlevel_id:"",competitionlevel_name:"",competitiontype_id:"",competitiontype_name:"",way:"2",money:"0",is_enabled:1,is_del:0},cmdDetailsModalShow:!1,cmdDetailsFormRule:{hierarchy_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitionlevel_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],competitiontype_id:[{type:"string",required:!0,message:"该项不能为空",trigger:"change"}],way:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}],money:[{type:"string",required:!0,message:"该项不能为空",trigger:"blur"}]},cmdDetailsFormItem:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",disabled:!1,require:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",disabled:!1,require:!0,optList:[{label:"个人",value:"1"},{label:"团队",value:"0"},{label:"不限",value:"2"}]},{id:"money",name:"金额",type:"input",disabled:!1,require:!0,optList:[]},{id:"is_enabled",name:"是否启用",type:"switch",disabled:!1,require:!0,optList:[]}],cmdDetailsModalLoading:!1},searchCondList:[{id:"hierarchy_id",name:"奖项等级名称",type:"select",show:!0,optList:[]},{id:"competitionlevel_id",name:"级别名称",type:"select",show:!0,optList:[]},{id:"competitiontype_id",name:"类型名称",type:"select",show:!0,optList:[]},{id:"way",name:"比赛方式",type:"select",show:!0,optList:[{label:"个人",value:0},{label:"团队",value:1},{label:"不限",value:2}]}],search:{hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",minWidth:120,align:"center",show:!0},{key:"bonusconfig_name",title:"奖金配置名称",minWidth:120,align:"center",show:!0},{key:"hierarchy_name",title:"获奖等级名称",minWidth:120,align:"center",show:!0},{key:"competitionlevel_name",title:"级别名称",minWidth:120,align:"center",show:!0},{key:"competitiontype_name",title:"类别名称",minWidth:120,align:"center",show:!0},{slot:"way",title:"比赛方式",minWidth:120,align:"center",show:!0},{key:"money",title:"金额",minWidth:120,align:"center",show:!0},{slot:"generalSwitch",title:"启用",minWidth:120,align:"center",show:!0},{slot:"actionAndDetails",title:"操作",minWidth:120,align:"center",fixed:"right",show:!0}],tableData:[],tableLoading:!1,tableSize:"default",dataCount:0,page_index:1,page_size:10}}},computed:{publicState:function(){return l["a"]}},watch:{},methods:{onSubmit:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.init.modal.cmdDetailsModalLoading=!0,i.abrupt("return",t.asc.postApiCommonBonusConfigSave(e).then((function(e){return t.getData(),t.init.modal.cmdDetailsModalShow=!1,e})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1})));case 2:case"end":return i.stop()}}),i)}))))},BonusConfigSave:function(){var e=this;this.hooks.myEncapsulationFunction((function(){e.asc.postApiCommonBonusConfigSave()}))},add:function(){this.init.modal.cmdDetailsModalShow=!0,this.$refs.addModal.modalInit("add",u(u({},this.init.modal.formData),{},{way:String(this.init.modal.formData.way),money:String(this.init.modal.formData.money)}),"新增奖金")},search:function(e){this.init.search=u(u({},this.init.search),e),this.onPageChange(1)},reset:function(){this.init.search={hierarchy_id:"",competitionlevel_id:"",competitiontype_id:"",way:2,page_index:1,page_size:10},this.onPageChange(1)},switchChange:function(e,t,i){var n=this;this.hooks.myEncapsulationFunction((function(){return n.asc.getApiCommonBonusConfigEnable({id:t.bonusconfigid,is_enable:e}).then((function(e){return 1===e.code&&n.getData(),e}))}))},rowDetails:function(e){var t=this;this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.asc.getApiCommonGetBonusConfigInfo({id:e.bonusconfigid}).then((function(e){e.response.itemName="奖金",t.$refs.addModal.modalDetailsInit(e.response,"itemName")})).finally((function(){t.init.modal.cmdDetailsModalLoading=!1}))},rowEdit:function(e){this.init.modal.cmdDetailsModalShow=!0,this.init.modal.cmdDetailsModalLoading=!0,this.$refs.addModal.modalInit("edit",u(u({},e),{},{way:String(e.way),money:String(e.money)}),"修改"),this.init.modal.cmdDetailsModalLoading=!1},rowDelete:function(e){var t=this;this.hooks.myEncapsulationFunction(Object(s["a"])(c.a.mark((function i(){return c.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.abrupt("return",t.asc.getApiCommonBonusConfigDel({id:e.bonusconfigid,is_del:1}).then((function(e){return t.getData(),e})));case 1:case"end":return i.stop()}}),i)}))))},getData:function(){var e=this;this.hooks.getInitListRequest(Object(s["a"])(c.a.mark((function t(){var i;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.init.tableLoading=!0,t.next=3,e.asc.postApiCommonGetBonusConfigList(e.init.search);case 3:return i=t.sent,e.init.tableData=i.response.data,e.init.dataCount=i.response.data_count,e.init.tableLoading=!1,t.abrupt("return",i);case 8:case"end":return t.stop()}}),t)}))))},onPageChange:function(e){this.init.search.page_index=e,this.getData()},onPageSizeChange:function(e){this.init.search.page_size=e,1===this.init.search.page_index&&this.onPageChange(1)},GetLevelBySelect:function(){var e=this;this.asc.getApiCommonGetLevelBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitionlevel_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetTypeBySelect:function(){var e=this;this.asc.getApiCommonGetTypeBySelect().then((function(t){e.init.searchCondList.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"competitiontype_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))},GetHierarchySelect:function(){var e=this;this.asc.getApiCommonGetHierarchySelect().then((function(t){e.init.searchCondList.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))})),e.init.modal.cmdDetailsFormItem.forEach((function(e){"hierarchy_id"===e.id&&(e.optList=t.response.map((function(e,t){return{value:e.id,label:e.name}})))}))}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.getData(),this.GetLevelBySelect(),this.GetTypeBySelect(),this.GetHierarchySelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},h=m,p=i("2877"),f=Object(p["a"])(h,n,a,!1,null,"6bdb516f",null);t["default"]=f.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}}}]);
\ No newline at end of file
/**
* /api/BonusDeclare/BonusDeclareAutoCreateFlow
*/
export declare function getApiBonusDeclareBonusDeclareAutoCreateFlow(params: GetApiBonusDeclareBonusDeclareAutoCreateFlowParams): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
interface GetApiBonusDeclareBonusDeclareAutoCreateFlowParams {
certificate_id?: string;
}
export {};
import request from "@/plugins/request";
/**
* /api/BonusDeclare/BonusDeclareAutoCreateFlow
*/
export function getApiBonusDeclareBonusDeclareAutoCreateFlow(params) {
const paramsInput = {
certificate_id: params.certificate_id,
};
return request.get(`/api/BonusDeclare/BonusDeclareAutoCreateFlow`, {
params: paramsInput,
});
}
/**
* 删除奖金申请
* /api/BonusDeclare/BonusDeclareDel
*/
export declare function getApiBonusDeclareBonusDeclareDel(params: GetApiBonusDeclareBonusDeclareDelParams): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
interface GetApiBonusDeclareBonusDeclareDelParams {
id?: string;
}
export {};
import request from "@/plugins/request";
/**
* 删除奖金申请
* /api/BonusDeclare/BonusDeclareDel
*/
export function getApiBonusDeclareBonusDeclareDel(params) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/BonusDeclare/BonusDeclareDel`, {
params: paramsInput,
});
}
/**
* 获取奖金申请详情
* /api/BonusDeclare/GetBonusDeclareInfo
*/
export declare function getApiBonusDeclareGetBonusDeclareInfo(params: GetApiBonusDeclareGetBonusDeclareInfoParams): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
bonusdeclareid: string;
competitionsign_id: string;
certificateid: string;
competitionreportid: string;
competitionname: string;
sponsor: string;
report_code: string;
competitionsubitem_name: string;
competition_level_id: string;
competition_level_name: string;
competition_type_id: string;
competition_type_name: string;
way: number;
approval_state: number;
approval_remark: string;
begin_time: string;
end_time: string;
createtime: string;
createby: string;
create_name: string;
certificate_file: string;
is_tea: number;
bonus_total: number;
competitionbatchid: string;
competitionbatch_name: string;
is_del: number;
files_list: {
id: string;
module: string;
file_name: string;
form_id: string;
path: string;
suffix: string;
size: string;
createby: string;
createtime: string;
}[];
};
}>;
interface GetApiBonusDeclareGetBonusDeclareInfoParams {
id: string;
}
export {};
import request from "@/plugins/request";
/**
* 获取奖金申请详情
* /api/BonusDeclare/GetBonusDeclareInfo
*/
export function getApiBonusDeclareGetBonusDeclareInfo(params) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/BonusDeclare/GetBonusDeclareInfo`, {
params: paramsInput,
});
}
import { type CompetitionRequests } from "../../interface";
/**
* 获取奖金申请列表
* /api/BonusDeclare/GetBonusDeclareList
*/
export declare function getApiBonusDeclareGetBonusDeclareList(input?: CompetitionRequests): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
bonusdeclareid: string;
competitionsign_id: string;
certificateid: string;
competitionreportid: string;
competitionname: string;
sponsor: string;
report_code: string;
competitionsubitem_name: string;
competition_level_id: string;
competition_level_name: string;
competition_type_id: string;
competition_type_name: string;
way: number;
approval_state: number;
approval_remark: string;
begin_time: string;
end_time: string;
createtime: string;
createby: string;
create_name: string;
certificate_file: string;
is_tea: number;
bonus_total: number;
competitionbatchid: string;
competitionbatch_name: string;
is_del: number;
}[];
query: {
[x: string]: any;
};
};
}>;
import request from "@/plugins/request";
/**
* 获取奖金申请列表
* /api/BonusDeclare/GetBonusDeclareList
*/
export function getApiBonusDeclareGetBonusDeclareList(input) {
return request.get(`/api/BonusDeclare/GetBonusDeclareList`, input);
}
export * from "./getApiBonusDeclareGetBonusDeclareList";
export * from "./getApiBonusDeclareGetBonusDeclareInfo";
export * from "./postApiBonusDeclareBonusDeclareSave";
export * from "./getApiBonusDeclareBonusDeclareDel";
export * from "./getApiBonusDeclareBonusDeclareAutoCreateFlow";
export * from "./getApiBonusDeclareGetBonusDeclareList";
export * from "./getApiBonusDeclareGetBonusDeclareInfo";
export * from "./postApiBonusDeclareBonusDeclareSave";
export * from "./getApiBonusDeclareBonusDeclareDel";
export * from "./getApiBonusDeclareBonusDeclareAutoCreateFlow";
import { type BonusDeclareViewModel } from "../../interface";
/**
* 保存奖金申请
* /api/BonusDeclare/BonusDeclareSave
*/
export declare function postApiBonusDeclareBonusDeclareSave(input?: BonusDeclareViewModel): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 保存奖金申请
* /api/BonusDeclare/BonusDeclareSave
*/
export function postApiBonusDeclareBonusDeclareSave(input) {
return request.post(`/api/BonusDeclare/BonusDeclareSave`, input);
}
...@@ -26,6 +26,10 @@ export declare function getApiCertificateApiCertificateGetCertificateInfo(params ...@@ -26,6 +26,10 @@ export declare function getApiCertificateApiCertificateGetCertificateInfo(params
competition_level_name: string; competition_level_name: string;
report_code: string; report_code: string;
team_info: string; team_info: string;
competition_method: number;
competitionbatch_id: string;
competitionbatch_name: string;
is_del: number;
files_list: { files_list: {
id: string; id: string;
module: string; module: string;
......
...@@ -47,6 +47,10 @@ export declare function postApiCertificateApiCertificateGetCertificateList(input ...@@ -47,6 +47,10 @@ export declare function postApiCertificateApiCertificateGetCertificateList(input
competition_level_name: string; competition_level_name: string;
report_code: string; report_code: string;
team_info: string; team_info: string;
competition_method: number;
competitionbatch_id: string;
competitionbatch_name: string;
is_del: number;
files_list: { files_list: {
id: string; id: string;
module: string; module: string;
......
...@@ -60,6 +60,8 @@ export declare function getApiCompetitionReportApiCompetitionGetCodeList(params: ...@@ -60,6 +60,8 @@ export declare function getApiCompetitionReportApiCompetitionGetCodeList(params:
competitionbatch_name: string; competitionbatch_name: string;
competition_type_name: string; competition_type_name: string;
competition_level_name: string; competition_level_name: string;
competition_method: number;
is_del: number;
}; };
}[]; }[];
query: { query: {
......
...@@ -61,6 +61,8 @@ export declare function postApiCompetitionReportApiCompetitionReportGetReportLis ...@@ -61,6 +61,8 @@ export declare function postApiCompetitionReportApiCompetitionReportGetReportLis
competitionbatch_name: string; competitionbatch_name: string;
competition_type_name: string; competition_type_name: string;
competition_level_name: string; competition_level_name: string;
competition_method: number;
is_del: number;
}; };
}[]; }[];
query: { query: {
......
...@@ -36,6 +36,10 @@ export declare function getApiCompetitionSignApiCompetitionSignGetSignInfo(param ...@@ -36,6 +36,10 @@ export declare function getApiCompetitionSignApiCompetitionSignGetSignInfo(param
competition_level_name: string; competition_level_name: string;
begin_time: string; begin_time: string;
money: number; money: number;
competition_method: number;
competitionbatch_id: string;
competitionbatch_name: string;
is_del: number;
files_list: { files_list: {
id: string; id: string;
module: string; module: string;
......
...@@ -58,6 +58,10 @@ export declare function postApiCompetitionSignApiCompetitionSignGetSignList(inpu ...@@ -58,6 +58,10 @@ export declare function postApiCompetitionSignApiCompetitionSignGetSignList(inpu
approval_remark: string; approval_remark: string;
competitionreportid: string; competitionreportid: string;
sign_name: string; sign_name: string;
competition_method: number;
competitionbatch_id: string;
competitionbatch_name: string;
is_del: number;
}; };
}[]; }[];
query: { query: {
......
...@@ -45,6 +45,8 @@ export declare function getApiFlowViewApiFlowFlowInit(params: GetApiFlowViewApiF ...@@ -45,6 +45,8 @@ export declare function getApiFlowViewApiFlowFlowInit(params: GetApiFlowViewApiF
competitionbatch_name: string; competitionbatch_name: string;
competition_type_name: string; competition_type_name: string;
competition_level_name: string; competition_level_name: string;
competition_method: number;
is_del: number;
}; };
competition_sign: { competition_sign: {
competitionsignid: string; competitionsignid: string;
...@@ -76,6 +78,10 @@ export declare function getApiFlowViewApiFlowFlowInit(params: GetApiFlowViewApiF ...@@ -76,6 +78,10 @@ export declare function getApiFlowViewApiFlowFlowInit(params: GetApiFlowViewApiF
approval_remark: string; approval_remark: string;
competitionreportid: string; competitionreportid: string;
sign_name: string; sign_name: string;
competition_method: number;
competitionbatch_id: string;
competitionbatch_name: string;
is_del: number;
}; };
certificate: { certificate: {
certificateid: string; certificateid: string;
...@@ -104,6 +110,10 @@ export declare function getApiFlowViewApiFlowFlowInit(params: GetApiFlowViewApiF ...@@ -104,6 +110,10 @@ export declare function getApiFlowViewApiFlowFlowInit(params: GetApiFlowViewApiF
report_code: string; report_code: string;
team_info: string; team_info: string;
createname: string; createname: string;
competition_method: number;
competitionbatch_id: string;
competitionbatch_name: string;
is_del: number;
}; };
bursary: { bursary: {
bursaryid: string; bursaryid: string;
......
...@@ -44,6 +44,8 @@ export declare function getApiFlowViewApiFlowViewGetFlowInfo(params: GetApiFlowV ...@@ -44,6 +44,8 @@ export declare function getApiFlowViewApiFlowViewGetFlowInfo(params: GetApiFlowV
competitionbatch_name: string; competitionbatch_name: string;
competition_type_name: string; competition_type_name: string;
competition_level_name: string; competition_level_name: string;
competition_method: number;
is_del: number;
}; };
competitionSign: { competitionSign: {
competitionsignid: string; competitionsignid: string;
...@@ -75,6 +77,10 @@ export declare function getApiFlowViewApiFlowViewGetFlowInfo(params: GetApiFlowV ...@@ -75,6 +77,10 @@ export declare function getApiFlowViewApiFlowViewGetFlowInfo(params: GetApiFlowV
approval_remark: string; approval_remark: string;
competitionreportid: string; competitionreportid: string;
sign_name: string; sign_name: string;
competition_method: number;
competitionbatch_id: string;
competitionbatch_name: string;
is_del: number;
}; };
certificate: { certificate: {
certificateid: string; certificateid: string;
...@@ -103,6 +109,10 @@ export declare function getApiFlowViewApiFlowViewGetFlowInfo(params: GetApiFlowV ...@@ -103,6 +109,10 @@ export declare function getApiFlowViewApiFlowViewGetFlowInfo(params: GetApiFlowV
report_code: string; report_code: string;
team_info: string; team_info: string;
createname: string; createname: string;
competition_method: number;
competitionbatch_id: string;
competitionbatch_name: string;
is_del: number;
}; };
bursary: { bursary: {
bursaryid: string; bursaryid: string;
......
export * from "./BonusDeclare";
export * from "./Bursary"; export * from "./Bursary";
export * from "./Certificate"; export * from "./Certificate";
export * from "./Common"; export * from "./Common";
......
export * from "./BonusDeclare";
export * from "./Bursary"; export * from "./Bursary";
export * from "./Certificate"; export * from "./Certificate";
export * from "./Common"; export * from "./Common";
......
export interface BonusDeclare {
bonusdeclareid?: string;
competitionsign_id?: string;
certificateid?: string;
competitionreportid?: string;
competitionname?: string;
sponsor?: string;
report_code?: string;
competitionsubitem_name?: string;
competition_level_id?: string;
competition_level_name?: string;
competition_type_id?: string;
competition_type_name?: string;
way?: number;
approval_state?: number;
approval_remark?: string;
begin_time?: string;
end_time?: string;
createtime?: string;
createby?: string;
create_name?: string;
certificate_file?: string;
is_tea?: number;
bonus_total?: number;
competitionbatchid?: string;
competitionbatch_name?: string;
is_del?: number;
}
import { type TableTitle, type BonusDeclare } from "../../interface";
export interface BonusDeclarePageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: BonusDeclare[];
query?: BonusDeclarePageModelQuery;
}
export interface BonusDeclarePageModelQuery {
[key: string]: any;
}
import { type BonusDeclarePageModel } from "../../interface";
export interface BonusDeclarePageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: BonusDeclarePageModel;
}
import { type CompetitionFile } from "../../interface";
export interface BonusDeclareViewModel {
bonusdeclareid?: string;
competitionsign_id?: string;
certificateid?: string;
competitionreportid?: string;
competitionname?: string;
sponsor?: string;
report_code?: string;
competitionsubitem_name?: string;
competition_level_id?: string;
competition_level_name?: string;
competition_type_id?: string;
competition_type_name?: string;
way?: number;
approval_state?: number;
approval_remark?: string;
begin_time?: string;
end_time?: string;
createtime?: string;
createby?: string;
create_name?: string;
certificate_file?: string;
is_tea?: number;
bonus_total?: number;
competitionbatchid?: string;
competitionbatch_name?: string;
is_del?: number;
files_list?: CompetitionFile[];
}
import { type BonusDeclareViewModel } from "../../interface";
export interface BonusDeclareViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: BonusDeclareViewModel;
}
...@@ -25,4 +25,8 @@ export interface Certificate { ...@@ -25,4 +25,8 @@ export interface Certificate {
report_code?: string; report_code?: string;
team_info?: string; team_info?: string;
createname?: string; createname?: string;
competition_method?: number;
competitionbatch_id?: string;
competitionbatch_name?: string;
is_del?: number;
} }
...@@ -18,5 +18,9 @@ export interface CertificateViewModel { ...@@ -18,5 +18,9 @@ export interface CertificateViewModel {
competition_level_name?: string; competition_level_name?: string;
report_code?: string; report_code?: string;
team_info?: string; team_info?: string;
competition_method?: number;
competitionbatch_id?: string;
competitionbatch_name?: string;
is_del?: number;
files_list?: CompetitionFile[]; files_list?: CompetitionFile[];
} }
...@@ -31,4 +31,6 @@ export interface CompetitionReport { ...@@ -31,4 +31,6 @@ export interface CompetitionReport {
competitionbatch_name?: string; competitionbatch_name?: string;
competition_type_name?: string; competition_type_name?: string;
competition_level_name?: string; competition_level_name?: string;
competition_method?: number;
is_del?: number;
} }
...@@ -3,8 +3,14 @@ export interface CompetitionRequests { ...@@ -3,8 +3,14 @@ export interface CompetitionRequests {
name?: string; name?: string;
/** 赛事级别 */ /** 赛事级别 */
level?: string; level?: string;
/** 赛事类别 */
type?: string;
/** 批次 */
batch?: string;
/** 组队方式 */ /** 组队方式 */
way?: string; way?: string;
/** 比赛方式 0-学生赛,1-教师赛 */
is_tea?: number;
/** 审批状态 */ /** 审批状态 */
approval_state?: string; approval_state?: string;
/** 奖项选项 */ /** 奖项选项 */
......
...@@ -28,4 +28,8 @@ export interface CompetitionSign { ...@@ -28,4 +28,8 @@ export interface CompetitionSign {
approval_remark?: string; approval_remark?: string;
competitionreportid?: string; competitionreportid?: string;
sign_name?: string; sign_name?: string;
competition_method?: number;
competitionbatch_id?: string;
competitionbatch_name?: string;
is_del?: number;
} }
...@@ -8,4 +8,5 @@ export interface CompetitionTeam { ...@@ -8,4 +8,5 @@ export interface CompetitionTeam {
competitionsign_id?: string; competitionsign_id?: string;
hierarchy_id?: string; hierarchy_id?: string;
hierarchy_name?: string; hierarchy_name?: string;
allot_money?: number;
} }
...@@ -125,6 +125,30 @@ export interface FlowCertificateRequests { ...@@ -125,6 +125,30 @@ export interface FlowCertificateRequests {
competitionsign_id?: string; competitionsign_id?: string;
competition_type_name?: string; competition_type_name?: string;
competition_level_name?: string; competition_level_name?: string;
/**
* Desc:比赛方式 0-学生赛,1-教师赛
* Default:
* Nullable:True
*/
competition_method?: number;
/**
* Desc:竞赛批次
* Default:
* Nullable:True
*/
competitionbatch_id?: string;
/**
* Desc:竞赛批次名称
* Default:
* Nullable:True
*/
competitionbatch_name?: string;
/**
* Desc:是否删除
* Default:
* Nullable:True
*/
is_del?: number;
/** 附件列表 */ /** 附件列表 */
files_list?: CompetitionFile[]; files_list?: CompetitionFile[];
} }
...@@ -186,6 +186,13 @@ export interface FlowReport { ...@@ -186,6 +186,13 @@ export interface FlowReport {
* Nullable:True * Nullable:True
*/ */
competition_level_name?: string; competition_level_name?: string;
/**
* Desc:比赛方式 0-学生赛,1-教师赛
* Default:
* Nullable:True
*/
competition_method?: number;
is_del?: number;
/** 附件列表 */ /** 附件列表 */
files_list?: CompetitionFile[]; files_list?: CompetitionFile[];
/** 赛项子项集合 */ /** 赛项子项集合 */
......
...@@ -157,6 +157,30 @@ export interface FlowSignRequests { ...@@ -157,6 +157,30 @@ export interface FlowSignRequests {
begin_time?: string; begin_time?: string;
/** 经费预算 */ /** 经费预算 */
money?: number; money?: number;
/**
* Desc:比赛方式 0-学生赛,1-教师赛
* Default:
* Nullable:True
*/
competition_method?: number;
/**
* Desc:竞赛批次
* Default:
* Nullable:True
*/
competitionbatch_id?: string;
/**
* Desc:竞赛批次名称
* Default:
* Nullable:True
*/
competitionbatch_name?: string;
/**
* Desc:是否删除
* Default:
* Nullable:True
*/
is_del?: number;
/** 附件列表 */ /** 附件列表 */
files_list?: CompetitionFile[]; files_list?: CompetitionFile[];
} }
...@@ -28,5 +28,9 @@ export interface SignInfoViewModel { ...@@ -28,5 +28,9 @@ export interface SignInfoViewModel {
competition_level_name?: string; competition_level_name?: string;
begin_time?: string; begin_time?: string;
money?: number; money?: number;
competition_method?: number;
competitionbatch_id?: string;
competitionbatch_name?: string;
is_del?: number;
files_list?: CompetitionFile[]; files_list?: CompetitionFile[];
} }
export * from "./apiTypes/BonusConfig"; export * from "./apiTypes/BonusConfig";
export * from "./apiTypes/BonusConfigMessageModel"; export * from "./apiTypes/BonusConfigMessageModel";
export * from "./apiTypes/BonusConfigMessageModelPageModel"; export * from "./apiTypes/BonusConfigMessageModelPageModel";
export * from "./apiTypes/BonusDeclare";
export * from "./apiTypes/BonusDeclarePageModel";
export * from "./apiTypes/BonusDeclarePageModelMessageModel";
export * from "./apiTypes/BonusDeclareViewModel";
export * from "./apiTypes/BonusDeclareViewModelMessageModel";
export * from "./apiTypes/Bursary"; export * from "./apiTypes/Bursary";
export * from "./apiTypes/BursaryMessageModel"; export * from "./apiTypes/BursaryMessageModel";
export * from "./apiTypes/BursaryMessageModelPageModel"; export * from "./apiTypes/BursaryMessageModelPageModel";
......
export * from "./apiTypes/BonusConfig"; export * from "./apiTypes/BonusConfig";
export * from "./apiTypes/BonusConfigMessageModel"; export * from "./apiTypes/BonusConfigMessageModel";
export * from "./apiTypes/BonusConfigMessageModelPageModel"; export * from "./apiTypes/BonusConfigMessageModelPageModel";
export * from "./apiTypes/BonusDeclare";
export * from "./apiTypes/BonusDeclarePageModel";
export * from "./apiTypes/BonusDeclarePageModelMessageModel";
export * from "./apiTypes/BonusDeclareViewModel";
export * from "./apiTypes/BonusDeclareViewModelMessageModel";
export * from "./apiTypes/Bursary"; export * from "./apiTypes/Bursary";
export * from "./apiTypes/BursaryMessageModel"; export * from "./apiTypes/BursaryMessageModel";
export * from "./apiTypes/BursaryMessageModelPageModel"; export * from "./apiTypes/BursaryMessageModelPageModel";
......
...@@ -48,11 +48,7 @@ ...@@ -48,11 +48,7 @@
:placeholder="'请选择'+item.name" :placeholder="'请选择'+item.name"
filterable filterable
:disabled="item.disabled"> :disabled="item.disabled">
<Option <Option v-for="it in item.optList" :key="it.value" :value="it.value">{{ it.label }}</Option>
v-for="it in item.optList"
:key="it.value"
:value="it.value">{{ it.label }}
</Option>
</Select> </Select>
<Select <Select
...@@ -246,8 +242,12 @@ export default { ...@@ -246,8 +242,12 @@ export default {
this.isDetails = false this.isDetails = false
this.uploadBtLoading = [] this.uploadBtLoading = []
if (addOrEdit == 'add') { if (addOrEdit == 'add') {
this.$refs.form.resetFields()
this.modalTitle = title ? title : '新增' this.modalTitle = title ? title : '新增'
console.log("r🚀🚀🚀,", row)
this.formData = row ? cloneDeep(row) : {} this.formData = row ? cloneDeep(row) : {}
console.log("🚀🚀🚀f,", this.formData)
} else if (addOrEdit == 'edit') { } else if (addOrEdit == 'edit') {
this.modalTitle = '编辑' this.modalTitle = '编辑'
...@@ -322,7 +322,6 @@ export default { ...@@ -322,7 +322,6 @@ export default {
let id = this.formItem[tri].id let id = this.formItem[tri].id
obj[id] = obj[id].join('-') obj[id] = obj[id].join('-')
} }
this.$emit('onSubmit', obj) this.$emit('onSubmit', obj)
} else { } else {
this.$Message.warning('请检查输入项') this.$Message.warning('请检查输入项')
......
...@@ -9,9 +9,8 @@ ...@@ -9,9 +9,8 @@
:size="tableSize" :size="tableSize"
> >
<template slot-scope="{ row, index }" slot="generalSwitch"> <template slot-scope="{ row, index }" slot="generalSwitch">
{{ row.is_enable }}
<Switch <Switch
v-model="row.is_enable" v-model="row.is_enabled"
size="large" size="large"
:true-value="1" :true-value="1"
:false-value="0" :false-value="0"
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或