| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[62],{519:function(t,e,n){},660:function(t,e,n){"use strict";n(519)},784:function(t,e,n){"use strict";n.r(e);var o=n(6),r=(n(191),n(30),{data:function(){return{loading:!1,tableData:[],pageSize:20,totalCount:40,dialogFormVisible:!1,currentPage:1,form:{id:null,content:"",type:2}}},created:function(){this.getTableData()},methods:{onContact:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.$post("/api/admin/kaifawu/markContact",{id:t.id});case 2:1==(o=n.sent).status?(e.$message({message:o.info,type:"success"}),e.getTableData()):e.$message({message:o.info,type:"fail"});case 4:case"end":return n.stop()}}),n)})))()},showConfirm:function(t){if(0==t.platformContact)return this.$message({message:"请先联系,在备注",type:"fail"}),!1;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/remark",t.form);case 2:1==(n=e.sent).status&&(t.$message({message:n.info,type:"success"}),t.getTableData(),t.dialogFormVisible=!1);case 4:case"end":return e.stop()}}),e)})))()},onToList:function(t){var data={obj_id:t.id,type:2};this.$router.push({path:"/main/remark_list",query:data})},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(660),n(4)),component=Object(l.a)(r,(function(){var t=this,e=t._self._c;return e("section",{attrs:{id:"dev_check"}},[e("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 e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),e("section",{staticClass:"table"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData}},[e("el-table-column",{attrs:{prop:"providerTitle",label:"解决方案"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{staticClass:"lblue point"},[e("nuxt-link",{attrs:{target:"_blank",to:{path:"/main/solution_detail?id="+n.row.providerId}}},[t._v(t._s(n.row.providerTitle))])],1)]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"用户",width:"66"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.uid?e("span",[t._v("来宾用户")]):e("span",{staticClass:"lblue point",on:{click:function(e){return t.clickDev(n.row.uid)}}},[t._v(t._s(n.row.uid))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"姓名"}}),t._v(" "),e("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),t._v(" "),e("el-table-column",{attrs:{prop:"contactCreatedAtFormat",label:"创建时间"}}),t._v(" "),e("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(" "),e("el-table-column",{attrs:{prop:"platformContactNote",label:"历史备注"}}),t._v(" "),e("el-table-column",{attrs:{prop:"platformContactNote",label:"备注",width:"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onToList(n.row)}}},[t._v("查看备注("+t._s(n.row.remark_num)+")")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"platformContactAtFormat",label:"联系时间"}}),t._v(" "),e("el-table-column",{attrs:{prop:"platformContact",label:"当前状态"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.platformContact?e("p",[t._v("未联系")]):e("p",[t._v("已联系")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"platformContactAdmin.nickname",label:"操作人"}}),t._v(" "),e("el-table-column",{attrs:{label:"操作",prop:"platformContact",width:"200"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.platformContact?e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onContact(n.row)}}},[t._v("确认联系")]):t._e(),t._v(" "),e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.showConfirm(n.row)}}},[t._v("添加备注")])]}}])})],1)],1),t._v(" "),e("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(" "),e("el-dialog",{attrs:{title:"确认联系",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[e("el-form",{ref:"roleForm",attrs:{model:t.form,rules:t.rules}},[e("el-form-item",{attrs:{label:"备注","label-width":"120px"}},[e("el-input",{attrs:{type:"textarea"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1)],1),t._v(" "),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.confirm("roleForm")}}},[t._v("确 定")])],1)],1)],1)}),[],!1,null,"c3e4e096",null);e.default=component.exports}}]);
|