linwenling
2023-08-09 c7d2fb7b04ea184df7c03a615ccda9bd172bb527
ruoyi-ui/src/views/healthy/healthyInfo.vue
@@ -1,7 +1,7 @@
<template>
  <div class="app-container">
    <div class="form-header mt">
      <h4 class="dt h4">隐私详细信息 </h4>
      <h4 class="dt h4">健康详细信息 </h4>
    </div>
@@ -51,14 +51,14 @@
          >
          <span class="el-upload-list__item-actions">
          <span
            v-if="isShow"
            class="el-upload-list__item-preview"
            @click="handlePictureCardPreview(file)"
          >
            <i class="el-icon-zoom-in"></i>
          </span>
          <span
            v-if="isShow"
            class="el-upload-list__item-delete"
            @click="handleDownload(file.url)"
          >
@@ -101,14 +101,14 @@
          >
          <span class="el-upload-list__item-actions">
                  <span
                    v-if="isShow"
                    class="el-upload-list__item-preview"
                    @click="handleFileCardPreview(file)"
                  >
                    <i class="el-icon-zoom-in"></i>
                  </span>
                  <span
                    v-if="isShow"
                    class="el-upload-list__item-delete"
                    @click="handleDownload(file.url)"
                  >
@@ -129,6 +129,7 @@
      </el-upload>
      <el-form-item size="large">
        <el-button v-if="isShow" type="primary" @click="submitForm" :disabled="dsb">修改</el-button>
      </el-form-item>
@@ -141,7 +142,7 @@
  </div>
</template>
<script>
import {getSecretInfo,  uploadPic, download, updateSecret} from "@/api/secret/index";
import {getHealthInfo,  uploadPic, download, updateSecret} from "@/api/healthy/index";
import {addRole, updateRole} from "@/api/system/role";
import {blobValidate} from "@/utils/ruoyi";
import errorCode from "@/utils/errorCode";
@@ -152,8 +153,8 @@
  props: [],
  data() {
    return {
      cdi:"隐私详细信息",
      udi:"隐私信息修改",
      cdi:"健康详细信息",
      udi:"健康信息修改",
      fot:[".jpg",".jif"],
      fileList:[
      ],
@@ -246,12 +247,12 @@
      this.btn= jd
      this.dsb = !jd
      this.isShow=true
      document.title = "修改隐私详细信息";
      this.$route.meta.title = "修改隐私详细信息";//列表的名称
      document.title = "修改健康详细信息";
      this.$route.meta.title = "修改健康详细信息";//列表的名称
    }
    else{
      document.title = "查看隐私详细信息";
      this.$route.meta.title = "查看隐私详细信息";//列表的名称
      document.title = "查看健康详细信息";
      this.$route.meta.title = "查看健康详细信息";//列表的名称
      this.isShow=false
    }
@@ -259,7 +260,7 @@
    if (id) {
      this.loading = true;
      getSecretInfo(query).then((response) => {
      getHealthInfo({id}).then((response) => {
        this.formData = response.data;
        let paths = response.data.url.split(",");
        for(let i = 0; i < paths.length; i++)