From d5084e411b7de6ebc83384e808b19b64233eb11f Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Wed, 3 Jul 2024 14:26:34 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E6=8E=A8=E8=8D=90?=
=?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BC=B9=E6=A1=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 16 +++-
.../dictionary/template/browser/form.vue | 7 ++
.../dictionary/template/browser/index.vue | 4 +-
src/views/dictionary/template/browser/tip.vue | 83 +++++++++++++++++++
4 files changed, 107 insertions(+), 3 deletions(-)
create mode 100644 src/views/dictionary/template/browser/tip.vue
diff --git a/src/App.vue b/src/App.vue
index 84eda5c5..7cc1b29c 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -81,6 +81,7 @@
>
+
@@ -91,6 +92,7 @@ import {
} from "@/api/dictionary/dictionary";
import Vue from "vue";
import i18n from "./lang";
+import browserTip from "@/views/dictionary/template/browser/tip.vue";
export default {
name: "App",
data() {
@@ -102,9 +104,21 @@ export default {
arr: [],
};
},
+ components: { browserTip },
mounted() {
this.show = process.env.VUE_APP_OSS_PATH === "/test/dist";
},
+ watch: {
+ "$route.path": {
+ handler() {
+ if (this.$route.path === "/login") {
+ this.$refs.browserTip.open();
+ }
+ },
+ immediate: true,
+ deep: true,
+ },
+ },
methods: {
changeValue(target, attr, e) {
this.$set(target, attr, e);
@@ -252,7 +266,7 @@ textarea {
.title-logo {
height: 40px;
}
-.title-logo{
+.title-logo {
height: 40px;
}
diff --git a/src/views/dictionary/template/browser/form.vue b/src/views/dictionary/template/browser/form.vue
index e7dec9bb..c32a1921 100644
--- a/src/views/dictionary/template/browser/form.vue
+++ b/src/views/dictionary/template/browser/form.vue
@@ -124,6 +124,13 @@ export default {
Object.keys(this.form).forEach((key) => {
this.form[key] = this.data[key];
});
+ if (this.form.FileName) {
+ this.fileList[0] = {
+ name: this.form.FileName,
+ path: this.form.Path,
+ fullPath: this.form.Path,
+ };
+ }
}
},
methods: {
diff --git a/src/views/dictionary/template/browser/index.vue b/src/views/dictionary/template/browser/index.vue
index 10727b31..ee27c781 100644
--- a/src/views/dictionary/template/browser/index.vue
+++ b/src/views/dictionary/template/browser/index.vue
@@ -63,7 +63,7 @@
>
@@ -139,7 +139,7 @@ const searchDataDefault = () => {
Title: null,
DownloadUrl: null,
FileName: null,
- IsDeleted: true,
+ IsDeleted: null,
PageIndex: 1,
PageSize: 20,
Asc: false,
diff --git a/src/views/dictionary/template/browser/tip.vue b/src/views/dictionary/template/browser/tip.vue
new file mode 100644
index 00000000..7b04d8e1
--- /dev/null
+++ b/src/views/dictionary/template/browser/tip.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
\ No newline at end of file