xiebin
2022-09-21 2ca215114eb2c997a45526ae37f3de521bdaf01d
src/views/taskinfo/taskplanUser.vue
@@ -1,5 +1,4 @@
<template>
  <basic-container>
    <avue-crud :option="option"
               :table-loading="loading"
               :data="data"
@@ -19,6 +18,17 @@
               @refresh-change="refreshChange"
               @on-load="onLoad">
      <template slot="menuLeft">
        <el-button
          size="small"
          icon="el-icon-back"
          plain
          @click="handleBack">返 回
        </el-button>
        <el-button type="primary"
                   size="small"
                   icon="el-icon-plus"
                   @click.native="$refs.crud.rowAdd">新 增
        </el-button>
        <el-button type="danger"
                   size="small"
                   icon="el-icon-delete"
@@ -27,7 +37,6 @@
        </el-button>
      </template>
    </avue-crud>
  </basic-container>
</template>
<script>
@@ -117,6 +126,9 @@
            });
          });
      },
      handleBack() {
        this.$emit('setPlanUser');
      },
      handleDelete() {
        if (this.selectionList.length === 0) {
          this.$message.warning("请选择至少一条数据");