7 lines
7.7 KiB
JavaScript
7 lines
7.7 KiB
JavaScript
|
/*!
|
||
|
* build: vue-admin-beautiful
|
||
|
* vue-admin-beautiful author: chuzhixin 1204505056@qq.com
|
||
|
* vue-admin-beautiful QQ Group(QQ群): 972435319、1139183756
|
||
|
* time: 2024-10-10 11:14:28
|
||
|
*/
|
||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e9c537e","chunk-2d224962"],{a0fa:function(e,t,a){"use strict";a.r(t);var o=a("f2bf");const i={class:"manage-container"},l={class:"manage-button"};function c(e,t,a,c,n,r){const s=Object(o["resolveComponent"])("el-button"),d=Object(o["resolveComponent"])("el-table-column"),b=Object(o["resolveComponent"])("el-table"),h=Object(o["resolveComponent"])("el-pagination"),p=Object(o["resolveComponent"])("repair-edit"),g=Object(o["resolveComponent"])("show-data"),u=Object(o["resolveDirective"])("loading");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",i,[Object(o["createElementVNode"])("div",l,[Object(o["createVNode"])(s,{type:"primary",size:"small",onClick:t[0]||(t[0]=e=>r.handleAdd())},{default:Object(o["withCtx"])(()=>t[1]||(t[1]=[Object(o["createTextVNode"])(" 添加 ")])),_:1}),Object(o["createVNode"])(s,{type:"primary",size:"small",onClick:r.deletes},{default:Object(o["withCtx"])(()=>[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"])]),Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createBlock"])(b,{id:"table",data:n.tableData,stripe:"",border:"",style:{width:"100%"},onSelectionChange:r.handleSelectionChange},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(d,{type:"selection",width:"55"}),Object(o["createVNode"])(d,{fixed:"",prop:"id",label:"ID",width:"60",align:"center"}),Object(o["createVNode"])(d,{prop:"keyword",label:"关键词",width:"80",align:"center"}),Object(o["createVNode"])(d,{prop:"matchType.dataValue",label:"关键词匹配类型",width:"130",align:"center"}),Object(o["createVNode"])(d,{prop:"msgType.dataValue",label:"回复消息类型",width:"120",align:"center"}),Object(o["createVNode"])(d,{prop:"textContent",label:"文本内容",align:"center"},{default:Object(o["withCtx"])(({row:e})=>[Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(e.textContent),1)]),_:1}),Object(o["createVNode"])(d,{prop:"materialType.dataValue",label:"素材类型",width:"100",align:"center"}),Object(o["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),width:"120",align:"center"},{default:Object(o["withCtx"])(({row:t})=>[Object(o["createVNode"])(s,{type:"text",onClick:e=>r.handleEdit(t)},{default:Object(o["withCtx"])(()=>[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(o["createVNode"])(s,{type:"text",onClick:e=>r.handleDelete(t)},{default:Object(o["withCtx"])(()=>[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])),[[u,n.listLoading]]),Object(o["createVNode"])(h,{background:n.background,"current-page":n.queryForm.page,layout:n.layout,"page-size":n.queryForm.size,total:n.total,style:{"text-align":"right"},onCurrentChange:r.handleCurrentChange,onSizeChange:r.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(o["createVNode"])(p,{ref:"edit"},null,512),Object(o["createVNode"])(g,{ref:"show"},null,512)])}a("14d9");var n=a("4cfb"),r=a("0b9b"),s=a("e188"),d={components:{repairEdit:r["default"],showData:s["default"]},data(){return{tableData:[],repairTypeData:[],ids:[],dialogVisible:!1,dialogVisibleImg:!1,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20}}},created(){},methods:{keywordsIndex(){this.fetchData()},showData(e){this.$refs["show"].showMaterialData(e)},async fetchData(){this.listLoading=!0;const{data:e}=await Object(n["getKeywordReplyList"])(this.queryForm);this.tableData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t,console.log(this.ids)},deletes(){const e=this.ids;if(0==e.length)return this.$messa
|