text: webpackJsonp([1],{0:function(e,t){},MxMn:function(e,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("MVMM"),l=a("zO6J"),s=a("Klf7"),n=a.n(s),i={components:{},data:function(){return{}},mounted:function(){},created:function(){console.log("app初始化")}},r={render:function(){var e=this.$createElement;return(this._self._c||e)("router-view")},staticRenderFns:[]};var c=a("vSla")(i,r,!1,function(e){a("V39H")},null,null).exports,d=a("3cXf"),u=a.n(d),p=a("hRKE"),m=a.n(p),f=a("KPKd"),v=a.n(f);v.a.config.autoSetContainer=!0,o.default.use(v.a);var h={name:"app",data:function(){return{listapi:"http://192.168.0.202:8088/apis/DoitHandler/",editapi:"http://192.168.0.202:8088/apis/EditHandler/",loginapi:"http://192.168.0.202:8088/apis/LoginHandler/",username:"",list:[],viewlist:[],editform:{},viewnum:0,temlist:[],statistics:{},wjdhsm:0,wjdhds:0,yxb:0,cg:0,all:0,fgstj:[],sjstj:[],swjl:[],swdb:[],search:{},dailishang:"",add:[{type:"WJDH双模",qmoney:"5800"}],companyList:[],typeList:["WJDH双模","WJDH电商","常规","营销宝"],fee:[],designer:[],programmer:[{text:"张田",value:"张田",qq:""},{text:"孙琪",value:"孙琪",qq:""},{text:"董佳旗",value:"董佳旗",qq:""},{text:"兰帆",value:"兰帆",qq:""}],selectinput:!1,isShow:0,cxDate:{year:"",month:""},login:0,isA:"close",togglebody:1,toggleShow:1,stat_edit:"open",loading:!1,message:"",dialogFormVisible:!1,PageCount:0,pagesize:100,noticeCon:"",dels:!1,bodyloading:!0}},watch:{list:function(e){this.$nextTick(function(){})}},methods:{uploadsSuccess:function(e){console.log(e),this.editform.imgurl=e.data},uploadsError:function(){this.$message({type:"error",message:res.data.msg})},shaixuan:function(e,t){for(var a=[],o=0;o<this.temlist.length;o++)this.temlist[o][e]==t&&a.push(this.temlist[o]);this.viewlist=a},exportExcel:function(){for(var e=[],t=this.list.length-1;t>=0;t--){var a=[],o=0;for(var l in this.list[t])"id"==l||"addtime"==l||(a[o]={value:"",type:"ROW_HEADER"},null==this.list[t][l]?a[o].value=" ":a[o].value=this.list[t][l]),o++;e.push(a)}var s={title:[{value:"分公司",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"商务代表",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"商务经理",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"客户名称",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"域名",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"签单日期",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"下单日期",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"类型",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"年限",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"签单金额",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"实到金额",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"备注",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"设计师",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"程序",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"工作量",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"首页认可",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"程序认可",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"上线时间",type:"ROW_HEADER_HEADER",datatype:"string"}],data:e};this.JSONToExcelConvertor(s.data,this.cxDate.year+"-"+this.cxDate.month+"下单表",s.title)},JSONToExcelConvertor:function(e,t,a){for(var o="object"!=(void 0===e?"undefined":m()(e))?JSON.parse(e):e,l="<table>",s="<tr>",n=0,i=a.length;n<i;n++)s+="<td style='font-size: 14px;font-weight: bold;'>"+a[n].value+"</td>";l+=s+"</tr>";for(n=0;n<o.length;n++){s="<tr>";for(var r in o[n]){s+="<td>"+("."===o[n][r].value?"":o[n][r].value)+"</td>"}l+=s+"</tr>"}var c="<html xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:x='urn:schemas-microsoft-com:office:excel' xmlns='http://www.w3.org/TR/REC-html40'>";c+='<meta http-equiv="content-type" content="application/vnd.ms-excel; charset=UTF-8">',c+='<meta http-equiv="content-type" content="application/vnd.ms-excel',c+='; charset=UTF-8">',c+="<head>",c+="\x3c!--[if gte mso 9]>",c+="<xml>",c+="<x:ExcelWorkbook>",c+="<x:ExcelWorksheets>",c+="<x:ExcelWorksheet>",c+="<x:Name>",c+="{worksheet}",c+="</x:Name>",c+="<x:WorksheetOptions>",c+="<x:DisplayGridlines/>",c+="</x:WorksheetOptions>",c+="</x:ExcelWorksheet>",c+="</x:ExcelWorksheets>",c+="</x:ExcelWorkbook>",c+="</xml>",c+="<![endif]--\x3e",c+="</head>",c+="<body>",c+=l+="</table>",c+="</body>",c+="</html>";var d="data:application/vnd.ms-excel;charset=utf-8,"+encodeURIComponent(c),u=document.createElement("a");u.href=d,u.style="visibility:hidden",u.download=t+".xls",document.body.appendChild(u),u.click(),document.body.removeChild(u)},dls_edit:function(){var e=this;e.$prompt("快捷输入","提示",{inputType:"textarea"}).then(function(t){for(var a=t.value.split(/[\r\n]/g),o={company:"代理商"},l=0;l<a.length;l++){var s=a[l].split(":");if("代理商"==s[0])o.remarks=s[1];else if("公司名称"==s[0])o.customer=s[1].replace(/有限公司|制品厂/gi,"");else if("域名"==s[0]){var n=s[1].replace(/\[图片\]/gi,"");n=n.replace("www.",""),o.domains=n}else if("类型"==s[0])o.type=s[1];else if("下单日期"==s[0])o.xdate=s[1];else if("客服"==s[0])o.business=s[1];else if("备注"==s[0]){var i=o.remarks;o.remarks=i+"/"+s[1].replace(/\[图片\]/gi,"")}}e.$set(e.add,0,o)}).catch(function(){e.$message({type:"info",message:"取消输入"})})},filter:function(e,t,a){return t[a.property]===e},tableRowClassName:function(){return"success-row"},queryCompany:function(e,t){var a=this.fgstj;t(e?a.filter(this.createFilter(e)):a)},querySwdb:function(e,t){var a=this.swdb;t(e?a.filter(this.createFilter(e)):a)},querySwjl:function(e,t){var a=this.swjl;t(e?a.filter(this.createFilter(e)):a)},createFilter:function(e){return function(t){return 0===t.value.toLowerCase().indexOf(e.toLowerCase())}},showData:function(e,t){var a=this;if(a.loading=!0,void 0==e)var o=a.listapi+"?action=home";else o=a.listapi+"?action=tongji&addtime="+e+"-"+t;a.$http.get(o).then(function(e){if(0==e.data.code)a.list=e.data.data,a.viewlist=e.data.data,a.statistics=e.data.statistics,a.temlist=e.data.data,a.tongji(),a.loading=!1;else{a.$message({type:"error",message:e.data.msg});var t=e.data.date.split("-");a.cxDate.year=t[0],a.cxDate.month=t[1]}},function(e){})},searchFn:function(){var e=this;e.loading=!0;var t=e.search;"{}"!=u()(t)?(console.log(t),e.$http.post(e.listapi+"?action=search",t,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},emulateJSON:!0}).then(function(t){0==t.data.code?(e.list=t.data.data,e.viewlist=t.data.data,e.statistics=t.data.statistics,e.tongji(),e.loading=!1):(e.$message({type:"error",message:t.data.msg}),e.loading=!1)},function(e){}),e.search={}):(e.$message({type:"error",message:"请填写查询关键字!"}),e.loading=!1)},reSet:function(){this.search={}},chaxun:function(){void 0==this.cxDate.month&&(this.cxDate.month=""),this.showData(this.cxDate.year,this.cxDate.month)},addFn:function(){var e=this,t=e.add[0];null!=e.add[0].remarks&&(e.add[0].remarks=e.add[0].remarks.replace("、","/")),t.username=e.username,void 0!=t.designer?e.$confirm("确认添加？？","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$http.post(e.editapi+"?action=add",t,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},emulateJSON:!0}).then(function(t){e.list=t.data.data,e.viewlist=t.data.data,e.statistics=t.data.statistics,e.$message({type:"success",message:"添加成功!"}),e.add=[{type:"WJDH双模",qmoney:"5800"}]},function(t){e.$message({type:"error",message:"添加失败!"})})}).catch(function(){e.$message({type:"info",message:"已取消添加！！"})}):e.$message({type:"error",message:"没有填写设计师！！"})},editFn:function(e){this.dialogFormVisible=!0,this.editform=e},submitedit:function(e){var t=this,a=t.editform;a.username=t.username,t.$confirm("确认修改？？","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$http.post(t.editapi+"?action=update",a,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},emulateJSON:!0}).then(function(a){"0"==a.data.code?(0==e&&(t.list=a.data.data,t.viewlist=a.data.data),t.statistics=a.data.statistics,t.dialogFormVisible=!1,t.$message({type:"success",message:"修改成功!"})):t.$message({type:"error",message:a.data.msg})},function(e){t.$message({type:"error",message:"修改失败!"})})}).catch(function(){t.$message({type:"info",message:"已取消修改！！"})})},deleteFn:function(e){var t=this,a={};a.id=e.id,a.username=t.username,t.$confirm("确认删除？？","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$http.post(t.editapi+"?action=del",a,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},emulateJSON:!0}).then(function(e){t.list=e.data.data,t.viewlist=e.data.data,t.statistics=e.data.statistics,t.$message({type:"success",message:"删除成功!"})},function(e){t.$message({type:"error",message:"删除失败!"})})}).catch(function(){t.$message({type:"info",message:"已取消删除！！"})})},today:function(e,t){if(void 0==t[e]||""==t[e].length){var a=new Date,o=a.getYear();o=(o=o<2e3?o+1900:o).toString().substr(2,2);var l=a.getMonth()+1,s=a.getDate();t[e]=o+"."+l+"."+s}},automatic:function(e){var t=new Date,a=t.getYear();a=(a=a<2e3?a+1900:a).toString().substr(2,2);var o=t.getMonth()+1;if(void 0!=this.add[0][e]){var l=this.add[0][e],s=l.split(".");1==s.length?this.$set(this.add[0],e,a+"."+o+"."+l):2==s.length&&this.$set(this.add[0],e,a+"."+l)}},tongji:function(){this.PageCount=this.list.length,this.viewlist=this.changearray(1);for(var e=[],t=[],a=[],o=0;o<this.list.length;o++)e.push(this.list[o].business),t.push(this.list[o].manager),a.push(this.list[o].company);this.companyList=this.arrCheck(a),this.swdb=this.arrCheck(e),this.swjl=this.arrCheck(t)},changepage:function(e){this.viewlist=this.changearray(e)},changearray:function(e){for(var t=[],a=(e-1)*this.pagesize;a<(e-1)*this.pagesize+this.pagesize&&void 0!=this.list[a];a++)t.push(this.list[a]);return t},arrCheck:function(e){for(var t=[],a=0;a<e.length;a++){for(var o={},l=e[a],s=0,n=0;n<e.length;n++)e[n]==l&&(s++,e[n]=-1);-1!=l&&(o.value=l,o.num=s,t.push(o))}return t},close:function(){this.isShow=0},opcl_edit:function(){"open"==this.stat_edit?this.stat_edit="close":this.stat_edit="open"},user:function(){0==this.isShow?this.isShow=1:this.isShow=0},logout:function(){var e=this;e.$http.get(e.loginapi+"?action=logout").then(function(t){0==t.data.code&&(e.$message({type:"success",message:t.data.msg}),this.$router.push({path:"/login"}))},function(e){})},toggle:function(){"open"==this.isA?this.isA="close":this.isA="open"},toggleApp:function(){"open"==this.togglebody?this.togglebody="close":this.togglebody="open"},noticefn:function(e,t){var a=this,o=[];o.push("单子名称："+t.customer),o.push("商务经理："+t.manager),o.push("域名："+t.domains),o.push("类型："+t.type),o.push("设计狮："+t.designer),o.push("切图："+t.fee),o=(o=o.join("&")).replace(/&+/gi,"\r\n"),a.noticeCon=o,this.$copyText(this.noticeCon).then(function(t){for(var o=0;o<a.designer.length;o++)if(e==a.designer[o].value){var l="tencent://message/?uin="+a.designer[o].qq+"&Site="+a.designer[o].qq+"&Menu=yes",s=document.createElement("iframe");s.src=l,s.style.setProperty("display","none","important"),document.getElementById("app").appendChild(s),setTimeout(function(){s.parentNode.removeChild(s)},1e3)}},function(e){alert("Can not copy"),console.log(e)})},selectinputfn:function(e){"其他"==e&&(this.selectinput=!0)},home:function(){this.$router.push({path:"/"})},server:function(){this.$router.push({path:"/server"})},setting:function(){this.$router.push({path:"/setting"})},refresh:function(){console.log(this.list);var e={};e.data=this.list,e.date=this.cxDate,console.log(e),this.$http.post("http://192.168.0.253/refresh/index.php",e).then(function(e){console.log(e)},function(e){})},tjkf:function(e){var t="tencent://message/?uin="+e+"&Site="+e+"&Menu=yes",a=document.createElement("iframe");a.src=t,a.style.setProperty("display","none","important"),document.getElementById("app").appendChild(a),setTimeout(function(){a.parentNode.removeChild(a)},1e3)}},mounted:function(){var e=this;void 0!=localStorage.stat_edit&&(e.stat_edit=localStorage.stat_edit),void 0!=localStorage.togglebody&&(e.togglebody=localStorage.togglebody),void 0!=localStorage.isA&&(e.isA=localStorage.isA),e.$http.get(e.listapi+"?action=home").then(function(t){if(0==t.data.code){if(e.login=1,e.list=t.data.data,e.viewlist=t.data.data,e.statistics=t.data.statistics,e.temlist=t.data.data,0==t.data.data.length&&e.$message({type:"error",message:t.data.msg}),e.username=t.data.username,void 0!=t.data.date){var a=t.data.date.split("-");e.cxDate.year=a[0],e.cxDate.month=a[1]}for(var o=t.data.designer.split(","),l=0;l<o.length;l++){(n={}).value=o[l].split("|")[0],n.qq=o[l].split("|")[1],e.designer.push(n)}var s=t.data.fee.split(",");for(l=0;l<s.length;l++){var n;(n={}).value=s[l].split("|")[0],n.qq=s[l].split("|")[1],e.fee.push(n)}e.tongji()}else this.$router.push({path:"/login"})},function(e){})},created:function(){if("192.168.0.202"==window.location.hostname){var e=document.getElementById("style");e.parentNode.removeChild(e),document.body.style.display="block"}else document.body.style.display="block"}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.login,expression:"login"},{name:"loading",rawName:"v-loading",value:e.bodyloading,expression:"bodyloading"}],attrs:{id:"app"}},[a("el-container",{staticStyle:{height:"100%"}},[a("el-aside",{directives:[{name:"show",rawName:"v-show",value:e.togglebody,expression:"togglebody"}],attrs:{width:"200px",id:"side"}},[a("el-menu",{staticStyle:{"padding-top":"30px"},attrs:{"default-openeds":["1","3"]}},[a("el-submenu",{attrs:{index:"1"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-message"}),e._v("各类型单量统计")]),e._v(" "),a("el-menu-item-group",[e._l(e.statistics.type,function(t){return a("el-menu-item",{key:t.id,attrs:{index:"1-1"},on:{click:function(a){e.shaixuan("type",t.name)}}},[e._v(e._s(t.name)+"\n\t\t\t\t\t\t\t"),a("el-badge",{staticClass:"mark",attrs:{value:t.value}})],1)}),e._v(" "),a("el-menu-item",{attrs:{index:"1-6"},on:{click:function(t){e.showData()}}},[e._v("全部\n\t\t\t\t\t\t\t"),a("el-badge",{staticClass:"mark",attrs:{value:e.list.length}})],1)],2)],2),e._v(" "),a("el-submenu",{attrs:{index:"2"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-message"}),e._v("各公司单量统计")]),e._v(" "),a("el-menu-item-group",e._l(e.statistics.company,function(t){return a("el-menu-item",{key:t.id,attrs:{index:"2-1"},on:{click:function(a){e.shaixuan("company",t.name)}}},[e._v(e._s(t.name)+"\n\t\t\t\t\t\t\t"),a("el-badge",{staticClass:"mark",attrs:{value:t.value}})],1)}))],2),e._v(" "),a("el-submenu",{attrs:{index:"3"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-message"}),e._v("技术下单统计")]),e._v(" "),a("el-menu-item-group",e._l(e.statistics.artisan,function(t){return a("el-menu-item",{key:t.id,attrs:{index:"3-1"},on:{click:function(a){e.shaixuan("designer",t.name)}}},[e._v(e._s(t.name)+"\n\t\t\t\t\t\t\t"),a("el-badge",{staticClass:"mark",attrs:{value:t.value}})],1)}))],2)],1)],1),e._v(" "),a("el-container",{staticStyle:{overflow:"auto"}},[a("el-header",{staticStyle:{"margin-top":"10px"},attrs:{height:"auto"}},[a("div",{staticStyle:{float:"right","font-size":"20px"}},[a("i",{staticClass:"el-icon-tickets",on:{click:e.home}}),e._v(" "),a("i",{staticClass:"el-icon-upload",on:{click:e.server}}),e._v(" "),a("i",{staticClass:"el-icon-refresh",on:{click:e.showData}}),e._v(" "),a("el-dropdown",[a("i",{staticClass:"el-icon-setting",staticStyle:{"margin-right":"15px","font-size":"20px"}}),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[e._v(e._s(e.username))]),e._v(" "),a("el-dropdown-item",[a("span",{on:{click:e.setting}},[e._v("个人设置")])]),e._v(" "),a("el-dropdown-item",[a("span",{on:{click:e.logout}},[e._v("注销登录")])])],1)],1)],1),e._v(" "),a("el-button",{on:{click:function(t){e.togglebody=!e.togglebody}}},[a("i",{staticClass:"el-icon-menu"})]),e._v(" "),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.cxDate.year,callback:function(t){e.$set(e.cxDate,"year",t)},expression:"cxDate.year"}},[a("el-option",{attrs:{value:"2019"}},[e._v("2019年")]),e._v(" "),a("el-option",{attrs:{value:"2018"}},[e._v("2018年")]),e._v(" "),a("el-option",{attrs:{value:"2017"}},[e._v("2017年")]),e._v(" "),a("el-option",{attrs:{value:"2016"}},[e._v("2016年")]),e._v(" "),a("el-option",{attrs:{value:"2015"}},[e._v("2015年")]),e._v(" "),a("el-option",{attrs:{value:"2014"}},[e._v("2014年")])],1),e._v(" "),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.cxDate.month,callback:function(t){e.$set(e.cxDate,"month",t)},expression:"cxDate.month"}},[a("el-option",{attrs:{value:"",selected:""}},[e._v("全年")]),e._v(" "),a("el-option",{attrs:{value:"1"}},[e._v("一月")]),e._v(" "),a("el-option",{attrs:{value:"2"}},[e._v("二月")]),e._v(" "),a("el-option",{attrs:{value:"3"}},[e._v("三月")]),e._v(" "),a("el-option",{attrs:{value:"4"}},[e._v("四月")]),e._v(" "),a("el-option",{attrs:{value:"5"}},[e._v("五月")]),e._v(" "),a("el-option",{attrs:{value:"6"}},[e._v("六月")]),e._v(" "),a("el-option",{attrs:{value:"7"}},[e._v("七月")]),e._v(" "),a("el-option",{attrs:{value:"8"}},[e._v("八月")]),e._v(" "),a("el-option",{attrs:{value:"9"}},[e._v("九月")]),e._v(" "),a("el-option",{attrs:{value:"10"}},[e._v("十月")]),e._v(" "),a("el-option",{attrs:{value:"11"}},[e._v("十一月")]),e._v(" "),a("el-option",{attrs:{value:"12"}},[e._v("十二月")])],1),e._v(" "),a("el-button",{attrs:{icon:"el-icon-search",type:"primary"},on:{click:e.chaxun}})],1),e._v(" "),a("el-main",{attrs:{id:"main"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.search.company,callback:function(t){e.$set(e.search,"company",t)},expression:"search.company"}},[a("template",{slot:"prepend"},[e._v("分公司：")])],2)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.search.business,callback:function(t){e.$set(e.search,"business",t)},expression:"search.business"}},[a("template",{slot:"prepend"},[e._v("商务代表：")])],2)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.search.manager,callback:function(t){e.$set(e.search,"manager",t)},expression:"search.manager"}},[a("template",{slot:"prepend"},[e._v("商务经理：")])],2)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.search.customer,callback:function(t){e.$set(e.search,"customer",t)},expression:"search.customer"}},[a("template",{slot:"prepend"},[e._v("客户名称：")])],2)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.search.domains,callback:function(t){e.$set(e.search,"domains",t)},expression:"search.domains"}},[a("template",{slot:"prepend"},[e._v("域名：")])],2)],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.search.designer,callback:function(t){e.$set(e.search,"designer",t)},expression:"search.designer"}},[a("template",{slot:"prepend"},[e._v("设计：")])],2)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:2,offset:10}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary",size:"small"},on:{click:e.searchFn}},[e._v("查询")])],1),e._v(" "),a("el-col",{attrs:{span:2}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"info",size:"small"},on:{click:e.reSet}},[e._v("清空")])],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:22}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-view",size:"mini",circle:""},on:{click:e.toggle}}),e._v(" "),a("el-button",{attrs:{type:"primary",icon:"el-icon-edit",size:"mini",circle:""},on:{click:e.opcl_edit}}),e._v(" "),a("el-button",{attrs:{type:"primary",icon:"el-icon-tickets",size:"mini",circle:""},on:{click:e.dls_edit}}),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.tjkf("483303587")}}},[e._v("成都客服")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.tjkf("3188386448")}}},[e._v("郑州客服")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.tjkf("2439418622")}}},[e._v("武汉客服")]),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"罗彬"==e.username,expression:"username=='罗彬'"}],attrs:{type:"primary",icon:"el-icon-refresh",size:"mini",circle:""},on:{click:e.refresh}})],1),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:2}},[a("el-button",{attrs:{type:"danger",icon:"el-icon-delete",size:"mini",circle:""},on:{click:function(t){e.dels=!e.dels}}}),e._v(" "),a("el-button",{attrs:{type:"primary",icon:"el-icon-tickets",size:"mini",circle:""},on:{click:e.exportExcel}})],1)],1),e._v(" "),"open"==e.stat_edit?a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.add,"show-header":!1,border:"","row-class-name":e.tableRowClassName}},[a("el-table-column",{attrs:{sortable:"",prop:"company",label:"分公司","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{attrs:{"fetch-suggestions":e.queryCompany,placeholder:"分公司"},model:{value:e.add[0].company,callback:function(t){e.$set(e.add[0],"company",t)},expression:"add[0].company"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"business",label:"商务代表","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{attrs:{"fetch-suggestions":e.querySwdb,placeholder:"商务代表"},model:{value:e.add[0].business,callback:function(t){e.$set(e.add[0],"business",t)},expression:"add[0].business"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"manager",label:"商务经理","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-autocomplete",{attrs:{"fetch-suggestions":e.querySwjl,placeholder:"商务经理"},model:{value:e.add[0].manager,callback:function(t){e.$set(e.add[0],"manager",t)},expression:"add[0].manager"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"customer",label:"客户名称","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"客户名称"},model:{value:e.add[0].customer,callback:function(t){e.$set(e.add[0],"customer",t)},expression:"add[0].customer"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"domains",label:"域名","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"域名"},model:{value:e.add[0].domains,callback:function(t){e.$set(e.add[0],"domains",t)},expression:"add[0].domains"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"qdate",label:"签单日期","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"签单时间"},on:{blur:function(t){e.automatic("qdate")}},model:{value:e.add[0].qdate,callback:function(t){e.$set(e.add[0],"qdate",t)},expression:"add[0].qdate"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"xdate",label:"下单日期","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"下单时间"},on:{blur:function(t){e.automatic("xdate")}},model:{value:e.add[0].xdate,callback:function(t){e.$set(e.add[0],"xdate",t)},expression:"add[0].xdate"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"type",label:"类别","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.add[0].type,callback:function(t){e.$set(e.add[0],"type",t)},expression:"add[0].type"}},e._l(e.typeList,function(e){return a("el-option",{key:e,attrs:{label:e.label,value:e}})}))]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"year",label:"年限","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"年限"},model:{value:e.add[0].year,callback:function(t){e.$set(e.add[0],"year",t)},expression:"add[0].year"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"qmoney",label:"签单金额","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"签单金额"},model:{value:e.add[0].qmoney,callback:function(t){e.$set(e.add[0],"qmoney",t)},expression:"add[0].qmoney"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"smoney",label:"实到","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"实到金额"},model:{value:e.add[0].smoney,callback:function(t){e.$set(e.add[0],"smoney",t)},expression:"add[0].smoney"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"remarks",label:"备注","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"备注"},model:{value:e.add[0].remarks,callback:function(t){e.$set(e.add[0],"remarks",t)},expression:"add[0].remarks"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"designer",label:"设计师","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==e.selectinput?a("el-select",{attrs:{placeholder:"设计狮"},on:{change:e.selectinputfn},model:{value:e.add[0].designer,callback:function(t){e.$set(e.add[0],"designer",t)},expression:"add[0].designer"}},[e._l(e.designer,function(e){return a("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})}),e._v(" "),a("el-option",{attrs:{label:"其他",value:"其他"}})],2):e._e(),e._v(" "),1==e.selectinput?a("el-input",{attrs:{value:"",placeholder:"设计狮"},on:{blur:function(t){e.selectinput=!1}},model:{value:e.add[0].designer,callback:function(t){e.$set(e.add[0],"designer",t)},expression:"add[0].designer"}}):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"fee",label:"切图","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==e.selectinput?a("el-select",{attrs:{placeholder:"切图"},on:{change:e.selectinputfn},model:{value:e.add[0].fee,callback:function(t){e.$set(e.add[0],"fee",t)},expression:"add[0].fee"}},[e._l(e.fee,function(e){return a("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})}),e._v(" "),a("el-option",{attrs:{label:"其他",value:"其他"}})],2):e._e(),e._v(" "),1==e.selectinput?a("el-input",{attrs:{value:"",placeholder:"设计狮"},on:{blur:function(t){e.selectinput=!1}},model:{value:e.add[0].designer,callback:function(t){e.$set(e.add[0],"designer",t)},expression:"add[0].designer"}}):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"programmer",label:"程序","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{placeholder:"程序猿"},model:{value:e.add[0].programmer,callback:function(t){e.$set(e.add[0],"programmer",t)},expression:"add[0].programmer"}},e._l(e.programmer,function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})}))]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"workload",label:"工作量","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"工作量"},model:{value:e.add[0].workload,callback:function(t){e.$set(e.add[0],"workload",t)},expression:"add[0].workload"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"home",label:"首页认可","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"首页认可"},on:{blur:function(t){e.automatic("home")}},model:{value:e.add[0].home,callback:function(t){e.$set(e.add[0],"home",t)},expression:"add[0].home"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"program",label:"程序认可","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"程序认可"},model:{value:e.add[0].program,callback:function(t){e.$set(e.add[0],"program",t)},expression:"add[0].program"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"online",label:"上线日期","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"上线日期"},model:{value:e.add[0].online,callback:function(t){e.$set(e.add[0],"online",t)},expression:"add[0].online"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",label:"操作",width:"90",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"success"},on:{click:e.addFn}},[e._v("添加")])]}}])})],1):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],class:"open"==e.isA?"huyan":"",staticStyle:{width:"100%"},attrs:{data:e.viewlist,stripe:"",border:""}},[a("el-table-column",{attrs:{sortable:"",prop:"company",label:"分公司","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"business",label:"商务代表","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"manager",label:"商务经理","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"customer",label:"客户名称","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"domains",label:"域名","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"qdate",label:"签单日期","min-width":"70","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"xdate",label:"下单日期","min-width":"70","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"type",label:"类别","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"year",label:"年限","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"qmoney",label:"签单金额","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"smoney",label:"实到","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"remarks",label:"备注","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.remarks.indexOf("加急")>=0?a("el-tag",{attrs:{type:"danger",size:"medium"}},[e._v(e._s(t.row.remarks))]):"代理商"==t.row.company?a("el-tag",{attrs:{type:"success",size:"medium"}},[e._v(e._s(t.row.remarks))]):t.row.remarks.indexOf("策划")>=0?a("el-tag",{attrs:{size:"medium"}},[e._v(e._s(t.row.remarks))]):[e._v("\n\t\t\t\t\t\t\t\t"+e._s(t.row.remarks)+"\n\t\t\t\t\t\t\t")]]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"designer",label:"设计师","min-width":"60","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"btn",attrs:{"data-clipboard-target":"#noticeCon"},on:{dblclick:function(a){e.noticefn(t.row.designer,t.row)}}},[e._v(e._s(t.row.designer))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"fee",label:"切图","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"programmer",label:"程序","min-width":"60","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"btn",attrs:{"data-clipboard-target":"#noticeCon"},on:{dblclick:function(a){e.noticefn(t.row.programmer,t.row)}}},[e._v(e._s(t.row.programmer))])]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"workload",label:"工作量","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"home",label:"首页认可","min-width":"70","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"program",label:"程序认可","min-width":"70","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"online",label:"上线日期","min-width":"70","show-overflow-tooltip":""}}),e._v(" "),"open"==e.stat_edit?a("el-table-column",{attrs:{sortable:"",label:"操作",width:"90",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{display:"flex"}},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){e.editFn(t.row)}}},[e._v("改")]),e._v(" "),e.dels?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){e.deleteFn(t.row)}}},[e._v("删")]):e._e()],1)]}}])}):e._e()],1),e._v(" "),a("el-pagination",{attrs:{"page-size":e.pagesize,layout:"total,prev, pager, next, jumper",total:e.PageCount},on:{"current-change":e.changepage}}),e._v(" "),a("textarea",{staticStyle:{opacity:"0"},attrs:{id:"noticeCon"},domProps:{value:e.noticeCon}}),e._v(" "),a("el-dialog",{attrs:{title:"编辑",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.editform}},[a("el-form-item",{attrs:{label:"分公司","label-width":"120px"}},[a("el-autocomplete",{attrs:{maxlength:5,"fetch-suggestions":e.queryCompany},model:{value:e.editform.company,callback:function(t){e.$set(e.editform,"company",t)},expression:"editform.company"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商务代表","label-width":"120px"}},[a("el-autocomplete",{attrs:{maxlength:15,"fetch-suggestions":e.querySwdb},model:{value:e.editform.business,callback:function(t){e.$set(e.editform,"business",t)},expression:"editform.business"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商务经理","label-width":"120px"}},[a("el-autocomplete",{attrs:{maxlength:15,"fetch-suggestions":e.querySwjl},model:{value:e.editform.manager,callback:function(t){e.$set(e.editform,"manager",t)},expression:"editform.manager"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"客户名称","label-width":"120px"}},[a("el-input",{attrs:{maxlength:70},model:{value:e.editform.customer,callback:function(t){e.$set(e.editform,"customer",t)},expression:"editform.customer"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"域名","label-width":"120px"}},[a("el-input",{attrs:{maxlength:40},model:{value:e.editform.domains,callback:function(t){e.$set(e.editform,"domains",t)},expression:"editform.domains"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"签单日期","label-width":"120px"}},[a("el-input",{attrs:{maxlength:30,"auto-complete":"off"},model:{value:e.editform.qdate,callback:function(t){e.$set(e.editform,"qdate",t)},expression:"editform.qdate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"下单日期","label-width":"120px"}},[a("el-input",{attrs:{maxlength:30,"auto-complete":"off"},model:{value:e.editform.xdate,callback:function(t){e.$set(e.editform,"xdate",t)},expression:"editform.xdate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"类别","label-width":"120px"}},[a("el-select",{attrs:{placeholder:"WJDH双模"},model:{value:e.editform.type,callback:function(t){e.$set(e.editform,"type",t)},expression:"editform.type"}},e._l(e.typeList,function(e){return a("el-option",{key:e.id,attrs:{label:e,value:e}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"年限","label-width":"120px"}},[a("el-input",{attrs:{maxlength:20,"auto-complete":"off"},model:{value:e.editform.year,callback:function(t){e.$set(e.editform,"year",t)},expression:"editform.year"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"签单金额","label-width":"120px"}},[a("el-input",{attrs:{maxlength:20,"auto-complete":"off"},model:{value:e.editform.qmoney,callback:function(t){e.$set(e.editform,"qmoney",t)},expression:"editform.qmoney"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"实到","label-width":"120px"}},[a("el-input",{attrs:{maxlength:20,"auto-complete":"off"},model:{value:e.editform.smoney,callback:function(t){e.$set(e.editform,"smoney",t)},expression:"editform.smoney"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注","label-width":"120px"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editform.remarks,callback:function(t){e.$set(e.editform,"remarks",t)},expression:"editform.remarks"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设计师","label-width":"120px"}},[0==e.selectinput?a("el-select",{attrs:{placeholder:"设计狮"},on:{change:e.selectinputfn},model:{value:e.editform.designer,callback:function(t){e.$set(e.editform,"designer",t)},expression:"editform.designer"}},[e._l(e.designer,function(e){return a("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})}),e._v(" "),a("el-option",{attrs:{label:"其他",value:"其他"}})],2):e._e(),e._v(" "),1==e.selectinput?a("el-input",{attrs:{value:"",placeholder:"设计狮"},on:{blur:function(t){e.selectinput=!1}},model:{value:e.editform.designer,callback:function(t){e.$set(e.editform,"designer",t)},expression:"editform.designer"}}):e._e()],1),e._v(" "),a("el-form-item",{attrs:{label:"切图","label-width":"120px"}},[0==e.selectinput?a("el-select",{attrs:{placeholder:"切图"},on:{change:e.selectinputfn},model:{value:e.editform.fee,callback:function(t){e.$set(e.editform,"fee",t)},expression:"editform.fee"}},[e._l(e.fee,function(e){return a("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})}),e._v(" "),a("el-option",{attrs:{label:"其他",value:"其他"}})],2):e._e(),e._v(" "),1==e.selectinput?a("el-input",{attrs:{value:"",placeholder:"设计狮"},on:{blur:function(t){e.selectinput=!1}},model:{value:e.editform.designer,callback:function(t){e.$set(e.editform,"designer",t)},expression:"editform.designer"}}):e._e()],1),e._v(" "),a("el-form-item",{attrs:{label:"程序","label-width":"120px"}},[a("el-select",{attrs:{placeholder:"程序猿"},model:{value:e.editform.programmer,callback:function(t){e.$set(e.editform,"programmer",t)},expression:"editform.programmer"}},e._l(e.programmer,function(e){return a("el-option",{key:e.id,attrs:{label:e.text,value:e.text}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"工作量","label-width":"120px"}},[a("el-input",{attrs:{maxlength:50,"auto-complete":"off"},model:{value:e.editform.workload,callback:function(t){e.$set(e.editform,"workload",t)},expression:"editform.workload"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"首页认可","label-width":"120px"}},[a("el-input",{attrs:{maxlength:20,"auto-complete":"off"},on:{focus:function(t){e.today("home",e.editform)}},model:{value:e.editform.home,callback:function(t){e.$set(e.editform,"home",t)},expression:"editform.home"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"程序认可","label-width":"120px"}},[a("el-input",{attrs:{maxlength:20,"auto-complete":"off"},model:{value:e.editform.program,callback:function(t){e.$set(e.editform,"program",t)},expression:"editform.program"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"上线日期","label-width":"120px"}},[a("el-input",{attrs:{maxlength:20,"auto-complete":"off"},on:{focus:function(t){e.today("online",e.editform)}},model:{value:e.editform.online,callback:function(t){e.$set(e.editform,"online",t)},expression:"editform.online"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"上传附件","label-width":"120px"}},[a("el-upload",{staticClass:"upload-demo",attrs:{drag:"",action:"apis/uploadfile/?id="+e.editform.id,multiple:"","on-success":e.uploadsSuccess,"on-error":e.uploadsError}},[a("i",{staticClass:"el-icon-upload"}),e._v(" "),a("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处，或"),a("em",[e._v("点击上传")])])])],1),e._v(" "),null!=e.editform.imgurl?a("el-form-item",{attrs:{label:"图片附件","label-width":"120px"}},[a("img",{staticStyle:{width:"100%",height:"auto"},attrs:{src:e.editform.imgurl}})]):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitedit(0)}}},[e._v("确 定")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitedit}},[e._v("修改不刷新")])],1)],1)],1)],1)],1)],1)},staticRenderFns:[]};var b=a("vSla")(h,g,!1,function(e){a("MxMn")},null,null).exports,_={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"login-body"},[a("div",{attrs:{id:"login"}},[a("div",{staticClass:"zk_login"},[a("ul",{staticClass:"login-form"},[a("li",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.login.txtUserName,expression:"login.txtUserName"}],staticClass:"login-input",attrs:{name:"txtUserName",type:"text",placeholder:"管理员账号",title:"管理员账号"},domProps:{value:e.login.txtUserName},on:{input:function(t){t.target.composing||e.$set(e.login,"txtUserName",t.target.value)}}}),e._v(" "),a("label",{staticClass:"icon user",attrs:{for:"txtUserName"}})]),e._v(" "),a("li",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.login.txtPassword,expression:"login.txtPassword"}],staticClass:"login-input",attrs:{name:"txtPassword",type:"password",placeholder:"管理员密码",title:"管理员密码"},domProps:{value:e.login.txtPassword},on:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.submit(t):null},input:function(t){t.target.composing||e.$set(e.login,"txtPassword",t.target.value)}}}),e._v(" "),a("label",{staticClass:"icon pwd",attrs:{for:"txtPassword"}})]),e._v(" "),a("li",[a("input",{staticClass:"login-btn",attrs:{type:"submit",name:"Submit",value:"立即登录"},on:{click:e.submit}})])])]),e._v(" "),a("div",{staticClass:"copy-right"},[e._v("\n\t\t\t版权所有 动力无限后台管理系统 Copyright © 2005 - 2018 btoe.cn Inc. All Rights Reserved.\n\t\t")]),e._v(" "),a("iframe",{staticStyle:{display:"none"},attrs:{src:"/login.aspx"}})])])},staticRenderFns:[]};var y=a("vSla")({data:function(){return{login:{},loginapi:"http://192.168.0.202:8088/apis/LoginHandler/"}},methods:{submit:function(){var e=this;e.$http.post(e.loginapi+"?action=login",e.login,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},emulateJSON:!0}).then(function(t){0==t.data.code?(e.$message({type:"success",message:t.data.msg}),this.$router.push({path:"/"})):e.$message({type:"error",message:t.data.msg})})}},mounted:function(){this.$http.get(this.loginapi+"?action=login").then(function(e){0==e.data.code&&this.$router.push({path:"/"})})}},_,!1,function(e){a("kuTw")},null,null).exports,w={data:function(){return{quanping:"close",stat_edit:"open",isA:"close"}},methods:{submit:function(){localStorage.togglebody=this.quanping,localStorage.stat_edit=this.stat_edit,localStorage.isA=this.isA,this.$router.push({path:"/"})}},mounted:function(){this.quanping=localStorage.togglebody,this.stat_edit=localStorage.stat_edit,this.isA=localStorage.isA}},x={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[e._v("全屏模式")]),e._v(" "),a("label",{staticClass:"radio-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.quanping,expression:"quanping"}],attrs:{type:"radio",name:"quanping",value:"open"},domProps:{checked:e._q(e.quanping,"open")},on:{change:function(t){e.quanping="open"}}}),e._v(" 是\n\t\t")]),e._v(" "),a("label",{staticClass:"radio-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.quanping,expression:"quanping"}],attrs:{type:"radio",name:"quanping",value:"close"},domProps:{checked:e._q(e.quanping,"close")},on:{change:function(t){e.quanping="close"}}}),e._v(" 否\n\t\t")])]),e._v(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[e._v("是否关闭编辑")]),e._v(" "),a("label",{staticClass:"radio-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.stat_edit,expression:"stat_edit"}],attrs:{type:"radio",name:"stat_edit",value:"close"},domProps:{checked:e._q(e.stat_edit,"close")},on:{change:function(t){e.stat_edit="close"}}}),e._v(" 是\n\t\t")]),e._v(" "),a("label",{staticClass:"radio-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.stat_edit,expression:"stat_edit"}],attrs:{type:"radio",name:"stat_edit",value:"open"},domProps:{checked:e._q(e.stat_edit,"open")},on:{change:function(t){e.stat_edit="open"}}}),e._v(" 否\n\t\t")])]),e._v(" "),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"name"}},[e._v("是否开启护眼模式")]),e._v(" "),a("label",{staticClass:"radio-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.isA,expression:"isA"}],attrs:{type:"radio",name:"huyan",value:"open"},domProps:{checked:e._q(e.isA,"open")},on:{change:function(t){e.isA="open"}}}),e._v(" 是\n\t\t")]),e._v(" "),a("label",{staticClass:"radio-inline"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.isA,expression:"isA"}],attrs:{type:"radio",name:"huyan",value:"close"},domProps:{checked:e._q(e.isA,"close")},on:{change:function(t){e.isA="close"}}}),e._v(" 否\n\t\t")])]),e._v(" "),a("button",{staticClass:"btn btn-default",attrs:{type:"submit"},on:{click:e.submit}},[e._v("提交")])])},staticRenderFns:[]};var k=a("vSla")(w,x,!1,function(e){a("V6Nw")},"data-v-82ccd3f2",null).exports,$={name:"app",data:function(){return{listapi:"http://192.168.0.202:8088/apis/Services/",editapi:"http://192.168.0.202:8088/apis/EditServices/",loginapi:"http://192.168.0.202:8088/apis/LoginHandler/",username:"",list:[],editform:{},search:{},isShow:0,cxDate:{year:"",month:""},add:[{}],login:0,isA:"close",togglebody:1,toggleShow:1,stat_edit:"open",loading:!1,message:"",dialogFormVisible:!1,PageCount:0,pagesize:300,selectinput:!1}},watch:{list:function(e){this.$nextTick(function(){})}},methods:{today:function(e,t){if(void 0==t[e]||""==t[e].length){var a=new Date,o=a.getYear();o=(o=o<2e3?o+1900:o).toString().substr(2,2);var l=a.getMonth()+1,s=a.getDate();t[e]=o+"."+l+"."+s}},exportExcel:function(){for(var e=[],t=this.list.length-1;t>=0;t--){var a=[],o=0;for(var l in this.list[t])"id"==l||"addtime"==l||(a[o]={value:"",type:"ROW_HEADER"},null==this.list[t][l]?a[o].value=" ":a[o].value=this.list[t][l]),o++;e.push(a)}var s={title:[{value:"分公司",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"客户名称",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"域名",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"关闭原因",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"关闭时间",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"开放时间",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"IP",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"客服",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"商务",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"总监",type:"ROW_HEADER_HEADER",datatype:"string"},{value:"备注",type:"ROW_HEADER_HEADER",datatype:"string"}],data:e};this.JSONToExcelConvertor(s.data,"FTP表",s.title)},JSONToExcelConvertor:function(e,t,a){for(var o="object"!=(void 0===e?"undefined":m()(e))?JSON.parse(e):e,l="<table>",s="<tr>",n=0,i=a.length;n<i;n++)s+="<td style='font-size: 14px;font-weight: bold;'>"+a[n].value+"</td>";l+=s+"</tr>";for(n=0;n<o.length;n++){s="<tr>";for(var r in o[n]){s+="<td>"+("."===o[n][r].value?"":o[n][r].value)+"</td>"}l+=s+"</tr>"}var c="<html xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:x='urn:schemas-microsoft-com:office:excel' xmlns='http://www.w3.org/TR/REC-html40'>";c+='<meta http-equiv="content-type" content="application/vnd.ms-excel; charset=UTF-8">',c+='<meta http-equiv="content-type" content="application/vnd.ms-excel',c+='; charset=UTF-8">',c+="<head>",c+="\x3c!--[if gte mso 9]>",c+="<xml>",c+="<x:ExcelWorkbook>",c+="<x:ExcelWorksheets>",c+="<x:ExcelWorksheet>",c+="<x:Name>",c+="{worksheet}",c+="</x:Name>",c+="<x:WorksheetOptions>",c+="<x:DisplayGridlines/>",c+="</x:WorksheetOptions>",c+="</x:ExcelWorksheet>",c+="</x:ExcelWorksheets>",c+="</x:ExcelWorkbook>",c+="</xml>",c+="<![endif]--\x3e",c+="</head>",c+="<body>",c+=l+="</table>",c+="</body>",c+="</html>";var d="data:application/vnd.ms-excel;charset=utf-8,"+encodeURIComponent(c),u=document.createElement("a");u.href=d,u.style="visibility:hidden",u.download=t+".xls",document.body.appendChild(u),u.click(),document.body.removeChild(u)},showData:function(e,t){var a=this;if(a.loading=!0,void 0==e)var o=a.listapi+"?action=home";else o=a.listapi+"?action=tongji&addtime="+e+"-"+t;a.$http.get(o).then(function(e){if(0==e.data.code)a.list=e.data.data,a.loading=!1;else{a.$message({type:"error",message:e.data.msg});var t=e.data.date.split("-");a.cxDate.year=t[0],a.cxDate.month=t[1]}},function(e){})},searchFn:function(){var e=this;e.loading=!0;var t=e.search;"{}"!=u()(t)?(console.log(t),e.$http.post(e.listapi+"?action=search",t,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},emulateJSON:!0}).then(function(t){0==t.data.code?(e.list=t.data.data,e.loading=!1):(e.$message({type:"error",message:t.data.msg}),e.loading=!1)},function(e){}),e.search={}):(e.$message({type:"error",message:"请填写查询关键字!"}),e.loading=!1)},reSet:function(){this.search={}},chaxun:function(){void 0==this.cxDate.month&&(this.cxDate.month=""),this.showData(this.cxDate.year,this.cxDate.month)},addFn:function(){var e=this,t=e.add[0];e.$confirm("确认添加？？","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$http.post(e.editapi+"?action=add",t,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},emulateJSON:!0}).then(function(t){e.list=t.data.data,e.$message({type:"success",message:"添加成功!"}),e.add=[{}]},function(t){e.$message({type:"error",message:"添加失败!"})})}).catch(function(){e.$message({type:"info",message:"已取消添加！！"})})},editFn:function(e){this.dialogFormVisible=!0,this.editform=e},submitedit:function(){var e=this,t=e.editform;e.$confirm("确认修改？？","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$http.post(e.editapi+"?action=update",t,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},emulateJSON:!0}).then(function(t){e.list=t.data.data,e.dialogFormVisible=!1,e.$message({type:"success",message:"修改成功!"})},function(t){e.$message({type:"error",message:"修改失败!"})})}).catch(function(){e.$message({type:"info",message:"已取消修改！！"})})},deleteFn:function(e){var t=this,a={};a.id=e.id,t.$confirm("确认删除？？","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$http.post(t.editapi+"?action=del",a,{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},emulateJSON:!0}).then(function(e){t.list=e.data.data,t.$message({type:"success",message:"删除成功!"})},function(e){t.$message({type:"error",message:"删除失败!"})})}).catch(function(){t.$message({type:"info",message:"已取消删除！！"})})},close:function(){this.isShow=0},logout:function(){var e=this;e.$http.get(e.loginapi+"?action=logout").then(function(t){0==t.data.code&&(e.$message({type:"success",message:t.data.msg}),this.$router.push({path:"/login"}))},function(e){})},home:function(){this.$router.push({path:"/"})},server:function(){this.$router.push({path:"/server"})},setting:function(){this.$router.push({path:"/setting"})},selectinputfn:function(e){"自定义"==e&&(this.selectinput=!0)}},mounted:function(){var e=this;e.$http.post(e.listapi+"?action=home",{},{headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},emulateJSON:!0}).then(function(t){if(0==t.data.code){if(e.login=1,e.list=t.data.data,0==t.data.data.length&&e.$message({type:"error",message:t.data.msg}),void 0!=t.data.date){var a=t.data.date.split("-");e.cxDate.year=a[0],e.cxDate.month=a[1]}}else this.$router.push({path:"/login"})},function(e){})},created:function(){}},E={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.login,expression:"login"}],attrs:{id:"app"}},[a("el-container",{staticStyle:{height:"100%"}},[a("el-container",{staticStyle:{overflow:"auto"}},[a("el-header",[a("div",{staticStyle:{float:"right","font-size":"20px"}},[a("i",{staticClass:"el-icon-tickets",on:{click:e.home}}),e._v(" "),a("i",{staticClass:"el-icon-upload",on:{click:e.server}}),e._v(" "),a("i",{staticClass:"el-icon-refresh",on:{click:e.showData}}),e._v(" "),a("el-dropdown",[a("i",{staticClass:"el-icon-setting",staticStyle:{"margin-right":"15px","font-size":"20px"}}),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[e._v(e._s(e.username))]),e._v(" "),a("el-dropdown-item",[a("span",{on:{click:e.setting}},[e._v("个人设置")])]),e._v(" "),a("el-dropdown-item",[a("span",{on:{click:e.logout}},[e._v("注销登录")])])],1)],1)],1),e._v(" "),a("el-button",{on:{click:function(t){e.togglebody=!e.togglebody}}},[a("i",{staticClass:"el-icon-menu"})]),e._v(" "),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.cxDate.year,callback:function(t){e.$set(e.cxDate,"year",t)},expression:"cxDate.year"}},[a("el-option",{attrs:{value:"2018"}},[e._v("2018年")]),e._v(" "),a("el-option",{attrs:{value:"2017"}},[e._v("2017年")]),e._v(" "),a("el-option",{attrs:{value:"2016"}},[e._v("2016年")]),e._v(" "),a("el-option",{attrs:{value:"2015"}},[e._v("2015年")]),e._v(" "),a("el-option",{attrs:{value:"2014"}},[e._v("2014年")])],1),e._v(" "),e._e(),e._v(" "),a("el-button",{attrs:{icon:"el-icon-search",type:"primary"},on:{click:e.chaxun}})],1),e._v(" "),a("el-main",{attrs:{id:"main"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.search.business,callback:function(t){e.$set(e.search,"business",t)},expression:"search.business"}},[a("template",{slot:"prepend"},[e._v("商务：")])],2)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.search.manager,callback:function(t){e.$set(e.search,"manager",t)},expression:"search.manager"}},[a("template",{slot:"prepend"},[e._v("总监：")])],2)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.search.customer,callback:function(t){e.$set(e.search,"customer",t)},expression:"search.customer"}},[a("template",{slot:"prepend"},[e._v("客户名称：")])],2)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.search.domains,callback:function(t){e.$set(e.search,"domains",t)},expression:"search.domains"}},[a("template",{slot:"prepend"},[e._v("域名：")])],2)],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:2,offset:10}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary",size:"small"},on:{click:e.searchFn}},[e._v("查询")])],1),e._v(" "),a("el-col",{attrs:{span:2}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"info",size:"small"},on:{click:e.reSet}},[e._v("清空")])],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:2,offset:20}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-tickets",size:"mini",circle:""},on:{click:e.exportExcel}})],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.add,"show-header":!1,border:"","row-class-name":"success-row"}},[a("el-table-column",{attrs:{sortable:"",prop:"company",label:"分公司",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.add[0].company,callback:function(t){e.$set(e.add[0],"company",t)},expression:"add[0].company"}},[a("el-option",{attrs:{label:"西安",value:"西安"}}),e._v(" "),a("el-option",{attrs:{label:"成都",value:"成都"}}),e._v(" "),a("el-option",{attrs:{label:"郑州",value:"郑州"}}),e._v(" "),a("el-option",{attrs:{label:"武汉",value:"武汉"}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"customer",label:"客户名称","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"客户名称"},model:{value:e.add[0].customer,callback:function(t){e.$set(e.add[0],"customer",t)},expression:"add[0].customer"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"domains",label:"域名","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"域名"},model:{value:e.add[0].domains,callback:function(t){e.$set(e.add[0],"domains",t)},expression:"add[0].domains"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"reason",label:"关闭原因","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==e.selectinput?a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.selectinputfn},model:{value:e.add[0].reason,callback:function(t){e.$set(e.add[0],"reason",t)},expression:"add[0].reason"}},[a("el-option",{attrs:{label:"到期",value:"到期"}}),e._v(" "),a("el-option",{attrs:{label:"尾款",value:"尾款"}}),e._v(" "),a("el-option",{attrs:{label:"备案",value:"备案"}}),e._v(" "),a("el-option",{attrs:{label:"自定义",value:"自定义"}})],1):e._e(),e._v(" "),1==e.selectinput?a("el-input",{attrs:{value:"",placeholder:"自定义"},on:{blur:function(t){e.selectinput=!1}},model:{value:e.add[0].reason,callback:function(t){e.$set(e.add[0],"reason",t)},expression:"add[0].reason"}}):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"qdate",label:"关闭时间","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"关闭时间"},on:{focus:function(t){e.today("qdate",e.add[0])}},model:{value:e.add[0].qdate,callback:function(t){e.$set(e.add[0],"qdate",t)},expression:"add[0].qdate"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"xdate",label:"开放时间","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"开放时间"},model:{value:e.add[0].xdate,callback:function(t){e.$set(e.add[0],"xdate",t)},expression:"add[0].xdate"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"ip",label:"IP","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"IP"},model:{value:e.add[0].ip,callback:function(t){e.$set(e.add[0],"ip",t)},expression:"add[0].ip"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"kefu",label:"客服","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"客服"},model:{value:e.add[0].kefu,callback:function(t){e.$set(e.add[0],"kefu",t)},expression:"add[0].kefu"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"business",label:"商务","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"商务"},model:{value:e.add[0].business,callback:function(t){e.$set(e.add[0],"business",t)},expression:"add[0].business"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"manager",label:"总监","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"总监"},model:{value:e.add[0].manager,callback:function(t){e.$set(e.add[0],"manager",t)},expression:"add[0].manager"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"remarks",label:"备注","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"备注"},model:{value:e.add[0].remarks,callback:function(t){e.$set(e.add[0],"remarks",t)},expression:"add[0].remarks"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{sortable:"",label:"操作",width:"140",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini",type:"success"},on:{click:e.addFn}},[e._v("添加")])]}}])})],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",border:""}},[a("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"company",label:"分公司",width:"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"customer",label:"客户名称","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"domains",label:"域名","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"reason",label:"关闭原因","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"qdate",label:"关闭时间","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"xdate",label:"开放时间","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"ip",label:"IP","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"kefu",label:"客服","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"business",label:"商务","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"manager",label:"总监","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{sortable:"",prop:"remarks",label:"备注","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{trigger:"hover",placement:"bottom"}},[e._v("\n\t\t\t\t\t\t\t\t"+e._s(t.row.remarks)+"\n\t\t\t\t\t\t\t\t"),a("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[e._v("\n\t\t\t\t\t\t\t\t\t"+e._s(t.row.remarks)+"\n\t\t\t\t\t\t\t\t")])])]}}])}),e._v(" "),"open"==e.stat_edit?a("el-table-column",{attrs:{sortable:"",label:"操作",width:"140",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){e.editFn(t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){e.deleteFn(t.row)}}},[e._v("删除")])]}}])}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"编辑",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.editform}},[a("el-form-item",{attrs:{label:"分公司","label-width":"120px"}},[a("el-input",{attrs:{placeholder:"分公司"},model:{value:e.editform.company,callback:function(t){e.$set(e.editform,"company",t)},expression:"editform.company"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"客户名称","label-width":"120px"}},[a("el-input",{attrs:{maxlength:"70"},model:{value:e.editform.customer,callback:function(t){e.$set(e.editform,"customer",t)},expression:"editform.customer"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"域名","label-width":"120px"}},[a("el-input",{attrs:{maxlength:"40"},model:{value:e.editform.domains,callback:function(t){e.$set(e.editform,"domains",t)},expression:"editform.domains"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"关闭原因","label-width":"120px"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editform.reason,callback:function(t){e.$set(e.editform,"reason",t)},expression:"editform.reason"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"关闭日期","label-width":"120px"}},[a("el-input",{attrs:{maxlength:"30","auto-complete":"off"},on:{focus:function(t){e.today("qdate",e.editform)}},model:{value:e.editform.qdate,callback:function(t){e.$set(e.editform,"qdate",t)},expression:"editform.qdate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"开放日期","label-width":"120px"}},[a("el-input",{attrs:{maxlength:"30","auto-complete":"off"},on:{focus:function(t){e.today("xdate",e.editform)}},model:{value:e.editform.xdate,callback:function(t){e.$set(e.editform,"xdate",t)},expression:"editform.xdate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"IP","label-width":"120px"}},[a("el-input",{attrs:{maxlength:"20","auto-complete":"off"},model:{value:e.editform.ip,callback:function(t){e.$set(e.editform,"ip",t)},expression:"editform.ip"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"客服","label-width":"120px"}},[a("el-input",{attrs:{maxlength:"20","auto-complete":"off"},model:{value:e.editform.kefu,callback:function(t){e.$set(e.editform,"kefu",t)},expression:"editform.kefu"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商务代表","label-width":"120px"}},[a("el-input",{attrs:{placeholder:"商务代表"},model:{value:e.editform.business,callback:function(t){e.$set(e.editform,"business",t)},expression:"editform.business"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商务经理","label-width":"120px"}},[a("el-input",{attrs:{placeholder:"商务经理"},model:{value:e.editform.manager,callback:function(t){e.$set(e.editform,"manager",t)},expression:"editform.manager"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注","label-width":"120px"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editform.remarks,callback:function(t){e.$set(e.editform,"remarks",t)},expression:"editform.remarks"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitedit}},[e._v("确 定")])],1)],1)],1)],1)],1)],1)},staticRenderFns:[]};var S=a("vSla")($,E,!1,function(e){a("Twz2")},null,null).exports;o.default.use(l.a);var D=new l.a({mode:"hash",routes:[{path:"/",component:b},{path:"/login",component:y},{path:"/home",component:b},{path:"/setting",component:k},{path:"/server",component:S}]});D.beforeEach(function(e,t,a){console.log("路由到："+e.path),a()}),D.afterEach(function(e){});var R=D,C=a("OolZ"),A=a("ez6v"),q=a.n(A);o.default.use(q.a),o.default.use(l.a),o.default.use(C.a),o.default.use(n.a),o.default.config.debug=!1;new o.default({router:R,render:function(e){return e(c)}}).$mount("#app")},Twz2:function(e,t){},V39H:function(e,t){},V6Nw:function(e,t){},kuTw:function(e,t){}},["NHnr"]);