商品评论html,商品评论列表.html

news/2024/7/5 3:27:14

提交

取 消

new Vue({

el: '#app',

data: {

fullLoad:'',dialogVisible:false,

jsonData:{"id":"","type":"edit","list":[{"type":"grid","icon":"icon-grid-","columns":[{"span":8,"list":[{"type":"select","icon":"icon-select","options":{"defaultValue":"1","placeholder":"请选择评论状态","width":"","options":[{"label":"未审核","value":"1"},{"label":"审核通过","value":"2"},{"value":"3","label":"审核拒绝"}],"remoteFunc":"func_1600224935000_46847","labelWidth":"60px","remote":false,"checkAble":["clearable","autosize","新选项","showLabel"]},"remoteOptions":{"keyField":"articleId","valueField":"articleName","remote":false,"remoteFunc":"HttpPost","url":"/sysmgr/systype/list","params":"{\"parentTypeCode\": \"aaaa\"}","endEventDo":"upDataSource","dataFiled":""},"name":"状态","key":"1600224935000_46847","model":"state","rules":[]}]},{"span":8,"list":[{"type":"input","icon":"icon-input","rules":[],"options":{"width":"80%","defaultValue":"","required":false,"dataType":"string","pattern":"","placeholder":"","disabled":false,"check":{},"remoteFunc":"func_1596184567000_74838","checkAble":["clearable"],"labelWidth":"100px"},"name":"关键字","key":"1596184567000_74838","model":"commName"}]},{"span":4,"list":[{"type":"button","icon":"icon-diy-com-textarea","options":{"width":"140px","size":"medium","type":"warning","icon":"","placeholder":"搜索","disabled":false,"plain":false,"round":false,"circle":false,"autofocus":false,"remoteFunc":"func_1594536588000_16800","labelWidth":"20px","checkAble":["clearable"]},"actions":{"remoteFunc":"qryCommInfoList","url":"qryCommInfoList","params":"{\"industryId\":10000}","endEventDo":"upPageDataSource","dataFiled":"listData"},"name":"","key":"1600236630000_12867","model":"searchBtn","rules":[]}]},{"span":4,"list":[{"type":"button","icon":"icon-diy-com-textarea","options":{"width":"140px","size":"medium","type":"warning","icon":"","placeholder":"审核","disabled":false,"plain":false,"round":false,"circle":false,"autofocus":false,"remoteFunc":"func_1594536588000_16800","labelWidth":"20px","checkAble":["clearable"]},"actions":{"remoteFunc":"postShInforeloadList","url":"qryCommInfoList","params":"{\"industryId\":10000}","endEventDo":"upPageDataSource","dataFiled":"listData"},"name":"","key":"1594536588000_16800","model":"shBtn","rules":[]}]}],"options":{"gutter":0,"justify":"start","align":"top","remoteFunc":"func_1594535694000_6466","labelWidth":"100px","width":"auto","htmlStyle":"background-color: #fff;padding: 20px;border: solid 1px #f0f0f0;border-radius: 3px;"},"name":"栅格布局","key":"1594535694000_6466","model":"grid_1594535694000_6466","rules":[]},{"type":"table","icon":"icon-table","columns":[{"span":"6","prop":"commentId","label":"评论ID","type":"null","fixed":false,"width":"160","sortable":false,"resizable":true,"align":"left","list":[]},{"span":"6","prop":"code-27","label":"头像","type":"scope","fixed":false,"width":"80","sortable":false,"resizable":true,"align":"center","list":[{"type":"avatar","icon":"icon-tupianyulan","options":{"defaultValue":"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg","customClass":"","remoteFunc":"func_1596091590000_89660","labelWidth":"auto","width":"auto","size":"medium","fit":"fill","shape":"square"},"name":"","key":"1596091590000_89660","model":"USER_AVATAR","rules":[],"input_1593620080000_12696":"用户"}]},{"span":"6","prop":"code-1","label":"商品信息","type":"scope","fixed":false,"width":"300","sortable":false,"resizable":true,"align":"left","list":[{"type":"text","icon":"icon-wenzishezhi-","options":{"defaultValue":" ","customClass":"","remoteFunc":"func_1599729715000_26323"},"name":"评论人","key":"1599729715000_26323","model":"userName","rules":[]},{"type":"text","icon":"icon-wenzishezhi-","options":{"defaultValue":"-","customClass":"","remoteFunc":"func_1596090310000_91074","checkAble":["clearable","autosize"],"labelWidth":"auto"},"name":"商品ID","key":"1596090310000_91074","model":"commId","rules":[]},{"type":"text","icon":"icon-wenzishezhi-","options":{"defaultValue":"-","customClass":"","remoteFunc":"func_1596090313000_49595","checkAble":["clearable","autosize"]},"name":"商品名称","key":"1596090313000_49595","model":"goodsName","rules":[]}]},{"span":"6","prop":"evaluateCon","label":"评论信息","type":"null","fixed":false,"width":"","sortable":false,"resizable":true,"align":"left","list":[]},{"span":"6","prop":"seled","label":"选择","type":"selection","fixed":false,"width":"50","sortable":false,"resizable":true,"align":"left","list":[]}],"options":{"height":"auto","size":"","rowKey":"id","emptyText":"暂无数据","fit":true,"stripe":false,"border":true,"showHeader":true,"defaultExpandAll":false,"showSummary":false,"highlightCurrentRow":true,"remote":false,"remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_1594534425000_9938","width":"auto","checkAble":["clearable","round","remote","fit","showHeader","highlightCurrentRow"],"labelWidth":"100px","htmlStyle":"min-height:400px;border-top:solid 1px #eee;margin-top: 10px;"},"remoteOptions":{"keyField":"commentId","valueField":"commName","remoteFunc":"qryCommInfoList","url":"qryCommInfoList","params":"{\"parentTypeCode\": \"aaaa\"}","endEventDo":"upPageDataSource","children":"children","dataFiled":"listData"},"name":"表格","key":"1594534425000_9938","model":"table_1594534425000_9938","rules":[]},{"type":"pagination","icon":"icon-diy-com-textarea","options":{"width":"auto","size":"medium","type":"primary","placeholder":"分页组件","labelWidth":"auto","pageSize":10,"prevText":"上一页","nextText":"下一页","layout":"total, sizes, prev, pager, next, jumper","checkAble":["clearable","round","hide-on-single-page","small"],"remoteFunc":"func_1596100431000_94157","htmlStyle":"margin:20px 10px;text-align:center"},"actions":{"remoteFunc":"qryCommInfoList","url":"qryCommInfoList","params":"{\"parentTypeCode\": \"aaaa\"}","endEventDo":"upPageDataSource","dataFiled":"listData","remote":true},"name":"","key":"1596100431000_94157","model":"pagination_1596100431000_94157","rules":[],"input_1593620080000_12696":"分页"}],"config":{"labelWidth":"auto","labelPosition":"right","size":"medium","remoteOptions":{"valueField":"articleName","remote":false,"remoteFunc":"HttpPost","url":"/sysmgr/systype/list","params":"{\"parentTypeCode\": \"aaaa\"}","endEventDo":"upDataSource","keyField":"articleId","dataFiled":""},"labelSuffix":":"}},

jsonData2: {"list":[{"type":"radio","icon":"icon-radio-active","options":{"inline":true,"defaultValue":"2","showLabel":true,"options":[{"value":"2","label":"通过"},{"value":"3","label":"不通过"}],"width":"","remote":false,"checkAble":["showLabel"],"remoteFunc":"func_1600228469000_17486"},"remoteOptions":{"keyField":"articleId","valueField":"articleName","remote":false,"remoteFunc":"HttpPost","url":"/sysmgr/systype/list","params":"{\"parentTypeCode\": \"aaaa\"}","endEventDo":"upDataSource","dataFiled":""},"name":"审核状态","key":"1600228469000_17486","model":"state","rules":[]},{"type":"textarea","icon":"icon-diy-com-textarea","options":{"width":"","defaultValue":"","required":false,"disabled":false,"pattern":"","placeholder":"","remoteFunc":"func_1600228476000_90849"},"name":"审核意见","key":"1600228476000_90849","model":"auditRemrk","rules":[]}],"config":{"labelWidth":"100px","labelPosition":"right","size":"small","customClass":""}},

editData: {},editData2: {},

remoteFuncs: {

}

},

created () {

console.info('--------------created' )

this.remoteFuncs.qryCommInfoList=this.qryCommInfoList;

this.remoteFuncs.postShInforeloadList=this.postShInforeloadList;

},

methods: {

/*查询评论列表*/

qryCommInfoList(widget, models, resolve){

let that=this;

console.info('--------------qryCommInfoList:',widget,models,this.editData)

let remoteOptions=widget && (widget.remoteOptions || widget.actions);

if(!remoteOptions ){

return;

}

that.fullLoad= this.$loading({

lock: true,

text: '加载中...',

spinner: 'el-icon-loading',

background: 'rgba(255, 255, 255, 0.8)'

});

let postUrl='http://10.81.93.41:8080/cocenter/intf/queryCommentList';

let postData= {"reqHead":{},"reqBody":{}}

if(models.commId){

postData.reqBody.commId=models.commId

}

if(models.commName){

postData.reqBody.commName=models.commName

}

if(models.commCode){

postData.reqBody.commCode=models.commCode

}

postData.reqBody.state= models.state || '1';

postData.reqBody.currPage=1

if(widget.model == "searchBtn"){

postData.reqBody.currPage=1;

}

else if(models.currentPage){

postData.reqBody.currPage=models.currentPage

}

if(models.pageSize){

postData.reqBody.pageSize=models.pageSize

}else {

postData.reqBody.pageSize=10

}

//postData.reqBody=Object.assign({},qryParams)

axios.post(postUrl, postData).then(function(response) {

let rspInfo=response.data ;

console.info('--------------qryCommInfoList rspInfo:',rspInfo)

let rspData=rspInfo.rspData ;

let tableData={};

tableData[remoteOptions.dataFiled]=[];

tableData.pageSize=postData.reqHead.pageSize;

tableData.currentPage=postData.reqHead.currPage;

tableData.total=0;

if(rspData && rspData.total>0){

tableData.total=rspData.total;

rspData.rows.forEach(item=>{

let tempa=Object.assign({},item)

tempa.pCommentId=tempa.commentId;

tempa.commentId="rrrr"+Math.random();

item.children=[];

item.children.push(tempa)

// if(!item.children){

// return;

// }

// rspData.rows.forEach(child2=>{

// child2.pCommentId=child2.commentId;

// child2.commentId=child2.replyId;

// })

})

console.info('----------------table rows ',rspData.rows)

tableData[remoteOptions.dataFiled]=rspData.rows;

}

resolve(tableData)

that.fullLoad.close();

});

},

/*表格的链接按钮事件*/

postShInforeloadList(widget, models, resolve){

console.info('---------------------------postShInforeloadList',widget,models,this.editData )

//window.parent.parentChangeTab(widget.actions.url+"?commId="+models.COMM_ID,"商品修改:"+models.COMM_NAME)

this.dialogVisible =!this.dialogVisible;

//获取是否有选中数据

//this.models['listData']

},

handleSubmit () {

let that=this;

this.$refs.editPage2.getData().then(data => {

for(let p in data){

that.editData2[p]=data[p];

}

that.postSH();

}).catch(e => {

})

},

postdata( ){

let that=this;

console.info('--------------postSH:',that.editData2)

let postUrl='http://10.81.93.41:8080/cocenter/intf/auditCommentList';

let postData= {

reqHead:{},

reqBody:{ }

}

postData.reqBody=Object.assign({},that.editData2) ;

axios.post(postUrl, postData).then(function(response) {

let rspInfo=response.data ;

console.info('--------------queryMerTypePage rspInfo:',rspInfo)

let arr=rspInfo.rspData && rspInfo.rspData.rows;

console.info('--------------queryMerTypePage arr:',arr)

if(arr && arr.length>0){

resolve(arr)

}else {

resolve([])

}

});

},

}

})

