From a85494cc5769c3dab7f210c012fba1c45103e779 Mon Sep 17 00:00:00 2001 From: feige <feige@qq.com> Date: 星期二, 06 六月 2023 16:16:55 +0800 Subject: [PATCH] 修改了不会重复页面的一些bug --- ruoyi-ui/src/views/honor/honorInfo.vue | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ruoyi-ui/src/views/honor/honorInfo.vue b/ruoyi-ui/src/views/honor/honorInfo.vue index 2ad5826..d424aa9 100644 --- a/ruoyi-ui/src/views/honor/honorInfo.vue +++ b/ruoyi-ui/src/views/honor/honorInfo.vue @@ -196,7 +196,7 @@ import errorCode from "@/utils/errorCode"; import {Message} from "element-ui"; import { download,uploadPic} from "@/api/doctor/index"; -import {listHonor,updateHonor} from "@/api/honor/index"; +import {listHonor,updateHonor,getHonor} from "@/api/honor/index"; export default { components: {}, @@ -307,7 +307,7 @@ let _this = this if (id) { this.loading = true; - listHonor(id).then((response) => { + getHonor(id).then((response) => { this.formData = response.data; let paths = response.data.url.split(","); for(let i = 0; i < paths.length; i++) @@ -335,16 +335,16 @@ mounted() {}, methods: { /** 鏌ヨ绫诲埆淇℃伅 */ - // getCateInfor() - // { - // let _this = this - // getCategory().then(response=>{ - // - // response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ - // _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) - // }) - // }) - // }, + getCateInfor() + { + let _this = this + getCategory().then(response=>{ + + response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ + _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) + }) + }) + }, submitForm() { let ul = this.fileList.map(function (elem){ return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") -- Gitblit v1.9.1