2023-11-16-dist

This commit is contained in:
X1627315083
2023-11-16 17:23:17 +08:00
parent 5be355374e
commit 2ed15a165b
53 changed files with 970 additions and 327 deletions

View File

@@ -333,7 +333,6 @@ export default defineComponent({
generageAdd(data: any) {
data.type_ = this.type_;
data.resData = JSON.parse(JSON.stringify(data))
data.jsContent1 = this.t('uploadFile.jsContent1')
this.store.commit("addGenerateMaterialFils", data);
},
@@ -344,11 +343,11 @@ export default defineComponent({
file.type === "image/jpg" ||
file.type === "image/bmp";
if (!isJpgOrPng) {
message.warning(this.t('Generate.jsContent1'));
message.info(this.t('Generate.jsContent1'));
}
const isLt2M = file.size / 1024 / 1024 < 2;
if (!isLt2M) {
message.warning(this.t('Generate.jsContent2'));
message.info(this.t('Generate.jsContent2'));
}
return (isJpgOrPng && isLt2M) || Upload.LIST_IGNORE;
},
@@ -396,13 +395,13 @@ export default defineComponent({
},
getgenerate(){
if(this.isTest){//试用用户禁止使用
message.warning(
message.info(
this.t('isTest.available')
);
return
}
if(!this.searchPictureName){
message.warning(
message.info(
this.t('Generate.jsContent3')
);
return
@@ -410,13 +409,13 @@ export default defineComponent({
if(this.searchPictureName){
let arr = this.searchPictureName.split(/\s+/).length
if(arr > 75){
message.warning(
message.info(
this.t('Generate.jsContent4')
);
return
}
}else{
message.warning(
message.info(
this.t('Generate.jsContent5')
);
return
@@ -484,7 +483,7 @@ export default defineComponent({
);
let arr = this.store.state.UploadFilesModule.sketchboard;
if (arr.length >= 8) {
message.warning(this.t('Generate.jsContent6'));
message.info(this.t('Generate.jsContent6'));
} else {
this.sketchboardList = fileList
}
@@ -498,7 +497,7 @@ export default defineComponent({
if (index > -1) {
this.sketchboardList.splice(index, 1);
}
message.error(file.name + this.t('Generate.jsContent5'));
message.warning(file.name + this.t('Generate.jsContent7'));
}
},
showFileCategory(file: any) {
@@ -536,7 +535,6 @@ export default defineComponent({
},
deleteFile(item: any) {
if (item.type_ == "generate" || item.type_ == "material") {
item.jsContent1 = this.t('uploadFile.jsContent1')
this.store.commit("addGenerateMaterialFils", item);
} else {
this.sketchboardList =