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
c7421a87
Commit
c7421a87
authored
Aug 28, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.singsingenglish.com/new-sing/admin
into dev
parents
64fa0a4a
83b530ea
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
227 additions
and
135 deletions
+227
-135
index.vue
src/components/brokerage/index.vue
+3
-1
index.vue
src/components/callBack/index.vue
+124
-52
tag.vue
src/components/system/tag.vue
+3
-1
index.vue
src/components/user/index.vue
+93
-81
api.js
src/service/api.js
+4
-0
No files found.
src/components/brokerage/index.vue
View file @
c7421a87
...
@@ -37,7 +37,9 @@
...
@@ -37,7 +37,9 @@
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-input
<el-input
type=
"number"
type=
"number"
v-model
.
number=
"scope.row.scale"
></el-input>
v-model
.
number=
"scope.row.scale"
>
<template
slot=
"append"
>
%
</
template
>
</el-input>
</template>
</template>
</el-table-column>
</el-table-column>
...
...
src/components/callBack/index.vue
View file @
c7421a87
This diff is collapsed.
Click to expand it.
src/components/system/tag.vue
View file @
c7421a87
...
@@ -19,15 +19,17 @@
...
@@ -19,15 +19,17 @@
<div
class=
"tag-tree"
>
<div
class=
"tag-tree"
>
<el-tree
<el-tree
:indent=
"40"
:data=
"treeData"
:data=
"treeData"
node-key=
"id"
ref=
"tagTree"
node-key=
"id"
ref=
"tagTree"
:props=
"
{children: 'children', label: 'name'}"
:props=
"
{children: 'children', label: 'name'}"
:indent="40"
@node-expand="tagExpand"
@node-expand="tagExpand"
@node-collapse="tagCollapse"
@node-collapse="tagCollapse"
:filter-node-method="filterNode"
:filter-node-method="filterNode"
:default-expanded-keys="tagExpanded"
:default-expanded-keys="tagExpanded"
:expand-on-click-node="true">
:expand-on-click-node="true">
<!--:check-on-click-node="true"
:check-strictly="true"-->
<div
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<div
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<el-tag
class=
"tag-tree-item"
effect=
"plain"
size=
"medium"
>
{{
node
.
label
}}
</el-tag>
<el-tag
class=
"tag-tree-item"
effect=
"plain"
size=
"medium"
>
{{
node
.
label
}}
</el-tag>
<div
style=
"display: flex"
>
<div
style=
"display: flex"
>
...
...
src/components/user/index.vue
View file @
c7421a87
<
template
>
<
template
>
<div
class=
"admin-refresh"
v-loading=
"loading"
>
<div
class=
"admin-refresh"
v-loading=
"loading"
>
<!--为了共享user权限-->
<user-detail
v-if=
"inDetail"
></user-detail>
<div
v-else
>
<div
class=
"section-search"
>
<div
class=
"section-search"
>
<el-form
ref=
"searchFrom"
:model=
"searchFrom"
label-width=
"80px"
inline
>
<el-form
ref=
"searchFrom"
:model=
"searchFrom"
label-width=
"80px"
inline
>
<el-form-item>
<el-form-item>
...
@@ -27,7 +32,6 @@
...
@@ -27,7 +32,6 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<el-table
<el-table
:data=
"userList"
:data=
"userList"
style=
"width: 100%"
>
style=
"width: 100%"
>
...
@@ -46,7 +50,7 @@
...
@@ -46,7 +50,7 @@
<el-table-column
label=
"操作"
width=
"200px"
>
<el-table-column
label=
"操作"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<!--
<el-button
size=
"mini"
plain
type=
"primary"
@
click=
"goToDetail(scope.row.user_id)"
>
查看详情
</el-button>
-->
<!--
<el-button
size=
"mini"
plain
type=
"primary"
@
click=
"goToDetail(scope.row.user_id)"
>
查看详情
</el-button>
-->
<router-link
:to=
"
{path:'/userDetail', query:{
userid: scope.row.user_id}}" target="_blank">
<el-button
size=
"mini"
plain
type=
"primary"
>
查看详情
</el-button></router-link>
<router-link
:to=
"
{path:'/user', query:{type: 'detail',
userid: scope.row.user_id}}" target="_blank">
<el-button
size=
"mini"
plain
type=
"primary"
>
查看详情
</el-button></router-link>
<el-button
size=
"mini"
v-if=
"!$store.state.readonly"
plain
type=
"warning"
@
click=
"userTransfer(scope.row)"
>
用户转移
</el-button>
<el-button
size=
"mini"
v-if=
"!$store.state.readonly"
plain
type=
"warning"
@
click=
"userTransfer(scope.row)"
>
用户转移
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -91,6 +95,8 @@
...
@@ -91,6 +95,8 @@
</span>
</span>
</el-dialog>
</el-dialog>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -104,6 +110,7 @@
...
@@ -104,6 +110,7 @@
name
:
"index"
,
name
:
"index"
,
data
()
{
data
()
{
return
{
return
{
inDetail
:
false
,
addShow
:
false
,
addShow
:
false
,
userTransferList
:
[],
userTransferList
:
[],
userObj
:
{
userObj
:
{
...
@@ -161,8 +168,13 @@
...
@@ -161,8 +168,13 @@
teacherDialog
teacherDialog
},
},
mounted
()
{
mounted
()
{
this
.
$route
.
query
.
id
?
this
.
searchFrom
.
userId
=
this
.
$route
.
query
.
id
:
''
;
if
(
this
.
$route
.
query
.
type
&&
this
.
$route
.
query
.
type
==
'detail'
)
{
// 详情页
this
.
inDetail
=
true
}
else
{
// 列表页
this
.
inDetail
=
false
;
this
.
getUser
();
this
.
getUser
();
}
this
.
$route
.
query
.
id
?
this
.
searchFrom
.
userId
=
this
.
$route
.
query
.
id
:
''
;
},
},
methods
:
{
methods
:
{
userTransfer
(
row
)
{
userTransfer
(
row
)
{
...
...
src/service/api.js
View file @
c7421a87
...
@@ -71,6 +71,10 @@ export const getCallBackApi = function (json) {
...
@@ -71,6 +71,10 @@ export const getCallBackApi = function (json) {
// console.log(json, 9001)
// console.log(json, 9001)
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/user/visit/
${
json
.
user_id
}
`
,
json
)
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/user/visit/
${
json
.
user_id
}
`
,
json
)
};
};
// 获取上次回访信息
export
const
getCallBackPrevApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
user/last/visit/
${
json
.
user_id
}
`
,
json
)
};
// 添加回访信息
// 添加回访信息
export
const
postCallBackApi
=
function
(
json
)
{
export
const
postCallBackApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$post
(
`
${
_baseUrl
}
api/admin/user/visit/
${
json
.
user_id
}
/
${
json
.
teacher_id
}
`
,
json
)
return
Vue
.
prototype
.
$post
(
`
${
_baseUrl
}
api/admin/user/visit/
${
json
.
user_id
}
/
${
json
.
teacher_id
}
`
,
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