|
|
|
@ -186,7 +186,7 @@ export default { |
|
|
|
}).then(() => { |
|
|
|
this.dataForm.id = id |
|
|
|
this.dataForm.displayFlag = '0' |
|
|
|
this.$http['put']('/property/psychologyquestion/', this.dataForm).then(({ data: res }) => { |
|
|
|
this.$http['put']('/property/psychologyquestion/', { id: this.dataForm.id, displayFlag: this.dataForm.displayFlag }).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
@ -213,7 +213,7 @@ export default { |
|
|
|
}).then(() => { |
|
|
|
this.dataForm.id = id |
|
|
|
this.dataForm.displayFlag = '1' |
|
|
|
this.$http['put']('/property/psychologyquestion/', this.dataForm).then(({ data: res }) => { |
|
|
|
this.$http['put']('/property/psychologyquestion/', { id: this.dataForm.id, displayFlag: this.dataForm.displayFlag }).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
|