Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
emport-web
Overview
Overview
Details
Activity
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
刘泽志
emport-web
Commits
403a5cdd
Commit
403a5cdd
authored
Feb 28, 2023
by
刘泽志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
相同字段检测
parent
faec3af0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
DataField.js
src/api/emport/DataField.js
+13
-0
index.vue
src/views/emport/emport/index.vue
+12
-0
No files found.
src/api/emport/DataField.js
View file @
403a5cdd
...
...
@@ -157,3 +157,16 @@ export function syncField(data) {
})
}
/**
* 相同字段检测
* @returns {*}
*/
export
function
sameFieldCheck
(
templateId
)
{
return
request
({
url
:
`
${
prefix
}
/sameFieldCheck`
,
method
:
'get'
,
params
:{
templateId
}
})
}
src/views/emport/emport/index.vue
View file @
403a5cdd
...
...
@@ -261,6 +261,8 @@
</el-button>
<el-button
type=
"info"
@
click=
"querySyncField"
>
字段同步
</el-button>
<el-button
type=
"info"
@
click=
"sameFieldCheck"
>
相同字段检查
</el-button>
</el-form-item>
</el-form>
<el-table
v-loading=
"fieldDrawer.queryFieldLoading"
:data=
"fieldDrawer.fieldList"
...
...
@@ -1565,6 +1567,16 @@ export default {
callback
(
this
.
orgDictDialog
.
areaDict
)
}
},
sameFieldCheck
(){
let
templateId
=
this
.
fieldDrawer
.
template
.
id
DataField
.
sameFieldCheck
(
templateId
).
then
(
res
=>
{
if
(
!
res
.
data
||
res
.
data
.
length
===
0
){
this
.
$message
.
success
(
"无重复字段,可建表"
)
}
else
{
}
})
},
}
}
</
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