From 8d6b6b8f322e83c82c24e1128d34f6106e6021c7 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期二, 26 九月 2023 16:17:06 +0800
Subject: [PATCH] 新增接口

---
 src/views/notCoalMine/nPlaceManage/nTrainManage/index.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/views/notCoalMine/nPlaceManage/nTrainManage/index.vue b/src/views/notCoalMine/nPlaceManage/nTrainManage/index.vue
index a5e4f1d..43c3b51 100644
--- a/src/views/notCoalMine/nPlaceManage/nTrainManage/index.vue
+++ b/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);
     }
   }
 };

--
Gitblit v1.9.2