|
@@ -183,22 +183,14 @@ function handleSelectionChange(selection) {
|
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
function handleDel() {
|
|
|
+ //查询选中数据
|
|
|
const delRows = processTable.value.getSelectionRows();
|
|
|
- processList.value = processList.value.filter(
|
|
|
- (item) => !delRows.includes(item)
|
|
|
- );
|
|
|
- return;
|
|
|
- // console.log("getSelectionRows()", processTable.value.getSelectionRows());
|
|
|
- // const delList = processTable.value.getSelectionRows();
|
|
|
|
|
|
- //查询选中工序位置
|
|
|
- // let id = ids.value[0];
|
|
|
- // let index = processList.value.findIndex((item) => item.id === id);
|
|
|
-
|
|
|
- // proxy.$modal.confirm("是否确认删除该条数据?").then(() => {
|
|
|
- // processList.value.splice(index, 1);
|
|
|
- // haveModified.value = true;
|
|
|
- // });
|
|
|
+ proxy.$modal.confirm("是否确认删除该条数据?").then(() => {
|
|
|
+ processList.value = processList.value.filter(
|
|
|
+ (item) => !delRows.includes(item)
|
|
|
+ );
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
/** 新增工序确认按钮 操作*/
|