Selaa lähdekoodia

花材列表页

shish 5 vuotta sitten
vanhempi
commit
b4b7bf0a0d
1 muutettua tiedostoa jossa 25 lisäystä ja 12 poistoa
  1. 25 12
      ghs/src/views/item/list.vue

+ 25 - 12
ghs/src/views/item/list.vue

@@ -17,8 +17,8 @@
 		></cl-avatar>
 		></cl-avatar>
 	</template>
 	</template>
 
 
-      <template #table-column-goodsName="{scope}">
-        <span>{{ scope.row.goodsName }}</span>
+      <template #table-column-name="{scope}">
+        <span class="item-name">{{ scope.row.name }}</span>
       </template>
       </template>
 
 
       <template #table-column-delStatus="{scope}">
       <template #table-column-delStatus="{scope}">
@@ -493,23 +493,19 @@ export default {
         .set('table', {
         .set('table', {
           columns: [
           columns: [
             {
             {
-              prop: 'id',
-              label: 'ID',
+              prop: 'name',
+              label: '名称',
               align: 'center',
               align: 'center',
-              'min-width': 50
+			  fixed: 'left',
+              'min-width': 100
             },
             },
 			{
 			{
 				prop: 'cover',
 				prop: 'cover',
 				label: '图片',
 				label: '图片',
 				align: 'center',
 				align: 'center',
+				fixed: 'left',
 				'min-width': 60,
 				'min-width': 60,
 			},
 			},
-            {
-              prop: 'name',
-              label: '名称',
-              align: 'center',
-              'min-width': 110
-            },
             {
             {
               prop: 'cost',
               prop: 'cost',
               label: '每扎成本',
               label: '每扎成本',
@@ -520,7 +516,7 @@ export default {
               prop: 'addPrice',
               prop: 'addPrice',
               label: '每扎加价',
               label: '每扎加价',
               align: 'center',
               align: 'center',
-              'min-width': 150
+              'min-width': 130
             },
             },
             {
             {
               prop: 'price',
               prop: 'price',
@@ -552,6 +548,12 @@ export default {
               align: 'center',
               align: 'center',
               'min-width': 90
               'min-width': 90
             },
             },
+            {
+              prop: 'stock',
+              label: '库存',
+              align: 'center',
+              'min-width': 70
+            },
             {
             {
               prop: 'ratio',
               prop: 'ratio',
               label: '单位比',
               label: '单位比',
@@ -575,6 +577,12 @@ export default {
               label: '大小单位',
               label: '大小单位',
               align: 'center',
               align: 'center',
               'min-width': 80
               'min-width': 80
+            },
+            {
+              prop: 'id',
+              label: 'ID',
+              align: 'center',
+              'min-width': 50
             }
             }
           ],
           ],
           op: {
           op: {
@@ -949,4 +957,9 @@ export default {
     padding: 2px 5px;
     padding: 2px 5px;
   }
   }
 }
 }
+.item-name{
+overflow: hidden;
+text-overflow:ellipsis;
+white-space: nowrap;
+}
 </style>
 </style>