Tcsm
2023-07-30 b5a8a482a5eede229ffea6b8de6ba2b8f06ac0c4
除健康外,点击详情页可以获取对应数据
10个文件已修改
125 ■■■■■ 已修改文件
ruoyi-ui/src/api/healthy/index.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/api/honor/index.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/api/secret/index.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/api/selfeconomy/index.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/api/wish/index.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/healthy/healthyInfo.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/honor/honorInfo.vue 83 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/secret/secretInfo.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/wish/wishInfo.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/api/healthy/index.js
@@ -12,12 +12,12 @@
}
// // 根据id查询所有家庭设备详细信息
export function getHealthInfo(id) {
// // 根据id查询详细信息
export function getHealthInfo(query) {
  return request({
    url: '/zYearInfo/' + id,
    url: '/zYearInfo' ,
    method: 'get',
    params: query
  })
}
ruoyi-ui/src/api/honor/index.js
@@ -9,11 +9,11 @@
  })
}
// 根据id查询记录
export function getHonor(id) {
export function getHonor(query) {
  return request({
    url: '/zHonor/'+ id,
    url: '/zHonor',
    method: 'get',
    params: query
  })
}
//新增荣誉证书
ruoyi-ui/src/api/secret/index.js
@@ -13,11 +13,11 @@
// 根据id查询所有收支台账信息
export function getSecretInfo(id) {
export function getSecretInfo(query) {
  return request({
    url: '/zSecret/' + id,
    url: '/zSecret',
    method: 'get',
    params: query
  })
}
//新增收支台账
ruoyi-ui/src/api/selfeconomy/index.js
@@ -13,11 +13,11 @@
// 根据id查询所有个人财产信息
export function getSelfEconomyInfo(id) {
export function getSelfEconomyInfo(queryParameters) {
  return request({
    url: '/zProperty/'+ id,
    url: '/zProperty',
    method: 'get',
    params: query
    params: queryParameters
  })
}
//新增
ruoyi-ui/src/api/wish/index.js
@@ -10,12 +10,12 @@
}
// 根据id查询
export function getWish(id) {
export function getWish(queryParameters) {
  return request({
    url: '/zIdea/' + id,
    url: '/zIdea',
    method: 'get',
  })
    params: queryParameters
  });
}
//新增
ruoyi-ui/src/views/healthy/healthyInfo.vue
@@ -259,7 +259,7 @@
    if (id) {
      this.loading = true;
      getSecretInfo(query).then((response) => {
      getSecretInfo({id}).then((response) => {
        this.formData = response.data;
        let paths = response.data.url.split(",");
        for(let i = 0; i < paths.length; i++)
ruoyi-ui/src/views/honor/honorInfo.vue
@@ -307,72 +307,33 @@
    let _this = this
    if (id) {
      this.loading = true;
      // getHonor(id).then((response) => {
      //   this.formData = response.data;
      //   let paths = response.data.url.split(",");
      //   for(let i = 0; i < paths.length; i++)
      //   {
      //     if(paths[i]!="") {
      //
      //       let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
      //
      //       if (_this.fot.includes(pth) === true)
      //         _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
      //       else {
      //       // alert(paths[i])
      //       let nms = paths[i].split("\/")
      //       let nm = nms[nms.length - 1]
      //       _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
      //       }
      //     }
      //   }
      //   this.loading = false;
      // });
      getHonor({id}).then((response) => {
        this.formData = response.data;
        let paths = response.data.url.split(",");
        for(let i = 0; i < paths.length; i++)
        {
          if(paths[i]!="") {
            let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
            if (_this.fot.includes(pth) === true)
              _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
            else {
            // alert(paths[i])
            let nms = paths[i].split("\/")
            let nm = nms[nms.length - 1]
            _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
            }
          }
        }
        this.loading = false;
      });
      this.fetchData()
      this.getCateInfor()
    }
      //以下为test
    // if (id){
    //   this.loading =true;
    //   getHonor(id).then((response)=> {
    //   this.formData =response.data;
    //   let paths=response.data.url.split(" ");
    //   for(let i = 0; i < paths.length; i++){
    //     if(paths[i]!=""){
    //       let pth = paths[i].substr(paths[i].length - 4, paths[i].length);
    //       if (_this.fot.includes(pth)) {
    //         _this.fileList.push({
    //           name: paths[i],
    //           url: process.env.VUE_APP_BASE_TRUE_API + paths[i],
    //         });
    //       } else {
    //             // alert(paths[i])
    //             let nms = paths[i].split("\/")
    //             let nm = nms[nms.length - 1]
    //             _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
    //             }
    //         }
    //       }
    //       this.loading = false;
    //     });
    //
    //   // getHonor(id).then(response => {
    //   //     //  alert(123)
    //   //     //  alert(123)
    //   //     //   console.log(response.data)
    //   //     //  alert(90)
    //   //     this.formData = response.data;
    //   //     this.isShow_1=true
    //   //     //  alert(this.rootList[0].url)
    //   //     //   this.total = response.data.total;
    //   //     this.loading = false;
    //   //   }
    //   // );
    //   this.getCateInfor()
    //
    // }
  },
  mounted() {},
  methods: {
ruoyi-ui/src/views/secret/secretInfo.vue
@@ -266,7 +266,7 @@
      let _this = this
      if (id) {
        this.loading = true;
        getSecretInfo(id).then((response) => {
        getSecretInfo({id}).then((response) => {
          this.formData = response.data;
          let paths = response.data.url.split(",");
          for(let i = 0; i < paths.length; i++)
ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
@@ -332,7 +332,7 @@
      let _this = this
      if (id) {
        this.loading = true;
        getSelfEconomyInfo(id).then((response) => {
        getSelfEconomyInfo({id}).then((response) => {
          this.formData = response.data;
          let paths = response.data.url.split(",");
          for(let i = 0; i < paths.length; i++)
ruoyi-ui/src/views/wish/wishInfo.vue
@@ -294,7 +294,7 @@
    let _this = this
    if (id) {
      this.loading = true;
      getWish(id).then((response) => {
      getWish({id}).then((response) => {
        this.formData = response.data;
        let paths = response.data.url.split(",");
        for(let i = 0; i < paths.length; i++)