| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import {getHealthInfo, uploadPic, download, updateSecret} from "@/api/healthy/index"; |
| | | import {getHealthInfo, uploadPic, download, updateHealth} from "@/api/healthy/index"; |
| | | import {addRole, updateRole} from "@/api/system/role"; |
| | | import {blobValidate} from "@/utils/ruoyi"; |
| | | import errorCode from "@/utils/errorCode"; |
| | |
| | | |
| | | if (valid) { |
| | | if (this.formData.id != undefined) { |
| | | updateSecret(this.formData).then(response => { |
| | | updateHealth(this.formData).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | // this.open = false; |
| | | this.btn=false |
| | |
| | | }) |
| | | |
| | | }, |
| | | |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download('/zYearInfo/export', { |
| | | ...this.queryParams |
| | | }, `zYearInfo${new Date().getTime()}.xlsx`) |
| | | } |
| | | |
| | | } |
| | | } |