[update] 绑定零部件

This commit is contained in:
lideqin
2024-04-19 14:19:40 +08:00
parent 552bc8397d
commit 41a8f9bd91
3 changed files with 29 additions and 23 deletions
@@ -45,7 +45,7 @@
v-decorator="['clauseIds', validatorRules.clauseIds]"
:nameStr="model.clauseNos"
:info-id="sarFileSplitInfoId"
@listChange="handleClauseChange"
@nameChange="handleClauseNameChange"
/>
</a-form-item>
<!--绑定人员-->
@@ -157,8 +157,8 @@ export default {
})
},
// 条款号变化
handleClauseChange (value) {
this.model.clauseNos = value.map(item => item.clauseNo).join(',')
handleClauseNameChange (value) {
this.model.clauseNos = value
},
close () {
this.visible = false
@@ -90,9 +90,9 @@
:loading="loading"
@change="handleTableChange">
<!--条文内容-->
<template slot="item_content" slot-scope="{text, record}">
<div class="table-text" v-if="text || text === 0" @click="showContent('item_content', text,record)">
<!-- 条款内容 -->
<template slot="clauseContent" slot-scope="{text, record}">
<div class="table-text can-click-table-text" v-if="text || text === 0" @click="showContent('item_content', text,record)">
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
</div>
<div class="table-text" v-else>{{ global.emptyLine }}</div>
@@ -155,7 +155,7 @@ export default {
align: 'center',
width: 180,
dataIndex: 'item_content',
scopedSlots: { customRender: 'text' }
scopedSlots: { customRender: 'clauseContent' }
}
],
clauseIds: '' // 能查看的条款ids
@@ -199,7 +199,7 @@ export default {
return
}
this.dataSource = res.result.records || []
this.selectedRowKeys = this.clauseIds ? this.clauseIds.split(',') : []
this.selectedRowKeys = this.clauseIds ? this.clauseIds.split(',').map(item => item.trim()) : []
this.ipagination.total = res.result.total
} else {
this.$message.warn(res.message)