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.
crmeb_php/public/mer/js/chunk-a97676f4.26f0e8e2.js

1 line
10 KiB

12 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a97676f4"],{"32e2":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加关键字")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"service_reply_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"keyword",label:"关键字","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"回复类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return["1"==e.row.type?a("span",[t._v("文字消息")]):t._e(),t._v(" "),"2"==e.row.type?a("span",[t._v("图片消息")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.edit(e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.service_reply_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableData.limit,"current-page":t.tableData.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?a("el-dialog",{staticClass:"addDia",attrs:{visible:t.dialogVisible,title:t.message_id?"编辑":"添加",height:"30%","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"box-card right ml50"},[a("el-form",{ref:"formValidate",staticClass:"mt20",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"关键字:",prop:"val"}},[a("div",{staticClass:"arrbox"},[t._l(t.labelarr,(function(e,i){return a("el-tag",{key:i,staticClass:"mr5",attrs:{type:"success",closable:"","disable-transitions":!1},on:{close:function(a){return t.handleClose(e)}}},[t._v(t._s(e))])})),t._v(" "),a("el-input",{staticClass:"arrbox_ip",staticStyle:{width:"90%"},attrs:{size:"mini",placeholder:"输入后回车"},on:{change:t.addlabel},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}})],2)]),t._v(" "),a("el-form-item",{attrs:{label:"规则状态:"}},[a("el-radio-group",{model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},[a("el-radio",{attrs:{label:1}},[t._v("启用")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("禁用")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"消息类型:",prop:"type"}},[a("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:"请选择规则状态"},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},t._l(t.typeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),"1"==t.formValidate.type?a("el-form-item",{attrs:{label:"规则内容:",prop:"content"}},[a("el-input",{staticStyle:{width:"90%"},attrs:{type:"textarea",placeholder:"请填写<EFBFBD>