|
@@ -123,62 +123,58 @@ const {
|
|
|
@page-current-change="handleCurrentChange"
|
|
@page-current-change="handleCurrentChange"
|
|
|
>
|
|
>
|
|
|
<template #operation="{ row }">
|
|
<template #operation="{ row }">
|
|
|
- <el-button
|
|
|
|
|
- class="reset-margin"
|
|
|
|
|
- link
|
|
|
|
|
- type="primary"
|
|
|
|
|
- :size="size"
|
|
|
|
|
- :icon="useRenderIcon(EditPen)"
|
|
|
|
|
- @click="openDialog('修改', row)"
|
|
|
|
|
- >
|
|
|
|
|
- 编辑
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button
|
|
|
|
|
- class="reset-margin"
|
|
|
|
|
- link
|
|
|
|
|
- type="primary"
|
|
|
|
|
- :size="size"
|
|
|
|
|
- :icon="useRenderIcon(Link)"
|
|
|
|
|
- @click="handleDevices(row)"
|
|
|
|
|
- >
|
|
|
|
|
- 设备
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button
|
|
|
|
|
- class="reset-margin"
|
|
|
|
|
- link
|
|
|
|
|
- type="primary"
|
|
|
|
|
- :size="size"
|
|
|
|
|
- :icon="useRenderIcon(User)"
|
|
|
|
|
- @click="handleReplenishers(row)"
|
|
|
|
|
- >
|
|
|
|
|
- 补货员
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button
|
|
|
|
|
- class="reset-margin"
|
|
|
|
|
- link
|
|
|
|
|
- :type="row.status === 1 ? 'danger' : 'success'"
|
|
|
|
|
- :size="size"
|
|
|
|
|
- :icon="useRenderIcon(row.status === 1 ? Lock : Unlock)"
|
|
|
|
|
- @click="handleToggleStatus(row)"
|
|
|
|
|
- >
|
|
|
|
|
- {{ row.status === 1 ? "停业" : "营业" }}
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-popconfirm
|
|
|
|
|
- :title="`是否确认删除门店 ${row.name}?`"
|
|
|
|
|
- @confirm="handleDelete(row)"
|
|
|
|
|
- >
|
|
|
|
|
- <template #reference>
|
|
|
|
|
|
|
+ <div style="display:flex;flex-direction:column;align-items:center;gap:2px">
|
|
|
|
|
+ <div style="display:flex;align-items:center;justify-content:center;gap:2px">
|
|
|
<el-button
|
|
<el-button
|
|
|
class="reset-margin"
|
|
class="reset-margin"
|
|
|
link
|
|
link
|
|
|
- type="danger"
|
|
|
|
|
|
|
+ type="primary"
|
|
|
:size="size"
|
|
:size="size"
|
|
|
- :icon="useRenderIcon(Delete)"
|
|
|
|
|
|
|
+ :icon="useRenderIcon(EditPen)"
|
|
|
|
|
+ @click="openDialog('修改', row)"
|
|
|
>
|
|
>
|
|
|
- 删除
|
|
|
|
|
|
|
+ 编辑
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- </template>
|
|
|
|
|
- </el-popconfirm>
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ class="reset-margin"
|
|
|
|
|
+ link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ :icon="useRenderIcon(Link)"
|
|
|
|
|
+ @click="handleDevices(row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 设备
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style="display:flex;align-items:center;gap:2px">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ class="reset-margin"
|
|
|
|
|
+ link
|
|
|
|
|
+ :type="row.status === 1 ? 'danger' : 'success'"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ :icon="useRenderIcon(row.status === 1 ? Lock : Unlock)"
|
|
|
|
|
+ @click="handleToggleStatus(row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ row.status === 1 ? "停业" : "营业" }}
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-popconfirm
|
|
|
|
|
+ :title="`是否确认删除门店 ${row.name}?`"
|
|
|
|
|
+ @confirm="handleDelete(row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #reference>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ class="reset-margin"
|
|
|
|
|
+ link
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ :icon="useRenderIcon(Delete)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 删除
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-popconfirm>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
</pure-table>
|
|
</pure-table>
|
|
|
</template>
|
|
</template>
|