diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml
index c5fb20d..8b04d5a 100644
--- a/ruoyi-admin/src/main/resources/application.yml
+++ b/ruoyi-admin/src/main/resources/application.yml
@@ -67,21 +67,21 @@ spring:
enabled: true
# redis 配置
redis:
- host: 116.204.124.80
- # 端口,默认为6379
- port: 16379
- # 数据库索引
- database: 0
- # 密码
- password: Lwz19520416443@
-# # 地址
-# host: 127.0.0.1
+# host: 116.204.124.80
# # 端口,默认为6379
-# port: 6379
+# port: 16379
# # 数据库索引
# database: 0
# # 密码
-# password:
+# password: Lwz19520416443@
+# # 地址
+ host: 127.0.0.1
+ # 端口,默认为6379
+ port: 6379
+ # 数据库索引
+ database: 0
+ # 密码
+ password:
# 连接超时时间
timeout: 10s
lettuce:
diff --git a/ruoyi-ui/src/views/version/index.vue b/ruoyi-ui/src/views/version/index.vue
index ee2aa1c..5d5a8e8 100644
--- a/ruoyi-ui/src/views/version/index.vue
+++ b/ruoyi-ui/src/views/version/index.vue
@@ -158,18 +158,19 @@
+ :on-change="handleFileChange"
+ :on-remove="handleFileRemove"
+ :before-upload="beforeUpload">
点击上传
- 文件大小不超过500MB
+ 文件大小不超过500MB,可重复上传替换文件
-
+
@@ -259,9 +260,6 @@ export default {
channel: [
{ required: true, message: "渠道标识不能为空", trigger: "change" }
],
- downloadUrl: [
- { required: true, message: "APK下载地址不能为空", trigger: "blur" }
- ],
createTime: [
{ required: true, message: "创建时间不能为空", trigger: "blur" }
],
@@ -302,7 +300,12 @@ export default {
updateLog: null,
size: null,
createTime: null,
- updateTime: null
+ updateTime: null,
+ file: null
+ }
+ // 清空上传组件的文件列表
+ if (this.$refs.uploadRef) {
+ this.$refs.uploadRef.clearFiles()
}
this.resetForm("form")
},
@@ -381,7 +384,7 @@ export default {
})
},
/** 文件选择处理 */
- handleFileChange(file) {
+ handleFileChange(file, fileList) {
// 保存文件对象用于提交
this.form.file = file.raw
@@ -394,6 +397,13 @@ export default {
// 强制更新视图
this.$forceUpdate()
},
+ /** 文件移除处理 */
+ handleFileRemove() {
+ // 清空文件相关数据
+ this.form.file = null
+ this.form.downloadUrl = null
+ this.form.size = null
+ },
/** 设置文件大小 */
setFileSize(file) {
const fileSize = file.size
@@ -448,10 +458,6 @@ export default {
return false
}
return true
- },
- /** 文件数量超出限制 */
- handleExceed(files, fileList) {
- this.$modal.msgWarning('只能上传一个文件,请先删除已上传的文件')
}
}
}
diff --git a/ruoyi-ui/src/views/version/index.vuebak b/ruoyi-ui/src/views/version/index.vuebak
new file mode 100644
index 0000000..ee2aa1c
--- /dev/null
+++ b/ruoyi-ui/src/views/version/index.vuebak
@@ -0,0 +1,458 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.isForce == '1' ? '是' : '否' }}
+
+
+
+
+ {{ channelNameMap[scope.row.channel] || scope.row.channel }}
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 点击上传
+ 文件大小不超过500MB
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+