fix
This commit is contained in:
@@ -442,6 +442,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
})()
|
})()
|
||||||
}
|
}
|
||||||
|
// console.log(this.frontBack);
|
||||||
|
|
||||||
this.frontBack = {
|
this.frontBack = {
|
||||||
front:front,
|
front:front,
|
||||||
|
|||||||
@@ -314,6 +314,7 @@ export default defineComponent({
|
|||||||
this.isTest =JSON.parse(isTest)|| ''
|
this.isTest =JSON.parse(isTest)|| ''
|
||||||
this.uploadUrl = getUploadUrl();
|
this.uploadUrl = getUploadUrl();
|
||||||
this.workspace = this.store.state.Workspace.workspace
|
this.workspace = this.store.state.Workspace.workspace
|
||||||
|
this.$emit('generateCheckbox',this.checkbox[0].type)
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
driver__:{
|
driver__:{
|
||||||
@@ -348,7 +349,11 @@ export default defineComponent({
|
|||||||
generageAdd(data: any) {
|
generageAdd(data: any) {
|
||||||
data.type_ = this.type_;
|
data.type_ = this.type_;
|
||||||
data.resData = JSON.parse(JSON.stringify(data))
|
data.resData = JSON.parse(JSON.stringify(data))
|
||||||
data.jsContent1 = this.t('uploadFile.jsContent1')
|
let maxImg = 8
|
||||||
|
if(this.type_.type2 == 'Sketchboard'){
|
||||||
|
maxImg = 20
|
||||||
|
}
|
||||||
|
data.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:maxImg})
|
||||||
this.store.commit("addGenerateMaterialFils", data);
|
this.store.commit("addGenerateMaterialFils", data);
|
||||||
// console.log(this.fileList);
|
// console.log(this.fileList);
|
||||||
let moodboard = this.store.state.UploadFilesModule.moodboard
|
let moodboard = this.store.state.UploadFilesModule.moodboard
|
||||||
@@ -586,7 +591,11 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
deleteFile(item: any) {
|
deleteFile(item: any) {
|
||||||
if (item.type_ == "generate" || item.type_ == "material") {
|
if (item.type_ == "generate" || item.type_ == "material") {
|
||||||
item.jsContent1 = this.t('uploadFile.jsContent1')
|
let maxImg = 8
|
||||||
|
if(this.type_.type2 == 'Sketchboard'){
|
||||||
|
maxImg = 20
|
||||||
|
}
|
||||||
|
item.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:maxImg})
|
||||||
this.store.commit("addGenerateMaterialFils", item);
|
this.store.commit("addGenerateMaterialFils", item);
|
||||||
} else {
|
} else {
|
||||||
this.sketchboardList =
|
this.sketchboardList =
|
||||||
|
|||||||
@@ -260,7 +260,11 @@ export default defineComponent({
|
|||||||
this.imgList.forEach((v:any)=>{
|
this.imgList.forEach((v:any)=>{
|
||||||
v.categoryShow = false
|
v.categoryShow = false
|
||||||
})
|
})
|
||||||
imgData.jsContent1 = this.t('uploadFile.jsContent1')
|
let maxImg = 8
|
||||||
|
if(this.selectCode == 'Sketchboard'){
|
||||||
|
maxImg = 20
|
||||||
|
}
|
||||||
|
imgData.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:maxImg})
|
||||||
this.store.commit("addGenerateMaterialFils", imgData);
|
this.store.commit("addGenerateMaterialFils", imgData);
|
||||||
},
|
},
|
||||||
//改变页码
|
//改变页码
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
deleteFile(item: any) {
|
deleteFile(item: any) {
|
||||||
if(item.type_.type1 == 'generate' || item.type_.type1 == 'material'){
|
if(item.type_.type1 == 'generate' || item.type_.type1 == 'material'){
|
||||||
item.jsContent1 = this.t('uploadFile.jsContent1')
|
item.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:8})
|
||||||
this.store.commit("addGenerateMaterialFils", item);
|
this.store.commit("addGenerateMaterialFils", item);
|
||||||
}else{
|
}else{
|
||||||
this.fileList = this.store.state.UploadFilesModule.moodboardFiles
|
this.fileList = this.store.state.UploadFilesModule.moodboardFiles
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ export default defineComponent({
|
|||||||
// this.fileList.splice(item, 1)
|
// this.fileList.splice(item, 1)
|
||||||
// this.store.commit('setPrintboardFile',this.fileList)
|
// this.store.commit('setPrintboardFile',this.fileList)
|
||||||
if(item.type_.type1 == 'generate' || item.type_.type1 == 'material'){
|
if(item.type_.type1 == 'generate' || item.type_.type1 == 'material'){
|
||||||
item.jsContent1 = this.t('uploadFile.jsContent1')
|
item.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:8})
|
||||||
this.store.commit("addGenerateMaterialFils", item);
|
this.store.commit("addGenerateMaterialFils", item);
|
||||||
}else{
|
}else{
|
||||||
this.fileList = this.store.state.UploadFilesModule.printboardFiles
|
this.fileList = this.store.state.UploadFilesModule.printboardFiles
|
||||||
@@ -716,7 +716,7 @@ export default defineComponent({
|
|||||||
type2: 'Printboard',
|
type2: 'Printboard',
|
||||||
},
|
},
|
||||||
item.resData = JSON.parse(JSON.stringify(item))
|
item.resData = JSON.parse(JSON.stringify(item))
|
||||||
item.jsContent1 = this.t('uploadFile.jsContent1')
|
item.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:8})
|
||||||
this.store.commit("addGenerateMaterialFils", item);
|
this.store.commit("addGenerateMaterialFils", item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,7 +111,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="upload_file_item upload_component"
|
class="upload_file_item upload_component"
|
||||||
v-show="sketchboardList.length < 8"
|
v-show="sketchboardList.length < 20"
|
||||||
>
|
>
|
||||||
<a-upload
|
<a-upload
|
||||||
:action="uploadUrl + '/api/element/upload'"
|
:action="uploadUrl + '/api/element/upload'"
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="upload_max_tip">
|
<div class="upload_max_tip">
|
||||||
<span class="icon iconfont icon-zhuyi"></span>
|
<span class="icon iconfont icon-zhuyi"></span>
|
||||||
<span>{{ $t('SketchboardUpload.Maximum',{numTime:20}) }}</span>
|
<span>{{ $t('SketchboardUpload.Maximum',{maxImg:20}) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -565,7 +565,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
deleteFile(item: any) {
|
deleteFile(item: any) {
|
||||||
if(item.type_.type1 == 'generate' || item.type_.type1 == 'material'){
|
if(item.type_.type1 == 'generate' || item.type_.type1 == 'material'){
|
||||||
item.jsContent1 = this.t('uploadFile.jsContent1')
|
item.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:20})
|
||||||
this.store.commit("addGenerateMaterialFils", item);
|
this.store.commit("addGenerateMaterialFils", item);
|
||||||
}else{
|
}else{
|
||||||
this.fileList = this.store.state.UploadFilesModule.sketchboardFiles
|
this.fileList = this.store.state.UploadFilesModule.sketchboardFiles
|
||||||
@@ -738,7 +738,7 @@ export default defineComponent({
|
|||||||
type2: 'Sketchboard',
|
type2: 'Sketchboard',
|
||||||
},
|
},
|
||||||
item.resData = JSON.parse(JSON.stringify(item))
|
item.resData = JSON.parse(JSON.stringify(item))
|
||||||
item.jsContent1 = this.t('uploadFile.jsContent1')
|
item.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:20})
|
||||||
this.store.commit("addGenerateMaterialFils", item);
|
this.store.commit("addGenerateMaterialFils", item);
|
||||||
nextTick().then(()=>{
|
nextTick().then(()=>{
|
||||||
if(this.driver__.driver){
|
if(this.driver__.driver){
|
||||||
|
|||||||
@@ -138,6 +138,8 @@ export default {
|
|||||||
Preview:'预览',
|
Preview:'预览',
|
||||||
Back:'Back',
|
Back:'Back',
|
||||||
Restore:'重置',
|
Restore:'重置',
|
||||||
|
System:'系统',
|
||||||
|
Library:'收藏',
|
||||||
Point:'点位',
|
Point:'点位',
|
||||||
RemovePoint:'删除点位',
|
RemovePoint:'删除点位',
|
||||||
mannequinHint:'模特背景图片请使用白色或者其他颜色来增强效果',
|
mannequinHint:'模特背景图片请使用白色或者其他颜色来增强效果',
|
||||||
@@ -159,7 +161,7 @@ export default {
|
|||||||
Library:'收藏',
|
Library:'收藏',
|
||||||
Generate:'生成',
|
Generate:'生成',
|
||||||
PIN:'PIN',
|
PIN:'PIN',
|
||||||
Maximum:'最多可上传8张图片,每张图片最大2M',
|
Maximum:'最多可上传{maxImg}张图片,每张图片最大2M',
|
||||||
Thumbnail:'选择的服装缩略图',
|
Thumbnail:'选择的服装缩略图',
|
||||||
inputContent1:'生成图片的标题',
|
inputContent1:'生成图片的标题',
|
||||||
maximumLength:'输入的内容超过允许输入的最大长度',
|
maximumLength:'输入的内容超过允许输入的最大长度',
|
||||||
@@ -201,7 +203,6 @@ export default {
|
|||||||
jsContent3:"您只能上传图片文件!",
|
jsContent3:"您只能上传图片文件!",
|
||||||
jsContent4:'图片必须小于2MB',
|
jsContent4:'图片必须小于2MB',
|
||||||
jsContent5:"请输入正确的TCX值",
|
jsContent5:"请输入正确的TCX值",
|
||||||
|
|
||||||
},
|
},
|
||||||
MoodboardUpload:{
|
MoodboardUpload:{
|
||||||
Upload:'上传',
|
Upload:'上传',
|
||||||
@@ -319,6 +320,6 @@ export default {
|
|||||||
jsContent1:'以上操作没有保存,是否继续? ',
|
jsContent1:'以上操作没有保存,是否继续? ',
|
||||||
},
|
},
|
||||||
uploadFile:{
|
uploadFile:{
|
||||||
jsContent1:'您最多可以选择8张图片哦',
|
jsContent1:'您最多可以选择{maxImg}张图片哦',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,6 +110,10 @@ export default {
|
|||||||
jsContent1:'Deleted successfully',
|
jsContent1:'Deleted successfully',
|
||||||
jsContent2:'Do you really want to delete this collection? ',
|
jsContent2:'Do you really want to delete this collection? ',
|
||||||
jsContent3:'Change successfully',
|
jsContent3:'Change successfully',
|
||||||
|
jsContent4:'Image must smaller than 2MB!',
|
||||||
|
jsContent5:'This picture has been uploaded whether to continue uploading?',
|
||||||
|
jsContent6:'The entered content exceeds the maximum length.',
|
||||||
|
jsContent7:'Please enter content',
|
||||||
},
|
},
|
||||||
ModelPlacement:{
|
ModelPlacement:{
|
||||||
Registration:'Registration',
|
Registration:'Registration',
|
||||||
@@ -157,7 +161,7 @@ export default {
|
|||||||
Library:'Library',
|
Library:'Library',
|
||||||
Generate:'Generate',
|
Generate:'Generate',
|
||||||
PIN:'PIN',
|
PIN:'PIN',
|
||||||
Maximum:'Maximum {numTime} images can be uploaded, Maximum 2M per image',
|
Maximum:'Maximum {maxImg} images can be uploaded, Maximum 2M per image',
|
||||||
Thumbnail:'Thumbnail preview of selected sketchboard',
|
Thumbnail:'Thumbnail preview of selected sketchboard',
|
||||||
inputContent1:'Caption generation',
|
inputContent1:'Caption generation',
|
||||||
maximumLength:'The entered content exceeds the maximum length.',
|
maximumLength:'The entered content exceeds the maximum length.',
|
||||||
@@ -316,7 +320,7 @@ export default {
|
|||||||
jsContent1:'The above changes are not saved, being sure to continue? ',
|
jsContent1:'The above changes are not saved, being sure to continue? ',
|
||||||
},
|
},
|
||||||
uploadFile:{
|
uploadFile:{
|
||||||
jsContent1:'You can select up to 8 images',
|
jsContent1:'You can select up to {maxImg} images',
|
||||||
},
|
},
|
||||||
isTest:{
|
isTest:{
|
||||||
available:"This feature is not available to trial users",
|
available:"This feature is not available to trial users",
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ export default {
|
|||||||
Library:'Bibliothèque',
|
Library:'Bibliothèque',
|
||||||
Generate:'Générer',
|
Generate:'Générer',
|
||||||
PIN:'PIN',
|
PIN:'PIN',
|
||||||
Maximum:'Un maximum de 8 images peuvent être téléchargées, maximum 2 M par image',
|
Maximum:'Un maximum de {maxImg} images peuvent être téléchargées, maximum 2 M par image',
|
||||||
Thumbnail:'Aperçu miniature du tableau de croquis sélectionné',
|
Thumbnail:'Aperçu miniature du tableau de croquis sélectionné',
|
||||||
inputContent1:'Génération de sous-titres',
|
inputContent1:'Génération de sous-titres',
|
||||||
maximumLength:'Le contenu saisi dépasse la longueur maximale.',
|
maximumLength:'Le contenu saisi dépasse la longueur maximale.',
|
||||||
@@ -321,6 +321,6 @@ export default {
|
|||||||
jsContent1:'Les modifications ci-dessus ne sont pas enregistrées, assurez-vous de continuer? ',
|
jsContent1:'Les modifications ci-dessus ne sont pas enregistrées, assurez-vous de continuer? ',
|
||||||
},
|
},
|
||||||
uploadFile:{
|
uploadFile:{
|
||||||
jsContent1:"Vous pouvez sélectionner jusqu'à 8 images",
|
jsContent1:"Vous pouvez sélectionner jusqu'à {maxImg} images",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ export default {
|
|||||||
Library:'Biblioteca',
|
Library:'Biblioteca',
|
||||||
Generate:'creare',
|
Generate:'creare',
|
||||||
PIN:'PIN',
|
PIN:'PIN',
|
||||||
Maximum:'È possibile caricare un massimo di 8 immagini, massimo 2 milioni per immagine',
|
Maximum:'È possibile caricare un massimo di {maxImg} immagini, massimo 2 milioni per immagine',
|
||||||
Thumbnail:'Anteprima in miniatura dello sketchboard selezionato',
|
Thumbnail:'Anteprima in miniatura dello sketchboard selezionato',
|
||||||
inputContent1:'Generazione didascalie',
|
inputContent1:'Generazione didascalie',
|
||||||
maximumLength:'Il contenuto inserito supera la lunghezza massima.',
|
maximumLength:'Il contenuto inserito supera la lunghezza massima.',
|
||||||
@@ -320,6 +320,6 @@ export default {
|
|||||||
jsContent1:'Le modifiche di cui sopra non vengono salvate, assicurandosi di continuare? ',
|
jsContent1:'Le modifiche di cui sopra non vengono salvate, assicurandosi di continuare? ',
|
||||||
},
|
},
|
||||||
uploadFile:{
|
uploadFile:{
|
||||||
jsContent1:'È possibile selezionare fino a 8 immagini',
|
jsContent1:'È possibile selezionare fino a {maxImg} immagini',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ export default {
|
|||||||
Library:'集める',
|
Library:'集める',
|
||||||
Generate:'生成する',
|
Generate:'生成する',
|
||||||
PIN:'PIN',
|
PIN:'PIN',
|
||||||
Maximum:'画像は最大8枚アップロード可能、1枚あたり最大2M',
|
Maximum:'画像は最大{maxImg}枚アップロード可能、1枚あたり最大2M',
|
||||||
Thumbnail:'選択したスケッチボードのサムネイル プレビュー',
|
Thumbnail:'選択したスケッチボードのサムネイル プレビュー',
|
||||||
inputContent1:'キャプションの生成',
|
inputContent1:'キャプションの生成',
|
||||||
maximumLength:'入力した内容が最大長を超えています.',
|
maximumLength:'入力した内容が最大長を超えています.',
|
||||||
@@ -320,6 +320,6 @@ export default {
|
|||||||
jsContent1:'上記の変更は保存されません。続行しますか? ',
|
jsContent1:'上記の変更は保存されません。続行しますか? ',
|
||||||
},
|
},
|
||||||
uploadFile:{
|
uploadFile:{
|
||||||
jsContent1:'最大8枚の画像を選択できます',
|
jsContent1:'最大{maxImg}枚の画像を選択できます',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ export default {
|
|||||||
Library:'도서관',
|
Library:'도서관',
|
||||||
Generate:'생성하다',
|
Generate:'생성하다',
|
||||||
PIN:'PIN',
|
PIN:'PIN',
|
||||||
Maximum:'최대 8개의 이미지를 업로드할 수 있으며, 이미지당 최대 2M',
|
Maximum:'최대 {maxImg}개의 이미지를 업로드할 수 있으며, 이미지당 최대 2M',
|
||||||
Thumbnail:'선택한 스케치보드의 썸네일 미리보기',
|
Thumbnail:'선택한 스케치보드의 썸네일 미리보기',
|
||||||
inputContent1:'캡션 생성',
|
inputContent1:'캡션 생성',
|
||||||
maximumLength:'입력한 내용이 최대 길이를 초과했습니다.',
|
maximumLength:'입력한 내용이 최대 길이를 초과했습니다.',
|
||||||
@@ -320,6 +320,6 @@ export default {
|
|||||||
jsContent1:'위 변경사항이 저장되지 않았습니다. 계속하시겠습니까? ',
|
jsContent1:'위 변경사항이 저장되지 않았습니다. 계속하시겠습니까? ',
|
||||||
},
|
},
|
||||||
uploadFile:{
|
uploadFile:{
|
||||||
jsContent1:'최대 8개의 이미지를 선택할 수 있습니다.',
|
jsContent1:'최대 {maxImg}개의 이미지를 선택할 수 있습니다.',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ export default {
|
|||||||
Library:'Библиотека',
|
Library:'Библиотека',
|
||||||
Generate:'Генерировать',
|
Generate:'Генерировать',
|
||||||
PIN:'PIN',
|
PIN:'PIN',
|
||||||
Maximum:'Можно загрузить максимум 8 изображений, максимум 2 М на изображение.',
|
Maximum:'Можно загрузить максимум {maxImg} изображений, максимум 2 М на изображение.',
|
||||||
Thumbnail:'Предварительный просмотр миниатюр выбранной эскизной панели',
|
Thumbnail:'Предварительный просмотр миниатюр выбранной эскизной панели',
|
||||||
inputContent1:'Создание подписей',
|
inputContent1:'Создание подписей',
|
||||||
maximumLength:'Введенный контент превышает максимальную длину.',
|
maximumLength:'Введенный контент превышает максимальную длину.',
|
||||||
@@ -320,6 +320,6 @@ export default {
|
|||||||
jsContent1:'Вышеуказанные изменения не сохраняются, обязательно продолжайте? ',
|
jsContent1:'Вышеуказанные изменения не сохраняются, обязательно продолжайте? ',
|
||||||
},
|
},
|
||||||
uploadFile:{
|
uploadFile:{
|
||||||
jsContent1:'Вы можете выбрать до 8 изображений',
|
jsContent1:'Вы можете выбрать до {maxImg} изображений',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,6 +138,8 @@ export default {
|
|||||||
Preview:'ดูตัวอย่าง',
|
Preview:'ดูตัวอย่าง',
|
||||||
Back:'กลับ',
|
Back:'กลับ',
|
||||||
Restore:'คืนค่า',
|
Restore:'คืนค่า',
|
||||||
|
System:'ระบบ',
|
||||||
|
Library:'ห้องสมุด',
|
||||||
Point:'จุด',
|
Point:'จุด',
|
||||||
RemovePoint:'ถอดจุด',
|
RemovePoint:'ถอดจุด',
|
||||||
mannequinHint:'โปรดเปลี่ยนสีขาวบริสุทธิ์ภายในหุ่นเป็นสีอื่นเพื่อเพิ่มประสบการณ์ของคุณ',
|
mannequinHint:'โปรดเปลี่ยนสีขาวบริสุทธิ์ภายในหุ่นเป็นสีอื่นเพื่อเพิ่มประสบการณ์ของคุณ',
|
||||||
@@ -159,7 +161,7 @@ export default {
|
|||||||
Library:'ห้องสมุด',
|
Library:'ห้องสมุด',
|
||||||
Generate:'กำเนิด',
|
Generate:'กำเนิด',
|
||||||
PIN:'PIN',
|
PIN:'PIN',
|
||||||
Maximum:'สามารถอัพโหลดภาพได้สูงสุด 8 ภาพ สูงสุด 2M ต่อภาพ',
|
Maximum:'สามารถอัพโหลดภาพได้สูงสุด {maxImg} ภาพ สูงสุด 2M ต่อภาพ',
|
||||||
Thumbnail:'ภาพตัวอย่างขนาดย่อของกระดานร่างภาพที่เลือก',
|
Thumbnail:'ภาพตัวอย่างขนาดย่อของกระดานร่างภาพที่เลือก',
|
||||||
inputContent1:'การสร้างคำบรรยายภาพ',
|
inputContent1:'การสร้างคำบรรยายภาพ',
|
||||||
maximumLength:'เนื้อหาที่ป้อนเกินความยาวสูงสุด.',
|
maximumLength:'เนื้อหาที่ป้อนเกินความยาวสูงสุด.',
|
||||||
@@ -318,6 +320,6 @@ export default {
|
|||||||
jsContent1:'การเปลี่ยนแปลงข้างต้นไม่ได้รับการบันทึก โปรดดำเนินการต่อ? ',
|
jsContent1:'การเปลี่ยนแปลงข้างต้นไม่ได้รับการบันทึก โปรดดำเนินการต่อ? ',
|
||||||
},
|
},
|
||||||
uploadFile:{
|
uploadFile:{
|
||||||
jsContent1:'คุณสามารถเลือกได้สูงสุด 8 ภาพ',
|
jsContent1:'คุณสามารถเลือกได้สูงสุด {maxImg} ภาพ',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ export default {
|
|||||||
Library:'Thư viện',
|
Library:'Thư viện',
|
||||||
Generate:'Phát ra',
|
Generate:'Phát ra',
|
||||||
PIN:'PIN',
|
PIN:'PIN',
|
||||||
Maximum:'Có thể tải lên tối đa 8 hình ảnh, Tối đa 2M mỗi hình ảnh',
|
Maximum:'Có thể tải lên tối đa {maxImg} hình ảnh, Tối đa 2M mỗi hình ảnh',
|
||||||
Thumbnail:'Xem trước hình thu nhỏ của bảng phác thảo đã chọn',
|
Thumbnail:'Xem trước hình thu nhỏ của bảng phác thảo đã chọn',
|
||||||
inputContent1:'Tạo phụ đề',
|
inputContent1:'Tạo phụ đề',
|
||||||
maximumLength:'Nội dung đã nhập vượt quá độ dài tối đa.',
|
maximumLength:'Nội dung đã nhập vượt quá độ dài tối đa.',
|
||||||
@@ -320,6 +320,6 @@ export default {
|
|||||||
jsContent1:'Những thay đổi trên không được lưu, hãy chắc chắn để tiếp tục? ',
|
jsContent1:'Những thay đổi trên không được lưu, hãy chắc chắn để tiếp tục? ',
|
||||||
},
|
},
|
||||||
uploadFile:{
|
uploadFile:{
|
||||||
jsContent1:'Bạn có thể chọn tối đa 8 hình ảnh',
|
jsContent1:'Bạn có thể chọn tối đa {maxImg} hình ảnh',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,6 +66,10 @@ const UploadFilesModule : Module<UploadFiles,RootState> = {
|
|||||||
addGenerateMaterialFils(state,data:any){
|
addGenerateMaterialFils(state,data:any){
|
||||||
let file
|
let file
|
||||||
let arr
|
let arr
|
||||||
|
let maxImg = 8
|
||||||
|
if(data.type_.type2 == 'Sketchboard'){
|
||||||
|
maxImg = 20
|
||||||
|
}
|
||||||
if(data.type_.type1 == 'generate'){//判断是generate||library
|
if(data.type_.type1 == 'generate'){//判断是generate||library
|
||||||
data.resData.designType = 'Generate'
|
data.resData.designType = 'Generate'
|
||||||
if(data.type_.type2 == 'Moodboard'){
|
if(data.type_.type2 == 'Moodboard'){
|
||||||
@@ -94,7 +98,7 @@ const UploadFilesModule : Module<UploadFiles,RootState> = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(file.length == 0){
|
if(file.length == 0){
|
||||||
if(arr.length >= 8){
|
if(arr.length >= maxImg){
|
||||||
// message.warning(GO.jsContent1)
|
// message.warning(GO.jsContent1)
|
||||||
message.warning(data.jsContent1)
|
message.warning(data.jsContent1)
|
||||||
}else{
|
}else{
|
||||||
@@ -110,7 +114,7 @@ const UploadFilesModule : Module<UploadFiles,RootState> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(str){
|
if(str){
|
||||||
if(arr.length >= 8){
|
if(arr.length >= maxImg){
|
||||||
message.warning(data.jsContent1)
|
message.warning(data.jsContent1)
|
||||||
}else{
|
}else{
|
||||||
data.checked = true
|
data.checked = true
|
||||||
|
|||||||
Reference in New Issue
Block a user