Bläddra i källkod

feat: 删除策略

hum 1 år sedan
förälder
incheckning
723cb37626

+ 1 - 2
ruoyi-ui/src/views/site/plain-point/chart-list.vue

@@ -112,7 +112,6 @@ export default {
           containLabel: true
         },
         tooltip: {
-          show: false,
           trigger: 'axis',
           axisPointer: {
             type: 'cross'
@@ -236,7 +235,7 @@ export default {
           },
         });
       })
-      console.log(options)
+      this.chart.clear();
       this.chart.setOption(options);
     }
   }

+ 2 - 1
ruoyi-ui/src/views/site/plain-point/index.vue

@@ -37,7 +37,7 @@
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
           <template slot-scope="scope">
             <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">编辑</el-button>
-<!--            <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>-->
+            <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -53,6 +53,7 @@
 import { getConfig, listSite } from "@/api/site/site";
 import { deletePlainPoint, getSiteSection, listPlainPoint } from "@/api/site/berthing";
 import ChartList from './chart-list';
+import {delUser} from "@/api/system/user";
 
 export default {
   components: {

+ 1 - 0
ruoyi-ui/src/views/site/plain-time/chart-list.vue

@@ -202,6 +202,7 @@ export default {
           },
         });
       })
+      this.chart.clear();
       this.chart.setOption(options);
     }
   }

+ 1 - 1
ruoyi-ui/src/views/site/plain-time/index.vue

@@ -48,7 +48,7 @@
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
           <template slot-scope="scope">
             <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">编辑</el-button>
-<!--            <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>-->
+            <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 1 - 0
ruoyi-ui/src/views/site/plain-water/chart-list.vue

@@ -229,6 +229,7 @@ export default {
           },
         });
       })
+      this.chart.clear();
       this.chart.setOption(options);
     }
   }

+ 1 - 1
ruoyi-ui/src/views/site/plain-water/index.vue

@@ -39,7 +39,7 @@
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
           <template slot-scope="scope">
             <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">编辑</el-button>
-<!--            <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>-->
+            <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
           </template>
         </el-table-column>
       </el-table>