修改禅道已知bug

This commit is contained in:
qq787203167
2022-08-11 15:26:21 +08:00
parent 11ebf9b3b9
commit eb6bab4534
3 changed files with 26 additions and 6 deletions
+2 -2
View File
@@ -124,7 +124,7 @@
} else {
eventBUs.$emit('searchReset')
}
this.$message.success(info.file.response.message || `${info.file.name} 文件导入成功`)
this.$message.success(this.$t('OperationSuccessful'))
}
this.spinning = false
} else {
@@ -187,7 +187,7 @@
}
this.spinning = false
} else {
this.$message.error(`文件导入失败: ${info.file.msg} `)
this.$message.error(this.$t('operationFailed'))
this.spinning = false
}
}
@@ -256,6 +256,7 @@
},
searchParmes: {},
selectedRowKeysRecord: [],
standardList: [],
whetherDisplay: false,
columns: [
{
@@ -434,15 +435,21 @@
},
standardDecompositionDocumentClick() {
if (this.standardDecomposition && this.standardDecomposition.length > 0) {
this.$refs.standardDecompositionSheetRef.getData(JSON.parse(JSON.stringify(this.standardDecomposition[0])))
this.$refs.standardDecompositionSheetRef.getData(JSON.parse(JSON.stringify(this.standardDecomposition[0])), this.standardList)
} else {
this.$message.warning(this.$t('pleaseSelectStandardFirst'))
}
},
standardDecompositionSheetForm(value) {
this.standardList = JSON.parse(JSON.stringify(value))
this.$refs.TermInformationRef.getData(JSON.parse(JSON.stringify(value)))
},
TermInformationRefForm(value) {
if (value && value.itemId) {
this.standardList = this.standardList.filter(res => {
return value.itemId != res.id
})
}
this.$refs.standardDecompositionSheetRef.getRowList(JSON.parse(JSON.stringify(value)))
},
clickButtonToUpload(item) {
@@ -150,7 +150,8 @@
fieldList: [],
queryConditionVOList: [],
info_id: '',
selectedRowKeysData: []
selectedRowKeysData: [],
standardList: ''
}
},
methods: {
@@ -160,7 +161,16 @@
standardDocumentsChange(value) {
this.replacePage()
},
getData(row) {
getData(row, standardList) {
this.selectedRowKeys = []
this.selectedRowKeysData = []
this.standardList = JSON.parse(JSON.stringify(standardList))
if (this.standardList && this.standardList.length > 0) {
this.standardList.forEach(val => {
this.selectedRowKeys.push(JSON.stringify(val))
})
this.selectedRowKeysData = this.standardList
}
this.total = 0
this.dataList = []
this.standData = row
@@ -169,6 +179,7 @@
this.queryParam.info_id = this.sarFileSplitInfoList && this.sarFileSplitInfoList.length > 0 ? this.sarFileSplitInfoList[0].id : ''
this.visible = true
if (this.queryParam.info_id) {
this.pageNo = 1
this.replacePage()
}
},
@@ -232,15 +243,17 @@
},
handleSubmit() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.$emit('standardDecompositionSheetForm', this.selectedRowKeysData)
this.$emit('standardDecompositionSheetForm', JSON.parse(JSON.stringify(this.selectedRowKeysData)))
this.visible = false
} else {
this.$message.warning(this.$t('PleaseSelectData'))
}
},
onSelectChange(value, record) {
console.log(value)
this.selectedRowKeysData = []
this.selectedRowKeys = value
console.log(this.selectedRowKeys)
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.selectedRowKeys.forEach(res => {
this.selectedRowKeysData.push(JSON.parse(res))