手术名称 修改
This commit is contained in:
parent
7408b9dab0
commit
4e68ebba7f
@ -353,7 +353,7 @@ export default {
|
|||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
this.form = {
|
this.form = {
|
||||||
// id: null,
|
id: null,
|
||||||
// departmentId: null,
|
// departmentId: null,
|
||||||
// departmentName: null,
|
// departmentName: null,
|
||||||
operationName: null,
|
operationName: null,
|
||||||
@ -414,8 +414,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
|
this.reset()
|
||||||
// this.reset()
|
|
||||||
this.form.operationInfo = '';
|
this.form.operationInfo = '';
|
||||||
this.open = true;
|
this.open = true;
|
||||||
const id = row.id || this.ids
|
const id = row.id || this.ids
|
||||||
@ -424,6 +423,7 @@ export default {
|
|||||||
this.form.operationName= response.data.operationName;
|
this.form.operationName= response.data.operationName;
|
||||||
this.form.departmentId= response.data.departmentId;
|
this.form.departmentId= response.data.departmentId;
|
||||||
this.form.departmentName= response.data.departmentName;
|
this.form.departmentName= response.data.departmentName;
|
||||||
|
this.form.id= response.data.id;
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改手术信息";
|
this.title = "修改手术信息";
|
||||||
if (this.title == "修改手术信息") {
|
if (this.title == "修改手术信息") {
|
||||||
@ -436,7 +436,8 @@ export default {
|
|||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
console.log(this.form,'00000')
|
||||||
|
if (this.form.id) {
|
||||||
updateOperationInfo(this.form).then(response => {
|
updateOperationInfo(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user