update 法规合规评估

This commit is contained in:
赵霄
2024-01-22 14:16:12 +08:00
parent e3ab634af9
commit 415aab03f3
4 changed files with 32 additions and 10 deletions
@@ -20,7 +20,7 @@
</j-table>
</div>
<edit-project-modal ref="modalForm" />
<edit-project-modal ref="modalForm" @ok="modalFormOk" />
<!--条文内容-->
<split-clause-detail ref="clauseDetail" />
</div>
@@ -96,13 +96,13 @@ export default {
},
// 工作令编号
{
dataIndex: 'projectId_dictText',
dataIndex: 'workNumber',
title: this.$t('projectLibrary.workOrderNumber'),
width: 150
},
// 项目名称
{
dataIndex: 'projectName1',
dataIndex: 'projectName',
title: this.$t('projectLibrary.projectName'),
width: 150
},
@@ -142,11 +142,27 @@ export default {
handleEdit (record) {
this.$refs.modalForm.open(record)
},
modalFormOk (record) {
const index = this.dataSource.findIndex(tt => tt.id === record.id)
this.$set(this.dataSource, index, record)
},
handleTableChange (pagination) {
this.ipagination = pagination
},
showContent (text) {
this.$refs.clauseDetail.open(text)
},
submit (needValidator, needRemind) {
if (!needValidator) {
return this.dataSource
}
if (!this.dataSource.every(tt => tt.workNumber && tt.projectName)) {
if (needRemind) {
this.$message.warning(this.$t('workCenter.checkTableRequired'))
}
return false
}
return this.dataSource
}
}
}