|
@@ -217,13 +217,13 @@ import TestTree from "../material/components/TestTree.vue"
|
|
|
import {getStoreValue, setStoreValue, delStoreValue} from '~src/utils/storage'
|
|
|
import HcDragUpload from "./components/HcDragUpload.vue"
|
|
|
import dataApi from "~api/tentative/detect/test";
|
|
|
-import {delMessage, rowsToId} from "~uti/tools";
|
|
|
import {getDictionary} from "~api/other";
|
|
|
import {eVisaTaskCheckApi} from "~api/other"
|
|
|
import wbsApi from "~api/data-fill/wbs"
|
|
|
-import {getArrValue, arrKeyValue, isString} from "js-fast-way"
|
|
|
+import {getArrValue, arrKeyValue, isString, arrToId} from "js-fast-way"
|
|
|
import {Loading} from "element-plus/es/components/loading/src/service";
|
|
|
import notableform from '~src/assets/view/notableform.svg';
|
|
|
+import {delMessage} from "~uti/tools";
|
|
|
|
|
|
//变量
|
|
|
const router = useRouter()
|
|
@@ -453,7 +453,7 @@ const tableRowPdf = ({pdfUrl}) => {
|
|
|
const copyDataClick = () => {
|
|
|
const rows = tableCheckedKeys.value;
|
|
|
if (rows.length > 0) {
|
|
|
- const ids = rowsToId(rows)
|
|
|
+ const ids = arrToId(rows)
|
|
|
copyDataApi(ids)
|
|
|
} else {
|
|
|
window.$message?.warning('请先勾选需要复制的记录')
|
|
@@ -483,7 +483,7 @@ const delModalClick = () => {
|
|
|
const rows = tableCheckedKeys.value;
|
|
|
if (rows.length > 0) {
|
|
|
delMessage(() => {
|
|
|
- const ids = rowsToId(rows)
|
|
|
+ const ids = arrToId(rows)
|
|
|
removeDataApi(ids)
|
|
|
})
|
|
|
} else {
|
|
@@ -514,7 +514,7 @@ const printPdfLoading = ref(false)
|
|
|
const printPdfClick = async () => {
|
|
|
const rows = tableCheckedKeys.value;
|
|
|
if (rows.length > 0) {
|
|
|
- const ids = rowsToId(rows)
|
|
|
+ const ids = arrToId(rows)
|
|
|
//请求数据
|
|
|
printPdfLoading.value = true
|
|
|
const {error, code, msg, data} = await dataApi.printPdf({
|
|
@@ -538,7 +538,7 @@ const quitPdfLoading = ref(false)
|
|
|
const quitPdfClick = async () => {
|
|
|
const rows = tableCheckedKeys.value;
|
|
|
if (rows.length > 0) {
|
|
|
- const ids = rowsToId(rows)
|
|
|
+ const ids = arrToId(rows)
|
|
|
const res1 = rows.some(item => item.taskStatus === '未上报')
|
|
|
const res2 = rows.some(item => item.taskStatus === '已废除')
|
|
|
if (res1) {
|
|
@@ -588,7 +588,7 @@ const reportPdfClick = async () => {
|
|
|
window.$message?.warning('已上报的数据无法再次上报')
|
|
|
} else {
|
|
|
reportLoading.value = true
|
|
|
- const ids = rowsToId(rows)
|
|
|
+ const ids = arrToId(rows)
|
|
|
reportIds.value = ids
|
|
|
const taskCheck = await eVisaTaskCheckApi({
|
|
|
projectId: projectId.value,
|
|
@@ -639,7 +639,7 @@ const printNullPdfLoading = ref(false)
|
|
|
const printNullPdfClick = async () => {
|
|
|
const rows = tableCheckedKeys.value;
|
|
|
if (rows.length > 0) {
|
|
|
- const ids = rowsToId(rows)
|
|
|
+ const ids = arrToId(rows)
|
|
|
//请求数据
|
|
|
printNullPdfLoading.value = true
|
|
|
const {error, code, msg, data} = await dataApi.printNullPdf({
|