提交 1a5dd685 authored 作者: 潘鹏's avatar 潘鹏

优化细粒度价格操作功能

上级 c0b69b53
......@@ -587,6 +587,10 @@
#if($shiro.hasPermission("tbcfstationitem:delete"))
<i-button type="error" @click="changeItemStatus(0)"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
#end
<i-button type="warning" @click="changeItemsTop"><i class="fa fa-arrow-down"></i>&nbsp;取消置顶</i-button>
<i-button type="success" @click="changeItemsunTop"><i class="fa fa-arrow-up"></i>批量置顶</i-button>
</div>
</div>
</Row>
......
......@@ -642,6 +642,40 @@ let vm = new Vue({
}
});
},
changeItemsTop: function (event) {
let itemIds = getSelectedRows("#jqGrid");
if (itemIds == null) {
return;
}
Ajax.request({
url: "../tbcfstationitem/cancelTop?itemId",
params: JSON.stringify(itemIds),
type: "POST",
contentType: "application/json",
successCallback: function () {
alert('操作成功', function (index) {
vm.reload();
});
}
});
},
changeItemsunTop: function (event) {
let itemIds = getSelectedRows("#jqGrid");
if (itemIds == null) {
return;
}
Ajax.request({
url: "../tbcfstationitem/itemTop?itemId",
params: JSON.stringify(itemIds),
type: "POST",
contentType: "application/json",
successCallback: function () {
alert('操作成功', function (index) {
vm.reload();
});
}
});
},
getInfo: function (itemId) {
this.AttributeImgArr = [];
// this.isDisabled = true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论