diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml
new file mode 100644
index 0000000..d23208f
--- /dev/null
+++ b/.idea/jsLibraryMappings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jsLinters/eslint.xml b/.idea/jsLinters/eslint.xml
new file mode 100644
index 0000000..541945b
--- /dev/null
+++ b/.idea/jsLinters/eslint.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/package.json b/package.json
index f2cd289..8ef10f6 100644
--- a/package.json
+++ b/package.json
@@ -48,6 +48,7 @@
"@commitlint/config-conventional": "^18.4.3",
"@types/imagesloaded": "^4.1.6",
"@types/lodash": "^4.14.197",
+ "@types/lodash-es": "^4.17.12",
"@types/masonry-layout": "^4.2.7",
"@types/node": "^18.17.1",
"@types/sortablejs": "^1.15.7",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3dde4d4..2b93d3e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -100,6 +100,9 @@ devDependencies:
'@types/lodash':
specifier: ^4.14.197
version: 4.14.202
+ '@types/lodash-es':
+ specifier: ^4.17.12
+ version: 4.17.12
'@types/masonry-layout':
specifier: ^4.2.7
version: 4.2.7
@@ -1323,7 +1326,6 @@ packages:
resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}
dependencies:
'@types/lodash': 4.14.202
- dev: false
/@types/lodash@4.14.202:
resolution: {integrity: sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==}
diff --git a/qodana.yaml b/qodana.yaml
new file mode 100644
index 0000000..29f8f8c
--- /dev/null
+++ b/qodana.yaml
@@ -0,0 +1,29 @@
+#-------------------------------------------------------------------------------#
+# Qodana analysis is configured by qodana.yaml file #
+# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
+#-------------------------------------------------------------------------------#
+version: "1.0"
+
+#Specify inspection profile for code analysis
+profile:
+ name: qodana.starter
+
+#Enable inspections
+#include:
+# - name:
+
+#Disable inspections
+#exclude:
+# - name:
+# paths:
+# -
+
+#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
+#bootstrap: sh ./prepare-qodana.sh
+
+#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
+#plugins:
+# - id: #(plugin id can be found at https://plugins.jetbrains.com)
+
+#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
+linter: jetbrains/qodana-js:latest
diff --git a/src/config/1.json b/src/config/1.json
deleted file mode 100644
index 3c8e5e6..0000000
--- a/src/config/1.json
+++ /dev/null
@@ -1,52 +0,0 @@
-export const asideMap: Recordable = {
- izupuser: {
- label: '提报人',
- defaultValue: null,
- isDefaultFilter: true,
- key: 'izupuser',
- component: ReportUserVue,
- },
- izproject: {
- label: '所属项目',
- defaultValue: null,
- isDefaultFilter: true,
- key: 'izproject',
- component: IzProjectVue,
- },
- izplan: {
- label: '所属计划',
- defaultValue: null,
- isDefaultFilter: true,
- key: 'izplan',
- component: PlanVue,
- },
- izstatus: {
- label: '审批状态',
- defaultValue: null,
- isDefaultFilter: false,
- key: 'izstatus',
- component: PlanVue, // todo
- },
- izyear: {
- label: '提报时间',
- defaultValue: null,
- isDefaultFilter: false,
- key: 'izyear',
- component: TimeVue,
- },
- iztaskrrom: {
- label: '任务来源',
- defaultValue: null,
- isDefaultFilter: false,
- key: 'iztaskrrom',
- component: IztaskrromVue,
- },
- izshowall: {
- label: '显示全部任务数据',
- defaultValue: true,
- isDefaultFilter: false,
- key: 'izshowall',
- component: PictureDownloadVue,
- inFilterList: false,
- },
-}
diff --git a/src/views/task/modal/BatchModal.vue b/src/views/task/modal/BatchModal.vue
index 7440c46..03f3d45 100644
--- a/src/views/task/modal/BatchModal.vue
+++ b/src/views/task/modal/BatchModal.vue
@@ -10,7 +10,7 @@ import { getViewportOffset, off, on } from '@/utils/domUtils'
import { viewOptions } from '@/config/home'
import { useTask } from '@/store/modules/task'
-import { TASK_STATUS_OBJ } from '@/enums/index'
+import { TASK_STATUS_OBJ } from '@/enums'
import { formatToDateHMS } from '@/utils/dateUtil'
import { getSimilarityList, getTaskDetailInfo } from '@/api/task/task'
import emitter from '@/utils/mitt'
@@ -55,8 +55,7 @@ const message = useMessage()
async function computeListHeight() {
const headEl = document.querySelector('.wrapper-content')!
const { bottomIncludeBody } = getViewportOffset(headEl)
- const height = bottomIncludeBody
- deviceHeight.value = height - 40 - 16 - 24
+ deviceHeight.value = bottomIncludeBody - 40 - 16 - 24
}
useWindowSizeFn(computeListHeight)
@@ -78,14 +77,14 @@ const layout = debounce(() => {
_imagesload = imagesloaded('.grid-item')
- _imagesload.on('done', (instance) => {
+ _imagesload.on('done', () => {
(_masonry as any).layout()
if (!el.value)
return
loading.value = false
})
- _imagesload.on('fail', (instance) => {
+ _imagesload.on('fail', () => {
message.error('图片错误')
loading.value = false
})
@@ -514,9 +513,7 @@ defineExpose({
class="grid-item"
>