Commit 23be7983 by 陈浩建

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

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