修改知识库
This commit is contained in:
parent
1e52e96ed5
commit
f892bc5698
@ -933,7 +933,12 @@ export default {
|
||||
} else {
|
||||
if (this.form.id != null) {
|
||||
this.form.departmentName = this.departmentName
|
||||
if (this.diseaseTypeName == "请选择病种") {
|
||||
this.form.diseaseTypeName = null
|
||||
|
||||
} else {
|
||||
this.form.diseaseTypeName = this.diseaseTypeName
|
||||
}
|
||||
updateMessage(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
|
||||
@ -1500,8 +1500,12 @@ export default {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
if (this.diseaseTypeName == "请选择病种") {
|
||||
this.form.diseaseTypeName = null
|
||||
|
||||
this.form.diseaseTypeName = this.diseaseTypeName
|
||||
} else {
|
||||
this.form.diseaseTypeName = this.diseaseTypeName
|
||||
}
|
||||
updatePropaganda(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
|
||||
@ -1040,7 +1040,13 @@ export default {
|
||||
}else{
|
||||
if (this.form.id != null) {
|
||||
this.form.departmentName = this.departmentName
|
||||
this.form.diseaseTypeName = this.diseaseTypeName
|
||||
// this.form.diseaseTypeName = this.diseaseTypeName
|
||||
if (this.diseaseTypeName == "请选择病种") {
|
||||
this.form.diseaseTypeName = null
|
||||
|
||||
} else {
|
||||
this.form.diseaseTypeName = this.diseaseTypeName
|
||||
}
|
||||
updateScript(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
|
||||
@ -1420,7 +1420,11 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
this.form.departmentName = this.departmentName
|
||||
this.form.diseaseTypeName = this.diseaseTypeName
|
||||
if (this.diseaseTypeName == "请选择病种") {
|
||||
this.form.diseaseTypeName = null
|
||||
} else {
|
||||
this.form.diseaseTypeName = this.diseaseTypeName
|
||||
}
|
||||
if (this.form.voList) {
|
||||
var obj = JSON.parse(JSON.stringify(this.form))
|
||||
obj.voList.forEach(e => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user