diff --git a/src/views/common-settings/ItemType.vue b/src/views/common-settings/ItemType.vue index 200d49b..af3b037 100644 --- a/src/views/common-settings/ItemType.vue +++ b/src/views/common-settings/ItemType.vue @@ -125,6 +125,24 @@ >删除 +
+ 排序 +
+
+ 取消 +
{ @@ -494,6 +514,23 @@ export default { }) }); }, + //确定排序 + assertion() { + const result = []; + this.activeRows.forEach((item, index) => { + result.push({ id: item.id, displayOrder: index+1 }); + }); + putapi("/api/app/ItemType/UpdateSortMany",{ itemList: result }).then((res) => { + if (res.code != -1) { + this.isshows = true; + } + }); + }, + //取消按钮 + cancellation() { + this.getlist() + this.isshows=true + }, //编辑弹框 rena() { let id = this.row.id;