From fc7e8a12326de0bb2b38424b224c6067d1c5be9b Mon Sep 17 00:00:00 2001
From: 15820893422 <1978476055@qq.com>
Date: Fri, 24 May 2024 19:48:16 +0800
Subject: [PATCH] 1
---
src/views/product/productExamine/index.vue | 40 +++++++++----------
src/worker/numWorker.js | 45 ++++++++++++++++++++++
2 files changed, 65 insertions(+), 20 deletions(-)
create mode 100644 src/worker/numWorker.js
diff --git a/src/views/product/productExamine/index.vue b/src/views/product/productExamine/index.vue
index 85bc0c4..131e519 100644
--- a/src/views/product/productExamine/index.vue
+++ b/src/views/product/productExamine/index.vue
@@ -383,7 +383,16 @@
}}
-
+
+
+ {{ auditedList[scope.row.is_audited] }}
+
+
+
+
+
+
+
-
-
-
-
-
- {{ auditedList[scope.row.is_audited] }}
-
-
-
-
-
-
-
-
-
+
{{ scope.row.us_status | productStatusFilter }}
-
-
-
-
+
+
+
+
+
+
+
+
+
{
+ let { arr, sk, worksheet } = res.data
+ /**
+ * 处理超过26个字母的列
+ * @param {*} number
+ * @returns
+ */
+ function getLetter(number) {
+ if (number < 26) {
+ return letter[number];
+ } else {
+ let n = number % 26
+ let l = Math.floor(number % 26)
+ return letter[l] + letter[n]
+ }
+ }
+ /**
+ * 占多行的数组
+ * @param {*} arr
+ * @param {*} sk
+ */
+ function setArrayContent(arr, sk) {
+ /**
+ * 循环二维数组,在循环行
+ */
+ let al = arr.length;
+ let sl = al - 1;
+ console.log('gssgg');
+ for (let i = 0; i < arr.length; i++) {
+ let lcomunNow = worksheet.getRow(lcomun);
+ for (let v = 0; v < arr[i].length; v++) {
+ lcomunNow.getCell(getLetter(sk + v)).value = arr[i][v];
+ lcomunNow.getCell(getLetter(sk + v)).border = { top: { style: 'thin' }, left: { style: 'thin' }, bottom: { style: 'thin' }, right: { style: 'thin' } };
+ lcomunNow.alignment = { vertical: 'middle', horizontal: 'center' };
+ }
+ lcomunNow.height = 25;
+ lcomunNow.commit()
+ if (i < sl) lcomun++
+ }
+ }
+
+ setArrayContent(arr, sk)
+ postMessage('ok')
+}
\ No newline at end of file