Commit 618f6431 authored by 黄奎's avatar 黄奎

修改方法

parent 3e01a403
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
<view style="position: relative;" class="view-box"> <view style="position: relative;" class="view-box">
<view class="box"> <view class="box">
<view class="box-img"> <view class="box-img">
<image style="width: 100rpx; height: 50rpx;;" src='https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png' mode="aspectFill"></image> <image style="width: 100rpx; height: 50rpx;;"
src='https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png'
mode="aspectFill"></image>
</view> </view>
<view class="box-bg"> <view class="box-bg">
<input class="uni-input inputM" style='margin-left: 10px;margin-top: 5px;' v-model="rules.StuName" <input class="uni-input inputM" style='margin-left: 10px;margin-top: 5px;' v-model="rules.StuName"
...@@ -15,7 +17,7 @@ ...@@ -15,7 +17,7 @@
:class="[index==i?'gender':'gender2'] ">{{item.name}}</text> :class="[index==i?'gender':'gender2'] ">{{item.name}}</text>
</view> </view>
</view> </view>
<view class="box-bg" @click="calendar()"> <view class="box-bg" @click="formType(0)">
<input class="uni-input inputM" style='margin-left: 10px;margin-top: 5px;' v-model="rules.StuBirth" <input class="uni-input inputM" style='margin-left: 10px;margin-top: 5px;' v-model="rules.StuBirth"
placeholder="公历生日" /> placeholder="公历生日" />
<view> <view>
...@@ -30,17 +32,17 @@ ...@@ -30,17 +32,17 @@
<input class="uni-input inputM" style='margin-left: 10px;margin-top: 5px;' v-model="rules.BaseCondition" <input class="uni-input inputM" style='margin-left: 10px;margin-top: 5px;' v-model="rules.BaseCondition"
placeholder="就读学校" /> placeholder="就读学校" />
<view> <view>
<u-icon @click="school()" name="arrow" color="#9F9F9F" size="20"></u-icon> <u-icon @click="formType(1)" name="arrow" color="#9F9F9F" size="20"></u-icon>
</view> </view>
</view> </view>
<view class="box-bg" @click="gradess()"> <view class="box-bg" @click="formType(2)">
<input maxlength="0" readonly="readonly" class="uni-input inputM" <input maxlength="0" readonly="readonly" class="uni-input inputM"
style='margin-left: 10px;margin-top: 5px;' v-model="rules.DemandPoint" placeholder="就读年级" /> style='margin-left: 10px;margin-top: 5px;' v-model="rules.DemandPoint" placeholder="就读年级" />
<view> <view>
<u-icon name="arrow" color="#9F9F9F" size="20"></u-icon> <u-icon name="arrow" color="#9F9F9F" size="20"></u-icon>
</view> </view>
</view> </view>
<view class="box-bg" @click="community()"> <view class="box-bg" @click="formType(3)">
<input maxlength="0" class="uni-input inputM" readonly="readonly" <input maxlength="0" class="uni-input inputM" readonly="readonly"
style='margin-left: 10px;margin-top: 5px;' v-model="rules.School_Id" placeholder="报名校区" /> style='margin-left: 10px;margin-top: 5px;' v-model="rules.School_Id" placeholder="报名校区" />
<view> <view>
...@@ -59,15 +61,15 @@ ...@@ -59,15 +61,15 @@
<view class="school-bg"> <view class="school-bg">
<text> <text>
<!-- <u-icon name="arrow-left" size="20"></u-icon> --> <!-- <u-icon name="arrow-left" size="20"></u-icon> -->
<text class="school">选择就读学校</text> <text class="school">{{title}}</text>
</text> </text>
</view> </view>
<!-- <view class="search"> <!-- <view class="search">
<u-search placeholder="请输入名称" v-model="keyword"></u-search> <u-search placeholder="请输入名称" v-model="keyword"></u-search>
</view> --> </view> -->
<scroll-view scroll-y="true" style="height:100%;"> <scroll-view scroll-y="true" style="height:100%;">
<view class="list" :class="[actuve==i?'list2':'']" v-for="(item, i) in schoollist" :key="i" <view v-if='type==1' class="list" :class="[actuve==i?'list2':'']" v-for="(item, i) in schoollist"
@click="masklist(item.Content,i)"> :key="i" @click="masklist(item.Content,i)">
<view> <view>
{{item.Content}} {{item.Content}}
</view> </view>
...@@ -80,7 +82,7 @@ ...@@ -80,7 +82,7 @@
<!-- 年级弹窗 --> <!-- 年级弹窗 -->
<u-popup v-model="show3" mode="bottom" length="auto"> <u-popup v-model="show3" mode="bottom" length="auto">
<scroll-view scroll-y="true" style="height:400rpx;"> <scroll-view scroll-y="true" style="height:400rpx;">
<view v-for="(item, i) in DemandPoint" :key="i"> <view v-for="(item, i) in schoollist" :key="i">
<view class="list" :class="[actuve3==i?'list2':'']" @click="grades(item.Content,i)"> <view class="list" :class="[actuve3==i?'list2':'']" @click="grades(item.Content,i)">
<view>{{item.Content}}</view> <view>{{item.Content}}</view>
<view v-if="actuve3==i"> <view v-if="actuve3==i">
...@@ -95,16 +97,12 @@ ...@@ -95,16 +97,12 @@
<u-popup v-model="show4" mode="right" length="80%"> <u-popup v-model="show4" mode="right" length="80%">
<view class="school-bg"> <view class="school-bg">
<text> <text>
<!-- <u-icon name="arrow-left" size="20"></u-icon> -->
<text class="school">选择校区</text> <text class="school">选择校区</text>
</text> </text>
</view> </view>
<!-- <view class="search">
<u-search placeholder="请输入名称" v-model="keyword"></u-search>
</view> -->
<scroll-view scroll-y="true" style="height:100%;"> <scroll-view scroll-y="true" style="height:100%;">
<view class="list" :class="[actuve2==i?'list2':'']" v-for="(item, i) in campus" :key="i" <view class="list" :class="[actuve2==i?'list2':'']" v-for="(item, i) in schoollist" :key="i"
@click="masklist2(item,i)"> @click="campus(item,i)">
<view> <view>
{{item.SName}} {{item.SName}}
</view> </view>
...@@ -127,16 +125,16 @@ ...@@ -127,16 +125,16 @@
export default { export default {
data() { data() {
return { return {
title: '选择就读学校',
u: {}, u: {},
School_Id: '', //要传的校区id School_Id: '', //要传的校区id
schoollist: [], //学校 schoollist: [], //列表
DemandPoint: [], //班级
campus: [], //校区
Type: '', Type: '',
communitys: false, communitys: false,
actuve: -1, actuve: -1,
actuve2: -1, actuve2: -1,
actuve3: -1, actuve3: -1,
type: -1,
show: false, //日历 show: false, //日历
show2: false, //学校 show2: false, //学校
show3: false, //年级 show3: false, //年级
...@@ -212,13 +210,7 @@ ...@@ -212,13 +210,7 @@
let that = this; let that = this;
that.requestJJSWAdmin(testCmd, postMsg, that.requestJJSWAdmin(testCmd, postMsg,
(res) => { (res) => {
if (postMsg.Type == 1) {
that.schoollist = res.data.Data that.schoollist = res.data.Data
} else if (postMsg.Type == 2) {
that.DemandPoint = res.data.Data
} else if (that.show4) {
that.campus = res.data.Data
}
} }
); );
}, },
...@@ -258,35 +250,49 @@ ...@@ -258,35 +250,49 @@
this.index = i this.index = i
this.rules.StuSex = item.id this.rules.StuSex = item.id
}, },
calendar() {
this.show = true
this.$refs.calendar.open();
},
close() { close() {
this.show = false this.show = false
console.log('弹窗关闭'); console.log('弹窗关闭');
}, },
// 学校 // 表单切换
school() { formType(type) {
switch (type) {
case 0:
this.show = true
this.$refs.calendar.open();
break;
case 1:
testCmd = "/api/WeChatPublic/GetStuSchoolClass"; testCmd = "/api/WeChatPublic/GetStuSchoolClass";
postMsg = { postMsg = {
Type: 1 Type: 1
}; };
this.initlist()
this.show2 = true this.show2 = true
}, this.title = '选择就读学校'
masklist(item, i) { break;
this.actuve = i case 2:
this.rules.BaseCondition = item
this.show2 = false
},
gradess() {
testCmd = "/api/WeChatPublic/GetStuSchoolClass"; testCmd = "/api/WeChatPublic/GetStuSchoolClass";
postMsg = { postMsg = {
Type: 2 Type: 2
}; };
this.initlist()
this.show3 = true this.show3 = true
break;
case 3:
testCmd = "/api/WeChatPublic/GetSchoolList";
postMsg = {
Group_Id: ""
};
this.show4 = true
break;
default:
console.log('其他')
}
this.type = type
this.initlist()
},
masklist(item, i) {
this.actuve = i
this.rules.BaseCondition = item
this.show2 = false
}, },
// 年级 // 年级
grades(item, i) { grades(item, i) {
...@@ -294,15 +300,7 @@ ...@@ -294,15 +300,7 @@
this.rules.DemandPoint = item this.rules.DemandPoint = item
this.show3 = false this.show3 = false
}, },
community() { campus(item, i) {
testCmd = "/api/WeChatPublic/GetSchoolList";
postMsg = {
Group_Id: ""
};
this.initlist()
this.show4 = true
},
masklist2(item, i) {
this.actuve2 = i this.actuve2 = i
this.rules.School_Id = item.SName this.rules.School_Id = item.SName
this.School_Id = item.SId this.School_Id = item.SId
......
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