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
b91c9401
Commit
b91c9401
authored
Feb 17, 2020
by
吴学德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学校管理编辑
parent
fd636408
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
89 additions
and
15 deletions
+89
-15
src/views/school-center/management/schoolmanagement.vue
+89
-15
No files found.
src/views/school-center/management/schoolmanagement.vue
View file @
b91c9401
...
...
@@ -15,7 +15,7 @@
<a-input
placeholder=
"学校名称"
></a-input>
</a-form-item>
</a-col>
<a-col
:md=
"
4"
:sm=
"10
"
>
<a-col
:md=
"
6"
:sm=
"12
"
>
<a-form-item
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="老客户升级页面 ">
<a-select
placeholder=
"请选择"
v-model=
"queryParam.status"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
...
...
@@ -24,7 +24,7 @@
</a-select>
</a-form-item>
</a-col>
<a-col
:md=
"
4"
:sm=
"10
"
>
<a-col
:md=
"
6"
:sm=
"12
"
>
<a-form-item
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="新装融合 ">
<a-select
placeholder=
"请选择"
v-model=
"queryParam.netType"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
...
...
@@ -55,11 +55,11 @@
</span>
</
template
>
<
template
slot=
"operation"
slot-scope=
"text,record"
>
<a
@
click=
"modify
YellowList
(record)"
>
编辑
</a>
<a
@
click=
"modify
function
(record)"
>
编辑
</a>
<span
v-if=
"record.status=='1'"
>
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
"是否
显示
老客户?"
@
confirm=
"delet(record)"
>
<a>
显示
老客户
</a>
<a-popconfirm
title=
"是否
隐藏
老客户?"
@
confirm=
"delet(record)"
>
<a>
隐藏
老客户
</a>
</a-popconfirm>
</span>
<span
v-else
>
...
...
@@ -72,6 +72,42 @@
</
template
>
</s-table>
<!--编辑----弹框-->
<a-modal
title=
"编辑学校"
: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-select
placeholder=
"请选择"
v-decorator=
"[ 'subName', {rules: [{ required: true, message: '县分不能为空!' ,whitespace:true}]} ]"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
v-for=
"data in subNameList"
:key=
"data"
>
{{ data}}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"学校名称"
>
<a-input
placeholder=
"学校名称"
v-decorator=
"[ 'schoolName', {rules: [{ required: true, message: '学校名称不能为空!' ,whitespace:true}]} ]"
></a-input>
</a-form-item>
<a-form-item
:labelCol=
"{span: 5}"
: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-form-item>
<a-form-item
:labelCol=
"{span: 5}"
: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-form-item>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"揽装工号"
>
<a-input
placeholder=
"网点id(合伙人id)"
v-decorator=
"[ 'remark', {rules: [{ required: false, message: '黄名单的备注不能为空!' ,whitespace:true}]} ]"
></a-input>
</a-form-item>
<a-form-item
:labelCol=
"{span: 5}"
: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-form-item>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"是否显示0息购机"
>
<a-input
placeholder=
"网点id(合伙人id)"
v-decorator=
"[ 'remark', {rules: [{ required: false, message: '黄名单的备注不能为空!' ,whitespace:true}]} ]"
></a-input>
</a-form-item>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"是否显示融合办理"
>
<a-input
placeholder=
"网点id(合伙人id)"
v-decorator=
"[ 'remark', {rules: [{ required: false, message: '黄名单的备注不能为空!' ,whitespace:true}]} ]"
></a-input>
</a-form-item>
</a-form>
</a-modal>
</div>
</template>
...
...
@@ -84,24 +120,40 @@
components
:
{
STable
,
},
data
()
{
data
:
function
()
{
return
{
// form
Formtable
:
this
.
$form
.
createForm
(
this
,
{
name
:
'Formtable'
}),
modifyForm
:
{
subName
:
''
,
status
:
''
,
schoolName
:
''
,
netType
:
''
,
},
subNameList
:
[],
//输入框列表
queryParam
:
{
subName
:
''
,
status
:
''
,
schoolName
:
''
,
netType
:
''
,
subName
:
''
,
status
:
''
,
schoolName
:
''
,
netType
:
''
,
},
modifyvisible
:
false
,
columns
:
[
{
dataIndex
:
'schoolName'
,
width
:
200
,
title
:
'县分'
,
align
:
"center"
},
{
dataIndex
:
'subName'
,
width
:
200
,
title
:
'学校名称'
,
align
:
"center"
},
{
dataIndex
:
'status'
,
width
:
200
,
title
:
'是否显示老客户升级页面 '
,
scopedSlots
:
{
customRender
:
'statusDefault'
},
align
:
"center"
},
{
dataIndex
:
'subName'
,
width
:
200
,
title
:
'县分'
,
align
:
"center"
},
{
dataIndex
:
'schoolName'
,
width
:
200
,
title
:
'学校名称'
,
align
:
"center"
},
{
dataIndex
:
'status'
,
width
:
200
,
title
:
'是否显示老客户升级页面 '
,
scopedSlots
:
{
customRender
:
'statusDefault'
},
align
:
"center"
},
{
dataIndex
:
'operation'
,
width
:
100
,
title
:
'操作'
,
align
:
"center"
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
'operation'
},
fixed
:
"right"
}]
...
...
@@ -113,7 +165,7 @@
}
//表示
let
obj
=
cloneObject
(
this
.
queryParam
)
return
findByList
(
Object
.
assign
(
params
,
obj
)).
then
(
res
=>
{
return
findByList
(
Object
.
assign
(
params
,
obj
)).
then
(
res
=>
{
let
data
=
{}
if
(
res
.
state
!==
'success'
)
{
data
=
{
...
...
@@ -129,6 +181,12 @@
pageNo
:
parameter
.
pageNo
,
totalCount
:
res
.
data
.
total
}
//获取县分
let
datalength
=
res
.
data
.
records
.
length
res
.
data
.
records
[
datalength
-
1
].
subNameList
.
forEach
(
vak
=>
{
this
.
subNameList
.
push
(
vak
)
})
}
return
data
})
...
...
@@ -139,6 +197,22 @@
search
()
{
this
.
$refs
.
table
.
refresh
({
search
:
true
})
},
modifyfunction
(
data
){
setTimeout
(()
=>
{
this
.
Formtable
.
setFieldsValue
({
subName
:
data
.
subName
,
schoolName
:
data
.
schoolName
})
},
0
)
this
.
modifyvisible
=
true
;
},
createfunctionOk
(){
},
createfunctionCancel
(){
this
.
modifyvisible
=
false
;
}
}
}
</
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