提交 114f89e0 authored 作者: 陆's avatar

更改评论

上级 f2d89fb7
......@@ -102,14 +102,15 @@
}
#newapp {
box-sizing: border-box;
/*min-width: 1000px;*/
min-width: 800px;
/*width: 100%;*/
height: 600px;
margin: 0 auto;
position: fixed;
z-index: 99;
background: #fff;
top: 0;
top: 10%;
left: 20%;
}
#newapp .ui-jqgrid .ui-jqgrid-bdiv{
height:auto!important;
......@@ -193,6 +194,13 @@
<i-input v-model="tbCfItemComment.itemId" placeholder="选择商品"/>
</div>
</Form-item>
<!-- 选择商品属性-->
<Form-item label="商品属性" prop="type" style="width: 500px" v-show="tbCfItemComment.itemId">
<i-select v-model="tbCfItemComment.attributs" placeholder="请选择"/>
<i-option v-for="v in goodslist" :value="v">{{v}}</i-option>
</i-select>
</Form-item>
<Form-item label="商品评分" prop="itemScore" style="width: 500px">
<i-input v-model="tbCfItemComment.itemScore" placeholder="商品评分"/>
</Form-item>
......
......@@ -42,19 +42,17 @@ $(function () {
$("#newjqGrid").Grid({
url: '../tbcfuserinfo/queryVirtualUser',
colModel: [
{label: 'userId', name: 'userId', index: 'user_id', key: true, hidden: true, width: 100},
// {label: '用户编号', name: 'userNo', index: 'user_no', width: 160},
{label: '用户类型', name: 'userType', index: 'user_type', width: 80, formatter: userTypeFormat},
{label: '账号', name: 'account', index: 'account', width: 160},
{label: '国家', name: 'country', index: 'country', width: 100},
{label: '注册来源', name: 'source', index: 'source', width: 60, formatter: signTypeFormat},
{label: '用户头像地址', name: 'avatar', index: 'avatar', width: 100, formatter: imageFormat},
{label: '用户名', name: 'nick', index: 'nick', width: 160},],
{label: 'userId', name: 'userId', index: 'user_id', key: true, hidden: true},
{label: '账号', name: 'account', index: 'account', width: 200},
{label: '用户头像地址', name: 'avatar', index: 'avatar', width: 200, formatter: imageFormat},
{label: '用户名', name: 'nick', index: 'nick', width: 200},
{label: '创建时间', name: 'createTime', index: 'create_time', width: 200},],
shrinkToFit: true,
datatype: "json",
rowNum: 15,
rowList: [15, 30, 45],
mtype: "POST",
mtype: "get",
rownumbers: true,
rownumWidth: 40,
gridview: true,
......@@ -85,6 +83,18 @@ let vm = new Vue({
}
],
goodslist:[
{
label: '我不是',
value: 0
}, {
label: '你不是',
value: 1
}, {
label: '他不是',
value: 2
}
],//商品属性
showList: true,
title: null,
tbCfItemComment: {},
......@@ -366,6 +376,7 @@ let vm = new Vue({
}
vm.tbCfItemComment.itemId = ids
alert('操作成功', function (index) {
vm.getgoodslist()
console.log(index)
vm.closebtn()
});
......@@ -420,6 +431,19 @@ let vm = new Vue({
});
console.log(ids)
},
// 获取商品属性
getgoodslist(){
var url = '../tbcfitemcomment/queryItemSku/'+vm.tbCfItemComment.itemId
Ajax.request({
url: url,
// params: JSON.stringify(vm.tbCfItemComment),
type: "get",
contentType: "application/json",
successCallback: function (r) {
vm.goodslist = r.list
}
});
},
guid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 32 | 0,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论