|
@@ -1209,12 +1209,15 @@
|
|
|
this.dutysystemTableData.push(newValue);
|
|
|
},
|
|
|
handleDelete:function(index,row){//删除负责人行数
|
|
|
- let param = { ids: row.id }
|
|
|
- dutysystemRemove(param).then(res => {
|
|
|
- // this.dutysystemTableData.splice(index, 1)
|
|
|
- this.$message.success(`删除成功!`)
|
|
|
- this.dutysystemSelect(this.iconCurrentIndex,this.dutysystemDeptName,this.depteventId)
|
|
|
- })
|
|
|
+ if(row.id!=null&&row.id!=''){
|
|
|
+ let param = { ids: row.id }
|
|
|
+ dutysystemRemove(param).then(res => {
|
|
|
+ this.$message.success(`删除成功!`)
|
|
|
+ this.dutysystemSelect(this.iconCurrentIndex,this.dutysystemDeptName,this.depteventId)
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.dutysystemTableData.splice(index, 1)
|
|
|
+ }
|
|
|
},
|
|
|
handleSave:function(index,rowData){//保存负责人行数
|
|
|
rowData.dept=this.dutysystemDeptName
|