|
@@ -296,16 +296,23 @@ export default {
|
|
|
|
|
|
},
|
|
|
removeClass (row) {
|
|
|
- for (let i in this.tableList) {
|
|
|
- if (this.tableList[i].moid == row.moid) {
|
|
|
- this.tableList.splice(i, 1);
|
|
|
- return
|
|
|
+ console.log(row.moid)
|
|
|
+ if (row.moid) {
|
|
|
+ for (let i in this.tableList) {
|
|
|
+ if (this.tableList[i].moid == row.moid) {
|
|
|
+ this.tableList.splice(i, 1);
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- if (this.tableList[i].id == row.id) {
|
|
|
- this.tableList.splice(i, 1);
|
|
|
- return
|
|
|
+ } else {
|
|
|
+ for (let i in this.tableList) {
|
|
|
+ if (this.tableList[i].id == row.id) {
|
|
|
+ this.tableList.splice(i, 1);
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
addClass () {
|
|
|
if (this.isSetSalary) {
|