You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							1 lines
						
					
					
						
							17 KiB
						
					
					
				
			
		
		
	
	
							1 lines
						
					
					
						
							17 KiB
						
					
					
				{"remainingRequest":"F:\\workspace\\gcy\\RK-archives\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!F:\\workspace\\gcy\\RK-archives\\ruoyi-ui\\src\\views\\archives\\importRecord\\index.vue?vue&type=style&index=0&lang=css&","dependencies":[{"path":"F:\\workspace\\gcy\\RK-archives\\ruoyi-ui\\src\\views\\archives\\importRecord\\index.vue","mtime":1633763898096},{"path":"F:\\workspace\\gcy\\RK-archives\\ruoyi-ui\\node_modules\\css-loader\\dist\\cjs.js","mtime":499162500000},{"path":"F:\\workspace\\gcy\\RK-archives\\ruoyi-ui\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"F:\\workspace\\gcy\\RK-archives\\ruoyi-ui\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"F:\\workspace\\gcy\\RK-archives\\ruoyi-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"F:\\workspace\\gcy\\RK-archives\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgo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cesContent":["<template>\n\n  <div>\n    <div class=\"aside\">\n      <div>\n        <br>\n        <br>\n        <avue-tree :option=\"option\" :data=\"caOptions\" @node-click=\"handleNodeClick\" >\n           <span class=\"el-tree-node__label\" slot-scope=\"{ node, data }\"><span>\n      <i class=\"el-icon-folder\"></i>\n      {{ (node || {}).label }}\n    </span>\n  </span>\n        </avue-tree>\n      </div>\n    </div>\n    <div style=\"float:left;width:83%;padding-top: 20px\">\n\n        <avue-crud ref=\"crud\" style=\"padding-left:8px\"\n                   :page=\"page\"\n                   :data=\"tableData\"\n                   :table-loading=\"tableLoading\"\n                   @on-load=\"getPage\"\n                   @refresh-change=\"refreshChange\"\n                   :option=\"getOption\"\n                   v-model=\"form\"\n                   @row-update=\"handleUpdate\"\n                   @row-save=\"handleSave\"\n                   @row-del=\"handleDel\"\n                   @search-change=\"searchChange\"\n                   @selection-change=\"selectionChange\" class=\"mainCrud\"\n        >\n<!--          左边按钮组-->\n          <template slot=\"menuLeft\">\n            <el-button type=\"primary\" size=\"small\" icon=\"el-icon-download\" @click=\"handleDel()\" > 模板下载</el-button>\n            <el-button type=\"success\" size=\"small\" icon=\"el-icon-upload2\" @click=\"handleDel()\" > 上传历史档案</el-button>\n            <el-button type=\"success\" size=\"small\" icon=\"el-icon-upload2\" @click=\"handleDel()\" > 上传新建档案</el-button>\n            <el-button type=\"danger\" size=\"small\" icon=\"el-icon-delete\" @click=\"handleDel()\" > 清空将导入信息</el-button>\n            <el-button type=\"warning\" size=\"small\" icon=\"el-icon-upload\" @click=\"handleDel()\" > 导入信息</el-button>\n          </template>\n<!--          行内按钮组-->\n          <template slot=\"menu\" slot-scope=\"scope\">\n            <el-dropdown ><span class=\"el-dropdown-link\"><el-button type=\"text\" size=\"small\">操作列表<i class=\"el-icon-arrow-down el-icon--right\"></i></el-button>\n             </span>\n              <el-dropdown-menu slot=\"dropdown\">\n                <el-dropdown-item  ><span  @click=\"showFileList(scope.row,scope.index)\"><i class=\"el-icon-document\"></i> 卷内文件</span>\n                </el-dropdown-item>\n                <el-dropdown-item  v-if='scope.row.status == \"0\"'><span @click=\"updateRecordInfo(scope.row)\"><i class=\"el-icon-edit\"></i> 编辑</span>\n                </el-dropdown-item>\n\n                <el-dropdown-item  v-if='scope.row.status == \"0\"'><span @click=\"electronicFileUpload(scope.row)\"><i class=\"el-icon-upload\"></i> 上传</span>\n                </el-dropdown-item>\n                <el-dropdown-item  ><span @click=\"view(scope.row)\"><i class=\"el-icon-view\"></i> 查看</span>\n                </el-dropdown-item>\n                <el-dropdown-item  v-if='scope.row.url!=null&&\"\"!=scope.row.url'><span @click=\"downloadUtils(scope.row.url)\" ><i class=\"el-icon-download\"></i> 下载</span>\n                </el-dropdown-item>\n              </el-dropdown-menu>\n            </el-dropdown>\n          </template>\n        </avue-crud>\n\n\n    </div>\n<!--卷内文件-->\n    <el-dialog\n      :title=\"title\"\n      :visible.sync=\"dialogVisible\"\n      width=\"70%\"\n   >\n    <archiveFileinfo  :arId=\"arId\"  :archiveCategory=\"data.code\" :status=\"status\" ref=\"archiveFileinfo\" :archiveCategoryName=\"archiveCategory\" :archiveScope=\"archiveScope\" :storageTime=\"storageTime\"></archiveFileinfo>\n\n    </el-dialog>\n<!--   上传组件-->\n    <el-upload\n      ref=\"electronicFileUpload\"\n      action=\"/dev-api/archives/archiveelectronicfile/bindElectronicFile\"\n      :headers=\"authorizationheaders\"\n      :on-success=\"electronicFileUploadSuccess\"\n      :on-error=\"electronicFileUploadError\"\n      :file-list=\"electronicFileUploadFileList\"\n      :data=\"this.electronicFileUploadForm\"\n      style=\"display: none\">\n      <el-button slot=\"trigger\" id=\"electronicFileUploadBtn\" style=\"display: none\"></el-button>\n    </el-upload>\n  </div>\n</template>\n\n<script>\nimport {treeselect} from '@/api/archives/categoryInfo.js'\nimport {wsTableOption} from \"@/const/crud/archives/wsArchiveRecordinfo\";\nimport {swTableOption} from \"@/const/crud/archives/swArchiveRecordinfo\";\nimport {listInfo, addInfo, downLoadUtil, listInfoByRecordSearch} from '@/api/archives/archiveRecord.js'\nimport {delInfo, transfer, updateInfo} from \"@/api/archives/archiveRecord\";\nimport archiveFileinfo from '@/views/archives/archiveFileInfo';\nimport {jjTableOption} from \"@/const/crud/archives/jjArchiveRecordinfo\";\nimport {zxxmTableOption} from \"@/const/crud/archives/zxxmArchiveRecordinfo\";\nimport {sxTableOption} from \"@/const/crud/archives/sxArchiveRecordinfo\";\nimport {htTableOption} from \"@/const/crud/archives/htArchiveRecordinfo\";\nimport {jyTableOption} from \"@/const/crud/archives/jyArchiveRecordinfo\";\nimport {zxTableOption} from \"@/const/crud/archives/zxArchiveRecordinfo\";\nimport {yjTableOption} from \"@/const/crud/archives/yjArchiveRecordinfo\";\nimport {commonTableOption} from \"@/const/crud/archives/commonArchiveRecordinfo\";\nimport store  from \"@/store\";\nexport default {\n  components: {archiveFileinfo},\n  name:'importRecord',\n  data() {\n    return {\n      title:'',\n      status:'',\n      electronicFileUploadFileList: [],\n      electronicFileUploadForm:{},\n      dialogVisible:false,\n      tableLoading:false,\n      storageTime:'',\n      selectDate: [],\n\n      arId:\"\",\n      authorizationheaders: {\n        Authorization: 'Bearer ' + store.getters.token\n      },\n      option: {\n        filter: false,\n        defaultExpandAll: true,\n        props: {\n          labelText:'标题',\n          label:'label',\n          value:'code',\n          children:'children'\n        }\n      },\n      form: {},\n      tableData: [],\n      data:undefined,\n      page: {\n        total: 0, // 总页数\n        currentPage: 1, // 当前页数\n        pageSize: 10, // 每页显示多少条\n      },\n      caOptions: [],\n      defaultProps: {\n        children: \"children\",\n        label: \"label\",\n      },\n      paramsSearch:{\n        archiveCategory:'WS'\n      },\n      archiveCategory:'',\n      archiveScope:''\n    }\n  },\n  created() {\n    this.getTreeselect();\n\n  },\n  watch:{\n      'form.archiveCategory'(value){\n        this.form.archiveCategory=this.data.code\n      }\n  },\n  computed: {\n    getOption() {\n      let data=this.data\n      if (data==undefined||data==null){\n        this.data={\n          code:'WS',\n          id:'2'\n        }\n        return wsTableOption;\n      }else{\n\n        if (data.code=='SW'){\n          return swTableOption\n        }else if(data.code=='WS'){\n          return wsTableOption;\n        } else if(data.code=='JJ'){\n          return jjTableOption;\n        }else if(data.code=='ZXXM'){\n          return zxxmTableOption;\n        }else if(data.code=='SX'){\n          return sxTableOption;\n        }else if(data.code=='HT'){\n          return htTableOption;\n        }else if(data.code=='JYDA'){\n          return jyTableOption;\n        }else if(data.code=='ZX'){\n          return zxTableOption;\n        }else if(data.code=='DAYJJL'){\n          return yjTableOption;\n        }else{\n          return commonTableOption;\n        }\n      }\n\n    }\n  },\n  mounted() {\n    this.$refs.crud.option.selection=false\n  },\n  methods: {\n    insertRecord(){\n      this.$notify({\n        showClose: true,\n        message: '开发中',\n        type: 'warning'\n      })\n     // this.$refs.crud.rowAdd()\n    },\n    copy(row){\n      row.id = null\n      row.caseNum = null\n      row.fileNum = null\n      row.createId = null\n      row.url = null\n      row.updateTime = null\n      row.suffixType = null\n      row.status = null\n      row.source = null\n      row.createTime = null\n      row.boxName = null\n      row.boxNum = null\n      row.categoryCode = null\n      this.$refs.crud.rowCopy(row)\n    },\n    view(row){\n      this.$refs.crud.rowView(row)\n    },\n    downloadUtils(url){\n      let  obj={\n        fileName:url,\n        delete:false\n      }\n      downLoadUtil(obj).then(res=>{\n        let blob = res\n        if (blob.size<=0){\n          this.$notify.error(\"下载文件失败,或由于文件已不存在\");\n          return;\n        }\n        let downloadElement = document.createElement('a');\n        let href = window.URL.createObjectURL(blob); // 创建下载的链接\n        downloadElement.href = href;\n       let fileName= url.substring(url.lastIndexOf(\"/\")+1)\n        downloadElement.download = fileName; // 下载后文件名\n        document.body.appendChild(downloadElement);\n        downloadElement.click(); // 点击下载\n        document.body.removeChild(downloadElement); // 下载完成移除元素\n        window.URL.revokeObjectURL(href); // 释放掉blob对象\n      }).catch(err=>{\n        this.$notify.error(err)\n      })\n    },\n    electronicFileUploadError(err, file, fileList) {\n      this.$notify.error('上传文件失败')\n    },\n    electronicFileUploadSuccess(response, file, fileList) {\n      if (response.code == 200) {\n        this.$notify.success('上传文件成功')\n        this.electronicFileUploadFileList = []\n        this.getPage(this.page)\n      } else {\n        this.$notify.error(\"上传失败\")\n      }\n      this.electronicFileUploadForm={}\n    },\n    electronicFileUpload(row){\n      this.electronicFileUploadForm.id = row.id;\n      this.electronicFileUploadForm.archiveCategory=row.$archiveCategory\n      if (row.$archiveScope!=null&&row.archiveScope!=undefined&&''!=row.$archiveScope){\n        this.electronicFileUploadForm.archiveScope=row.$archiveScope\n      }\n      this.electronicFileUploadForm.storageTime=row.$storageTime\n     document.getElementById(\"electronicFileUploadBtn\").click();\n    },\n    updateRecordInfo(row,index){\n      this.$refs.crud.rowEdit(row, index);\n    },\n\n\n    showFileList(row,index){\n        this.title=row.boxName+\"》卷内文件\"\n        this.arId=row.id\n        this.status=row.status\n        this.archiveCategory=row.$archiveCategory\n        if (row.$archiveScope!=undefined&&row.$archiveScope!=null&&\"\"!=row.$archiveScope){\n          this.archiveScope=row.$archiveScope\n        }else{\n          this.archiveScope=null\n        }\n        this.storageTime=row.$storageTime\n        this.dialogVisible=true\n      setTimeout(()=>{\n        let  page={\n            currentPage: 1, // 当前页数\n            pageSize: 10, // 每页显示多少条\n          };\n        this.$refs.archiveFileinfo.getPage(page)\n      },)\n    },\n    getTreeselect() {\n      let obj={\n        parentId:1\n      }\n      treeselect(obj).then((response) => {\n        this.caOptions = response.data;\n      });\n    },\n    // 节点单击事件\n    handleNodeClick(data) {\n\n       this.data=data\n        this.paramsSearch.archiveCategory=this.data.code\n      this.page.currentPage=1\n      this.getPage(this.page,this.paramsSearch)\n      setTimeout(n=>{\n        this.form.archiveCategory=this.data.code\n      },1000)\n\n    },\n    // 筛选节点\n    filterNode(value, data) {\n      if (!value) return true;\n      return data.label.indexOf(value) !== -1;\n    },\n    searchChange(params, done) {\n      this.paramsSearch = params\n      this.page.currentPage = 1\n      this.getPage(this.page, params)\n      done()\n    },\n\n    getPage(page, params) {\n      this.paramsSearch.status='0'\n      this.paramsSearch.archiveCategory=this.data.code\n      this.tableLoading = true\n      listInfoByRecordSearch(Object.assign({\n        pageNum: page.currentPage,\n        pageSize: page.pageSize,\n      }, params, this.paramsSearch)).then(response => {\n        this.tableData = response.rows\n        this.page.total = response.total.toString()\n        this.page.currentPage=page.currentPage\n        this.page.pageSize=page.pageSize\n        this.tableLoading = false\n      }).catch(() => {\n        this.tableLoading = false\n      })\n    },\n    /**\n     * @title 数据删除\n     * @param row 为当前的数据\n     * @param index 为当前删除数据的行数\n     *\n     **/\n    /**\n     * @title 数据删除\n     *\n     **/\n    handleDel: function () {\n      this.$notify({\n        showClose: true,\n        message: '开发中',\n        type: 'warning'\n      })\n      // if (this.selectDate.length == 0) {\n      //   this.$notify({\n      //     showClose: true,\n      //     message: '请先选择需要删除的数据',\n      //     type: 'warning'\n      //   })\n      // } else {\n      //   let ids = new Array();\n      //   let length = this.selectDate.length;\n      //   for (let i = 0; i < length; i++) {\n      //     if (this.selectDate[i].status=='2'){\n      //       this.$notify({\n      //         showClose: true,\n      //         message: '错误,不能删除待审核中的档案',\n      //         type: 'warning'\n      //       })\n      //       return;\n      //     }\n      //     ids.push(this.selectDate[i].id)\n      //   }\n      //   this.$confirm('是否确认删除此数据', '提示', {\n      //     confirmButtonText: '确定',\n      //     cancelButtonText: '取消',\n      //     type: 'warning'\n      //   }).then(function () {\n      //     return delInfo(ids);\n      //   }).then(data => {\n      //     this.$notify({\n      //       title: '成功',\n      //       showClose: true,\n      //       message: '删除成功',\n      //       type: 'success'\n      //     });\n      //     this.getPage(this.page);\n      //   }).catch(function (err) {\n      //   })\n      // }\n    },\n    /**\n     * @title 数据更新\n     * @param row 为当前的数据\n     * @param index 为当前更新数据的行数\n     * @param done 为表单关闭函数\n     *\n     **/\n    handleUpdate: function (row, index, done, loading) {\n      updateInfo(row).then(response => {\n        this.$notify({\n          title: '成功',\n          showClose: true,\n          message: '修改成功',\n          type: 'success'\n        })\n        done()\n        this.getPage(this.page)\n      }).catch(() => {\n        loading()\n      })\n    },\n    /**\n     * @title 数据添加\n     * @param row 为当前的数据\n     * @param done 为表单关闭函数\n     *\n     **/\n    handleSave: function (row, done, loading) {\n      addInfo(row).then(response => {\n        this.$notify({\n          title: '成功',\n          showClose: true,\n          message: '添加成功',\n          type: 'success'\n        })\n        done()\n        this.getPage(this.page)\n      }).catch(() => {\n        loading()\n      })\n    },\n\n    /**\n     * 刷新回调\n     */\n    refreshChange(page) {\n      this.getPage(this.page)\n    },\n\n\n    //多选\n    selectionChange(list) {\n      this.selectDate = list;\n    },\n  }\n}\n</script>\n\n<style>\n.aside {\n  width: 17%;\n  height: 600px;\n  text-align: center;\n  float: left;\n  padding-left: 35px;\n  padding-right: 10px;\n}\n</style>\n"]}]} |