zc il y a 7 ans
Parent
commit
e97abd8213

+ 8 - 0
src/main/java/com/izouma/awesomeadmin/dao/FinancialDataMapper.xml

@@ -117,6 +117,10 @@
             id = #{id,jdbcType=INTEGER}
         </if>
 
+        <if test="stationId != null and !&quot;&quot;.equals(stationId)">
+            station_id = #{stationId,jdbcType=INTEGER}
+        </if>
+
         <if test="idStr != null and !&quot;&quot;.equals(idStr)">
             id in (${idStr})
         </if>
@@ -329,6 +333,10 @@
             id = #{id,jdbcType=INTEGER}
         </if>
 
+        <if test="stationId != null and !&quot;&quot;.equals(stationId)">
+            station_id = #{stationId,jdbcType=INTEGER}
+        </if>
+
         <if test="idStr != null and !&quot;&quot;.equals(idStr)">
             id in (${idStr})
         </if>

+ 8 - 0
src/main/java/com/izouma/awesomeadmin/dao/PinpaijuzhenMapper.xml

@@ -117,6 +117,10 @@
             id = #{id,jdbcType=INTEGER}
         </if>
 
+        <if test="stationId != null and !&quot;&quot;.equals(stationId)">
+            station_id = #{stationId,jdbcType=INTEGER}
+        </if>
+
         <if test="idStr != null and !&quot;&quot;.equals(idStr)">
             id in (${idStr})
         </if>
@@ -329,6 +333,10 @@
             id = #{id,jdbcType=INTEGER}
         </if>
 
+        <if test="stationId != null and !&quot;&quot;.equals(stationId)">
+            station_id = #{stationId,jdbcType=INTEGER}
+        </if>
+
         <if test="idStr != null and !&quot;&quot;.equals(idStr)">
             id in (${idStr})
         </if>

+ 9 - 0
src/main/java/com/izouma/awesomeadmin/dao/PinpaimenmianMapper.xml

@@ -117,6 +117,10 @@
             id = #{id,jdbcType=INTEGER}
         </if>
 
+        <if test="stationId != null and !&quot;&quot;.equals(stationId)">
+            station_id = #{stationId,jdbcType=INTEGER}
+        </if>
+
         <if test="idStr != null and !&quot;&quot;.equals(idStr)">
             id in (${idStr})
         </if>
@@ -329,6 +333,11 @@
             id = #{id,jdbcType=INTEGER}
         </if>
 
+        <if test="stationId != null and !&quot;&quot;.equals(stationId)">
+            station_id = #{stationId,jdbcType=INTEGER}
+        </if>
+
+
         <if test="idStr != null and !&quot;&quot;.equals(idStr)">
             id in (${idStr})
         </if>

+ 88 - 6
src/main/java/com/izouma/awesomeadmin/web/StationInfoController.java

@@ -2,9 +2,8 @@ package com.izouma.awesomeadmin.web;
 
 import java.util.*;
 
-import com.izouma.awesomeadmin.model.OperateHistory;
-import com.izouma.awesomeadmin.model.UserInfo;
-import com.izouma.awesomeadmin.service.OperateHistoryService;
+import com.izouma.awesomeadmin.model.*;
+import com.izouma.awesomeadmin.service.*;
 import com.izouma.awesomeadmin.util.ExportExcelUtil;
 import org.apache.commons.lang.StringUtils;
 import org.apache.shiro.SecurityUtils;
@@ -16,8 +15,6 @@ import org.springframework.web.bind.annotation.*;
 import com.izouma.awesomeadmin.constant.AppConstant;
 import com.izouma.awesomeadmin.dto.Page;
 import com.izouma.awesomeadmin.dto.Result;
