调取-勾选清单中已经存在的数据的提示语
This commit is contained in:
+25
-10
@@ -95,7 +95,7 @@ export default {
|
|||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'category',
|
dataIndex: 'category',
|
||||||
width: 150,
|
width: 150,
|
||||||
ellipsis: true,
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('inspectionItems'),
|
title: this.$t('inspectionItems'),
|
||||||
@@ -110,29 +110,29 @@ export default {
|
|||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'wvtaId',
|
dataIndex: 'wvtaId',
|
||||||
width: 150,
|
width: 150,
|
||||||
ellipsis: true,
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('standard'),
|
title: this.$t('standard'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'serialNumber',
|
dataIndex: 'serialNumber',
|
||||||
width: 150,
|
width: 150,
|
||||||
ellipsis: true,
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('areaOfResponsibility'),
|
title: this.$t('areaOfResponsibility'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'dutyTerritoryName',
|
dataIndex: 'dutyTerritoryName',
|
||||||
width: 200,
|
width: 200,
|
||||||
ellipsis: true,
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('typeOfDeliverables'),
|
title: this.$t('typeOfDeliverables'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'deliverableTypeName',
|
dataIndex: 'deliverableTypeName',
|
||||||
width: 200,
|
width: 200,
|
||||||
ellipsis: true,
|
ellipsis: true
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
fieldList: [
|
fieldList: [
|
||||||
{
|
{
|
||||||
@@ -143,14 +143,14 @@ export default {
|
|||||||
{
|
{
|
||||||
type: 'string',
|
type: 'string',
|
||||||
value: 'inspectionItem',
|
value: 'inspectionItem',
|
||||||
text: this.$t('inspectionItems'),
|
text: this.$t('inspectionItems')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: '',
|
type: '',
|
||||||
value: 'dutyTerritory',
|
value: 'dutyTerritory',
|
||||||
text: this.$t('areaOfResponsibility'),
|
text: this.$t('areaOfResponsibility'),
|
||||||
dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
dataList: [],
|
dataList: [],
|
||||||
content: [],
|
content: [],
|
||||||
@@ -239,11 +239,26 @@ export default {
|
|||||||
postAction('project/projectCertificationInventoryEO/callAdd', {
|
postAction('project/projectCertificationInventoryEO/callAdd', {
|
||||||
authDummyInventoryBaseId: this.dummyInventoryBaseId,
|
authDummyInventoryBaseId: this.dummyInventoryBaseId,
|
||||||
projectLibraryId: this.$route.query.id,
|
projectLibraryId: this.$route.query.id,
|
||||||
authDummyInventoryInfoIds: selectedRowKeys.join(','),
|
authDummyInventoryInfoIds: selectedRowKeys.join(',')
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
|
if (res.result && res.result.length > 0) {
|
||||||
|
let detailedWarningList = []
|
||||||
|
res.result.forEach(val => {
|
||||||
|
detailedWarningList.push(
|
||||||
|
< div > { val } < /div>)
|
||||||
|
})
|
||||||
|
this.$warning({
|
||||||
|
content: (
|
||||||
|
< div >
|
||||||
|
{ detailedWarningList }
|
||||||
|
< /div>
|
||||||
|
)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
}
|
||||||
this.visible = false
|
this.visible = false
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.$emit('transferListFormHomo')
|
this.$emit('transferListFormHomo')
|
||||||
@@ -255,7 +270,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user