From 090c10fb81eb38fe71c768b6dfe5efe802df73d4 Mon Sep 17 00:00:00 2001
From: rain <1679827795@qq.com>
Date: Tue, 04 Mar 2025 17:11:43 +0800
Subject: [PATCH] 媒体文件单个下载
---
src/views/device/components/devicePerShare.vue | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/src/views/device/components/devicePerShare.vue b/src/views/device/components/devicePerShare.vue
index 0151ddd..23d36ed 100644
--- a/src/views/device/components/devicePerShare.vue
+++ b/src/views/device/components/devicePerShare.vue
@@ -18,7 +18,6 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
- @on-load="onLoad"
>
</avue-crud>
</basic-container>
@@ -165,7 +164,7 @@
this.deptId = data.dept_id;
this.deviceSn = data.device_sn;
this.getDeptTreeInfo();
- this.onLoad(this.page);
+ this.getLoadPage(this.page);
},
getDeptTreeInfo(){
getDeptTreeByNotItself(this.deptId,this.deviceSn).then(res => {
@@ -178,7 +177,9 @@
add(row).then(
() => {
this.initFlag = false;
- this.onLoad(this.page);
+ this.getLoadPage(this.page);
+ // 刷新机构树
+ this.getDeptTreeInfo();
this.$message({
type: 'success',
message: '操作成功!',
@@ -195,7 +196,7 @@
row['device_sn'] = this.deviceSn;
update(row).then(
() => {
- this.onLoad(this.page);
+ this.getLoadPage(this.page);
this.$message({
type: 'success',
message: '操作成功!',
@@ -218,7 +219,9 @@
return remove(row.id);
})
.then(() => {
- this.onLoad(this.page);
+ // 刷新机构树
+ this.getDeptTreeInfo();
+ this.getLoadPage(this.page);
this.$message({
type: 'success',
message: '操作成功!',
@@ -227,12 +230,12 @@
},
searchReset() {
this.query = {};
- this.onLoad(this.page);
+ this.getLoadPage(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
- this.onLoad(this.page, params);
+ this.getLoadPage(this.page, params);
done();
},
selectionChange(list) {
@@ -256,7 +259,7 @@
return remove(this.ids);
})
.then(() => {
- this.onLoad(this.page);
+ this.getLoadPage(this.page);
this.$message({
type: 'success',
message: '操作成功!',
@@ -274,9 +277,9 @@
this.page.pageSize = pageSize;
},
refreshChange() {
- this.onLoad(this.page, this.query);
+ this.getLoadPage(this.page, this.query);
},
- onLoad(page, params = {}) {
+ getLoadPage(page, params = {}) {
params['device_sn'] = this.deviceSn;
this.loading = true;
getList(page.currentPage, page.pageSize, params).then(res => {
--
Gitblit v1.9.3