田源
2024-09-06 bf70f3cf825f44c457dba2bebd26e7af73e4b2a8
Source/UBCS-WEB/src/components/StatisticsComponent/pieChart.vue
@@ -2,7 +2,7 @@
  <basic-container style="width: 100%">
    <v-chart :options="chartOptions" :auto-resize="true" id="chart"></v-chart>
    <div style="display: inline-block;float: right;margin-bottom: 10px;margin-right: 60px">
      <el-button size="small" type="primary" plain @click="delHandler">删除</el-button>
      <el-button size="small" type="danger" plain @click="delHandler">删除</el-button>
    </div>
  </basic-container>
</template>
@@ -106,7 +106,7 @@
  methods:{
    delHandler(){
      deleteChartId({btmname:this.btmname,chartId:'1'}).then(res=>{
        this.$message.success('删除成功')
        this.$message.success(this.chartName+'饼状图,删除成功!')
        this.$emit('refresh');
      }).catch(error=>{
        this.$message.error(error)