平台件项目库 法规清单取消关联
This commit is contained in:
@@ -812,6 +812,7 @@
|
||||
DeliverableTreeList: [],
|
||||
userInfoQuery: {},
|
||||
rejectCauseList: [],
|
||||
platformIds: [],
|
||||
dutyTerritoryList: []
|
||||
}
|
||||
},
|
||||
@@ -834,8 +835,34 @@
|
||||
this.selectedRowKeys = value
|
||||
},
|
||||
disassociate(val){
|
||||
this.dataList = this.dataList.splice(val.id, 1)
|
||||
console.log(this.dataList)
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
title: _this.$t('whether') + _this.$t('disassociate') + '?',
|
||||
content: '',
|
||||
onOk:
|
||||
async () => {
|
||||
_this.platformIds.push(val.id)
|
||||
_this.dataList = _this.dataList.filter(item => item.id !== val.id);
|
||||
_this.dataList = [..._this.dataList]
|
||||
console.log(this.platformIds)
|
||||
if(this.platformIds){
|
||||
this.formInline.platformIds = this.platformIds.join(',')
|
||||
}
|
||||
this.formInline.designDutyIdName = this.dataList && this.dataList.length>0 ? this.dataList[0].designDutyIdName : ''
|
||||
this.formInline.verifyDutyIdName = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyDutyIdName : ''
|
||||
this.formInline.designDueDate = this.dataList && this.dataList.length>0 ? this.dataList[0].designDueDate : ''
|
||||
this.formInline.verifyDueDate = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyDueDate : ''
|
||||
this.formInline.designDeliverableTemplate = this.dataList && this.dataList.length>0 ? this.dataList[0].designDeliverableTemplate : ''
|
||||
this.formInline.verifyDeliverableTemplate = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyDeliverableTemplate : ''
|
||||
this.formInline.designDutyDueDate = this.dataList && this.dataList.length>0 ? this.dataList[0].designDutyDueDate : ''
|
||||
this.formInline.verifyDutyDueDate = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyDutyDueDate : ''
|
||||
this.formInline.designRemark = this.dataList && this.dataList.length>0 ? this.dataList[0].designRemark : ''
|
||||
this.formInline.verifyRemark = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyRemark : ''
|
||||
this.formInline.designDeliverableType = this.dataList && this.dataList.length>0 ? this.dataList[0].designDeliverableType.split(',') : []
|
||||
this.formInline.verifyDeliverableType = this.dataList && this.dataList.length>0 ? this.dataList[0].verifyDeliverableType.split(',') : []
|
||||
this.formInline = {...this.formInline}
|
||||
}
|
||||
})
|
||||
},
|
||||
isEdit(val) {
|
||||
// if (val.designFlowStatus == 'Task to be confirmed' || val.designFlowStatus == 'Results to be submitted' ||
|
||||
|
||||
Reference in New Issue
Block a user