解决 地图仿真,用户删除,可以修改的bug

This commit is contained in:
joylink_cuiweidong 2019-09-24 16:30:55 +08:00
parent bcc4ab1906
commit 9b3be49329
2 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@
<el-input v-model="model.userName" disabled /> <el-input v-model="model.userName" disabled />
</el-form-item> </el-form-item>
<el-form-item :label="$t('menu.menuChildDialog.originalPassword')" prop="oldPassword"> <el-form-item :label="$t('menu.menuChildDialog.originalPassword')" prop="oldPassword">
<el-input v-model="model.oldPassword" type="oldPassword" /> <el-input v-model="model.oldPassword" type="password" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('menu.menuChildDialog.password')" prop="password"> <el-form-item :label="$t('menu.menuChildDialog.password')" prop="password">
<el-input v-model="model.password" type="password" /> <el-input v-model="model.password" type="password" />

View File

@ -288,6 +288,7 @@ export default {
const index = this.tableData.indexOf(this.tableData.find(elem => { return elem.jobNumber === data.jobNumber; })); const index = this.tableData.indexOf(this.tableData.find(elem => { return elem.jobNumber === data.jobNumber; }));
if (index >= 0) { if (index >= 0) {
this.tableData.splice(index, 1); this.tableData.splice(index, 1);
this.selected=null;
} else { } else {
this.$messageBox(this.$t('menu.menuDialog.deleteFail')); this.$messageBox(this.$t('menu.menuDialog.deleteFail'));
} }