Commit d6510faf authored by 吴春's avatar 吴春

提交代码

parent 379c7156
......@@ -8,7 +8,7 @@
<div class="text-caption q-mb-lg q-px-md text-grey-6">老师上课质量调查问卷</div>
<div class="row wrap" style="margin-bottom:10px;">
<div class="col-12">
<div style="float:left;">{{saveObj.StudentName}}选择评价的老师:</div>
<div style="float:left;">{{saveObj.StudentName}}选择评价的老师:</div>
<div style="text-decoration:underline;"> {{saveObj.TeacherName}}</div>
</div>
......
......@@ -26,8 +26,25 @@
<div class="col-2 q-table__title">问卷调查信息</div>
<q-space />
<div class="page-option">
<q-btn push flat color="accent" class="q-mr-md bg-accent text-white" icon="edit" label="问卷调查" size="sm" @click="getStudentSurveyImg()">
<q-popup-proxy>
<div style="width:185px;padding:10px;border-radius:8px">
<q-img
:src="qrCodelUrl"
>
<template v-slot:loading>
<div class="text-subtitle1 text-white">
Loading...
</div>
</template>
</q-img>
</div>
</q-popup-proxy>
</q-btn>
<q-btn color="accent" class="q-mr-md" size="sm" icon="add" label="新增" @click="editSurvey(null)" />
</div>
</template>
<template v-slot:bottom>
......@@ -55,6 +72,9 @@
deleteSurvey,
querySurveyTypeEnumList
} from '../../api/common/common'
import {
queryQrCodeImage,//问卷调查二维码生成
} from "../../api/school/index"
import areaForm from '../../components/system/survey-form'
export default {
meta: {
......@@ -113,6 +133,7 @@
areaObjOption: null,
SurveyTypeEnumList: [], //问题类型
ShowList: [{Id:-1,Name:'不限'},{Id:1,Name:'显示'},{Id:0,Name:'不显示'}], //问题类型
qrCodelUrl:"",
}
},
mounted() {
......@@ -128,6 +149,22 @@
this.SurveyTypeEnumList = res.Data;
})
},
//点击生成二维码
getStudentSurveyImg() {
if (this.qrCodelUrl=== "") {
let codeMsg={
pUrl:"system/surveyStudent",
StudentId:0,
StuName:""
}
queryQrCodeImage(codeMsg).then(res => {
if (res.Code == 1) {
this.qrCodelUrl= "data:image/png;base64,"+res.Data
codeMsg={};
}
});
}
},
//删除问卷调查信息
delSurvey(item) {
......
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