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
99488060
Commit
99488060
authored
Feb 18, 2020
by
黄森林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大学宽带信息管理功能完成
parent
f174e037
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
src/api/school-center/productAPI.js
+13
-2
src/views/school-center/product/product.vue
+8
-1
src/views/school-center/university/university.vue
+0
-0
No files found.
src/api/school-center/productAPI.js
View file @
99488060
import
{
postAction
,
getAotion
}
from
'@/api/manage'
const
prefix
=
'/schoolcenter/ciop'
;
//
获取活动列表
//
宽带产品
let
productList
=
(
params
)
=>
postAction
(
prefix
+
"/product/list"
,
params
);
let
productDelete
=
(
id
)
=>
postAction
(
prefix
+
"/product/delete/"
+
id
);
let
productInsert
=
(
params
)
=>
postAction
(
prefix
+
"/product/insert"
,
params
);
let
productUpdate
=
(
params
)
=>
postAction
(
prefix
+
"/product/update"
,
params
);
//大学宽带信息
let
universityList
=
(
params
)
=>
postAction
(
prefix
+
"/university/list"
,
params
);
let
universityDelete
=
(
id
)
=>
postAction
(
prefix
+
"/university/delete/"
+
id
);
let
universityInsert
=
(
params
)
=>
postAction
(
prefix
+
"/university/insert"
,
params
);
let
universityUpdate
=
(
params
)
=>
postAction
(
prefix
+
"/university/update"
,
params
);
export
{
productList
,
productDelete
,
productInsert
,
productUpdate
productUpdate
,
universityList
,
universityDelete
,
universityInsert
,
universityUpdate
}
\ No newline at end of file
src/views/school-center/product/product.vue
View file @
99488060
...
...
@@ -35,6 +35,9 @@
<
template
slot=
"productCreateTime"
slot-scope=
"text"
>
{{
text
|
dayjs
}}
</
template
>
<
template
slot=
"text"
slot-scope=
"text"
>
<p
style=
"white-space: pre-line;"
>
{{
text
}}
</p>
</
template
>
<
template
slot=
"productState"
slot-scope=
"text"
>
<p
v-if=
"text=='0'"
>
正常
</p>
<p
v-else=
""
></p>
...
...
@@ -125,9 +128,11 @@
{
dataIndex
:
'productLastUpdateTime'
,
width
:
200
,
title
:
'更新时间 '
,
scopedSlots
:
{
customRender
:
'productLastUpdateTime'
}},
{
dataIndex
:
'productCreateTime'
,
width
:
200
,
title
:
'创建时间 '
,
scopedSlots
:
{
customRender
:
'productCreateTime'
}},
{
dataIndex
:
'productState'
,
width
:
200
,
title
:
'状态 '
,
scopedSlots
:
{
customRender
:
'productState'
}},
{
dataIndex
:
'productMealPrice'
,
width
:
200
,
title
:
'套餐情况 '
},
{
dataIndex
:
'productMealPrice'
,
width
:
200
,
title
:
'套餐情况 '
,
scopedSlots
:
{
customRender
:
'text'
}
},
{
dataIndex
:
'productRate'
,
width
:
200
,
title
:
'包年包月情况 '
},
{
dataIndex
:
'productMeal'
,
width
:
200
,
title
:
'宽带速率 '
},
/* {dataIndex: 'productIntroduction', width: 200, title: '产品情况 ', scopedSlots: {customRender: 'text'}},
{dataIndex: 'productSetMealIntroduction', width: 200, title: '资费介绍 ', scopedSlots: {customRender: 'text'}},*/
{
dataIndex
:
'operation'
,
width
:
100
,
...
...
@@ -212,6 +217,7 @@
let
product
=
JSON
.
stringify
(
obj
);
productInsert
({
product
}).
then
((
res
)
=>
{
this
.
modifyvisible
=
false
;
this
.
clearmodel
()
this
.
$notification
.
success
({
message
:
res
.
data
,
description
:
''
,
duration
:
4
})
this
.
search
()
})
...
...
@@ -220,6 +226,7 @@
let
product
=
JSON
.
stringify
(
obj
);
productUpdate
({
product
}).
then
((
res
)
=>
{
this
.
modifyvisible
=
false
;
this
.
clearmodel
()
this
.
$notification
.
success
({
message
:
res
.
data
,
description
:
''
,
duration
:
4
})
this
.
search
()
})
...
...
src/views/school-center/university/university.vue
0 → 100644
View file @
99488060
This diff is collapsed.
Click to expand it.
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