Explorar el Código

feat(company-sku):公司SKU按钮位置调整

xinyan hace 6 meses
padre
commit
fe078c5e69

+ 1 - 1
src/views/sku-manage/Columns.ts

@@ -89,7 +89,7 @@ export const CompanySkuColumns = [
   },
   { field: 'create_datetime', title: '创建时间', width: 170, align: 'center', slots: { default: 'create_datetime' } },
   {
-    field: 'operate', title: '操 作', width: 100, align: 'center', fixed: 'right',
+    field: 'operate', title: '操 作', width: 175, align: 'center', fixed: 'right',
     slots: { default: 'operate' }
   }
 ];

+ 8 - 7
src/views/sku-manage/company-sku/component/DataTableSlot.vue

@@ -44,6 +44,14 @@ function showDetail() {
 						<View />
 					</el-icon>
 				</PermissionButton>
+
+			<!--</div>-->
+			<!--<div class="flex justify-center gap-2">-->
+				<PermissionButton circle plain type="warning" @click="handleEdit">
+					<el-icon>
+						<Operation />
+					</el-icon>
+				</PermissionButton>
 				<el-popconfirm :icon="InfoFilled" icon-color="#626AEF" title="发布后此sku将无法更改, 是否继续?" width="220" @confirm="release">
 					<template #reference>
 						<!--div不可以删除,否则会导致popconfirm的弹出框消失-->
@@ -62,13 +70,6 @@ function showDetail() {
 						<el-button size="small" type="danger" @click="confirm"> Yes?</el-button>
 					</template>
 				</el-popconfirm>
-			</div>
-			<div class="flex justify-center gap-2">
-				<PermissionButton circle plain type="warning" @click="handleEdit">
-					<el-icon>
-						<Operation />
-					</el-icon>
-				</PermissionButton>
 				<el-popconfirm :icon="InfoFilled" icon-color="#626AEF" title="你确定要删除此项吗?" width="220" @confirm="onConfirm">
 					<template #reference>
 						<PermissionButton circle plain type="danger" :disabled="row.status === 3">