|
|
|
@ -35,7 +35,12 @@ |
|
|
|
</el-table> |
|
|
|
<div class="cancelorconfirm"></div> |
|
|
|
<!-- --> |
|
|
|
<el-dialog title="修改" :visible.sync="dialogVisible" width="40%"> |
|
|
|
<el-dialog |
|
|
|
title="修改" |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
width="40%" |
|
|
|
:before-close="handleClose" |
|
|
|
> |
|
|
|
<el-form ref="form" :model="form"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
@ -114,6 +119,13 @@ export default { |
|
|
|
this.rowDrop(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleClose(done) { |
|
|
|
this.$confirm("确认关闭?") |
|
|
|
.then((_) => { |
|
|
|
done(); |
|
|
|
}) |
|
|
|
.catch((_) => {}); |
|
|
|
}, |
|
|
|
rowick(row) { |
|
|
|
this.form = row; |
|
|
|
}, |
|
|
|
@ -194,14 +206,22 @@ export default { |
|
|
|
}, |
|
|
|
//确定修改 |
|
|
|
confirmmodification() { |
|
|
|
modifygender(this.form.id, { |
|
|
|
displayName: this.form.displayName, |
|
|
|
simpleCode: this.form.simpleCode, |
|
|
|
}).then((res) => { |
|
|
|
this.$message.success("修改成功"); |
|
|
|
this.getlist(); |
|
|
|
this.dialogVisible = false; |
|
|
|
}); |
|
|
|
if (this.form.displayName == "") { |
|
|
|
this.$$message.warning("请输入名称"); |
|
|
|
} else if (this.form.simpleCode == "") { |
|
|
|
this.$$message.warning("请输入快捷码"); |
|
|
|
} else { |
|
|
|
modifygender(this.form.id, { |
|
|
|
displayName: this.form.displayName, |
|
|
|
simpleCode: this.form.simpleCode, |
|
|
|
}).then((res) => { |
|
|
|
if (res.code == 1) { |
|
|
|
this.$message.success("修改成功"); |
|
|
|
this.getlist(); |
|
|
|
this.dialogVisible = false; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
//编辑弹框 |
|
|
|
eddte() { |
|
|
|
|