徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jiuhaoshenghuo/public/view_admin/js/chunk-b1401f58.c331b31d.js

1 line
14 KiB

4 months ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b1401f58"],{"1cde":function(t,e,n){},"37e8":function(t,e,n){"use strict";n.r(e);var r=n("a584"),o=n("9b41"),a=n("61f7"),u=n("d708"),c={data:function(){return{roterPre:u.a.roterPre,cardLists:[],optionData:{},style:{height:"400px"},spinShow:!1,tableColumn:[{title:"员工",key:"name",minWidth:100},{title:"发表状态",slot:"status",minWidth:100},{title:"发送时间",slot:"create_time",minWidth:100},{title:"已送达客户",slot:"external_user_list",minWidth:150}],tabIndex:0,tableData:[],userLoading:!1,timeVal:[],tableForm:{page:1,limit:15,status:"",moment_id:"",userid:""}}},filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(a.a)(e,"yyyy-MM-dd hh:mm")}}},components:{cardsData:r.a},mounted:function(){this.getData()},methods:{getList:function(){var t=this;this.userLoading=!0,Object(o.S)(this.tableForm).then((function(e){t.tableData=e.data,t.userLoading=!1})).catch((function(e){t.userLoading=!1,t.$Message.error(e.msg)}))},getData:function(){var t=this;Object(o.R)(this.$route.params.id).then((function(e){t.tableForm.moment_id=e.data.moment_id,e.data.moment_id&&t.getList(),t.cardLists=[{col:6,count:e.data.info.externalUserCount,name:"已送达客户",type:1,className:"iconjinrixinzeng"},{col:6,count:e.data.info.userCount,name:"全部成员",type:1,className:"iconjinrituiqun"},{col:6,count:e.data.info.unSendUserCount,name:"未发送成员",type:1,className:"icondangqianqunchengyuan"},{col:6,count:e.data.info.sendUserCount,name:"已发送成员",type:1,className:"iconleijituiqun"}]}))},sendMsg:function(t,e){var n=this;Object(o.O)({userid:t.msg_id,time:t.create_time,id:""}).then((function(t){n.$Message.success(t.msg)})).catch((function(t){n.$Message.error(t.msg)}))},search:function(){this.tableForm.page=1,this.getList()},pageChange:function(t){this.tableForm.page=t,this.getList()}}},i=(n("ef0e"),n("2877")),s=Object(i.a)(c,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("div",{staticClass:"float-l"},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/work/client/moment")}}},[e("div",{staticClass:"font-sm after-line"},[e("span",{staticClass:"iconfont iconfanhui"}),e("span",{staticClass:"pl10"},[t._v("返回")])])])],1),e("span",{staticClass:"mr20 ml16"},[t._v("朋友圈详情")])])])],1),t.cardLists.length>=0?e("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),e("Card",{attrs:{bordered:!1,"dis-hover":""}},[e("Form",{ref:"formValidate",attrs:{"label-width":96,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"发送状态:"}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},model:{value:t.tableForm.status,callback:function(e){t.$set(t.tableForm,"status",e)},expression:"tableForm.status"}},[e("Option",{attrs:{value:"0"}},[t._v("未发送")]),e("Option",{attrs:{value:"1"}},[t._v("已发送")])],1),e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1)],1),e("Table",{attrs:{columns:t.tableColumn,data:t.tableData.list,loading:t.userLoading},scopedSlots:t._u([{key:"sendResult",fn:function(n){var r=n.row;return[e("span",[t._v(t._s(r.sendResult.num_count))])]}},{key:"create_time",fn:function(n){var r=n.row;return[e("span",[t._v(t._s(t._f("formatDate")(r.create_time)))])]}},{key:"status",fn:function(n){var r=n.row;return[1==r.status?e("Tag",{attrs:{color:"green",size:"medium"}},[t._v("已发表")]):t._e(),0==r.status?e("Tag",{attrs:{color:"red",size:"medium"}},[t._v("未发表")]):t._e()]}},{key:"external_user_list",fn:function(n){var r=n.row;return t._l(r.external_user_list,(function(n,r){return e("span",{key:r},[t._v(t._s(n)+",")])}))}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.tableData.count,current:t.tableForm.page,"show-elevator":"","show-total":"","page-size":t.tableForm.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"26eb4cbe