From 0211b730e5f0b1f10a8a3243e30fe599e22f2238 Mon Sep 17 00:00:00 2001 From: cuijian <cuijian@xalxzn.com> Date: 星期二, 01 七月 2025 18:12:04 +0800 Subject: [PATCH] 质量-检验工具,检验项目 --- src/views/base/ShiftManager.vue | 52 ++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 44 insertions(+), 8 deletions(-) diff --git a/src/views/base/ShiftManager.vue b/src/views/base/ShiftManager.vue index 28075cc..31f6d33 100644 --- a/src/views/base/ShiftManager.vue +++ b/src/views/base/ShiftManager.vue @@ -36,7 +36,7 @@ slot="shiftStatus" slot-scope="text, record" > - <span v-if="text == 0" style="color:red;">鍋滅敤</span> + <span v-if="text == 0" style="color:red;">绂佺敤</span> <span v-if="text == 1" style="color:green;">鍚敤</span> </span> <span @@ -46,16 +46,52 @@ <span v-if="text == '1'">鏄�</span> <span v-if="text == '0'">鍚�</span> </span> - <span + + <span slot="action" slot-scope="text, record" > - <a v-if="record.shiftStatus == 1" @click="handleEdit(record)">缂栬緫</a> - <a-divider type="vertical" v-if="record.shiftStatus == 1"/> - <a v-if="record.shiftStatus == 0" @click="handleStatus(record.id,1)">鍚敤</a> - <a v-if="record.shiftStatus == 1" @click="handleStatus(record.id,0)">鍋滅敤</a> - <a-divider type="vertical" /> - <a @click="handleDelete(record.id)">鍒犻櫎</a> + <a + href="javascript:;" + @click="handleDetail(record)" + >璇︽儏</a> + + <a-divider type="vertical" /> + <a-dropdown> + <a class="ant-dropdown-link">鏇村 + <a-icon type="down" /> + </a> + <a-menu slot="overlay"> + <a-menu-item> + <a v-if="record.shiftStatus == 1" @click="handleEdit(record)">缂栬緫</a> + </a-menu-item> + <a-menu-item> + <a-popconfirm + title="纭畾鍒犻櫎鍚�?" + @confirm="() => handleDelete(record.id)" + > + <a>鍒犻櫎</a> + </a-popconfirm> + + </a-menu-item> + <a-menu-item v-if="record.shiftStatus == 0"> + <a-popconfirm + title="纭畾鍚敤鍚�?" + @confirm="() => handleStatus(record.id,1)" + > + <a>鍚敤</a> + </a-popconfirm> + </a-menu-item> + <a-menu-item v-if="record.shiftStatus == 1"> + <a-popconfirm + title="纭畾绂佺敤鍚�?" + @confirm="() => handleStatus(record.id,0)" + > + <a>绂佺敤</a> + </a-popconfirm> + </a-menu-item> + </a-menu> + </a-dropdown> </span> </a-table> </div> -- Gitblit v1.9.3