mirror of
https://github.com/CoreUnion/CoreShop.git
synced 2026-10-17 05:12:39 +08:00
bug - 【商品管理】- [批量修改价格] 修复ids无法通过表单获取到
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
</div>
|
||||
<div id="layui-card">
|
||||
<div class="layui-form" lay-filter="LAY-app-CoreCmsGoods-batchModifyPrice" id="LAY-app-CoreCmsGoods-batchModifyPrice">
|
||||
<input type="hidden" name="ids" value="{{d.params.data.entity.id}}">
|
||||
<div class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">价格类型:</label>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<p>当前选中{{ d.params.data.entity.id.length }}条数据</p>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="ids" value="{{ d.params.data.entity.id }}">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">调整类型:</label>
|
||||
<div class="layui-input-inline">
|
||||
|
||||
@@ -470,7 +470,7 @@
|
||||
form.on('submit(LAY-app-CoreCmsGoods-batchModifyPrice-submit)',
|
||||
function (data) {
|
||||
var field = data.field; //获取提交的字段
|
||||
field.ids = field.ids.split(',');
|
||||
field.ids = e.data.entity.id;
|
||||
if (debug) { console.log(field); } //开启调试返回数据
|
||||
//return false;
|
||||
//提交 Ajax 成功后,关闭当前弹层并重载表格
|
||||
@@ -507,7 +507,7 @@
|
||||
form.on('submit(LAY-app-CoreCmsGoods-batchModifyStock-submit)',
|
||||
function (data) {
|
||||
var field = data.field; //获取提交的字段
|
||||
field.ids = field.ids.split(',');
|
||||
field.ids = e.data.entity.id;
|
||||
if (debug) { console.log(field); } //开启调试返回数据
|
||||
//return false;
|
||||
//提交 Ajax 成功后,关闭当前弹层并重载表格
|
||||
|
||||
Reference in New Issue
Block a user