Merge branch 'test' of ssh://gta.lvfunai.com:42001/ai-team/lingji-work-fe into feature/ldb_build

This commit is contained in:
2025-08-14 17:03:07 +08:00
18 changed files with 59 additions and 36 deletions

View File

@ -24,6 +24,7 @@ const app = createApp(App);
app.component('NoData', NoData); app.component('NoData', NoData);
app.component('SvgIcon', SvgIcon); app.component('SvgIcon', SvgIcon);
(Object.keys(directives) as Array<keyof typeof directives>).forEach((k) => app.use(directives[k])); // 注册指令
app.use(store); app.use(store);
app.use(router); app.use(router);

View File

@ -22,6 +22,18 @@
@include table-cell-text; @include table-cell-text;
font-family: 'PingFangSC-Medium'; font-family: 'PingFangSC-Medium';
} }
.arco-table-sorter {
.arco-table-sorter-icon {
.arco-icon {
color: #939499;
}
&-active {
.arco-icon {
color: $color-primary;
}
}
}
}
} }
} }
} }
@ -40,5 +52,15 @@
} }
} }
} }
.arco-scrollbar {
display: flex;
flex-direction: column;
.arco-table-element {
height: 100%;
}
.arco-scrollbar-container{
flex: 1;
}
}
} }
} }

View File

@ -21,9 +21,7 @@
v-model="formData[field.props.name]" v-model="formData[field.props.name]"
:placeholder="field?.props?.placeholder" :placeholder="field?.props?.placeholder"
/> />
<a-color-picker v-if="field.type === 'color_picker'"
style="width: 500px; height: 200px"
v-model="formData[field.props.name]" />
<ImageUpload <ImageUpload
v-if="field.type == 'upload_image'" v-if="field.type == 'upload_image'"
v-model="formData[field.props.name]" v-model="formData[field.props.name]"

View File

