This commit is contained in:
parent
f636173142
commit
771cc5c9ca
Binary file not shown.
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
|
|
@ -40,7 +40,7 @@ export default {
|
||||||
// 文件类型
|
// 文件类型
|
||||||
fileType: {
|
fileType: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: [],
|
default: ['doc', 'docx', 'ppt', 'pptx', 'mp4', 'pdf'],
|
||||||
},
|
},
|
||||||
// 文件大小
|
// 文件大小
|
||||||
fileSize: {
|
fileSize: {
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue