Tcsm
2023-08-01 1beebc6d565aacfae90235d14bcd4ad79aa4e79d
完善相应模块的电子文件与详情显示问题
7个文件已修改
97 ■■■■■ 已修改文件
ruoyi-ui/src/api/memo/index.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/doctor/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/honor/honorInfo.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/honor/index.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/self/memo.vue 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/self/memoInfo.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/wish/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/api/memo/index.js
@@ -9,6 +9,14 @@
  })
}
// 根据id查询记录
export function getNote(query) {
  return request({
    url: '/zSelfNote',
    method: 'get',
    params: query
  })
}
//新增记录
export function addNote(data)
{
ruoyi-ui/src/views/doctor/index.vue
@@ -230,15 +230,16 @@
                 alt=""
                 style="width: 35px; height: 35px;"
                 fit="cover"
                  v-if="scope.row.url !== ','"
                   v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)"
               >
        <img
                   v-else
                 class="el-upload-list__item-thumbnail"
                 src="../../assets/images/deviceA.png"
                 alt=""
                 style="width: 35px; height: 35px;"
                 fit="cover"
                  v-if="scope.row.url ===',' "
        ></div>
             </template>
          </el-table-column>
ruoyi-ui/src/views/honor/honorInfo.vue
@@ -17,12 +17,12 @@
          <div>
            <el-container>
              <el-row>
                <el-cow :span="8">
                  <el-form-item label="时间" prop="createTime" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
                    <el-input v-model="formData.createTime" placeholder="请输入时间" clearable :style="{width: '100%'}" :disabled="dsb">
                    </el-input>
                  </el-form-item>
                </el-cow>
<!--                <el-cow :span="8">-->
<!--                  <el-form-item label="时间" prop="createTime" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">-->
<!--                    <el-input v-model="formData.createTime" placeholder="请输入时间" clearable :style="{width: '100%'}" :disabled="dsb">-->
<!--                    </el-input>-->
<!--                  </el-form-item>-->
<!--                </el-cow>-->
                <el-cow :span="8">
                  <el-form-item label="类别" prop="type" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
                    <el-input v-model="formData.type" placeholder="请输入类别" clearable :style="{width: '100%'}" :disabled="dsb">
ruoyi-ui/src/views/honor/index.vue
@@ -179,10 +179,10 @@
    <el-table v-loading="loading" :data="honorList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" :reserve-selection="true" width="25"  align="center" />
      <el-table-column fixed label="序号" sortable type="index" align="center" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/>
      <el-table-column label="时间" prop="createTime" sortable width="120" align="center">
<!--      <el-table-column label="时间" prop="createTime" sortable width="120" align="center">-->
        <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '————'}}</template>
      </el-table-column>
<!--        <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '————'}}</template>-->
<!--      </el-table-column>-->
      <el-table-column label="类别" prop="type" sortable :show-overflow-tooltip="true" width="120" align="center" >
<!--        <template slot-scope="scope">{{scope.row.type? scope.row.type: '————'}}</template>-->
        <template slot-scope="scope">{{ getSrc(scope.row.type) }}</template>
@@ -214,15 +214,16 @@
            alt=""
            style="width: 35px; height: 35px;"
            fit="cover"
            v-if="scope.row.url !== ','"
              v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)"
          >
          <img
              v-else
            class="el-upload-list__item-thumbnail"
            src="../../assets/images/deviceA.png"
            alt=""
            style="width: 35px; height: 35px;"
            fit="cover"
            v-if="scope.row.url ===',' "
          ></div>
        </template>
      </el-table-column>
@@ -270,10 +271,10 @@
    <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
      <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px">
        <el-form-item label="时间" prop="createTime">
          <el-input v-model="formDat.createTime" type='date' placeholder='选择日期' clearable :style="{width: '100%'}" >
          </el-input>
        </el-form-item>
<!--        <el-form-item label="时间" prop="createTime">-->
<!--          <el-input v-model="formDat.createTime" type='date' placeholder='选择日期' clearable :style="{width: '100%'}" >-->
<!--          </el-input>-->
<!--        </el-form-item>-->
<!--        <el-form-item label="获得时间" prop="happenTime">-->
<!--          <el-date-picker v-model='formDat.happenTime' type='date' placeholder='选择日期'></el-date-picker>-->
<!--        </el-form-item>-->
ruoyi-ui/src/views/self/memo.vue
@@ -1,15 +1,21 @@
<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
      <el-form-item label="" prop="phone wx qq twitter isAlways remark" >
        <el-input
          v-model:phone="queryParams.phone"
          placeholder="在“个人记事本”中搜索"
          clearable
<!--      -->
<!--        <el-input-->
<!--          v-model:phone="queryParams.phone"-->
<!--          placeholder=""-->
<!--          clearable-->
<!--          style="width: 240px"-->
<!--          @keyup.enter.native="handleQuery">-->
<!--          <i slot="prefix" class="el-input__icon el-icon-search"></i>-->
<!--        </el-input>-->
<!--      -->
      <el-form-item label="" prop="address title remark people happenTime" >
        <el-input v-model="keyword" placeholder="在“个人记事本”中搜索" clearable
          style="width: 240px"
          @keyup.enter.native="handleQuery">
          <i slot="prefix" class="el-input__icon el-icon-search"></i>
        </el-input>
        <i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
      </el-form-item>
      <el-form-item label="时间" prop="happenTime">
@@ -360,7 +366,7 @@
      dsb:true,
      btn:false,
      fit:['fill'],
      keyword:'',
      formDat: {
        //个人记事本详情
        id:undefined,
@@ -383,7 +389,7 @@
        people:undefined,
        address:undefined,
        title:undefined,
        remark:undefined
      },
      // searchVal:"",
@@ -432,6 +438,7 @@
    //   this.formDat[i] = this.contactList[i];
    // }
  },
  methods: {
    // 取消按钮
    cancelData() {
ruoyi-ui/src/views/self/memoInfo.vue
@@ -1,7 +1,9 @@
<template>
  <div class="app-container">
    <div class="form-header mt">
      <h4 class="dt h4">个人记事本详细信息 </h4>
      <el-page-header @back="goBack" content="个人记事本详细信息">
      </el-page-header>
<!--      <h4 class="dt h4"> </h4>-->
    </div>
    <div>
      <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-position="left" label-width="100px">
@@ -97,7 +99,7 @@
          multiple
          list-type="picture-card"
          :on-preview="handleFileCardPreview"
          :on-remove="handleRemove"
          :on-remove="handleRemoveFile"
          :http-request="requestUpload"
          :show-file-list="true"
        >
@@ -121,9 +123,8 @@
                </span>
                <span
                  v-if="isShow"
                  @click="handleRemove(file)"
                  class="el-upload-list__item-delete"
                  @click="handleDownload(file.url)"
                >
                  <i class="el-icon-download"></i>
                </span>
@@ -168,14 +169,12 @@
      cdi:"个人记事本详情",
      udi:"个人记事本详情",
      fot:[".jpg",".jif","png"],
      fileList:[
      ],
      fileListOther:[
      ],
      fileList:[],
      fileListOther:[],
      dsb:true,
      btn:false,
      isShow:true,
      // 个记事本表格数据
      noteList: [],
      formData: {
@@ -245,7 +244,7 @@
    let _this = this
    if (id) {
      this.loading = true;
      getNote(id).then((response) => {
      getNote({id}).then((response) => {
        this.formData = response.data;
        let paths = response.data.url.split(",");
        for(let i = 0; i < paths.length; i++)
@@ -308,6 +307,7 @@
          }
        }
      })
      this.goBack()
    },
    resetForm() {
      this.$refs['elForm'].resetFields()
@@ -362,12 +362,18 @@
        saveAs(blob, filename)
      })
    },
    goBack() {
      this.$router.go(-1);
      this.$router.push({ path: "/self/self/memo" });
    },
    handleEdit()
    {
      this.dsb = false
      // this.btn = true
      this.isShow=false
    },
    requestUpload(params)
    {
      var file = params.file;
ruoyi-ui/src/views/wish/index.vue
@@ -65,6 +65,7 @@
          range-separator="-"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          @keyup.enter.native="handleQuery"
        ></el-date-picker>
      </el-form-item>
@@ -794,6 +795,7 @@
    /** 导入模板下载按钮操作 */
    handleExportModel() {
      this.download('/zIdea/model', {
      }, `zIdea_model_${new Date().getTime()}.xlsx`)
    },