| | |
| | | </template> |
| | | <a-dropdown :arrow="{ pointAtCenter: true }" placement="bottom" :trigger="['click']"> |
| | | <template #overlay> |
| | | <a-menu> |
| | | <a-menu v-if="checked"> |
| | | <a-menu-item key="2" @click="fnSelectAllRead(true)"> 标为已读</a-menu-item> |
| | | <a-menu-item key="3" @click="fnSelectAllRead(false)"> 标为未读</a-menu-item> |
| | | <a-menu-item key="4"> 设为置顶</a-menu-item> |
| | | <a-divider style="margin: 2px; padding: 2px" /> |
| | | <a-menu-item key="5"> 标记为垃圾邮件</a-menu-item> |
| | | </a-menu> |
| | | </template> |
| | | <MoreOutlined v-show="checked" class="icon" /> |
| | | <!-- </template> |
| | | <MoreOutlined v-if="checked" class="icon" /> |
| | | </a-dropdown> |
| | | <a-dropdown :arrow="{ pointAtCenter: true }" placement="bottom" :trigger="['click']"> |
| | | <template #overlay> |
| | | <a-menu> |
| | | <template #overlay> --> |
| | | <a-menu v-else> |
| | | <a-menu-item key="1" @click="fnAllRead">全部标记为已读</a-menu-item> |
| | | <a-divider style="margin: 2px; padding: 2px" /> |
| | | <p style="color: #999; font-size: 12px">勾选邮件即可查看更多操作</p> |
| | | </a-menu> |
| | | </template> |
| | | <MoreOutlined v-show="!checked" class="icon" /> |
| | | <MoreOutlined class="icon" /> |
| | | </a-dropdown> |
| | | </a-tooltip> |
| | | </div> |
| | |
| | | pushUpdateReadApi(data); |
| | | } |
| | | const getSelectAllBocCode = computed(() => { |
| | | let data = props.selectAllRow.map((item) => item.docCode); |
| | | console.log(data, '00003'); |
| | | try { |
| | | if (props.parentTableList?.length == 0) { |
| | | return []; |
| | | } |
| | | let data = props.selectAllRow.map((item) => item.docCode); |
| | | console.log(data, '00003'); |
| | | |
| | | return data; |
| | | return data; |
| | | } catch (error) { |
| | | return []; |
| | | } |
| | | }); |
| | | function pushUpdateReadApi(data) { |
| | | updateReadApi(data).then((res) => { |
| | |
| | | pushUpdateReadApi(data); |
| | | } |
| | | function getReadId() { |
| | | const ids = []; |
| | | props.parentTableList.forEach((item: Record<string, any>) => { |
| | | ids.push(item.docCode); |
| | | }); |
| | | return ids; |
| | | try { |
| | | const ids = []; |
| | | if (props.parentTableList?.length == 0) { |
| | | return []; |
| | | } |
| | | props.parentTableList.forEach((item: Record<string, any>) => { |
| | | ids.push(item.docCode); |
| | | }); |
| | | return ids; |
| | | } catch (error) { |
| | | return []; |
| | | } |
| | | } |
| | | const emit = defineEmits(['nextNum']); |
| | | function fuDeleteEmail() { |