| | |
| | | |
| | | <template #menu="{ row }"> |
| | | <div class="menu-custom-box"> |
| | | <div v-if="row.status == 1"> |
| | | <el-button class="audit-btn" v-if="hasPaddingBtnPermission()" type="text" icon="el-icon-view" |
| | | <template v-if="row.status == 1"> |
| | | <el-button v-if="hasPaddingBtnPermission()" type="text" icon="el-icon-view" |
| | | @click="handleCheckDetail(row)">审核</el-button> |
| | | </div> |
| | | </template> |
| | | |
| | | <div v-if=" |
| | | <template v-if=" |
| | | (userInfo.user_id == row.create_user || hasRecallPaddingBtnPermission()) && |
| | | row.status == 1 |
| | | "> |
| | | <!--待审核状态--> |
| | | <el-button class="withdraw-btn" type="text" icon="el-icon-warning" |
| | | @click="orderLogRecall(row.id)">撤回</el-button> |
| | | </div> |
| | | <el-button type="text" icon="el-icon-warning" @click="orderLogRecall(row.id)">撤回</el-button> |
| | | </template> |
| | | <!--已驳回--> |
| | | <div v-if="row.status == 2"> |
| | | <el-button class="reject-reason-btn" type="text" icon="el-icon-warning" |
| | | @click="rejectDetail(row.id)">驳回原因</el-button> |
| | | </div> |
| | | <template v-if="row.status == 2"> |
| | | <el-button type="text" icon="el-icon-warning" @click="rejectDetail(row.id)">驳回原因</el-button> |
| | | </template> |
| | | <!--草稿--> |
| | | <div> |
| | | <el-button class="edit-btn" type="text" icon="el-icon-edit" |
| | | @click="handleViewDetail(row)">编辑</el-button> |
| | | <el-button class="publish-btn" type="text" icon="el-icon-position" |
| | | @click="userPublishPush(row.id)">发布</el-button> |
| | | <el-button class="delete-btn" type="text" icon="el-icon-delete" |
| | | @click="deleteOrderLog(row.id)">删除</el-button> |
| | | </div> |
| | | <div v-if="row.status == 3 || row.status == 1 || row.status == 2"> |
| | | <el-button class="detail-btn" type="text" icon="el-icon-view" |
| | | @click="handleViewDetail(row)">详情</el-button> |
| | | </div> |
| | | <el-button type="text" icon="el-icon-edit" @click="handleViewDetail(row)">编辑</el-button> |
| | | <el-button type="text" icon="el-icon-position" @click="userPublishPush(row.id)">发起</el-button> |
| | | <el-button type="text" icon="el-icon-delete" @click="deleteOrderLog(row.id)">删除</el-button> |
| | | <template v-if="row.status == 3 || row.status == 1 || row.status == 2"> |
| | | <el-button type="text" icon="el-icon-view" @click="handleViewDetail(row)">详情</el-button> |
| | | </template> |
| | | </div> |
| | | </template> |
| | | <template #status="{ row }"> |
| | |
| | | .menu-custom-box { |
| | | display: flex; |
| | | justify-content: center; |
| | | flex-wrap: wrap; |
| | | |
| | | &>div { |
| | | &> ::v-deep(.el-button) { |
| | | flex: 1; |
| | | } |
| | | max-width: 44px; |
| | | |
| | | .audit-btn { |
| | | color: #1ba0ff; |
| | | } |
| | | |
| | | .withdraw-btn { |
| | | color: #ff5d9e; |
| | | } |
| | | |
| | | .reject-reason-btn { |
| | | color: #ff6a00; |
| | | } |
| | | |
| | | .edit-btn { |
| | | color: #00b187; |
| | | } |
| | | |
| | | .publish-btn { |
| | | color: #5e00ff; |
| | | } |
| | | |
| | | .delete-btn { |
| | | color: #fe0202; |
| | | } |
| | | |
| | | .detail-btn { |
| | | color: #1f4aff; |
| | | &:nth-child(4n) { |
| | | margin-left: 0; |
| | | } |
| | | } |
| | | } |
| | | } |