文件名称:{{ 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("新增成功");
From a11039d4d1fa73cce07283087c1d59f77d310fd2 Mon Sep 17 00:00:00 2001
From: xyc <3422692813@qq.com>
Date: Tue, 27 May 2025 17:55:21 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../inspection/businessChannel/api/index.js | 52 ++++
.../inspection/businessChannel/index.vue | 284 ++++++++++++++++++
src/views/inspection/staff/index.vue | 4 +-
3 files changed, 338 insertions(+), 2 deletions(-)
create mode 100644 src/views/inspection/businessChannel/api/index.js
create mode 100644 src/views/inspection/businessChannel/index.vue
diff --git a/src/views/inspection/businessChannel/api/index.js b/src/views/inspection/businessChannel/api/index.js
new file mode 100644
index 0000000..ba4ba61
--- /dev/null
+++ b/src/views/inspection/businessChannel/api/index.js
@@ -0,0 +1,52 @@
+import request from '@/utils/request'
+
+// 查询菜单列表
+export function listBusiness(query) {
+ return request({
+ url: '/channel/tree',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询菜单(精简)列表
+export function listSimpleMenus() {
+ return request({
+ url: '/system/menu/list-all-simple',
+ method: 'get'
+ })
+}
+
+// 查询菜单详细
+export function getBusiness(id) {
+ return request({
+ url: '/channel/' + id,
+ method: 'get'
+ })
+}
+
+// 新增菜单
+export function addBusiness(data) {
+ return request({
+ url: '/channel/add',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改菜单
+export function updateBusiness(data) {
+ return request({
+ url: '/channel/update',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除菜单
+export function delBusiness(id) {
+ return request({
+ url: '/channel/delete/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/views/inspection/businessChannel/index.vue b/src/views/inspection/businessChannel/index.vue
new file mode 100644
index 0000000..d143486
--- /dev/null
+++ b/src/views/inspection/businessChannel/index.vue
@@ -0,0 +1,284 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ {{ scope.row.type === 0 ? '业务渠道' : scope.row.type === 1 ? '客户来源' : '未知类型' }}
+
+
+
+
+
+
+ 修改
+
+ 新增
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/inspection/staff/index.vue b/src/views/inspection/staff/index.vue
index d100a60..2a1a04b 100644
--- a/src/views/inspection/staff/index.vue
+++ b/src/views/inspection/staff/index.vue
@@ -571,10 +571,10 @@ export default {
if (!this.form.folderId) {
addFolder(this.form.id).then(response => {
this.form.folderId = response.data
- this.$router.push({path: '/jc/shop/partner/file/file', query: {"folderId": this.form.folderId}})
+ this.$router.push({path: '/jc/shop/nbgl/partner/file/file', query: {"folderId": this.form.folderId}})
})
} else {
- this.$router.push({path: '/jc/shop/partner/file/file', query: {"folderId": this.form.folderId}})
+ this.$router.push({path: '/jc/shop/nbgl/partner/file/file', query: {"folderId": this.form.folderId}})
}
},
// 查询驾驶证类型
From 6afa9dc6f4db45819e6c49615f0e9e53044749a3 Mon Sep 17 00:00:00 2001
From: xyc <3422692813@qq.com>
Date: Fri, 13 Jun 2025 17:08:45 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../inspection/businessChannel/index.vue | 31 +++++++++++++++----
1 file changed, 25 insertions(+), 6 deletions(-)
diff --git a/src/views/inspection/businessChannel/index.vue b/src/views/inspection/businessChannel/index.vue
index d143486..fd55297 100644
--- a/src/views/inspection/businessChannel/index.vue
+++ b/src/views/inspection/businessChannel/index.vue
@@ -52,17 +52,24 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+