CRMEB/crmeb/public/admin/system_static/js/chunk-0f5d378e.9883c8c6.js
2026-03-23 14:57:47 +08:00

1 line
9.9 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0f5d378e"],{2430:function(t,e,n){n.r(e);var a=n("c14f"),r=n("1da1"),i=n("5530"),o=(n("14d9"),n("a434"),n("b562")),c=n("2f62");i={name:"keyword",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,formValidate:{key:"",type:"",page:1,limit:20},tabList:[],total:0,columns1:[{title:"ID",key:"id",width:80},{title:"关键字",key:"key",minWidth:120},{title:"回复类型",key:"type",minWidth:150},{title:"是否显示",slot:"status",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:120}],modal:!1,qrcode:""}},created:function(){this.getList()},computed:Object(i.a)(Object(i.a)({},Object(c.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{getList:function(){var t=this;this.loading=!0,Object(o.f)(this.formValidate).then((()=>{var e=Object(r.a)(Object(a.a)().m((function e(n){var r;return Object(a.a)().w((function(e){for(;;)switch(e.n){case 0:r=n.data,t.tabList=r.list,t.total=n.data.count,t.loading=!1;case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}})()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},onchangeIsShow:function(t){var e=this;t={id:t.id,status:t.status};Object(o.g)(t).then((()=>{var t=Object(r.a)(Object(a.a)().m((function t(n){return Object(a.a)().w((function(t){for(;;)switch(t.n){case 0:e.$message.success(n.msg);case 1:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}})()).catch((function(t){e.$message.error(t.msg)}))},userSearchs:function(){this.formValidate.page=1,this.getList()},add:function(){this.$router.push({path:this.$routeProStr+"/app/wechat/reply/keyword/save/0"})},edit:function(t){this.$router.push({path:this.$routeProStr+"/app/wechat/reply/keyword/save/"+t.id})},del:function(t,e,n){var a=this;e={title:e,num:n,url:"app/wechat/keyword/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){a.$message.success(t.msg),a.tabList.splice(n,1)})).catch((function(t){a.$message.error(t.msg)}))},download:function(t){var e=this;Object(o.c)(t.id).then((function(t){e.modal=!0,e.qrcode=t.data.url})).catch((function(t){e.$message.error(t.msg)}))}}},n("cd02"),c=n("2877"),n=Object(c.a)(i,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"levelFrom",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"回复类型:",prop:"type","label-for":"type"}},[e("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},on:{change:t.userSearchs},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[e("el-option",{attrs:{value:"text",label:"文字消息"}}),e("el-option",{attrs:{value:"image",label:"图片消息"}}),e("el-option",{attrs:{value:"news",label:"图文消息"}}),e("el-option",{attrs:{value:"voice",label:"声音消息"}})],1)],1),e("el-form-item",{attrs:{label:"关键字:",prop:"key","label-for":"key"}},[e("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入关键字"},model:{value:t.formValidate.key,callback:function(e){t.$set(t.formValidate,"key",e)},expression:"formValidate.key"}})],1),e("el-form-item",[e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1)]),e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:t.add}},[t._v("添加关键字")]),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.key))])]}}])}),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.typeName))])]}}])}),e("el-table-column",{attrs:{label:"是否显示","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{staticClass:"defineSwitch",attrs:{"active-value":1,"inactive-value":0,value:n.row.status,size:"large","active-text":"显示","inactive-text":"隐藏"},on:{change:function(e){return t.onchangeIsShow(n.row)}},model:{value:n.row.status,callback:function(e){t.$set(n.row,"status",e)},expression:"scope.row.status"}})]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.edit(n.row)}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.del(n.row,"关键字回复",n.$index)}}},[t._v("删除")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1),e("el-dialog",{attrs:{visible:t.modal,title:"二维码"},on:{"update:visible":function(e){t.modal=e}}},[e("div",{staticClass:"acea-row row-around"},[e("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"QRpic"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.qrcode,expression:"qrcode"}]})])])])])],1)}),[],!1,null,"583fdf33",null);e.default=n.exports},"36e8":function(t,e,n){},b562:function(t,e,n){n.d(e,"t",(function(){return r})),n.d(e,"C",(function(){return i})),n.d(e,"y",(function(){return o})),n.d(e,"a",(function(){return c})),n.d(e,"i",(function(){return u})),n.d(e,"p",(function(){return l})),n.d(e,"q",(function(){return s})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return f})),n.d(e,"j",(function(){return p})),n.d(e,"n",(function(){return m})),n.d(e,"o",(function(){return h})),n.d(e,"m",(function(){return b})),n.d(e,"f",(function(){return w})),n.d(e,"g",(function(){return v})),n.d(e,"h",(function(){return g})),n.d(e,"z",(function(){return y})),n.d(e,"B",(function(){return O})),n.d(e,"A",(function(){return j})),n.d(e,"F",(function(){return k})),n.d(e,"D",(function(){return _})),n.d(e,"E",(function(){return x})),n.d(e,"x",(function(){return E})),n.d(e,"v",(function(){return S})),n.d(e,"w",(function(){return $})),n.d(e,"u",(function(){return T})),n.d(e,"c",(function(){return V})),n.d(e,"b",(function(){return G})),n.d(e,"e",(function(){return C})),n.d(e,"d",(function(){return L})),n.d(e,"s",(function(){return N})),n.d(e,"r",(function(){return P})),n("99af");var a=n("6b6c");function r(){return Object(a.a)({url:"app/routine/syncSubscribe",method:"GET"})}function i(){return Object(a.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function o(t){return Object(a.a)({url:"app/wechat/menu",method:"get"})}function c(t){return Object(a.a)({url:"app/wechat/menu",method:"post",data:t})}function u(t){return Object(a.a)({url:t.url,method:"post",data:t.key})}function l(t){return Object(a.a)({url:"app/routine/download",method:"post",data:t})}function s(){return Object(a.a)({url:"app/routine/info",method:"get"})}function d(){return Object(a.a)({url:"app/routine/ci/environment",method:"get"})}function f(){return Object(a.a)({url:"app/routine/ci/guide",method:"get"})}function p(){return Object(a.a)({url:"app/routine/ci/config",method:"get"})}function m(t){return Object(a.a)({url:"app/routine/ci/private_key",method:"post",data:t})}function h(t){return Object(a.a)({url:"app/routine/ci/upload",method:"post",data:t})}function b(t){return Object(a.a)({url:"app/routine/ci/preview",method:"post",data:t})}function w(t){return Object(a.a)({url:"app/wechat/keyword",method:"get",params:t})}function v(t){return Object(a.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function g(t,e){return Object(a.a)({url:t,method:"get",params:e.key})}function y(t){return Object(a.a)({url:"/app/wechat/news",method:"POST",data:t})}function O(t){return Object(a.a)({url:"app/wechat/news",method:"GET",params:t})}function j(t){return Object(a.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function k(){return Object(a.a)({url:"app/wechat/tag",method:"GET"})}function _(){return Object(a.a)({url:"app/wechat/tag/create",method:"GET"})}function x(t){return Object(a.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function E(){return Object(a.a)({url:"app/wechat/group",method:"GET"})}function S(){return Object(a.a)({url:"app/wechat/group/create",method:"GET"})}function $(t){return Object(a.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function T(t){return Object(a.a)({url:"app/wechat/action",method:"GET",params:t})}function V(t){return Object(a.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function G(){return Object(a.a)({url:"setting/city/full_list",method:"GET"})}function C(t){return Object(a.a)({url:"app/kefu/auto_reply/list",method:"get",params:t})}function L(t){return Object(a.a)({url:"app/kefu/auto_reply/form/"+t,method:"get"})}function N(t){return Object(a.a)({url:"app/routine/scheme_list",method:"get",params:t})}function P(t){return Object(a.a)({url:"app/routine/scheme_form/".concat(t),method:"get"})}},cd02:function(t,e,n){n("36e8")}}]);