diff --git a/src/components/common-select/index.vue b/src/components/common-select/index.vue index 44b2025..fbcc4c9 100644 --- a/src/components/common-select/index.vue +++ b/src/components/common-select/index.vue @@ -8,7 +8,7 @@ :multiple="multiple" size="medium" :placeholder="placeholder" - allow-clear + :allow-clear="allClear" :max-tag-count="maxTagCount" @change="handleChange" > @@ -42,6 +42,10 @@ const props = defineProps({ type: Number, default: 3, }, + allClear: { + type: Boolean, + default: true, + } }); const emits = defineEmits(['update:modelValue', 'change']); diff --git a/src/views/creative-generation-workshop/manuscript/components/share-manuscript-modal/index.vue b/src/views/creative-generation-workshop/manuscript/components/share-manuscript-modal/index.vue index 469cbfb..2fbeeae 100644 --- a/src/views/creative-generation-workshop/manuscript/components/share-manuscript-modal/index.vue +++ b/src/views/creative-generation-workshop/manuscript/components/share-manuscript-modal/index.vue @@ -12,6 +12,7 @@ import { } from '@arco-design/web-vue'; import CommonSelect from '@/components/common-select'; import TextOverTips from '@/components/text-over-tips'; +import ShareModal from './share-modal'; import { INITIAL_FORM, TABLE_COLUMNS } from './constants'; import { formatTableField, exactFormatTime } from '@/utils/tools'; @@ -46,6 +47,7 @@ export default { const visible = ref(false); const query = ref(cloneDeep(INITIAL_FORM)); const tableRef = ref(null); + const shareModalRef = ref(null); const reset = () => { query.value = cloneDeep(INITIAL_FORM); @@ -67,7 +69,8 @@ export default { pageInfo.value.total = data.total; } }; - const handleSearch = () => { + const handleSearch = (value) => { + query.value.audit_status = value; reload(); }; const reload = () => { @@ -113,7 +116,7 @@ export default { }; const onShare = () => { - console.log('onShare'); + shareModalRef.value?.open(); }; const handleSorterChange = (column, order) => { query.value.sort_column = column; @@ -127,136 +130,159 @@ export default { open, }); return () => ( - ( - <> - - - - ), - }} - > -
- 审核状态 - -
- + , - columns: () => ( - <> - {TABLE_COLUMNS.map((column) => ( - ( -
- {column.title} - {column.tooltip && ( - - - - )} -
- ), - cell: ({ record }) => { - if (column.dataIndex === 'audit_status') { - return ( -
- - {getStatusInfo(record.audit_status).name} - -
- ); - } else if (column.dataIndex === 'title') { - return ; - } else if (column.dataIndex === 'type') { - return ( -
- - - {record.type === EnumManuscriptType.Image ? '图文' : '视频'} - -
- ); - } else if (column.dataIndex === 'last_modified_at') { - return exactFormatTime(record.last_modified_at, 'YYYY-MM-DD HH:mm:ss', 'YYYY-MM-DD HH:mm:ss'); - } else { - return formatTableField(column, record, true); - } - }, - }} - /> - ))} - + footer: () => ( +
+

+ 已选择 {selectedRows.value.length} 个 +

+
+ + +
+
), }} - /> - {pageInfo.value.total > 0 && ( -
- +
+
+ 审核状态 + +
+
, + columns: () => ( + <> + {TABLE_COLUMNS.map((column) => ( + ( +
+ {column.title} + {column.tooltip && ( + + + + )} +
+ ), + cell: ({ record }) => { + if (column.dataIndex === 'audit_status') { + return ( +
+ + {getStatusInfo(record.audit_status).name} + +
+ ); + } else if (column.dataIndex === 'title') { + return ; + } else if (column.dataIndex === 'type') { + return ( +
+ + + {record.type === EnumManuscriptType.Image ? '图文' : '视频'} + +
+ ); + } else if (column.dataIndex === 'last_modified_at') { + return exactFormatTime( + record.last_modified_at, + 'YYYY-MM-DD HH:mm:ss', + 'YYYY-MM-DD HH:mm:ss', + ); + } else { + return formatTableField(column, record, true); + } + }, + }} + /> + ))} + + ), + }} /> + {pageInfo.value.total > 0 && ( +
+ +
+ )} - )} - + + + ); }, }; diff --git a/src/views/creative-generation-workshop/manuscript/components/share-manuscript-modal/share-modal.vue b/src/views/creative-generation-workshop/manuscript/components/share-manuscript-modal/share-modal.vue new file mode 100644 index 0000000..066b6ee --- /dev/null +++ b/src/views/creative-generation-workshop/manuscript/components/share-manuscript-modal/share-modal.vue @@ -0,0 +1,115 @@ + diff --git a/src/views/creative-generation-workshop/manuscript/components/share-manuscript-modal/style.scss b/src/views/creative-generation-workshop/manuscript/components/share-manuscript-modal/style.scss index ee9ff54..d3dc205 100644 --- a/src/views/creative-generation-workshop/manuscript/components/share-manuscript-modal/style.scss +++ b/src/views/creative-generation-workshop/manuscript/components/share-manuscript-modal/style.scss @@ -1,17 +1,27 @@ .share-manuscript-modal { + .cts { + font-family: $font-family-regular; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 20px; + &.bold { + font-family: $font-family-medium; + } + } .filter-row-item { .label { color: var(--Text-1, #211f24); - font-family: $font-family-regular; font-size: 14px; - font-style: normal; - font-weight: 400; - line-height: 22px; } } .arco-modal-body { height: 464px; display: flex; flex-direction: column; + overflow: hidden; + .arco-scrollbar-track { + display: none !important; + } } } diff --git a/src/views/creative-generation-workshop/manuscript/list/components/upload-manuscript-modal/index.vue b/src/views/creative-generation-workshop/manuscript/list/components/upload-manuscript-modal/index.vue index b8e953f..7a945fd 100644 --- a/src/views/creative-generation-workshop/manuscript/list/components/upload-manuscript-modal/index.vue +++ b/src/views/creative-generation-workshop/manuscript/list/components/upload-manuscript-modal/index.vue @@ -11,6 +11,7 @@ import { Message as AMessage, Textarea, } from '@arco-design/web-vue'; +import { useClipboard } from '@vueuse/core'; import TextOverTips from '@/components/text-over-tips'; import icon1 from '@/assets/img/media-account/icon-feedback-fail.png';