From 395e3917f8a36b1c3dc4dde36494dd9554a81c40 Mon Sep 17 00:00:00 2001
From: liaozetao <1107136310@qq.com>
Date: Mon, 20 Nov 2023 11:58:10 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E9=80=BB?=
=?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/resource/ResourceView.vue | 95 +++++++++++++++--------------
src/views/resource/SplashView.vue | 24 ++++----
2 files changed, 60 insertions(+), 59 deletions(-)
diff --git a/src/views/resource/ResourceView.vue b/src/views/resource/ResourceView.vue
index d11f4e8..78e8235 100644
--- a/src/views/resource/ResourceView.vue
+++ b/src/views/resource/ResourceView.vue
@@ -45,7 +45,8 @@
编辑
- 删除
+ 删除
@@ -64,27 +65,28 @@
-
-
+
+
跳转位置
-
-
+
+
资源编码
-
{{ resource.skipType == 2 ? "跳转链接" :
+ {{ resource.skipType
+ == 2 ? "跳转链接" :
(resource.skipType == 3 ? "跳转房间" : "") }}
@@ -92,38 +94,39 @@
-
-
+
+
生效时间
-
+
失效时间
-
+
排序
- {{ rule.ruleName }}
+ {{ rule.ruleName
+ }}
-
-
-
-
+
+
+
+
-
+
@@ -169,22 +169,20 @@ export default {
return {};
},
created() {
- this.init();
this.getRule();
this.getData();
},
methods: {
- init() {
- this.$nextTick(function () {
- let $this = this;
- $('#urlUploadBtn').click(function () {
- uploadFile('urlFile').then(res => {
- if (res.path) {
- $this.resource.url = res.path;
- $('#urlUploadInfo').val('上传成功');
- }
- });
- });
+ uploadUrl() {
+ $('#urlUploadBtn').click(function () {
+ console.log('urlUploadBtn');
+ uploadFile('urlFile').then(res => {
+ console.log(res);
+ if (res.path) {
+ $this.resource.url = res.path;
+ $('#urlUploadInfo').val('上传成功');
+ }
+ });
});
},
getRule() {