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 lines
17 KiB
1 lines
17 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b49e6eae"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,n){var i=r(),s=e-i,c=20,d=0;t="undefined"===typeof t?500:t;var m=function e(){d+=c;var r=Math.easeInOutQuad(d,i,s,t);o(r),d<t?a(e):n&&"function"===typeof n&&n()};m()}},"0e19":function(e,t,n){"use strict";var a=n("4218"),o=n.n(a);o.a},1975:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"comment_manage_page"},[n("div",{staticClass:"content"},[n("el-tabs",{on:{"tab-click":e.selectItem},model:{value:e.formParams.type,callback:function(t){e.$set(e.formParams,"type",t)},expression:"formParams.type"}},e._l(e.tabList,(function(e,t){return n("el-tab-pane",{key:t,attrs:{label:e.name,name:e.id}})})),1),n("div",{staticClass:"toolbar"},[n("el-form",{attrs:{inline:!0,model:e.formParams}},[n("el-form-item",{attrs:{label:"商家名称"}},[n("el-input",{attrs:{size:"mini"},model:{value:e.formParams.storeName,callback:function(t){e.$set(e.formParams,"storeName",t)},expression:"formParams.storeName"}})],1),n("el-form-item",{attrs:{label:"商家编码"}},[n("el-input",{attrs:{size:"mini"},model:{value:e.formParams.tenantCode,callback:function(t){e.$set(e.formParams,"tenantCode",t)},expression:"formParams.tenantCode"}})],1),n("el-form-item",{attrs:{label:"商品ID"}},[n("el-input",{attrs:{size:"mini"},model:{value:e.formParams.productId,callback:function(t){e.$set(e.formParams,"productId",t)},expression:"formParams.productId"}})],1),n("el-form-item",{attrs:{label:"关键词"}},[n("el-input",{attrs:{size:"mini"},model:{value:e.formParams.keyword,callback:function(t){e.$set(e.formParams,"keyword",t)},expression:"formParams.keyword"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.query}},[e._v(" 查询 ")]),n("el-button",{attrs:{plain:"",size:"mini"},on:{click:e.reset}},[e._v(" 重置 ")])],1)],1)],1),n("div",{staticClass:"content_table"},[n("div",{staticClass:"table"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData.commentDTOList,border:""}},[n("el-table-column",{attrs:{prop:"storeName",label:"商家名称"}}),n("el-table-column",{attrs:{prop:"tenantCode",label:"商家编码"}}),n("el-table-column",{attrs:{prop:"productId",label:"商品ID"}}),n("el-table-column",{attrs:{prop:"memberAccount",label:"评论人"}}),n("el-table-column",{attrs:{prop:"createTime",label:"评论日期"}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(n){return n.preventDefault(),e.details(t.row)}}},[e._v(" 查看 ")]),n("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(n){return n.preventDefault(),e.handle(t.row)}}},[e._v(" "+e._s(t.row.hideFlag?"显示":"隐藏")+" ")]),n("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(n){return n.preventDefault(),e.deletes(t.row.id)}}},[e._v(" 删除 ")])]}}])})],1)],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:e.formParams.pageSize,page:e.formParams.pageIndex,total:Number(e.tableData.total)},on:{"update:limit":function(t){return e.$set(e.formParams,"pageSize",t)},"update:page":function(t){return e.$set(e.formParams,"pageIndex",t)},pagination:e.fetch}})],1)],1),n("Dialog",{attrs:{title:e.dialog.title,visible:e.dialog.visible,fullscreen:!1,"before-close":e.close,width:"55%"},on:{"update:visible":function(t){return e.$set(e.dialog,"visible",t)}}},[e.dialog.visible?n("detail",{attrs:{info:e.dialog.info},on:{deletes:e.deletes,handle:e.handle}}):e._e()],1)],1)},o=[],r=(n("96cf"),n("1da1")),i=n("333d"),s=n("9590"),c=n("5c96"),d=n("f56f"),m={components:{Pagination:i["a"],Dialog:c["Dialog"],detail:s["a"]},data:function(){return{formParams:{keyword:"",storeName:"",tenantCode:"",productId:"",pageSize:10,pageIndex:1,type:"1"},date:[],tableData:{},tabList:[{name:"全部评论",id:"1"},{name:"敏感评论",id:"2"}],dialog:{}}},created:function(){this.getList()},methods:{getList:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,d["a"].getList(e.formParams);case 2:n=t.sent,a=n.data,0===a.code&&(e.tableData=a.data);case 5:case"end":return t.stop()}}),t)})))()},query:function(){this.getList()},details:function(e){this.dialog={title:"评论详情",visible:!0,info:e}},handle:function(e){var t=this,n=e||t.dialog.info,a={id:n.id,action:n.hideFlag?1:2},o=n.hideFlag?"显示":"隐藏";t.$confirm("确定要".concat(o,"该评论"),"".concat(o,"评论"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].handleComment(a).then((function(e){0===e.data.code&&(t.getList(),t.$message.success("".concat(o,"成功")))}))}))},deletes:function(e){var t=this,n={id:e||t.dialog.info.id,action:3};t.$confirm("删除后将无法恢复评论","删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].handleComment(n).then((function(e){0===e.data.code&&(t.dialog={},t.getList(),t.$message.success("删除成功"))}))}))},reset:function(){this.formParams={keyword:"",storeName:"",tenantCode:"",productId:"",pageSize:10,pageIndex:1}},fetch:function(){this.getList()},selectItem:function(){this.getList()},close:function(){this.dialog={}}}},u=m,l=(n("0e19"),n("2877")),f=Object(l["a"])(u,a,o,!1,null,"4221cf8e",null);t["default"]=f.exports},"27ae":function(e,t,n){(function(n){var a,o;(function(t,n){e.exports=n(t)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n?n:this,(function(n){"use strict";n=n||{};var r,i=n.Base64,s="2.6.4",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(e){for(var t={},n=0,a=e.length;n<a;n++)t[e.charAt(n)]=n;return t}(c),m=String.fromCharCode,u=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?m(192|t>>>6)+m(128|63&t):m(224|t>>>12&15)+m(128|t>>>6&63)+m(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return m(240|t>>>18&7)+m(128|t>>>12&63)+m(128|t>>>6&63)+m(128|63&t)},l=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,f=function(e){return e.replace(l,u)},p=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),a=[c.charAt(n>>>18),c.charAt(n>>>12&63),t>=2?"=":c.charAt(n>>>6&63),t>=1?"=":c.charAt(63&n)];return a.join("")},h=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,p)},b=function(e){return h(f(String(e)))},g=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},v=function(e,t){return t?g(b(e)):b(e)},y=function(e){return v(e,!0)};n.Uint8Array&&(r=function(e,t){for(var n="",a=0,o=e.length;a<o;a+=3){var r=e[a],i=e[a+1],s=e[a+2],d=r<<16|i<<8|s;n+=c.charAt(d>>>18)+c.charAt(d>>>12&63)+("undefined"!=typeof i?c.charAt(d>>>6&63):"=")+("undefined"!=typeof s?c.charAt(63&d):"=")}return t?g(n):n});var w,C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,S=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return m(55296+(n>>>10))+m(56320+(1023&n));case 3:return m((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return m((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},O=function(e){return e.replace(C,S)},x=function(e){var t=e.length,n=t%4,a=(t>0?d[e.charAt(0)]<<18:0)|(t>1?d[e.charAt(1)]<<12:0)|(t>2?d[e.charAt(2)]<<6:0)|(t>3?d[e.charAt(3)]:0),o=[m(a>>>16),m(a>>>8&255),m(255&a)];return o.length-=[0,0,2,1][n],o.join("")},P=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,x)},K=function(e){return P(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},A=function(e){return O(P(e))},T=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},j=function(e){return A(T(e))};n.Uint8Array&&(w=function(e){return Uint8Array.from(K(T(e)),(function(e){return e.charCodeAt(0)}))});var _=function(){var e=n.Base64;return n.Base64=i,e};if(n.Base64={VERSION:s,atob:K,btoa:h,fromBase64:j,toBase64:v,utob:f,encode:v,encodeURI:y,btou:O,decode:j,noConflict:_,fromUint8Array:r,toUint8Array:w},"function"===typeof Object.defineProperty){var L=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",L((function(){return j(this)}))),Object.defineProperty(String.prototype,"toBase64",L((function(e){return v(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",L((function(){return v(this,!0)})))}}return n["Meteor"]&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:(a=[],o=function(){return n.Base64}.apply(t,a),void 0===o||(e.exports=o)),{Base64:n.Base64}}))}).call(this,n("c8ba"))},4218:function(e,t,n){},"4fad":function(e,t,n){var a=n("23e7"),o=n("6f53").entries;a({target:"Object",stat:!0},{entries:function(e){return o(e)}})},"6f53":function(e,t,n){var a=n("83ab"),o=n("df75"),r=n("fc6a"),i=n("d1e7").f,s=function(e){return function(t){var n,s=r(t),c=o(s),d=c.length,m=0,u=[];while(d>m)n=c[m++],a&&!i.call(s,n)||u.push(e?[n,s[n]]:s[n]);return u}};e.exports={entries:s(!0),values:s(!1)}},9256:function(e,t,n){"use strict";n("99af"),n("4160"),n("caad"),n("4fad"),n("d3b7"),n("159b");var a=n("5530"),o=n("bc3a"),r=n.n(o),i=n("5c96"),s=n("5657"),c=n("27ae");function d(e,t){"ECONNABORTED"===e.code?Object(i["Message"])({message:"请求超时"}):e.response&&e.response.data?Object(i["Message"])({message:e.response.data}):e.message&&Object(i["Message"])({message:e.message}),t(e)}function m(e,t){e.data.isError&&(4e4===e.data.code||40001===e.data.code||40002===e.data.code||40003===e.data.code||40005===e.data.code||40006===e.data.code||40008===e.data.code?i["MessageBox"].alert(e.data.msg,"提醒",{confirmButtonText:"确定",callback:function(){window.location.hash="/login"}}):i["Message"].error(e.data.msg)),t(e)}r.a.interceptors.request.use((function(e){var t=!1!==e.headers["X-isToken"]||e.headers["X-isToken"],n=s["a"].get("TOKEN","");n&&t&&(e.headers.token="Bearer "+n);var a="ceres_admin_web",o="ceres_admin_web";return e.headers["Authorization"]="Basic ".concat(c["Base64"].encode("".concat(a,":").concat(o))),e}),(function(e){return Promise.reject(e)})),r.a.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var u=function(e){var t={ts:Date.now()},n=e.method.toUpperCase(),o={method:n,url:"".concat("https://pos.api.admin.gznl.top").concat(e.url),responseType:e.responseType||"",timeout:2e4},i=["PUT","POST","PATCH"];i.includes(n)?o.data=e.data||{}:o.params=Object(a["a"])(Object(a["a"])({},t),e.data||{}),e.formData&&(o.transformRequest=[function(e){var t=new FormData;return e&&Object.entries(e).forEach((function(e){t.append(e[0],e[1])})),t}]);var s=new Promise((function(e,t){r()(o).then((function(t){m(t,e)})).catch((function(e){d(e,t)}))}));return s};t["a"]=u},9590:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"detail_page"},[n("ul",[e.info.sensitiveFlag?n("li",[n("p",[e._v("敏感词")]),n("p",[e._v(e._s(e.info.sensitiveKeywordList.join()))])]):e._e(),e._l(e.list,(function(t,a){return n("li",{key:a,class:[{active_li:e.info.additionalComment&&2===a}],attrs:{time:e.time}},[t.show?n("p",[e._v(e._s(t.name))]):e._e(),t.show?n("p",[1===t.type?n("span",[e._v(e._s(t.value))]):n("span",e._l(t.imgList,(function(e,t){return n("img",{key:t,attrs:{src:e,alt:""}})})),0)]):e._e()])}))],2),n("div",{staticClass:"btn_list"},[n("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v(e._s(e.info.hideFlag?"显示":"隐藏"))]),n("el-button",{staticClass:"delete",on:{click:e.deletes}},[e._v("删除")])],1)])},o=[];n("d81d"),n("ac1f"),n("1276");function r(e,t,n){var a=new Date(t).getTime()-new Date(e).getTime(),o=a/6e4,r=o/60;return o<60&&!n?"".concat(o,"分钟"):r<24&&!n?"".concat(r,"小时"):"".concat(parseInt(r/24),"天")}var i={props:{info:{type:Object,default:function(){}}},data:function(){return{list:[{name:"评论",value:"商品好看有实用,强烈推荐购买。这台电脑买来不是玩游戏的,没那爱好。主要用来给孩子上网课,大人偶尔会看看电影视频这些,所以配的4K显示器。京东快递很麻利,从山东调货,隔天就到了,非常感谢。",type:1,fields:"commentText"},{name:"图片",value:"商品好看有实用,强烈推荐购买。这台电脑买来不是玩游戏的,没那爱好。主要用来给孩子上网课,大人偶尔会看看电影视频这些,所以配的4K显示器。京东快递很麻利,从山东调货,隔天就到了,非常感谢。",type:2,imgList:["http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg"],fields:"commentImgs"},{name:"追评",value:"机器外观精致小巧,性能也足够家用。",type:1,fields:"additionalComment",fieldsItem:"commentText"},{name:"图片",value:"机器外观精致小巧,性能也足够家用。",type:2,imgList:["http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg"],fields:"additionalComment",fieldsItem:"commentImgs"}],time:""}},watch:{info:{handler:function(){this.getList()},deep:!0}},created:function(){this.getList()},methods:{getList:function(){var e=this;e.list.map((function(t){e.info[t.fields]&&(t.value=e.info[t.fields],t.show=!0,"additionalComment"===t.fields&&(t.value=e.info.additionalComment[t.fieldsItem],"commentImgs"===t.fieldsItem&&(t.imgList=e.info.additionalComment.commentImgsFlag?e.info.additionalComment.commentImgs.split(","):[],t.show=e.info.additionalComment.commentImgsFlag)),"commentImgs"===t.fields&&(t.imgList=e.info.commentImgsFlag?e.info.commentImgs.split(","):[],t.show=e.info.commentImgsFlag))})),e.info.additionalComment&&(e.time="".concat(r(e.info.createTime,e.info.additionalComment.createTime),"后追加评论"))},deletes:function(){this.$emit("deletes")},confirm:function(){this.$emit("handle")}}},s=i,c=(n("bef6"),n("2877")),d=Object(c["a"])(s,a,o,!1,null,"4cc9bd96",null);t["a"]=d.exports},ac6f:function(e,t,n){},bef6:function(e,t,n){"use strict";var a=n("ac6f"),o=n.n(a);o.a},f56f:function(e,t,n){"use strict";var a=n("9256"),o={getList:"/comment/findCommentList",handleComment:"/comment/handleComment",getSensitiveKeywordList:"/comment/findSensitiveKeywordList",setSensitiveKeyword:"/comment/updateSensitiveKeywordSetting",addSensitiveKeyword:"/comment/addSensitiveKeyword",editSensitiveKeyword:"/comment/updateSensitiveKeyword",deleteSensitiveKeyword:"/comment/deleteSensitiveKeyword",getCommentKeywordList:"/comment/findCommentKeywordList",setCommentKeywordList:"/comment/updateCommentKeywordSetting",addCommentKeyword:"/comment/addCommentKeyword",editCommentKeyword:"/comment/updateCommentKeyword",deleteCommentKeyword:"/comment/deleteCommentKeyword"};t["a"]={getList:function(e){return Object(a["a"])({method:"POST",url:o.getList,data:e})},handleComment:function(e){return Object(a["a"])({method:"POST",url:o.handleComment,data:e})},getSensitiveKeywordList:function(e){return Object(a["a"])({method:"POST",url:o.getSensitiveKeywordList,data:e})},setSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.setSensitiveKeyword,data:e})},addSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.addSensitiveKeyword,data:e})},editSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.editSensitiveKeyword,data:e})},deleteSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.deleteSensitiveKeyword,data:e})},getCommentKeywordList:function(e){return Object(a["a"])({method:"POST",url:o.getCommentKeywordList,data:e})},setCommentKeywordList:function(e){return Object(a["a"])({method:"POST",url:o.setCommentKeywordList,data:e})},addCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:o.addCommentKeyword,data:e})},editCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:o.editCommentKeyword,data:e})},deleteCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:o.deleteCommentKeyword,data:e})}}}}]); |