[update] 联调企标新增编辑和详情的稽查内容
This commit is contained in:
@@ -87,14 +87,14 @@ export default {
|
||||
title: this.$t('enterpriseStandardLibrary.standard.subjectToClause'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'subjectToClause',
|
||||
dataIndex: 'clause',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.standard.standardContentOrRequirements'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'standardContentOrRequirements',
|
||||
dataIndex: 'requirement',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
@@ -124,7 +124,9 @@ export default {
|
||||
this.visible = true
|
||||
this.type = 'edit'
|
||||
this.$nextTick(() => {
|
||||
this.$refs.addForm.edit(record)
|
||||
this.$refs.addForm.edit(record, (res) => {
|
||||
this.dataSource = res.checkList
|
||||
})
|
||||
})
|
||||
},
|
||||
// 稽查内容的添加
|
||||
@@ -175,7 +177,7 @@ export default {
|
||||
url = this.url.add
|
||||
}
|
||||
const param = Object.assign({}, formInline)
|
||||
// param.checkList = this.dataSource
|
||||
param.checkList = this.dataSource
|
||||
postAction(url, param).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('operationSuccessful'))
|
||||
@@ -193,6 +195,7 @@ export default {
|
||||
},
|
||||
close () {
|
||||
this.visible = false
|
||||
this.dataSource = []
|
||||
this.$refs.addForm.clearValidate()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user