|
@@ -50,7 +50,7 @@
|
|
|
style="width: 60px"
|
|
|
type="number"
|
|
|
@blur="onNumberBlur(scope.row, scope.$index)"
|
|
|
- @keyup.enter.native="onNumberBlur(scope.row, scope.$index)"
|
|
|
+ @keyup.enter.native="onNumberBlurEnter(scope.row, scope.$index)"
|
|
|
placeholder="序号"
|
|
|
ref="numberInput"
|
|
|
/>
|
|
@@ -193,13 +193,13 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
-change,
|
|
|
-channelPage,
|
|
|
-create,
|
|
|
-devList,
|
|
|
-editPage,
|
|
|
-getRemove,
|
|
|
-page,
|
|
|
+ change,
|
|
|
+ channelPage,
|
|
|
+ create,
|
|
|
+ devList,
|
|
|
+ editPage,
|
|
|
+ getRemove,
|
|
|
+ page,
|
|
|
} from "@/api/operation/channel";
|
|
|
import { dialogCallBack } from "@/utils/DialogUtil";
|
|
|
export default {
|
|
@@ -390,6 +390,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ onNumberBlurEnter(row, index) {
|
|
|
+ this.editData.currentEditIndex = -1;
|
|
|
+ },
|
|
|
+
|
|
|
// 输入框失去焦点时隐藏
|
|
|
onNumberBlur(row, index) {
|
|
|
var newSort = row.indexNum;
|