Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
fa4e80b2
Commit
fa4e80b2
authored
Feb 20, 2020
by
黄森林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
账户预实名完成
parent
56936af7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
230 additions
and
2 deletions
+230
-2
src/api/school-center/ysmUser.js
+17
-0
src/views/school-center/product/product.vue
+9
-1
src/views/school-center/university/university.vue
+9
-1
src/views/school-center/ysmUser/ysmUser.vue
+195
-0
No files found.
src/api/school-center/ysmUser.js
0 → 100644
View file @
fa4e80b2
import
{
postAction
,
downFilePost
}
from
'@/api/manage'
const
prefix
=
'/schoolcenter/ciop'
;
// 智能平台账号实名
let
ysmUserList
=
(
params
)
=>
postAction
(
prefix
+
"/ysmUser/list"
,
params
);
let
ysmUserNotThrough
=
(
id
,
params
)
=>
postAction
(
prefix
+
"/ysmUser/notThrough/"
+
id
,
params
);
let
ysmUserInsert
=
(
params
)
=>
postAction
(
prefix
+
"/ysmUser/insert"
,
params
);
let
ysmUserUpdate
=
(
params
)
=>
postAction
(
prefix
+
"/ysmUser/update"
,
params
);
export
{
ysmUserList
,
ysmUserNotThrough
,
ysmUserInsert
,
ysmUserUpdate
}
\ No newline at end of file
src/views/school-center/product/product.vue
View file @
fa4e80b2
...
...
@@ -175,7 +175,10 @@
this
.
$refs
.
table
.
refresh
({
search
:
true
})
},
remove
(
id
)
{
productDelete
(
id
).
then
(()
=>
{
productDelete
(
id
).
then
((
res
)
=>
{
if
(
res
.
state
==
"success"
){
this
.
$notification
.
success
({
message
:
res
.
data
,
description
:
''
,
duration
:
4
})
}
this
.
$refs
.
table
.
refresh
({
search
:
true
})
})
},
...
...
@@ -218,7 +221,9 @@
productInsert
({
product
}).
then
((
res
)
=>
{
this
.
modifyvisible
=
false
;
this
.
clearmodel
()
if
(
res
.
state
==
"success"
){
this
.
$notification
.
success
({
message
:
res
.
data
,
description
:
''
,
duration
:
4
})
}
this
.
search
()
})
}
else
{
...
...
@@ -227,7 +232,9 @@
productUpdate
({
product
}).
then
((
res
)
=>
{
this
.
modifyvisible
=
false
;
this
.
clearmodel
()
if
(
res
.
state
==
"success"
){
this
.
$notification
.
success
({
message
:
res
.
data
,
description
:
''
,
duration
:
4
})
}
this
.
search
()
})
}
...
...
@@ -240,6 +247,7 @@
},
//清除弹窗信息
clearmodel
()
{
this
.
add
=
true
let
that
=
this
;
that
.
modelData
.
productMealPrice
=
''
that
.
modelData
.
productId
=
''
...
...
src/views/school-center/university/university.vue
View file @
fa4e80b2
...
...
@@ -181,7 +181,10 @@
this
.
$refs
.
table
.
refresh
({
search
:
true
})
},
remove
(
id
)
{
universityDelete
(
id
).
then
(()
=>
{
universityDelete
(
id
).
then
((
res
)
=>
{
if
(
res
.
state
==
"success"
){
this
.
$notification
.
success
({
message
:
res
.
data
,
description
:
''
,
duration
:
4
})
}
this
.
$refs
.
table
.
refresh
({
search
:
true
})
})
},
...
...
@@ -234,7 +237,9 @@
universityInsert
({
university
}).
then
((
res
)
=>
{
this
.
modifyvisible
=
false
;
this
.
clearmodel
()
if
(
res
.
state
==
"success"
){
this
.
$notification
.
success
({
message
:
res
.
data
,
description
:
''
,
duration
:
4
})
}
this
.
search
()
})
}
else
{
...
...
@@ -243,7 +248,9 @@
universityUpdate
({
university
}).
then
((
res
)
=>
{
this
.
modifyvisible
=
false
;
this
.
clearmodel
()
if
(
res
.
state
==
"success"
){
this
.
$notification
.
success
({
message
:
res
.
data
,
description
:
''
,
duration
:
4
})
}
this
.
search
()
})
}
...
...
@@ -256,6 +263,7 @@
},
//清除弹窗信息
clearmodel
()
{
this
.
add
=
true
this
.
modelData
.
universityId
=
''
this
.
Formtable
.
setFieldsValue
({
"universityName"
:
''
,
...
...
src/views/school-center/ysmUser/ysmUser.vue
0 → 100644
View file @
fa4e80b2
<
template
>
<div
class=
"flex-container"
>
<!-- 查询区域 -->
<div
class=
"table-page-search-wrapper"
>
<!-- 搜索区域 -->
<a-form
layout=
"inline"
>
<a-row
:gutter=
"24"
>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
label=
"预实名账号:"
>
<a-input
placeholder=
"预实名账号"
v-model=
"queryParam.userName"
></a-input>
</a-form-item>
</a-col>
<a-col
:md=
"3"
:sm=
"12"
>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
</a-col>
<a-col
:md=
"3"
:sm=
"12"
>
<a-button
@
click=
"modifyfunction()"
type=
"primary"
>
添加
</a-button>
</a-col>
</a-row>
</a-form>
</div>
<!--列表-->
<s-table
:columns=
"columns"
:data=
"rowdata"
bordered
ref=
"table"
size=
"small"
class=
"flex-filling"
>
<template
slot=
"operation"
slot-scope=
"text, record"
>
<span>
<a
@
click=
"modifyfunction(record)"
>
修改
</a>
<a-divider
type=
"vertical"
/>
<a-popconfirm
v-if=
"record.status == 1"
title=
"是否不通过佣金系统?"
@
confirm=
"notThrough(record.id,0)"
>
<a>
不通过佣金系统
</a>
</a-popconfirm>
<a-popconfirm
v-if=
"record.status == 0"
title=
"是否通过佣金系统?"
@
confirm=
"notThrough(record.id,1)"
>
<a>
通过佣金系统
</a>
</a-popconfirm>
</span>
</
template
>
</s-table>
<!----弹框-->
<a-modal
:title=
"add ?'添加预实名账号': '编辑预实名账号'"
:visible=
"modifyvisible"
@
ok=
"createfunctionOk"
@
cancel=
"createfunctionCancel"
html-type=
"submit"
width=
"1024px"
>
<a-form
:form=
"Formtable"
>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"账号:"
>
<a-input
placeholder=
"预实名账号"
v-decorator=
"[ 'userName', {rules: [{ required: true, message: '预实名账号不能为空!' ,validator: 'click'}]} ]"
></a-input>
</a-form-item>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"签名:"
>
<a-input
placeholder=
"签名"
v-decorator=
"[ 'sign', {rules: [{ required: true, message: '签名不能为空!' ,validator: 'click'}]} ]"
></a-input>
</a-form-item>
</a-form>
</a-modal>
</div>
</template>
<
script
>
import
STable
from
'@/components/table'
;
import
{
ysmUserList
,
ysmUserNotThrough
,
ysmUserInsert
,
ysmUserUpdate
}
from
"@/api/school-center/ysmUser"
import
{
cloneObject
}
from
'@/utils/util'
;
export
default
{
name
:
"ysmUser"
,
components
:
{
STable
,
},
data
(){
return
{
Formtable
:
this
.
$form
.
createForm
(
this
),
modifyvisible
:
false
,
add
:
true
,
queryParam
:
{
userName
:
''
},
modelData
:{
id
:
''
,
userName
:
''
,
sign
:
''
},
columns
:
[
{
dataIndex
:
'userName'
,
width
:
200
,
title
:
'预实名账号'
},
{
dataIndex
:
'sign'
,
width
:
200
,
title
:
'签名'
},
{
dataIndex
:
'operation'
,
width
:
100
,
title
:
'操作'
,
scopedSlots
:
{
customRender
:
'operation'
},
fixed
:
"right"
}]
,
rowdata
:
parameter
=>
{
let
params
=
{
pageNo
:
parameter
.
pageNo
,
pageSize
:
parameter
.
pageSize
}
let
obj
=
cloneObject
(
this
.
queryParam
)
//表示
return
ysmUserList
(
Object
.
assign
(
params
,
obj
)).
then
(
res
=>
{
let
data
=
{}
if
(
res
.
state
!==
'success'
)
{
data
=
{
data
:
[],
pageSize
:
parameter
.
pageSize
,
pageNo
:
1
,
totalCount
:
0
}
}
else
{
data
=
{
data
:
res
.
data
.
records
,
pageSize
:
parameter
.
pageSize
,
pageNo
:
parameter
.
pageNo
,
totalCount
:
res
.
data
.
total
}
}
return
data
})
}
}
},
methods
:{
search
()
{
this
.
$refs
.
table
.
refresh
({
search
:
true
})
},
notThrough
(
id
,
status
)
{
ysmUserNotThrough
(
id
,{
status
}).
then
((
res
)
=>
{
if
(
res
.
state
==
"success"
){
this
.
$notification
.
success
({
message
:
res
.
data
,
description
:
''
,
duration
:
4
})
}
this
.
$refs
.
table
.
refresh
({
search
:
true
})
})
},
modifyfunction
(
data
){
if
(
data
!=
undefined
){
this
.
modelData
.
id
=
data
.
id
setTimeout
(()
=>
{
this
.
Formtable
.
setFieldsValue
({
"userName"
:
data
.
userName
,
"sign"
:
data
.
sign
})
},
0
)
this
.
add
=
false
;
}
this
.
modifyvisible
=
true
;
},
createfunctionOk
(){
let
that
=
this
;
that
.
Formtable
.
validateFields
([
'userName'
,
'sign'
],
{
force
:
true
},
(
err
,
values
)
=>
{
if
(
err
)
{
return
;
}
that
.
modelData
.
userName
=
values
.
userName
that
.
modelData
.
sign
=
values
.
sign
if
(
this
.
add
){
let
obj
=
that
.
modelData
;
delete
obj
.
id
let
ysmUser
=
JSON
.
stringify
(
obj
);
ysmUserInsert
({
ysmUser
}).
then
((
res
)
=>
{
this
.
modifyvisible
=
false
;
this
.
clearmodel
()
if
(
res
.
state
==
"success"
){
this
.
$notification
.
success
({
message
:
res
.
data
,
description
:
''
,
duration
:
4
})
}
this
.
search
()
})
}
else
{
let
obj
=
that
.
modelData
;
let
ysmUser
=
JSON
.
stringify
(
obj
);
ysmUserUpdate
({
ysmUser
}).
then
((
res
)
=>
{
this
.
modifyvisible
=
false
;
this
.
clearmodel
()
if
(
res
.
state
==
"success"
){
this
.
$notification
.
success
({
message
:
res
.
data
,
description
:
''
,
duration
:
4
})
}
this
.
search
()
})
}
})
},
createfunctionCancel
(){
this
.
modifyvisible
=
false
;
this
.
clearmodel
()
this
.
add
=
true
;
},
//清除弹窗信息
clearmodel
()
{
this
.
add
=
true
let
that
=
this
;
that
.
modelData
.
id
=
''
this
.
Formtable
.
setFieldsValue
({
userName
:
''
,
sign
:
''
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
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