检测计划新增数据处理原则字段、全局配置中移除数据处理原则字段

This commit is contained in:
caozehui
2025-05-14 08:58:21 +08:00
parent f8b7c224b7
commit 2a53f577aa
5 changed files with 56 additions and 25 deletions

View File

@@ -120,18 +120,18 @@ const dataSourceType = computed(() => {
// 表格配置项
const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
{ type: 'selection', fixed: 'left', width: 70 },
{ type: 'index', fixed: 'left', width: 70, label: '序号' },
{ type: 'selection', fixed: 'left', minWidth: 70 },
{ type: 'index', fixed: 'left', minWidth: 70, label: '序号' },
{
prop: 'name',
label: '名称',
width: 220,
minWidth: 220,
search: { el: 'input' },
},
{
prop: 'testState',
label: '检测状态',
width: 120,
minWidth: 120,
enum:dictTestState,
search: { el:'select',props: { filterable: true }},
fieldNames: { label: 'label', value: 'id' },
@@ -144,7 +144,7 @@ const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
{
prop: 'reportState',
label: '检测报告状态',
width: 120,
minWidth: 120,
enum:dictReportState,
search: { el: 'select', props: { filterable: true } },
fieldNames: { label: 'label', value: 'id' },
@@ -157,7 +157,7 @@ const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
{
prop: 'result',
label: '检测结果',
width: 120,
minWidth: 120,
enum:dictResult,
search: { el: 'select', props: { filterable: true } },
fieldNames: { label: 'label', value: 'id' },
@@ -171,7 +171,7 @@ const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
{
prop: 'createTime',
label: '创建时间',
width: 200,
minWidth: 200,
render: scope => {
if (scope.row.createTime) {
const date = new Date(scope.row.createTime);
@@ -217,7 +217,7 @@ const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
{
prop: 'scriptId',
label: '检测脚本',
width: 360,
minWidth: 360,
render: scope => {
return (
<span>{scope.row.scriptName}</span>
@@ -227,7 +227,7 @@ const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
{
prop: 'errorSysId',
label: '误差体系',
width: 240,
minWidth: 240,
render: scope => {
return (
<el-link type='primary' link onClick={() => showData(scope.row)}>
@@ -266,8 +266,15 @@ const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
return dictItem ? dictItem.name : '/' // 如果找到匹配的项,返回对应的 name
},
},
{
prop: 'dataRule',
label: '数据处理原则',
enum: dictStore.getDictData('Data_Rule'),
fieldNames: { label: 'name', value: 'id' },
minWidth: 120,
},
{ prop: 'operation', label: '操作', fixed: 'right', width: 300 },
{ prop: 'operation', label: '操作', fixed: 'right', minWidth: 300 },
])