|
|
@@ -826,6 +826,11 @@ export default {
|
|
|
switch (type) {
|
|
|
case 1:
|
|
|
this.affirm = false;
|
|
|
+ this.tableData.forEach(item=>{
|
|
|
+ if(item.status === 1){
|
|
|
+ item.input_state = true
|
|
|
+ }
|
|
|
+ })
|
|
|
if (!row.check_state) {
|
|
|
this.copy_data[row.table_id-1].state = '变更';
|
|
|
this.ListData.push(this.copy_data[row.table_id-1]);
|
|
|
@@ -845,6 +850,9 @@ export default {
|
|
|
}
|
|
|
break;
|
|
|
case 2:
|
|
|
+ if(this.affirm){
|
|
|
+ this.$Message.warning('更改请确认!')
|
|
|
+ }else{
|
|
|
this.tableData.splice(index, 0, row);
|
|
|
this.tableData[index + 1].check_state = false;
|
|
|
this.tableData[index+1].status = 1;
|
|
|
@@ -853,9 +861,12 @@ export default {
|
|
|
this.tableData[index+1].table_id = null;
|
|
|
//标记是复制的数据
|
|
|
this.tableData[index + 1].copy_state = true;
|
|
|
- console.log(row);
|
|
|
+ console.log(row);}
|
|
|
break;
|
|
|
case 3:
|
|
|
+ if(this.affirm){
|
|
|
+ this.$Message.warning('更改请确认!')
|
|
|
+ }else{
|
|
|
this.confirmDelete({
|
|
|
content: "确认删除么?",
|
|
|
then: () => {
|
|
|
@@ -914,13 +925,23 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+ }
|
|
|
break;
|
|
|
case 4:
|
|
|
+ if(this.affirm){
|
|
|
+ this.$Message.warning('更改请确认!')
|
|
|
+ }else{
|
|
|
this.tableData[index].input_state = true;
|
|
|
row.input_state = true;
|
|
|
this.tableData[index].status = 4;
|
|
|
row.status = 4;
|
|
|
this.affirm = true;
|
|
|
+ this.tableData.forEach(item=>{
|
|
|
+ if(item.status===1){
|
|
|
+ item.input_state = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
},
|