Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
54d766dc
Commit
54d766dc
authored
Nov 12, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步最新数据”
parent
51942411
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
index.vue
src/components/user/index.vue
+22
-4
api.js
src/service/api.js
+5
-0
No files found.
src/components/user/index.vue
View file @
54d766dc
<
template
>
<
template
>
<div
class=
"user"
>
<div
class=
"user"
v-loading=
"loading"
>
<el-form
ref=
"searchFrom"
:model=
"searchFrom"
label-width=
"80px"
>
<el-form
ref=
"searchFrom"
:model=
"searchFrom"
label-width=
"80px"
>
<el-row>
<el-row>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
...
@@ -24,7 +24,10 @@
...
@@ -24,7 +24,10 @@
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
plain
@
click=
"getUser"
>
搜索
</el-button>
<div
class=
"flexRow"
>
<el-button
type=
"primary"
plain
@
click=
"getUser"
>
搜索
</el-button>
<el-button
type=
"success"
plain
@
click=
"syncUser"
>
同步最新数据
</el-button>
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -71,7 +74,7 @@
...
@@ -71,7 +74,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
getUserListApi
}
from
"../../service/api"
;
import
{
getUserListApi
,
getSyncUserApi
}
from
"../../service/api"
;
import
page
from
'../framework/page'
import
page
from
'../framework/page'
import
detailDialog
from
'./detail'
import
detailDialog
from
'./detail'
import
teacherDialog
from
'./dialog'
import
teacherDialog
from
'./dialog'
...
@@ -100,7 +103,8 @@
...
@@ -100,7 +103,8 @@
dialogDetailObj
:
{
dialogDetailObj
:
{
show
:
false
,
show
:
false
,
id
:
''
id
:
''
}
},
loading
:
false
}
}
},
},
components
:{
components
:{
...
@@ -162,6 +166,14 @@
...
@@ -162,6 +166,14 @@
},
},
goToDetail
(
id
){
goToDetail
(
id
){
this
.
$router
.
push
(
'/userDetail/'
+
id
);
this
.
$router
.
push
(
'/userDetail/'
+
id
);
},
syncUser
(){
this
.
loading
=
true
getSyncUserApi
().
then
(()
=>
{
this
.
loading
=
false
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
}
}
}
}
}
...
@@ -182,6 +194,12 @@
...
@@ -182,6 +194,12 @@
text-align: center;
text-align: center;
}
}
}
}
.flexRow {
display: flex;
flex-flow: row;
justify-content: flex-start;
align-items: center;
}
</
style
>
</
style
>
<
style
>
<
style
>
...
...
src/service/api.js
View file @
54d766dc
...
@@ -625,3 +625,8 @@ const getWechatStatisticListUrl = '/api/admin/wechat/statistics';
...
@@ -625,3 +625,8 @@ const getWechatStatisticListUrl = '/api/admin/wechat/statistics';
export
const
getWechatStatisticListApi
=
function
(
json
)
{
export
const
getWechatStatisticListApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
getWechatStatisticListUrl
,
json
)
return
Vue
.
prototype
.
$fetch
(
getWechatStatisticListUrl
,
json
)
};
};
// 同步用户手机号
const
getSyncUserUrl
=
'/api/admin/student/mobile'
;
export
const
getSyncUserApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
getSyncUserUrl
,
json
)
};
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