瀏覽代碼

修改表格详情点击方法

ymy 2 年之前
父節點
當前提交
ec93e19a97
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 5 1
      src/benyun/components/moduleView/moduleView.vue
  2. 1 1
      src/benyun/components/selectTree/selectTree.vue

+ 5 - 1
src/benyun/components/moduleView/moduleView.vue

@@ -19,7 +19,7 @@
     <div class="module-main" v-if="tableConfig">
       <slot name="left"></slot>
       <div class="table">
-        <by-table :propConfig="tableConfig" :ref="tableID" @pagination="paginationChange" />
+        <by-table :propConfig="tableConfig" :ref="tableID" @pagination="paginationChange" @detail="detail" />
       </div>
     </div>
   </div>
@@ -28,6 +28,7 @@
 <script lang="ts">
 import { Component, Prop, Vue, Watch,Mixins } from "vue-property-decorator";
 import ModuleViewHandle from '@/benyun/compVue/ModuleViewHandle'
+import A from "@/views/demo/a.vue";
 interface Page{
   pageNo?:number,
   pageSize?:number,
@@ -63,6 +64,9 @@ export default class ModuleView extends ModuleViewHandle {
     this.$emit('search');
     // this.searchHandle()
   }
+  detail(row:any){
+    this.$emit('detail',row)
+  }
   resert(){
     this.resertHandle()
   }

+ 1 - 1
src/benyun/components/selectTree/selectTree.vue

@@ -125,6 +125,6 @@ export default class SelectTree extends VueViews {
 }
 </script>
 
-<style lang="sass" scoped>
+<style lang="scss" scoped>
 
 </style>