Commit 844a04a6 by 罗承锋

修改充值列表查询超时问题、修改校园页面按钮为树形

parent 098d0e42
import {postAction,downFilePost} from '@/api/manage'
import {postAction,downFilePost, longTimePostAction} from '@/api/manage'
const prefix = '/manager/ciop';
//获取县分下拉列表
......@@ -6,7 +6,7 @@ let initSubstName = (params) => postAction(prefix + "/newUser/initSubstName" , p
//获取学校下拉列表
let getSchoolNames = (params) => postAction(prefix + "/newUser/getSchoolNames" , params);
// 获取充值达标列表
let getList = (params) => postAction(prefix + "/saleCensus/list" , params);
let getList = (params) => longTimePostAction(prefix + "/saleCensus/list" , params);
// 导出放号充值达标清单
let exportOut= (params) => downFilePost(prefix + "/saleCensus/exportList" , params);
......
......@@ -113,29 +113,43 @@
<a-input placeholder="揽装工号" v-decorator="[ 'lzgh' ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="是否显示宽带办理">
<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: 8, 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: 8, 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: 8, 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 :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="是否显示宽带办理">-->
<!-- <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: 8, 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: 8, 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: 8, 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 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 :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="客户二维码">
<a-upload
......@@ -173,7 +187,6 @@
<script>
import Vue from 'vue'
import { ACCESS_TOKEN } from "@/store/mutation-types"
import STable from '@/components/table';
import {findByList,choosepages,modify,insert,hidestatus} from "@/api/school-center/schoolManagermentAPI"
import {cloneObject} from '@/utils/util';
......@@ -214,6 +227,66 @@
isRecv:"",
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: [],
schoolNames: [],
subNameList: [],
......@@ -304,6 +377,11 @@
}
}
},
watch: {
checkedKeys(val) {
console.log('checkedKeys', val);
},
},
methods:{
getuuid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
......@@ -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){
let status=0;
if(deletdata.status==0){
......@@ -381,6 +467,8 @@
this.modifyvisible=true;
},
modifyfunction(data){
// 清空编辑选中内容
this.checkedKeys = [];
//初始化
this.titleName="编辑学校"
let choosepagespare={
......@@ -431,6 +519,18 @@
networkName: data.networkName,
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)
this.customimg="./img/custom"+data.serviceQrcode
this.modifyvisible=true;
......@@ -446,11 +546,11 @@
this.modifyForm.netId=values.netId
this.modifyForm.lzgh=values.lzgh
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.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 => {
if (value!=undefined){
this.modifyForm.chosePages=value+","+this.modifyForm.chosePages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment