Commit 61ac6670 authored by zhengke's avatar zhengke

修改

parent f15b8a54
...@@ -10,42 +10,47 @@ ...@@ -10,42 +10,47 @@
<view class="QuestionInner" v-for="(item,index) in dataObj.CourseArrangementList" :key="index"> <view class="QuestionInner" v-for="(item,index) in dataObj.CourseArrangementList" :key="index">
{{item.Title}} {{item.Title}}
<view style="margin:20rpx 0 30rpx 0;"> <view style="margin:20rpx 0 30rpx 0;">
<van-rate v-model="item.ScoreNum" :size="25" color="#ffd21e" void-icon="star" void-color="#eee" /> <van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e"
void-icon="star" void-color="#eee" />
</view> </view>
</view> </view>
<view class="QuestionTitle">教师授课情形</view> <view class="QuestionTitle">教师授课情形</view>
<view class="QuestionInner" v-for="(item,index) in dataObj.TeachersSituationList" :key="index"> <view class="QuestionInner" v-for="(item,index) in dataObj.TeachersSituationList" :key="index">
{{item.Title}} {{item.Title}}
<view style="margin:20rpx 0 30rpx 0;"> <view style="margin:20rpx 0 30rpx 0;">
<van-rate v-model="item.ScoreNum" :size="25" color="#ffd21e" void-icon="star" void-color="#eee" /> <van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e"
void-icon="star" void-color="#eee" />
</view> </view>
</view> </view>
<view class="QuestionTitle">助教老师</view> <view class="QuestionTitle">助教老师</view>
<view class="QuestionInner" v-for="(item,index) in dataObj.TeachingAssistantList" :key="index"> <view class="QuestionInner" v-for="(item,index) in dataObj.TeachingAssistantList" :key="index">
{{item.Title}} {{item.Title}}
<view style="margin:20rpx 0 30rpx 0;"> <view style="margin:20rpx 0 30rpx 0;">
<van-rate v-model="item.ScoreNum" :size="25" color="#ffd21e" void-icon="star" void-color="#eee" /> <van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e"
void-icon="star" void-color="#eee" />
</view> </view>
</view> </view>
<view class="QuestionTitle">学习环境</view> <view class="QuestionTitle">学习环境</view>
<view class="QuestionInner" v-for="(item,index) in dataObj.LearningEnvironmentList" :key="index"> <view class="QuestionInner" v-for="(item,index) in dataObj.LearningEnvironmentList" :key="index">
{{item.Title}} {{item.Title}}
<view style="margin:20rpx 0 30rpx 0;"> <view style="margin:20rpx 0 30rpx 0;">
<van-rate v-model="item.ScoreNum" :size="25" color="#ffd21e" void-icon="star" void-color="#eee" /> <van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e"
void-icon="star" void-color="#eee" />
</view> </view>
</view> </view>
<view class="QuestionTitle">意见与建议</view> <view class="QuestionTitle">意见与建议</view>
<view class="QuestionInner" v-for="(item,index) in dataObj.OpinionandsuggestionList" :key="index"> <view class="QuestionInner" v-for="(item,index) in dataObj.OpinionandsuggestionList" :key="index">
<view style="margin-top:20rpx;">
<view style="margin:20rpx 0 30rpx 0;"> <textarea type="text" v-model="item.TextContent" class="input textarea" placeholder="请填写建议"
{{item.TextContent}} placeholder-style="textarea-placeholder" :maxlength="300" />
</view> </view>
</view> </view>
</view> </view>
<view style="margin-top:60rpx;" class="btnDiv"> <view style="margin-top:30rpx;" class="btnDiv">
<van-button type="primary" style="width:100%;">提交</van-button> <van-button type="primary" style="width:100%;" @click="saveQuestion">提交</van-button>
</view> </view>
<van-toast id="van-toast" />
</view> </view>
</template> </template>
<script> <script>
...@@ -61,7 +66,8 @@ ...@@ -61,7 +66,8 @@
provide, provide,
} from "vue"; } from "vue";
import { import {
querySurveyInfo querySurveyInfo,
saveGuestSurvey
} from "../../api/activity"; } from "../../api/activity";
export default { export default {
components: {}, components: {},
...@@ -75,11 +81,7 @@ ...@@ -75,11 +81,7 @@
let data = reactive({ let data = reactive({
msg: {}, msg: {},
count: 5, count: 5,
Question4: [ dataObj: {}
'课程中同学间的学习气氛,满意程度为?',
'针对本课程提供之学习环境,整体满意程度为?'
],
dataObj:{},
}) })
let methods = { let methods = {
...@@ -90,10 +92,27 @@ ...@@ -90,10 +92,27 @@
let res = await querySurveyInfo(qMsg); let res = await querySurveyInfo(qMsg);
if (res) { if (res) {
//this.loading = false; //this.loading = false;
this.dataObj=res.data; this.dataObj = res.data;
console.log(this.dataObj) console.log(this.dataObj)
} }
}, },
//打星星改变
onChange(item) {
item.ScoreNum = item.ScoreNum.detail;
},
//保存数据
saveQuestion(){
var UserInfo = uni.getStorageSync('userInfo');
this.dataObj.StudentId = UserInfo.Id;
let res = saveGuestSurvey(this.dataObj).then(res => {
if (res.Code == 1) {
uni.showToast({
title: res.Message,
icon: "none",
});
}
});
}
} }
onMounted(() => {}) onMounted(() => {})
let that = methods; let that = methods;
...@@ -109,7 +128,11 @@ ...@@ -109,7 +128,11 @@
.btnDiv /deep/ .van-button--normal { .btnDiv /deep/ .van-button--normal {
width: 100%; width: 100%;
} }
.textarea{
border: 1px solid #d1d1d1;
width: 93%;
padding: 20rpx;
}
.questionNaire { .questionNaire {
min-height: 100vh; min-height: 100vh;
background: #F5F5F5; background: #F5F5F5;
......
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