对接变更
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
<a-icon type="file-protect"/>
|
||||
{{ $t('initiateTaskConfirmation') }}
|
||||
</div>
|
||||
<div class="operator-text">
|
||||
<div class="operator-text" @click="alterationClick">
|
||||
<a-icon type="file-search"/>
|
||||
{{ $t('alteration') }}
|
||||
</div>
|
||||
@@ -793,6 +793,53 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
alterationClick() {
|
||||
if (this.selectedRowKeys.length > 0) {
|
||||
let _this = this
|
||||
let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
||||
let isTrue
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
for (let j = 0; j < selectedRowKeys.length; j++) {
|
||||
if (this.dataSource[i].id == selectedRowKeys[j]) {
|
||||
if (this.dataSource[i].taskAffirmStatus == 'Accepted') {
|
||||
isTrue = true
|
||||
} else {
|
||||
isTrue = false
|
||||
this.$message.warning(this.$t('onlyDataChanged'))
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isTrue) {
|
||||
this.changeInterface(selectedRowKeys)
|
||||
}
|
||||
} else {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
}
|
||||
},
|
||||
changeInterface() {
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
width:760,
|
||||
content: _this.$t('NoteConfirmTheChange'),
|
||||
onOk() {
|
||||
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
||||
getAction('/project/projectLawsInventoryEO/change', {
|
||||
ids: idList.join(','),
|
||||
projectLibraryId: _this.$route.query.id
|
||||
}).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.selectedRowKeys = []
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
handleAdd() {
|
||||
this.$refs.addModelRef.addModel()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user