Ver Fonte

修改表格详情点击方法

ymy há 2 anos atrás
pai
commit
ec93e19a97

+ 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>