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
5.8 KiB
1 lines
5.8 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4e45f7d8"],{"5ab6":function(t,e,n){"use strict";n.r(e),n("b0c0");var r=n("c7eb"),a=n("1da1"),u=(n("a434"),n("b562")),o={name:"tag",data:function(){return{FromData:null,loading:!1,tabList:[]}},watch:{$route:function(t,e){this.getList()}},created:function(){this.getList()},methods:{add:function(){var t=this;(this.$route.path===this.$routeProStr+"/app/wechat/wechat_user/user/tag"?this.$modalForm(Object(u.v)()):this.$modalForm(Object(u.n)())).then((function(){return t.getList()}))},edit:function(t){var e=this;(this.$route.path===this.$routeProStr+"/app/wechat/wechat_user/user/tag"?this.$modalForm(Object(u.w)(t.id)):this.$modalForm(Object(u.o)(t.id))).then((function(){return e.getList()}))},del:function(t,e,n){var r=this,a=null;a=this.$route.path===this.$routeProStr+"/app/wechat/wechat_user/user/tag"?{title:e,num:n,url:"app/wechat/tag/".concat(t.id),method:"DELETE",ids:""}:{title:e,num:n,url:"app/wechat/group/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(a).then((function(t){r.$message.success(t.msg),r.tabList.splice(n,1)})).catch((function(t){r.$message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,(this.$route.path===this.$routeProStr+"/app/wechat/wechat_user/user/tag"?Object(u.x):Object(u.p))().then(function(){var e=Object(a.a)(Object(r.a)().mark((function e(n){var a;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.data,t.tabList=a.list.list,t.loading=!1;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList()}}};n=n("2877"),n=Object(n.a)(o,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"save_from ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.add}},[t._v(t._s("添加"+t.$route.meta.title))]),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.tabList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.id))])]}}])}),e("el-table-column",{attrs:{label:"标签名","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.name))])]}}])}),e("el-table-column",{attrs:{label:"人数","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.count))])]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("a",{on:{click:function(e){return t.edit(n.row)}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.del(n.row,"删除标签",n.$index)}}},[t._v("删除")])]}}])})],1)],1)],1)}),[],!1,null,"62a07460",null);e.default=n.exports},b562:function(t,e,n){"use strict";n.d(e,"l",(function(){return a})),n.d(e,"u",(function(){return u})),n.d(e,"q",(function(){return o})),n.d(e,"a",(function(){return c})),n.d(e,"i",(function(){return i})),n.d(e,"j",(function(){return s})),n.d(e,"k",(function(){return d})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return p})),n.d(e,"r",(function(){return f})),n.d(e,"t",(function(){return m})),n.d(e,"s",(function(){return b})),n.d(e,"x",(function(){return w})),n.d(e,"v",(function(){return g})),n.d(e,"w",(function(){return j})),n.d(e,"p",(function(){return O})),n.d(e,"n",(function(){return v})),n.d(e,"o",(function(){return _})),n.d(e,"m",(function(){return E})),n.d(e,"c",(function(){return $})),n.d(e,"b",(function(){return k})),n.d(e,"e",(function(){return y})),n.d(e,"d",(function(){return T})),n("99af");var r=n("6b6c");function a(){return Object(r.a)({url:"app/routine/syncSubscribe",method:"GET"})}function u(){return Object(r.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function o(t){return Object(r.a)({url:"app/wechat/menu",method:"get"})}function c(t){return Object(r.a)({url:"app/wechat/menu",method:"post",data:t})}function i(t){return Object(r.a)({url:t.url,method:"post",data:t.key})}function s(t){return Object(r.a)({url:"app/routine/download",method:"post",data:t})}function d(){return Object(r.a)({url:"app/routine/info",method:"get"})}function l(t){return Object(r.a)({url:"app/wechat/keyword",method:"get",params:t})}function h(t){return Object(r.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function p(t,e){return Object(r.a)({url:t,method:"get",params:e.key})}function f(t){return Object(r.a)({url:"/app/wechat/news",method:"POST",data:t})}function m(t){return Object(r.a)({url:"app/wechat/news",method:"GET",params:t})}function b(t){return Object(r.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function w(){return Object(r.a)({url:"app/wechat/tag",method:"GET"})}function g(){return Object(r.a)({url:"app/wechat/tag/create",method:"GET"})}function j(t){return Object(r.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function O(){return Object(r.a)({url:"app/wechat/group",method:"GET"})}function v(){return Object(r.a)({url:"app/wechat/group/create",method:"GET"})}function _(t){return Object(r.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function E(t){return Object(r.a)({url:"app/wechat/action",method:"GET",params:t})}function $(t){return Object(r.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function k(){return Object(r.a)({url:"setting/city/full_list",method:"GET"})}function y(t){return Object(r.a)({url:"app/kefu/auto_reply/list",method:"get",params:t})}function T(t){return Object(r.a)({url:"app/kefu/auto_reply/form/"+t,method:"get"})}}}]); |