feat: 批量标签/分组

This commit is contained in:
rd
2025-06-27 11:56:05 +08:00
parent c0ed584575
commit e321613af1
13 changed files with 408 additions and 43 deletions

View File

@ -104,6 +104,8 @@
<TagsManageModal ref="tagsManageModalRef" />
<AddAccountModal ref="addAccountModalRef" />
<DeleteAccountModal ref="deleteAccountRef" @update="getData" />
<BatchTagModal ref="batchTagModalRef" @update="getData" />
<BatchGroupModal ref="batchGroupModalRef" @update="getData" />
</div>
</template>
@ -116,6 +118,8 @@ import GroupManageModal from './components/group-manage-modal';
import TagsManageModal from './components/tags-manage-modal';
import AddAccountModal from './components/add-account-modal';
import DeleteAccountModal from './components/account-table/delete-account';
import BatchTagModal from './components/batch-tag-modal';
import BatchGroupModal from './components/batch-group-modal';
import { INITIAL_QUERY } from './constants';
import { getMediaAccounts } from '@/api/all/propertyMarketing';
@ -131,6 +135,8 @@ const groupManageModalRef = ref(null);
const tagsManageModalRef = ref(null);
const addAccountModalRef = ref(null);
const deleteAccountRef = ref(null);
const batchTagModalRef = ref(null);
const batchGroupModalRef = ref(null);
const tipStatus = ref(2);
const pageInfo = reactive({
@ -266,6 +272,13 @@ const handleDelete = (item) => {
const handleCloseTip = () => {
selectedItems.value = [];
};
const handleBatchTag = () => {
batchTagModalRef.value?.open(selectedItems.value);
};
const handleBatchGroup = () => {
batchGroupModalRef.value?.open(selectedItems.value);
};
</script>
<style scoped lang="scss">