|
@@ -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">
|