马宇豪
2022-12-12 c63545c5e3f297a5b9545f0cb2afeaa843ce52cb
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-27bb"],{EyW5:function(t,e,a){"use strict";a.d(e,"e",function(){return i}),a.d(e,"d",function(){return s}),a.d(e,"a",function(){return l}),a.d(e,"g",function(){return c}),a.d(e,"b",function(){return o}),a.d(e,"f",function(){return u}),a.d(e,"c",function(){return d});var n=a("t3Un"),r=a("X4fA");function i(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/assess/applyList-sale",method:"post",data:t})}function s(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/enterprise/list-underSupervision?type="+t,method:"get"})}function l(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/assess/addApply-sale",method:"post",data:t})}function c(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/assess/modApply-sale",method:"post",data:t})}function o(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/assess/approveApply-sale",method:"post",data:t})}function u(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/assess/rejectApply-sale",method:"post",data:t})}function d(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/assess/submitApply-sale?id="+t,method:"post"})}},IpYt:function(t,e,a){},h8bX:function(t,e,a){"use strict";var n=a("IpYt");a.n(n).a},n026:function(t,e,a){"use strict";a.r(e);var n=a("cLjf"),r=a.n(n),i=a("hDQ3"),s=a.n(i),l=a("bS4n"),c=a.n(l),o=a("t3Un"),u=a("X4fA");function d(t){return Object(o.a)({headers:{Authorization:Object(u.a)()},url:"http://39.104.85.193:4105/blackList/list",method:"post",data:t})}var p=a("7Qib"),b=a("8t5x"),h=a("EyW5"),g={name:"blackList",data:function(){return{pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,tableKey:0,listLoading:!1,blackList:[],dialogVisible:!1,enterpriseList:[],blackQuery:{enterprisename:""},listQuery:{filter:{enterprisename:""},pageIndex:1,pageSize:10}}},computed:c()({},Object(b.b)(["userType","username"])),created:function(){this.getBlackDataList(),this.getEnterpriseList()},methods:{getBlackDataList:function(){var t=this;return s()(r.a.mark(function e(){var a;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,d(t.listQuery);case 3:"200"===(a=e.sent).data.code?(t.recordTotal=a.data.result.total,t.pageSize=a.data.result.size,t.pageTotal=Object(p.a)(a.data.result.totalCount,a.data.result.pageSize),t.currentPage=a.data.result.current,t.blackList=a.data.result.records):t.$message({type:"warning",message:a.data.message}),t.listLoading=!1;case 6:case"end":return e.stop()}},e,t)}))()},getEnterpriseList:function(){var t=this;return s()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=0,e.next=3,Object(h.d)(a);case 3:"200"===(n=e.sent).data.code&&(t.enterpriseList=n.data.result);case 5:case"end":return e.stop()}},e,t)}))()},search:function(){this.getBlackDataList()},add:function(){this.dialogVisible=!0,this.blackQuery={enterprisename:"",enterprisenumber:""}},submit:function(t){var e=this;this.$confirm("将该企业加入黑名单,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){(function(t){return Object(o.a)({headers:{Authorization:Object(u.a)()},url:"http://39.104.85.193:4105/blackList/add",method:"post",data:t})})(e.blackQuery).then(function(t){"200"===t.data.code?(e.dialogVisible=!1,e.getBlackDataList(),e.$notify({title:"成功",message:"加入黑名单成功",type:"success",duration:2e3})):e.$message({type:"warning",message:t.data.message})})})},handleSizeChange:function(t){this.listQuery.pageSize=t,this.getBlackDataList()},handleCurrentChange:function(t){this.listQuery.pageIndex=t,this.getBlackDataList()},deleteById:function(t){var e=this;this.$confirm("删除该黑名单,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){(function(t){return Object(o.a)({headers:{Authorization:Object(u.a)()},url:"http://39.104.85.193:4105/blackList/del?id="+t,method:"post",data:t})})(t.id).then(function(t){"200"===t.data.code?(e.dialogVisible=!1,e.getBlackDataList(),e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})):e.$message({type:"warning",message:t.data.message})})})}}},f=(a("h8bX"),a("ZrdR")),m=Object(f.a)(g,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{display:"block"}},[a("div",{staticClass:"basic_search",staticStyle:{"padding-top":"10px"}},[a("span",[t._v("按企业名称:")]),t._v(" "),a("el-input",{staticStyle:{width:"200px"},attrs:{filterable:"",clearable:""},model:{value:t.listQuery.filter.enterprisename,callback:function(e){t.$set(t.listQuery.filter,"enterprisename",e)},expression:"listQuery.filter.enterprisename"}})],1),t._v(" "),a("div",{staticClass:"basic_search",staticStyle:{"margin-right":"10px"}},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(e){t.add()}}},[t._v("新增")]),t._v(" "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){t.search("查询","")}}},[t._v("查询")])],1)])]),t._v(" "),a("div",{staticClass:"table_content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.blackList,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"企业名称",prop:"enterprisename",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"企业编号",prop:"enterprisenumber",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"createby",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createtime",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.deleteById(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("br"),t._v(" "),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":t.currentPage,"page-sizes":[10,20,30,50],"page-size":t.pageSize,total:t.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}),t._v(" "),a("br")],1),t._v(" "),a("el-dialog",{attrs:{width:"30%",visible:t.dialogVisible,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{ref:"ruleForm",attrs:{model:t.blackQuery,"label-width":"200px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"企业名称",prop:"enterprisename"}},[a("el-input",{model:{value:t.blackQuery.enterprisename,callback:function(e){t.$set(t.blackQuery,"enterprisename",e)},expression:"blackQuery.enterprisename"}})],1)],1)],1)],1),t._v(" "),a("div",{attrs:{align:"center"}},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submit()}}},[t._v("确定")])],1)],1)],1)},[],!1,null,"4c8bcd02",null);m.options.__file="index.vue";e.default=m.exports}}]);