Quellcode durchsuchen

修改一些前端问题

lizhenhao vor 2 Jahren
Ursprung
Commit
63225fa02d

+ 1 - 1
src/views/modules/position/Position.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="el-scrollbar__wrap wrap-white padding-20">
-    <el-tabs v-model="activeName" @tab-click="handleClick">
+    <el-tabs v-model="activeName">
       <el-tab-pane label="职务分类" name="positionCategory"style="height: calc(100vh - 210px)" lazy>
         <position-category
           i="positionCategory"

+ 1 - 1
src/views/modules/position/tabs/JobPositionList.vue

@@ -142,7 +142,7 @@
     components: {
       JobPositionForm
     },
-    activated () {
+    mounted () {
       this.refreshList()
     },
 

+ 6 - 2
src/views/modules/position/tabs/PositionCategoryList.vue

@@ -34,6 +34,7 @@
           @sort-change="sortChangeHandle"
           :sort-config="{remote:true}"
           :data="dataList"
+          @cell-click="rowClick"
           :checkbox-config="{}">
           <vxe-column type="seq" width="40"></vxe-column>
           <vxe-column type="checkbox" width="40" ></vxe-column>
@@ -103,7 +104,7 @@
     components: {
       PositionCategoryForm
     },
-    activated () {
+    mounted () {
       this.refreshList()
     },
 
@@ -141,7 +142,7 @@
         })
       },
       // 当前页
-      currentChangeHandle ({ currentPage, pageSize }) {
+      currentChangeHandle ({currentPage, pageSize}) {
         this.tablePage.currentPage = currentPage
         this.tablePage.pageSize = pageSize
         this.refreshList()
@@ -175,6 +176,9 @@
       resetSearch () {
         this.$refs.searchForm.resetFields()
         this.refreshList()
+      },
+      rowClick (event) {
+        console.log('1223', event)
       }
     }
   }

+ 1 - 1
src/views/modules/position/tabs/PositionList.vue

@@ -98,7 +98,7 @@
     components: {
       PositionForm
     },
-    activated () {
+    mounted () {
       this.refreshList()
     },
     watch: {