-import com.izouma.awesomeadmin.model.StationInfo;
-import com.izouma.awesomeadmin.service.StationInfoService;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
@@ -34,6 +31,22 @@ public class StationInfoController {
 
     @Autowired
     private OperateHistoryService operateHistoryService;
+
+    @Autowired
+    private FinancialDataService financialDataService;
+
+    @Autowired
+    private PinpaimenmianService pinpaimenmianService;
+
+    @Autowired
+    private PinpaijuzhenService pinpaijuzhenService;
+
+    @Autowired
+    private ExhibitionContentService exhibitionContentService;
+
+    @Autowired
+    private EquipmentInfoService equipmentInfoService;
+
     /**
     * <p>获取全部记录。</p>
     */
@@ -108,7 +121,61 @@ public class StationInfoController {
             oh.setContent("添加营业厅: id="+record.getId());
             operateHistoryService.createOperateHistory(oh);
 
-        return new Result(true, record.getId());
+            FinancialData fd = new FinancialData();
+            fd.setVersion(1);
+            fd.setStationId(record.getId());
+            financialDataService.createFinancialData(fd);
+
+            Pinpaimenmian pm = new Pinpaimenmian();
+            pm.setVersion(1);
+            pm.setStationId(record.getId());
+            pinpaimenmianService.createPinpaimenmian(pm);
+
+            Pinpaijuzhen pj = new Pinpaijuzhen();
+            pj.setVersion(1);
+            pj.setStationId(record.getId());
+            pinpaijuzhenService.createPinpaijuzhen(pj);
+
+            ExhibitionContent ec = new ExhibitionContent();
+            ec.setStationId(record.getId());
+            ec.setVersion(1);
+            ec.setName("公示投教");
+            exhibitionContentService.createExhibitionContent(ec);
+            ec = new ExhibitionContent();
+            ec.setStationId(record.getId());
+            ec.setVersion(1);
+            ec.setName("品牌矩阵");
+
+            exhibitionContentService.createExhibitionContent(ec);
+            ec = new ExhibitionContent();
+            ec.setStationId(record.getId());
+            ec.setVersion(1);
+            ec.setName("金融大数据");
+            exhibitionContentService.createExhibitionContent(ec);
+            ec = new ExhibitionContent();
+            ec.setStationId(record.getId());
+            ec.setVersion(1);
+            ec.setName("品牌门面");
+            exhibitionContentService.createExhibitionContent(ec);
+            ec = new ExhibitionContent();
+            EquipmentInfo ei = new EquipmentInfo();
+            ei.setStationId(record.getId());
+            ei.setExhibitionId(1);
+            equipmentInfoService.createEquipmentInfo(ei);
+            ei = new EquipmentInfo();
+            ei.setStationId(record.getId());
+            ei.setExhibitionId(2);
+            equipmentInfoService.createEquipmentInfo(ei);
+            ei = new EquipmentInfo();
+            ei.setStationId(record.getId());
+            ei.setExhibitionId(3);
+            equipmentInfoService.createEquipmentInfo(ei);
+            ei = new EquipmentInfo();
+            ei.setStationId(record.getId());
+            ei.setExhibitionId(4);
+            equipmentInfoService.createEquipmentInfo(ei);
+
+            return new Result(true, record.getId());
         }
         return new Result(false, "保存异常");
     }
