Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
md-vue-chc
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
何鹏程
md-vue-chc
Commits
9bd0a871
Commit
9bd0a871
authored
Sep 10, 2021
by
何鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
af7a963e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
26 additions
and
16 deletions
+26
-16
mixin.js
src/common/js/mixin.js
+17
-7
index.vue
src/page/emergencyCar/index.vue
+1
-1
index.vue
src/page/expert/index.vue
+1
-1
index.vue
src/page/greenWay/index.vue
+1
-1
index.vue
src/page/hospital/index.vue
+1
-1
index.vue
src/page/log/index.vue
+1
-1
index.vue
src/page/medical/index.vue
+1
-1
index.vue
src/page/rescue/index.vue
+1
-1
index.vue
src/page/sitePage/index.vue
+1
-1
index.vue
src/page/user/index.vue
+1
-1
No files found.
src/common/js/mixin.js
View file @
9bd0a871
...
...
@@ -26,9 +26,13 @@ export const tableDataMixin = {
methods
:
{
search
()
{
this
.
tableData
.
loading
=
true
/* this.pageNum = 1*/
this
.
getTableData
()
},
searchFormSub
()
{
this
.
pageNum
=
1
// this.pageSize = 10
this
.
search
()
},
handleSizeChange
(
val
)
{
this
.
pageNum
=
1
this
.
pageSize
=
val
...
...
@@ -44,14 +48,20 @@ export const tableDataMixin = {
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
},
tableRowClassName
({
row
,
rowIndex
})
{
tableRowClassName
({
row
,
rowIndex
})
{
for
(
let
item
of
this
.
multipleSelection
)
{
if
(
item
.
id
&&
item
.
id
===
row
.
id
)
{
return
'selected-row'
}
}
},
handleSortChange
({
prop
,
order
})
{
handleSortChange
({
prop
,
order
})
{
this
.
sortName
=
prop
if
(
order
===
'descending'
)
{
this
.
sortValue
=
'desc'
...
...
@@ -62,15 +72,15 @@ export const tableDataMixin = {
},
dealTableResponse
(
res
)
{
this
.
tableData
.
loading
=
false
if
(
res
&&
res
.
msg
==
201
)
{
if
(
res
&&
res
.
msg
==
201
)
{
this
.
tableData
.
body
=
res
.
respData
.
list
if
(
this
.
tableData
.
body
.
length
==
0
)
{
if
(
this
.
tableData
.
body
.
length
==
0
)
{
this
.
pagination
=
false
}
else
{
}
else
{
this
.
pagination
=
true
}
this
.
pageNum
=
res
.
respData
.
pageNum
>
0
?
res
.
respData
.
pageNum
:
1
this
.
pageSize
=
res
.
respData
.
pageSize
?
res
.
respData
.
pageSize
:
10
this
.
pageSize
=
res
.
respData
.
pageSize
?
res
.
respData
.
pageSize
:
10
this
.
total
=
res
.
respData
.
total
}
else
{
this
.
$message
.
error
(
res
.
msg
)
...
...
src/page/emergencyCar/index.vue
View file @
9bd0a871
...
...
@@ -95,7 +95,7 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
@
click=
"search
FormSub
"
>
查询
</el-button>
<el-button
size=
"small"
...
...
src/page/expert/index.vue
View file @
9bd0a871
...
...
@@ -35,7 +35,7 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
@
click=
"search
FormSub
"
>
查询
</el-button>
<el-button
size=
"small"
...
...
src/page/greenWay/index.vue
View file @
9bd0a871
...
...
@@ -47,7 +47,7 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
@
click=
"search
FormSub
"
>
查询
</el-button>
<el-button
size=
"small"
...
...
src/page/hospital/index.vue
View file @
9bd0a871
...
...
@@ -45,7 +45,7 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
@
click=
"search
FormSub
"
>
查询
</el-button>
<el-button
size=
"small"
...
...
src/page/log/index.vue
View file @
9bd0a871
...
...
@@ -63,7 +63,7 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
@
click=
"search
FormSub
"
>
查询
</el-button>
<el-button
size=
"small"
...
...
src/page/medical/index.vue
View file @
9bd0a871
...
...
@@ -45,7 +45,7 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
@
click=
"search
FormSub
"
>
查询
</el-button>
<el-button
size=
"small"
...
...
src/page/rescue/index.vue
View file @
9bd0a871
...
...
@@ -35,7 +35,7 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
@
click=
"search
FormSub
"
>
查询
</el-button>
<el-button
size=
"small"
...
...
src/page/sitePage/index.vue
View file @
9bd0a871
...
...
@@ -72,7 +72,7 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
@
click=
"search
FormSub
"
>
查询
</el-button>
<el-button
size=
"small"
...
...
src/page/user/index.vue
View file @
9bd0a871
...
...
@@ -63,7 +63,7 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
@
click=
"search
FormSub
"
>
查询
</el-button>
<el-button
size=
"small"
...
...
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