fei
4 小时以前 6429b95aa66bfbb214bcadb248b8b7ca5e754368
修改相关代码
3个文件已修改
87 ■■■■ 已修改文件
src/utils/request.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/archiveManager/archiveMaterial/index.vue 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/archiveManager/index.vue 43 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/request.js
@@ -17,7 +17,7 @@
  // axios中请求配置有baseURL选项,表示请求URL公共部分
  baseURL: process.env.VUE_APP_BASE_API,
  // 超时
  timeout: 100000
  timeout: 300000
})
// request拦截器
@@ -43,7 +43,7 @@
      time: new Date().getTime()
    }
    const requestSize = Object.keys(JSON.stringify(requestObj)).length // 请求数据大小
    const limitSize = 5 * 1024 * 1024 // 限制存放数据5M
    const limitSize = 50 * 1024 * 1024 // 限制存放数据5M
    if (requestSize >= limitSize) {
      console.warn(`[${config.url}]: ` + '请求数据大小超出允许的5M限制,无法进行防重复提交验证。')
      return config
@@ -55,7 +55,7 @@
      const s_url = sessionObj.url                  // 请求地址
      const s_data = sessionObj.data                // 请求数据
      const s_time = sessionObj.time                // 请求时间
      const interval = 1000                         // 间隔时间(ms),小于此时间视为重复提交
      const interval = 6000                         // 间隔时间(ms),小于此时间视为重复提交
      if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url) {
        const message = '数据正在处理,请勿重复提交'
        console.warn(`[${s_url}]: ` + message)
src/views/archiveManager/archiveMaterial/index.vue
@@ -21,20 +21,14 @@
                type="textarea"
                rows="2"
                    v-auto-height="{ minRows: 2, maxRows: 10 }"
                v-model="form.creator"
                placeholder="请输入责任者"
                @input="handleCreatorInput"
                @focus="showCreatorSuggestions = true"
                  @focus="(e) => e.target.select()"
                        @keydown.up.prevent="handleKeyUp"
                        @keydown.down.prevent="handleKeyDown"
                        @keydown.enter.prevent="handleKeyEnter"
                        ref="creatorInput"
              />
              <!-- 下拉建议框 -->
              <div
                v-if="showCreatorSuggestions && creatorSuggestions.length > 0"
                v-if="showCreatorSuggestions && creatorSuggestions.length > 0 && false"
                class="title-suggestions"
              >
                <div
@@ -60,13 +54,11 @@
                rows="2"
                v-model="form.title"
                placeholder="请输入文件题名"
                @input="handleTitleInput"
                @focus="showTitleSuggestions = true"
                @blur="handleTitleBlur"
                @focus="(e) => e.target.select()"
              />
              <!-- 下拉建议框 -->
              <div
                v-if="showTitleSuggestions && titleSuggestions.length > 0"
                v-if="showTitleSuggestions && titleSuggestions.length > 0  && false"
                class="title-suggestions"
              >
                <div
@@ -822,6 +814,9 @@
import { updateStatusById } from "@/api/system/records"
import {delArchiverecordstouserByReIdAndUid} from "@/api/system/archiverecordstouser"
  export default {
    name: "Materials",
    data() {
@@ -1070,6 +1065,18 @@
      }
    },
    methods: {
    handleTabKey (event) {
     // 默认行为
     event.preventDefault()
     // 手动全选
     const textarea = event.target
     textarea.select()
     // 如果需要切换到下一个元素,可以手动触发
     // const focusableElements = getFocusableElements()
     // moveFocusToNextElement()
   },
      // 输入事件(示例:可根据输入内容过滤建议列表)
          handleCreatorInput(val) {
            // 重置选中索引
@@ -1135,12 +1142,15 @@
        this.$refs.upload.clearFiles();
        // 关闭上传对话框
        this.importDialogVisible = false;
      //  alert(123)
        // 刷新列表数据
        getFileCount(recordId).then(response=>{
        getFileCount(this.recordId).then(response=>{
          this.fileCut = response.length
    //      alert(98)
         // alert(this.fileCut)
         this.getList();
        })
        this.getList();
      }
    },
     // 打开导入对话框
src/views/archiveManager/index.vue
@@ -378,7 +378,7 @@
            <el-table-column label="操作" align="center" width="190" class-name="small-padding fixed-width">
              <template slot-scope="scope">
                <el-button
                v-if="scope.row.ownData"
                v-if="scope.row.ownData && scope.row.recordStatus!='录入完成'"
                  size="mini"
                  type="text"
@@ -396,7 +396,7 @@
                  v-hasPermi="['system:records:edit']"
                >查看卷内目录</el-button>
                <el-button
                      v-if="userId===1"
                        size="mini"
                        type="text"
@@ -406,7 +406,7 @@
                      >导出备考表</el-button>
                <el-button
                      v-if="userId===1"
                        size="mini"
                        type="text"
@@ -417,7 +417,7 @@
                      <el-button
                            v-if="userId===1"
                              size="mini"
                              type="text"
@@ -723,6 +723,9 @@
        <el-form-item label="备注" prop="remarks">
          <el-input v-model="form.remarks" type="textarea" placeholder="请输入内容" disabled/>
        </el-form-item>
        <el-form-item label="备考表备注" prop="noteRemark">
          <el-input v-model="form.noteRemark" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="历史相关发文号" prop="historicalReferenceNumber">
          <el-input v-model="form.historicalReferenceNumber" placeholder="请输入历史相关发文号" disabled/>
        </el-form-item>
@@ -907,6 +910,9 @@
        </el-form-item>
        <el-form-item label="备注" prop="remarks">
          <el-input v-model="form.remarks" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="备考表备注" prop="noteRemark">
          <el-input v-model="form.noteRemark" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="历史相关发文号" prop="historicalReferenceNumber">
          <el-input v-model="form.historicalReferenceNumber" placeholder="请输入历史相关发文号" />
@@ -1093,8 +1099,8 @@
            "公开属性必须录入,主动公开、依申请公开、免予公开",
             "保管期限:30年或永久",
            "页号按照正式录入页码为准"], // 选中的注解列表
      includeSignature: false, // 是否包含签名栏
            selectedSignatures: ['业务科室移交人:', '审批科移交人:', '档案整理公司:'], // 选中的签名栏列表
            includeSignature: false, // 是否包含签名栏
            selectedSignatures: ['业务科室移交人:','审批科/法规科移交人:', '审批科移交人:', '档案整理公司:'], // 选中的签名栏列表
            subselectedSignatures: [],
            subselectedAnnotations: [],
      signaturePosition: 'bottom' // 签名栏位置:top/bottom
@@ -1496,10 +1502,20 @@
    /*查看详情*/
    CheckInfo(row)
    {
      var recordStrId = row.recordId
   if(row.pageCount==null)
      console.log(recordStrId==='')
      console.log("+---------------------")
      if(recordStrId===''||recordStrId==null)
      {
        this.$modal.msgWarning("请先补充页码信息!")
        this.$modal.msgWarning("请补充档案号信息,再编辑卷内目录!")
        return
      }
         if( row.projectName==null||row.pageCount==null||row.caseTitle==null||row.constructionUnit==null)
      {
        this.$modal.msgWarning("请先补充页码等相关信息!")
        return;
      }
      var mid = row.id
@@ -1565,8 +1581,17 @@
       var valid = false;
      var pageCount = row.pageCount
      var recordStrId = row.recordId
      var inquiryNumber = row.inquiryNumber
      if(row.projectName!=null&&row.pageCount!=null&&row.caseTitle!=null&&row.constructionUnit)
      console.log(recordStrId==='')
      console.log("+---------------------")
      if(recordStrId===''||recordStrId==null)
      {
        this.$modal.msgWarning("请补充档案号信息,再编辑卷内目录!")
        return
      }
      if( row.projectName!=null&&row.pageCount!=null&&row.caseTitle!=null&&row.constructionUnit!=null)
       valid = true;
        if (valid) {
      var mid = row.id