8a948318 by renchao@pashanhoo.com

style:字典

1 parent a13e8f4b
1 import { Message } from "element-ui"; 1 import { Message } from "element-ui";
2 export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { 2 export function removeTreeListItem (treeList, dictId, idName = 'dictid') {
3
4 if (!treeList || !treeList.length) { 3 if (!treeList || !treeList.length) {
5 return 4 return
6 } 5 }
......
...@@ -287,6 +287,7 @@ ...@@ -287,6 +287,7 @@
287 }); 287 });
288 }, 288 },
289 handleMinus (index, row) { 289 handleMinus (index, row) {
290 console.log(this.tableData, row.dictid, 'dictid');
290 removeTreeListItem(this.tableData, row.dictid, 'dictid'); 291 removeTreeListItem(this.tableData, row.dictid, 'dictid');
291 this.tableData = judgeSort(this.tableData) 292 this.tableData = judgeSort(this.tableData)
292 this.key++; 293 this.key++;
......