Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_vue_manage
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
杨硕
91isoft_vue_manage
Commits
3afade40
Commit
3afade40
authored
Sep 26, 2023
by
杨硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字典数据添加导入
parent
0222ca62
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
407 additions
and
362 deletions
+407
-362
data.js
src/api/system/dict/data.js
+24
-0
data.vue
src/views/system/dict/data.vue
+380
-358
index.vue
src/views/system/dict/index.vue
+1
-1
index.vue
src/views/system/user/index.vue
+2
-3
No files found.
src/api/system/dict/data.js
View file @
3afade40
...
@@ -81,3 +81,27 @@ export function exportData(query) {
...
@@ -81,3 +81,27 @@ export function exportData(query) {
responseType
:
'blob'
responseType
:
'blob'
})
})
}
}
// 下载字典数据导入模板
export
function
importTemplate
(
params
)
{
return
request
({
url
:
'/system/dict/data/importTemplate'
,
method
:
'get'
,
responseType
:
'blob'
,
params
})
}
// 导入字典数据信息
export
function
importExcel
(
data
)
{
return
request
({
url
:
'/system/dict/data/importDictData'
,
method
:
'post'
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
transformRequest
:
[(
data
)
=>
{
return
data
}],
data
})
}
src/views/system/dict/data.vue
View file @
3afade40
This diff is collapsed.
Click to expand it.
src/views/system/dict/index.vue
View file @
3afade40
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<!-- size="small"-->
<!-- size="small"-->
<!-- @click="handleAdd"-->
<!-- @click="handleAdd"-->
<!-- >新增
</el-button>
-->
<!-- >新增
</el-button>
-->
<coolbutton
:type=
"typePrimary"
:name=
"addName"
:size=
"smallSize"
:icon=
"addIcon"
:haspermi=
"addHaspermi"
@
btn-click=
"handleAdd"
/>
<coolbutton
:type=
"typePrimary"
:name=
"addName"
:size=
"smallSize"
:icon=
"addIcon"
:haspermi=
"addHaspermi"
@
btn-click=
"handleAdd"
/>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<!--
<el-button-->
<!--
<el-button-->
...
...
src/views/system/user/index.vue
View file @
3afade40
...
@@ -59,9 +59,8 @@
...
@@ -59,9 +59,8 @@
<!-- icon="el-icon-plus"-->
<!-- icon="el-icon-plus"-->
<!-- @click="handleAdd"-->
<!-- @click="handleAdd"-->
<!-- >新增
</el-button>
-->
<!-- >新增
</el-button>
-->
<coolbutton
style=
"padding: 8px 7px;"
:type=
"typePrimary"
:name=
"addName"
:size=
"smallSize"
:icon=
"addIcon"
:haspermi=
"addHaspermi"
@
btn-click=
"handleAdd"
/>
<coolbutton
:type=
"typePrimary"
:name=
"addName"
:size=
"smallSize"
:icon=
"addIcon"
:haspermi=
"addHaspermi"
@
btn-click=
"handleAdd"
/>
<el-button
<el-button
style=
"padding: 8px 7px;"
type=
"warning"
type=
"warning"
icon=
"el-icon-upload"
icon=
"el-icon-upload"
size=
"small"
size=
"small"
...
@@ -75,7 +74,7 @@
...
@@ -75,7 +74,7 @@
<!-- icon="el-icon-download"-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport"-->
<!-- @click="handleExport"-->
<!-- >导出
</el-button>
-->
<!-- >导出
</el-button>
-->
<coolbutton
style=
"padding: 8px 7px;"
:type=
"typeSuccess"
:name=
"exportName"
:size=
"smallSize"
:icon=
"exportIcon"
:haspermi=
"addHaspermi"
@
btn-click=
"handleExport"
/>
<coolbutton
:type=
"typeSuccess"
:name=
"exportName"
:size=
"smallSize"
:icon=
"exportIcon"
:haspermi=
"addHaspermi"
@
btn-click=
"handleExport"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
...
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