chunk-312770ae.ad7a7211.js 25.7 KB
Newer Older
wanli's avatar
wanli committed
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-312770ae"],{"0f40":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n("2cfd"),n("c30f"),n("82a8"),n("2a39"),n("cfa8"),n("f39f");var r=n("954c");function a(t,e){if(t){if("string"===typeof t)return Object(r["a"])(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(t,e):void 0}}},"1cf2":function(t,e,n){"use strict";var r=n("fdc8"),a=n("4326"),o=n("9aaa"),i=n("730b"),c=n("2730"),u=n("5c14"),s=n("d4eb");t.exports=function(t){var e,n,l,p,d,f,m=a(t),b="function"==typeof this?this:Array,h=arguments.length,_=h>1?arguments[1]:void 0,v=void 0!==_,y=s(m),g=0;if(v&&(_=r(_,h>2?arguments[2]:void 0,2)),void 0==y||b==Array&&i(y))for(e=c(m.length),n=new b(e);e>g;g++)f=v?_(m[g],g):m[g],u(n,g,f);else for(p=y.call(m),d=p.next,n=new b;!(l=d.call(p)).done;g++)f=v?o(p,_,[l.value,g],!0):l.value,u(n,g,f);return n.length=g,n}},"2cfd":function(t,e,n){var r=n("4292"),a=n("1cf2"),o=n("8b5c"),i=!o((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:i},{from:a})},"365c":function(t,e,n){"use strict";n.d(e,"Q",(function(){return a})),n.d(e,"z",(function(){return o})),n.d(e,"l",(function(){return i})),n.d(e,"y",(function(){return c})),n.d(e,"O",(function(){return u})),n.d(e,"P",(function(){return s})),n.d(e,"eb",(function(){return l})),n.d(e,"fb",(function(){return p})),n.d(e,"c",(function(){return d})),n.d(e,"o",(function(){return f})),n.d(e,"D",(function(){return m})),n.d(e,"T",(function(){return b})),n.d(e,"E",(function(){return h})),n.d(e,"d",(function(){return _})),n.d(e,"U",(function(){return v})),n.d(e,"p",(function(){return y})),n.d(e,"J",(function(){return g})),n.d(e,"K",(function(){return x})),n.d(e,"bb",(function(){return j})),n.d(e,"u",(function(){return k})),n.d(e,"L",(function(){return O})),n.d(e,"j",(function(){return w})),n.d(e,"cb",(function(){return $})),n.d(e,"w",(function(){return S})),n.d(e,"I",(function(){return A})),n.d(e,"i",(function(){return D})),n.d(e,"Z",(function(){return C})),n.d(e,"t",(function(){return L})),n.d(e,"g",(function(){return z})),n.d(e,"A",(function(){return E})),n.d(e,"f",(function(){return q})),n.d(e,"W",(function(){return P})),n.d(e,"r",(function(){return T})),n.d(e,"G",(function(){return V})),n.d(e,"h",(function(){return W})),n.d(e,"s",(function(){return N})),n.d(e,"H",(function(){return R})),n.d(e,"a",(function(){return I})),n.d(e,"m",(function(){return F})),n.d(e,"B",(function(){return H})),n.d(e,"v",(function(){return U})),n.d(e,"R",(function(){return B})),n.d(e,"X",(function(){return J})),n.d(e,"Y",(function(){return M})),n.d(e,"ab",(function(){return G})),n.d(e,"C",(function(){return K})),n.d(e,"b",(function(){return Q})),n.d(e,"S",(function(){return X})),n.d(e,"n",(function(){return Y})),n.d(e,"M",(function(){return Z})),n.d(e,"N",(function(){return tt})),n.d(e,"k",(function(){return et})),n.d(e,"db",(function(){return nt})),n.d(e,"x",(function(){return rt})),n.d(e,"F",(function(){return at})),n.d(e,"e",(function(){return ot})),n.d(e,"V",(function(){return it})),n.d(e,"q",(function(){return ct}));var r=n("b775");function a(t){return Object(r["a"])({url:"/api/v1/kxpms/workbench/query",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/api/v1/kxpms/login/login",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/api/v1/kxpms/user/add",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/api/v1/kxpms/user/delete/".concat(t),method:"post"})}function u(t){return Object(r["a"])({url:"/api/v1/kxpms/user/get",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/api/v1/kxpms/user/list",method:"post",data:t})}function l(t,e){return Object(r["a"])({url:"/api/v1/kxpms/user/update/".concat(t),method:"post",data:e})}function p(t){return Object(r["a"])({url:"/api/v1/kxpms/updatePassword",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/api/v1/kxpms/depot/add",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/api/v1/kxpms/depot/delete/".concat(t),method:"post"})}function m(t){return Object(r["a"])({url:"/api/v1/kxpms/depot/list",method:"post",data:t})}function b(t,e){return Object(r["a"])({url:"/api/v1/kxpms/depot/update/".concat(t),method:"post",data:e})}function h(t){return Object(r["a"])({url:"/api/v1/kxpms/dict/list",method:"post",data:t})}function _(t){return Object(r["a"])({url:"/api/v1/kxpms/dict/add",method:"post",data:t})}function v(t,e){return Object(r["a"])({url:"/api/v1/kxpms/dict/update/".concat(t),method:"post",data:e})}function y(t){return Object(r["a"])({url:"/api/v1/kxpms/dict/delete/".concat(t),method:"post"})}function g(t){return Object(r["a"])({url:"/api/v1/kxpms/project/get",method:"post",data:t})}function x(t){return Object(r["a"])({url:"/api/v1/kxpms/project/list",method:"post",data:t})}function j(t,e){return Object(r["a"])({url:"/api/v1/kxpms/project/update/".concat(t),method:"post",data:e})}function k(t){return Object(r["a"])({url:"/api/v1/kxpms/project/delete/".concat(t),method:"post"})}function O(t){return Object(r["a"])({url:"/api/v1/kxpms/role/list",method:"post",data:t})}function w(t){return Object(r["a"])({url:"/api/v1/kxpms/role/add",method:"post",data:t})}function $(t,e){return Object(r["a"])({url:"/api/v1/kxpms/role/update/".concat(t),method:"post",data:e})}function S(t){return Object(r["a"])({url:"/api/v1/kxpms/role/delete/".concat(t),method:"delete"})}function A(t){return Object(r["a"])({url:"/api/v1/kxpms/permission/list",method:"post",data:t})}function D(t){return Object(r["a"])({url:"/api/v1/kxpms/permission/add",method:"post",data:t})}function C(t,e){return Object(r["a"])({url:"/api/v1/kxpms/permission/update/".concat(t),method:"post",data:e})}function L(t){return Object(r["a"])({url:"/api/v1/kxpms/permission/delete/".concat(t),method:"post"})}function z(t){return Object(r["a"])({url:"/api/v1/kxpms/system/addProject",method:"post",data:t})}function E(t){return Object(r["a"])({url:"/api/v1/kxpms/system/exportProject",method:"post",data:t})}function q(t){return Object(r["a"])({url:"/api/v1/kxpms/flow/add",method:"post",data:t})}function P(t,e){return Object(r["a"])({url:"/api/v1/kxpms/flow/update/".concat(t),method:"post",data:e})}function T(t){return Object(r["a"])({url:"/api/v1/kxpms/flow/delete/".concat(t),method:"delete"})}function V(t){return Object(r["a"])({url:"/api/v1/kxpms/system/getFlowList",method:"post",data:t})}function W(t){return Object(r["a"])({url:"/api/v1/kxpms/payback/add",method:"post",data:t})}function N(t){return Object(r["a"])({url:"/api/v1/kxpms/payback/delete/".concat(t),method:"post"})}function R(t){return Object(r["a"])({url:"/api/v1/kxpms/system/getPaybackList",method:"post",data:t})}function I(t){return Object(r["a"])({url:"/api/v1/kxpms/annex/add",method:"post",data:t})}function F(t){return Object(r["a"])({url:"/api/v1/kxpms/annex/delete/".concat(t),method:"post"})}function H(t){return Object(r["a"])({url:"/api/v1/kxpms/annex/list",method:"post",data:t})}function U(t){return Object(r["a"])({url:"/api/v1/kxpms/system/deleteProjectUser",method:"post",data:t})}function B(t){return Object(r["a"])({url:"/api/v1/kxpms/system/modifyProjectUser",method:"post",data:t})}function J(t){return Object(r["a"])({url:"/api/v1/kxpms/system/updateFlow",method:"post",data:t})}function M(t){return Object(r["a"])({url:"/api/v1/kxpms/system/updatePayback",method:"post",data:t})}function G(t){return Object(r["a"])({url:"/api/v1/kxpms/system/updateProductionPlan",method:"post",data:t})}function K(t){return Object(r["a"])({url:"/api/v1/kxpms/calendar/list",method:"post",data:t})}function Q(t){return Object(r["a"])({url:"/api/v1/kxpms/calendar/add",method:"post",data:t})}function X(t,e){return Object(r["a"])({url:"/api/v1/kxpms/calendar/update/".concat(t),method:"post",data:e})}function Y(t){return Object(r["a"])({url:"/api/v1/kxpms/calendar/delete/".concat(t),method:"post"})}function Z(t){return Object(r["a"])({url:"/api/v1/kxpms/system/getRoleUsers",method:"post",data:t})}function tt(t){return Object(r["a"])({url:"/api/v1/kxpms/summary/list",method:"post",data:t})}function et(t){return Object(r["a"])({url:"/api/v1/kxpms/summary/add",method:"post",data:t})}function nt(t,e){return Object(r["a"])({url:"/api/v1/kxpms/summary/update/".concat(t),method:"post",data:e})}function rt(t){return Object(r["a"])({url:"/api/v1/kxpms/summary/delete/".concat(t),method:"post"})}function at(t){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/list",method:"post",data:t})}function ot(t){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/add",method:"post",data:t})}function it(t,e){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/update/".concat(t),method:"post",data:e})}function ct(t){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/delete",method:"post",data:t})}},"6fc3":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("div",{staticClass:"app-container"},[n("el-form",{ref:"form",attrs:{inline:!0,model:t.form,size:"mini"}},[n("el-form-item",{attrs:{label:"标题",prop:"uuid"}},[n("el-select",{attrs:{filterable:"",placeholder:"请输入标题"},model:{value:t.form.uuid,callback:function(e){t.$set(t.form,"uuid",e)},expression:"form.uuid"}},t._l(t.roles,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.uuid}})})),1)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("查询")])],1),n("el-form-item",[n("el-button",{on:{click:t.onReset}},[t._v("重置")])],1),n("el-form-item",[n("el-button",{attrs:{type:"warning"},on:{click:t.onAdd}},[t._v("添加")])],1),n("el-form-item",[n("el-popover",{attrs:{placement:"top-start",width:"240",trigger:"click"}},[n("el-checkbox-group",{attrs:{min:1},on:{change:t.onCheckboxChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},t._l(t.headerList,(function(t,e){return n("el-checkbox",{key:e,attrs:{label:t}})})),1),n("el-button",{attrs:{slot:"reference",type:"success"},slot:"reference"},[t._v("表头设置")])],1)],1),n("el-form-item",[n("el-button",{attrs:{type:"info",plain:""},on:{click:t.handleDownload}},[t._v("导出当前数据")])],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],attrs:{"element-loading-text":"Loading",data:t.list,size:"mini",border:"",stripe:"",fit:"","highlight-current-row":""}},[t._l(t.tableHeader,(function(t,e){return n("el-table-column",{key:e,attrs:{prop:t.prop,label:t.label,align:t.align,"min-width":t.width}})})),n("el-table-column",{attrs:{prop:"create_at",label:"创建时间",width:"150"}}),n("el-table-column",{attrs:{prop:"create_by.username",label:"创建者",width:"150"}}),n("el-table-column",{attrs:{prop:"update_at",label:"更新时间",width:"150","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{prop:"update_by.username",label:"更新者",width:"150"}}),n("el-table-column",{attrs:{label:"操作",align:"center",width:"180",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(n){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]),n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")])]}}])})],2),n("div",{staticClass:"page-wrapper"},[n("el-pagination",{attrs:{"current-page":t.form.pagenum,background:"",small:"","page-size":t.form.pagesize,"pager-count":5,layout:"pager, prev, next, total",total:t.total},on:{"current-change":t.handleCurrentChange,"update:currentPage":function(e){return t.$set(t.form,"pagenum",e)},"update:current-page":function(e){return t.$set(t.form,"pagenum",e)}}})],1),n("el-dialog",{attrs:{title:t.dialogTitle,visible:t.dialogVisible,width:"50%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-form",{ref:"post",attrs:{model:t.post,"status-icon":"",rules:t.rules,inline:!0,size:"mini","label-width":"200px"}},[n("el-form-item",{attrs:{label:"标题",prop:"name"}},[n("el-input",{attrs:{type:"text",autocomplete:"off"},model:{value:t.post.name,callback:function(e){t.$set(t.post,"name",e)},expression:"post.name"}})],1),n("el-form-item",{attrs:{label:"年度调派现场总天数",prop:"year_dispatch_site_days"}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:t.post.year_dispatch_site_days,callback:function(e){t.$set(t.post,"year_dispatch_site_days",t._n(e))},expression:"post.year_dispatch_site_days"}})],1),n("el-form-item",{attrs:{label:"年度监督流失率",prop:"year_supervise_churn_rate"}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:t.post.year_supervise_churn_rate,callback:function(e){t.$set(t.post,"year_supervise_churn_rate",t._n(e))},expression:"post.year_supervise_churn_rate"}},[n("template",{slot:"append"},[t._v("%")])],2)],1),n("el-form-item",{attrs:{label:"年度再认证流失率",prop:"year_recert_churn_rate"}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:t.post.year_recert_churn_rate,callback:function(e){t.$set(t.post,"year_recert_churn_rate",t._n(e))},expression:"post.year_recert_churn_rate"}},[n("template",{slot:"append"},[t._v("%")])],2)],1),n("el-form-item",{attrs:{label:"年度顾客满意率",prop:"year_satis_churn_rate"}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:t.post.year_satis_churn_rate,callback:function(e){t.$set(t.post,"year_satis_churn_rate",t._n(e))},expression:"post.year_satis_churn_rate"}},[n("template",{slot:"append"},[t._v("%")])],2)],1),n("el-form-item",{attrs:{label:"年度应收款回款率",prop:"year_receiv_collection_rate"}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:t.post.year_receiv_collection_rate,callback:function(e){t.$set(t.post,"year_receiv_collection_rate",t._n(e))},expression:"post.year_receiv_collection_rate"}},[n("template",{slot:"append"},[t._v("%")])],2)],1),n("el-form-item",{attrs:{label:"行业项目比率",prop:"indus_project_rate"}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:t.post.indus_project_rate,callback:function(e){t.$set(t.post,"indus_project_rate",t._n(e))},expression:"post.indus_project_rate"}},[n("template",{slot:"append"},[t._v("%")])],2)],1),n("el-form-item",{attrs:{label:"渠道开发项目比率",prop:"channel_project_rate"}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:t.post.channel_project_rate,callback:function(e){t.$set(t.post,"channel_project_rate",t._n(e))},expression:"post.channel_project_rate"}},[n("template",{slot:"append"},[t._v("%")])],2)],1),n("el-form-item",{attrs:{label:"年度坏账终止项目数",prop:"year_bad_project"}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:t.post.year_bad_project,callback:function(e){t.$set(t.post,"year_bad_project",t._n(e))},expression:"post.year_bad_project"}})],1),n("el-form-item",{attrs:{label:"年度坏账金额",prop:"year_bad_debt_amount"}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:t.post.year_bad_debt_amount,callback:function(e){t.$set(t.post,"year_bad_debt_amount",t._n(e))},expression:"post.year_bad_debt_amount"}})],1),n("el-form-item",{attrs:{label:"行业项目数量",prop:"indus_project_count"}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:t.post.indus_project_count,callback:function(e){t.$set(t.post,"indus_project_count",t._n(e))},expression:"post.indus_project_count"}})],1),n("el-form-item",{attrs:{label:"渠道开发项目数量",prop:"channel_project_count"}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:t.post.channel_project_count,callback:function(e){t.$set(t.post,"channel_project_count",t._n(e))},expression:"post.channel_project_count"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"mini",plain:""},on:{click:function(e){return t.submitForm("post")}}},[t._v("提交")]),n("el-button",{attrs:{type:"success",size:"mini",plain:""},on:{click:function(e){return t.onReset("form")}}},[t._v("重置")]),n("el-button",{attrs:{size:"mini"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("关闭")])],1)],1)],1)},a=[],o=(n("62f9"),n("5ff7"),n("95e8"),n("2a39"),n("96f8"),n("365c")),i=n("ed08"),c=n("cd77"),u=[{label:"标题",prop:"name",isShow:!0},{label:"年度监督流失率",prop:"year_supervise_churn_rate",isShow:!0},{label:"年度再认证流失率",prop:"year_recert_churn_rate",isShow:!0},{label:"年度顾客满意率",prop:"year_satis_churn_rate",isShow:!0},{label:"年度应收款回款率",prop:"year_receiv_collection_rate",isShow:!0},{label:"行业项目比率",prop:"indus_project_rate",isShow:!0},{label:"渠道开发项目比率",prop:"channel_project_rate",isShow:!0},{label:"年度调派现场总天数",prop:"year_dispatch_site_days",isShow:!1},{label:"年度坏账终止项目数",prop:"year_bad_project",isShow:!1},{label:"年度坏账金额",prop:"year_bad_debt_amount",isShow:!1},{label:"行业项目数量",prop:"indus_project_count",isShow:!1},{label:"渠道开发项目数量",prop:"channel_project_count",isShow:!1}],s=u.filter((function(t){if(t.isShow)return Object.assign(t,{align:"center",width:"150"})})),l={name:"Summary",data:function(){return{total:0,list:[],isLoading:!1,checkList:s.map((function(t){return t.label})),headerList:u.map((function(t){return t.label})),tableHeader:s,roles:[],form:{uuid:null,name:null,pagesize:15,pagenum:1},currentIndex:0,currentValue:null,dialogTitle:"",dialogVisible:!1,post:{name:null,year_supervise_churn_rate:null,year_recert_churn_rate:null,year_satis_churn_rate:null,year_dispatch_site_days:null,year_receiv_collection_rate:null,year_bad_project:null,year_bad_debt_amount:null,indus_project_rate:null,indus_project_count:null,channel_project_rate:null,channel_project_count:null},rules:{year_supervise_churn_rate:[{type:"number",required:!0,message:"字段不能为空",trigger:"blur"}],year_recert_churn_rate:[{type:"number",required:!0,message:"字段不能为空",trigger:"blur"}],year_satis_churn_rate:[{type:"number",required:!0,message:"字段不能为空",trigger:"blur"}],year_dispatch_site_days:[{type:"number",required:!0,message:"字段不能为空",trigger:"blur"}],year_receiv_collection_rate:[{type:"number",required:!0,message:"字段不能为空",trigger:"blur"}],year_bad_project:[{type:"number",required:!0,message:"字段不能为空",trigger:"blur"}],year_bad_debt_amount:[{type:"number",required:!0,message:"字段不能为空",trigger:"blur"}],indus_project_rate:[{type:"number",required:!0,message:"字段不能为空",trigger:"blur"}],indus_project_count:[{type:"number",required:!0,message:"字段不能为空",trigger:"blur"}],channel_project_rate:[{type:"number",required:!0,message:"字段不能为空",trigger:"blur"}],channel_project_count:[{type:"number",required:!0,message:"字段不能为空",trigger:"blur"}],name:[{type:"string",required:!0,message:"用户名不能为空",trigger:"blur"},{min:1,max:20,message:"字符串长度在 1 到 20 之间",trigger:"blur"}]}}},methods:{fetchData:function(t){var e=this;this.isLoading=!0,Object(o["N"])(t).then((function(t){e.total=t.count,e.list=t.data})).catch((function(t){console.log(t.message)})).finally((function(){e.isLoading=!1}))},fetchSelectData:function(){var t=this;Object(o["N"])({scope_type:"list"}).then((function(e){200==e.code&&(t.roles=e.data)})).catch((function(t){console.log(t.message)}))},handleSizeChange:function(t){this.form.pagesize=t,this.fetchData(Object(i["e"])(this.form))},handleCurrentChange:function(t){this.form.pagenum=t,this.fetchData(Object(i["e"])(this.form))},handleEdit:function(t,e){this.post=Object.assign(e),this.currentIndex=t,this.currentValue=e,this.dialogTitle="编辑",this.dialogVisible=!0},handleDelete:function(t,e){var n=this;this.$alert("您确定要删除么?删除操作将不可恢复。如需取消操作,请点击右上角关闭按钮。","删除提醒",{confirmButtonText:"确定",callback:function(r){"confirm"==r&&Object(o["x"])(e.uuid).then((function(e){console.log(e),n.total-=1,n.$delete(n.list,t),n.$message({type:"success",message:"成功删除第".concat(t,"")})})).catch((function(t){n.$message.error(t.message)}))}})},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){var n=!0;return t?"添加"===e.dialogTitle?Object(o["k"])(Object(i["e"])(e.post)).then((function(t){console.log(t),e.$message({type:"success",message:"添加成功"}),e.fetchData(Object(i["e"])(e.form))})).catch((function(t){e.$message.error(t.message)})):"编辑"===e.dialogTitle&&Object(o["db"])(e.currentValue.uuid,e.post).then((function(t){console.log(t),e.$message({type:"success",message:"更新成功"}),e.fetchData(Object(i["e"])(e.form))})).catch((function(t){e.$message.error(t.message)})):n=!1,e.dialogVisible=!1,n}))},handleDownload:function(){var t=this,e=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(o["N"])({scope_type:"list",props:this.tableHeader.map((function(t){return t.prop}))}).then((function(e){Object(c["a"])({header:t.tableHeader,headerLabel:"label",headerProp:"prop",jsonData:e.data,filename:Date.now()})})).catch((function(e){t.$message.warning(e.message)})).finally((function(){e.close()}))},onCheckboxChange:function(t){var e=[];t.forEach((function(t){for(var n=0;n<u.length;n++)if(u[n].label===t){e.push(Object.assign(u[n],{align:"center",width:"150"}));break}})),this.tableHeader=e},onAdd:function(){this.dialogTitle="添加",this.dialogVisible=!0},onSubmit:function(){this.form.pagenum=1,this.form.pagesize=15,this.fetchData(Object(i["e"])(this.form))},onReset:function(t){this.$refs[t].resetFields(),this.form.pagesize=15,this.form.pagenum=1,this.fetchData(Object(i["e"])(this.form))}},mounted:function(){},created:function(){this.fetchData(Object(i["e"])(this.form)),this.fetchSelectData()}},p=l,d=(n("b00f"),n("5d22")),f=Object(d["a"])(p,r,a,!1,null,"bc6c305e",null);e["default"]=f.exports},"730b":function(t,e,n){var r=n("9345"),a=n("5d29"),o=r("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(a.Array===t||i[o]===t)}},7592:function(t,e,n){},"8b46":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n("6b07"),n("cf2b"),n("08b3"),n("2a39"),n("f39f"),n("4021");var r=n("0f40");function a(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=Object(r["a"])(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){u=!0,i=t},f:function(){try{c||null==n["return"]||n["return"]()}finally{if(u)throw i}}}}},"8b5c":function(t,e,n){var r=n("9345"),a=r("iterator"),o=!1;try{var i=0,c={next:function(){return{done:!!i++}},return:function(){o=!0}};c[a]=function(){return this},Array.from(c,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[a]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(u){}return n}},"954c":function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},"9aaa":function(t,e,n){var r=n("425b"),a=n("e3fb");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(i){throw a(t),i}}},b00f:function(t,e,n){"use strict";n("7592")},c30f:function(t,e,n){"use strict";var r=n("4292"),a=n("3079"),o=n("a308"),i=n("fb77"),c=n("2730"),u=n("b9dd"),s=n("5c14"),l=n("9345"),p=n("b9d5"),d=p("slice"),f=l("species"),m=[].slice,b=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var n,r,l,p=u(this),d=c(p.length),h=i(t,d),_=i(void 0===e?d:e,d);if(o(p)&&(n=p.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?a(n)&&(n=n[f],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(p,h,_);for(r=new(void 0===n?Array:n)(b(_-h,0)),l=0;h<_;h++,l++)h in p&&s(r,l,p[h]);return r.length=l,r}})},cd77:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("4914");var r=n("8b46"),a=function(t){return window.btoa(unescape(encodeURIComponent(t)))};function o(t){return!t&&0!=t||"undefined"==typeof t}function i(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.header,n=void 0===e?[]:e,i=t.headerLabel,c=void 0===i?"":i,u=t.headerProp,s=void 0===u?"":u,l=t.jsonData,p=void 0===l?[]:l,d=t.worksheet,f=void 0===d?"Sheet":d,m=t.filename,b=void 0===m?"table-list":m,h="<tr>",_=0;_<n.length;_++)h+="<td>".concat(n[_][c],"</td>");h+="</tr>";for(var v=0;v<p.length;v++){h+="<tr>";var y,g=Object(r["a"])(n);try{for(g.s();!(y=g.n()).done;){var x=y.value;h+="<td style=\"mso-number-format: '@';\">".concat(o(p[v][x[s]])?"":p[v][x[s]]+"\t","</td>")}}catch($){g.e($)}finally{g.f()}h+="</tr>"}var j="data:application/vnd.ms-excel;base64,",k='<html xmlns:o="urn:schemas-microsoft-com:office:office" \n        xmlns:x="urn:schemas-microsoft-com:office:excel" \n        xmlns="http://www.w3.org/TR/REC-html40">\n        <head>\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet>\n        <x:Name>'.concat(f,"</x:Name>\n        <x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet>\n        </x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e\n        </head><body><table>").concat(h,"</table></body></html>"),O=document.getElementsByTagName("body")[0],w=document.createElement("a");O.appendChild(w),w.href=j+a(k),w.download="".concat(b,".xls"),w.click(),document.body.removeChild(w)}},d4eb:function(t,e,n){var r=n("7506"),a=n("5d29"),o=n("9345"),i=o("iterator");t.exports=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||a[r(t)]}},e3fb:function(t,e,n){var r=n("425b");t.exports=function(t){var e=t["return"];if(void 0!==e)return r(e.call(t)).value}}}]);