Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
1386886e
Commit
1386886e
authored
Dec 05, 2024
by
chenjiahao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据入湖-添加发布&重命名
parent
fd669da0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
5 deletions
+102
-5
dataEntry.data.ts
...taIntegration/dataLoading/dataEntryLake/dataEntry.data.ts
+18
-0
index.vue
...views/dataIntegration/dataLoading/dataEntryLake/index.vue
+31
-5
resetName.vue
...s/dataIntegration/dataLoading/dataEntryLake/resetName.vue
+53
-0
No files found.
src/views/dataIntegration/dataLoading/dataEntryLake/dataEntry.data.ts
View file @
1386886e
...
...
@@ -490,6 +490,24 @@ export const FieldNameMappingRuleFormSchema: FormSchema[] = [
},
];
export
const
resetNameFormSchema
:
FormSchema
[]
=
[
{
field
:
'name'
,
label
:
'名称'
,
component
:
'Input'
,
rules
:
[
{
required
:
true
,
message
:
'请输入文件名称'
,
},
],
componentProps
:
{
placeholder
:
'请输入文件名称'
,
},
colProps
:
{
span
:
8
},
},
];
export
const
BatchScaleNameMappingFormSchema
:
FormSchema
[]
=
[
{
field
:
'regularExpression'
,
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/index.vue
View file @
1386886e
...
...
@@ -57,10 +57,14 @@
// label: '详情',
// onClick: handleEdit.bind(null, record, 1),
// },
// {
// label: '发布',
// onClick: handlePublish.bind(null, record),
// },
{
label: '发布',
onClick: handlePublish.bind(null, record),
},
{
label: '重命名',
onClick: handleResetName.bind(null, record),
},
{
label: '复制',
onClick: handleMove.bind(null, 0, record),
...
...
@@ -82,6 +86,7 @@
<ImportModal
@
register=
"registerImport"
@
success=
"handleImportSuccess"
/>
<SceneSelectionModal
@
register=
"registerSceneSelectionModal"
/>
<NewFolder
@
register=
"registerNewFolder"
/>
<ResetName
@
register=
"registerResetNameModal"
@
success=
"handleAddSuccess"
/>
</PageWrapper>
</template>
<
script
lang=
"ts"
setup
>
...
...
@@ -100,10 +105,12 @@
import
GroupTree
from
'./GroupTree.vue'
;
import
SceneSelectionModal
from
'./sceneSelectionModal.vue'
;
import
ImportModal
from
'./importModal.vue'
;
import
ResetName
from
'./resetName.vue'
;
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
filterStore
=
useFilterStore
();
const
route
=
useRouter
();
const
[
registerResetNameModal
,
{
openModal
:
openResetNameModal
}]
=
useModal
();
const
[
registerImport
,
{
openModal
:
openImportModal
}]
=
useModal
();
const
[
registerMoveFile
,
{
openModal
:
openMoveFileModal
}]
=
useModal
();
const
[
registerSceneSelectionModal
,
{
openModal
:
openSceneSelectionModal
}]
=
useModal
();
...
...
@@ -190,7 +197,7 @@
},
});
}
/**
发布
按钮*/
/**
下线
按钮*/
function
handleDownline
()
{
createConfirm
({
iconType
:
'warning'
,
...
...
@@ -202,6 +209,25 @@
},
});
}
/**发布按钮*/
function
handlePublish
()
{
createConfirm
({
iconType
:
'warning'
,
title
:
'确认发布'
,
content
:
'确认发布选中数据?'
,
onOk
()
{
createMessage
.
success
(
'发布成功!'
);
reload
();
},
});
}
/** 重命名按钮*/
function
handleResetName
(
record
:
Recordable
)
{
openResetNameModal
(
true
,
{
record
,
isReset
:
true
,
});
}
/**下线按钮*/
function
handleRun
()
{
createConfirm
({
...
...
src/views/dataIntegration/dataLoading/dataEntryLake/resetName.vue
0 → 100644
View file @
1386886e
<
template
>
<BasicModal
width=
"40%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
>
<BasicForm
@
register=
"registerForm"
/>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ref
,
computed
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
resetNameFormSchema
}
from
'./dataEntry.data'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
createMessage
}
=
useMessage
();
const
isUpdate
=
ref
(
true
);
const
isMove
=
ref
(
false
);
const
rowId
=
ref
(
''
);
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
resetNameFormSchema
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields
();
setModalProps
({
confirmLoading
:
false
});
isUpdate
.
value
=
!!
data
?.
isUpdate
;
isMove
.
value
=
!!
data
?.
isMove
;
setFieldsValue
({
...
data
.
record
,
});
});
const
getTitle
=
computed
(()
=>
'重命名'
);
/**确定按钮*/
async
function
handleSubmit
()
{
createMessage
.
success
(
'重命名成功'
);
closeModal
();
}
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment