政策征求意见流程 征求意见列表 增删改查调接口
This commit is contained in:
+29
-19
@@ -274,7 +274,7 @@ export default {
|
||||
return false
|
||||
}
|
||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey9') {
|
||||
this.taskKey == 'PolicySolicitOpinionProcessKey9' || this.taskKey == 'PolicySolicitOpinionProcessKey11') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
@@ -328,25 +328,21 @@ export default {
|
||||
type: 'warning',
|
||||
roundButton: false
|
||||
}).then(() => {
|
||||
this.selectList.forEach(val => {
|
||||
if (val.id) {
|
||||
this.deleteList.push(val.id)
|
||||
const deleteIds = this.selectList.map(val => val.id)
|
||||
this.$http.delete('/api/lawss/activiti/deletePolicitOpinionEOList', { ids: deleteIds }).then(res => {
|
||||
if (res.ok) {
|
||||
this.getData()
|
||||
this.resetSelect()
|
||||
} else {
|
||||
}
|
||||
this.histortData = this.histortData.filter(res => {
|
||||
if (res.id) {
|
||||
return res.id != val.id
|
||||
} else {
|
||||
return res.dataId != val.dataId
|
||||
}
|
||||
})
|
||||
})
|
||||
this.histortData = [ ...this.histortData ]
|
||||
}).catch(() => {
|
||||
});
|
||||
}).catch(() => {
|
||||
// 取消删除,清空选择
|
||||
this.$refs.selection.clearSelection()
|
||||
})
|
||||
this.$refs.selection.clearSelection();
|
||||
});
|
||||
} else {
|
||||
this.$message.warning('请选择至少一条数据')
|
||||
this.$message.warning('请选择至少一条数据');
|
||||
}
|
||||
},
|
||||
handleCommand (command) {
|
||||
@@ -381,11 +377,25 @@ export default {
|
||||
},
|
||||
addModelForm (row) {
|
||||
if (this.addOrEdit == 'add') {
|
||||
this.histortData.push(row)
|
||||
this.$http.postData('/api/lawss/activiti/insertPolicitOpinionEOList', { row }, { _this: this }, res => {
|
||||
if (res.ok) {
|
||||
this.$message.success('操作成功')
|
||||
}else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
} else if (this.addOrEdit == 'edit') {
|
||||
this.histortData[this.editNum] = row
|
||||
this.histortData = [ ...this.histortData ]
|
||||
this.$http.postData('/api/lawss/activiti/updatePolicitOpinionEOList', { row }, { _this: this }, res => {
|
||||
if (res.ok) {
|
||||
this.$message.success('操作成功')
|
||||
}else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
}
|
||||
this.getData()
|
||||
},
|
||||
fileClick (list) {
|
||||
if (list && list.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user