Compare commits

..

No commits in common. "6d627d69088852e24f8ce653471b0c0fd097e3a2" and "7a37638acd98169986054157fbf27aca59eb1cd4" have entirely different histories.

View File

@ -76,7 +76,7 @@
</div>
<div class="bjandshanchu">
<div class="one" @click="handleE(item)">编辑</div>
<div class="two" v-if="item.type == '2'" @click="downloadFile(item)">下载</div>
<!-- <div class="two" v-if="item.type == '2'" @click="downloadFile(item)">下载</div>-->
<div class="two" v-if="item.type == '2'" @click="preview(item)">预览</div>
<div class="two" @click="clickStaff(item.id)" v-hasPermi="['inspectionFile:inspectionFilePermis:edit']">
分配权限
@ -175,7 +175,6 @@
<template #description>
<div class="step-content">
<div class="step-file-name">文件名称{{ item.fileName }}</div>
<div class="step-time">修改人{{ item.nickname }}</div>
<div class="step-time">修改时间{{ formatDate(item.createTime) }}</div>
<div class="step-time">提醒时间{{ formatDate(item.warnTime) }}</div>
<div class="step-download" @click="downloadFile(item)" v-if="item.type == '2'">📂 下载历史文件</div>
@ -338,23 +337,18 @@ export default {
number: 0,
uploadList: [],
totalUploadCount: 0,
servicePackageId: "jiance",
dictType:"ins_file_role",
//
queryParams: {
pageNum: 1,
pageSize: 10,
servicePackageId: "jiance",
type: null,
fatherId: null,
dictType: 'ins_file_role'
},
fatherId: '',
oldFatherId: '',
//
form: {servicePackageId: this.servicePackageId},
form: {},
isShowFile: false,
//
rules: {
fileList: [
@ -427,8 +421,6 @@ export default {
this.queryParams.pageNum = 1
const data = {
fatherId: this.fatherId,
servicePackageId: this.servicePackageId,
dictType: this.dictType,
fileName: this.fatherId === '' || this.fatherId == null || this.fatherId === undefined ? this.queryParams.fileName : ''
}
this.getFolderList(data)
@ -459,10 +451,7 @@ export default {
handleFileClick(row) {
if (row.type === '2') {
// this.fileUrl = 'https://view.xdocin.com/view?src=' + this.imageUrl + row.filePath
this.fileUrl = 'https://view.officeapps.live.com/op/view.aspx?src=' +
(row.filePath.includes('http')
? this.inspectionFileUrl + row.filePath.replace(/^.*?uploads\//, 'uploads/')
: this.previewUrl + row.filePath);
this.fileUrl = 'https://view.officeapps.live.com/op/view.aspx?src=' + this.imageUrl + row.filePath
this.$nextTick(() => {
// this.$refs.filePreview.show()
this.selectFile = row
@ -541,9 +530,7 @@ export default {
const data = {
pageNum: 1,
pageSize: 10,
fatherId: id,
servicePackageId: this.servicePackageId,
dictType: this.dictType
fatherId: id
}
this.getFolderList(data)
},
@ -605,8 +592,7 @@ export default {
createTime: null,
createBy: null,
updateTime: null,
updateBy: null,
servicePackageId: this.servicePackageId
updateBy: null
};
this.resetForm("form");
},
@ -664,14 +650,14 @@ export default {
this.title = "修改";
console.log(item)
//itemiditemid
this.folderList = this.disableIfExistsInTree(this.folderList, item.id)
this.folderList = this.disableIfExistsInTree(this.folderList, item.id)
},
disableIfExistsInTree(treeData, targetId) {
console.log(treeData, targetId, '执行');
function traverse(nodes, parentDisabled = false) {
return nodes.map(node => {
let newNode = {...node};
let newNode = { ...node };
//
if (newNode.children && newNode.children.length > 0) {
@ -737,7 +723,6 @@ export default {
item.fileName = this.getFileNameWithoutExtension(item.name)
item.filePath = item.url
item.warnTime = this.form.warnTime
item.servicePackageId = "jiance"
})
addBatchInspectionFile(this.fileList).then(res => {
this.$modal.msgSuccess("新增成功");