Commit ac0db2b6 authored by 罗林杰's avatar 罗林杰

Merge remote-tracking branch 'origin/master'

parents f7c06b24 053f30b2
...@@ -219,8 +219,7 @@ export const DatasetByCreateDetailRoute: AppRouteRecordRaw = { ...@@ -219,8 +219,7 @@ export const DatasetByCreateDetailRoute: AppRouteRecordRaw = {
{ {
path: 'commonDataSet/index', path: 'commonDataSet/index',
name: 'commonDataSet', name: 'commonDataSet',
component: () => component: () => import('@/views/mallResourceDevelopment/dataSet/commonDataSet/index.vue'),
import('@/views/mallResourceDevelopment/dataSet/commonDataSet/index.vue'),
meta: { meta: {
title: '公共数据集', title: '公共数据集',
icon: '', icon: '',
...@@ -697,7 +696,8 @@ export const BenchmarkRoute: AppRouteRecordRaw = { ...@@ -697,7 +696,8 @@ export const BenchmarkRoute: AppRouteRecordRaw = {
{ {
path: 'benchmark', path: 'benchmark',
name: 'benchmark', name: 'benchmark',
component: () => import('@/views/mallResourceDevelopment/benchmark/index.vue'), component: () =>
import('@/views/mallResourceDevelopment/benchmark/benchmarkMainbody/index.vue'),
meta: { meta: {
title: '指标', title: '指标',
icon: '', icon: '',
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
resetFields(); resetFields();
isUpdate.value = data.isUpdate; isUpdate.value = data.isUpdate;
if (data.isUpdate === false) { if (data.isUpdate === false) {
title.value = '新增分类分级'; title.value = '添加访问控制规则';
updateSchema([ updateSchema([
{ field: 'sensitiveState', required: true, componentProps: { disabled: false } }, { field: 'sensitiveState', required: true, componentProps: { disabled: false } },
{ field: 'sensitiveType', required: true, componentProps: { disabled: false } }, { field: 'sensitiveType', required: true, componentProps: { disabled: false } },
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
resetFields(); resetFields();
isUpdate.value = data.isUpdate; isUpdate.value = data.isUpdate;
if (data.isUpdate === false) { if (data.isUpdate === false) {
title.value = '新增分类分级'; title.value = '添加访问控制规则';
updateSchema([ updateSchema([
{ field: 'sensitiveState', required: true, componentProps: { disabled: false } }, { field: 'sensitiveState', required: true, componentProps: { disabled: false } },
{ field: 'sensitiveType', required: true, componentProps: { disabled: false } }, { field: 'sensitiveType', required: true, componentProps: { disabled: false } },
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
resetFields(); resetFields();
isUpdate.value = data.isUpdate; isUpdate.value = data.isUpdate;
if (data.isUpdate === false) { if (data.isUpdate === false) {
title.value = '新增分类分级'; title.value = '添加访问控制规则';
updateSchema([ updateSchema([
{ field: 'sensitiveState', required: true, componentProps: { disabled: false } }, { field: 'sensitiveState', required: true, componentProps: { disabled: false } },
{ field: 'sensitiveType', required: true, componentProps: { disabled: false } }, { field: 'sensitiveType', required: true, componentProps: { disabled: false } },
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
resetFields(); resetFields();
isUpdate.value = data.isUpdate; isUpdate.value = data.isUpdate;
if (data.isUpdate === false) { if (data.isUpdate === false) {
title.value = '新增分类分级'; title.value = '添加访问控制规则';
updateSchema([ updateSchema([
{ field: 'sensitiveState', required: true, componentProps: { disabled: false } }, { field: 'sensitiveState', required: true, componentProps: { disabled: false } },
{ field: 'sensitiveType', required: true, componentProps: { disabled: false } }, { field: 'sensitiveType', required: true, componentProps: { disabled: false } },
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
resetFields(); resetFields();
isUpdate.value = data.isUpdate; isUpdate.value = data.isUpdate;
if (data.isUpdate === false) { if (data.isUpdate === false) {
title.value = '新增分类分级'; title.value = '添加访问控制规则';
updateSchema([ updateSchema([
{ field: 'sensitiveState', required: true, componentProps: { disabled: false } }, { field: 'sensitiveState', required: true, componentProps: { disabled: false } },
{ field: 'sensitiveType', required: true, componentProps: { disabled: false } }, { field: 'sensitiveType', required: true, componentProps: { disabled: false } },
......
...@@ -4,6 +4,7 @@ import { h } from 'vue'; ...@@ -4,6 +4,7 @@ import { h } from 'vue';
import { Switch } from 'ant-design-vue'; import { Switch } from 'ant-design-vue';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { changeFlagApi } from '@/api/system/user/user'; import { changeFlagApi } from '@/api/system/user/user';
import { defaultValueComponents } from '@/components/Form/src/helper';
// 引入开关组件 // 引入开关组件
type CheckedType = boolean | string | number; type CheckedType = boolean | string | number;
...@@ -59,9 +60,13 @@ export const formSchema: any[] = [ ...@@ -59,9 +60,13 @@ export const formSchema: any[] = [
colProps: { span: 3 }, colProps: { span: 3 },
componentProps: { componentProps: {
placeholder: '规则类型', placeholder: '规则类型',
defaultValue: '默认',
options: [ options: [
{ label: '默认', value: '默认' }, { label: '默认', value: '默认' },
{ label: '规则类型1', value: '规则类型1' }, { label: '域名', value: '域名' },
{ label: '特征流量', value: '特征流量' },
{ label: 'URL', value: 'URL' },
{ label: 'API', value: 'API' },
], ],
}, },
rules: [ rules: [
...@@ -72,30 +77,89 @@ export const formSchema: any[] = [ ...@@ -72,30 +77,89 @@ export const formSchema: any[] = [
], ],
}, },
{ {
field: 'sensitiveType', field: 'ip',
label: '敏感类型', label: 'IP',
component: 'Input',
componentProps: {
style: {},
},
rules: [
{
required: true,
message: '请输入IP',
},
],
},
{
field: 'fieldName',
label: '域名',
component: 'Input',
componentProps: {
placeholder: '请输入域名',
style: {},
},
ifShow: ({ values }) => values.ruleType !== undefined && values.ruleType.includes('域名'),
rules: [
{
required: true,
message: '请输入域名',
},
],
},
{
field: 'featureFlow',
label: '特征流量',
component: 'Select', component: 'Select',
colProps: { span: 3 },
componentProps: { componentProps: {
placeholder: '敏感类型', style: {},
placeholder: '特征流量',
options: [ options: [
{ label: '敏感类型', value: '敏感类型' }, { label: '下载', value: '下载' },
{ label: 'AccessKey ID', value: 'AccessKey ID' }, { label: '预览', value: '预览' },
{ label: '担保方式', value: '担保方式' },
], ],
}, },
ifShow: ({ values }) => values.ruleType !== undefined && values.ruleType.includes('特征流量'),
rules: [
{
required: true,
message: '请选择特征流量',
},
],
}, },
{ {
field: 'ip', field: 'url',
label: 'IP', label: 'URL',
component: 'Input', component: 'Input',
componentProps: { componentProps: {
style: { style: {},
border: 'none', placeholder: '请输入URL',
backgroundColor: 'transparent',
}, },
readOnly: true, ifShow: ({ values }) => values.ruleType !== undefined && values.ruleType.includes('URL'),
rules: [
{
required: true,
message: '请输入URL',
}, },
],
},
{
field: 'protectAction',
label: '保护动作',
component: 'Select',
componentProps: {
placeholder: '保护动作',
options: [
{ label: '放行', value: '放行' },
{ label: '拒绝', value: '拒绝' },
],
},
rules: [
{
required: true,
message: '请选择保护动作',
},
],
}, },
]; ];
/** 列表筛选项tab2*/ /** 列表筛选项tab2*/
......
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
@click="handleDelete" @click="handleDelete"
>删除</a-button >删除</a-button
> >
<a-button class="top-button" type="primary" :disabled="topButtonDisabled()"
>导出</a-button
>
<a-button class="top-button" type="primary">导入</a-button>
<a-button class="top-button" type="primary">新建文件夹</a-button> <a-button class="top-button" type="primary">新建文件夹</a-button>
<a-button class="top-button" type="primary" @click="handleAddLabel" <a-button class="top-button" type="primary" @click="handleAddLabel"
>新建标签主体</a-button >新建标签主体</a-button
...@@ -104,20 +108,17 @@ ...@@ -104,20 +108,17 @@
EditOutlined, EditOutlined,
PlusOutlined, PlusOutlined,
} from '@ant-design/icons-vue'; } from '@ant-design/icons-vue';
import { labelTreeData, tabTableData } from './labelData'; import { labelTreeData, tabTableData } from '../benchmarkMainbody/labelData';
import { h, ref, unref } from 'vue'; import { h, ref, unref } from 'vue';
import { Divider } from 'ant-design-vue'; import { Divider } from 'ant-design-vue';
import type { BasicTableProps, TableActionType, TableRowSelection } from '@/components/Table'; import type { BasicTableProps, TableActionType, TableRowSelection } from '@/components/Table';
import PageWrapper from '../../../components/Page/src/PageWrapper.vue'; import PageWrapper from '@/components/Page/src/PageWrapper.vue';
import BasicTree from '../../../components/Tree/src/BasicTree.vue'; import BasicTree from '@/components/Tree/src/BasicTree.vue';
import { BasicTable, useTable, TableAction } from '@/components/Table'; import { BasicTable, useTable, TableAction } from '@/components/Table';
import { TreeActionItem } from '@/components/Tree'; import { TreeActionItem } from '@/components/Tree';
import { tableListViewThree } from '@/views/dataQuality/agentClass/global/details/setup/mock'; import { tableListViewThree } from '@/views/dataQuality/agentClass/global/details/setup/mock';
import { Threecolumns } from '@/views/dataQuality/agentClass/global/details/setup/mainBody.data'; import { Threecolumns } from '@/views/dataQuality/agentClass/global/details/setup/mainBody.data';
import { import { tabTableColumn, tabTableFormSchema } from './label.data';
tabTableColumn,
tabTableFormSchema,
} from '@/views/mallResourceDevelopment/label/label.data';
import { searchFormSchema } from '@/views/auditLog/audi.data'; import { searchFormSchema } from '@/views/auditLog/audi.data';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
......
import {BasicColumn, FormSchema} from "@/components/Table"; import { BasicColumn, FormSchema } from '@/components/Table';
export const tabTableColumn: BasicColumn[] = [ export const tabTableColumn: BasicColumn[] = [
{ {
title: '文件名称', title: '指标主体名称',
dataIndex: 'name', dataIndex: 'name',
slots: { customRender: 'name' },
}, },
{ {
title: '描述', title: '描述',
...@@ -18,10 +16,12 @@ export const tabTableColumn: BasicColumn[] = [ ...@@ -18,10 +16,12 @@ export const tabTableColumn: BasicColumn[] = [
{ {
title: '创建时间', title: '创建时间',
dataIndex: 'createdTime', dataIndex: 'createdTime',
sorter: true,
}, },
{ {
title: '更新时间', title: '更新时间',
dataIndex: 'updateTime', dataIndex: 'updateTime',
sorter: true,
}, },
{ {
title: '原始主体', title: '原始主体',
......
<template>
<div> 指标管理 </div>
</template>
<script></script>
<style></style>
<template>
<div> 汇总表管理 </div>
</template>
<script></script>
<style></style>
<template>
<div> 时间周期 </div>
</template>
<script></script>
<style></style>
<template > <template >
<PageWrapper dense contentFullHeight fixedHeight contentClass="flex" >
<PageWrapper dense contentFullHeight fixedHeight contentClass="flex flex-col" class="toolbar"> <PageWrapper dense contentFullHeight fixedHeight contentClass="flex flex-col" class="mt-4 ml-3">
<div class="toolbar" style="background: white; " > <div class="toolbar" style="background: white; " >
<div class="tools" > <div class="tools" >
<a-button type="primary" style="float: right; margin: 10px 15px 10px 0" >保存</a-button> <a-button type="primary" style="float: right; margin: 10px 15px 10px 0" >保存</a-button>
...@@ -9,6 +8,7 @@ ...@@ -9,6 +8,7 @@
</div> </div>
</div> </div>
<div>
<BasicForm <BasicForm
style="background: white; margin-top: -50px" style="background: white; margin-top: -50px"
size="middle" size="middle"
...@@ -22,23 +22,18 @@ ...@@ -22,23 +22,18 @@
</template> </template>
</BasicForm> </BasicForm>
<div style="background: white">
<h1 class="title-text">字段配置</h1>
</div> </div>
<div class="mt-2">
<BasicTable <BasicTable
@register="registerTable" @register="registerTable"
class="w-3/4 xl:w-4/5"
style="width: 100%; height: 160px; overflow: hidden;"
> >
<template #sort> <template #sort>
<Icon icon="material-symbols:holder" /> <Icon icon="material-symbols:holder" />
</template> </template>
<template #nonEmpty="{ text , record }">
<template #nonEmpty> <Checkbox v-model:checked="record.nonEmpty">
<checkbox /> </Checkbox>
</template> </template>
<template #bodyCell="{ column }"> <template #bodyCell="{ column }">
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
...@@ -53,9 +48,11 @@ ...@@ -53,9 +48,11 @@
</template> </template>
</template> </template>
</BasicTable> </BasicTable>
</div>
<div>
<div style=" background: white; "> <div style=" background: white; ">
<a-button type="primary" style="margin-left: 5px; margin-bottom: -10px; " @click="addFields">添加字段</a-button> <a-button type="primary" style="margin-left: 5px;" @click="addFields">添加字段</a-button>
</div> </div>
<BasicForm <BasicForm
...@@ -63,7 +60,7 @@ ...@@ -63,7 +60,7 @@
size="middle" size="middle"
:bordered="false" :bordered="false"
:column="2" :column="2"
class="mt-2"
@register="partitionConfigurationTemplate" @register="partitionConfigurationTemplate"
> >
...@@ -81,8 +78,7 @@ ...@@ -81,8 +78,7 @@
<div style=" background: white;"> <div style=" background: white;">
<a-button type="primary" style="margin-left: 5px; margin-top: -10px; ">添加分区键</a-button> <a-button type="primary" style="margin-left: 5px; margin-top: -10px; ">添加分区键</a-button>
</div> </div>
</div>
</PageWrapper>
<generateTableBuildingStatementsMode @register="registerModal" /> <generateTableBuildingStatementsMode @register="registerModal" />
<addFieldsModal @register="FieldsModal" /> <addFieldsModal @register="FieldsModal" />
</PageWrapper> </PageWrapper>
...@@ -99,6 +95,9 @@ import Icon from "@/components/Icon/Icon.vue"; ...@@ -99,6 +95,9 @@ import Icon from "@/components/Icon/Icon.vue";
import {useModal} from "@/components/Modal"; import {useModal} from "@/components/Modal";
import generateTableBuildingStatementsMode from './generateTableBuildingStatementsMode.vue'; import generateTableBuildingStatementsMode from './generateTableBuildingStatementsMode.vue';
import addFieldsModal from './addFieldsModal.vue'; import addFieldsModal from './addFieldsModal.vue';
import CheckReport
from "@/views/dataWarehousePlanning/physicalModel/landCheck/checkDetail/checkReport.vue";
import {Checkbox} from "ant-design-vue";
let fieldConfigurationL = ref(fieldConfigurationList); let fieldConfigurationL = ref(fieldConfigurationList);
...@@ -115,23 +114,27 @@ const [ ...@@ -115,23 +114,27 @@ const [
api: async (params) => { api: async (params) => {
const response = { const response = {
pageNu: "1",
pageSize: "10",
pages: "1",
total: fieldConfigurationL.value.length, total: fieldConfigurationL.value.length,
data: [], code:'',
message:'',
data: fieldConfigurationL.value,
}; };
//过滤data中的数据,取出等于params.deptId的数据 //过滤data中的数据,取出等于params.deptId的数据
return { ...response,data: fieldConfigurationList }; return { ...response};
}, },
title: '字段配置',
rowKey: 'businessId', rowKey: 'businessId',
columns: fieldConfiguration, columns: fieldConfiguration,
formConfig: { formConfig: {
labelWidth: 10, labelWidth: 10,
autoSubmitOnEnter: false, autoSubmitOnEnter: false,
}, },
canResize:false,
useSearchForm: false, useSearchForm: false,
showIndexColumn: false, showIndexColumn: false,
showTableSetting: false, showTableSetting: false,
...@@ -251,8 +254,5 @@ const [partitionConfigurationTemplate] = useForm({ ...@@ -251,8 +254,5 @@ const [partitionConfigurationTemplate] = useForm({
margin-left: 38px; margin-left: 38px;
} }
.ant-table-body{
height: 0;
}
</style> </style>
...@@ -31,7 +31,7 @@ export const fieldConfigurationList: any[] = [ ...@@ -31,7 +31,7 @@ export const fieldConfigurationList: any[] = [
tableType: 'string', tableType: 'string',
fieldType: '', fieldType: '',
fieldAccuracy: '', fieldAccuracy: '',
nonEmpty:'1',
}, },
{ {
...@@ -40,9 +40,15 @@ export const fieldConfigurationList: any[] = [ ...@@ -40,9 +40,15 @@ export const fieldConfigurationList: any[] = [
tableType: 'varchar', tableType: 'varchar',
fieldType: '255', fieldType: '255',
fieldAccuracy: '', fieldAccuracy: '',
nonEmpty:'1',
}, },
{
fieldChineseName: '手机号',
fieldEnglishName: 'phone',
tableType: 'string',
fieldType: '',
fieldAccuracy: '',
},
]; ];
export const treeDataList = [ export const treeDataList = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment