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
72d7f3ba
Commit
72d7f3ba
authored
Feb 20, 2020
by
吴学德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
套餐管理
parent
16eea796
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
159 additions
and
11 deletions
+159
-11
public/UE/third-party/SyntaxHighlighter/shCore.js
+7
-7
public/js/jsencrypt.js
+1
-1
src/api/school-center/packageManagementAPI.js
+21
-0
src/api/school-center/schoolManagermentAPI.js
+5
-1
src/api/school-center/schoolpackageAPI.js
+1
-1
src/views/school-center/management/schoolmanagement.vue
+19
-1
src/views/school-center/packageManagement/package.vue
+105
-0
No files found.
public/UE/third-party/SyntaxHighlighter/shCore.js
View file @
72d7f3ba
...
...
@@ -2389,7 +2389,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
{
// Created by Peter Atoria @ http://iAtoria.com
var
inits
=
'class interface function package'
;
var
inits
=
'class interface function package
Management
'
;
var
keywords
=
'-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI '
+
'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape '
+
...
...
@@ -2926,7 +2926,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
// http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
var
keywords
=
'as assert break case catch class continue def default do else extends finally '
+
'if in implements import instanceof interface new package property return switch '
+
'if in implements import instanceof interface new package
Management
property return switch '
+
'throw throws try while public protected private static'
;
var
types
=
'void boolean byte char short int long float double'
;
var
constants
=
'null'
;
...
...
@@ -2977,7 +2977,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
'continue default do double else enum extends '
+
'false final finally float for goto if implements import '
+
'instanceof int interface long native new null '
+
'package private protected public return '
+
'package
Management
private protected public return '
+
'short static strictfp super switch synchronized this throw throws true '
+
'transient try void volatile while'
;
...
...
@@ -3023,7 +3023,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
var
keywords
=
'abstract after and as assert at before bind bound break catch class '
+
'continue def delete else exclusive extends false finally first for from '
+
'function if import in indexof init insert instanceof into inverse last '
+
'lazy mixin mod nativearray new not null on or override package postinit '
+
'lazy mixin mod nativearray new not null on or override package
Management
postinit '
+
'protected public public-init public-read replace return reverse sizeof '
+
'step super then this throw true try tween typeof var where while with '
+
'attribute let private readonly static trigger'
...
...
@@ -3119,7 +3119,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
var
keywords
=
'bless caller continue dbmclose dbmopen die do dump else elsif eval exit '
+
'for foreach goto if import last local my next no our package
redo ref '
+
'for foreach goto if import last local my next no our package
Management redo ref '
+
'require return sub tie tied unless untie until use wantarray while '
+
// feature
'given when default '
+
...
...
@@ -3143,7 +3143,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
{
regex
:
SyntaxHighlighter
.
regexLib
.
doubleQuotedString
,
css
:
'string'
},
{
regex
:
SyntaxHighlighter
.
regexLib
.
singleQuotedString
,
css
:
'string'
},
// currently ignoring single quote package separator and utf8 names
// currently ignoring single quote package
Management
separator and utf8 names
{
regex
:
/
(?:
&|
[
$@%*
]
|
\$
#
)[
a-zA-Z_
](\w
+|::
)
*/g
,
css
:
'variable'
},
{
regex
:
/
\b
__
(?:
END|DATA
)
__
\b[\s\S]
*$/g
,
css
:
'comments'
},
{
regex
:
/
(
^|
\n)
=
\w[\s\S]
*
?(\n
=cut
\s
*
\n
|$
)
/g
,
css
:
'comments'
},
// pod
...
...
@@ -3486,7 +3486,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
var
keywords
=
'val sealed case def true trait implicit forSome import match object null finally super '
+
'override try lazy for var catch throw type extends class while with new final yield abstract '
+
'else do if return protected private this package false'
;
'else do if return protected private this package
Management
false'
;
var
keyops
=
'[_:=><%#@]+'
;
...
...
public/js/jsencrypt.js
View file @
72d7f3ba
...
...
@@ -3290,7 +3290,7 @@ var KJUR = {};
* <p>
* This is ITU-T X.690 ASN.1 DER encoder class library and
* class structure and methods is very similar to
* org.bouncycastle.asn1 package of
* org.bouncycastle.asn1 package
Management
of
* well known BouncyCaslte Cryptography Library.
* <h4>PROVIDING ASN.1 PRIMITIVES</h4>
* Here are ASN.1 DER primitive classes.
...
...
src/api/school-center/packageManagementAPI.js
0 → 100644
View file @
72d7f3ba
import
{
postAction
,
getAotion
}
from
'@/api/manage'
const
prefix
=
'/schoolcenter/ciop'
;
// 获取活动列表
let
findByList
=
(
params
)
=>
postAction
(
prefix
+
"/packageManagement/package/list"
,
params
);
// 回显选择的套餐
let
choosepages
=
(
params
)
=>
postAction
(
prefix
+
"/packageManagement/package/choosepages"
,
params
);
// 编辑
let
modify
=
(
params
)
=>
postAction
(
prefix
+
"/packageManagement/package/update"
,
params
);
//新增
let
insert
=
(
params
)
=>
postAction
(
prefix
+
"/packageManagement/package/insert"
,
params
);
//隐藏状态
let
hidestatus
=
(
params
)
=>
postAction
(
prefix
+
"/packageManagement/package/hidestatus"
,
params
);
export
{
findByList
,
choosepages
,
modify
,
insert
,
hidestatus
}
\ No newline at end of file
src/api/school-center/schoolManagermentAPI.js
View file @
72d7f3ba
...
...
@@ -12,6 +12,9 @@ let modify = (params) => postAction(prefix + "/school/schoolManagement/update" ,
//新增
let
insert
=
(
params
)
=>
postAction
(
prefix
+
"/school/schoolManagement/insert"
,
params
);
//隐藏状态
let
hidestatus
=
(
params
)
=>
postAction
(
prefix
+
"/school/schoolManagement/hidestatus"
,
params
);
export
{
findByList
,
choosepages
,
modify
,
insert
findByList
,
choosepages
,
modify
,
insert
,
hidestatus
}
\ No newline at end of file
src/api/school-center/schoolpackageAPI.js
View file @
72d7f3ba
...
...
@@ -2,7 +2,7 @@ import {postAction,getAotion} from '@/api/manage'
const
prefix
=
'/schoolcenter/ciop'
;
// 获取活动列表
let
packagefindByList
=
(
params
)
=>
postAction
(
prefix
+
"/school/package/list"
,
params
);
let
packagefindByList
=
(
params
)
=>
postAction
(
prefix
+
"/school/package
Management
/list"
,
params
);
export
{
packagefindByList
...
...
src/views/school-center/management/schoolmanagement.vue
View file @
72d7f3ba
...
...
@@ -135,7 +135,7 @@
<
script
>
import
STable
from
'@/components/table'
;
import
{
findByList
,
choosepages
,
modify
,
insert
}
from
"@/api/school-center/schoolManagermentAPI"
import
{
findByList
,
choosepages
,
modify
,
insert
,
hidestatus
}
from
"@/api/school-center/schoolManagermentAPI"
import
{
cloneObject
}
from
'@/utils/util'
;
export
default
{
name
:
"schoolmanagement"
,
...
...
@@ -245,6 +245,24 @@
}
},
methods
:{
delet
(
deletdata
){
let
status
=
0
;
if
(
deletdata
.
status
==
0
){
status
=
1
}
let
parent
=
{
id
:
deletdata
.
id
,
status
:
status
}
hidestatus
(
parent
).
then
(
res
=>
{
if
(
res
.
state
==
"success"
){
this
.
$message
.
success
(
res
.
data
?
res
.
data
:
'修改成功!'
,
5
);
this
.
search
();
return
null
}
this
.
$message
.
error
(
res
.
data
?
res
.
data
:
'修改失败!'
,
5
);
})
},
chosePagesfunction
(
data
){
this
.
chosePages
=
data
},
...
...
src/views/school-center/packageManagement/package.vue
0 → 100644
View file @
72d7f3ba
<
template
>
<div
class=
"flex-container"
>
<!-- 查询区域 -->
<div
class=
"table-page-search-wrapper"
>
<!-- 搜索区域 -->
<a-form
layout=
"inline"
>
<a-row
:gutter=
"24"
>
<a-col
:md=
"4"
:sm=
"12"
>
<a-form-item
label=
"套餐名称"
>
<a-input
placeholder=
"套餐名称"
v-model=
"queryParam.name"
></a-input>
</a-form-item>
</a-col>
<span
class=
"table-page-search-submitButtons"
style=
"float: left; overflow: hidden;"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
<a-divider
type=
"vertical"
/>
<a-button
@
click=
"add()"
type=
"primary"
>
添加
</a-button>
</a-col>
</span>
</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"
>
<a
>
编辑
</a>
</
template
>
</s-table>
</div>
</template>
<
script
>
import
STable
from
'@/components/table'
;
import
{
findByList
,
choosepages
,
modify
,
insert
,
hidestatus
}
from
"@/api/school-center/packageManagementAPI"
import
{
cloneObject
}
from
'@/utils/util'
;
export
default
{
name
:
"package"
,
components
:
{
STable
,
},
data
:
function
()
{
return
{
//输入框列表
queryParam
:
{
name
:
''
,
},
columns
:
[
{
dataIndex
:
'packageName'
,
width
:
200
,
title
:
'学校名称'
,
align
:
"center"
},
{
dataIndex
:
'monthFee'
,
width
:
200
,
title
:
'学校名称'
,
align
:
"center"
},
{
dataIndex
:
'flow'
,
width
:
200
,
title
:
'学校名称'
,
align
:
"center"
},
{
dataIndex
:
'voice'
,
width
:
200
,
title
:
'学校名称'
,
align
:
"center"
},
{
dataIndex
:
'operation'
,
width
:
100
,
title
:
'操作'
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
'operation'
},
fixed
:
"right"
}]
,
rowdata
:
parameter
=>
{
let
params
=
{
pageNo
:
parameter
.
pageNo
,
pageSize
:
parameter
.
pageSize
}
//表示
let
obj
=
cloneObject
(
this
.
queryParam
)
return
findByList
(
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
})
},
}
}
</
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