马宇豪
2023-09-26 8d6b6b8f322e83c82c24e1128d34f6106e6021c7
src/views/notCoalMine/nPlaceManage/nTrainManage/index.vue
@@ -5,9 +5,9 @@
        <el-button
          type="primary"
          plain
          icon="el-icon-refresh"
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          @click="handleAdd('add')"
          v-hasPermi="['system:experts:add']"
        >新增</el-button>
      </el-col>
@@ -47,14 +47,16 @@
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />
    <add-dialog ref="addDialogRef" @getList = "getList"></add-dialog>
  </div>
</template>
<script>
import addDialog from "@/views/notCoalMine/nPlaceManage/nTrainManage/components/addDialog.vue";
export default {
  name: "nPeopleManage",
  dicts: [],
  components: {},
  components: { addDialog },
  data() {
    return {
      loading: false,
@@ -91,8 +93,8 @@
    resetQuery(){
    },
    handleAdd(){
    handleAdd(type, data){
      this.$refs.addDialogRef.openDialog(type, data);
    }
  }
};