From 5c35457d2cc1fd0dcf8de9f3de838d58e8296cb8 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 09 九月 2024 18:26:33 +0800 Subject: [PATCH] 测试完成 --- src/views/outsideChainwt.vue | 53 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 44 insertions(+), 9 deletions(-) diff --git a/src/views/outsideChainwt.vue b/src/views/outsideChainwt.vue index 483c35e..6d86ebc 100644 --- a/src/views/outsideChainwt.vue +++ b/src/views/outsideChainwt.vue @@ -1,6 +1,6 @@ <template> <div class="questionnaire"> - <div class="CONTENT"> + <div class="CONTENT" v-if="!accomplish"> <div class="title">{{ taskname ? taskname : "闂嵎" }}</div> <div class="preview-left"> <!-- 鍗曢�� --> @@ -19,6 +19,7 @@ @change="handleOptionChange($event, index, item)" > <el-radio + border v-for="(items, index) in item.svyLibTemplateTargetoptions" :key="index" :label="items.optioncontent" @@ -41,6 +42,7 @@ @change="updateScore($event, index, item)" > <el-checkbox + border @change="$forceUpdate()" v-for="(items, indexs) in item.svyLibTemplateTargetoptions" :key="indexs" @@ -79,14 +81,29 @@ </el-form-item> </el-form> </div> - <el-dialog + <div class="CONTENT" v-else> + <div class="preview-left" style="margin-top: 100px"> + <div + style=" + font-size: 24px; + color: #175997; + font-weight: 600; + margin-bottom: 10px; + " + > + 鎰熻阿鎮ㄧ殑閰嶅悎! + </div> + <div style="font-size: 20px">{{ revisitAfter }}</div> + </div> + </div> + <!-- <el-dialog :visible.sync="dialogVisible" width="50%" > <div> <el-alert :title="revisitAfter" type="success"> </el-alert> </div> - </el-dialog> + </el-dialog> --> </div> </template> @@ -105,7 +122,9 @@ patid: 265823, questionList: null, revisitAfter: null, - dialogVisible:false, + dialogVisible: false, + Endornot: true, + accomplish: true, // 鍓嶇鍏挜 publicKey: "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKR0yHv0rbJWQE+Sc7/FwpW66qMd9qX2k6z+SDgkSdxWh/1GbBoAP7bDQQRF6vXmoKsD2ya42H6XRLSDXAoayuMCAwEAAQ== ", @@ -147,6 +166,7 @@ (res) => { if (res.code == 200) { this.questionList = res.data; + this.accomplish = res.data.submit; if (this.questionList[0]) { this.questionList.forEach((item) => { if (item.scriptResult && item.scriptType != 2) { @@ -214,8 +234,9 @@ Submitaquestionnaire(form).then((res) => { if (res.code == 200) { if (this.revisitAfter) { - this.dialogVisible=true + this.dialogVisible = true; } + this.accomplish = true; this.$modal.msgSuccess("鎻愪氦鎴愬姛"); } }); @@ -239,7 +260,6 @@ form.svyLibTemplateScriptVOS = arr; Cachequestionnaire(form).then((res) => { if (res.code == 200) { - this.$modal.msgSuccess("鎻愪氦鎴愬姛"); if (subm) { this.submitForm(); } @@ -279,7 +299,8 @@ <style lang="scss" scoped> .questionnaire { - background-image: url("../assets/images/chainbackground.jpg"); + // background-image: url("../assets/images/chainbackground.jpg"); + background-color: #DDDDDD; background-size: cover; background-attachment: fixed; /* 淇濇寔鑳屾櫙鍥哄畾 */ background-position: center; @@ -298,9 +319,9 @@ } } .preview-left { - margin: 20px; + margin: 10px; // margin: 20px; - padding: 30px; + padding: 10px; // background: #ffff; border: 1px solid #dcdfe6; -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), @@ -313,4 +334,18 @@ } } } +::v-deep.el-alert--warning.is-light { + background-color: #fbf9f3; + color: #ffba00; +} +::v-deep { + .el-alert__title { + font-size: 18px; + line-height: 18px; + } +} +::v-deep.el-radio.el-radio__label { + font-size: 22px; + line-height: 2; +} </style> -- Gitblit v1.9.3