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
844a04a6
Commit
844a04a6
authored
Oct 27, 2020
by
罗承锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改充值列表查询超时问题、修改校园页面按钮为树形
parent
098d0e42
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
132 additions
and
32 deletions
+132
-32
src/api/school-center/salesOrderLists/salesCensusAPI.js
+2
-2
src/views/school-center/schoolmanager/schoolmanagement.vue
+130
-30
No files found.
src/api/school-center/salesOrderLists/salesCensusAPI.js
View file @
844a04a6
import
{
postAction
,
downFilePost
}
from
'@/api/manage'
import
{
postAction
,
downFilePost
,
longTimePostAction
}
from
'@/api/manage'
const
prefix
=
'/manager/ciop'
;
const
prefix
=
'/manager/ciop'
;
//获取县分下拉列表
//获取县分下拉列表
...
@@ -6,7 +6,7 @@ let initSubstName = (params) => postAction(prefix + "/newUser/initSubstName" , p
...
@@ -6,7 +6,7 @@ let initSubstName = (params) => postAction(prefix + "/newUser/initSubstName" , p
//获取学校下拉列表
//获取学校下拉列表
let
getSchoolNames
=
(
params
)
=>
postAction
(
prefix
+
"/newUser/getSchoolNames"
,
params
);
let
getSchoolNames
=
(
params
)
=>
postAction
(
prefix
+
"/newUser/getSchoolNames"
,
params
);
// 获取充值达标列表
// 获取充值达标列表
let
getList
=
(
params
)
=>
p
ostAction
(
prefix
+
"/saleCensus/list"
,
params
);
let
getList
=
(
params
)
=>
longTimeP
ostAction
(
prefix
+
"/saleCensus/list"
,
params
);
// 导出放号充值达标清单
// 导出放号充值达标清单
let
exportOut
=
(
params
)
=>
downFilePost
(
prefix
+
"/saleCensus/exportList"
,
params
);
let
exportOut
=
(
params
)
=>
downFilePost
(
prefix
+
"/saleCensus/exportList"
,
params
);
...
...
src/views/school-center/schoolmanager/schoolmanagement.vue
View file @
844a04a6
...
@@ -113,29 +113,43 @@
...
@@ -113,29 +113,43 @@
<a-input
placeholder=
"揽装工号"
v-decorator=
"[ 'lzgh' ]"
></a-input>
<a-input
placeholder=
"揽装工号"
v-decorator=
"[ 'lzgh' ]"
></a-input>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"是否显示宽带办理"
>
<!-- <a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="是否显示宽带办理">-->
<a-radio-group
v-decorator=
"['isShowband']"
>
<!-- <a-radio-group v-decorator="['isShowband']">-->
<a-radio
value=
"0"
>
不显示
</a-radio>
<!-- <a-radio value="0">不显示</a-radio>-->
<a-radio
value=
"1"
>
显示
</a-radio>
<!-- <a-radio value="1">显示</a-radio>-->
</a-radio-group>
<!-- </a-radio-group>-->
</a-form-item>
<!-- </a-form-item>-->
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"是否显示0息购机"
>
<!-- <a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="是否显示0息购机">-->
<a-radio-group
v-decorator=
"['netPhone']"
>
<!-- <a-radio-group v-decorator="['netPhone']">-->
<a-radio
value=
"0"
>
不显示
</a-radio>
<!-- <a-radio value="0">不显示</a-radio>-->
<a-radio
value=
"1"
>
显示
</a-radio>
<!-- <a-radio value="1">显示</a-radio>-->
</a-radio-group>
<!-- </a-radio-group>-->
</a-form-item>
<!-- </a-form-item>-->
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"是否显示融合办理"
>
<!-- <a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="是否显示融合办理">-->
<a-radio-group
v-decorator=
"['isShowrh']"
>
<!-- <a-radio-group v-decorator="['isShowrh']">-->
<a-radio
value=
"0"
>
不显示
</a-radio>
<!-- <a-radio value="0">不显示</a-radio>-->
<a-radio
value=
"1"
>
显示
</a-radio>
<!-- <a-radio value="1">显示</a-radio>-->
</a-radio-group>
<!-- </a-radio-group>-->
</a-form-item>
<!-- </a-form-item>-->
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"是否已收到电信卡"
>
<!-- <a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="是否已收到电信卡">-->
<a-radio-group
v-decorator=
"['isRecv']"
>
<!-- <a-radio-group v-decorator="['isRecv']">-->
<a-radio
value=
"0"
>
否
</a-radio>
<!-- <a-radio value="0">否</a-radio>-->
<a-radio
value=
"1"
>
是
</a-radio>
<!-- <a-radio value="1">是</a-radio>-->
</a-radio-group>
<!-- </a-radio-group>-->
<!-- </a-form-item>-->
<a-form-item
label=
"按钮配置"
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 18, offset: 1}"
>
<
template
>
<a-tree
v-model=
"checkedKeys"
checkable
:expanded-keys=
"expandedKeys"
:auto-expand-parent=
"autoExpandParent"
:selected-keys=
"selectedKeys"
:tree-data=
"treeData"
@
expand=
"onExpand"
@
select=
"onSelect"
/>
</
template
>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"客户二维码"
>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"客户二维码"
>
<a-upload
<a-upload
...
@@ -173,7 +187,6 @@
...
@@ -173,7 +187,6 @@
<
script
>
<
script
>
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
ACCESS_TOKEN
}
from
"@/store/mutation-types"
import
{
ACCESS_TOKEN
}
from
"@/store/mutation-types"
import
STable
from
'@/components/table'
;
import
STable
from
'@/components/table'
;
import
{
findByList
,
choosepages
,
modify
,
insert
,
hidestatus
}
from
"@/api/school-center/schoolManagermentAPI"
import
{
findByList
,
choosepages
,
modify
,
insert
,
hidestatus
}
from
"@/api/school-center/schoolManagermentAPI"
import
{
cloneObject
}
from
'@/utils/util'
;
import
{
cloneObject
}
from
'@/utils/util'
;
...
@@ -214,6 +227,66 @@
...
@@ -214,6 +227,66 @@
isRecv
:
""
,
isRecv
:
""
,
chosePages
:
""
chosePages
:
""
},
},
expandedKeys
:
[
'tcsj'
,
'xywbl'
,
'process'
],
autoExpandParent
:
true
,
checkedKeys
:
[],
selectedKeys
:
[],
treeData
:
[{
title
:
"首页按钮"
,
key
:
"main"
,
children
:
[{
title
:
"手机卡办理"
,
key
:
"openmobile"
,
},{
title
:
"套餐升级"
,
key
:
"tcsj"
,
children
:
[{
title
:
"手机卡套餐升级"
,
key
:
"sjktcsj"
,
},{
title
:
"毕业生宽带优惠"
,
key
:
"byskdyh"
,
}]
},{
title
:
"校园网办理"
,
key
:
"xywbl"
,
children
:
[{
title
:
"普通校园网"
,
key
:
"isShowband"
,
},{
title
:
"高速校园网"
,
key
:
"isShowrh"
,
},{
title
:
"是否甩单"
,
key
:
"sfsj"
,
}]
},{
title
:
"校园网提速"
,
key
:
"xywts"
,
children
:
[{
title
:
"是否甩单"
,
key
:
"tssfsd"
,
}]
},{
title
:
"优惠购机"
,
key
:
"yhgj"
,
}]
},{
title
:
"流程按钮"
,
key
:
"process"
,
children
:
[{
title
:
"0息购机"
,
key
:
"netPhone"
,
},{
title
:
"线上线下"
,
key
:
"online"
,
},{
title
:
"是否已收到电信卡"
,
key
:
"isRecv"
,
}]
}],
subNames
:
[],
subNames
:
[],
schoolNames
:
[],
schoolNames
:
[],
subNameList
:
[],
subNameList
:
[],
...
@@ -304,6 +377,11 @@
...
@@ -304,6 +377,11 @@
}
}
}
}
},
},
watch
:
{
checkedKeys
(
val
)
{
console
.
log
(
'checkedKeys'
,
val
);
},
},
methods
:{
methods
:{
getuuid
()
{
getuuid
()
{
return
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
.
replace
(
/
[
xy
]
/g
,
function
(
c
)
{
return
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
.
replace
(
/
[
xy
]
/g
,
function
(
c
)
{
...
@@ -340,8 +418,16 @@
...
@@ -340,8 +418,16 @@
}
}
},
},
onExpand
(
expandedKeys
)
{
this
.
expandedKeys
=
expandedKeys
;
this
.
autoExpandParent
=
false
;
},
onCheck
(
checkedKeys
)
{
this
.
checkedKeys
=
checkedKeys
;
},
onSelect
(
selectedKeys
,
info
)
{
this
.
selectedKeys
=
selectedKeys
;
},
delet
(
deletdata
){
delet
(
deletdata
){
let
status
=
0
;
let
status
=
0
;
if
(
deletdata
.
status
==
0
){
if
(
deletdata
.
status
==
0
){
...
@@ -381,6 +467,8 @@
...
@@ -381,6 +467,8 @@
this
.
modifyvisible
=
true
;
this
.
modifyvisible
=
true
;
},
},
modifyfunction
(
data
){
modifyfunction
(
data
){
// 清空编辑选中内容
this
.
checkedKeys
=
[];
//初始化
//初始化
this
.
titleName
=
"编辑学校"
this
.
titleName
=
"编辑学校"
let
choosepagespare
=
{
let
choosepagespare
=
{
...
@@ -431,6 +519,18 @@
...
@@ -431,6 +519,18 @@
networkName
:
data
.
networkName
,
networkName
:
data
.
networkName
,
networkCode
:
data
.
networkCode
networkCode
:
data
.
networkCode
})
})
if
(
data
.
isShowrh
==
1
)
{
this
.
checkedKeys
.
push
(
"isShowrh"
);
}
if
(
data
.
isRecv
==
1
)
{
this
.
checkedKeys
.
push
(
"isRecv"
);
}
if
(
data
.
isShowband
==
1
)
{
this
.
checkedKeys
.
push
(
"isShowband"
);
}
if
(
data
.
netPhone
==
1
)
{
this
.
checkedKeys
.
push
(
"netPhone"
);
}
},
0
)
},
0
)
this
.
customimg
=
"./img/custom"
+
data
.
serviceQrcode
this
.
customimg
=
"./img/custom"
+
data
.
serviceQrcode
this
.
modifyvisible
=
true
;
this
.
modifyvisible
=
true
;
...
@@ -446,11 +546,11 @@
...
@@ -446,11 +546,11 @@
this
.
modifyForm
.
netId
=
values
.
netId
this
.
modifyForm
.
netId
=
values
.
netId
this
.
modifyForm
.
lzgh
=
values
.
lzgh
this
.
modifyForm
.
lzgh
=
values
.
lzgh
this
.
modifyForm
.
bandproductId
=
values
.
bandproductId
this
.
modifyForm
.
bandproductId
=
values
.
bandproductId
this
.
modifyForm
.
isShowband
=
values
.
isShowband
this
.
modifyForm
.
netPhone
=
values
.
netPhone
this
.
modifyForm
.
isShowrh
=
values
.
isShowrh
this
.
modifyForm
.
isRecv
=
values
.
isRecv
this
.
modifyForm
.
chosePages
=
""
this
.
modifyForm
.
chosePages
=
""
this
.
modifyForm
.
isShowrh
=
(
this
.
checkedKeys
.
indexOf
(
"isShowrh"
)
>
-
1
)
?
1
:
0
;
this
.
modifyForm
.
isShowband
=
(
this
.
checkedKeys
.
indexOf
(
"isShowband"
)
>
-
1
)
?
1
:
0
;
this
.
modifyForm
.
netPhone
=
(
this
.
checkedKeys
.
indexOf
(
"netPhone"
)
>
-
1
)
?
1
:
0
;
this
.
modifyForm
.
isRecv
=
(
this
.
checkedKeys
.
indexOf
(
"isRecv"
)
>
-
1
)
?
1
:
0
;
this
.
chosePages
.
forEach
(
value
=>
{
this
.
chosePages
.
forEach
(
value
=>
{
if
(
value
!=
undefined
){
if
(
value
!=
undefined
){
this
.
modifyForm
.
chosePages
=
value
+
","
+
this
.
modifyForm
.
chosePages
this
.
modifyForm
.
chosePages
=
value
+
","
+
this
.
modifyForm
.
chosePages
...
...
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