new_naweigete/crmeb/public/admin/dist/system_static/js/chunk-12faac12.48a65e29.js
2025-03-13 09:24:48 +08:00

1 line
8.6 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-12faac12"],{"06d3":function(t,e,a){a("2448")},2430:function(t,e,a){a.r(e);var n=a("c7eb"),r=a("1da1"),i=a("5530"),o=(a("14d9"),a("a434"),a("b562")),c=a("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.c)("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.d)(this.formValidate).then((()=>{var e=Object(r.a)(Object(n.a)().mark((function e(a){var r;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.tabList=r.list,t.total=a.data.count,t.loading=!1;case 4: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)}))},onchangeIsShow:function(t){var e=this;t={id:t.id,status:t.status};Object(o.e)(t).then((()=>{var t=Object(r.a)(Object(n.a)().mark((function t(a){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(a.msg);case 1:case"end":return t.stop()}}),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,a){var n=this;e={title:e,num:a,url:"app/wechat/keyword/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){n.$message.success(t.msg),n.tabList.splice(a,1)})).catch((function(t){n.$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)}))}}},a("06d3"),c=a("2877"),a=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",{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",{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(a){return[e("span",[t._v(t._s(a.row.id))])]}}])}),e("el-table-column",{attrs:{label:"关键字","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.key))])]}}])}),e("el-table-column",{attrs:{label:"回复类型","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.type))])]}}])}),e("el-table-column",{attrs:{label:"是否显示","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-switch",{staticClass:"defineSwitch",attrs:{"active-value":1,"inactive-value":0,value:a.row.status,size:"large","active-text":"显示","inactive-text":"隐藏"},on:{change:function(e){return t.onchangeIsShow(a.row)}},model:{value:a.row.status,callback:function(e){t.$set(a.row,"status",e)},expression:"scope.row.status"}})]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("a",{on:{click:function(e){return t.edit(a.row)}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.del(a.row,"关键字回复",a.$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,"47bbf1a4",null);e.default=a.exports},2448:function(t,e,a){},b562:function(t,e,a){a.d(e,"j",(function(){return r})),a.d(e,"s",(function(){return i})),a.d(e,"o",(function(){return o})),a.d(e,"a",(function(){return c})),a.d(e,"g",(function(){return u})),a.d(e,"h",(function(){return l})),a.d(e,"i",(function(){return s})),a.d(e,"d",(function(){return d})),a.d(e,"e",(function(){return p})),a.d(e,"f",(function(){return f})),a.d(e,"p",(function(){return m})),a.d(e,"r",(function(){return h})),a.d(e,"q",(function(){return b})),a.d(e,"v",(function(){return w})),a.d(e,"t",(function(){return v})),a.d(e,"u",(function(){return g})),a.d(e,"n",(function(){return y})),a.d(e,"l",(function(){return k})),a.d(e,"m",(function(){return O})),a.d(e,"k",(function(){return j})),a.d(e,"c",(function(){return _})),a.d(e,"b",(function(){return x})),a("99af");var n=a("6b6c");function r(){return Object(n.a)({url:"app/routine/syncSubscribe",method:"GET"})}function i(){return Object(n.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function o(t){return Object(n.a)({url:"app/wechat/menu",method:"get"})}function c(t){return Object(n.a)({url:"app/wechat/menu",method:"post",data:t})}function u(t){return Object(n.a)({url:t.url,method:"post",data:t.key})}function l(t){return Object(n.a)({url:"app/routine/download",method:"post",data:t})}function s(){return Object(n.a)({url:"app/routine/info",method:"get"})}function d(t){return Object(n.a)({url:"app/wechat/keyword",method:"get",params:t})}function p(t){return Object(n.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function f(t,e){return Object(n.a)({url:t,method:"get",params:e.key})}function m(t){return Object(n.a)({url:"/app/wechat/news",method:"POST",data:t})}function h(t){return Object(n.a)({url:"app/wechat/news",method:"GET",params:t})}function b(t){return Object(n.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function w(){return Object(n.a)({url:"app/wechat/tag",method:"GET"})}function v(){return Object(n.a)({url:"app/wechat/tag/create",method:"GET"})}function g(t){return Object(n.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function y(){return Object(n.a)({url:"app/wechat/group",method:"GET"})}function k(){return Object(n.a)({url:"app/wechat/group/create",method:"GET"})}function O(t){return Object(n.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function j(t){return Object(n.a)({url:"app/wechat/action",method:"GET",params:t})}function _(t){return Object(n.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function x(){return Object(n.a)({url:"setting/city/full_list",method:"GET"})}}}]);