Commit e86a6437 by 彭祥礼

问题修复

parent 8838d5e6
......@@ -2,14 +2,15 @@ import {postAction,downFilePost} from '@/api/manage'
const prefix = '/manager/ciop';
//获取县分下拉列表
let initSubstName = (params) => postAction(prefix + "/ysmUser/initSubstName" , params);
let initSubstName = (params) => postAction(prefix + "/newUser/initSubstName" , params);
//获取学校下拉列表
let getSchoolNames = (params) => postAction(prefix + "/ysmUser/getSchoolNames" , params);
let getSchoolNames = (params) => postAction(prefix + "/newUser/getSchoolNames" , params);
let uploadExcel = (params) => downFilePost(prefix + "/lzKpi/excelOut" , params);
let downloadMoBan = (params) => downFilePost(prefix + "/lzKpi/downloadMoBan" , params);
let lzKpiList = (params) => postAction(prefix + "/lzKpi/list" , params);
let lzKpiDelete = (params) => postAction(prefix + "/lzKpi/delete", params);
let lzKpiInsert = (params) => postAction(prefix + "/lzKpi/insert" , params);
let checkAccount = (params) => postAction(prefix + "/lzKpi/checkAccount" , params);
let lzKpiUpdate = (params) => postAction(prefix + "/lzKpi/update",params);
export {
......@@ -19,6 +20,7 @@ export {
downloadMoBan,
lzKpiList,
lzKpiDelete,
checkAccount,
lzKpiInsert,
lzKpiUpdate,
}
......@@ -2,9 +2,9 @@ import {postAction,downFilePost} from '@/api/manage'
const prefix = '/manager/ciop';
//获取县分下拉列表
let initSubstName = (params) => postAction(prefix + "/ysmUser/initSubstName" , params);
let initSubstName = (params) => postAction(prefix + "/newUser/initSubstName" , params);
//获取学校下拉列表
let getSchoolNames = (params) => postAction(prefix + "/ysmUser/getSchoolNames" , params);
let getSchoolNames = (params) => postAction(prefix + "/newUser/getSchoolNames" , params);
let uploadExcel = (params) => downFilePost(prefix + "/lzWage/excelOut" , params);
let downloadMoBan = (params) => downFilePost(prefix + "/lzWage/downloadMoBan" , params);
let lzSalaryList = (params) => postAction(prefix + "/lzWage/list" , params);
......
......@@ -2,8 +2,8 @@ import {postAction,downFilePost} from '@/api/manage'
const prefix = '/manager/ciop';
// 楼长KPI管理
let initSubstName = (params) => postAction(prefix + "/ysmUser/initSubstName" , params);
let getSchoolNames = (params) => postAction(prefix + "/ysmUser/getSchoolNames" , params);
let initSubstName = (params) => postAction(prefix + "/newUser/initSubstName" , params);
let getSchoolNames = (params) => postAction(prefix + "/newUser/getSchoolNames" , params);
let uploadExcel = (params) => downFilePost(prefix + "/zjlWage/excelOut" , params);
let downloadMoBan = (params) => downFilePost(prefix + "/zjlWage/downloadMoBan" , params);
let zjlSalaryList = (params) => postAction(prefix + "/zjlWage/list" , params);
......
......@@ -2,9 +2,9 @@ import {postAction,getAotion,downFilePost} from '@/api/manage'
const prefix = '/manager/ciop';
//获取县分下拉列表
let getSubstList = (params) => postAction(prefix + "/ysmUser/initSubstName" , params);
let getSubstList = (params) => postAction(prefix + "/newUser/initSubstName" , params);
//获取学校下拉列表
let getSchoolList = (params) => postAction(prefix + "/ysmUser/getSchoolNames" , params);
let getSchoolList = (params) => postAction(prefix + "/newUser/getSchoolNames" , params);
// 获取活动列表
let getList = (params) => postAction(prefix + "/salesList/list" , params);
// 删除
......
......@@ -2,9 +2,9 @@ import {postAction,downFilePost} from '@/api/manage'
const prefix = '/manager/ciop';
//获取县分下拉列表
let initSubstName = (params) => postAction(prefix + "/ysmUser/initSubstName" , params);
let initSubstName = (params) => postAction(prefix + "/newUser/initSubstName" , params);
//获取学校下拉列表
let getSchoolNames = (params) => postAction(prefix + "/ysmUser/getSchoolNames" , params);
let getSchoolNames = (params) => postAction(prefix + "/newUser/getSchoolNames" , params);
// 获取充值达标列表
let getList = (params) => postAction(prefix + "/saleCensus/list" , params);
// 导出放号充值达标清单
......
......@@ -2,9 +2,9 @@ import {postAction,downFilePost} from '@/api/manage'
const prefix = '/manager/ciop';
//获取县分下拉列表
let initSubstName = (params) => postAction(prefix + "/ysmUser/initSubstName" , params);
let initSubstName = (params) => postAction(prefix + "/newUser/initSubstName" , params);
//获取学校下拉列表
let getSchoolNames = (params) => postAction(prefix + "/ysmUser/getSchoolNames" , params);
let getSchoolNames = (params) => postAction(prefix + "/newUser/getSchoolNames" , params);
// 获取充值达标列表
let getList = (params) => postAction(prefix + "/salesOrder/list" , params);
// 导出放号充值达标清单
......
......@@ -11,13 +11,6 @@ let addAllocation = (params) => postAction(prefix + "/school/schoolAllocation/ad
// 删除
let deleteAllocation = (params) => postAction(prefix + "/school/schoolAllocation/deleteSchoolAllocation" , params);
// 获取县分下拉列表
let getSubstList = (params) => postAction(prefix + "/school/schoolManagement/substList" , params);
// 获取学校下拉列表
let getSchoolList = (params) => postAction(prefix + "/school/schoolManagement/schoolList" , params);
export {
getList,addAllocation,deleteAllocation,getSubstList,getSchoolList
getList,addAllocation,deleteAllocation
}
......@@ -2,12 +2,15 @@ import {postAction} from '@/api/manage'
const prefix = '/manager/ciop';
//获取县分下拉列表
let initSubstName = (params) => postAction(prefix + "/ysmUser/initSubstName" , params);
let initSubstName = (params) => postAction(prefix + "/newUser/initSubstName" , params);
//获取学校下拉列表
let getSchoolNames = (params) => postAction(prefix + "/ysmUser/getSchoolNames" , params);
let getSchoolNames = (params) => postAction(prefix + "/newUser/getSchoolNames" , params);
//初始用户信息
let initUsers = (params) => postAction(prefix + "/newUser/initUsers" , params);
let list = (params) => postAction(prefix + "/newUser/list" , params);
let update = (params) => postAction(prefix + "/newUser/update" , params);
export {
initUsers,
initSubstName,
getSchoolNames,
list,
......
......@@ -2,9 +2,9 @@ import {postAction,downFilePost} from '@/api/manage'
const prefix = '/manager/ciop';
//获取县分下拉列表
let initSubstName = (params) => postAction(prefix + "/ysmUser/initSubstName" , params);
let initSubstName = (params) => postAction(prefix + "/newUser/initSubstName" , params);
//获取学校下拉列表
let getSchoolNames = (params) => postAction(prefix + "/ysmUser/getSchoolNames" , params);
let getSchoolNames = (params) => postAction(prefix + "/newUser/getSchoolNames" , params);
let uploadExcel = (params) => downFilePost(prefix + "/yxtOrder/excelOut" , params);
let downloadMoBan = (params) => downFilePost(prefix + "/yxtOrder/downloadMoBan" , params);
......
......@@ -117,7 +117,7 @@
<a-input placeholder="姓名" v-decorator="[ 'sysuName', {rules: [{ required: true, message: '姓名不能为空!' }]} ]" :disabled="isdisabled"/>
</a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="账号:">
<a-input placeholder="账号" v-decorator="[ 'account', {rules: [{ required: true, message: '账号不能为空!' }]} ]" :disabled="isdisabled"/>
<a-input placeholder="账号" v-decorator="[ 'account', {rules: [{ required: true, message: '账号不能为空!'}]} ]" :disabled="isdisabled"/>
</a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="汇总任务量(满分:30):">
<a-input-number
......@@ -169,7 +169,7 @@
disabled/>
</a-form-item>
<a-form-item v-show="add" :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="KPI月份:">
<a-month-picker @change="onChange" placeholder="选择KPI月份" v-decorator="[ 'month' ]" style="width: 20rem;"/>
<a-month-picker @change="onChange" placeholder="选择KPI月份" v-decorator="[ 'month' , {rules: [{required: true, message: 'KPI月份不能为空!' }]}]" style="width: 20rem;"/>
</a-form-item>
<a-form-item v-show="false" :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="是否删除:">
<a-select v-decorator="['isDel']" style="width: 330px">
......@@ -187,7 +187,7 @@
import ImportBtn from "../../../components/sysmanage/ImportBtn";
import {
lzKpiList, lzKpiDelete, lzKpiInsert, lzKpiUpdate,
getSchoolNames, initSubstName, uploadExcel, downloadMoBan
getSchoolNames, initSubstName, uploadExcel, downloadMoBan, checkAccount
} from "../../../api/school-center/louZhang/louZhangManagerAPI"
import {cloneObject, exportFile} from '@/utils/util';
import Vue from 'vue';
......@@ -406,6 +406,12 @@
if (this.add) {
let obj = that.modelData;
delete obj.id
checkAccount({"account":obj.account}).then((res) => {
if (res.state != "success") {
this.$message.error(res.msg);
return;
}
})
let lzKpi = JSON.stringify(obj);
lzKpiInsert({lzKpi}).then((res) => {
this.modifyvisible = false;
......
......@@ -117,7 +117,7 @@
<p v-else=""></p>
</template>
<template slot="minGanZi" slot-scope="text">
{{ text.substring(0,2)+'**'}}
{{ text.substring(0,1)+'**'+text.substring(2)}}
</template>
<template slot="operation" slot-scope="text,record">
<span>
......
......@@ -13,11 +13,13 @@
<a-col :md="6" :sm="12">
<a-form-item label="月份">
<a-range-picker
showTime
:placeholder="['开始月份', '结束月份']"
format="YYYYMM"
:value="queryParam.month"
:mode="tempMode"
@panelChange="handlePanelChange"
@ok="onOk"
style="width: 16rem;"
/>
</a-form-item>
......@@ -128,6 +130,8 @@
title: ConstantActivity.title,
queryParam: {
name: '',
beginTime: '',
endTime: '',
month: ['', ''],
},
modelData: {
......@@ -208,6 +212,10 @@
this.tempMode = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]];
//console.log("this.tempMode=================="+this.tempMode);
},
onOk(value) {
this.queryParam.month = value;
console.log('onOk: ', value);
},
excelOut() {
let params = {
pageNo: 1,
......@@ -229,7 +237,7 @@
this.zjlkpivisible = true
},
downloadMoBan: function () {
exportFile(downloadMoBan(), "总经理KPI信息.xlsx");
exportFile(downloadMoBan(), "总经理KPI信息模板.xlsx");
},
doPush(res) {
console.log(res);
......@@ -243,6 +251,7 @@
return false;
}
this.$message.success("上传成功!" + response.data, 5);
this.$refs.table.refresh({search: true})
},
createfunctionOk() {
......
......@@ -13,12 +13,14 @@
<a-col :md="6" :sm="12">
<a-form-item label="月份">
<a-range-picker
:placeholder="['开始月份', '结束月份']"
format="YYYYMM"
:value="queryParam.month"
:mode="tempMode"
@panelChange="handlePanelChange"
style="width: 16rem;"
showTime
:placeholder="['开始月份', '结束月份']"
format="YYYYMM"
:value="queryParam.month"
:mode="tempMode"
@panelChange="handlePanelChange"
@ok="onOk"
style="width: 16rem;"
/>
</a-form-item>
</a-col>
......@@ -247,6 +249,10 @@
this.tempMode = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]];
//console.log("this.tempMode=================="+this.tempMode);
},
onOk(value) {
this.queryParam.month = value;
console.log('onOk: ', value);
},
excelOut() {
let params = {
pageNo: 1,
......
......@@ -119,17 +119,13 @@
<a-modal :title="add ?'添加正则配置': '编辑正则配置'" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="1024px">
<a-form :form="Formtable">
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="兑换券账号:">
<a-input placeholder="兑换券账号"
v-decorator="[ 'cardNumber', {rules: [{ required: true, message: '兑换券账号不能为空!' }]} ]"/>
<a-input placeholder="兑换券账号" v-decorator="[ 'cardNumber', {rules: [{ required: true, message: '兑换券账号不能为空!' }]} ]"/>
</a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="密码:">
<a-input placeholder="密码"
v-decorator="[ 'password', {rules: [{ required: true, message: '密码不能为空!' }]} ]"/>
<a-input placeholder="密码" v-decorator="[ 'password', {rules: [{ required: true, message: '密码不能为空!' }]} ]"/>
</a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="有效截止日期:">
<a-date-picker @change="onChange" placeholder="有效截止日期"
v-decorator="[ 'validityPeriod', {rules: [{ required: true, message: '有效截止日期不能为空!' }]} ]"
style="width: 20rem;"/>
<a-date-picker @change="onChange" placeholder="有效截止日期" v-decorator="[ 'validityPeriod', {rules: [{ required: true, message: '有效截止日期不能为空!' }]} ]" style="width: 20rem;"/>
</a-form-item>
</a-form>
</a-modal>
......
......@@ -10,14 +10,22 @@
<a-input placeholder="网点名称" v-model="queryParam.networkName"></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12">
<a-form-item label="县分:">
<a-input placeholder="县分" v-model="queryParam.subName"></a-input>
<a-col :md="3" :sm="6">
<a-form-item label="县分">
<a-select v-model="queryParam.subName" @change="getSchoolNames" style="width: 8rem;">
<a-select-option key="">--全部--</a-select-option>
<a-select-option v-for="d in subNames" :key="d.value" :value="d.value">{{d.text}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12">
<a-form-item label="学校名称">
<a-input placeholder="学校名称" v-model="queryParam.schoolName"></a-input>
<a-col :md="5" :sm="10">
<a-form-item label="学校">
<a-select v-model="queryParam.schoolName" style="width: 15rem;">
<a-select-option key="">--全部--</a-select-option>
<a-select-option v-for="d in schoolNames" :key="d.value" :value="d.value">{{d.text}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :md="6" :sm="12">
......@@ -169,6 +177,7 @@
import STable from '@/components/table';
import {findByList,choosepages,modify,insert,hidestatus} from "@/api/school-center/schoolManagermentAPI"
import {cloneObject} from '@/utils/util';
import {getSchoolNames, initSubstName} from "../../../api/school-center/userManager/newUserAPI";
export default {
name: "schoolmanagement",
components: {
......@@ -205,6 +214,8 @@
isRecv:"",
chosePages:""
},
subNames: [],
schoolNames: [],
subNameList: [],
packageName:[],
chosePages:[],
......@@ -212,8 +223,8 @@
//输入框列表
queryParam: {
networkName: '',
subName: '',
status: '',
subName: '',
schoolName: '',
},
modifyvisible: false,
......@@ -496,9 +507,43 @@
this.modifyForm.chosePages=""
this.chosePages.splice(0,this.chosePages.length)
this.modifyvisible=false;
},
getSchoolNames() {
this.schoolNames = []
this.queryParam.schoolName = ''
getSchoolNames({"substName": this.queryParam.subName}).then((res) => {
if (res.state == "success") {
const result = res.data
result.forEach((r) => {
if (r.schoolName === 'null')
return;
this.schoolNames.push({
value: r.schoolName,
text: r.schoolName
})
})
}
})
},
initSubstName() {
initSubstName().then((res) => {
if (res.state == "success") {
const result = res.data
result.forEach((r) => {
if (r.subName === 'null')
return;
this.subNames.push({
value: r.subName,
text: r.subName
})
})
}
})
}
},
created(){
mounted() {
this.initSubstName();
this.getSchoolNames();
}
}
</script>
......
......@@ -5,20 +5,32 @@
<!-- 搜索区域 -->
<a-form layout="inline">
<a-row :gutter="24">
<a-col :md="4" :sm="12">
<a-col :md="3" :sm="6">
<a-form-item label="账号">
<a-input placeholder="账号" v-model="queryParam.account"></a-input>
</a-form-item>
</a-col>
<a-col :md="3" :sm="6">
<a-form-item label="姓名">
<a-input placeholder="姓名" v-model="queryParam.name"></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12">
<a-form-item label="县分">
<a-input placeholder="县分" v-model="queryParam.substName"></a-input>
<a-col :md="3" :sm="6">
<a-form-item label="县分">
<a-select v-model="queryParam.substName" @change="getSchoolNames">
<a-select-option key="">--全部--</a-select-option>
<a-select-option v-for="d in subNames" :key="d.value" :value="d.value">{{d.text}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12">
<a-form-item label="学校">
<a-input placeholder="学校" v-model="queryParam.schoolName"></a-input>
<a-col :md="5" :sm="10">
<a-form-item label="学校">
<a-select v-model="queryParam.schoolName" style="width: 15rem;">
<a-select-option key="">--全部--</a-select-option>
<a-select-option v-for="d in schoolNames" :key="d.value" :value="d.value">{{d.text}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
......@@ -42,28 +54,23 @@
</s-table>
<!--编辑----弹框-->
<a-modal :title="titleName" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="720px">
<a-modal :title="titleName" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="720px" height="1600px">
<a-form :form="Formtable">
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="账号">
<a-input placeholder="账号" v-decorator="[ 'account', {rules: [{ required: true, message: '账号不能为空!' ,whitespace:true}]} ]"></a-input>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="账号">
<a-select mode="tags" v-model="modifyForm.account" placeholder="请选择账号" @change="handleChange">
<a-select-option v-for="d in userList" :value="d.account">{{ d.name}}</a-select-option>
</a-select>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="县分">
<a-select placeholder="请选择" @change="changeSubst()" v-model="modifyForm.subName" >
<a-select placeholder="请选择" @change="getSchoolNames2" v-model="modifyForm.subName" >
<a-select-option key="">请选择</a-select-option>
<a-select-option v-for="data in subNameList" :value="data">
{{ data}}
</a-select-option>
<a-select-option v-for="d in subNames2" :value="d.value">{{ d.text}}</a-select-option>
</a-select>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="学校名称">
<a-select placeholder="请选择" v-model="modifyForm.schoolId">
<a-select-option key="">请选择</a-select-option>
<a-select-option v-for="data in schoolList" :value="data.id">
{{ data.school_name}}
</a-select-option>
<a-select-option v-for="d in schoolNames2" :value="d.id">{{ d.schoolName}}</a-select-option>
</a-select>
</a-form-item>
......@@ -75,13 +82,11 @@
<script>
import STable from '@/components/table';
import {
getList,addAllocation,
deleteAllocation,getSubstList,getSchoolList
} from "@/api/school-center/schoolAllocationAPI"
import {getList,addAllocation,deleteAllocation} from "../../../api/school-center/schoolAllocationAPI"
import {cloneObject} from '@/utils/util'
import treecheck from '@/components/sysmanage/treeCheck'
import treeList from '@/components/sysmanage/treeList'
import {getSchoolNames, initSubstName, initUsers} from "../../../api/school-center/userManager/newUserAPI";
export default {
name: "schoolAllocation",
......@@ -98,17 +103,22 @@
account: '',
name: '',
substName:'',
schoolName:''
schoolName: '',
},
titleName: '',
modifyvisible:false,
subNames: [],
schoolNames: [],
userList:[],
subNames2: [],
schoolNames2: [],
modifyForm: {
id: '',
subName: '',
account: '',
schoolId: '',
},
autoCompleteResult:[],
subNameList: [],
schoolList:[],
addSubName:'',
columns: [
......@@ -133,16 +143,6 @@
//表示
let obj = cloneObject(this.queryParam)
this.subNameList = [];
// 获取县分下拉清单
getSubstList(Object.assign(params,obj)).then(res => {
if (res.state == 'success') {
res.data.forEach((key)=>{
this.subNameList.push(key.sub_name)
})
}
})
return getList(Object.assign(params,obj)).then(res => {
let data = {}
if (res.state !== 'success') {
......@@ -171,18 +171,6 @@
}
},
methods:{
onLoad(){
let params = [];
params.substName = "";
// 获取县分下拉清单
getSubstList(params).then(res => {
if (res.state == 'success') {
res.data.forEach((key)=>{
this.subNameList.push(key.sub_name)
})
}
})
},
search() {
this.$refs.table.refresh({search: true})
},
......@@ -190,13 +178,15 @@
this.titleName = "添加学校分配";
this.modifyvisible = true;
},
handleChange(value) {
this.modifyForm.account = value
console.log(`selected ${value}`);
},
//提交表单
createfunctionOk(){
this.Formtable.validateFields(["account"], {force: true}, (err, values)=>{
if (!err){
this.modifyForm.account=values.account
addAllocation(this.modifyForm).then(res=>{
addAllocation({"account":this.modifyForm.account,"schoolId":this.modifyForm.schoolId}).then(res=>{
if (res.state=="success") {
this.$message.success(res.data ? res.data : '添加成功!', 5);
this.search();
......@@ -231,35 +221,92 @@
}
})
},
changeSubst(){
let schoolParams = {};
schoolParams.substName = this.modifyForm.subName;
this.schoolList = [];
getSchoolList(schoolParams).then(res => {
if (res.state == 'success') {
res.data.forEach((key) => {
this.schoolList.push(key)
getSchoolNames() {
this.schoolNames = []
this.queryParam.schoolName = ''
getSchoolNames({"substName": this.queryParam.substName}).then((res) => {
if (res.state == "success") {
const result = res.data
result.forEach((r) => {
if (r.schoolName === 'null')
return;
this.schoolNames.push({
value: r.schoolName,
text: r.schoolName
})
})
}
})
},
changeSchool(schoolId){
let schoolParams = {};
schoolParams.substName = this.modifyForm.subName;
this.schoolList = [];
getSchoolList(schoolParams).then(res => {
if (res.state == 'success') {
res.data.forEach((key) => {
this.schoolList.push(key)
initSubstName() {
initSubstName().then((res) => {
if (res.state == "success") {
const result = res.data
result.forEach((r) => {
if (r.subName === 'null')
return;
this.subNames.push({
value: r.subName,
text: r.subName
})
})
this.modifyForm.schoolId = schoolId;
}
})
},
getSchoolNames2() {
this.schoolNames2 = []
this.modifyForm.schoolId = ''
getSchoolNames({"substName": this.modifyForm.subName}).then((res) => {
if (res.state == "success") {
const result = res.data
result.forEach((r) => {
if (r.schoolName === 'null')
return;
this.schoolNames2.push({
id: r.id,
schoolName: r.schoolName
})
})
}
})
},
initSubstName2() {
initSubstName().then((res) => {
if (res.state == "success") {
const result = res.data
result.forEach((r) => {
if (r.subName === 'null')
return;
this.subNames2.push({
value: r.subName,
text: r.subName
})
})
}
})
},
initUsers(){
initUsers().then((res) => {
if (res.state == "success") {
const result = res.data
result.forEach((r) => {
if (r.name === 'null')
return;
this.userList.push({
account: r.account,
name: r.name
})
})
}
})
}
},
mounted() {
this.initUsers();
this.initSubstName();
this.getSchoolNames();
this.initSubstName2();
this.getSchoolNames2();
}
}
</script>
......
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