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
a840a1f8
Commit
a840a1f8
authored
Feb 17, 2020
by
吴学德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学校管理编辑
parent
b91c9401
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
86 additions
and
24 deletions
+86
-24
src/api/school-center/schoolpackageAPI.js
+10
-0
src/views/school-center/management/schoolmanagement.vue
+76
-24
No files found.
src/api/school-center/schoolpackageAPI.js
0 → 100644
View file @
a840a1f8
import
{
postAction
,
getAotion
}
from
'@/api/manage'
const
prefix
=
'/schoolcenter/ciop'
;
// 获取活动列表
let
packagefindByList
=
(
params
)
=>
postAction
(
prefix
+
"/school/package/list"
,
params
);
export
{
packagefindByList
}
\ No newline at end of file
src/views/school-center/management/schoolmanagement.vue
View file @
a840a1f8
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
<a-row
:gutter=
"24"
>
<a-row
:gutter=
"24"
>
<a-col
:md=
"4"
:sm=
"12"
>
<a-col
:md=
"4"
:sm=
"12"
>
<a-form-item
label=
"县分:"
>
<a-form-item
label=
"县分:"
>
<a-input
placeholder=
"县分"
></a-input>
<a-input
placeholder=
"县分"
v-model=
"queryParam.subName"
></a-input>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:md=
"4"
:sm=
"12"
>
<a-col
:md=
"4"
:sm=
"12"
>
<a-form-item
label=
"学校名称"
>
<a-form-item
label=
"学校名称"
>
<a-input
placeholder=
"学校名称"
></a-input>
<a-input
placeholder=
"学校名称"
v-model=
"queryParam.schoolName"
></a-input>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:md=
"6"
:sm=
"12"
>
<a-col
:md=
"6"
:sm=
"12"
>
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<!--编辑----弹框-->
<!--编辑----弹框-->
<a-modal
title=
"编辑学校"
:visible=
"modifyvisible"
@
ok=
"createfunctionOk"
@
cancel=
"createfunctionCancel"
html-type=
"submit"
width=
"1024px"
>
<a-modal
title=
"编辑学校"
:visible=
"modifyvisible"
@
ok=
"createfunctionOk"
@
cancel=
"createfunctionCancel"
html-type=
"submit"
width=
"1024px"
>
<a-form
:form=
"Formtable"
>
<a-form
:form=
"Formtable"
>
<a-form-item
:labelCol=
"{span:
5
}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"县分"
>
<a-form-item
:labelCol=
"{span:
6
}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"县分"
>
<a-select
placeholder=
"请选择"
v-decorator=
"[ 'subName', {rules: [{ required: true, message: '县分不能为空!' ,whitespace:true}]} ]"
>
<a-select
placeholder=
"请选择"
v-decorator=
"[ 'subName', {rules: [{ required: true, message: '县分不能为空!' ,whitespace:true}]} ]"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
v-for=
"data in subNameList"
:key=
"data"
>
<a-select-option
v-for=
"data in subNameList"
:key=
"data"
>
...
@@ -84,27 +84,53 @@
...
@@ -84,27 +84,53 @@
</a-select-option>
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"{span:
5
}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"学校名称"
>
<a-form-item
:labelCol=
"{span:
6
}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"学校名称"
>
<a-input
placeholder=
"学校名称"
v-decorator=
"[ 'schoolName', {rules: [{ required: true, message: '学校名称不能为空!' ,whitespace:true}]} ]"
></a-input>
<a-input
placeholder=
"学校名称"
v-decorator=
"[ 'schoolName', {rules: [{ required: true, message: '学校名称不能为空!' ,whitespace:true}]} ]"
></a-input>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"{span:
5
}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"单宽学校名称"
>
<a-form-item
:labelCol=
"{span:
6
}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"单宽学校名称"
>
<a-input
placeholder=
"单宽学校名称"
v-decorator=
"[ 'number', {rules: [{ required: true, message: '输入格式不正确!' ,whitespace:true,pattern:'^(([0-9]{8})|(1[0-9]{10}))$'}]} ]"
></a-input>
<a-input
placeholder=
"单宽学校名称"
v-decorator=
"[ 'number', {rules: [{ required: true, message: '输入格式不正确!' ,whitespace:true,pattern:'^(([0-9]{8})|(1[0-9]{10}))$'}]} ]"
></a-input>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"{span:
5
}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"网点id(合伙人id)"
>
<a-form-item
:labelCol=
"{span:
6
}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"网点id(合伙人id)"
>
<a-input
placeholder=
"网点id(合伙人id)"
v-decorator=
"[ '
remark', {rules: [{ required: false, message: '黄名单的备注
不能为空!' ,whitespace:true}]} ]"
></a-input>
<a-input
placeholder=
"网点id(合伙人id)"
v-decorator=
"[ '
netId', {rules: [{ required: true, message: '网点id
不能为空!' ,whitespace:true}]} ]"
></a-input>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"{span:
5
}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"揽装工号"
>
<a-form-item
:labelCol=
"{span:
6
}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"揽装工号"
>
<a-input
placeholder=
"
网点id(合伙人id)"
v-decorator=
"[ 'remark', {rules: [{ required: fals
e, message: '黄名单的备注不能为空!' ,whitespace:true}]} ]"
></a-input>
<a-input
placeholder=
"
揽装工号"
v-decorator=
"[ 'lzgh', {rules: [{ required: tru
e, message: '黄名单的备注不能为空!' ,whitespace:true}]} ]"
></a-input>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"是否显示宽带办理"
>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"是否显示宽带办理"
>
<a-input
placeholder=
"单宽学校名称"
v-decorator=
"[ 'number', {rules: [{ required: true, message: '输入格式不正确!' ,whitespace:true,pattern:'^(([0-9]{8})|(1[0-9]{10}))$'}]} ]"
></a-input>
<a-radio-group
v-decorator=
"['isShowband']"
>
<a-radio
value=
"0"
>
不显示
</a-radio>
<a-radio
value=
"1"
>
显示
</a-radio>
</a-radio-group>
</a-form-item>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"是否显示0息购机"
>
<a-radio-group
v-decorator=
"['netPhone']"
>
<a-radio
value=
"0"
>
不显示
</a-radio>
<a-radio
value=
"1"
>
显示
</a-radio>
</a-radio-group>
</a-form-item>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"是否显示融合办理"
>
<a-radio-group
v-decorator=
"['isShowrh']"
>
<a-radio
value=
"0"
>
不显示
</a-radio>
<a-radio
value=
"1"
>
显示
</a-radio>
</a-radio-group>
</a-form-item>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"是否已收到电信卡"
>
<a-radio-group
v-decorator=
"['isRecv']"
>
<a-radio
value=
"0"
>
否
</a-radio>
<a-radio
value=
"1"
>
是
</a-radio>
</a-radio-group>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"{span:
5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"是否显示0息购机
"
>
<a-form-item
:labelCol=
"{span:
6}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"客户二维码
"
>
<
a-input
placeholder=
"网点id(合伙人id)"
v-decorator=
"[ 'remark', {rules: [{ required: false, message: '黄名单的备注不能为空!' ,whitespace:true}]} ]"
></a-input
>
<
img
:src=
"customimg"
style=
"width: 150px"
>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"是否显示融合办理"
>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 12, offset: 1}"
label=
"套餐选择"
>
<a-input
placeholder=
"网点id(合伙人id)"
v-decorator=
"[ 'remark', {rules: [{ required: false, message: '黄名单的备注不能为空!' ,whitespace:true}]} ]"
></a-input>
<a-row>
<a-col
:span=
"8"
v-for=
"data in packageName"
><a-checkbox
:value=
"data"
>
{{data}}
</a-checkbox></a-col>
</a-row>
</a-form-item>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 12, offset: 1}"
label=
"二维码默认办理卡品"
>
<a-radio-group
:options=
"taochangName"
/>
</a-form-item>
</a-form-item>
</a-form>
</a-form>
</a-modal>
</a-modal>
...
@@ -124,13 +150,18 @@
...
@@ -124,13 +150,18 @@
return
{
return
{
// form
// form
Formtable
:
this
.
$form
.
createForm
(
this
,
{
name
:
'Formtable'
}),
Formtable
:
this
.
$form
.
createForm
(
this
,
{
name
:
'Formtable'
}),
customimg
:
""
,
modifyForm
:
{
modifyForm
:
{
subName
:
''
,
subName
:
''
,
status
:
''
,
status
:
''
,
schoolName
:
''
,
schoolName
:
''
,
netType
:
''
,
netType
:
''
,
isShowband
:
"0"
},
},
subNameList
:
[],
subNameList
:
[],
packageName
:[],
taochangName
:[],
checkboxdata
:[],
//输入框列表
//输入框列表
queryParam
:
{
queryParam
:
{
subName
:
''
,
subName
:
''
,
...
@@ -181,16 +212,11 @@
...
@@ -181,16 +212,11 @@
pageNo
:
parameter
.
pageNo
,
pageNo
:
parameter
.
pageNo
,
totalCount
:
res
.
data
.
total
totalCount
:
res
.
data
.
total
}
}
//获取县分
let
datalength
=
res
.
data
.
records
.
length
res
.
data
.
records
[
datalength
-
1
].
subNameList
.
forEach
(
vak
=>
{
this
.
subNameList
.
push
(
vak
)
})
}
}
return
data
return
data
})
})
}
},
packagedata
:
""
}
}
},
},
methods
:{
methods
:{
...
@@ -198,13 +224,34 @@
...
@@ -198,13 +224,34 @@
this
.
$refs
.
table
.
refresh
({
search
:
true
})
this
.
$refs
.
table
.
refresh
({
search
:
true
})
},
},
modifyfunction
(
data
){
modifyfunction
(
data
){
data
.
subNameList
.
forEach
((
key
)
=>
{
this
.
subNameList
.
push
(
key
.
subNameList
)
})
data
.
packageName
.
forEach
((
key
)
=>
{
this
.
packageName
.
push
(
key
.
packageName
)
this
.
taochangName
.
push
(
key
.
name
)
})
let
showband
=
"0"
if
(
data
.
isShowband
==
"1"
){
showband
=
data
.
isShowband
}
let
isShowrh
=
"0"
if
(
data
.
isShowrh
==
"1"
){
isShowrh
=
data
.
isShowrh
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
Formtable
.
setFieldsValue
({
this
.
Formtable
.
setFieldsValue
({
subName
:
data
.
subName
,
subName
:
data
.
subName
,
schoolName
:
data
.
schoolName
schoolName
:
data
.
schoolName
,
netId
:
data
.
netId
,
lzgh
:
data
.
lzgh
,
isShowband
:
showband
,
netPhone
:
new
String
(
data
.
netPhone
).
toString
(),
isShowrh
:
isShowrh
,
isRecv
:
new
String
(
data
.
isRecv
).
toString
(),
})
})
},
0
)
},
0
)
this
.
customimg
=
"./img/custom"
+
data
.
serviceQrcode
this
.
modifyvisible
=
true
;
this
.
modifyvisible
=
true
;
},
},
createfunctionOk
(){
createfunctionOk
(){
...
@@ -212,7 +259,12 @@
...
@@ -212,7 +259,12 @@
},
},
createfunctionCancel
(){
createfunctionCancel
(){
this
.
modifyvisible
=
false
;
this
.
modifyvisible
=
false
;
this
.
packageName
=
[]
this
.
taochangName
=
[]
this
.
subNameList
=
[]
}
}
},
created
(){
}
}
}
}
</
script
>
</
script
>
...
...
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