| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="form-header mt"> |
| | | <h4 class="dt h4">隐私详细信息 </h4> |
| | | <h4 class="dt h4">健康详细信息 </h4> |
| | | |
| | | </div> |
| | | |
| | |
| | | > |
| | | <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)" |
| | | > |
| | |
| | | > |
| | | <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)" |
| | | > |
| | |
| | | |
| | | </el-upload> |
| | | |
| | | |
| | | <el-form-item size="large"> |
| | | <el-button v-if="isShow" type="primary" @click="submitForm" :disabled="dsb">修改</el-button> |
| | | </el-form-item> |
| | |
| | | </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"; |
| | |
| | | props: [], |
| | | data() { |
| | | return { |
| | | cdi:"隐私详细信息", |
| | | udi:"隐私信息修改", |
| | | cdi:"健康详细信息", |
| | | udi:"健康信息修改", |
| | | fot:[".jpg",".jif"], |
| | | fileList:[ |
| | | ], |
| | |
| | | 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 |
| | | } |
| | | |
| | |
| | | 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++) |