提交 a744c253 authored 作者: wangjialong209's avatar wangjialong209

关联试题

上级 bc9d56f9
......@@ -142,7 +142,7 @@ export default {
get_email_code({ email: email }).then(res => {
console.log('获取验证码回调');
console.log(res);
this.retrieve_params.verification_key = res.key || '';
this.retrieve_params.verification_key = res.key;
const _that = this;
this.is_repeated_click = true;
// let time = 60, timer = null;
......@@ -167,12 +167,17 @@ export default {
resettingSubmit() {
this.$refs.retrieveForm.validate((valid) => {
if (valid) {
let params = this.$handleParams({
let params = this.$removeProperty({
verification_key: this.retrieve_params.verification_key,
password: this.retrieve_params.affirm_password,
password: this.$Aesencrypt(this.retrieve_params.affirm_password),
verification_code: this.retrieve_params.verification_code,
})
console.log('要提交的参数');
console.log(params);
email_updata_user_password(params).then(res => {
if (res.code == 200) {
this.$message.success('修改成功')
}
console.log('邮箱修改密码');
console.log(res);
})
......
......@@ -15,9 +15,9 @@
<el-card>
<email-retrieve @retrieveType="retrieveType"></email-retrieve>
</el-card>
<!-- <el-card>
<el-card>
<phone-retrieve @retrieveType="retrieveType"></phone-retrieve>
</el-card> -->
</el-card>
</div>
</div>
......
......@@ -27,7 +27,7 @@
<el-select v-model="table_info.examination_questions_id" placeholder="请选择"
@change="getExaminationQuestionsDetail(table_info.examination_questions_id)">
<el-option v-for="item in examination_questions_all_list" :key="item.value" :label="item.label"
:value="item.value">
:value="item.value" :disabled="detail_id == item.value">
</el-option>
</el-select>
</div>
......@@ -75,7 +75,7 @@
<div class="el-upload__tip" slot="tip" v-if="!table_info.image || table_info.image == '/'">
只能上传jpg/png文件,且不超过20MB</div>
<div class="imng_view_box" v-if="table_info.image && table_info.image != '/'">
<img :src="IP + table_info.image" alt="">
<img :src="IP + table_info.image + '?key=' + new Date().getTime()" alt="">
</div>
</el-upload>
</div>
......@@ -153,7 +153,7 @@ export default {
//试题详情列表
examination_question_detail_all_list: [],
detail_id: null,
};
},
......@@ -161,6 +161,7 @@ export default {
computed: {},
created() {
this.detail_id = this.$route.query.id;
this.father_id = this.$route.query.id;
this.position_data = JSON.parse(JSON.stringify(this.position_datas));
this.province_data = JSON.parse(JSON.stringify(this.province_datas));
......@@ -170,6 +171,8 @@ export default {
this.table_info = JSON.parse(JSON.stringify(this.table_data));
},
mounted() {
console.log('接收的数据');
console.log(this.table_info);
let id = this.table_info.examination_questions_id;
if (id) {
this.getExaminationQuestionsDetail(id);
......
......@@ -29,9 +29,10 @@
<template slot-scope="scope">
<el-popover placement="right" trigger="click">
<div class="amplify_img_box">
<img :src="IP + scope.row.image" alt="">
<img :src="IP + scope.row.image + '?key=' + new Date().getTime()" alt="">
</div>
<img class="small_picture" slot="reference" :src="IP + scope.row.image" alt="">
<img class="small_picture" slot="reference" :src="IP + scope.row.image + '?key=' + new Date().getTime()"
alt="">
</el-popover>
</template>
</el-table-column>
......@@ -352,7 +353,15 @@ export default {
console.log(item);
//获取详情
let { id, area, fraction, province_id, breed_name, grades_code, explain_in_detail, image, examination_questions_id, examination_question_detail_id } = { ...item };
this.detailed_information = { id, area, fraction, province_id, breed_name, grades_code, explain_in_detail, image, examination_questions_id, examination_question_detail_id };
this.detailed_information = { id, area, fraction, province_id, breed_name, grades_code, explain_in_detail, image };
/* examination_questions_id, examination_question_detail_id */
if (item.quote) {
this.detailed_information['examination_questions_id'] = item.quote.examination_questions_id;
this.detailed_information['examination_question_detail_id'] = item.quote.id;
} else {
this.detailed_information['examination_questions_id'] = null;
this.detailed_information['examination_question_detail_id'] = null;
}
this.detailed_information['question_no'] = index + 1;
this.is_dialogVisible = true;
},
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论