diff --git a/ZR.Vue/src/views/system/menu/index.vue b/ZR.Vue/src/views/system/menu/index.vue
index 366d2ad9..713379d6 100644
--- a/ZR.Vue/src/views/system/menu/index.vue
+++ b/ZR.Vue/src/views/system/menu/index.vue
@@ -19,16 +19,14 @@
新增
-
- 修改排序
-
展开/折叠
-
+
@@ -45,8 +43,9 @@
-
- {{scope.row.orderNum}}
+ {{scope.row.orderNum}}
+
@@ -58,7 +57,7 @@
-
+
修改
新增
@@ -73,7 +72,8 @@
-
+
@@ -250,6 +250,7 @@ export default {
btnSubmitVisible: true,
// 是否显示编辑排序
showEditSort: false,
+ editIndex: -1,
// 表单参数
form: {},
// 表单校验
@@ -414,7 +415,8 @@ export default {
/**
* 保存排序
*/
- changeSort(item) {
+ handleChangeSort(item) {
+ this.editIndex = -1;
changeMenuSort({ orderNum: item.orderNum, menuId: item.menuId }).then(
(response) => {
this.msgSuccess("修改成功");
@@ -426,11 +428,14 @@ export default {
//如果是链接隐藏提交按钮
this.btnSubmitVisible = node.menuType == "L" ? false : true;
},
- /**
- * 显示编辑排序
- */
- handleShowSort() {
- this.showEditSort = !this.showEditSort;
+ // 显示编辑排序
+ editCurrRow(rowId, str) {
+ this.editIndex = rowId;
+ let id = rowId + str;
+
+ setTimeout(() => {
+ document.getElementById(id).focus();
+ }, 100);
},
//展开/折叠操作
toggleExpandAll() {