Commit 1d4e7e66 by 张杰

修复页面刷新

1 parent c2f99d69
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
<el-form-item label="车架号:" prop="vin" class="long_form_item"> <el-form-item label="车架号:" prop="vin" class="long_form_item">
<div class="el_item_inner"> <div class="el_item_inner">
<el-input v-model="snForm.vin" class="a_input" maxlength="17" clearable :disabled="vinEdit && dialogType != 'create'"></el-input> <el-input v-model="snForm.vin" class="a_input" maxlength="17" clearable :disabled="vinEdit && dialogType != 'create'"></el-input>
<auth-button type="primary" class="btn" size="mini" v-show="vinEdit" :uid="6010209" name="车架编辑" @click.native="vinEdit = !vinEdit">编辑</auth-button> <auth-button type="primary" class="btn" size="mini" v-show="vinEdit && dialogType != 'create'" :uid="6010209" name="车架编辑" @click.native="vinEdit = !vinEdit">编辑</auth-button>
<el-button v-show="!vinEdit" class="btn" @click="vinEdit = !vinEdit">取消</el-button> <el-button v-show="!vinEdit" class="btn" @click="vinEdit = !vinEdit">取消</el-button>
</div> </div>
</el-form-item> </el-form-item>
...@@ -1113,6 +1113,7 @@ export default { ...@@ -1113,6 +1113,7 @@ export default {
this.importForm = {}; this.importForm = {};
this.exportData = {}; this.exportData = {};
this.$refs.importFile.value = ""; this.$refs.importFile.value = "";
this.$refs.serchButton.click();
} }
break; break;
case "export": case "export":
...@@ -1165,6 +1166,7 @@ export default { ...@@ -1165,6 +1166,7 @@ export default {
this.snForm = {}; this.snForm = {};
this.dialogType = ""; this.dialogType = "";
this.$refs.snForm.clearValidate(); this.$refs.snForm.clearValidate();
this.$refs.serchButton.$el.click();
//this.$refs.vehicleForm.refreshTable(); //this.$refs.vehicleForm.refreshTable();
//this.$refs.snForm.refreshTable(); //this.$refs.snForm.refreshTable();
} else { } else {
...@@ -1195,6 +1197,7 @@ export default { ...@@ -1195,6 +1197,7 @@ export default {
this.importing = false; this.importing = false;
if (res.data.code == 200) { if (res.data.code == 200) {
this.exportData = res.data.data; this.exportData = res.data.data;
this.$refs.serchButton.$el.click();
} else { } else {
this.$message({ this.$message({
message: res.data.message, message: res.data.message,
...@@ -1753,15 +1756,15 @@ export default { ...@@ -1753,15 +1756,15 @@ export default {
} }
} }
.impot_btn{ .impot_btn {
position: relative; position: relative;
} }
.import-input{ .import-input {
position: absolute; position: absolute;
top:0; top: 0;
right:0; right: 0;
bottom:0; bottom: 0;
left:0; left: 0;
z-index:2; z-index: 2;
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!