mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect-embeded.git
synced 2025-06-24 13:34:13 +08:00
fixed
This commit is contained in:
parent
3e3b405ae0
commit
ae3d126ef1
@ -400,16 +400,16 @@
|
|||||||
background-color: rgba(146,214,237,0.3) !important;
|
background-color: rgba(146,214,237,0.3) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.ant-popover-inner) {
|
//:deep(.ant-popover-inner) {
|
||||||
border: 1px solid #183171 !important;
|
// border: 1px solid #183171 !important;
|
||||||
background-color: #13265a !important;
|
// background-color: #13265a !important;
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
:deep(.ant-popconfirm-message-title) {
|
//:deep(.ant-popconfirm-message-title) {
|
||||||
font-family: "Noto Sans SC", serif;
|
// font-family: "Noto Sans SC", serif;
|
||||||
font-size: 14px;
|
// font-size: 14px;
|
||||||
color: white;
|
// color: white;
|
||||||
}
|
//}
|
||||||
|
|
||||||
:deep(.ant-picker),
|
:deep(.ant-picker),
|
||||||
:deep(.ant-picker-range) {
|
:deep(.ant-picker-range) {
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-btn-sm {
|
||||||
|
height: 24px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.ant-btn-primary:hover {
|
.ant-btn-primary:hover {
|
||||||
font-family: "Noto Sans SC", serif;
|
font-family: "Noto Sans SC", serif;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@ -190,3 +194,14 @@
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border-bottom: 1px solid rgba(45,119,243,0.3) !important;
|
border-bottom: 1px solid rgba(45,119,243,0.3) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-popover-inner {
|
||||||
|
border: 1px solid #183171 !important;
|
||||||
|
background-color: #13265a !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-popconfirm-message-title {
|
||||||
|
font-family: "Noto Sans SC", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
@ -7,8 +7,33 @@
|
|||||||
<div style="width: 5px" />
|
<div style="width: 5px" />
|
||||||
<a-button type="primary" :icon="h(EyeOutlined)" @click="handleOpenFileDialog">OCR识别</a-button>
|
<a-button type="primary" :icon="h(EyeOutlined)" @click="handleOpenFileDialog">OCR识别</a-button>
|
||||||
<div style="width: 5px" />
|
<div style="width: 5px" />
|
||||||
|
<Popconfirm
|
||||||
|
title="确定要清空预埋件列表吗?"
|
||||||
|
ok-text="确定"
|
||||||
|
cancel-text="取消"
|
||||||
|
@confirm="handleDeleteAll"
|
||||||
|
>
|
||||||
|
<a-button type="primary" :icon="h(MinusOutlined)">清空列表</a-button>
|
||||||
|
</Popconfirm>
|
||||||
|
<div style="width: 5px" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.dataIndex === 'x'">
|
||||||
|
<span v-if="(getHasManyMinus('x') && Number(record.x) >= 0) || !(getHasManyMinus('x') && Number(record.x) < 0)" style="color: red">{{ record.x }}</span>
|
||||||
|
<span v-else style="color: white">{{ record.x }}</span>
|
||||||
|
</template>
|
||||||
|
<template v-if="column.dataIndex === 'center'">
|
||||||
|
<span v-if="(getHasManyMinus('center') && Number(record.center) >= 0) || !(getHasManyMinus('center') && Number(record.center) < 0)" style="color: red">{{ record.center }}</span>
|
||||||
|
<span v-else style="color: white">{{ record.center }}</span>
|
||||||
|
</template>
|
||||||
|
<template v-if="column.dataIndex === 'w'">
|
||||||
|
<span v-if="record.w !== record.h" style="color: red">{{ record.w }}</span>
|
||||||
|
<span v-else style="color: white">{{ record.w }}</span>
|
||||||
|
</template>
|
||||||
|
<template v-if="column.dataIndex === 'h'">
|
||||||
|
<span v-if="record.w !== record.h" style="color: red">{{ record.h }}</span>
|
||||||
|
<span v-else style="color: white">{{ record.h }}</span>
|
||||||
|
</template>
|
||||||
<template v-if="column.dataIndex === 'action'">
|
<template v-if="column.dataIndex === 'action'">
|
||||||
<TableAction
|
<TableAction
|
||||||
:actions="[
|
:actions="[
|
||||||
@ -44,7 +69,8 @@ import { formSchema } from './schema';
|
|||||||
import { BasicDrawer, useDrawerInner } from '@/components/Drawer';
|
import { BasicDrawer, useDrawerInner } from '@/components/Drawer';
|
||||||
import * as TaskApi from '@/api/data/taskApi';
|
import * as TaskApi from '@/api/data/taskApi';
|
||||||
import { BasicTable, useTable, TableAction } from '@/components/Table';
|
import { BasicTable, useTable, TableAction } from '@/components/Table';
|
||||||
import { EyeOutlined, PlusOutlined } from "@ant-design/icons-vue";
|
import { EyeOutlined, PlusOutlined, MinusOutlined } from "@ant-design/icons-vue";
|
||||||
|
import { Popconfirm } from 'ant-design-vue';
|
||||||
import Modal from "@/views/data/task/modal.vue";
|
import Modal from "@/views/data/task/modal.vue";
|
||||||
import { useModal } from '/@/components/Modal';
|
import { useModal } from '/@/components/Modal';
|
||||||
const [register, { openModal }] = useModal();
|
const [register, { openModal }] = useModal();
|
||||||
@ -221,6 +247,10 @@ const handleOpenFileDialog = () => {
|
|||||||
emit("ocrClick", data);
|
emit("ocrClick", data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleDeleteAll = (e: MouseEvent) => {
|
||||||
|
paramData.value = [];
|
||||||
|
};
|
||||||
|
|
||||||
const updateParamData = async (data: any) => {
|
const updateParamData = async (data: any) => {
|
||||||
paramData.value.forEach((d: any, index: number) => {
|
paramData.value.forEach((d: any, index: number) => {
|
||||||
if (d["code"] === data["code"]) {
|
if (d["code"] === data["code"]) {
|
||||||
@ -229,6 +259,18 @@ const updateParamData = async (data: any) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const getHasManyMinus = computed(() => {
|
||||||
|
return (field: any) => {
|
||||||
|
let c = 0
|
||||||
|
paramData.value.forEach((d: any) => {
|
||||||
|
if (Number(d[field]) < 0) {
|
||||||
|
c += 1;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return paramData.value.length - c < c;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
setParamData
|
setParamData
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user