diff --git a/sf-ui/src/assets/images/code.png b/sf-ui/src/assets/images/code.png
new file mode 100644
index 0000000..9111a07
Binary files /dev/null and b/sf-ui/src/assets/images/code.png differ
diff --git a/sf-ui/src/views/FDS/installationList/index.vue b/sf-ui/src/views/FDS/installationList/index.vue
index 1dd00be..35832ae 100644
--- a/sf-ui/src/views/FDS/installationList/index.vue
+++ b/sf-ui/src/views/FDS/installationList/index.vue
@@ -2,60 +2,60 @@
@@ -68,24 +68,24 @@
新建
批量删除
@@ -94,7 +94,6 @@
-
@@ -120,46 +119,46 @@
下载安装包
编辑
详情
删除
@@ -168,13 +167,13 @@
在线上传
离线上传
@@ -187,17 +186,17 @@
上传文件
@@ -208,18 +207,18 @@
Android
鸿蒙
IOS
@@ -227,10 +226,10 @@
@@ -248,7 +247,7 @@
离线上传
安装包11111
安装包1111.excel
@@ -344,10 +343,10 @@ export default {
getList() {
this.loading = true
listConfig(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
- this.dataList = response.rows
- this.total = response.total
- this.loading = false
- }
+ this.dataList = response.rows
+ this.total = response.total
+ this.loading = false
+ }
)
},
@@ -355,10 +354,10 @@ export default {
getConfigList() {
this.loading = true
listConfig(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
- this.configList = response.rows
- this.total = response.total
- this.loading = false
- }
+ this.configList = response.rows
+ this.total = response.total
+ this.loading = false
+ }
)
},
diff --git a/sf-ui/src/views/FDS/publishList/index.vue b/sf-ui/src/views/FDS/publishList/index.vue
index d91685e..9746e32 100644
--- a/sf-ui/src/views/FDS/publishList/index.vue
+++ b/sf-ui/src/views/FDS/publishList/index.vue
@@ -4,32 +4,32 @@
@@ -37,10 +37,10 @@
@@ -53,35 +53,35 @@
新增
批量发布
批量删除
@@ -95,9 +95,9 @@
{{ scope.row.platform === '0' ? '安卓' : 'IOS' }}
@@ -120,10 +120,7 @@
{{ parseTime(scope.row.createTime) }}
-
-
-
@@ -138,42 +135,49 @@
-
-
-
![]()
-
密码:{{ scope.row.verifyCode }}
-
-
-
- -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
下架
修改
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ 安卓
+ IOS
+ 鸿蒙
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 下载验证
+
+
+
+
+
+
+
+ 白名单客户
+ 普通客户
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 安装包11111
+
+
+ 安装包1111.excel
+ 58.1kb
+
+
+ 安卓
+ 登录模块
+
+
+ 说明说明
+ 发布环境
+
+
+ 说明说明
+ 说明说明
+
+
+ 说明说明
+ 说明说明
+
+
+ 说明说明
+ 说明说明
+
+
+ 说明说明
+ 说明说明
+
+
+ 说明说明
+ 说明说明
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ 说明说明
+ 说明说明
+
+
+ 说明说明
+ 说明说明
+
+
+ 说明说明
+ 说明说明
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -294,6 +449,9 @@ export default {
addOpen: false,
// 是否显示白名单配置弹出框
configOpen: false,
+
+ packOpen: false,
+
// 日期范围
dateRange: [],
// 查询参数
@@ -306,6 +464,42 @@ export default {
},
// 表单参数
form: {},
+ url: require('@/assets/images/code.png'),
+ srcList: [
+ require('@/assets/images/code.png')
+ ],
+ list: {
+ rule: {
+ regularRule: false,
+ customRule: false
+ },
+ // headerOperations: [],
+ packId: '', // 安装包ID
+ grayFlag: '0', // 发布类型: 0灰度 1正式
+ upgradeMode: '0', //
+ releaseDestType: '0', // 发布条件: 0白名单 1时间窗
+ headerOperations: [// 自定义规则
+ // {
+ // 'scope': '', // 范围:region地区 platform平台
+ // 'inclued': '', // 是否包含 1包含 2不包含
+ // 'condition': '', // 发布条件
+ // 'desp': ''// 备注
+ // }
+ ],
+ grayUserNum: '', // 灰度人数
+ numType: '0',
+ expiryTime: '', // 灰度结束时间
+ desp: '',
+ releaseRuleId: '', // 常用规则
+ // deviceListId: '', // 设备白名单
+ whiteListId: '',// 用户白名单id
+ enableVerify: false, //是否开启下载验证
+ imprint: '', //版本说明
+ versionNumber: '',
+ AppName: '', //APP名称
+ platform: 'android' //系统
+ },
+ whiteOptions: [],
// 表单校验
rules: {
configName: [
@@ -328,10 +522,10 @@ export default {
getList() {
this.loading = true
listConfig(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
- this.configList = response.rows
- this.total = response.total
- this.loading = false
- }
+ this.configList = response.rows
+ this.total = response.total
+ this.loading = false
+ }
)
},
// 取消按钮
@@ -371,10 +565,7 @@ export default {
this.reset()
// 使用ES6+语法
this.reset()
- const type = 'add'
- this.$router.push({
- name: 'PublishAdd'
- })
+ this.addOpen = true
},
// 多选框选中数据
@@ -428,7 +619,7 @@ export default {
},
/**查看详情*/
handleDetail() {
-
+ this.configOpen = true
},
/**下载安装包*/
handleDownload() {
@@ -443,7 +634,32 @@ export default {
handlePublish() {
},
-
+ /** 在上传之前进行校验 */
+ beforeAvatarUpload(file) {
+ const formatList = file.name.split('.')
+ const isFormat = file.type === 'text/plain' || formatList[formatList.length - 1] === 'txt'
+ if (!isFormat) {
+ this.$message.error(`上传格式只能是名称后缀为.txt的文本文件!`)
+ }
+ const isLt2M = file.size / 1024 / 1024 < 5
+ if (!isLt2M) {
+ this.$message.error(`上传文件大小不能超过5M!`)
+ }
+ return isLt2M && isFormat
+ },
+ /** 上传文件 */
+ handleSuccess(file) {
+ this.fileList = []
+ const nameList = file.context.path.split('/')
+ this.fileList.push({
+ name: file.context.name || nameList[nameList.length - 1],
+ url: file.context.path
+ })
+ this.addFormData.path = file.context.path
+ },
+ beforeRemove(files, filesList) {
+ return this.$confirm(`确定要移除${files.name}?`)
+ },
// 更多操作触发
handleCommand(command, row) {
switch (command) {
@@ -460,8 +676,25 @@ export default {
default:
break
}
+ },
+
+ /** 弹出包选择框*/
+ handlePackOpen() {
+ this.packOpen = true
}
}
}
+
diff --git a/sf-ui/src/views/FDS/publishList/setting/add.vue b/sf-ui/src/views/FDS/publishList/setting/add.vue
index 727a89b..25d59a3 100644
--- a/sf-ui/src/views/FDS/publishList/setting/add.vue
+++ b/sf-ui/src/views/FDS/publishList/setting/add.vue
@@ -3,18 +3,18 @@
新增文件
-
+
-
+
-
+
-
-
-
+
@@ -26,7 +26,9 @@
强制升级
-
+
@@ -35,17 +37,21 @@
-
+
-
+
-
+
开发环境
@@ -77,8 +83,11 @@
下载验证
-
-
+
+
-
+
@@ -121,8 +132,7 @@
// import { getWhiteList, getReleaseRuleList, getDictionaryList, getInstallTaskAdd, getTypeList } from '@/api/FDS'
export default {
name: 'InstallationAdd',
- components: {
- },
+ components: {},
data() {
var checkHeader = (rule, value, callback) => {
if (this.list.rule.customRule) {
@@ -174,10 +184,10 @@ export default {
releaseRuleId: '', // 常用规则
// deviceListId: '', // 设备白名单
whiteListId: '',// 用户白名单id
- enableVerify:false, //是否开启下载验证
- imprint:'', //版本说明
- versionNumber:'',
- AppName:'', //APP名称
+ enableVerify: false, //是否开启下载验证
+ imprint: '', //版本说明
+ versionNumber: '',
+ AppName: '' //APP名称
},
whiteOptions: [],
releaseOptions: [],
@@ -214,8 +224,7 @@ export default {
}
}
},
- computed: {
- },
+ computed: {},
watch: {
'list.rule.regularRule'(newR, oldR) { // 常用规则
if (this.list.rule.customRule && newR) {
@@ -370,27 +379,32 @@ export default {
}