1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4125a0c4"],{"1e2c":function(e,t,a){},"805f":function(e,t,a){"use strict";a("1e2c")},d5c3:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.downloadLoading,expression:"downloadLoading"}],staticClass:"app-container"},[2==e.placeType||e.checkRole([99])?e._e():a("el-button",{staticClass:"margin-left",attrs:{type:"primary"},on:{click:e.regularAll}},[e._v("全部转为员工")]),a("el-input",{staticClass:"margin-left input",attrs:{placeholder:"请输入姓名"},model:{value:e.page.data.name,callback:function(t){e.$set(e.page.data,"name",t)},expression:"page.data.name"}}),a("el-input",{staticClass:"margin-left input",attrs:{placeholder:"请输入手机号"},model:{value:e.page.data.phone,callback:function(t){e.$set(e.page.data,"phone",t)},expression:"page.data.phone"}}),a("el-input",{staticClass:"margin-left input",attrs:{placeholder:"请输入身份证号"},model:{value:e.page.data.idNumber,callback:function(t){e.$set(e.page.data,"idNumber",t)},expression:"page.data.idNumber"}}),e.checkRole([1,2,3,4])?a("el-select",{staticClass:"margin-left input",attrs:{clearable:"",filterable:"",placeholder:"请选择所属账号"},model:{value:e.page.data.username,callback:function(t){e.$set(e.page.data,"username",t)},expression:"page.data.username"}},e._l(e.user_list,(function(e){return a("el-option",{key:e.id,attrs:{label:e.username,value:e.username}})})),1):e._e(),e.checkRole([99])?e._e():a("el-select",{staticClass:"margin-left input",attrs:{filterable:"",clearable:"",placeholder:"请选择省份",disabled:e.checkRole([2,3,4,5])},on:{change:e.chooseProvinceSearch},model:{value:e.page.data.provinceId,callback:function(t){e.$set(e.page.data,"provinceId",t)},expression:"page.data.provinceId"}},e._l(e.province_list_search,(function(e){return a("el-option",{key:e.areaCodeId,attrs:{label:e.name,value:e.areaCodeId}})})),1),e.checkRole([99])?e._e():a("el-select",{staticClass:"margin-left input",attrs:{filterable:"",clearable:"",placeholder:"请选择城市",disabled:e.checkRole([4,5])},on:{change:e.chooseCitySearch},model:{value:e.page.data.cityId,callback:function(t){e.$set(e.page.data,"cityId",t)},expression:"page.data.cityId"}},e._l(e.city_list_search,(function(e){return a("el-option",{key:e.areaCodeId,attrs:{label:e.name,value:e.areaCodeId}})})),1),e.checkRole([99])?e._e():a("el-select",{staticClass:"margin-left input",attrs:{filterable:"",clearable:"",placeholder:"请选择区域",disabled:e.checkRole([5])},model:{value:e.page.data.areaId,callback:function(t){e.$set(e.page.data,"areaId",t)},expression:"page.data.areaId"}},e._l(e.area_list_search,(function(e){return a("el-option",{key:e.areaCodeId,attrs:{label:e.name,value:e.areaCodeId}})})),1),e._l(e.page.data.contents,(function(t,s){return a("span",{key:s},["日期"===t.customType?a("el-date-picker",{staticClass:"margin-left input",attrs:{type:"datetime",placeholder:t.prompt,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:t.customNameVal,callback:function(a){e.$set(t,"customNameVal",a)},expression:"item.customNameVal"}}):e._e(),"时间"===t.customType?a("el-time-picker",{staticClass:"margin-left input",attrs:{"picker-options":{selectableRange:"00:00:00 - 23:59:59"},placeholder:t.prompt,"value-format":"HH:mm",format:"HH:mm"},model:{value:t.customNameVal,callback:function(a){e.$set(t,"customNameVal",a)},expression:"item.customNameVal"}}):e._e(),"下拉选择"===t.customType?a("el-select",{staticClass:"margin-left input",attrs:{filterable:"",clearable:"",placeholder:t.prompt},model:{value:t.customNameVal,callback:function(a){e.$set(t,"customNameVal",a)},expression:"item.customNameVal"}},e._l(t.configurationOption,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})})),1):e._e(),"文本"===t.customType?a("el-input",{staticClass:"margin-left input",attrs:{placeholder:t.prompt},model:{value:t.customNameVal,callback:function(a){e.$set(t,"customNameVal",a)},expression:"item.customNameVal"}}):e._e()],1)})),a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.fetchData}},[e._v("搜索")]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"最大支持导出五万条数据!",placement:"top-start"}},[1===e.isOut?a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.download}},[e._v("导出记录")]):e._e()],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"table_form",staticClass:"table",attrs:{data:e.list,"element-loading-text":"操作中,请耐心等待!",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号",align:"center",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.indexMethod(t.$index))+" ")]}}])}),a("el-table-column",{attrs:{label:"实名照片",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"70px",height:"70px"},attrs:{src:t.row.avatar,"preview-src-list":[t.row.avatar]}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[e._v("暂无照片")])])]}}])}),a("el-table-column",{attrs:{label:"姓名",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.name))+" ")]}}])}),a("el-table-column",{attrs:{label:"手机号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.phone))+" ")]}}])}),a("el-table-column",{attrs:{label:"身份证号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.idNumber))+" ")]}}])}),2!=e.$store.getters.placeType||e.checkRole([99])?e._e():a("el-table-column",{attrs:{label:"公司名称",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.enterpriseFullName))+" ")]}}],null,!1,321518541)}),e.checkRole([1,2,3,4])?a("el-table-column",{attrs:{label:"省-市-区-街道",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.provinceName))+"-"+e._s(e._f("matchNull")(t.row.cityName))+"-"+e._s(e._f("matchNull")(t.row.areaName))+"-"+e._s(e._f("matchNull")(t.row.streetName))+" ")]}}],null,!1,2543091094)}):e._e(),e.checkRole([1,2,3,4])?a("el-table-column",{attrs:{label:"详细地址",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.address))+" ")]}}],null,!1,934433114)}):e._e(),e.checkRole([1,2,3,4])?a("el-table-column",{attrs:{label:"所属组织名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.policeStationName))+" ")]}}],null,!1,1864085837)}):e._e(),e.checkRole([1,2,3,4])?a("el-table-column",{attrs:{label:"所属账号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.username))+" ")]}}],null,!1,259514490)}):e._e(),a("el-table-column",{attrs:{label:"认证类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.pushType?a("el-tag",{attrs:{effect:"plain",type:"success"}},[e._v("小程序")]):1===t.row.pushType?a("el-tag",{attrs:{effect:"plain"}},[e._v("初次添加")]):2===t.row.pushType?a("el-tag",{attrs:{effect:"plain",type:"primary"}},[e._v("人工录入")]):3===t.row.pushType?a("el-tag",{attrs:{effect:"plain",type:"warning"}},[e._v("访客机")]):a("el-tag",{attrs:{effect:"plain",type:"info"}},[e._v("其他")])]}}])}),e.checkRole([5])?e._l(e.addCustomList,(function(t,s){return a("el-table-column",{key:s,attrs:{align:"center",label:t.customName},scopedSlots:e._u([{key:"default",fn:function(l){return["图片"===t.customType?a("el-image",{staticStyle:{width:"70px",height:"70px"},attrs:{src:l.row.contents[s].customNameVal,"preview-src-list":[l.row.contents[s].customNameVal]}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[e._v("暂无照片")])]):a("p",[e._v(e._s(l.row.contents[s].customNameVal))])]}}],null,!0)})})):e._e(),a("el-table-column",{attrs:{label:"创建时间",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.createTime))+" ")]}}])}),a("el-table-column",{attrs:{align:"center",prop:"",label:"操作区",width:e.checkRole([1,2,5,99])?"450":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.checkRole([1,2,5,99])?a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(a){return e.deleteUser(t.row.id)}}},[e._v("删除")]):e._e(),e.checkRole([1,2,5,99])?a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:function(a){return e.reIssue(t.row.id)}}},[e._v("重新下发")]):e._e(),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.searchContent(t.row)}}},[e._v("详情")]),e.checkRole([1,2,5,99])?a("el-button",{attrs:{type:"success",size:"small"},on:{click:function(a){return e.addWhiteList(t.row.id)}}},[e._v("转为员工")]):e._e(),e.checkRole([1,2,5,99])?a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(a){return e.addBlackList(t.row.id)}}},[e._v("拉黑")]):e._e()]}}])})],2),a("pagination",{attrs:{total:e.total,page:e.page.pageNum,limit:e.page.pageSize},on:{"update:page":function(t){return e.$set(e.page,"pageNum",t)},"update:limit":function(t){return e.$set(e.page,"pageSize",t)},pagination:e.fetchData}}),a("detailsDialog",{attrs:{dialogTableVisible:e.dialogTableVisible,visitToJetList:e.visitToJetList,row:e.row},on:{dialog:function(t){e.dialogTableVisible=!1}}})],2)},l=[],n=a("3dd5"),i=a("50e2"),c=a("42d1"),o=a("333d"),r=a("4834"),u={components:{Pagination:o["a"],detailsDialog:n["a"]},filters:{matchNull:function(e){return e||"暂无"}},data:function(){return{list:null,listLoading:!0,downloadLoading:!1,isOut:this.$store.getters.isOut,placeType:this.$store.getters.placeType,page:{data:{username:null,name:"",phone:"",idNumber:"",provinceId:null,cityId:null,areaId:null,contents:null},pageNum:1,pageSize:10},total:0,user_list:[],province_list_search:[],city_list_search:[],area_list_search:[],status_list:[{id:1,name:"已认证"},{id:2,name:"未认证"}],dialogTableVisible:!1,visitToJetList:{},addCustomList:[],row:null}},created:function(){this.fetchData(),this.getUserListSearch(),this.getAddressListSearch(1),Object(c["a"])([2,3])?(this.getAddressListSearch(2,this.$store.getters.provinceId),this.page.data.provinceId=this.$store.getters.provinceId):Object(c["a"])([4])?(this.getAddressListSearch(2,this.$store.getters.provinceId),this.page.data.provinceId=this.$store.getters.provinceId,this.getAddressListSearch(3,this.$store.getters.cityId),this.page.data.cityId=this.$store.getters.cityId):Object(c["a"])([5])&&(this.getAddressListSearch(2,this.$store.getters.provinceId),this.page.data.provinceId=this.$store.getters.provinceId,this.getAddressListSearch(3,this.$store.getters.cityId),this.page.data.cityId=this.$store.getters.cityId,this.page.data.areaId=this.$store.getters.areaId,this.getContextById(this.$store.getters.adminId))},methods:{checkRole:c["a"],fetchData:function(){var e=this;this.listLoading=!0,Object(i["t"])(this.page).then((function(t){e.list=t.data.list,e.total=t.data.total,e.listLoading=!1}))},searchContent:function(e){var t=this;this.row=e,Object(r["B"])(e.id).then((function(e){t.visitToJetList=e.data,t.dialogTableVisible=!0}))},getContextById:function(e){var t=this;Object(r["p"])(e).then((function(e){t.addCustomList=e.data,t.page.data.contents=e.data}))},getUserListSearch:function(){var e=this;Object(r["A"])().then((function(t){e.user_list=t.data}))},getAddressListSearch:function(e,t){var a=this;switch(e){case 1:Object(r["v"])().then((function(e){a.province_list_search=e.data}));break;case 2:Object(r["o"])(t).then((function(e){a.city_list_search=e.data}));break;case 3:Object(r["m"])(t).then((function(e){a.area_list_search=e.data}));break;default:break}},chooseProvinceSearch:function(e){this.city_list_search=[],this.page.data.cityId="",this.page.data.cityName="",this.area_list_search=[],this.page.data.areaId="",this.page.data.areaName="",this.getAddressListSearch(2,e),this.getTagList(e)},chooseCitySearch:function(e){this.area_list=[],this.page.data.areaId="",this.page.data.areaName="",this.getAddressListSearch(3,e)},indexMethod:function(e){return(this.page.pageNum-1)*this.page.pageSize+e+1},download:function(){var e=this;this.$prompt("请输入导出密码","提示",{confirmButtonText:"确定",cancelButtonText:"取消",closeOnClickModal:!1}).then((function(t){var a=t.value;"Nqj##361"==a?(e.$message({type:"success",message:"密码正确,正在下载..."}),e.downloadLoading=!0,Object(r["O"])(e.page.data).then((function(t){window.location.href=t.data,e.downloadLoading=!1}))):e.$message({type:"error",message:"您输入的密码不正确"})})).catch((function(){e.$message({type:"info",message:"取消导出"})}))},addWhiteList:function(e){var t=this;this.$confirm("确定要将此用户添加到员工吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(i["c"])(e).then((function(e){t.fetchData(),t.$message({type:"success",message:"添加成功!"})}))}))},addBlackList:function(e){var t=this;this.$confirm("确定要将此用户添加到黑名单吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(i["a"])(e).then((function(e){t.fetchData(),t.$message({type:"success",message:"添加成功!"})}))}))},regularAll:function(){var e=this;this.$confirm("此操作会全部转为员工,您确定要全部转为吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){e.listLoading=!0,Object(i["b"])().then((function(t){e.fetchData(),e.listLoading=!1,e.$message({type:"success",message:"操作成功!"})}))}))},deleteUser:function(e){var t=this;this.$confirm("确定要删除此人员吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(r["g"])(e).then((function(e){t.fetchData(),t.$message({type:"success",message:"删除成功!"})}))}))},reIssue:function(e){var t=this;this.$confirm("确定要重新下发此人员吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(r["b"])(e).then((function(e){t.fetchData(),t.$message({type:"success",message:"下发成功!"})}))}))}}},d=u,p=(a("805f"),a("2877")),m=Object(p["a"])(d,s,l,!1,null,"da0017ae",null);t["default"]=m.exports}}]);
|