|
@@ -13,7 +13,7 @@
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
:wrapperCol="BaseTool.Constant.wrapperCol">
|
|
:wrapperCol="BaseTool.Constant.wrapperCol">
|
|
<a-textarea
|
|
<a-textarea
|
|
- v-model="model.content"
|
|
|
|
|
|
+ v-model="content"
|
|
placeholder="请输入内容!"
|
|
placeholder="请输入内容!"
|
|
/>
|
|
/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -44,15 +44,16 @@ export default {
|
|
base (record) {
|
|
base (record) {
|
|
this.visible = true
|
|
this.visible = true
|
|
this.model = record
|
|
this.model = record
|
|
|
|
+ this.content = record.content
|
|
},
|
|
},
|
|
save () {
|
|
save () {
|
|
- if (this.model.content === '' || this.model.content == null) {
|
|
|
|
|
|
+ if (this.content === '' || this.content == null) {
|
|
this.$message.error('请填写故障描述!')
|
|
this.$message.error('请填写故障描述!')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
changeEditForm({
|
|
changeEditForm({
|
|
id: this.model.id,
|
|
id: this.model.id,
|
|
- content: this.model.content
|
|
|
|
|
|
+ content: this.content
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.$message.info('故障描述已修改!')
|
|
this.$message.info('故障描述已修改!')
|
|
this.handleCancel(this.model.content)
|
|
this.handleCancel(this.model.content)
|