Selaa lähdekoodia

art(sku-manage):产品属性、公司sku表格操作栏修改

xinyan 6 kuukautta sitten
vanhempi
commit
ddb29c84bd

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

@@ -40,13 +40,6 @@ function showDetail() {
   <div class="font-medium">
     <div v-if="field === 'operate'">
       <div class="flex justify-center gap-2 mb-2">
-        <div>
-          <PermissionButton circle plain type="success" @click="showDetail()">
-            <el-icon>
-              <View />
-            </el-icon>
-          </PermissionButton>
-        </div>
         <div>
           <PermissionButton circle plain type="warning" @click="handleEdit">
             <el-icon>
@@ -54,28 +47,6 @@ function showDetail() {
             </el-icon>
           </PermissionButton>
         </div>
-        <div>
-          <el-popconfirm :icon="InfoFilled" icon-color="#626AEF" title="发布后此sku将无法更改, 是否继续?" width="220"
-                         @confirm="release">
-            <template #reference>
-              <!--div不可以删除,否则会导致popconfirm的弹出框消失-->
-              <div>
-                <el-tooltip :enterable="false" :show-arrow="false" content="发布" hide-after="0" placement="top"
-                            popper-class="custom-btn-tooltip-2" :disabled="row.status === 3">
-                  <PermissionButton :color="'#6466F1'" :disabled="row.status === 3" circle plain>
-                    <el-icon>
-                      <Position />
-                    </el-icon>
-                  </PermissionButton>
-                </el-tooltip>
-              </div>
-            </template>
-            <template #actions="{ confirm, cancel }">
-              <el-button size="small" @click="cancel">No!</el-button>
-              <el-button size="small" type="danger" @click="confirm"> Yes?</el-button>
-            </template>
-          </el-popconfirm>
-        </div>
         <div>
           <el-popconfirm :icon="InfoFilled" icon-color="#626AEF" title="你确定要删除此项吗?" width="220"
                          @confirm="onConfirm">
@@ -92,6 +63,35 @@ function showDetail() {
             </template>
           </el-popconfirm>
         </div>
+				<div>
+					<el-popconfirm :icon="InfoFilled" icon-color="#626AEF" title="发布后此sku将无法更改, 是否继续?" width="220"
+												 @confirm="release">
+						<template #reference>
+							<!--div不可以删除,否则会导致popconfirm的弹出框消失-->
+							<div>
+								<el-tooltip :enterable="false" :show-arrow="false" content="发布" hide-after="0" placement="top"
+														popper-class="custom-btn-tooltip-2" :disabled="row.status === 3">
+									<PermissionButton :color="'#6466F1'" :disabled="row.status === 3" circle plain>
+										<el-icon>
+											<Position />
+										</el-icon>
+									</PermissionButton>
+								</el-tooltip>
+							</div>
+						</template>
+						<template #actions="{ confirm, cancel }">
+							<el-button size="small" @click="cancel">No!</el-button>
+							<el-button size="small" type="danger" @click="confirm"> Yes?</el-button>
+						</template>
+					</el-popconfirm>
+				</div>
+				<div>
+					<PermissionButton circle plain type="success" @click="showDetail()">
+						<el-icon>
+							<View />
+						</el-icon>
+					</PermissionButton>
+				</div>
       </div>
     </div>
     <div v-else-if="field === 'sku'" class="flex flex-nowrap">

+ 3 - 4
src/views/sku-manage/product-attribute/component/DataTableSlot.vue

@@ -40,9 +40,6 @@ function handleManage() {
       <div class="font-medium">
         <div v-if="field === 'operate'">
           <div class="flex justify-center gap-2">
-            <div>
-              <el-button circle plain type="success" :icon="View" @click="handleView"></el-button>
-            </div>
             <div>
               <PermissionButton circle plain type="warning" @click="handleEdit">
                 <el-icon>
@@ -70,7 +67,9 @@ function handleManage() {
                 <el-button :icon="Key" circle color="#8d87e8" plain @click="handleManage"> </el-button>
               </el-tooltip>
             </div>
-            
+						<div>
+							<el-button circle plain type="success" :icon="View" @click="handleView"></el-button>
+						</div>
           </div>
         </div>
         <div v-else>