@@ -142,6 +209,21 @@ public class StationInfoController {
 
         boolean num = stationInfoService.deleteStationInfo(record);
         if (num) {
+
+
+            FinancialData fd = new FinancialData();
+            fd.setStationId(record.getId());
+            financialDataService.deleteFinancialData(fd);
+
+            Pinpaimenmian pm = new Pinpaimenmian();
+            pm.setStationId(record.getId());
+            pinpaimenmianService.deletePinpaimenmian(pm);
+
+            Pinpaijuzhen pj = new Pinpaijuzhen();
+            pj.setStationId(record.getId());
+            pinpaijuzhenService.deletePinpaijuzhen(pj);
+
+
         return new Result(true, "删除成功");
         }
         return new Result(false, "删除异常");

+ 245 - 211
src/main/vue/src/pages/App.vue

@@ -1,232 +1,266 @@
 <template>
-    <el-container id="app">
-        <el-aside :width="collapse ? '65px' : '200px'" class="aside">
-            <div class="logo-wrapper">
-                <img src="../assets/logo_baise.png" alt>
-            </div>
-            <el-menu
-                :collapse="collapse"
-                background-color="#324157"
-                text-color="#BFCBD9"
-                active-text-color="#20A0FF"
-                :unique-opened="true"
-                :router="true"
-                :default-active="activeMenu"
-                style="border-right: 1px solid #545c64"
-                class="el-menu-vertical-demo">
-                <sys-menu v-for="item in menus" :menu="item" :key="item.id"></sys-menu>
-            </el-menu>
-        </el-aside>
-        <el-container>
-            <el-header class="header">
-                <div class="header-btn" @click="collapse=!collapse">
-                    <div :style="{transform: collapse ? 'rotate(90deg)' : ''}">
-                        <i class="fas fa-bars" style="font-size: 20px;"></i>
-                    </div>
-                </div>
-                <div style="flex-grow: 1; margin-left: 20px;">
-                    <router-link :to="{name:'dashboard'}">华泰证券管理后台</router-link>
-                </div>
+  <el-container id="app">
+    <el-aside :width="collapse ? '65px' : '200px'" class="aside">
+      <div class="logo-wrapper">
+        <img src="../assets/logo_baise.png" alt>
+      </div>
+      <el-menu
+        :collapse="collapse"
+        background-color="#324157"
+        text-color="#BFCBD9"
+        active-text-color="#20A0FF"
+        :unique-opened="true"
+        :router="true"
+        :default-active="activeMenu"
+        style="border-right: 1px solid #545c64"
+        class="el-menu-vertical-demo"
+      >
+        <sys-menu v-for="item in menus" :menu="item" :key="item.id"></sys-menu>
+      </el-menu>
+    </el-aside>
+    <el-container>
+      <el-header class="header">
+        <div class="header-btn" @click="collapse=!collapse">
+          <div :style="{transform: collapse ? 'rotate(90deg)' : ''}">
+            <i class="fas fa-bars" style="font-size: 20px;"></i>
+          </div>
+        </div>
+        <div style="flex-grow: 1; margin-left: 20px;">
+          <router-link :to="{name:'dashboard'}">华泰证券管理后台</router-link>
+        </div>
 
-                <el-tooltip effect="dark" :content="isFullscreen ? '退出全屏' : '全屏'" placement="bottom" :open-delay="1000">
-                    <div class="header-btn" @click="toggleFullScreen" ref="fullscreen">
-                        <i class="fas fa-expand" style="font-size: 20px;"></i>
-                    </div>
-                </el-tooltip>
-
-                <el-dropdown @command="onCommand" style="margin-left: 20px;">
-                    <img :src="userInfo ? userInfo.icon || require('../assets/default-avatar.png') : require('../assets/default-avatar.png')" class="avatar"/>
-                    <el-dropdown-menu slot="dropdown">
-                        <el-dropdown-item command="logout">退出登录</el-dropdown-item>
-                    </el-dropdown-menu>
-                </el-dropdown>
-            </el-header>
-            <el-main>
-                <router-view></router-view>
-            </el-main>
-        </el-container>
+        <el-tooltip
+          effect="dark"
+          :content="isFullscreen ? '退出全屏' : '全屏'"
+          placement="bottom"
+          :open-delay="1000"
+        >
+          <div class="header-btn" @click="toggleFullScreen" ref="fullscreen">
+            <i class="fas fa-expand" style="font-size: 20px;"></i>
+          </div>
+        </el-tooltip>
 
+        <el-dropdown @command="onCommand" style="margin-left: 20px;">
+          <img
+            :src="userInfo ? userInfo.icon || require('../assets/default-avatar.png') : require('../assets/default-avatar.png')"
+            class="avatar"
+          >
+          <el-dropdown-menu slot="dropdown">
+            <el-dropdown-item command="logout">退出登录</el-dropdown-item>
+          </el-dropdown-menu>
+        </el-dropdown>
+      </el-header>
+      <el-main>
+        <router-view></router-view>
+      </el-main>
     </el-container>
+  </el-container>
 </template>
 
 <script>
-    import SysMenu from '../components/SysMenu'
-    import {mapState} from 'vuex'
-
-    export default {
-        name: 'App',
-        created() {
-            this.getMenus();
-            let fn = () => {
-                this.isFullscreen = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
+import SysMenu from "../components/SysMenu";
+import { mapState } from "vuex";
 
-            };
-            document.addEventListener('fullscreenchange', fn);
-            document.addEventListener('webkitfullscreenchange', fn);
-            document.addEventListener('mozfullscreenchange', fn);
-            document.addEventListener('MSFullscreenChange', fn);
-        },
-        data() {
-            return {
-                rawMenus: [],
-                menus: [],
-                activeMenu: '',
-                menuPath: [],
-                collapse: false,
-                isFullscreen: false
+export default {
+  name: "App",
+  created() {
+    this.getMenus();
+    let fn = () => {
+      this.isFullscreen =
+        document.fullScreen ||
+        document.mozFullScreen ||
+        document.webkitIsFullScreen;
+    };
+    document.addEventListener("fullscreenchange", fn);
+    document.addEventListener("webkitfullscreenchange", fn);
+    document.addEventListener("mozfullscreenchange", fn);
+    document.addEventListener("MSFullscreenChange", fn);
+  },
+  data() {
+    return {
+      rawMenus: [],
+      menus: [],
+      activeMenu: "",
+      menuPath: [],
+      collapse: false,
+      isFullscreen: false
+    };
+  },
+  computed: {
+    ...mapState(["userInfo"])
+  },
+  methods: {
+    findActiveMenu() {
+      this.activeMenu = "";
+      this.menuPath = [];
+      let path = this.$route.path;
+      let pathWithParams = path;
+      let params = [];
+      for (let key in this.$route.query) {
+        params.push(key + "=" + this.$route.query[key]);
+      }
+      if (params.length) {
+        pathWithParams += "?" + params.join("&");
+      }
+      const findActiveMenu = (parents, childMenus) => {
+        childMenus.forEach(i => {
+          let parents_copy = [...parents];
+          if (
+            i.href === path ||
+            (i.href.indexOf("?") > -1 && i.href === pathWithParams)
+          ) {
+            parents_copy.push(i);
+            this.menuPath = parents_copy.map(i => i.name);
+            this.activeMenu = "" + i.id;
+          } else {
+            if (i.children) {
+              parents_copy.push(i);
+              findActiveMenu(parents_copy, i.children);
             }
-        },
-        computed: {
-            ...mapState(['userInfo'])
-        },
-        methods: {
-            findActiveMenu() {
-                this.activeMenu = '';
-                this.menuPath = [];
-                let path = this.$route.path;
-                const findActiveMenu = (parents, childMenus) => {
-                    childMenus.forEach(i => {
-                        let parents_copy = [...parents];
-                        if (i.href === path) {
-                            parents_copy.push(i);
-                            this.menuPath = parents_copy.map(i => i.name);
-                            this.activeMenu = '' + i.id;
-                        } else {
-                            if (i.children) {
-                                parents_copy.push(i);
-                                findActiveMenu(parents_copy, i.children);
-                            }
-                        }
-                    })
-                };
-                findActiveMenu([], this.rawMenus);
-            },
-            getMenus() {
-                this.$http.get({
-                    url: '/sysMenu/userMenuTree',
-                    data: {
-                        userId: this.userInfo.id
-                    }
-                }).then(res => {
-                    if (res.success) {
-                        this.rawMenus = res.data;
-                        this.menus = res.data;
-                        this.findActiveMenu();
-                    }
-                })
-            },
-            toggleFullScreen() {
-                this.isFullscreen = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
-                let element = document.body;
-                let requestMethod;
-                if (this.isFullscreen) {
-                    requestMethod = document.exitFullscreen || document.mozCancelFullScreen || document.webkitExitFullscreen;
-                } else {
-                    requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen;
-                }
-                if (requestMethod) {
-                    requestMethod.call(this.isFullscreen ? document : element);
-                }
-            },
-            onCommand(command) {
-                if (command === 'logout') {
-                    this.$http.post({
-                        url: '/auth/logout'
-                    }).then(res => {
-                        if (res.success) {
-                            this.$store.commit('updateUserInfo', null);
-                            this.$router.replace('/login');
-                        }
-                    })
-                }
-            }
-        },
-        watch: {
-            $route(val) {
-                this.findActiveMenu(this.rawMenus);
-
-            },
-            isFullscreen(val) {
-                this.$refs.fullscreen.innerHTML = '';
-                let i = document.createElement('i');
-                i.style.fontSize = '20px';
-                i.className = val ? 'fas fa-compress' : 'fas fa-expand';
-                this.$refs.fullscreen.append(i);
-                FontAwesome.dom.i2svg();
+          }
+        });
+      };
+      findActiveMenu([], this.rawMenus);
+    },
+    getMenus() {
+      this.$http
+        .get({
+          url: "/sysMenu/userMenuTree",
+          data: {
+            userId: this.userInfo.id
+          }
+        })
+        .then(res => {
+          if (res.success) {
+            this.rawMenus = res.data;
+            this.menus = res.data;
+            this.findActiveMenu();
+          }
+        });
+    },
+    toggleFullScreen() {
+      this.isFullscreen =
+        document.fullScreen ||
+        document.mozFullScreen ||
+        document.webkitIsFullScreen;
+      let element = document.body;
+      let requestMethod;
+      if (this.isFullscreen) {
+        requestMethod =
+          document.exitFullscreen ||
+          document.mozCancelFullScreen ||
+          document.webkitExitFullscreen;
+      } else {
+        requestMethod =
+          element.requestFullScreen ||
+          element.webkitRequestFullScreen ||
+          element.mozRequestFullScreen ||
+          element.msRequestFullScreen;
+      }
+      if (requestMethod) {
+        requestMethod.call(this.isFullscreen ? document : element);
+      }
+    },
+    onCommand(command) {
+      if (command === "logout") {
+        this.$http
+          .post({
+            url: "/auth/logout"
+          })
+          .then(res => {
+            if (res.success) {
+              this.$store.commit("updateUserInfo", null);
+              this.$router.replace("/login");
             }
-        },
-        components: {
-            SysMenu
-        }
+          });
+      }
     }
+  },
+  watch: {
+    $route(val) {
+      this.findActiveMenu(this.rawMenus);
+    },
+    isFullscreen(val) {
+      this.$refs.fullscreen.innerHTML = "";
+      let i = document.createElement("i");
+      i.style.fontSize = "20px";
+      i.className = val ? "fas fa-compress" : "fas fa-expand";
+      this.$refs.fullscreen.append(i);
+      FontAwesome.dom.i2svg();
+    }
+  },
+  components: {
+    SysMenu
+  }
+};
 </script>
 <style lang="less">
-    .aside {
-        .el-menu {
-            border: none !important;
-            &:not(.el-menu--collapse) {
-                width: 200px;
-            }
-        }
+.aside {
+  .el-menu {
+    border: none !important;
+    &:not(.el-menu--collapse) {
+      width: 200px;
     }
+  }
+}
 </style>
 <style lang="less" scoped>
-    #app {
-        height: 100%;
-    }
+#app {
+  height: 100%;
+}
 
-    .header {
-        color: #303133;
-        background: #fff;
-        display: flex;
-        align-items: center;
-        padding-left: 0;
-        border-bottom: 1px solid #DCDFE6;
-        .header-btn {
-            width: 60px;
-            height: 60px;
-            display: flex;
-            align-items: center;
-            justify-content: center;
-            cursor: pointer;
-            transition: all 0.3s;
-            & > div {
-                transition: all 0.3s;
-            }
-            &:hover {
-                background: fade(black, 10%);
-            }
-        }
-        .avatar {
-            width: 40px;
-            height: 40px;
-            border: 1px solid #ebebeb;
-            border-radius: 50%;
-        }
-        a {
-            &:visited {
-                color: #303133;
-            }
-        }
+.header {
+  color: #303133;
+  background: #fff;
+  display: flex;
+  align-items: center;
+  padding-left: 0;
+  border-bottom: 1px solid #dcdfe6;
+  .header-btn {
+    width: 60px;
+    height: 60px;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    cursor: pointer;
+    transition: all 0.3s;
+    & > div {
+      transition: all 0.3s;
     }
-
-    .aside {
-        background: #324157;
-        transition: all 0.4s ease;
-        -ms-overflow-style: none;
-        .logo-wrapper {
-            display: flex;
-            align-items: center;
-            justify-content: center;
-            height: 60px;
-            color: white;
-            font-size: 20px;
-            font-weight: 700;
-            background: fade(black, 20%);
-        }
+    &:hover {
+      background: fade(black, 10%);
     }
-
-    .aside::-webkit-scrollbar {
-        display: none
+  }
+  .avatar {
+    width: 40px;
+    height: 40px;
+    border: 1px solid #ebebeb;
+    border-radius: 50%;
+  }
+  a {
+    &:visited {
+      color: #303133;
     }
+  }
+}
+
+.aside {
+  background: #324157;
+  transition: all 0.4s ease;
+  -ms-overflow-style: none;
+  .logo-wrapper {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    height: 60px;
+    color: white;
+    font-size: 20px;
+    font-weight: 700;
+    background: fade(black, 20%);
+  }
+}
+
+.aside::-webkit-scrollbar {
+  display: none;
+}
 </style>

+ 0 - 27
src/main/vue/src/pages/EquipmentInfos.vue

@@ -1,31 +1,6 @@
 <template>
     <div>
         <div class="filters-container">
-
-            <el-input placeholder="关键字" size="small" v-model="filter1" clearable class="filter-item"></el-input>
-            <el-button @click="searchData" type="primary" size="small" icon="el-icon-search" class="filter-item">搜索
-            </el-button>
-            <el-button @click="showAdvancedQueryDialog = !showAdvancedQueryDialog" type="primary" size="small"
-                       icon="el-icon-search" class="filter-item">高级查询
-            </el-button>
-            <el-button @click="showTableSortDialog = !showTableSortDialog" type="primary" size="small"
-                       icon="el-icon-sort" class="filter-item">排序
-            </el-button>
-            <el-button @click="$router.push({path:'/equipmentInfo',query:{column:$route.query.column}})" type="primary"
-                       size="small" icon="el-icon-edit"
-                       class="filter-item">添加
-            </el-button>
-            <el-button @click="exportExcel" type="primary" size="small" icon="el-icon-share" class="filter-item">导出EXCEL
-            </el-button>
-            <el-dropdown trigger="click" size="medium" class="table-column-filter">
-                <span>
-                  筛选数据<i class="el-icon-arrow-down el-icon--right"></i>
-                </span>
-                <el-dropdown-menu slot="dropdown" class="table-column-filter-wrapper">
-                    <el-checkbox v-for="item in tableColumns" :key="item.value" v-model="item.show">{{item.label}}
-                    </el-checkbox>
-                </el-dropdown-menu>
-            </el-dropdown>
         </div>
         <el-table
             :data="tableData"
@@ -73,8 +48,6 @@
                 min-width="150"
             >
                 <template slot-scope="scope">
-                    <el-button @click="editRow(scope.row)" type="primary" size="mini" plain>编辑</el-button>
-                    <el-button @click="deleteRow(scope.row)" type="danger" size="mini" plain>删除</el-button>
                 </template>
             </el-table-column>
         </el-table>

+ 1 - 1
src/main/vue/src/pages/StationInfos.vue

@@ -10,7 +10,7 @@
         class="filter-item"
       >搜索</el-button>
       <el-button
-      v-if="userInfo.departId=='2'"
+      v-if="userInfo.departId=='2'&&pageType == '1'"
         @click="$router.push({path:'/stationInfo',query:{column:$route.query.column}})"
         type="primary"
         size="small"

+ 6 - 3
src/main/vue/src/pages/User.vue

@@ -126,10 +126,13 @@ export default {
             },
             trigger: "blur"
           }
+        ],
+        roleId: [
+            {required: true, message: '请选择角色', trigger: 'blur'},
+        ],
+        departId: [
+            {required: true, message: '请选择营业厅', trigger: 'blur'},
         ]
-        // roleId: [
-        //     {required: true, message: '请选择角色', trigger: 'blur'},
-        // ]
       },
       roles: [],
       departs: []

+ 22 - 0
src/main/vue/src/pages/Users.vue

@@ -56,6 +56,8 @@
                 fixed="right">
                 <template slot-scope="scope">
                     <el-button @click="editRow(scope.row)" type="primary" size="mini" plain>编辑</el-button>
+                   <el-button  @click="deleteRow(scope.row)" type="danger" size="mini" plain>删除</el-button>
+
                 </template>
             </el-table-column>
         </el-table>
@@ -163,6 +165,26 @@
                 var row = this.tableColumns.find(i => i.value === column);
                 return row ? row.show : false;
             },
+            deleteRow(row) {
+            this.$alert("删除将无法恢复,确认要删除么?", "警告", { type: "error" })
+                .then(() => {
+                return this.$http.post({
+                    url: "/userInfo/del",
+                    data: { id: row.id }
+                });
+                })
+                .then(() => {
+                this.$message.success("删除成功");
+                this.getData();
+                })
+                .catch(action => {
+                if (action === "cancel") {
+                    this.$message.info("删除取消");
+                } else {
+                    this.$message.error("删除失败");
+                }
+                });
+            },
             toggleMultipleMode(multipleMode) {
                 this.multipleMode = multipleMode;
                 if (!multipleMode) {