| | |
| | | <template> |
| | | <div class="questionnaire"> |
| | | <div class="CONTENT"> |
| | | <div class="CONTENT" v-if="!accomplish"> |
| | | <div class="title">{{ taskname ? taskname : "问卷" }}</div> |
| | | <div class="preview-left"> |
| | | <!-- 单选 --> |
| | |
| | | </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> |
| | | |
| | |
| | | questionList: null, |
| | | revisitAfter: null, |
| | | dialogVisible:false, |
| | | Endornot: true, |
| | | accomplish:true, |
| | | // 前端公钥 |
| | | publicKey: |
| | | "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKR0yHv0rbJWQE+Sc7/FwpW66qMd9qX2k6z+SDgkSdxWh/1GbBoAP7bDQQRF6vXmoKsD2ya42H6XRLSDXAoayuMCAwEAAQ== ", |
| | |
| | | (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) { |
| | |
| | | if (this.revisitAfter) { |
| | | this.dialogVisible=true |
| | | } |
| | | this.accomplish=true; |
| | | this.$modal.msgSuccess("提交成功"); |
| | | } |
| | | }); |
| | |
| | | form.svyLibTemplateScriptVOS = arr; |
| | | Cachequestionnaire(form).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("提交成功"); |
| | | if (subm) { |
| | | this.submitForm(); |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | ::v-deep.el-alert--warning.is-light { |
| | | background-color: #fbf9f3; |
| | | color: #ffba00; |
| | | } |
| | | ::v-deep{ |
| | | .el-alert__title { |
| | | font-size: 18px; |
| | | line-height: 18px; |
| | | } |
| | | } |
| | | </style> |