|
@@ -618,15 +618,26 @@ export default {
|
|
|
if(this.ruleForm.eventId){
|
|
|
this.ruleForm.events = []
|
|
|
this.ruleForm.scenarioIds = []
|
|
|
- this.ruleForm.matterIds.forEach(item=>{
|
|
|
+ if(this.ruleForm.matterIds.length>0){
|
|
|
+ this.ruleForm.matterIds.forEach(item=>{
|
|
|
+ this.ruleForm.events.push(
|
|
|
+ {
|
|
|
+ matterId:item,
|
|
|
+ scenarioId:scenarioIds[0],
|
|
|
+ eventId:this.ruleForm.eventId
|
|
|
+ }
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }else{
|
|
|
this.ruleForm.events.push(
|
|
|
- {
|
|
|
- matterId:item,
|
|
|
- scenarioId:scenarioIds[0],
|
|
|
- eventId:this.ruleForm.eventId
|
|
|
- }
|
|
|
- )
|
|
|
- })
|
|
|
+ {
|
|
|
+ matterId:null,
|
|
|
+ scenarioId:scenarioIds[0],
|
|
|
+ eventId:this.ruleForm.eventId
|
|
|
+ }
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
// 判断文件是否都上传完毕
|
|
|
var guids = this.$commonJS.checkUploadFile(this.ruleForm.systemFile)
|