1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-479e3c60"],{"19d7":function(t,e,n){"use strict";n("d724")},"46ae":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-card",{attrs:{bordered:!1}},[n("s-table",{ref:"table",staticClass:"tableBox",attrs:{rowKey:"id",loading:t.isLoading,columns:t.columns,data:t.loadData,pageSize:15,bordered:""},scopedSlots:t._u([{key:"admin_name",fn:function(e){return n("span",{},[n("p",[t._v(t._s(e||"--"))])])}},{key:"type",fn:function(e){return n("span",{},[n("p",[t._v(t._s(1==e?"新增会员价商品":"修改会员折扣"))])])}},{key:"audit_status",fn:function(e){return n("span",{},[n("p",{class:[0==e?"audit_status_red":1==e?"audit_status_black":"c-p"]},[t._v(" "+t._s(0==e?"待审核":1==e?"审核通过":"已拒绝")+" ")])])}},{key:"action",fn:function(e,r){return n("div",{staticClass:"actions"},[0!=r.audit_status||1!==t.isSuper&&"activity-zg-audit"!=t.role?t._e():n("a",{on:{click:function(e){return t.handleLook(r)}}},[t._v("去审核")]),n("a",{on:{click:function(e){return t.handleLook(r)}}},[t._v("查看详情")])])}}])})],1)},i=[],s=n("5530"),a=(n("d3b7"),n("159b"),n("6af1")),o=n("2af9"),d=[{title:"提交人",width:"200px",dataIndex:"admin_name",scopedSlots:{customRender:"admin_name"}},{title:"提交时间",dataIndex:"create_time",width:"200px"},{title:"申请类型",dataIndex:"type",width:"200px",scopedSlots:{customRender:"type"}},{title:"审核状态",dataIndex:"audit_status",width:"200px",scopedSlots:{customRender:"audit_status"}},{title:"操作",width:"200px",scopedSlots:{customRender:"action"}}],u={components:{STable:o["c"]},data:function(){var t=this;return{isLoading:!1,queryParam:{},columns:d,isSuper:1,role:"",loadData:function(e){return a["d"](Object(s["a"])(Object(s["a"])({},e),t.queryParam)).then((function(t){return t.data.list}))}}},created:function(){var t=this;if(this.$store.getters.roles){this.isSuper=this.$store.getters.roles.isSuper;var e=this.$store.getters.roles.permissions;e.forEach((function(e){"/memberCenter/menberGoods/configList"==e.permissionId&&e.actionEntitySet&&e.actionEntitySet.length>0&&(t.role=e.actionEntitySet[0].action)}))}},methods:{handleSearch:function(t){var e=this;t.preventDefault(),this.searchForm.validateFields((function(t,n){t||(e.queryParam=Object(s["a"])(Object(s["a"])({},e.queryParam),n),e.handleRefresh(!0))}))},reloadList:function(){this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},handleRefresh:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(t),this.selectedRowKeys=[]},handleEdit:function(t){this.$router.push({path:"./edit",query:{id:t.id}})},handleLook:function(t){this.$router.push({path:"./details",query:{id:t.id}})}}},c=u,l=(n("19d7"),n("2877")),m=Object(l["a"])(c,r,i,!1,null,"05efbb4f",null);e["default"]=m.exports},"6af1":function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"i",(function(){return o})),n.d(e,"f",(function(){return d})),n.d(e,"a",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"j",(function(){return l})),n.d(e,"c",(function(){return m})),n.d(e,"h",(function(){return p})),n.d(e,"e",(function(){return f}));var r=n("b775"),i={applyList:"/members.Apply/list",list:"/members.MemberGoods/list",detail:"/members.Apply/detail",actionsList:"/members.MemberCards/actionsList",edit:"/members.MemberGoods/edit",remove:"/members.MemberGoods/remove",addGoodsList:"/members.Apply/addGoodsList",editGoodsList:"/members.Apply/editGoodsList",add:"/members.Apply/add",audit:"/members.Apply/audit"};function s(t){return Object(r["b"])({url:i.add,method:"post",data:t})}function a(t){return Object(r["b"])({url:i.applyList,method:"get",params:t})}function o(t){return Object(r["b"])({url:i.list,method:"get",params:t})}function d(t){return Object(r["b"])({url:i.detail,method:"get",params:t})}function u(t){return Object(r["b"])({url:i.actionsList,method:"get",params:t})}function c(t){return Object(r["b"])({url:i.edit,method:"post",data:t})}function l(t){return Object(r["b"])({url:i.remove,method:"post",data:t})}function m(t){return Object(r["b"])({url:i.addGoodsList,method:"get",params:t})}function p(t){return Object(r["b"])({url:i.editGoodsList,method:"get",params:t})}function f(t){return Object(r["b"])({url:i.audit,method:"post",data:t})}},d724:function(t,e,n){}}]);
|