[update 88275] 拆分去掉上传gif
This commit is contained in:
@@ -518,7 +518,7 @@ module.exports = {
|
|||||||
gotIt: 'Got It',
|
gotIt: 'Got It',
|
||||||
formatRequirement: 'Format requirement',
|
formatRequirement: 'Format requirement',
|
||||||
formatRequirementContentOne: '1.The imported document is in zip format',
|
formatRequirementContentOne: '1.The imported document is in zip format',
|
||||||
formatRequirementContentTwo: '2.The images are in jpg, jpeg, png, gif format',
|
formatRequirementContentTwo: '2.The images are in jpg, jpeg, png format',
|
||||||
formatRequirementContentThree: '3.The image in the document is displayed in the form of a link in the exported excel, click the link to jump to the specified local file',
|
formatRequirementContentThree: '3.The image in the document is displayed in the form of a link in the exported excel, click the link to jump to the specified local file',
|
||||||
formatRequirementContentFour: '4.The table in the document is displayed in the form of a link in the exported excel. Click the link to jump to the specified sheet page',
|
formatRequirementContentFour: '4.The table in the document is displayed in the form of a link in the exported excel. Click the link to jump to the specified sheet page',
|
||||||
changePermissions: 'Change permissions',
|
changePermissions: 'Change permissions',
|
||||||
|
|||||||
@@ -518,7 +518,7 @@ module.exports = {
|
|||||||
gotIt: '知道了',
|
gotIt: '知道了',
|
||||||
formatRequirement: '格式要求',
|
formatRequirement: '格式要求',
|
||||||
formatRequirementContentOne: '1.导入的文档是zip格式',
|
formatRequirementContentOne: '1.导入的文档是zip格式',
|
||||||
formatRequirementContentTwo: '2.图片为jpg、jpeg、png、gif格式',
|
formatRequirementContentTwo: '2.图片为jpg、jpeg、png格式',
|
||||||
formatRequirementContentThree: '3.文档中的图片,在导出excel中以链接的形式展示,点击链接跳转到本地指定的文件',
|
formatRequirementContentThree: '3.文档中的图片,在导出excel中以链接的形式展示,点击链接跳转到本地指定的文件',
|
||||||
formatRequirementContentFour: '4.文档中的表格,在导出excel中以链接的形式展示,点击链接跳转到指定的sheet页面',
|
formatRequirementContentFour: '4.文档中的表格,在导出excel中以链接的形式展示,点击链接跳转到指定的sheet页面',
|
||||||
changePermissions: '更改权限',
|
changePermissions: '更改权限',
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export default {
|
|||||||
// const fileTypes = this.accept.split('/')
|
// const fileTypes = this.accept.split('/')
|
||||||
const fileNowTypes = file.type.split('/')
|
const fileNowTypes = file.type.split('/')
|
||||||
// 修改判断方法 限制jpg\jpeg\png\gif 可以上传 其他不能上传。
|
// 修改判断方法 限制jpg\jpeg\png\gif 可以上传 其他不能上传。
|
||||||
fileFlag = (['PNG', 'JPEG', 'PNG', 'GIF'].includes(fileNowTypes[1].toUpperCase()))
|
fileFlag = (['PNG', 'JPEG', 'PNG'].includes(fileNowTypes[1].toUpperCase()))
|
||||||
// console.log('filetype',fileFlag)
|
// console.log('filetype',fileFlag)
|
||||||
if (!fileFlag) {
|
if (!fileFlag) {
|
||||||
this.$message.warning(this.$t('uploadFile.fileFormatIncorrect'))
|
this.$message.warning(this.$t('uploadFile.fileFormatIncorrect'))
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ export default {
|
|||||||
disabled: false,
|
disabled: false,
|
||||||
titleImg: this.$t('uploadPictures'),
|
titleImg: this.$t('uploadPictures'),
|
||||||
listType: 'picture',
|
listType: 'picture',
|
||||||
accept: '.png,.jpeg,.jpg,.gif',
|
accept: '.png,.jpeg,.jpg',
|
||||||
// 表格行列相关数据
|
// 表格行列相关数据
|
||||||
rowColForm: {},
|
rowColForm: {},
|
||||||
validatorRowColRules: {
|
validatorRowColRules: {
|
||||||
|
|||||||
Reference in New Issue
Block a user