修改禅道已知bug
This commit is contained in:
@@ -124,7 +124,7 @@
|
|||||||
} else {
|
} else {
|
||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchReset')
|
||||||
}
|
}
|
||||||
this.$message.success(info.file.response.message || `${info.file.name} 文件导入成功`)
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
}
|
}
|
||||||
this.spinning = false
|
this.spinning = false
|
||||||
} else {
|
} else {
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
}
|
}
|
||||||
this.spinning = false
|
this.spinning = false
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(`文件导入失败: ${info.file.msg} `)
|
this.$message.error(this.$t('operationFailed'))
|
||||||
this.spinning = false
|
this.spinning = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-1
@@ -256,6 +256,7 @@
|
|||||||
},
|
},
|
||||||
searchParmes: {},
|
searchParmes: {},
|
||||||
selectedRowKeysRecord: [],
|
selectedRowKeysRecord: [],
|
||||||
|
standardList: [],
|
||||||
whetherDisplay: false,
|
whetherDisplay: false,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
@@ -434,15 +435,21 @@
|
|||||||
},
|
},
|
||||||
standardDecompositionDocumentClick() {
|
standardDecompositionDocumentClick() {
|
||||||
if (this.standardDecomposition && this.standardDecomposition.length > 0) {
|
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 {
|
} else {
|
||||||
this.$message.warning(this.$t('pleaseSelectStandardFirst'))
|
this.$message.warning(this.$t('pleaseSelectStandardFirst'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
standardDecompositionSheetForm(value) {
|
standardDecompositionSheetForm(value) {
|
||||||
|
this.standardList = JSON.parse(JSON.stringify(value))
|
||||||
this.$refs.TermInformationRef.getData(JSON.parse(JSON.stringify(value)))
|
this.$refs.TermInformationRef.getData(JSON.parse(JSON.stringify(value)))
|
||||||
},
|
},
|
||||||
TermInformationRefForm(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)))
|
this.$refs.standardDecompositionSheetRef.getRowList(JSON.parse(JSON.stringify(value)))
|
||||||
},
|
},
|
||||||
clickButtonToUpload(item) {
|
clickButtonToUpload(item) {
|
||||||
|
|||||||
+16
-3
@@ -150,7 +150,8 @@
|
|||||||
fieldList: [],
|
fieldList: [],
|
||||||
queryConditionVOList: [],
|
queryConditionVOList: [],
|
||||||
info_id: '',
|
info_id: '',
|
||||||
selectedRowKeysData: []
|
selectedRowKeysData: [],
|
||||||
|
standardList: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -160,7 +161,16 @@
|
|||||||
standardDocumentsChange(value) {
|
standardDocumentsChange(value) {
|
||||||
this.replacePage()
|
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.total = 0
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
this.standData = row
|
this.standData = row
|
||||||
@@ -169,6 +179,7 @@
|
|||||||
this.queryParam.info_id = this.sarFileSplitInfoList && this.sarFileSplitInfoList.length > 0 ? this.sarFileSplitInfoList[0].id : ''
|
this.queryParam.info_id = this.sarFileSplitInfoList && this.sarFileSplitInfoList.length > 0 ? this.sarFileSplitInfoList[0].id : ''
|
||||||
this.visible = true
|
this.visible = true
|
||||||
if (this.queryParam.info_id) {
|
if (this.queryParam.info_id) {
|
||||||
|
this.pageNo = 1
|
||||||
this.replacePage()
|
this.replacePage()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -232,15 +243,17 @@
|
|||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
this.$emit('standardDecompositionSheetForm', this.selectedRowKeysData)
|
this.$emit('standardDecompositionSheetForm', JSON.parse(JSON.stringify(this.selectedRowKeysData)))
|
||||||
this.visible = false
|
this.visible = false
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('PleaseSelectData'))
|
this.$message.warning(this.$t('PleaseSelectData'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSelectChange(value, record) {
|
onSelectChange(value, record) {
|
||||||
|
console.log(value)
|
||||||
this.selectedRowKeysData = []
|
this.selectedRowKeysData = []
|
||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
|
console.log(this.selectedRowKeys)
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
this.selectedRowKeys.forEach(res => {
|
this.selectedRowKeys.forEach(res => {
|
||||||
this.selectedRowKeysData.push(JSON.parse(res))
|
this.selectedRowKeysData.push(JSON.parse(res))
|
||||||
|
|||||||
Reference in New Issue
Block a user