This commit is contained in:
X1627315083
2023-12-11 11:02:48 +08:00
parent 29d0114f55
commit d851f5e87c
16 changed files with 56 additions and 31 deletions

View File

@@ -442,6 +442,7 @@ export default defineComponent({
})()
}
// console.log(this.frontBack);
this.frontBack = {
front:front,

View File

@@ -314,6 +314,7 @@ export default defineComponent({
this.isTest =JSON.parse(isTest)|| ''
this.uploadUrl = getUploadUrl();
this.workspace = this.store.state.Workspace.workspace
this.$emit('generateCheckbox',this.checkbox[0].type)
},
watch:{
driver__:{
@@ -348,7 +349,11 @@ export default defineComponent({
generageAdd(data: any) {
data.type_ = this.type_;
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);
// console.log(this.fileList);
let moodboard = this.store.state.UploadFilesModule.moodboard
@@ -586,7 +591,11 @@ export default defineComponent({
},
deleteFile(item: any) {
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);
} else {
this.sketchboardList =

View File

@@ -260,7 +260,11 @@ export default defineComponent({
this.imgList.forEach((v:any)=>{
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);
},
//改变页码

View File

@@ -359,7 +359,7 @@ export default defineComponent({
deleteFile(item: any) {
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);
}else{
this.fileList = this.store.state.UploadFilesModule.moodboardFiles

View File

@@ -325,7 +325,7 @@ export default defineComponent({
// this.fileList.splice(item, 1)
// this.store.commit('setPrintboardFile',this.fileList)
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);
}else{
this.fileList = this.store.state.UploadFilesModule.printboardFiles
@@ -716,7 +716,7 @@ export default defineComponent({
type2: 'Printboard',
},
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);
}
}

View File

@@ -111,7 +111,7 @@
</div>
<div
class="upload_file_item upload_component"
v-show="sketchboardList.length < 8"
v-show="sketchboardList.length < 20"
>
<a-upload
:action="uploadUrl + '/api/element/upload'"
@@ -140,7 +140,7 @@
</div>
<div class="upload_max_tip">
<span class="icon iconfont icon-zhuyi"></span>
<span>{{ $t('SketchboardUpload.Maximum',{numTime:20}) }}</span>
<span>{{ $t('SketchboardUpload.Maximum',{maxImg:20}) }}</span>
</div>
</div>
@@ -565,7 +565,7 @@ export default defineComponent({
deleteFile(item: any) {
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);
}else{
this.fileList = this.store.state.UploadFilesModule.sketchboardFiles
@@ -738,7 +738,7 @@ export default defineComponent({
type2: 'Sketchboard',
},
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);
nextTick().then(()=>{
if(this.driver__.driver){