.apppanel{

margin:10px 20px;min-width: 700px;

}

.el-form-item {

margin-bottom: 2px;

}

.el-table td, .el-table th {

padding: 1px 0px;

}

.el-table__header th{

height: 50px;background-color: #f9f9f9;

}

.el-table--border td, .el-table--border th, .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {

border-right: dodgerblue;

}

一键复制

编辑

Web IDE

原始数据

按行查看

历史


http://lihuaxi.xjx100.cn/news/236245.html

相关文章

RSA签名的PSS模式

本文由云社区发表作者:mariolu 一、什么是PSS模式? 1.1、两种签名方式之一RSA-PSS PSS (Probabilistic Signature Scheme)私钥签名流程的一种填充模式。目前主流的RSA签名包括RSA-PSS和RSA-PKCS#1 v1.5。相对应PKCS(Public Key Cryptography …

185.dubbo 后台管理系统

2019独角兽企业重金招聘Python工程师标准>>> 1. 效果及目的 效果: 目的:查看 管理服务 2. 启动要求 (1)项目是dubbo (2)jdk 1.7 (3) dubbo的war要与zookeeper在同一台服务上 3. 安装zookeeper 要…

标签选择器用于修改html元素默认的样式,html – 为什么CSS选择器与 sign(直接子)覆盖默认样式?...

