Commit 99488060 by 黄森林

大学宽带信息管理功能完成

parent f174e037
import {postAction,getAotion} from '@/api/manage' import {postAction,getAotion} from '@/api/manage'
const prefix = '/schoolcenter/ciop'; const prefix = '/schoolcenter/ciop';
// 获取活动列表 // 宽带产品
let productList = (params) => postAction(prefix + "/product/list" , params); let productList = (params) => postAction(prefix + "/product/list" , params);
let productDelete = (id) => postAction(prefix + "/product/delete/"+id); let productDelete = (id) => postAction(prefix + "/product/delete/"+id);
let productInsert = (params) => postAction(prefix + "/product/insert" , params); let productInsert = (params) => postAction(prefix + "/product/insert" , params);
let productUpdate = (params) => postAction(prefix + "/product/update",params); let productUpdate = (params) => postAction(prefix + "/product/update",params);
//大学宽带信息
let universityList = (params) => postAction(prefix + "/university/list" , params);
let universityDelete = (id) => postAction(prefix + "/university/delete/"+id);
let universityInsert = (params) => postAction(prefix + "/university/insert" , params);
let universityUpdate = (params) => postAction(prefix + "/university/update",params);
export { export {
productList, productList,
productDelete, productDelete,
productInsert, productInsert,
productUpdate productUpdate,
universityList,
universityDelete,
universityInsert,
universityUpdate
} }
\ No newline at end of file
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
<template slot="productCreateTime" slot-scope="text"> <template slot="productCreateTime" slot-scope="text">
{{ text | dayjs}} {{ text | dayjs}}
</template> </template>
<template slot="text" slot-scope="text">
<p style="white-space: pre-line;">{{text}}</p>
</template>
<template slot="productState" slot-scope="text"> <template slot="productState" slot-scope="text">
<p v-if="text=='0'">正常</p> <p v-if="text=='0'">正常</p>
<p v-else=""></p> <p v-else=""></p>
...@@ -125,9 +128,11 @@ ...@@ -125,9 +128,11 @@
{dataIndex: 'productLastUpdateTime', width: 200, title: '更新时间 ' ,scopedSlots: {customRender: 'productLastUpdateTime'}}, {dataIndex: 'productLastUpdateTime', width: 200, title: '更新时间 ' ,scopedSlots: {customRender: 'productLastUpdateTime'}},
{dataIndex: 'productCreateTime', width: 200, title: '创建时间 ', scopedSlots: {customRender: 'productCreateTime'}}, {dataIndex: 'productCreateTime', width: 200, title: '创建时间 ', scopedSlots: {customRender: 'productCreateTime'}},
{dataIndex: 'productState', width: 200, title: '状态 ', scopedSlots: {customRender: 'productState'}}, {dataIndex: 'productState', width: 200, title: '状态 ', scopedSlots: {customRender: 'productState'}},
{dataIndex: 'productMealPrice', width: 200, title: '套餐情况 '}, {dataIndex: 'productMealPrice', width: 200, title: '套餐情况 ', scopedSlots: {customRender: 'text'}},
{dataIndex: 'productRate', width: 200, title: '包年包月情况 '}, {dataIndex: 'productRate', width: 200, title: '包年包月情况 '},
{dataIndex: 'productMeal', width: 200, title: '宽带速率 '}, {dataIndex: 'productMeal', width: 200, title: '宽带速率 '},
/* {dataIndex: 'productIntroduction', width: 200, title: '产品情况 ', scopedSlots: {customRender: 'text'}},
{dataIndex: 'productSetMealIntroduction', width: 200, title: '资费介绍 ', scopedSlots: {customRender: 'text'}},*/
{ {
dataIndex: 'operation', dataIndex: 'operation',
width: 100, width: 100,
...@@ -212,6 +217,7 @@ ...@@ -212,6 +217,7 @@
let product= JSON.stringify(obj); let product= JSON.stringify(obj);
productInsert({product}).then((res) => { productInsert({product}).then((res) => {
this.modifyvisible=false; this.modifyvisible=false;
this.clearmodel()
this.$notification.success({message: res.data, description: '', duration: 4}) this.$notification.success({message: res.data, description: '', duration: 4})
this.search() this.search()
}) })
...@@ -220,6 +226,7 @@ ...@@ -220,6 +226,7 @@
let product= JSON.stringify(obj); let product= JSON.stringify(obj);
productUpdate({product}).then((res) => { productUpdate({product}).then((res) => {
this.modifyvisible=false; this.modifyvisible=false;
this.clearmodel()
this.$notification.success({message: res.data, description: '', duration: 4}) this.$notification.success({message: res.data, description: '', duration: 4})
this.search() this.search()
}) })
......
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