feat:新增下发表删除

feature1.0
吴延福 2023-07-03 17:50:37 +08:00
parent 69670fe155
commit cc8c76e1d1
2 changed files with 5 additions and 1 deletions

View File

@ -230,7 +230,7 @@
<div slot-scope="scope"> <div slot-scope="scope">
<el-button type="text" v-if="!scope.row.edit" @click="scope.row.edit = true">编辑</el-button> <el-button type="text" v-if="!scope.row.edit" @click="scope.row.edit = true">编辑</el-button>
<el-button type="text" v-else @click="scope.row.edit = false">确定</el-button> <el-button type="text" v-else @click="scope.row.edit = false">确定</el-button>
<el-button type="text">删除</el-button> <el-button type="text" @click="deleteSendData(scope.$index)">删除</el-button>
</div> </div>
</el-table-column> </el-table-column>
</el-table> </el-table>

View File

@ -555,6 +555,10 @@ export default class PlanComponent extends BaseRecordComponent<any> {
}) })
} }
public deleteSendData(index){
this.currentTable.tableItems.splice(index,1)
}
public handleClose(){ public handleClose(){
this.tableTabs = []; this.tableTabs = [];
this.currentTableId = null; this.currentTableId = null;