+
+
+
+
{{ selectedProducts.data[0].title }}
![]()
@@ -182,6 +190,7 @@
import { getWorksPage } from '@/api/all/generationWorkshop.ts';
import { ref, reactive, watch, nextTick } from 'vue';
import aiIcon from '@/assets/img/media-account/icon-AI.png';
+import { SwapOutlined, DeleteOutlined } from '@ant-design/icons-vue';
import { Button, DatePicker, TimePicker } from 'ant-design-vue';
import { TABS_LIST, ORIGIN_LIST, RawMaterialType } from '@/views/material-center/components/raw-material/constants';
import dayjs from 'dayjs';
@@ -195,6 +204,7 @@ import icon4 from '@/assets/img/error-img.png';
import RawMaterialDrawer from './raw-material-drawer.vue';
import FinishedProductDrawer from './finished-product-drawer.vue';
import { message } from 'ant-design-vue';
+import { fetchAccountOperators, getMediaAccountList } from '@/api/all/propertyMarketing';
// 状态管理
const choseText = ref('');
const taskDescription = ref('');
@@ -204,7 +214,17 @@ const isActive = ref('ai');
const showDriwer = ref(false);
const showDrawer2 = ref(false);
const showDrawer3 = ref(false);
+const accountList = ref([]);
+onMounted(() => {
+ getData();
+});
+const getData = async () => {
+ const res = await fetchAccountOperators();
+ if (res.code === 200) {
+ accountList.value = res.data;
+ }
+};
// 发布类型选项
const publishOptions = ref([
{ value: 'immediate', label: '立即发布' },
@@ -290,7 +310,15 @@ const handleAddContent = () => {
productQuery.page_size = 10;
showDrawer3.value = true;
};
-
+const handleDelte = () => {
+ hasChoseFinishedProducts.value = false;
+ selectedProducts.value = {
+ keys: [],
+ data: [],
+ text: '',
+ images: [],
+ };
+};
// 处理原料库选择确认
const handleMaterialConfirm = (result) => {
console.log('handleMaterialConfirm', result);
@@ -402,7 +430,7 @@ const handleCreateTask = () => {
const taskData = {
media_account_id: localQuery.value.ids[0],
is_ai_generate: isActive.value == 'chose' ? 0 : 1,
- description: taskDescription.value,
+ ai_prompt: taskDescription.value,
raw_material_ids: selectedMaterials.value.keys,
products: selectedProducts.value.keys,
publish_type: publishType.value == 'immediate' ? 0 : 1,
@@ -534,6 +562,16 @@ defineExpose({
font-size: 14px;
margin: 0 40px;
}
+.content-center {
+ position: relative;
+}
+
+.opt-btn {
+ display: flex;
+ position: absolute; /* 设置为绝对定位 */
+ top: 0; /* 紧贴顶部 */
+ right: 0; /* 紧贴右侧 */
+}
.publish-type-select :deep(.ant-select-selection-item) {
text-align: center;
@@ -541,7 +579,12 @@ defineExpose({
align-items: center;
justify-content: center;
}
-
+.select-with-tags :deep(.ant-select-selection-item) {
+ text-align: start;
+ display: flex;
+ align-items: center;
+ justify-content: start;
+}
.line {
background-color: #e6e6e8;
width: 382px;
diff --git a/src/views/property-marketing/assignment-management/components/finished-product-drawer.vue b/src/views/property-marketing/assignment-management/components/finished-product-drawer.vue
index 5a38be8..49e5839 100644
--- a/src/views/property-marketing/assignment-management/components/finished-product-drawer.vue
+++ b/src/views/property-marketing/assignment-management/components/finished-product-drawer.vue
@@ -44,7 +44,12 @@
{{ record.last_modifier?.mobile || '-' }}
- {{ getStatus(record.audit_status) }}
+
+ {{ getStatus(record.audit_status) }}
+
@@ -189,7 +194,7 @@ watch(selectedRows, (newRows) => {
// 多选模式
choseText.value = newRows.length + '个稿件';
// 过滤掉文本类型,只保留非文本类型的项目
- choseImgArray.value = newRows.filter(item => item.type !== 'text');
+ choseImgArray.value = newRows.filter((item) => item.type !== 'text');
}
});
@@ -207,6 +212,19 @@ const getStatus = (status: number) => {
}
};
+const getAuditStatusStyle = (status: number) => {
+ switch (status) {
+ case 1:
+ return { backgroundColor: '#f0f0f0', color: '#666' };
+ case 2:
+ return { backgroundColor: '#fff7ed', color: '#ff9c00' };
+ case 3:
+ return { backgroundColor: '#e6ffe6', color: '#008000' };
+ default:
+ return { backgroundColor: '#f0f0f0', color: '#666' };
+ }
+};
+
// 抽屉显示状态变化处理
const onAfterVisibleChange = (visible: boolean) => {
emit('after-visible-change', visible);
diff --git a/src/views/property-marketing/assignment-management/components/task-item.vue b/src/views/property-marketing/assignment-management/components/task-item.vue
index e5098f9..ef4cef0 100644
--- a/src/views/property-marketing/assignment-management/components/task-item.vue
+++ b/src/views/property-marketing/assignment-management/components/task-item.vue
@@ -1,7 +1,8 @@
-
+
+
{{ timestampToTime(task.execution_time) }}
{{ task?.name || 'AI生成内容' }}
@@ -34,11 +35,37 @@
{{ task.name || 'AI生成内容' }}
-
+
内容生成中...
完成后将自动展示,您可先返回其他操作
+
+
+
+ {{ item }}
+
+
+
![]()
+
+
+
+
+