|
@@ -1,198 +1,202 @@
|
|
|
|
|
|
import api from '@/api/api'
|
|
import api from '@/api/api'
|
|
const state = {
|
|
const state = {
|
|
- roleList:null,//角色列表
|
|
|
|
- educationType: null,//教育类型
|
|
|
|
- projectType: null,//项目类型
|
|
|
|
- businessLevel: null,//业务层级
|
|
|
|
- sujectType: null,//科目
|
|
|
|
- schoolList: null,//院校
|
|
|
|
- Professional: null,//专业
|
|
|
|
- courseExamine: null,//考期
|
|
|
|
- certificate: null,//证书类型
|
|
|
|
- certificateTp: null,//证书模板
|
|
|
|
- labelList: null,//标签
|
|
|
|
- payList: null,//支付通道
|
|
|
|
- paypayee: null,//收款方
|
|
|
|
- paysource: null,//渠道来源
|
|
|
|
- payvisit: null,//到访分校
|
|
|
|
- payserve: null,//服务模式
|
|
|
|
- paysupply: null,//供应方
|
|
|
|
- paynature: null,//收费性质
|
|
|
|
- paycost: null,//费用类型
|
|
|
|
- paperexam: null,//试卷类型
|
|
|
|
- areas: null,//地区-省
|
|
|
|
- cityList: null,//地区-市
|
|
|
|
- classList:null,//班级
|
|
|
|
- examList:null,//考试安排
|
|
|
|
- applySiteAddress:null,//考试地点
|
|
|
|
- beforeList:null,//前培安排
|
|
|
|
- indexnum:null,//模拟
|
|
|
|
|
|
+ roleList: null,//角色列表
|
|
|
|
+ educationType: null,//教育类型
|
|
|
|
+ projectType: null,//项目类型
|
|
|
|
+ businessLevel: null,//业务层级
|
|
|
|
+ sujectType: null,//科目
|
|
|
|
+ schoolList: null,//院校
|
|
|
|
+ Professional: null,//专业
|
|
|
|
+ courseExamine: null,//考期
|
|
|
|
+ certificate: null,//证书类型
|
|
|
|
+ certificateTp: null,//证书模板
|
|
|
|
+ labelList: null,//标签
|
|
|
|
+ payList: null,//支付通道
|
|
|
|
+ paypayee: null,//收款方
|
|
|
|
+ paysource: null,//渠道来源
|
|
|
|
+ payvisit: null,//到访分校
|
|
|
|
+ payserve: null,//服务模式
|
|
|
|
+ paysupply: null,//供应方
|
|
|
|
+ paynature: null,//收费性质
|
|
|
|
+ paycost: null,//费用类型
|
|
|
|
+ paperexam: null,//试卷类型
|
|
|
|
+ areas: null,//地区-省
|
|
|
|
+ cityList: null,//地区-市
|
|
|
|
+ classList: null,//班级
|
|
|
|
+ examList: null,//考试安排过滤
|
|
|
|
+ examLists: null,//考试安排
|
|
|
|
+ applySiteAddress: null,//考试地点
|
|
|
|
+ beforeList: null,//前培安排
|
|
|
|
+ indexnum: null,//模拟
|
|
}
|
|
}
|
|
const mutations = {
|
|
const mutations = {
|
|
//更新角色列表
|
|
//更新角色列表
|
|
- EDICROLELIST(state){
|
|
|
|
- api.obtainRoleList({status:1}).then(res => {
|
|
|
|
|
|
+ EDICROLELIST(state) {
|
|
|
|
+ api.obtainRoleList({ status: 1 }).then(res => {
|
|
state.roleList = res.rows
|
|
state.roleList = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新教育类型
|
|
//更新教育类型
|
|
- EDICATIONTYPE(state){
|
|
|
|
- api.inquireCourseEducationType({status:1}).then(res => {
|
|
|
|
|
|
+ EDICATIONTYPE(state) {
|
|
|
|
+ api.inquireCourseEducationType({ status: 1 }).then(res => {
|
|
state.educationType = res.rows
|
|
state.educationType = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新项目类型
|
|
//更新项目类型
|
|
- PROJECTTYPE(state){
|
|
|
|
- api.inquireCourseProjectType({status:1}).then(res => {
|
|
|
|
|
|
+ PROJECTTYPE(state) {
|
|
|
|
+ api.inquireCourseProjectType({ status: 1 }).then(res => {
|
|
state.projectType = res.rows
|
|
state.projectType = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新业务层级
|
|
//更新业务层级
|
|
- BUSINESSLEVEL(state){
|
|
|
|
- api.inquirebusinessList({status:1}).then(res => {
|
|
|
|
|
|
+ BUSINESSLEVEL(state) {
|
|
|
|
+ api.inquirebusinessList({ status: 1 }).then(res => {
|
|
state.businessLevel = res.rows
|
|
state.businessLevel = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
//更新科目
|
|
//更新科目
|
|
- SUJECTTYPE(state){
|
|
|
|
- api.inquireCourseSubject({status:1}).then(res => {
|
|
|
|
|
|
+ SUJECTTYPE(state) {
|
|
|
|
+ api.inquireCourseSubject({ status: 1 }).then(res => {
|
|
state.sujectType = res.rows
|
|
state.sujectType = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新院校
|
|
//更新院校
|
|
- SCHOOLLIST(state){
|
|
|
|
- api.inquireUserSchool({status:1}).then(res => {
|
|
|
|
|
|
+ SCHOOLLIST(state) {
|
|
|
|
+ api.inquireUserSchool({ status: 1 }).then(res => {
|
|
state.schoolList = res.rows
|
|
state.schoolList = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新专业
|
|
//更新专业
|
|
- PROFESSIONAL(state){
|
|
|
|
- api.inquireCourseMajor({status:1}).then(res => {
|
|
|
|
|
|
+ PROFESSIONAL(state) {
|
|
|
|
+ api.inquireCourseMajor({ status: 1 }).then(res => {
|
|
state.Professional = res.rows
|
|
state.Professional = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新考期
|
|
//更新考期
|
|
- COURSEEXAMINE(state){
|
|
|
|
- api.inquireCourseExamine({status:1}).then(res => {
|
|
|
|
|
|
+ COURSEEXAMINE(state) {
|
|
|
|
+ api.inquireCourseExamine({ status: 1 }).then(res => {
|
|
state.courseExamine = res.rows
|
|
state.courseExamine = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新证书类型
|
|
//更新证书类型
|
|
- CERTIFICATE(state){
|
|
|
|
- api.inquireBaseCertificate({status:1}).then(res => {
|
|
|
|
|
|
+ CERTIFICATE(state) {
|
|
|
|
+ api.inquireBaseCertificate({ status: 1 }).then(res => {
|
|
state.certificate = res.rows
|
|
state.certificate = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新证书模板
|
|
//更新证书模板
|
|
- CERTIFICATETP(state){
|
|
|
|
- api.inquireBaseCertificatetp({status:1}).then(res => {
|
|
|
|
|
|
+ CERTIFICATETP(state) {
|
|
|
|
+ api.inquireBaseCertificatetp({ status: 1 }).then(res => {
|
|
state.certificateTp = res.rows
|
|
state.certificateTp = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新标签
|
|
//更新标签
|
|
- LABELLIST(state){
|
|
|
|
- api.inquireCourseLabelList({status:1}).then(res => {
|
|
|
|
|
|
+ LABELLIST(state) {
|
|
|
|
+ api.inquireCourseLabelList({ status: 1 }).then(res => {
|
|
state.labelList = res.rows
|
|
state.labelList = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新支付通道
|
|
//更新支付通道
|
|
- PAYLIST(state){
|
|
|
|
- api.inquirepayaislelist({status:1}).then(res => {
|
|
|
|
|
|
+ PAYLIST(state) {
|
|
|
|
+ api.inquirepayaislelist({ status: 1 }).then(res => {
|
|
state.payList = res.rows
|
|
state.payList = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新收款方
|
|
//更新收款方
|
|
- PAYPAYEE(state){
|
|
|
|
- api.inquirepaypayee({status:1}).then(res => {
|
|
|
|
|
|
+ PAYPAYEE(state) {
|
|
|
|
+ api.inquirepaypayee({ status: 1 }).then(res => {
|
|
state.paypayee = res.rows
|
|
state.paypayee = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新渠道来源
|
|
//更新渠道来源
|
|
- PAYSOURCE(state){
|
|
|
|
- api.inquirepaysource({status:1}).then(res => {
|
|
|
|
|
|
+ PAYSOURCE(state) {
|
|
|
|
+ api.inquirepaysource({ status: 1 }).then(res => {
|
|
state.paysource = res.rows
|
|
state.paysource = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新到访分校
|
|
//更新到访分校
|
|
- PAYVISIT(state){
|
|
|
|
- api.inquirepayvisit({status:1}).then(res => {
|
|
|
|
|
|
+ PAYVISIT(state) {
|
|
|
|
+ api.inquirepayvisit({ status: 1 }).then(res => {
|
|
state.payvisit = res.rows
|
|
state.payvisit = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
//更新服务模式
|
|
//更新服务模式
|
|
- PAYSERVE(state){
|
|
|
|
- api.inquirepayserve({status:1}).then(res => {
|
|
|
|
|
|
+ PAYSERVE(state) {
|
|
|
|
+ api.inquirepayserve({ status: 1 }).then(res => {
|
|
state.payserve = res.rows
|
|
state.payserve = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新供应方
|
|
//更新供应方
|
|
- PAYSUPPLY(state){
|
|
|
|
- api.inquirepaysupply({status:1}).then(res => {
|
|
|
|
|
|
+ PAYSUPPLY(state) {
|
|
|
|
+ api.inquirepaysupply({ status: 1 }).then(res => {
|
|
state.paysupply = res.rows
|
|
state.paysupply = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新收费性质
|
|
//更新收费性质
|
|
- PAYNATURE(state){
|
|
|
|
- api.inquirepaynature({status:1}).then(res => {
|
|
|
|
|
|
+ PAYNATURE(state) {
|
|
|
|
+ api.inquirepaynature({ status: 1 }).then(res => {
|
|
state.paynature = res.rows
|
|
state.paynature = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新费用类型
|
|
//更新费用类型
|
|
- PAYCOST(state){
|
|
|
|
- api.inquirepaycost({status:1}).then(res => {
|
|
|
|
|
|
+ PAYCOST(state) {
|
|
|
|
+ api.inquirepaycost({ status: 1 }).then(res => {
|
|
state.paycost = res.rows
|
|
state.paycost = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新地区-省
|
|
//更新地区-省
|
|
- AREAS(state){
|
|
|
|
- api.inquireapplyAreas({status:1}).then(res => {
|
|
|
|
|
|
+ AREAS(state) {
|
|
|
|
+ api.inquireapplyAreas({ status: 1 }).then(res => {
|
|
state.areas = res.rows
|
|
state.areas = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新地区-市
|
|
//更新地区-市
|
|
- CITYLIST(state){
|
|
|
|
- api.inquireapplyCityList({status:1}).then(res => {
|
|
|
|
|
|
+ CITYLIST(state) {
|
|
|
|
+ api.inquireapplyCityList({ status: 1 }).then(res => {
|
|
state.cityList = res.rows
|
|
state.cityList = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新班级
|
|
//更新班级
|
|
- CLASSLIST(state){
|
|
|
|
- api.inquireGradegradeList({status:1}).then(res => {
|
|
|
|
|
|
+ CLASSLIST(state) {
|
|
|
|
+ api.inquireGradegradeList({ status: 1 }).then(res => {
|
|
state.classList = res.rows
|
|
state.classList = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新考试安排
|
|
//更新考试安排
|
|
- EXAMLIST(state){
|
|
|
|
- api.inquiresystemapplyList({status:1}).then(res => {
|
|
|
|
|
|
+ EXAMLIST(state) {
|
|
|
|
+ api.inquiresystemapplyList({ status: 1 }).then(res => {
|
|
state.examList = res.rows
|
|
state.examList = res.rows
|
|
})
|
|
})
|
|
|
|
+ api.inquiresystemapplyList({ status: "0,1,2" }).then(res => {
|
|
|
|
+ state.examLists = res.rows
|
|
|
|
+ })
|
|
},
|
|
},
|
|
//更新考试地点
|
|
//更新考试地点
|
|
- APPLYSITEADDRESS(state){
|
|
|
|
- api.inquiresystemsite({status:1}).then(res => {
|
|
|
|
|
|
+ APPLYSITEADDRESS(state) {
|
|
|
|
+ api.inquiresystemsite({ status: 1 }).then(res => {
|
|
state.applySiteAddress = res.rows
|
|
state.applySiteAddress = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新前培安排
|
|
//更新前培安排
|
|
- BEFORELIST(state){
|
|
|
|
- api.inquiresystembefore({status:1}).then(res => {
|
|
|
|
|
|
+ BEFORELIST(state) {
|
|
|
|
+ api.inquiresystembefore({ status: 1 }).then(res => {
|
|
state.beforeList = res.rows
|
|
state.beforeList = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//更新试卷类型
|
|
//更新试卷类型
|
|
- EXAMTYPE(state){
|
|
|
|
- api.inquirepaperexamList({status:1}).then(res => {
|
|
|
|
|
|
+ EXAMTYPE(state) {
|
|
|
|
+ api.inquirepaperexamList({ status: 1 }).then(res => {
|
|
state.paperexam = res.rows
|
|
state.paperexam = res.rows
|
|
})
|
|
})
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|
|
|
|
const actions = {
|
|
const actions = {
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
export default {
|
|
export default {
|