WXL
2024-09-09 5c35457d2cc1fd0dcf8de9f3de838d58e8296cb8
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>