@ -21,12 +21,12 @@ export const TABLE_COLUMNS1 = [
{ {
title: '客户意见', title: '客户意见',
dataIndex: 'customer_opinion', dataIndex: 'customer_opinion',
width: 220, width: 120,
}, },
{ {
title: '稿件类型', title: '稿件类型',
dataIndex: 'type', dataIndex: 'type',
width: 180, width: 120,
}, },
{ {
title: '上传时间', title: '上传时间',
@ -74,7 +74,7 @@ export const TABLE_COLUMNS2 = [
{ {
title: '客户意见', title: '客户意见',
dataIndex: 'customer_opinion', dataIndex: 'customer_opinion',
width: 220, width: 120,
}, },
{ {
title: '审核平台', title: '审核平台',
@ -90,7 +90,7 @@ export const TABLE_COLUMNS2 = [
{ {
title: '稿件类型', title: '稿件类型',
dataIndex: 'type', dataIndex: 'type',
width: 180, width: 120,
}, },
{ {
title: '审核时间', title: '审核时间',
@ -143,7 +143,7 @@ export const TABLE_COLUMNS3 = [
{ {
title: '客户意见', title: '客户意见',
dataIndex: 'customer_opinion', dataIndex: 'customer_opinion',
width: 200, width: 120,
}, },
{ {
title: '审核平台', title: '审核平台',
@ -153,7 +153,7 @@ export const TABLE_COLUMNS3 = [
{ {
title: '稿件类型', title: '稿件类型',
dataIndex: 'type', dataIndex: 'type',
width: 180, width: 120,
}, },
{ {
title: '通过时间', title: '通过时间',

View File

@ -34,7 +34,7 @@
.pagination-box { .pagination-box {
display: flex; display: flex;
width: 100%; width: 100%;
padding: 16px 24px; padding: 16px 24px 0;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
} }

View File

@ -136,7 +136,7 @@ export default {
}); });
if (code === 200) { if (code === 200) {
taskStatus.value = TASK_STATUS.SUCCESS; taskStatus.value = TASK_STATUS.SUCCESS;
works.value = data ? [data] : []; data && works.value.push(data);
} }
}; };
@ -189,8 +189,9 @@ export default {
<Upload <Upload
action="/" action="/"
draggable draggable
multiple
customRequest={handleUpload} customRequest={handleUpload}
accept=".xlsx,.xls,.docx,.doc,.mp4,.mov,.avi,.flv,.wmv" accept=".xlsx,.xls,.docx,.doc,.mp4,.mov,.avi,.flv,.wmv,.m4v"
show-file-list={false} show-file-list={false}
> >
{{ {{

View File

@ -1,5 +1,5 @@
.manuscript-list-wrap { .manuscript-list-wrap {
height: 100%; // height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.filter-wrap { .filter-wrap {
@ -21,7 +21,7 @@
.pagination-box { .pagination-box {
display: flex; display: flex;
width: 100%; width: 100%;
padding: 16px 24px; padding: 16px 24px 0;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
} }

View File

@ -277,7 +277,7 @@ export default {
onClick={(e) => onDelete(e, item, index)} onClick={(e) => onDelete(e, item, index)}
/> />
<TextOverTips <TextOverTips
context={item.content} context={item.title}
line={1} line={1}
class={`cts !color-#211F24 mb-8px ${selectCardInfo.value.id === item.id ? 'bold' : ''}`} class={`cts !color-#211F24 mb-8px ${selectCardInfo.value.id === item.id ? 'bold' : ''}`}
/> />

View File

@ -21,12 +21,12 @@ export const TABLE_COLUMNS1 = [
{ {
title: '客户意见', title: '客户意见',
dataIndex: 'customer_opinion', dataIndex: 'customer_opinion',
width: 220, width: 120,
}, },
{ {
title: '稿件类型', title: '稿件类型',
dataIndex: 'type', dataIndex: 'type',
width: 180, width: 120,
}, },
{ {
title: '上传时间', title: '上传时间',
@ -84,7 +84,7 @@ export const TABLE_COLUMNS2 = [
{ {
title: '客户意见', title: '客户意见',
dataIndex: 'customer_opinion', dataIndex: 'customer_opinion',
width: 220, width: 120,
}, },
{ {
title: '审核平台', title: '审核平台',
@ -100,7 +100,7 @@ export const TABLE_COLUMNS2 = [
{ {
title: '稿件类型', title: '稿件类型',
dataIndex: 'type', dataIndex: 'type',
width: 180, width: 120,
}, },
{ {
title: '审核时间', title: '审核时间',
@ -153,7 +153,7 @@ export const TABLE_COLUMNS3 = [
{ {
title: '客户意见', title: '客户意见',
dataIndex: 'customer_opinion', dataIndex: 'customer_opinion',
width: 200, width: 120,
}, },
{ {
title: '审核平台', title: '审核平台',
@ -163,7 +163,7 @@ export const TABLE_COLUMNS3 = [
{ {
title: '稿件类型', title: '稿件类型',
dataIndex: 'type', dataIndex: 'type',
width: 180, width: 120,
}, },
{ {
title: '通过时间', title: '通过时间',

View File

@ -34,7 +34,7 @@
.pagination-box { .pagination-box {
display: flex; display: flex;
width: 100%; width: 100%;
padding: 16px 24px; padding: 16px 24px 0;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
} }

View File

@ -206,7 +206,7 @@ export default {
v-slots={{ v-slots={{
title: () => ( title: () => (
<div class="flex items-center"> <div class="flex items-center">
<span class="cts mr-4px">{column.title}</span> <span class="cts mr-4px bold color-#211F24">{column.title}</span>
{column.tooltip && ( {column.tooltip && (
<Tooltip content={column.tooltip} position="top"> <Tooltip content={column.tooltip} position="top">
<IconQuestionCircle class="tooltip-icon color-#737478" size={16} /> <IconQuestionCircle class="tooltip-icon color-#737478" size={16} />

View File

@ -6,7 +6,7 @@
font-weight: 400; font-weight: 400;
line-height: 20px; line-height: 20px;
&.bold { &.bold {
font-family: $font-family-medium; font-family: $font-family-medium;
} }
} }
.filter-row-item { .filter-row-item {

View File

@ -21,7 +21,7 @@ export const TABLE_COLUMNS = [
{ {
title: '客户意见', title: '客户意见',
dataIndex: 'customer_opinion', dataIndex: 'customer_opinion',
width: 220, width: 120,
}, },
// { // {
// title: '所属项目', // title: '所属项目',
@ -31,12 +31,12 @@ export const TABLE_COLUMNS = [
{ {
title: '稿件类型', title: '稿件类型',
dataIndex: 'type', dataIndex: 'type',
width: 180, width: 120,
}, },
{ {
title: '审核状态', title: '审核状态',
dataIndex: 'audit_status', dataIndex: 'audit_status',
width: 180, width: 120,
}, },
{ {
title: '上传时间', title: '上传时间',

View File

@ -1,6 +1,6 @@
<template> <template>
<a-table ref="tableRef" :data="dataSource" row-key="id" column-resizable :pagination="false" :scroll="{ x: '100%' }" <a-table ref="tableRef" :data="dataSource" row-key="id" column-resizable :pagination="false" :scroll="{ x: '100%' }"
class="manuscript-table w-100%" bordered @sorter-change="handleSorterChange"> class="manuscript-table w-100% flex-1" bordered @sorter-change="handleSorterChange">
<template #empty> <template #empty>
<NoData text="暂无稿件" /> <NoData text="暂无稿件" />
</template> </template>
@ -25,7 +25,7 @@
:style="{ background: getCustomerOpinionInfo(record.customer_opinion)?.bg }"> :style="{ background: getCustomerOpinionInfo(record.customer_opinion)?.bg }">
<span class="cts" :class="getCustomerOpinionInfo(record.customer_opinion)?.color">{{ <span class="cts" :class="getCustomerOpinionInfo(record.customer_opinion)?.color">{{
getCustomerOpinionInfo(record.customer_opinion)?.label ?? '-' getCustomerOpinionInfo(record.customer_opinion)?.label ?? '-'
}}</span> }}</span>
</p> </p>
</template> </template>
<template v-else-if="column.dataIndex === 'title'" #cell="{ record }"> <template v-else-if="column.dataIndex === 'title'" #cell="{ record }">
@ -36,7 +36,7 @@
:style="{ backgroundColor: getStatusInfo(record.audit_status).backgroundColor }"> :style="{ backgroundColor: getStatusInfo(record.audit_status).backgroundColor }">
<span class="cts s1" :style="{ color: getStatusInfo(record.audit_status).color }">{{ <span class="cts s1" :style="{ color: getStatusInfo(record.audit_status).color }">{{
getStatusInfo(record.audit_status).name getStatusInfo(record.audit_status).name
}}</span> }}</span>
</div> </div>
</template> </template>
<template v-else-if="column.dataIndex === 'type'" #cell="{ record }"> <template v-else-if="column.dataIndex === 'type'" #cell="{ record }">
@ -45,7 +45,7 @@
class="mr-4px" /> class="mr-4px" />
<span class="cts" :class="record.type === EnumManuscriptType.Image ? '!color-#25C883' : '!color-#6D4CFE'">{{ <span class="cts" :class="record.type === EnumManuscriptType.Image ? '!color-#25C883' : '!color-#6D4CFE'">{{
record.type === EnumManuscriptType.Image ? '图文' : '视频' record.type === EnumManuscriptType.Image ? '图文' : '视频'
}}</span> }}</span>
</div> </div>
</template> </template>
<template v-else-if="['uploader', 'last_modifier'].includes(column.dataIndex)" #cell="{ record }"> <template v-else-if="['uploader', 'last_modifier'].includes(column.dataIndex)" #cell="{ record }">

View File

@ -158,7 +158,7 @@ export default {
}); });
if (code === 200) { if (code === 200) {
taskStatus.value = TASK_STATUS.SUCCESS; taskStatus.value = TASK_STATUS.SUCCESS;
works.value = data ? [data] : []; data && works.value.push(data);
} }
}; };
@ -220,8 +220,9 @@ export default {
<Upload <Upload
action="/" action="/"
draggable draggable
multiple
customRequest={handleUpload} customRequest={handleUpload}
accept=".xlsx,.xls,.docx,.doc,.mp4,.mov,.avi,.flv,.wmv" accept=".xlsx,.xls,.docx,.doc,.mp4,.mov,.avi,.flv,.wmv,.m4v"
show-file-list={false} show-file-list={false}
> >
{{ {{

View File

@ -21,7 +21,7 @@
.pagination-box { .pagination-box {
display: flex; display: flex;
width: 100%; width: 100%;
padding: 16px 24px; padding: 16px 24px 0;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
} }

View File

@ -278,7 +278,7 @@ export default {
onClick={(e) => onDelete(e, item, index)} onClick={(e) => onDelete(e, item, index)}
/> />
<TextOverTips <TextOverTips
context={item.content} context={item.title}
line={1} line={1}
class={`cts !color-#211F24 mb-8px ${selectCardInfo.value.id === item.id ? 'bold' : ''}`} class={`cts !color-#211F24 mb-8px ${selectCardInfo.value.id === item.id ? 'bold' : ''}`}
/> />