Commit 72d7f3ba by 吴学德

套餐管理

parent 16eea796
......@@ -2389,7 +2389,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
{
// Created by Peter Atoria @ http://iAtoria.com
var inits = 'class interface function package';
var inits = 'class interface function packageManagement';
var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
......@@ -2926,7 +2926,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
// http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
var keywords = 'as assert break case catch class continue def default do else extends finally ' +
'if in implements import instanceof interface new package property return switch ' +
'if in implements import instanceof interface new packageManagement property return switch ' +
'throw throws try while public protected private static';
var types = 'void boolean byte char short int long float double';
var constants = 'null';
......@@ -2977,7 +2977,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
'continue default do double else enum extends ' +
'false final finally float for goto if implements import ' +
'instanceof int interface long native new null ' +
'package private protected public return ' +
'packageManagement private protected public return ' +
'short static strictfp super switch synchronized this throw throws true ' +
'transient try void volatile while';
......@@ -3023,7 +3023,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
var keywords = 'abstract after and as assert at before bind bound break catch class '
+ 'continue def delete else exclusive extends false finally first for from '
+ 'function if import in indexof init insert instanceof into inverse last '
+ 'lazy mixin mod nativearray new not null on or override package postinit '
+ 'lazy mixin mod nativearray new not null on or override packageManagement postinit '
+ 'protected public public-init public-read replace return reverse sizeof '
+ 'step super then this throw true try tween typeof var where while with '
+ 'attribute let private readonly static trigger'
......@@ -3119,7 +3119,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
var keywords =
'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' +
'for foreach goto if import last local my next no our package redo ref ' +
'for foreach goto if import last local my next no our packageManagement redo ref ' +
'require return sub tie tied unless untie until use wantarray while ' +
// feature
'given when default ' +
......@@ -3143,7 +3143,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
// currently ignoring single quote package separator and utf8 names
// currently ignoring single quote packageManagement separator and utf8 names
{ regex: /(?:&|[$@%*]|\$#)[a-zA-Z_](\w+|::)*/g, css: 'variable' },
{ regex: /\b__(?:END|DATA)__\b[\s\S]*$/g, css: 'comments' },
{ regex: /(^|\n)=\w[\s\S]*?(\n=cut\s*\n|$)/g, css: 'comments' }, // pod
......@@ -3486,7 +3486,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter :
var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
'override try lazy for var catch throw type extends class while with new final yield abstract ' +
'else do if return protected private this package false';
'else do if return protected private this packageManagement false';
var keyops = '[_:=><%#@]+';
......
......@@ -3290,7 +3290,7 @@ var KJUR = {};
* <p>
* This is ITU-T X.690 ASN.1 DER encoder class library and
* class structure and methods is very similar to
* org.bouncycastle.asn1 package of
* org.bouncycastle.asn1 packageManagement of
* well known BouncyCaslte Cryptography Library.
* <h4>PROVIDING ASN.1 PRIMITIVES</h4>
* Here are ASN.1 DER primitive classes.
......
import {postAction,getAotion} from '@/api/manage'
const prefix = '/schoolcenter/ciop';
// 获取活动列表
let findByList = (params) => postAction(prefix + "/packageManagement/package/list" , params);
// 回显选择的套餐
let choosepages = (params) => postAction(prefix + "/packageManagement/package/choosepages" , params);
// 编辑
let modify = (params) => postAction(prefix + "/packageManagement/package/update" , params);
//新增
let insert= (params) => postAction(prefix + "/packageManagement/package/insert" , params);
//隐藏状态
let hidestatus= (params) => postAction(prefix + "/packageManagement/package/hidestatus" , params);
export {
findByList,choosepages,modify,insert,hidestatus
}
\ No newline at end of file
......@@ -12,6 +12,9 @@ let modify = (params) => postAction(prefix + "/school/schoolManagement/update" ,
//新增
let insert= (params) => postAction(prefix + "/school/schoolManagement/insert" , params);
//隐藏状态
let hidestatus= (params) => postAction(prefix + "/school/schoolManagement/hidestatus" , params);
export {
findByList,choosepages,modify,insert
findByList,choosepages,modify,insert,hidestatus
}
\ No newline at end of file
......@@ -2,7 +2,7 @@ import {postAction,getAotion} from '@/api/manage'
const prefix = '/schoolcenter/ciop';
// 获取活动列表
let packagefindByList = (params) => postAction(prefix + "/school/package/list" , params);
let packagefindByList = (params) => postAction(prefix + "/school/packageManagement/list" , params);
export {
packagefindByList
......
......@@ -135,7 +135,7 @@
<script>
import STable from '@/components/table';
import {findByList,choosepages,modify,insert} from "@/api/school-center/schoolManagermentAPI"
import {findByList,choosepages,modify,insert,hidestatus} from "@/api/school-center/schoolManagermentAPI"
import {cloneObject} from '@/utils/util';
export default {
name: "schoolmanagement",
......@@ -245,6 +245,24 @@
}
},
methods:{
delet(deletdata){
let status=0;
if(deletdata.status==0){
status=1
}
let parent = {
id: deletdata.id,
status: status
}
hidestatus(parent).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);
})
},
chosePagesfunction(data){
this.chosePages=data
},
......
<template>
<div class="flex-container">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<!-- 搜索区域 -->
<a-form layout="inline">
<a-row :gutter="24">
<a-col :md="4" :sm="12">
<a-form-item label="套餐名称">
<a-input placeholder="套餐名称" v-model="queryParam.name"></a-input>
</a-form-item>
</a-col>
<span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
<a-col :md="6" :sm="24">
<a-button @click="search()" type="primary">查询</a-button>
<a-divider type="vertical"/>
<a-button @click="add()" type="primary">添加</a-button>
</a-col>
</span>
</a-row>
</a-form>
</div>
<!--列表-->
<s-table :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling">
<template slot="operation" slot-scope="text,record">
<a >编辑</a>
</template>
</s-table>
</div>
</template>
<script>
import STable from '@/components/table';
import {findByList,choosepages,modify,insert,hidestatus} from "@/api/school-center/packageManagementAPI"
import {cloneObject} from '@/utils/util';
export default {
name: "package",
components: {
STable,
},
data: function () {
return {
//输入框列表
queryParam: {
name: '',
},
columns: [
{dataIndex: 'packageName', width: 200, title: '学校名称', align: "center"},
{dataIndex: 'monthFee', width: 200, title: '学校名称', align: "center"},
{dataIndex: 'flow', width: 200, title: '学校名称', align: "center"},
{dataIndex: 'voice', width: 200, title: '学校名称', align: "center"},
{
dataIndex: 'operation',
width: 100,
title: '操作',
align: "center",
scopedSlots: {customRender: 'operation'},
fixed: "right"
}]
,
rowdata: parameter => {
let params = {
pageNo: parameter.pageNo,
pageSize: parameter.pageSize
}
//表示
let obj = cloneObject(this.queryParam)
return findByList(Object.assign(params,obj)).then(res => {
let data = {}
if (res.state !== 'success') {
data = {
data: [],
pageSize: parameter.pageSize,
pageNo: 1,
totalCount: 0
}
} else {
data = {
data: res.data.records,
pageSize: parameter.pageSize,
pageNo: parameter.pageNo,
totalCount: res.data.total
}
}
return data
})
}
}
},
methods:{
search() {
this.$refs.table.refresh({search: true})
},
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
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