Commit 23be7983 by 陈浩建

json数据 项目请求引用 新增-3

parent 17b16705
{ {
"school_center_productManagement_broadband":{ "school_center_productManagement_broadband":{
"universityTerminalType": [ "universityTerminalType": [
{"value":"PC+手机","name":"PC+手机"}, {"value":"PC+手机","name":"PC+手机"},
{"value":"仅PC","name":"仅PC"}, {"value":"仅PC","name":"仅PC"},
{"value":"仅手机","name":"仅手机"}, {"value":"仅手机","name":"仅手机"},
{"value":"1PC+1手机","name":"1PC+1手机"} {"value":"1PC+1手机","name":"1PC+1手机"}
], ],
"universityUserType": [ "universityUserType": [
{"value":"翼起来用户","name":"翼起来用户"}, {"value":"翼起来用户","name":"翼起来用户"},
{"value":"校园天翼宽带用户","name":"校园天翼宽带用户"} {"value":"校园天翼宽带用户","name":"校园天翼宽带用户"}
], ],
"identifying": [ "identifying": [
{"value":"","name":"无"}, {"value":"校园低消宽带提速包(19元)","name":"校园低消宽带提速包(19元)"},
{"value":"校园低消宽带提速包(19元)","name":"校园低消宽带提速包(19元)"}, {"value":"校园低消宽带提速包(29元)","name":"校园低消宽带提速包(29元)"},
{"value":"校园低消宽带提速包(29元)","name":"校园低消宽带提速包(29元)"}, {"value":"校园低消宽带提速包(39元)","name":"校园低消宽带提速包(39元)"},
{"value":"校园低消宽带提速包(39元)","name":"校园低消宽带提速包(39元)"}, {"value":"宽带免费提速至100M","name":"宽带免费提速至100M"},
{"value":"宽带免费提速至100M","name":"宽带免费提速至100M"}, {"value":"1元宽带融合提速","name":"1元宽带融合提速"}
{"value":"1元宽带融合提速","name":"1元宽带融合提速"} ]
] },
},
"school_center_order_order": { "school_center_order_order": {
"orderStatus": [ "orderStatus": [
{"value":"待识别","name":"待识别"}, {"value":"待识别","name":"待识别"},
{"value":"待处理","name":"待处理"}, {"value":"待处理","name":"待处理"},
{"value":"待选号","name":"待选号"}, {"value":"待选号","name":"待选号"},
{"value":"待配送","name":"待配送"}, {"value":"待配送","name":"待配送"},
{"value":"待活体","name":"待活体"}, {"value":"待活体","name":"待活体"},
{"value":"提交中","name":"提交中"}, {"value":"提交中","name":"提交中"},
{"value":"审核中","name":"审核中"}, {"value":"审核中","name":"审核中"},
{"value":"已完成","name":"已完成"}, {"value":"已完成","name":"已完成"},
{"value":"异常单","name":"异常单"} {"value":"异常单","name":"异常单"}
] ]
}, },
"school_center_order_orderView": { "school_center_order_orderView": {
"orderStatus": [ "orderStatus": [
{"value":"未支付","name":"未支付"}, {"value":"未支付","name":"未支付"},
{"value":"未下单","name":"未下单"}, {"value":"未下单","name":"未下单"},
{"value":"提交中","name":"提交中"}, {"value":"提交中","name":"提交中"},
{"value":"审核中","name":"审核中"}, {"value":"审核中","name":"审核中"},
{"value":"审核中","name":"审核中"}, {"value":"审核中","name":"审核中"},
{"value":"已完成","name":"已完成"}, {"value":"已完成","name":"已完成"},
{"value":"异常单","name":"异常单"} {"value":"异常单","name":"异常单"}
] ]
} }
} }
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
<a-col :md="6" :sm="12" style="height: 35px"> <a-col :md="6" :sm="12" style="height: 35px">
<a-form-item label="订单完成时间:"> <a-form-item label="订单完成时间:">
<a-range-picker <a-range-picker
@change="onSuccessChange" @change="onSuccessChange"
format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss"
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
<a-col :md="4" :sm="12" style="height: 35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="智能平台:"> <a-form-item label="智能平台:">
<a-input <a-input
placeholder="智能平台" placeholder="智能平台"
v-model="queryParam.orderId" v-model="queryParam.orderId"
></a-input> ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
...@@ -62,40 +62,40 @@ ...@@ -62,40 +62,40 @@
<a-col :md="4" :sm="12" style="height: 35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="客户姓名:"> <a-form-item label="客户姓名:">
<a-input <a-input
placeholder="客户姓名" placeholder="客户姓名"
v-model="queryParam.customerName" v-model="queryParam.customerName"
></a-input> ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12" style="height: 35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="办理号码:"> <a-form-item label="办理号码:">
<a-input <a-input
placeholder="办理号码" placeholder="办理号码"
v-model="queryParam.businessNumber" v-model="queryParam.businessNumber"
></a-input> ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12" style="height: 35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="联系号码:"> <a-form-item label="联系号码:">
<a-input <a-input
placeholder="联系号码" placeholder="联系号码"
v-model="queryParam.contactNumber" v-model="queryParam.contactNumber"
></a-input> ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12" style="height: 35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="合伙人姓名:"> <a-form-item label="合伙人姓名:">
<a-input <a-input
placeholder="合伙人姓名" placeholder="合伙人姓名"
v-model="queryParam.hehuorenName" v-model="queryParam.hehuorenName"
></a-input> ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12" style="height: 35px"> <a-col :md="4" :sm="12" style="height: 35px">
<a-form-item label="合伙人学校:"> <a-form-item label="合伙人学校:">
<a-input <a-input
placeholder="合伙人学校" placeholder="合伙人学校"
v-model="queryParam.hehuorenSchool" v-model="queryParam.hehuorenSchool"
></a-input> ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
...@@ -124,19 +124,19 @@ ...@@ -124,19 +124,19 @@
<a-col :md="3" :sm="6" style="float: right; height: 35px"> <a-col :md="3" :sm="6" style="float: right; height: 35px">
<a-button @click="search()" type="primary">查询</a-button> <a-button @click="search()" type="primary">查询</a-button>
<a-button @click="handleSubmit" style="margin-left: 10px" <a-button @click="handleSubmit" style="margin-left: 10px"
>导出</a-button >导出</a-button
> >
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
<a-modal <a-modal
title="置为异常单" title="置为异常单"
:visible="setAbnormal" :visible="setAbnormal"
@ok="setAbnormalOk" @ok="setAbnormalOk"
@cancel="setAbnormalCancel" @cancel="setAbnormalCancel"
html-type="submit" html-type="submit"
width="1024px" width="1024px"
> >
<a-row :gutter="24" style="text-align: right"> <a-row :gutter="24" style="text-align: right">
<a-col :md="6" :sm="12"> <a-col :md="6" :sm="12">
...@@ -144,26 +144,26 @@ ...@@ -144,26 +144,26 @@
</a-col> </a-col>
<a-col :md="12" :sm="12"> <a-col :md="12" :sm="12">
<a-input <a-input
type="hidden" type="hidden"
placeholder="获取id" placeholder="获取id"
v-model="setAbnormalStr.orderId" v-model="setAbnormalStr.orderId"
></a-input> ></a-input>
<a-input <a-input
placeholder="置为异常单原因" placeholder="置为异常单原因"
v-model="setAbnormalStr.errorMsg" v-model="setAbnormalStr.errorMsg"
></a-input> ></a-input>
</a-col> </a-col>
</a-row> </a-row>
</a-modal> </a-modal>
<!--列表--> <!--列表-->
<s-table <s-table
:columns="columns" :columns="columns"
:data="rowdata" :data="rowdata"
bordered bordered
ref="table" ref="table"
size="small" size="small"
class="flex-filling" class="flex-filling"
:locale="emptyText" :locale="emptyText"
> >
<!--拦截器--> <!--拦截器-->
<template slot="productLastUpdateTime" slot-scope="text"> <template slot="productLastUpdateTime" slot-scope="text">
...@@ -201,11 +201,11 @@ ...@@ -201,11 +201,11 @@
</s-table> </s-table>
<!----抽屉--> <!----抽屉-->
<a-drawer <a-drawer
width="640" width="640"
placement="right" placement="right"
:closable="false" :closable="false"
@close="onClose" @close="onClose"
:visible="visible" :visible="visible"
> >
<p :style="pStyle">基础信息</p> <p :style="pStyle">基础信息</p>
<a-row> <a-row>
...@@ -226,17 +226,17 @@ ...@@ -226,17 +226,17 @@
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<!-- <p v-if="orderInfo.status == '1'">订单状态:待提交</p>--> <!-- <p v-if="orderInfo.status == '1'">订单状态:待提交</p>-->
<!-- <p v-if="orderInfo.status == '4'">订单状态:归档</p>--> <!-- <p v-if="orderInfo.status == '4'">订单状态:归档</p>-->
<!-- <p v-if="orderInfo.status == '5'">订单状态:作废</p>--> <!-- <p v-if="orderInfo.status == '5'">订单状态:作废</p>-->
<!-- <p v-if="orderInfo.status == '6'">订单状态:待配送</p>--> <!-- <p v-if="orderInfo.status == '6'">订单状态:待配送</p>-->
<!-- <p v-if="orderInfo.status == '7'">订单状态:物流配送中</p>--> <!-- <p v-if="orderInfo.status == '7'">订单状态:物流配送中</p>-->
<!-- <p v-if="orderInfo.status == '8'">订单状态:配送成功</p>--> <!-- <p v-if="orderInfo.status == '8'">订单状态:配送成功</p>-->
<!-- <p v-if="orderInfo.status == '3'">订单状态:受理成功</p>--> <!-- <p v-if="orderInfo.status == '3'">订单状态:受理成功</p>-->
<!-- <p v-if="orderInfo.status == '9'">订单状态:已收费</p>--> <!-- <p v-if="orderInfo.status == '9'">订单状态:已收费</p>-->
<!-- <p v-if="orderInfo.status == '10'">订单状态:受理异常</p>--> <!-- <p v-if="orderInfo.status == '10'">订单状态:受理异常</p>-->
<!-- <p v-if="orderInfo.status == '2'">订单状态:待受理</p>--> <!-- <p v-if="orderInfo.status == '2'">订单状态:待受理</p>-->
<!-- <p v-if="orderInfo.status == '100'">订单状态:未支付</p>--> <!-- <p v-if="orderInfo.status == '100'">订单状态:未支付</p>-->
<p>订单状态:{{ orderInfo.orderStatus }}</p> <p>订单状态:{{ orderInfo.orderStatus }}</p>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
v-model="orderInfo.idCard" v-model="orderInfo.idCard"
class="idCard" class="idCard"
ref="idCardValue" ref="idCardValue"
/> />
</p> </p>
</a-col> </a-col>
<a-col :span="12" v-show="iCardShow01"> <a-col :span="12" v-show="iCardShow01">
...@@ -311,27 +311,28 @@ ...@@ -311,27 +311,28 @@
<p> <p>
订单状态: 订单状态:
<a-select <a-select
@change="statusData" @change="statusData"
class="statusData" class="statusData"
v-model="orderInfo.orderStatus" v-model="orderInfo.orderStatus"
default-value="orderInfo.orderStatus" default-value="orderInfo.orderStatus"
> >
<a-select-option value="">请选择</a-select-option> <a-select-option value="">请选择</a-select-option>
<a-select-option value="待处理">待处理</a-select-option> <a-select-option v-for="d in orderViewjson.orderStatus" :key="d.value" :value="d.value" >{{d.name}}</a-select-option>
<a-select-option value="待选号">待选号</a-select-option> <!-- <a-select-option value="待处理">待处理</a-select-option>-->
<a-select-option value="待识别">待识别</a-select-option> <!-- <a-select-option value="待选号">待选号</a-select-option>-->
<a-select-option value="待活体">待活体</a-select-option> <!-- <a-select-option value="待识别">待识别</a-select-option>-->
<a-select-option value="审核中">审核中</a-select-option> <!-- <a-select-option value="待活体">待活体</a-select-option>-->
<a-select-option value="待审核">待配送</a-select-option> <!-- <a-select-option value="审核中">审核中</a-select-option>-->
<a-select-option value="待审核">待审核</a-select-option> <!-- <a-select-option value="待审核">待配送</a-select-option>-->
<a-select-option value="待受理">待受理</a-select-option> <!-- <a-select-option value="待审核">待审核</a-select-option>-->
<a-select-option value="已发货">已发货</a-select-option> <!-- <a-select-option value="待受理">待受理</a-select-option>-->
<a-select-option value="已完成">已完成</a-select-option> <!-- <a-select-option value="已发货">已发货</a-select-option>-->
<a-select-option value="异常单">异常单</a-select-option> <!-- <a-select-option value="已完成">已完成</a-select-option>-->
<a-select-option value="待派奖">待派奖</a-select-option> <!-- <a-select-option value="异常单">异常单</a-select-option>-->
<a-select-option value="已派奖">已派奖</a-select-option> <!-- <a-select-option value="待派奖">待派奖</a-select-option>-->
<a-select-option value="未支付">未支付</a-select-option> <!-- <a-select-option value="已派奖">已派奖</a-select-option>-->
<a-select-option value="重新下单">重新下单</a-select-option> <!-- <a-select-option value="未支付">未支付</a-select-option>-->
<!-- <a-select-option value="重新下单">重新下单</a-select-option>-->
</a-select> </a-select>
</p> </p>
</a-col> </a-col>
...@@ -377,11 +378,11 @@ ...@@ -377,11 +378,11 @@
<p>接入商:{{ orderInfo.customerid }}</p> <p>接入商:{{ orderInfo.customerid }}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12"> <a-col :span="12">
<a-button type="primary" v-show="iCardShow" @click="editBtn"> <a-button type="primary" v-show="iCardShow" @click="editBtn">
确定 确定
</a-button> </a-button>
</a-col> </a-col>
</a-row> </a-row>
</a-drawer> </a-drawer>
...@@ -398,6 +399,7 @@ import { ...@@ -398,6 +399,7 @@ import {
} from "../../../api/school-center/orderAPI"; } from "../../../api/school-center/orderAPI";
import { cloneObject, exportFile } from "@/utils/util"; import { cloneObject, exportFile } from "@/utils/util";
import moment from "moment"; import moment from "moment";
import { getJonslist } from '@/api/api';
export default { export default {
name: "orderView", name: "orderView",
components: { components: {
...@@ -405,6 +407,7 @@ export default { ...@@ -405,6 +407,7 @@ export default {
}, },
data() { data() {
return { return {
orderViewjson:{},
emptyText: { emptyText: "暂无数据" }, emptyText: { emptyText: "暂无数据" },
callback: false, callback: false,
Formtable: this.$form.createForm(this), Formtable: this.$form.createForm(this),
...@@ -523,24 +526,31 @@ export default { ...@@ -523,24 +526,31 @@ export default {
}, },
}; };
}, },
mounted() {
getJonslist().then((res) => { //请求json文件
this.orderViewjson = res.school_center_order_orderView;
this.$forceUpdate()
}).catch((ress) => {// 请求失败处理
});
},
methods: { methods: {
// 编辑下拉 // 编辑下拉
statusData(value) { statusData(value) {
this.orderInfo.orderStatus = value; this.orderInfo.orderStatus = value;
}, },
editBtn(){ editBtn(){
editOrder({ editOrder({
id: this.orderInfo.id, id: this.orderInfo.id,
idCard: this.orderInfo.idCard, idCard: this.orderInfo.idCard,
orderStatus: this.orderInfo.orderStatus, orderStatus: this.orderInfo.orderStatus,
}).then((res) => { }).then((res) => {
if (res.state == "success") { if (res.state == "success") {
this.$message.success(res.data ? res.data : "修改成功!", 5); this.$message.success(res.data ? res.data : "修改成功!", 5);
this.search(); this.search();
return null; return null;
} }
this.$message.error(res.data ? res.data : "修改失败!", 5); this.$message.error(res.data ? res.data : "修改失败!", 5);
}); });
this.visible = false; this.visible = false;
}, },
moment, moment,
...@@ -700,9 +710,9 @@ export default { ...@@ -700,9 +710,9 @@ export default {
let nowdate = moment().format("YYYY-MM-DD"); let nowdate = moment().format("YYYY-MM-DD");
this.callback = true; this.callback = true;
exportFile( exportFile(
download(downqueryParam), download(downqueryParam),
"宽带订单清单" + nowdate + ".xls", "宽带订单清单" + nowdate + ".xls",
this.downloadstatu this.downloadstatu
); );
}, },
downloadstatu() { downloadstatu() {
......
...@@ -59,66 +59,66 @@ ...@@ -59,66 +59,66 @@
<a-form :form="Formtable"> <a-form :form="Formtable">
<a-collapse v-model="activeKey"> <a-collapse v-model="activeKey">
<a-collapse-panel key="1" header="学校产品配置"> <a-collapse-panel key="1" header="学校产品配置">
<div class="school-box" v-for="(school, index) in modelData.schools"> <div class="school-box" v-for="(school, index) in modelData.schools">
<a-input type="hidden" :id="'school_id['+ index + ']'" :name="'school_id['+ index + ']'" v-model="school.id"></a-input> <a-input type="hidden" :id="'school_id['+ index + ']'" :name="'school_id['+ index + ']'" v-model="school.id"></a-input>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="县分:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="县分:">
<a-select v-model="school.subName"> <a-select v-model="school.subName">
<a-select-option value="">请选择</a-select-option> <a-select-option value="">请选择</a-select-option>
<a-select-option v-for="sn in subNames" :value="sn.value">{{sn.value}}</a-select-option> <a-select-option v-for="sn in subNames" :value="sn.value">{{sn.value}}</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: 5}" :wrapperCol="{span: 9, offset: 1}" label="学校名称:">
<a-input :id="'school_name['+ index + ']'" :name="'school_name['+ index + ']'" v-model="school.schoolName"></a-input> <a-input :id="'school_name['+ index + ']'" :name="'school_name['+ index + ']'" v-model="school.schoolName"></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: 5}" :wrapperCol="{span: 9, offset: 1}" label="是否显示宽带办理:">
<a-radio-group v-model="school.isShowband"> <a-radio-group v-model="school.isShowband">
<a-radio value="0" disabled>不显示</a-radio> <a-radio value="0" disabled>不显示</a-radio>
<a-radio value="1" disabled>显示</a-radio> <a-radio value="1" disabled>显示</a-radio>
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="宽带办理是否甩单:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="宽带办理是否甩单:">
<a-radio-group v-model="school.jiltKd"> <a-radio-group v-model="school.jiltKd">
<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: 5}" :wrapperCol="{span: 9, offset: 1}" label="是否显示单宽办理:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="是否显示单宽办理:">
<a-radio-group v-model="school.kdsl"> <a-radio-group v-model="school.kdsl">
<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: 5}" :wrapperCol="{span: 9, offset: 1}" label="是否显示融合办理:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="是否显示融合办理:">
<a-radio-group v-model="school.isShowrh"> <a-radio-group v-model="school.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: 5}" :wrapperCol="{span: 9, offset: 1}" label="是否显示宽叠移提速:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="是否显示宽叠移提速:">
<a-radio-group v-model="school.kdyBtn"> <a-radio-group v-model="school.kdyBtn">
<a-radio value="0" disabled>不显示</a-radio> <a-radio value="0" disabled>不显示</a-radio>
<a-radio value="1" disabled>显示</a-radio> <a-radio value="1" disabled>显示</a-radio>
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="宽叠移办理是否甩单:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="宽叠移办理是否甩单:">
<a-radio-group v-model="school.jiltKdy"> <a-radio-group v-model="school.jiltKdy">
<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: 5}" :wrapperCol="{span: 9, offset: 1}" v-if="school.id == '' && index != 0"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" v-if="school.id == '' && index != 0">
<a-button @click="deleteSchool(index)" type="primary">删除该学校</a-button> <a-button @click="deleteSchool(index)" type="primary">删除该学校</a-button>
</a-form-item> </a-form-item>
</div> </div>
<a-icon slot="extra" type="plus" @click="addSchool" /> <a-icon slot="extra" type="plus" @click="addSchool" />
</a-collapse-panel> </a-collapse-panel>
<a-collapse-panel key="2" header="客户端产品管理"> <a-collapse-panel key="2" header="客户端产品管理">
...@@ -183,18 +183,18 @@ ...@@ -183,18 +183,18 @@
<a-select-option key="1">显示</a-select-option> <a-select-option key="1">显示</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: 5}" :wrapperCol="{span: 9, offset: 1}" label="适用学校:">-->
<!-- <a-select v-model="universityName" style="width: 330px">--> <!-- <a-select v-model="universityName" style="width: 330px">-->
<!-- <a-select-option @click="universitySchoolName('请选择')" value="请选择">请选择</a-select-option>--> <!-- <a-select-option @click="universitySchoolName('请选择')" value="请选择">请选择</a-select-option>-->
<!-- <a-select-option @click="universitySchoolName(item)" v-for="item in universitySchool" :value="item.universityId">--> <!-- <a-select-option @click="universitySchoolName(item)" v-for="item in universitySchool" :value="item.universityId">-->
<!-- {{item.universityName}}--> <!-- {{item.universityName}}-->
<!-- </a-select-option>--> <!-- </a-select-option>-->
<!-- </a-select>--> <!-- </a-select>-->
<!-- <a @click="visibleT = true">详情</a>--> <!-- <a @click="visibleT = true">详情</a>-->
<!-- </a-form-item>--> <!-- </a-form-item>-->
<!-- <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="套餐情况:">--> <!-- <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="套餐情况:">-->
<!-- <a-input :rows="10" v-model="modelData.productMealPrice"/>--> <!-- <a-input :rows="10" v-model="modelData.productMealPrice"/>-->
<!-- </a-form-item>--> <!-- </a-form-item>-->
<div> <div>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="产品情况:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="产品情况:">
<mavon-editor @save="saveProductIntroduction" ref="editor_a" v-model="productIntroduction"></mavon-editor> <mavon-editor @save="saveProductIntroduction" ref="editor_a" v-model="productIntroduction"></mavon-editor>
...@@ -220,11 +220,11 @@ ...@@ -220,11 +220,11 @@
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="允许上网终端类型:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="允许上网终端类型:">
<a-select v-decorator="[ 'universityTerminalType', {rules: [{ required: true, message: '允许上网终端类型'}]} ]" @change="changeTerminalType"> <a-select v-decorator="[ 'universityTerminalType', {rules: [{ required: true, message: '允许上网终端类型'}]} ]" @change="changeTerminalType">
<!-- <a-select-option value="PC+手机">PC+手机</a-select-option>--> <!-- <a-select-option value="PC+手机">PC+手机</a-select-option>-->
<!-- <a-select-option value="仅PC">仅PC</a-select-option>--> <!-- <a-select-option value="仅PC">仅PC</a-select-option>-->
<!-- <a-select-option value="仅手机">仅手机</a-select-option>--> <!-- <a-select-option value="仅手机">仅手机</a-select-option>-->
<a-select-option v-for="d in broadbands.universityTerminalType" :key="d.value" :value="d.value">{{d.name}}</a-select-option> <a-select-option v-for="d in broadbands.universityTerminalType" :key="d.value" :value="d.value" >{{d.name}}</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
...@@ -236,9 +236,9 @@ ...@@ -236,9 +236,9 @@
</a-form-item> </a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="用户类型:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="用户类型:">
<a-select v-decorator="['universityUserType', {rules: [{required:true, message: '用户类型不能为空!'}]}]" @change="changeUserType"> <a-select v-decorator="['universityUserType', {rules: [{required:true, message: '用户类型不能为空!'}]}]" @change="changeUserType">
<!-- <a-select-option value="翼起来用户">翼起来用户</a-select-option>--> <!-- <a-select-option value="翼起来用户">翼起来用户</a-select-option>-->
<!-- <a-select-option value="校园天翼宽带用户">校园天翼宽带用户</a-select-option>--> <!-- <a-select-option value="校园天翼宽带用户">校园天翼宽带用户</a-select-option>-->
<a-select-option v-for="d in broadbands.universityUserType" :key="d.value" :value="d.value">{{d.name}}</a-select-option> <a-select-option v-for="d in broadbands.universityUserType" :key="d.value" :value="d.value" >{{d.name}}</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: 5}" :wrapperCol="{span: 9, offset: 1}" label="月租类型:">
...@@ -285,13 +285,13 @@ ...@@ -285,13 +285,13 @@
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="提速包:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="提速包:">
<a-select v-decorator="[ 'identifying' ]" @change="changeIdentifying"> <a-select v-decorator="[ 'identifying' ]" @change="changeIdentifying">
<!-- <a-select-option value="">无</a-select-option>--> <a-select-option value=""></a-select-option>
<!-- <a-select-option value="校园低消宽带提速包(19元)">校园低消宽带提速包(19元)</a-select-option>--> <a-select-option v-for="d in broadbands.identifying" :key="d.value" :value="d.value" >{{d.name}}</a-select-option>
<!-- <a-select-option value="校园低消宽带提速包(29元)">校园低消宽带提速包(29元)</a-select-option>--> <!-- <a-select-option value="校园低消宽带提速包(19元)">校园低消宽带提速包(19元)</a-select-option>-->
<!-- <a-select-option value="校园低消宽带提速包(39元)">校园低消宽带提速包(39元)</a-select-option>--> <!-- <a-select-option value="校园低消宽带提速包(29元)">校园低消宽带提速包(29元)</a-select-option>-->
<!-- <a-select-option value="宽带免费提速至100M">宽带免费提速至100M</a-select-option>--> <!-- <a-select-option value="校园低消宽带提速包(39元)">校园低消宽带提速包(39元)</a-select-option>-->
<!-- <a-select-option value="1元宽带融合提速">1元宽带融合提速</a-select-option>--> <!-- <a-select-option value="宽带免费提速至100M">宽带免费提速至100M</a-select-option>-->
<a-select-option v-for="d in broadbands.identifying" :key="d.value" :value="d.value">{{d.name}}</a-select-option> <!-- <a-select-option value="1元宽带融合提速">1元宽带融合提速</a-select-option>-->
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-input style="display:none" placeholder="如:20M" v-decorator="[ 'speed', {rules: [{ required: true, message: '短信速率不能为空!' ,validator: 'click'}]} ]"></a-input> <a-input style="display:none" placeholder="如:20M" v-decorator="[ 'speed', {rules: [{ required: true, message: '短信速率不能为空!' ,validator: 'click'}]} ]"></a-input>
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
}, },
data(){ data(){
return { return {
broadbands:[], broadbands:{},
universityId: true, universityId: true,
universityName: '', universityName: '',
regularName: '', regularName: '',
...@@ -386,14 +386,14 @@ export default { ...@@ -386,14 +386,14 @@ export default {
{dataIndex: 'product_school_abbreviated', width: 140, title: '对用户显示学校名'}, {dataIndex: 'product_school_abbreviated', width: 140, title: '对用户显示学校名'},
{dataIndex: 'kdsl', width: 180, title: '是否显示宽带办理',customRender: function(text) { {dataIndex: 'kdsl', width: 180, title: '是否显示宽带办理',customRender: function(text) {
if (text == undefined) { if (text == undefined) {
return '\n'; return '\n';
} }
return <span style="white-space: pre-line;">{text.replace(',', '\n')}</span>; return <span style="white-space: pre-line;">{text.replace(',', '\n')}</span>;
} }
}, },
{dataIndex: 'kdy_btn', width: 180, title: '是否显示宽叠移提速',customRender: function(text) { {dataIndex: 'kdy_btn', width: 180, title: '是否显示宽叠移提速',customRender: function(text) {
if (text == undefined) { if (text == undefined) {
return '\n'; return '\n';
} }
return <span style="white-space: pre-line;">{text.replace(',', '\n')}</span>; return <span style="white-space: pre-line;">{text.replace(',', '\n')}</span>;
} }
...@@ -534,12 +534,12 @@ export default { ...@@ -534,12 +534,12 @@ export default {
} }
}, },
HTMLEncode(text) { HTMLEncode(text) {
let temp = document.createElement("div"); let temp = document.createElement("div");
temp.innerHTML = text; temp.innerHTML = text;
let output = temp.innerText || temp.textContent; let output = temp.innerText || temp.textContent;
temp = null; temp = null;
return output; return output;
}, },
regularsName(item) { regularsName(item) {
if (item == '请选择') { if (item == '请选择') {
this.modelData.productIntroductionPic2 = '' this.modelData.productIntroductionPic2 = ''
...@@ -785,7 +785,7 @@ export default { ...@@ -785,7 +785,7 @@ export default {
this.modifyvisible=false; this.modifyvisible=false;
this.clearmodel() this.clearmodel()
if(res.state=="success"){ if(res.state=="success"){
console.log(res.state.msg); console.log(res.state.msg);
this.$notification.success({message: res.data, description: '', duration: 4}) this.$notification.success({message: res.data, description: '', duration: 4})
} }
this.search() this.search()
...@@ -812,8 +812,8 @@ export default { ...@@ -812,8 +812,8 @@ export default {
clearmodel() { clearmodel() {
this.add=true this.add=true
this.modelData.universityId='', this.modelData.universityId='',
this.modelData.schools = [], this.modelData.schools = [],
this.modelData.productMealPrice = '' this.modelData.productMealPrice = ''
this.modelData.productId = '' this.modelData.productId = ''
this.modelData.productIntroduction = '' this.modelData.productIntroduction = ''
this.modelData.productSetMealIntroduction = '' this.modelData.productSetMealIntroduction = ''
...@@ -893,7 +893,6 @@ export default { ...@@ -893,7 +893,6 @@ export default {
this.initSubstName(); this.initSubstName();
this.getSchool(); this.getSchool();
getJonslist().then((res) => { //请求json文件 getJonslist().then((res) => { //请求json文件
debugger
this.broadbands = res.school_center_productManagement_broadband; this.broadbands = res.school_center_productManagement_broadband;
this.$forceUpdate() this.$forceUpdate()
}).catch((ress) => {// 请求失败处理 }).catch((ress) => {// 请求失败处理
......
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