ソースを参照

修改了一个bug

wangn 5 年 前
コミット
e49d47061a
1 ファイル変更10 行追加1 行削除
  1. 10 1
      pt/src/views/item-class/list.vue

+ 10 - 1
pt/src/views/item-class/list.vue

@@ -39,6 +39,8 @@
 					v-else
 					v-else
 					v-model="scope.row.inTurn"
 					v-model="scope.row.inTurn"
 					@blur="changeSort(scope.row)"
 					@blur="changeSort(scope.row)"
+          @focus.stop.native="iptFocus"
+          @click.stop.native="fn"
 				></el-input>
 				></el-input>
 			</template>
 			</template>
 
 
@@ -87,7 +89,7 @@
 			<div class="ad-modal-content">
 			<div class="ad-modal-content">
 				<el-form :model="replaceForm" :rules="ruleForm" ref="replaceForm" label-width="100px" class="demo-form">
 				<el-form :model="replaceForm" :rules="ruleForm" ref="replaceForm" label-width="100px" class="demo-form">
 					<el-form-item label="分类名称" prop="name">
 					<el-form-item label="分类名称" prop="name">
-						<el-input v-model="replaceForm.name" placeholder="请输入名称" size="small"></el-input>
+						<el-input v-model="replaceForm.name" placeholder="请输入名称" size="small" id="inputVal" ></el-input>
 					</el-form-item>
 					</el-form-item>
 				</el-form>
 				</el-form>
 			</div>
 			</div>
@@ -147,6 +149,13 @@ export default {
 				});
 				});
 			});
 			});
 		},
 		},
+    iptFocus() {
+      // console.log(document.getElementById("inputVal"))
+      // this.$nextTick(function () {
+      //   document.getElementById("inputVal").focus();
+      // })
+    },
+    fn() {},
 		resetForm(){
 		resetForm(){
 			this.$refs['replaceForm'].resetFields();
 			this.$refs['replaceForm'].resetFields();
 			this.replaceDialog = false
 			this.replaceDialog = false