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.
1 lines
14 KiB
1 lines
14 KiB
(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",null);e.default=s.exports},"607d":function(t,e,n){"use strict";n("1cde")},"61f7":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var r in n)if(new RegExp("(".concat(r,")")).test(e)){var o=n[r]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?o:i(o))}return e}function i(t){return("00"+t).substr(t.length)}n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return f}));var s={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},l=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function d(t){return a({required:!0,message:t,type:"string"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function f(t){return m.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}l(d,"请输入%s"),l(f,"%s格式不正确");var m=Object.keys(s).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="range"===e?{min:t[0],max:t[1]}:u({},e,t);return a(a({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),r)},l(t[e],s[e]),t}),{})},"9b41":function(t,e,n){"use strict";n.d(e,"V",(function(){return o})),n.d(e,"P",(function(){return a})),n.d(e,"U",(function(){return u})),n.d(e,"y",(function(){return c})),n.d(e,"v",(function(){return i})),n.d(e,"x",(function(){return s})),n.d(e,"w",(function(){return l})),n.d(e,"z",(function(){return d})),n.d(e,"s",(function(){return f})),n.d(e,"k",(function(){return m})),n.d(e,"j",(function(){return p})),n.d(e,"E",(function(){return b})),n.d(e,"u",(function(){return h})),n.d(e,"F",(function(){return g})),n.d(e,"Q",(function(){return w})),n.d(e,"G",(function(){return _})),n.d(e,"J",(function(){return O})),n.d(e,"W",(function(){return j})),n.d(e,"h",(function(){return v})),n.d(e,"g",(function(){return y})),n.d(e,"t",(function(){return k})),n.d(e,"m",(function(){return C})),n.d(e,"c",(function(){return x})),n.d(e,"b",(function(){return L})),n.d(e,"a",(function(){return S})),n.d(e,"i",(function(){return P})),n.d(e,"d",(function(){return D})),n.d(e,"D",(function(){return F})),n.d(e,"H",(function(){return $})),n.d(e,"I",(function(){return M})),n.d(e,"f",(function(){return E})),n.d(e,"N",(function(){return R})),n.d(e,"M",(function(){return N})),n.d(e,"l",(function(){return q})),n.d(e,"T",(function(){return T})),n.d(e,"e",(function(){return z})),n.d(e,"L",(function(){return W})),n.d(e,"K",(function(){return I})),n.d(e,"O",(function(){return U})),n.d(e,"B",(function(){return H})),n.d(e,"r",(function(){return J})),n.d(e,"q",(function(){return V})),n.d(e,"n",(function(){return A})),n.d(e,"o",(function(){return B})),n.d(e,"p",(function(){return G})),n.d(e,"A",(function(){return K})),n.d(e,"R",(function(){return Q})),n.d(e,"S",(function(){return Y})),n.d(e,"C",(function(){return X}));var r=n("b6bd");function o(){return Object(r.a)({url:"work/tree",method:"get"})}function a(){return Object(r.a)({url:"work/label",method:"get"})}function u(){return Object(r.a)({url:"work/synchMember",method:"post"})}function c(){return Object(r.a)({url:"work/channel/cate",method:"get"})}function i(){return Object(r.a)({url:"work/channel/cate/create",method:"get"})}function s(t){return Object(r.a)({url:"/work/channel/cate/".concat(t,"/edit"),method:"get"})}function l(t){return Object(r.a)({url:"/work/channel/cate/".concat(t),method:"delete"})}function d(t){return Object(r.a)({url:"work/channel/code",method:"get",params:t})}function f(t){return Object(r.a)({url:"work/channel/code",method:"post",data:t})}function m(t){return Object(r.a)({url:"work/channel/code/".concat(t),method:"get"})}function p(t){return Object(r.a)({url:"work/channel/code/client",method:"get",params:t})}function b(t,e){return Object(r.a)({url:"work/channel/code/".concat(t),method:"put",data:e})}function h(t){return Object(r.a)({url:"work/channel/code/bactch/cate",method:"post",data:t})}function g(){return Object(r.a)({url:"work/department",method:"get"})}function w(t){return Object(r.a)({url:"work/member",method:"get",params:t})}function _(t){return Object(r.a)({url:"work/group_chat",method:"get",params:t})}function O(){return Object(r.a)({url:"work/group_chat/synch",method:"post"})}function j(t){return Object(r.a)({url:"work/welcome",method:"post",data:t})}function v(t){return Object(r.a)({url:"work/welcome",method:"get",params:t})}function y(t){return Object(r.a)({url:"work/welcome/".concat(t),method:"get"})}function k(t,e){return Object(r.a)({url:"work/welcome/".concat(t),method:"put",data:e})}function C(t){return Object(r.a)({url:"work/group_chat_auth",method:"post",data:t})}function x(t){return Object(r.a)({url:"work/group_chat_auth",method:"get",params:t})}function L(t){return Object(r.a)({url:"work/group_chat_auth/".concat(t),method:"get"})}function S(t,e){return Object(r.a)({url:"work/group_chat_auth/".concat(t),method:"put",data:e})}function P(t){return Object(r.a)({url:"work/client",method:"get",params:t})}function D(t){return Object(r.a)({url:"work/group_chat/member",method:"get",params:t})}function F(){return Object(r.a)({url:"work/client/synch",method:"get"})}function $(t){return Object(r.a)({url:"work/group_chat/statistics",method:"get",params:t})}function M(t){return Object(r.a)({url:"work/group_chat/statisticsList",method:"get",params:t})}function E(t){return Object(r.a)({url:"work/group_template",method:"get",params:t})}function R(t){return Object(r.a)({url:"work/group_template",method:"post",data:t})}function N(t){return Object(r.a)({url:"work/group_template/".concat(t),method:"get"})}function q(t){return Object(r.a)({url:"work/moment",method:"get",params:t})}function T(t){return Object(r.a)({url:"/work/moment",method:"post",data:t})}function z(t){return Object(r.a)({url:"work/group_template_chat",method:"get",params:t})}function W(t){return Object(r.a)({url:"work/group_template_chat",method:"post",data:t})}function I(t){return Object(r.a)({url:"work/group_template_chat/".concat(t),method:"get"})}function U(t){return Object(r.a)({url:"work/group_template/sendMessage",method:"post",data:t})}function H(t){return Object(r.a)({url:"work/client/count",method:"post",data:t})}function J(t,e){return Object(r.a)({url:"work/group_template/memberList/".concat(t),method:"get",params:e})}function V(t,e){return Object(r.a)({url:"work/group_template/clientList/".concat(t),method:"get",params:e})}function A(t,e){return Object(r.a)({url:"work/group_template_chat/groupChatList/".concat(t),method:"get",params:e})}function B(t,e){return Object(r.a)({url:"work/group_template_chat/groupChatOwnerList/".concat(t),method:"get",params:e})}function G(t){return Object(r.a)({url:"work/group_template_chat/getOwnerChatList",method:"get",params:t})}function K(t){return Object(r.a)({url:"work/client/batchLabel",method:"post",data:t})}function Q(t){return Object(r.a)({url:"work/moment/".concat(t),method:"get"})}function Y(t){return Object(r.a)({url:"work/moment_list",method:"get",params:t})}function X(t,e){return Object(r.a)({url:"work/client/".concat(t),method:"put",data:e})}},a584:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=o(o(o({name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),"methods",{}),"created",(function(){})),u=(n("607d"),n("2877")),c=Object(u.a)(a,(function(){var t=this,e=t._self._c;return e("div",[e("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:16}},t._l(t.cardLists,(function(n,r){return e("Col",{key:r,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:n.col}}},[e("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[e("div",{staticClass:"card_box"},[e("div",{staticClass:"card_box_cir",class:{one:r%5==0,two:r%5==1,three:r%5==2,four:r%5==3,five:r%5==4}},[e("div",{staticClass:"card_box_cir1",class:{one1:r%5==0,two1:r%5==1,three1:r%5==2,four1:r%5==3,five1:r%5==4}},[n.type?e("span",{staticClass:"iconfont",class:n.className}):e("Icon",{attrs:{type:n.className}})],1)]),e("div",{staticClass:"card_box_txt"},[e("span",{staticClass:"sp1",domProps:{textContent:t._s(n.count||0)}}),e("span",{staticClass:"sp2",domProps:{textContent:t._s(n.name)}})])])])],1)})),1)],1)}),[],!1,null,"4e72687f",null);e.a=c.exports},ef0e:function(t,e,n){"use strict";n("fe47")},fe47:function(t,e,n){}}]); |