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
b3a314ed
Commit
b3a314ed
authored
Nov 15, 2024
by
chenjiahao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据质量-SQL代码使用CodeEditor组件
parent
bbbb3ada
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
CodeEditor.vue
src/components/CodeEditor/src/CodeEditor.vue
+1
-1
mainBodyEdit.vue
src/views/dataQuality/agentClass/mainBody/mainBodyEdit.vue
+3
-2
edit.vue
src/views/dataQuality/dataSheet/template/edit.vue
+2
-1
No files found.
src/components/CodeEditor/src/CodeEditor.vue
View file @
b3a314ed
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
value
:
{
type
:
[
Object
,
String
]
as
PropType
<
Record
<
string
,
any
>
|
string
>
},
value
:
{
type
:
[
Object
,
String
]
as
PropType
<
Record
<
string
,
any
>
|
string
>
},
mode
:
{
mode
:
{
type
:
String
as
PropType
<
MODE
>
,
type
:
String
as
PropType
<
MODE
>
,
default
:
MODE
.
JSON
,
default
:
MODE
.
SQL
,
validator
(
value
:
any
)
{
validator
(
value
:
any
)
{
// 这个值必须匹配下列字符串中的一个
// 这个值必须匹配下列字符串中的一个
return
Object
.
values
(
MODE
).
includes
(
value
);
return
Object
.
values
(
MODE
).
includes
(
value
);
...
...
src/views/dataQuality/agentClass/mainBody/mainBodyEdit.vue
View file @
b3a314ed
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
/>
/>
<BasicForm
@
register=
"registerInfoForm"
/>
<BasicForm
@
register=
"registerInfoForm"
/>
<!--
<div
class=
"editor"
v-show=
"isIndependent === true"
>
-->
<!--
<div
class=
"editor"
v-show=
"isIndependent === true"
>
-->
<!--
<textarea
v-model=
"sql"
placeholder=
"请输入内容..."
></textarea
>
-->
<!--
CodeEditor v-model:value="sql" /
>-->
<!--
</div>
-->
<!--
</div>
-->
<div
class=
"editor"
>
<div
class=
"editor"
>
<
textarea
v-model=
"sql"
placeholder=
"请输入内容..."
></textarea
>
<
CodeEditor
v-model:value=
"sql"
/
>
</div>
</div>
<a-button
type=
"primary"
@
click=
"handleRun"
>
测试运行
</a-button>
<a-button
type=
"primary"
@
click=
"handleRun"
>
测试运行
</a-button>
<div
v-if=
"isRun"
>
<div
v-if=
"isRun"
>
...
@@ -93,6 +93,7 @@
...
@@ -93,6 +93,7 @@
TreeData
,
TreeData
,
associationRulesData
,
associationRulesData
,
}
from
'@/views/dataQuality/agentClass/mainBody/dataQualityMainBodyData'
;
}
from
'@/views/dataQuality/agentClass/mainBody/dataQualityMainBodyData'
;
import
CodeEditor
from
'@/components/CodeEditor/src/CodeEditor.vue'
;
const
{
createMessage
}
=
useMessage
();
const
{
createMessage
}
=
useMessage
();
const
page
=
ref
(
'1'
);
const
page
=
ref
(
'1'
);
...
...
src/views/dataQuality/dataSheet/template/edit.vue
View file @
b3a314ed
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</div>
</div>
<div
class=
"editor"
>
<div
class=
"editor"
>
<
textarea
v-model=
"sql"
placeholder=
"请输入内容..."
></textarea
>
<
CodeEditor
v-model:value=
"sql"
/
>
</div>
</div>
<div
class=
"w-full"
>
<div
class=
"w-full"
>
<Card
style=
"margin-bottom: 8px"
>
<Card
style=
"margin-bottom: 8px"
>
...
@@ -96,6 +96,7 @@
...
@@ -96,6 +96,7 @@
import
{
useModal
}
from
'@/components/Modal'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
SelectDatasourceModal
from
'@/views/dataQuality/dataSheet/template/selectDatasourceModal.vue'
;
import
SelectDatasourceModal
from
'@/views/dataQuality/dataSheet/template/selectDatasourceModal.vue'
;
import
CodeEditor
from
"@/components/CodeEditor/src/CodeEditor.vue"
;
const
formItem
=
reactive
({
const
formItem
=
reactive
({
templateName
:
''
,
templateName
:
''
,
...
...
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