Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
237504d7
Commit
237504d7
authored
Oct 21, 2022
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vue3写法
parent
325fbce8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
src/page/main/config/dict/index.vue
src/page/main/config/dict/index.vue
+5
-8
No files found.
src/page/main/config/dict/index.vue
View file @
237504d7
...
...
@@ -57,14 +57,11 @@
</template>
<
script
setup
>
import
{
reactive
,
toRefs
,
ref
,
}
from
'
@vue/reactivity
'
import
{
getCurrentInstance
}
from
'
vue
'
import
{
computed
,
onBeforeMount
,
watch
}
from
'
@vue/runtime-core
'
import
{
reactive
,
ref
,
onBeforeMount
,
toRefs
,
computed
,
watch
}
from
'
vue
'
import
{
useRouter
}
from
'
vue-router
'
;
import
bgTable
from
'
@/bg-ui/bg-table.vue
'
// const bgTable = ref(null)
const
{
proxy
}
=
getCurrentInstance
()
const
{
$message
,
$axios
}
=
proxy
import
{
ElMessage
}
from
'
element-plus
'
import
axios
from
'
../../../../request/http.js
'
const
state
=
reactive
({
typeList
:
[
{
...
...
@@ -142,7 +139,7 @@ const getTypeList = () => {
}
const
getTableRows
=
()
=>
{
let
params
=
{...
state
.
filter
}
$
axios
axios
.
get
(
`/apaas/system/v5/dictionary/list`
,
{
...
...
@@ -154,7 +151,7 @@ const getTableRows = () => {
state
.
tableRows
=
res
.
data
.
data
||
[]
state
.
tableTotal
=
res
.
data
.
total
}
else
{
$m
essage
.
error
(
res
.
data
.
msg
)
ElM
essage
.
error
(
res
.
data
.
msg
)
}
})
}
// 获取数据
...
...
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