93067aede6df35b73f52.js 4.8 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[29],{424:function(t,e,n){},475:function(t,e,n){"use strict";var o=n(424);n.n(o).a},527:function(t,e,n){"use strict";n.r(e);n(187),n(30);var o=n(3),r={data:function(){return{tableData:[],pageSize:20,totalCount:40,dialogFormVisible:!1,currentPage:1,form:{id:null,note:""}}},created:function(){this.getTableData()},methods:{showConfirm:function(t){this.form.id=t.id,this.dialogFormVisible=!0},changePagination:function(t){this.currentPage=t,this.getTableData()},clickDev:function(t){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/user/".concat(t))},confirm:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("/api/admin/kaifawu/markContact",t.form);case 2:1==(n=e.sent).status?(t.$message({message:n.info,type:"success"}),t.getTableData()):t.$message({message:n.info,type:"fail"});case 4:case"end":return e.stop()}}),e)})))()},getTableData:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,body,o,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.tableData=[],n=t.currentPage,body={page:n},e.next=5,t.$post("/api/admin/kaifawu/getContactList",body);case 5:o=e.sent,data=o.data,t.tableData=data.lists,t.pageSize=data.pageSize,t.totalCount=Number(data.total);case 10:case"end":return e.stop()}}),e)})))()}}},l=(n(475),n(2)),component=Object(l.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{attrs:{id:"dev_check"}},[n("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),n("section",{staticClass:"table"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[n("el-table-column",{attrs:{prop:"providerTitle",label:"解决方案"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"lblue point"},[n("nuxt-link",{attrs:{target:"_blank",to:{path:"/main/solution_detail?id="+e.row.providerId}}},[t._v(t._s(e.row.providerTitle))])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"用户",width:"66"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.uid?n("span",[t._v("来宾用户")]):n("span",{staticClass:"lblue point",on:{click:function(n){return t.clickDev(e.row.uid)}}},[t._v(t._s(e.row.uid))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"姓名"}}),t._v(" "),n("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),t._v(" "),n("el-table-column",{attrs:{prop:"contactCreatedAtFormat",label:"创建时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"channel",label:"渠道"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.channel)+" "+t._s(e.row.channelVersion))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"platformContactNote",label:"联系备注"}}),t._v(" "),n("el-table-column",{attrs:{prop:"platformContactAtFormat",label:"联系时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"platformContact",label:"当前状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.platformContact?n("p",[t._v("未联系")]):n("p",[t._v("已联系")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"platformContactAdmin.nickname",label:"操作人"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作",prop:"platformContact"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.platformContact?n("p",[n("el-button",{attrs:{type:"primary"},on:{click:function(n){return t.showConfirm(e.row)}}},[t._v("确认联系")])],1):t._e()]}}])})],1)],1),t._v(" "),n("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.totalCount},on:{"current-change":t.changePagination,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}}),t._v(" "),n("el-dialog",{attrs:{title:"确认联系",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[n("el-form",{ref:"roleForm",attrs:{model:t.form,rules:t.rules}},[n("el-form-item",{attrs:{label:"备注","label-width":"120px"}},[n("el-input",{attrs:{type:"textarea"},model:{value:t.form.note,callback:function(e){t.$set(t.form,"note",e)},expression:"form.note"}})],1)],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.confirm("roleForm")}}},[t._v("确 定")])],1)],1)],1)}),[],!1,null,"785f6148",null);e.default=component.exports}}]);