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