|
|
@ -91,7 +91,7 @@ |
|
|
|
<el-table-column label="操作" align="center" width="250px" class-name="small-padding fixed-width"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="mini" type="danger" |
|
|
|
@click="dataDelete(scope.row,scope.$index,list[scope.$index])">删除 |
|
|
|
@click="dataDelete(scope.$index,formobj.detailsList[scope.$index])">删除 |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -244,11 +244,10 @@ |
|
|
|
this.formobj.detailsList=this.list |
|
|
|
console.log('车辆表数据', this.list) |
|
|
|
}, |
|
|
|
// 明细表删除一行数据 |
|
|
|
// 文件列表移除文件调用方法删除 |
|
|
|
dataDelete(index, row) { |
|
|
|
this.list.splice(index, 1) |
|
|
|
this.list.splice(this.list.indexOf(row), 1) |
|
|
|
}, |
|
|
|
|
|
|
|
showEdit(sid, nodeState) { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
@ -317,7 +316,6 @@ |
|
|
|
}, |
|
|
|
saveEdit() { |
|
|
|
this.formobj.detailsList = this.list |
|
|
|
const _this = this |
|
|
|
this.$refs['form_obj'].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
this.submitdisabled = true |
|
|
@ -344,7 +342,7 @@ |
|
|
|
this.formobj.orgSid = this.$store.getters.orgSid |
|
|
|
this.formobj.businessSid = this.obj.businessSid |
|
|
|
this.formobj.taskId = this.obj.taskId |
|
|
|
const _this = this |
|
|
|
|
|
|
|
this.$refs['form_obj'].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
this.submitdisabled = true |
|
|
|