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

修改bug

parent e0006755
...@@ -37,10 +37,12 @@ ...@@ -37,10 +37,12 @@
import { BasicForm, useForm } from '@/components/Form'; import { BasicForm, useForm } from '@/components/Form';
import { importFormSchema } from './dataEntry.data'; import { importFormSchema } from './dataEntry.data';
import { Alert } from 'ant-design-vue'; import { Alert } from 'ant-design-vue';
import {useMessage} from "@/hooks/web/useMessage";
const emit = defineEmits(['success', 'register']); const emit = defineEmits(['success', 'register']);
const isUpdate = ref(true); const isUpdate = ref(true);
const isMove = ref(false); const isMove = ref(false);
const { createMessage } = useMessage();
const rowId = ref(''); const rowId = ref('');
//获取接口数据并放在下拉框里(这里是打开了一个弹框) //获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单 //初始化表单
...@@ -75,6 +77,7 @@ ...@@ -75,6 +77,7 @@
/**确定按钮*/ /**确定按钮*/
async function handleSubmit() { async function handleSubmit() {
createMessage.success('导入成功');
closeModal(); closeModal();
} }
</script> </script>
...@@ -395,9 +395,9 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [ ...@@ -395,9 +395,9 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
ifShow: ({ model }) => model.sourceType === '2' && model.analysisType === '1', ifShow: ({ model }) => model.sourceType === '2' && model.analysisType === '1',
}, },
{ {
field: 'analysisAlter1', field: 'analysisAlter2',
label: '', label: '',
slot: 'analysisAlter1', slot: 'analysisAlter2',
ifShow: ({ model }) => model.sourceType === '2' && model.analysisType === '2', ifShow: ({ model }) => model.sourceType === '2' && model.analysisType === '2',
}, },
{ {
...@@ -450,6 +450,7 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [ ...@@ -450,6 +450,7 @@ export const sourceSideConfigurationFormSchema: FormSchema[] = [
field: 'xstreaName', field: 'xstreaName',
label: 'xstream服务名称', label: 'xstream服务名称',
component: 'Input', component: 'Input',
required: true,
ifShow: ({ model }) => model.sourceType === '2' && model.analysisType === '2', ifShow: ({ model }) => model.sourceType === '2' && model.analysisType === '2',
}, },
{ {
...@@ -530,7 +531,7 @@ export const kafkaOptionsFormSchema: FormSchema[] = [ ...@@ -530,7 +531,7 @@ export const kafkaOptionsFormSchema: FormSchema[] = [
min: 1, min: 1,
max: 50, max: 50,
}, },
defaultValue: 1, defaultValue: 3,
required: true, required: true,
colProps: { lg: 4, md: 4 }, colProps: { lg: 4, md: 4 },
}, },
...@@ -561,6 +562,7 @@ export const mappingRulesTopicTableColumns: BasicColumn[] = [ ...@@ -561,6 +562,7 @@ export const mappingRulesTopicTableColumns: BasicColumn[] = [
editable: true, editable: true,
editComponent: 'Select', editComponent: 'Select',
editComponentProps: { editComponentProps: {
maxTagCount: 1,
showArrow: true, showArrow: true,
mode: 'multiple', mode: 'multiple',
options: [ options: [
......
...@@ -268,6 +268,14 @@ ...@@ -268,6 +268,14 @@
/> />
</template> </template>
<template #mappingRules2> <template #mappingRules2>
<Alert
show-icon
message="当前默认情况按照表数量平均分配到设置的Topic中,若Topic数量大于表数量,则无映射关系的Topic不会被创建。"
type="warning"
style="font-size: 14px"
/>
</template>
<template #mappingRules3>
<Alert <Alert
show-icon show-icon
message="源端表没有匹配的topic,会按照默认策略进行匹配topic。不支持用户在发布版本并运行任务后在修改topic映射规则,可能会导致数据去失。" message="源端表没有匹配的topic,会按照默认策略进行匹配topic。不支持用户在发布版本并运行任务后在修改topic映射规则,可能会导致数据去失。"
...@@ -716,6 +724,14 @@ ...@@ -716,6 +724,14 @@
label: '', label: '',
slot: 'mappingRules2', slot: 'mappingRules2',
colProps: { lg: 24, md: 24 }, colProps: { lg: 24, md: 24 },
ifShow: ({ model }) => model.topicMappingType === '1',
},
{
field: 'mappingRules3',
label: '',
slot: 'mappingRules3',
colProps: { lg: 24, md: 24 },
ifShow: ({ model }) => model.topicMappingType === '2',
}, },
{ {
field: 'mappingRulesTable', field: 'mappingRulesTable',
...@@ -1139,6 +1155,11 @@ ...@@ -1139,6 +1155,11 @@
} }
} }
function handleDeleteRules() { function handleDeleteRules() {
createConfirm({
iconType: 'warning',
title: '确认删除',
content: '确认批量删除选中数据吗?',
onOk() {
const selectedKeys = getRowSelection().selectedRowKeys; const selectedKeys = getRowSelection().selectedRowKeys;
if (selectedKeys !== undefined) { if (selectedKeys !== undefined) {
selectedKeys.forEach((key) => { selectedKeys.forEach((key) => {
...@@ -1151,6 +1172,8 @@ ...@@ -1151,6 +1172,8 @@
}); });
createMessage.success('批量删除数据转换规则成功'); createMessage.success('批量删除数据转换规则成功');
} }
},
});
} }
/**新增属性*/ /**新增属性*/
......
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