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 line
8.7 KiB
1 line
8.7 KiB
1 year ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-96f91f8c"],{"0d39":function(t,e,n){"use strict";n("84571")},5085:function(t,e,n){"use strict";n.r(e);var a=n("c7eb"),r=n("1da1"),i=n("5530"),o=(n("a434"),n("b562")),u=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(u.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.e)(this.formValidate).then(function(){var e=Object(r.a)(Object(a.a)().mark((function e(n){var r;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tabList=r.list,t.total=n.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.g)(t).then(function(){var t=Object(r.a)(Object(a.a)().mark((function t(n){return Object(a.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(n.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(){var t=this;this.$modalForm(Object(o.d)(0)).then((function(){return t.getList()}))},edit:function(t){var e=this;this.$modalForm(Object(o.d)(t.id)).then((function(){return e.getList()}))},del:function(t,e,n){var a=this;e={title:e,num:n,url:"app/kefu/auto_reply/del/".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)}))}}},n("0d39"),u=n("2877"),n=Object(u.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:"图片消息"}})],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(n){return[e("span",[t._v(t._s(n.row.id))])]}}])}),e("el-t
|