文件名称:{{ item.fileName }}
+
修改人:{{ item.nickname }}
修改时间:{{ formatDate(item.createTime) }}
提醒时间:{{ formatDate(item.warnTime) }}
📂 下载历史文件
@@ -337,18 +338,23 @@ 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: {},
+ form: {servicePackageId: this.servicePackageId},
isShowFile: false,
+
// 表单校验
rules: {
fileList: [
@@ -421,6 +427,8 @@ 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)
@@ -451,7 +459,10 @@ 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=' + 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.$nextTick(() => {
// this.$refs.filePreview.show()
this.selectFile = row
@@ -530,7 +541,9 @@ export default {
const data = {
pageNum: 1,
pageSize: 10,
- fatherId: id
+ fatherId: id,
+ servicePackageId: this.servicePackageId,
+ dictType: this.dictType
}
this.getFolderList(data)
},
@@ -592,7 +605,8 @@ export default {
createTime: null,
createBy: null,
updateTime: null,
- updateBy: null
+ updateBy: null,
+ servicePackageId: this.servicePackageId
};
this.resetForm("form");
},
@@ -650,14 +664,14 @@ export default {
this.title = "修改";
console.log(item)
//判断文件夹树中是否有item的id或者item子类的id如果有禁用
- 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) {
@@ -723,6 +737,7 @@ 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("新增成功");
diff --git a/src/views/partner/workOrder.vue b/src/views/partner/workOrder.vue
index 7eabaa9..a79dfcd 100644
--- a/src/views/partner/workOrder.vue
+++ b/src/views/partner/workOrder.vue
@@ -26,7 +26,7 @@
-
@@ -463,7 +463,8 @@ export default {
this.$set(this.dict.type, this.$options.dicts[i], res.data)
})
}
- this.getpid()
+ // this.getpid()
+ this.getList();
this.customerSource();
},
methods: {
@@ -640,6 +641,7 @@ export default {
this.BankAccountList.push(temp)
})
})
+ this.loading = false;
},
// 取消按钮
cancel() {