|
@@ -120,17 +120,6 @@
|
|
@click.native="handleEditClick(scope.row, scope.$index)"
|
|
@click.native="handleEditClick(scope.row, scope.$index)"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
- <!--
|
|
|
|
- <el-input
|
|
|
|
- v-else
|
|
|
|
- v-model="scope.row.indexNum"
|
|
|
|
- type="number"
|
|
|
|
- rows="12"
|
|
|
|
- placeholder="序号"
|
|
|
|
- @blur="onNumberBlur(scope.row, scope.$index)"
|
|
|
|
- @keyup.enter.native="onNumberBlurEnter(scope.row, scope.$index)"
|
|
|
|
- /> -->
|
|
|
|
-
|
|
|
|
|
|
|
|
<el-input
|
|
<el-input
|
|
v-else
|
|
v-else
|
|
@@ -139,6 +128,7 @@
|
|
style="width: 60px"
|
|
style="width: 60px"
|
|
type="number"
|
|
type="number"
|
|
@blur="onNumberBlur(scope.row, scope.$index)"
|
|
@blur="onNumberBlur(scope.row, scope.$index)"
|
|
|
|
+ @input="handleInput"f s s s s
|
|
@keyup.enter.native="onNumberBlurEnter(scope.row, scope.$index)"
|
|
@keyup.enter.native="onNumberBlurEnter(scope.row, scope.$index)"
|
|
placeholder="序号"
|
|
placeholder="序号"
|
|
ref="numberInput"
|
|
ref="numberInput"
|
|
@@ -235,10 +225,15 @@ export default {
|
|
this.editData.currentEditSort = row.indexNum;
|
|
this.editData.currentEditSort = row.indexNum;
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.numberInput.focus();
|
|
this.$refs.numberInput.focus();
|
|
- // this.$refs.numberInput.select();
|
|
|
|
|
|
+ this.$refs.numberInput.select();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ handleInput(value) {
|
|
|
|
+ this.form.list[this.editData.currentEditIndex].indexNum = value;
|
|
|
|
+ this.form.list = this.form.list.filter((i) => i);
|
|
|
|
+ },
|
|
|
|
+
|
|
onNumberBlurEnter(row, index) {
|
|
onNumberBlurEnter(row, index) {
|
|
this.editData.currentEditIndex = -1;
|
|
this.editData.currentEditIndex = -1;
|
|
},
|
|
},
|