修改禅道已知bug

This commit is contained in:
qq787203167
2022-08-11 11:54:48 +08:00
parent c552d3c390
commit ec8f64669c
5 changed files with 42 additions and 14 deletions
@@ -169,7 +169,7 @@
dataList[i].evaluationMethods = dataList[i].evaluationMethods.join(',')
}
dataList[i].lawsTechnologyEvaluationId = this.$route.query.lawsTechnologyEvaluationId || this.getUUID
if (!dataList[i].evaluationMethods || !dataList[i].evaluatorIds) {
if (!dataList[i].evaluatorIds) {
this.$message.warning(this.$t('pleaseCompleteTheEvaluationMethodorEvaluator'))
return
}
@@ -202,4 +202,23 @@
text-justify: inter-ideograph;
word-break: break-all
}
::v-deep .ant-select-tree-treenode-switcher-close {
width: 255px;
}
::v-deep .ant-select-tree-node-content-wrapper {
text-align: left;
float: right;
margin-top: -2px !important;
}
::v-deep .ant-select-tree-title {
width: 100%;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
@@ -49,7 +49,7 @@
</div>
<a-table
:columns="columns"
rowKey="id"
:rowKey="(record)=>JSON.stringify(record)"
:scroll="{x: '100%'}"
:data-source="dataList"
:pagination="false"
@@ -174,10 +174,10 @@
},
getRowList(value) {
if (value && value.itemId) {
this.selectedRowKeys = this.selectedRowKeys.filter(res=>{
return value.itemId != res
this.selectedRowKeys = this.selectedRowKeys.filter(res => {
return !res.includes(value.itemId)
})
this.selectedRowKeysData = this.selectedRowKeysData.filter(res=>{
this.selectedRowKeysData = this.selectedRowKeysData.filter(res => {
return value.itemId != res.id
})
}
@@ -239,8 +239,14 @@
}
},
onSelectChange(value, record) {
this.selectedRowKeysData = []
this.selectedRowKeys = value
this.selectedRowKeysData = record
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.selectedRowKeys.forEach(res => {
this.selectedRowKeysData.push(JSON.parse(res))
})
}
// this.selectedRowKeysData = record
}
}
}