|
@@ -84,7 +84,8 @@ onMounted(async () => {
|
|
|
const storePassedToNodeJs = JSON.parse(JSON.stringify(store));
|
|
|
const color = storePassedToNodeJs.config.watermark.color;
|
|
|
const nextColor = storePassedToNodeJs.config.watermark.nextColor;
|
|
|
- const otherColor = storePassedToNodeJs.config.watermark.otherColor;
|
|
|
+ // const otherColor = storePassedToNodeJs.config.watermark.otherColor;
|
|
|
+ const otherColor = "#ddd";
|
|
|
try {
|
|
|
if (config.type === "1") {
|
|
|
console.log("download start ", Date.now());
|
|
@@ -142,15 +143,38 @@ onMounted(async () => {
|
|
|
} else {
|
|
|
item.hide = false;
|
|
|
}
|
|
|
+ if (
|
|
|
+ allTags.find((v: any) => {
|
|
|
+ return (
|
|
|
+ v.groupNumber == item.groupNumber &&
|
|
|
+ v.userRole &&
|
|
|
+ v.userRole !== "MARKER" &&
|
|
|
+ (item.userRole === "MARKER" || !item.userRole)
|
|
|
+ );
|
|
|
+ })
|
|
|
+ ) {
|
|
|
+ item.forceHide = true;
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
- allTags.sort((a: any, b: any) => {
|
|
|
- return a.userId - b.userId;
|
|
|
- });
|
|
|
+ // allTags.sort((a: any, b: any) => {
|
|
|
+ // return a.userId - b.userId;
|
|
|
+ // });
|
|
|
let colorMap: any = {};
|
|
|
+ let headerColorMap: any = {};
|
|
|
for (let i = 0; i < allTags.length; i++) {
|
|
|
const tag: any = allTags[i];
|
|
|
const { groupNumber } = tag;
|
|
|
+ if (tag.userRole && tag.userRole !== "MARKER") {
|
|
|
+ if (!headerColorMap[groupNumber + ""]) {
|
|
|
+ headerColorMap[groupNumber + ""] = {};
|
|
|
+ headerColorMap[groupNumber + ""][tag.userId + ""] = "#008000";
|
|
|
+ continue;
|
|
|
+ } else {
|
|
|
+ headerColorMap[groupNumber + ""][tag.userId + ""] = "#008000";
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (!colorMap[groupNumber + ""]) {
|
|
|
colorMap[groupNumber + ""] = {};
|
|
|
colorMap[groupNumber + ""][tag.userId + ""] = color;
|
|
@@ -227,6 +251,7 @@ onMounted(async () => {
|
|
|
config.x,
|
|
|
config.y,
|
|
|
colorMap,
|
|
|
+ headerColorMap,
|
|
|
onlyUsePdf
|
|
|
);
|
|
|
resultImgList.push(fileLocation);
|