Compare commits
1 Commits
refactor/p
...
main
| Author | SHA1 | Date |
|---|---|---|
|
|
13a8c5063b | 2 years ago |
@ -1,8 +0,0 @@
|
||||
# 默认忽略的文件
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# 基于编辑器的 HTTP 客户端请求
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
@ -1,48 +0,0 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoredPackages">
|
||||
<value>
|
||||
<list size="15">
|
||||
<item index="0" class="java.lang.String" itemvalue="PyMuPDF" />
|
||||
<item index="1" class="java.lang.String" itemvalue="scikit-image" />
|
||||
<item index="2" class="java.lang.String" itemvalue="shapely" />
|
||||
<item index="3" class="java.lang.String" itemvalue="opencv-contrib-python" />
|
||||
<item index="4" class="java.lang.String" itemvalue="opencv-python" />
|
||||
<item index="5" class="java.lang.String" itemvalue="cython" />
|
||||
<item index="6" class="java.lang.String" itemvalue="numpy" />
|
||||
<item index="7" class="java.lang.String" itemvalue="attrdict" />
|
||||
<item index="8" class="java.lang.String" itemvalue="imgaug" />
|
||||
<item index="9" class="java.lang.String" itemvalue="premailer" />
|
||||
<item index="10" class="java.lang.String" itemvalue="lxml" />
|
||||
<item index="11" class="java.lang.String" itemvalue="visualdl" />
|
||||
<item index="12" class="java.lang.String" itemvalue="openpyxl" />
|
||||
<item index="13" class="java.lang.String" itemvalue="lanms-neo" />
|
||||
<item index="14" class="java.lang.String" itemvalue="Polygon3" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
||||
<option name="ignoredErrors">
|
||||
<list>
|
||||
<option value="N802" />
|
||||
<option value="N806" />
|
||||
<option value="N812" />
|
||||
<option value="N801" />
|
||||
</list>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoredIdentifiers">
|
||||
<list>
|
||||
<option value="image_tools.image_similarity.calculate" />
|
||||
<option value="float.*" />
|
||||
</list>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
<inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
</profile>
|
||||
</component>
|
||||
@ -1,6 +0,0 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptLibraryMappings">
|
||||
<includedPredefinedLibrary name="Node.js Core" />
|
||||
</component>
|
||||
</project>
|
||||
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="EslintConfiguration">
|
||||
<option name="fix-on-save" value="true" />
|
||||
</component>
|
||||
</project>
|
||||
@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="$PROJECT_DIR$/../../../webutils/ai/PaddleOCR/.conda" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@ -1,29 +0,0 @@
|
||||
#-------------------------------------------------------------------------------#
|
||||
# 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: <SomeEnabledInspectionId>
|
||||
|
||||
#Disable inspections
|
||||
#exclude:
|
||||
# - name: <SomeDisabledInspectionId>
|
||||
# paths:
|
||||
# - <path/where/not/run/inspection>
|
||||
|
||||
#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> #(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
|
||||
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
@ -1,128 +1,98 @@
|
||||
<script lang="ts" setup>
|
||||
import { defineProps, onMounted } from 'vue'
|
||||
<template>
|
||||
<div class="header_wrap">
|
||||
<div v-for="(item, index) in data" :key="index" class="header_item">
|
||||
<img :src="item.link" />
|
||||
<div class="data_wrap">
|
||||
<div class="data_title">{{ item.count }}</div>
|
||||
<div class="data_content">{{ item.title }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<SvgIcon size="14px" style="cursor: pointer" name="setting"></SvgIcon>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
defineProps({
|
||||
hasColor: {
|
||||
type: Boolean,
|
||||
default: () => false,
|
||||
},
|
||||
})
|
||||
function initRem() {
|
||||
const designWidth = 1440
|
||||
const rempPx = 16
|
||||
const scale = window.innerWidth / designWidth
|
||||
document.documentElement.style.fontSize = `${scale * rempPx}px`
|
||||
}
|
||||
onMounted(() => {
|
||||
initRem()
|
||||
})
|
||||
<script lang="ts" setup>
|
||||
|
||||
const data = [
|
||||
{
|
||||
link: 'count',
|
||||
title: '任务总数',
|
||||
link: "/src/assets/images/taskCount.png",
|
||||
title: "任务包总数",
|
||||
count: 6399,
|
||||
},
|
||||
{
|
||||
link: 'wait',
|
||||
title: '待审批',
|
||||
link: "/src/assets/images/nocheck.png",
|
||||
title: "未标记",
|
||||
count: 6290,
|
||||
},
|
||||
{
|
||||
link: 'done',
|
||||
title: '已审批',
|
||||
link: "/src/assets/images/check.png",
|
||||
title: "已标记",
|
||||
count: 109,
|
||||
},
|
||||
{
|
||||
link: 'resolve',
|
||||
title: '通过',
|
||||
link: "/src/assets/images/status.png",
|
||||
title: "真",
|
||||
count: 3290,
|
||||
color: '#03c984',
|
||||
},
|
||||
{
|
||||
link: 'reject',
|
||||
title: '不通过',
|
||||
link: "/src/assets/images/status.png",
|
||||
title: "假",
|
||||
count: 3000,
|
||||
color: '#ff8b8b',
|
||||
},
|
||||
{
|
||||
link: 'reimg',
|
||||
title: '图片重复数',
|
||||
link: "/src/assets/images/pic.png",
|
||||
title: "相似度100%图",
|
||||
count: 230,
|
||||
},
|
||||
{
|
||||
link: 'breakcount',
|
||||
title: '小结重复数',
|
||||
link: "/src/assets/images/xiaojie.png",
|
||||
title: "小结重复数",
|
||||
count: 365,
|
||||
},
|
||||
]
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="header_wrap">
|
||||
<div v-for="(item, index) in data" :key="index" class="header_item">
|
||||
<SvgIcon :name="item.link" />
|
||||
<div class="data_wrap">
|
||||
<div class="data_title" :style="hasColor ? `color:${item.color || ''}` : ''">
|
||||
{{ item.count }}
|
||||
</div>
|
||||
<div class="data_content">
|
||||
{{ item.title }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<SvgIcon size="14px" style="cursor: pointer" name="setting" class="settingSvg" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="less">
|
||||
.header_wrap {
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 1rem 1rem 1rem 3.125rem;
|
||||
padding: 20px 30px;
|
||||
background: #fff;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
.header_item {
|
||||
min-width: 10%;
|
||||
width: 10%;
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
svg {
|
||||
width: 2.75rem !important;
|
||||
height: 2.75rem !important;
|
||||
img{
|
||||
width: 50px;
|
||||
height: 50px
|
||||
}
|
||||
.data_wrap {
|
||||
margin-left: .8125rem;
|
||||
.data_title {
|
||||
font-size: 1.125rem;
|
||||
font-size: 20px;
|
||||
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Bold;
|
||||
font-weight: 900;
|
||||
font-weight: Bold;
|
||||
text-align: left;
|
||||
color: #202020;
|
||||
line-height: 1.4375rem;
|
||||
line-height: 23px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.data_content {
|
||||
opacity: 0.6;
|
||||
font-size: .75rem;
|
||||
font-size: 14px;
|
||||
font-family: PingFang SC, PingFang SC-Regular;
|
||||
font-weight: 500;
|
||||
font-weight: Regular;
|
||||
text-align: center;
|
||||
color: #202020;
|
||||
line-height: 1rem;
|
||||
line-height: 16px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.settingSvg{
|
||||
width: 1rem !important;
|
||||
height: 1rem !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -1,30 +0,0 @@
|
||||
<script setup>
|
||||
import { defineProps } from 'vue'
|
||||
import IPImg from '@/assets/images/IP.png'
|
||||
|
||||
defineProps({
|
||||
canClick: {
|
||||
type: Boolean,
|
||||
default: () => false,
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="ip_box" :style="canClick ? 'cursor: pointer;' : ''">
|
||||
<img :src="IPImg">
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="less">
|
||||
.ip_box {
|
||||
position: fixed;
|
||||
bottom: 80px;
|
||||
right: 20px;
|
||||
z-index: 1000;
|
||||
img {
|
||||
width: 80px;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,52 @@
|
||||
export const asideMap: Recordable<AsideEntity> = {
|
||||
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
|
||||
},
|
||||
izuptime: {
|
||||
label: '提报时间',
|
||||
defaultValue: null,
|
||||
isDefaultFilter: false,
|
||||
key: 'izuptime',
|
||||
component: TimeVue,
|
||||
},
|
||||
iztaskrrom: {
|
||||
label: '任务来源',
|
||||
defaultValue: null,
|
||||
isDefaultFilter: false,
|
||||
key: 'iztaskrrom',
|
||||
component: IztaskrromVue,
|
||||
},
|
||||
izshowall: {
|
||||
label: '显示全部任务数据',
|
||||
defaultValue: true,
|
||||
isDefaultFilter: false,
|
||||
key: 'izshowall',
|
||||
component: PictureDownloadVue,
|
||||
inFilterList: false,
|
||||
},
|
||||
}
|
||||
@ -1,11 +1,11 @@
|
||||
function commonKeyDown(keyCode: number) {
|
||||
document.dispatchEvent(new KeyboardEvent('keydown', { keyCode }))
|
||||
const commonKeyDown = (keyCode: number) => {
|
||||
document.dispatchEvent(new KeyboardEvent('keydown', { keyCode }));
|
||||
}
|
||||
function c() {
|
||||
commonKeyDown(27)
|
||||
const c = () => {
|
||||
commonKeyDown(27)
|
||||
}
|
||||
function initBind(mousetrap) {
|
||||
mousetrap.bind('c', c)
|
||||
const initBind = (mousetrap) => {
|
||||
mousetrap.bind('c', c)
|
||||
}
|
||||
|
||||
export default initBind
|
||||
export default initBind;
|
||||