Browse Source

商品列表

qymljy 2 years ago
parent
commit
08c36e2fa0

+ 3 - 3
src/HDrpManagement/ProductGroupMag/index.vue

@@ -6,7 +6,7 @@
     <div class="container normal-panel normal-margin">
       <list ref="list">
         <template v-slot:detail="scope">
-          <details v-if="tool.checkAuth($route.name,'detail')" :data="scope.data" @onSuccess="onSuccess"  :type="'text'"></details>
+          <el-button type="text" size="small" @click="$router.push({path:'/projectTarget_edit',query:{id:scope.data.sa_salestargetbillid,type:'onlyread'}})">详 情</el-button>
         </template>
       </list>
     </div>
@@ -17,13 +17,13 @@
 import list from './modules/list'
 
 import add from './modules/add'
-import details from './modules/details.vue'
+import detail from './modules/details.vue'
 export default {
   name:"index",
   components:{
     list,
     add,
-    details
+    detail
   },
   methods:{
     onSuccess () {

+ 3 - 3
src/HDrpManagement/ProductGroupMag/modules/details.vue

@@ -1,12 +1,12 @@
 <template>
-    <div class="inline-16">
-        <el-button size="small" type="text" >详情</el-button>
+    <div >
+        <el-button size="small" type="text" >详 情</el-button>
     </div>
   </template>
   
   <script>
   export default {
-  
+    name: "deatails"
   }
   
   </script>

+ 0 - 2
src/HDrpManagement/ProductGroupMag/modules/list.vue

@@ -5,8 +5,6 @@
         <p >{{scope.column.data[scope.column.columnname]}}</p>
       </template>
       <template v-slot:opreation="scope">
-        <slot name="edit" :data="scope.data"></slot>
-        <slot name="del" :data="scope.data"></slot>
         <slot name="detail" :data="scope.data"></slot>
       </template>
     </tableLayout>