|
|
|
<template>
|
|
|
|
<view>
|
|
|
|
<view class="stu_list">
|
|
|
|
<!-- datas_stu -->
|
|
|
|
<view class="add_li">
|
|
|
|
<picker mode="selector" :range="datas_stu" range-key="name" @change="stu_change">
|
|
|
|
<view class="add_li_box">
|
|
|
|
<view class="">
|
|
|
|
学员姓名
|
|
|
|
</view>
|
|
|
|
<view class="container">
|
|
|
|
|
|
|
|
<view class="card">
|
|
|
|
<picker mode="selector" :range="datas_stu" range-key="name" @change="stu_change">
|
|
|
|
<view class="cell">
|
|
|
|
<view class="cell-label">
|
|
|
|
学员姓名
|
|
|
|
</view>
|
|
|
|
<view class="cell-content">
|
|
|
|
<input type="text" placeholder="请选择" v-model="name" disabled="true">
|
|
|
|
</view>
|
|
|
|
</picker>
|
|
|
|
</view>
|
|
|
|
<view class="add_li">
|
|
|
|
<picker mode="date" :value="sx_time" :start="startDate" :end="endDate" @change="bindDateChange">
|
|
|
|
<view class="add_li_box">
|
|
|
|
<view class="">
|
|
|
|
</view>
|
|
|
|
</picker>
|
|
|
|
<picker mode="date" :value="sx_time" :start="startDate" :end="endDate" @change="bindDateChange">
|
|
|
|
<view class="cell not-border">
|
|
|
|
<view class="cell-label">
|
|
|
|
访谈时间
|
|
|
|
</view>
|
|
|
|
<view class="">
|
|
|
|
<view class="cell-content">
|
|
|
|
{{sx_time?sx_time:'请选择'}}
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</picker>
|
|
|
|
</view>
|
|
|
|
<view class="add_li">
|
|
|
|
<view class="add_li_box">
|
|
|
|
<view class="">
|
|
|
|
班主任自我介绍
|
|
|
|
</view>
|
|
|
|
</picker>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="card">
|
|
|
|
<view class="cell">
|
|
|
|
<view class="cell-label">
|
|
|
|
班主任自我介绍
|
|
|
|
</view>
|
|
|
|
<view class="cell-content">
|
|
|
|
<view class="sf_v_btn_b" :class="{active:is_teacher==1}" @click="set_tch">
|
|
|
|
<text class="icon icon-duigou"></text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="add_li">
|
|
|
|
<view class="add_li_tit">
|
|
|
|
<view class="cell not-border column">
|
|
|
|
<view class="cell-label">
|
|
|
|
了解学生信息(专业、学校、政治面貌、籍贯)
|
|
|
|
</view>
|
|
|
|
<textarea class="add_li_content" placeholder="请输入" v-model="content_one"></textarea>
|
|
|
|
<view class="cell-content">
|
|
|
|
<textarea
|
|
|
|
v-model="content_one"
|
|
|
|
placeholder="请输入"
|
|
|
|
placeholder-class="textarea-placeholder"
|
|
|
|
>
|
|
|
|
</textarea>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="add_li">
|
|
|
|
<view class="add_li_tit">
|
|
|
|
|
|
|
|
<view class="cell not-border column">
|
|
|
|
<view class="cell-label">
|
|
|
|
第几次考编,之前有没有参加培训,有没有短板模块
|
|
|
|
</view>
|
|
|
|
<textarea class="add_li_content" placeholder="请输入" v-model="content_two"></textarea>
|
|
|
|
<view class="cell-content">
|
|
|
|
<textarea
|
|
|
|
v-model="content_two"
|
|
|
|
placeholder="请输入"
|
|
|
|
placeholder-class="textarea-placeholder"
|
|
|
|
>
|
|
|
|
</textarea>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<view class="add_li">
|
|
|
|
<view class="add_li_box">
|
|
|
|
<view class="">
|
|
|
|
介绍近期课程安排、纪律要求
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="card">
|
|
|
|
<view class="cell">
|
|
|
|
<view class="cell-label">
|
|
|
|
介绍近期课程安排、纪律要求
|
|
|
|
</view>
|
|
|
|
<view class="cell-content">
|
|
|
|
<view class="sf_v_btn_b" :class="{active:is_introduce==1}" @click="set_tch1">
|
|
|
|
<text class="icon icon-duigou"></text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="add_li">
|
|
|
|
<view class="add_li_tit">
|
|
|
|
|
|
|
|
<view class="cell not-border column">
|
|
|
|
<view class="cell-label">
|
|
|
|
有无什么要求,是否适应
|
|
|
|
</view>
|
|
|
|
<textarea class="add_li_content" placeholder="请输入" v-model="content_three"></textarea>
|
|
|
|
<view class="cell-content">
|
|
|
|
<textarea
|
|
|
|
v-model="content_three"
|
|
|
|
placeholder="请输入"
|
|
|
|
placeholder-class="textarea-placeholder"
|
|
|
|
>
|
|
|
|
</textarea>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="add_li">
|
|
|
|
<view class="add_li_box">
|
|
|
|
<view class="">
|
|
|
|
入学测评成绩分析
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="card">
|
|
|
|
<view class="cell not-border">
|
|
|
|
<view class="cell-label">
|
|
|
|
入学测评成绩分析
|
|
|
|
</view>
|
|
|
|
<view class="cell-content">
|
|
|
|
<view class="sf_v_btn_b" :class="{active:is_result==1}" @click="set_tch2">
|
|
|
|
<text class="icon icon-duigou"></text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<view class="bz_add" >
|
|
|
|
<view class="" @click="save_fuc">
|
|
|
|
保存
|
|
|
|
</view>
|
|
|
|
<view v-if="options.id" class="del_btn" @click="del_fuc(options)">
|
|
|
|
|
|
|
|
<view class="footer" >
|
|
|
|
<view v-if="options.id" class="btn del" @click="show = true">
|
|
|
|
删除
|
|
|
|
</view>
|
|
|
|
<view class="btn" @click="save_fuc">
|
|
|
|
保存
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<u-modal
|
|
|
|
:show="show"
|
|
|
|
title="提示"
|
|
|
|
content="是否删除该记录?"
|
|
|
|
@confirm="del_fuc(options)"
|
|
|
|
@cancel="show = false"
|
|
|
|
:asyncClose="true"
|
|
|
|
:showCancelButton="true"
|
|
|
|
>
|
|
|
|
</u-modal>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
...
|
...
|
@@ -120,6 +160,8 @@ |
|
|
|
content_three:'',
|
|
|
|
datas_stu:'',
|
|
|
|
datas:'',
|
|
|
|
|
|
|
|
show: false
|
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
...
|
...
|
@@ -138,85 +180,74 @@ |
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
del_fuc(item){
|
|
|
|
//teacher/interviewr_del 常规访谈删除接口
|
|
|
|
//teacher/interview_del 入学关怀删除接口
|
|
|
|
uni.showModal({
|
|
|
|
title: '提示',
|
|
|
|
content: '是否删除该记录',
|
|
|
|
success: function (res) {
|
|
|
|
if (res.confirm) {
|
|
|
|
console.log('用户点击确定');
|
|
|
|
var jkurl='/teacher/interview_del'
|
|
|
|
// if(that.active==1){
|
|
|
|
// kurl='teacher/interview_del'
|
|
|
|
// }
|
|
|
|
var datas={
|
|
|
|
id:item.id
|
|
|
|
// address_id:''
|
|
|
|
}
|
|
|
|
var header={
|
|
|
|
'content-type': 'application/json',
|
|
|
|
}
|
|
|
|
// that.$service.P_post(jkurl, datas,header).then(res => {
|
|
|
|
that1.$service.P_post(jkurl, datas).then(res => {
|
|
|
|
that1.btnkg = 0
|
|
|
|
console.log(res)
|
|
|
|
if (res.code == 1){
|
|
|
|
that1.htmlReset = 0
|
|
|
|
var datas = res.data
|
|
|
|
console.log(typeof datas)
|
|
|
|
|
|
|
|
if (typeof datas == 'string') {
|
|
|
|
datas = JSON.parse(datas)
|
|
|
|
}
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
icon:'none',
|
|
|
|
title:'删除成功'
|
|
|
|
})
|
|
|
|
// that1.datas.splice(index,1)
|
|
|
|
setTimeout(()=>{
|
|
|
|
uni.navigateBack({
|
|
|
|
delta:1
|
|
|
|
})
|
|
|
|
},1000)
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (res.msg) {
|
|
|
|
uni.showToast({
|
|
|
|
icon: 'none',
|
|
|
|
title: res.msg
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
uni.showToast({
|
|
|
|
icon: 'none',
|
|
|
|
title: '获取数据失败'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch(e => {
|
|
|
|
that1.htmlReset = 1
|
|
|
|
that1.btnkg = 0
|
|
|
|
// that1.$refs.htmlLoading.htmlReset_fuc(1)
|
|
|
|
console.log(e)
|
|
|
|
uni.showToast({
|
|
|
|
icon: 'none',
|
|
|
|
title: '获取数据失败,请检查您的网络连接'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else if (res.cancel) {
|
|
|
|
console.log('用户点击取消');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
var jkurl='/teacher/interview_del'
|
|
|
|
// if(that.active==1){
|
|
|
|
// kurl='teacher/interview_del'
|
|
|
|
// }
|
|
|
|
var datas={
|
|
|
|
id:item.id
|
|
|
|
// address_id:''
|
|
|
|
}
|
|
|
|
var header={
|
|
|
|
'content-type': 'application/json',
|
|
|
|
}
|
|
|
|
// that.$service.P_post(jkurl, datas,header).then(res => {
|
|
|
|
that1.$service.P_post(jkurl, datas).then(res => {
|
|
|
|
that1.btnkg = 0
|
|
|
|
console.log(res)
|
|
|
|
this.show = false;
|
|
|
|
if (res.code == 1){
|
|
|
|
that1.htmlReset = 0
|
|
|
|
var datas = res.data
|
|
|
|
console.log(typeof datas)
|
|
|
|
|
|
|
|
if (typeof datas == 'string') {
|
|
|
|
datas = JSON.parse(datas)
|
|
|
|
}
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
icon:'none',
|
|
|
|
title:'删除成功'
|
|
|
|
})
|
|
|
|
// that1.datas.splice(index,1)
|
|
|
|
setTimeout(()=>{
|
|
|
|
uni.navigateBack({
|
|
|
|
delta:1
|
|
|
|
})
|
|
|
|
},1000)
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (res.msg) {
|
|
|
|
uni.showToast({
|
|
|
|
icon: 'none',
|
|
|
|
title: res.msg
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
uni.showToast({
|
|
|
|
icon: 'none',
|
|
|
|
title: '获取数据失败'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch(e => {
|
|
|
|
this.show = false;
|
|
|
|
that1.htmlReset = 1
|
|
|
|
that1.btnkg = 0
|
|
|
|
// that1.$refs.htmlLoading.htmlReset_fuc(1)
|
|
|
|
console.log(e)
|
|
|
|
uni.showToast({
|
|
|
|
icon: 'none',
|
|
|
|
title: '获取数据失败,请检查您的网络连接'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
stu_change(e){
|
|
|
|
var index=e.detail.value
|
|
|
|
this.name = that1.datas_stu[index].name
|
|
|
|
this.uid = that1.datas_stu[index].id
|
|
|
|
},
|
|
|
|
set_tch(){
|
|
|
|
set_tch(val){
|
|
|
|
if(that1.is_teacher==1){
|
|
|
|
that1.is_teacher=2
|
|
|
|
}else{
|
|
...
|
...
|
@@ -453,88 +484,124 @@ |
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
.stu_list {
|
|
|
|
width: 100%;
|
|
|
|
min-height: 100rpx;
|
|
|
|
background: #FFFFFF;
|
|
|
|
border-radius: 10rpx;
|
|
|
|
.add_li{
|
|
|
|
width: 100%;
|
|
|
|
min-height: 90rpx;
|
|
|
|
padding:28rpx 30rpx;
|
|
|
|
&+.add_li{
|
|
|
|
border-top: 1px solid #eee;
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.container {
|
|
|
|
padding: 25rpx 25rpx 140rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card {
|
|
|
|
padding: 0 30rpx;
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 20rpx;
|
|
|
|
& + .card {
|
|
|
|
margin-top: 20rpx;
|
|
|
|
}
|
|
|
|
.cell {
|
|
|
|
padding: 30rpx 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
border-bottom: 1px solid #F3F3F7;
|
|
|
|
& .not-border {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
.add_li_box{
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
&-label {
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: #545d71;
|
|
|
|
input{
|
|
|
|
font-family: PingFang SC;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #000000;
|
|
|
|
}
|
|
|
|
&-content {
|
|
|
|
flex: 1;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-family: PingFang SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #646464;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
text-align: right;
|
|
|
|
min-width: 0;
|
|
|
|
font-size: 30rpx;
|
|
|
|
}
|
|
|
|
.sf_v_btn_b{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
.icon {
|
|
|
|
color: #ACACAC;
|
|
|
|
font-size: 30rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sf_v_btn_b{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
font-size: 18rpx;
|
|
|
|
color: #fff;
|
|
|
|
width: 32rpx;
|
|
|
|
height: 32rpx;
|
|
|
|
border: 1px solid #DEDEDE;
|
|
|
|
border-radius: 8rpx;
|
|
|
|
&.active{
|
|
|
|
background: #2D81FF;
|
|
|
|
border: 1px solid #2D81FF;
|
|
|
|
}
|
|
|
|
text{
|
|
|
|
font-size: 18rpx;
|
|
|
|
line-height: 20rpx;
|
|
|
|
color: #fff;
|
|
|
|
width: 32rpx;
|
|
|
|
height: 32rpx;
|
|
|
|
border: 1px solid #DEDEDE;
|
|
|
|
border-radius: 8rpx;
|
|
|
|
&.active{
|
|
|
|
background: #2D81FF;
|
|
|
|
border: 1px solid #2D81FF;
|
|
|
|
}
|
|
|
|
text{
|
|
|
|
font-size: 18rpx;
|
|
|
|
line-height: 20rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.add_li_tit{
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: #545D71;
|
|
|
|
line-height: 43rpx;
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
width: 100%;
|
|
|
|
height: 230rpx;
|
|
|
|
background: #F5F6F8;
|
|
|
|
padding: 20rpx;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
.add_li_content{
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: #A6A9B1;
|
|
|
|
line-height: 43rpx;
|
|
|
|
:deep(.textarea-placeholder) {
|
|
|
|
color: #979797;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.column {
|
|
|
|
flex-direction: column;
|
|
|
|
.cell-label {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.cell-content {
|
|
|
|
margin-top: 20rpx;
|
|
|
|
width: 100%;
|
|
|
|
height: 120rpx;
|
|
|
|
letter-spacing:0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.bz_add{
|
|
|
|
|
|
|
|
|
|
|
|
.footer {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 99;
|
|
|
|
width: 100%;
|
|
|
|
// position: fixed;
|
|
|
|
// bottom: 0;
|
|
|
|
// background: #f8f8f8;
|
|
|
|
// z-index: 800;
|
|
|
|
// left: 0;
|
|
|
|
padding: 30rpx 0;
|
|
|
|
view{
|
|
|
|
font-size: 32rpx;
|
|
|
|
color: #FFFFFF;
|
|
|
|
width: 100%;
|
|
|
|
height: 90rpx;
|
|
|
|
background-color: #fff;
|
|
|
|
padding: 16rpx 25rpx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
.btn {
|
|
|
|
flex: 1;
|
|
|
|
height: 88rpx;
|
|
|
|
background: #2D81FF;
|
|
|
|
border-radius: 10rpx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
.del_btn{
|
|
|
|
margin-top: 20rpx;
|
|
|
|
border-radius: 44rpx;
|
|
|
|
line-height: 88rpx;
|
|
|
|
font-size: 34rpx;
|
|
|
|
font-family: PingFang SC;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #FFFFFF;
|
|
|
|
text-align: center;
|
|
|
|
&.del {
|
|
|
|
background: #EBEBEB;
|
|
|
|
color: #323232;
|
|
|
|
}
|
|
|
|
& + .btn {
|
|
|
|
margin-left: 20rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style> |
|
|
\ No newline at end of file |
...
|
...
|
|