This commit is contained in:
BianLzhaoMin 2025-09-16 17:39:34 +08:00
parent f636173142
commit 771cc5c9ca
9 changed files with 53 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
src/assets/logo/logo1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -40,7 +40,7 @@ export default {
// //
fileType: { fileType: {
type: Array, type: Array,
default: [], default: ['doc', 'docx', 'ppt', 'pptx', 'mp4', 'pdf'],
}, },
// //
fileSize: { fileSize: {

View File

@ -46,7 +46,6 @@
<UploadFileFormData <UploadFileFormData
:limit="1" :limit="1"
:file-size="500" :file-size="500"
:file-type="[]"
:file-list.sync="addAndEditForm.file" :file-list.sync="addAndEditForm.file"
:is-uploaded="addAndEditForm.file.length >= 1" :is-uploaded="addAndEditForm.file.length >= 1"
@onSelectDeleteFileId="handleSelectDeleteFileId" @onSelectDeleteFileId="handleSelectDeleteFileId"

View File

@ -31,6 +31,22 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="status">
<el-select
clearable
filterable
style="width: 100%"
placeholder="请选择归属产品"
v-model="queryParams.productId"
>
<el-option
:key="item.id"
:label="item.name"
:value="item.id"
v-for="item in productList"
/>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
@ -117,9 +133,18 @@
<span v-else> / </span> <span v-else> / </span>
</template> </template>
<template v-if="column.prop === 'fileType'"> <template v-if="column.prop === 'fileType'">
<el-tag size="mini" type="primary"> <el-tag
{{ scope.row.typeId === 1 ? '物料' : '视频' }} size="mini"
type="primary"
v-if="scope.row.files && scope.row.files.length > 0"
>
{{
scope.row.files[0].fileType === 1
? '物料'
: '视频'
}}
</el-tag> </el-tag>
<span v-else> / </span>
</template> </template>
<template v-if="column.prop === 'cover'"> <template v-if="column.prop === 'cover'">
@ -197,6 +222,7 @@
import { import {
getProMaterialsListAPI, getProMaterialsListAPI,
deleteProductCenterAPI, deleteProductCenterAPI,
getProductListAPI,
} from '@/api/dataManage/pro-materials' } from '@/api/dataManage/pro-materials'
import { encryptCBCTime } from '@/utils/aes' import { encryptCBCTime } from '@/utils/aes'
import useBase64 from '@/utils/base64Utils.js' import useBase64 from '@/utils/base64Utils.js'
@ -215,9 +241,11 @@ export default {
formType: 1, formType: 1,
detailsId: null, detailsId: null,
tableData: [], tableData: [],
productList: [],
queryParams: { queryParams: {
name: undefined, name: undefined,
typeId: undefined, typeId: undefined,
productId: undefined,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}, },
@ -230,6 +258,10 @@ export default {
prop: 'typeName', prop: 'typeName',
label: '类型', label: '类型',
}, },
{
prop: 'productName',
label: '归属产品',
},
{ {
prop: 'version', prop: 'version',
label: '版本', label: '版本',
@ -280,6 +312,7 @@ export default {
}, },
created() { created() {
this.getProMaterialsListFun() this.getProMaterialsListFun()
this.getProductList()
}, },
methods: { methods: {
// //
@ -362,6 +395,8 @@ export default {
) )
filePreviewPath = `${this.lookFile}${encodedPath}&token=${time}` filePreviewPath = `${this.lookFile}${encodedPath}&token=${time}`
console.log('filePreviewPath', filePreviewPath)
const isEdgeOrOther = /Edg|Chrome|Firefox|Safari/.test( const isEdgeOrOther = /Edg|Chrome|Firefox|Safari/.test(
navigator.userAgent, navigator.userAgent,
) )
@ -372,8 +407,17 @@ export default {
} }
this.iframeUrl = filePreviewPath this.iframeUrl = filePreviewPath
console.log('this.iframeUrl', this.iframeUrl)
this.previewDialogConfig.outerVisible = true this.previewDialogConfig.outerVisible = true
}, },
//
async getProductList() {
const res = await getProductListAPI({ typeId: '' })
this.productList = res.data
},
}, },
} }
</script> </script>

View File

@ -4,7 +4,7 @@
<div class="header-left"> <div class="header-left">
<div class="logo-section" @click="handleLogoClick"> <div class="logo-section" @click="handleLogoClick">
<img <img
src="../../../assets/images/productCenter/logo.png" src="../../../assets/logo/logo.png"
alt="Logo" alt="Logo"
class="logo" class="logo"
/> />

View File

@ -174,7 +174,7 @@ export default {
getItemWidth() { getItemWidth() {
if (this.$refs.cardWrapper) { if (this.$refs.cardWrapper) {
// 4 // 4
this.itemWidth = (this.$refs.cardWrapper.clientWidth - 30) / 4 this.itemWidth = (this.$refs.cardWrapper.clientWidth - 260) / 4
} }
}, },
@ -444,7 +444,8 @@ export default {
} }
.card-item-image { .card-item-image {
width: 100%; // width: 100%;
height: 190px;
position: relative; position: relative;
.video-mask { .video-mask {

View File

@ -302,7 +302,7 @@ export default {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease; transition: all 0.2s ease;
font-family: 'PingFang SC', sans-serif; font-family: 'PingFang SC', sans-serif;
// font-weight: 600; text-align: center;
} }
.category-item:hover { .category-item:hover {

View File

@ -847,7 +847,7 @@ export default {
gap: 24px; gap: 24px;
.product-image { .product-image {
border-bottom: 1px solid #000; // border-bottom: 1px solid #000;
} }
.product-info { .product-info {