Tcsm
2023-05-29 ebe31a83ee1c76bfc6546e8b60ae5cf90c554346
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,"")