Commit 97d9ceec authored by liangjingpeng's avatar liangjingpeng

数据入湖-准实时--优化

parent 8c855f07
import {BasicColumn, FormSchema} from "@/components/Table";
import { BasicColumn, FormSchema } from '@/components/Table';
/**源端配置-left-表单 */
export const sourceSideConfigurationFormSchema: FormSchema[] = [
......@@ -52,7 +52,7 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
{
field: 'dataBase',
label: '数据库',
component: 'Cascader',
component: 'Select',
required: true,
componentProps: {
placeholder: '请选择数据源',
......@@ -60,14 +60,6 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
return labels[labels.length - 1];
},
options: [
{
value: '数据库对象资源',
label: '数据库对象资源',
children: [
{
value: '数据中台工作区01',
label: '数据中台工作区01',
children: [
{
value: 'ArgoDB_Dev01',
label: 'ArgoDB_Dev01',
......@@ -82,10 +74,6 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
},
],
},
],
},
],
},
},
{
......@@ -94,7 +82,6 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
component: 'Slot',
slot: 'getMetadata',
},
];
/**源端配置-获取元数据按钮(弹窗)-字段名 */
......@@ -112,7 +99,7 @@ export const LoadingStrategyFormSchema: FormSchema[] = [
component: 'Select',
colProps: { lg: 23, md: 23 },
componentProps: {
mode: 'multiple'
mode: 'multiple',
},
ifShow: false,
required: true,
......@@ -136,7 +123,6 @@ export const notCustomSQLColumns: BasicColumn[] = [
title: '类型',
dataIndex: 'fieldType',
},
];
/**映射规则配置-新增规则按钮-新增字段规则表单*/
......@@ -360,7 +346,6 @@ export const singleSourceFieldNameMappingRuleColumns: BasicColumn[] = [
},
];
/**映射规则配置-数据转换规则-列表字段 */
export const mappingRuleConfigurationColumns: BasicColumn[] = [
{
......@@ -376,6 +361,4 @@ export const mappingRuleConfigurationColumns: BasicColumn[] = [
align: 'left',
slots: { customRender: 'ruleContent' },
},
];
......@@ -2,7 +2,7 @@
<BasicModal
v-bind="$attrs"
@register="registerModal"
title="全局新增字段规则"
title="全局字段名称映射规则"
@ok="handleSubmit"
style="width: 35%"
minHeight="50"
......
......@@ -413,7 +413,7 @@
let target = 0; // 目标数据序号
// Table拖拽
function customRow(record, index) {
console.log(record, index); // 这里输出是表格全部的数据
console.log('record, index:',record, index); // 这里输出是表格全部的数据
return {
props: {
// draggable: 'true'
......@@ -454,11 +454,11 @@
target = index;
// 这里就是让数据位置互换,让视图更新 你们可以看record,index的输出,看是什么
console.log(mappingRuleConfigurationTable);
// [tableData.value[source], tableData.value[target]] = [tableData.value[target], tableData.value[source]];
const temp = ref();
temp.value = mappingRuleConfigurationTable.value[source];
mappingRuleConfigurationTable.value[source] = mappingRuleConfigurationTable.value[target];
mappingRuleConfigurationTable.value[target] = temp.value;
[mappingRuleConfigurationTable.value[source], mappingRuleConfigurationTable.value[target]] = [mappingRuleConfigurationTable.value[target], mappingRuleConfigurationTable.value[source]];
// const temp = ref();
// temp.value = mappingRuleConfigurationTable.value[source];
// mappingRuleConfigurationTable.value[source] = mappingRuleConfigurationTable.value[target];
// mappingRuleConfigurationTable.value[target] = temp.value;
console.log(record, index, 'target', source, target);
},
};
......
......@@ -2,7 +2,7 @@
<BasicModal
v-bind="$attrs"
@register="registerModal"
title="全局新增字段规则"
title="全局字段映射规则"
@ok="handleSubmit"
style="width: 35%"
minHeight="50"
......
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