"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[64194],{41813:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"g-pa-md g-bg-white"},[t("el-form",{attrs:{model:e.form,inline:""}},[t("el-form-item",{attrs:{prop:"time",label:"时间"}},[t("el-date-picker",{attrs:{type:"datetimerange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.time,callback:function(t){e.$set(e.form,"time",t)},expression:"form.time"}})],1),t("el-form-item",{attrs:{prop:"deviceCode",label:"设备ID"}},[t("el-input",{attrs:{placeholder:"请输入设备ID"},model:{value:e.form.deviceCode,callback:function(t){e.$set(e.form,"deviceCode",t)},expression:"form.deviceCode"}})],1),t("el-form-item",{attrs:{prop:"productId",label:"商品ID"}},[t("el-input",{attrs:{placeholder:"请输入商品ID"},model:{value:e.form.productId,callback:function(t){e.$set(e.form,"productId",t)},expression:"form.productId"}})],1),t("el-form-item",{attrs:{prop:"type",label:"反馈类型"}},[t("el-select",{attrs:{clearable:""},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[t("el-option",{attrs:{label:"用户满意度",value:1}}),t("el-option",{attrs:{label:"商品负反馈",value:2}})],1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("查询")]),t("el-button",{attrs:{type:"primary"},on:{click:e.doExport}},[e._v("导出")])],1)],1),t("el-table",{attrs:{data:e.dataSource.records||[]}},[t("el-table-column",{attrs:{align:"center","header-align":"center",prop:"deviceCode",label:"设备ID"}}),t("el-table-column",{attrs:{align:"center","header-align":"center",prop:"productId",label:"商品ID"}}),t("el-table-column",{attrs:{align:"center","header-align":"center",prop:"typeDesc",label:"反馈类型"}}),t("el-table-column",{attrs:{align:"center","header-align":"center",prop:"starCode",label:"评分"}}),t("el-table-column",{attrs:{align:"center","header-align":"center",prop:"userId",label:"用户ID"}}),t("el-table-column",{attrs:{align:"center","header-align":"center",prop:"sceneType",label:"场景类型",formatter:e=>1===e.sceneType?"首页瀑布流":"ME页面"}}),t("el-table-column",{attrs:{align:"center","header-align":"center",prop:"configId",label:"理由ID"}}),t("el-table-column",{attrs:{align:"center","header-align":"center",prop:"reason",label:"理由详情"}}),t("el-table-column",{attrs:{align:"center","header-align":"center",prop:"remark",label:"更多理由"}}),t("el-table-column",{attrs:{align:"center","header-align":"center",prop:"updateTime",label:"时间"}})],1),t("div",{staticClass:"g-pagination-container"},[t("el-pagination",{attrs:{"current-page":e.dataSource.pageNow,"page-sizes":[20,50,100],"page-size":e.dataSource.pageSize,layout:"sizes, prev, pager, next, jumper",background:"",total:e.dataSource.rowCount},on:{"size-change":function(t){return e.doPageChange(null,t)},"current-change":function(t){return e.doPageChange(t)}}})],1)],1)},l=[],o=a(7896),n={data(){return{form:{deviceCode:"",time:[],pageNow:0,pageSize:0,productId:null,type:null},dataSource:{records:[]},pageNow:1,pageSize:20}},mounted(){this.doSearch()},methods:{doSearch(){this.pageNow=1,this.getList()},getParams(){const e={...this.form,pageNow:this.pageNow,pageSize:this.pageSize};return this.form.time&&2===this.form.time.length&&(e.startTime=this.form.time[0],e.endTime=this.form.time[1]),e},doExport(){(0,o.Ne)("/comment/userBadFeedback/export",{...this.getParams()})},getList(){const e=this.getParams();this.$store.dispatch({type:"comment/getFeedbackRecordPage",payload:e}).then((e=>{e&&(this.dataSource=e||{records:[]})}))},doPageChange(e,t){e&&(this.pageNow=e),t&&(this.pageSize=t),this.getList()}}},i=n,c=a(81656),s=(0,c.A)(i,r,l,!1,null,"652e970a",null),p=s.exports}}]);