问题不是子组合器(>),它是color属性,它是可继承的。虽然颜色属性的初始值因浏览器而异,但继承是常见的。这意味着元素的文本颜色从父代继承。您在代码中看到这一点。相反,border属性是不可继承的。请注意,与文字颜色…

03基于python玩转人工智能最火框架之TensorFlow介绍

一句话介绍: Google开源的基于数据流图的科学计算库,适用于机器学习 不局限于机器学习,但目前被大多用于机器学习等。 TensorFlow计算流图的概念图 Tensor在图中流动。 TensorFlow的含义 拆字释义: Tensor 张量(tf中数据的表征) flow 流动 张量在图中流…

C#无符号右移

/// <summary>/// 无符号右移&#xff0c;与JS中的>>>等价/// </summary>/// <param name"x">要移位的数</param>/// <param name"y">移位数</param>/// <returns></returns>public static int …

小程序大转盘红包雨营销组件

前言 商城没几个营销活动能叫商城吗&#xff1f;所以就来几个组件吧&#xff0c;写的不好轻踩&#xff0c;对你有帮助记得给个小星星哦直接上链接github链接 运行例子 git clone https://github.com/sunnie1992/soul-weapp.git 微信开发者工具打开项目 营销组件 大转盘 "p…

基于PHP+MySQL音乐相册网站的设计与实现

音乐是人们生活的调剂品,它可以陶冶人们的情操,同事旅游照相成了大家必不可少放松项目。虽然照片最后会存入到自己的电脑里,但是时间一长、照片一多,这些有着勾起回忆的“资料”,就会显得杂乱无章,即不方便欣赏,也不方便管理。而在线相册具有欣赏、传播方便,界面美观等特点,可以…

html 表单内容怎么获取不到,jquery中formdate一直获取不到对象中的[0]的值 包括本身也是一个空的数据怎么办?...

jquery中formdate一直获取不到对象中的[0]的值 包括本身也是一个空的数据怎么办&#xff1f;再做一个前台的ajax方法 查网上用formdate方法上传。可是进了接口之后一直在控制台获取不到formdate的值包括formdate[0]的值也一样 接口应该是没有问题 因为用传统的表单submit提交也…