|
@@ -32,24 +32,30 @@
|
|
|
<el-form-item label="资源地址" prop="assetsUrl">
|
|
|
<el-input v-model="ruleForm.assetsUrl" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="资源版本号" prop="assetsVer">
|
|
|
+ <el-form-item label="资源版本" prop="assetsVer">
|
|
|
<el-input v-model="ruleForm.assetsVer" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="资源加载类型" prop="loadType">
|
|
|
- <el-radio-group v-model="ruleForm.loadType">
|
|
|
- <el-radio :label="0">远程加载</el-radio>
|
|
|
- <el-radio :label="1">本地加载</el-radio>
|
|
|
- </el-radio-group>
|
|
|
+ <el-form-item label="资源强更版本" prop="forceAssetsVer">
|
|
|
+ <el-input v-model="ruleForm.forceAssetsVer" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="安装包版本号" prop="apkVer">
|
|
|
+ <el-form-item label="安装包版本" prop="apkVer">
|
|
|
<el-input v-model="ruleForm.apkVer" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="打包版本号" prop="buildVer">
|
|
|
+ <el-form-item label="安装包子版本" prop="apkSubVer">
|
|
|
+ <el-input v-model="ruleForm.apkSubVer" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="打包版本" prop="buildVer">
|
|
|
<el-input v-model="ruleForm.buildVer" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="协议版本号" prop="protocolVer">
|
|
|
+ <el-form-item label="协议版本" prop="protocolVer">
|
|
|
<el-input v-model="ruleForm.protocolVer" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="资源加载类型" prop="loadType">
|
|
|
+ <el-radio-group v-model="ruleForm.loadType">
|
|
|
+ <el-radio :label="0">远程加载</el-radio>
|
|
|
+ <el-radio :label="1">本地加载</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
@@ -65,11 +71,10 @@ import { ref, reactive, onMounted, nextTick, onBeforeMount } from 'vue'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import type { FormInstance } from 'element-plus'
|
|
|
import clientConfigApi from '@/api/clientConfig'
|
|
|
-import dateUtils from '@/common/dateUtils'
|
|
|
+import PropTable from '@/components/Table/PropTable/index.vue'
|
|
|
|
|
|
const loading = ref(true)
|
|
|
const appContainer = ref(null)
|
|
|
-import PropTable from '@/components/Table/PropTable/index.vue'
|
|
|
|
|
|
// import { ref } from 'vue'
|
|
|
|
|
@@ -165,11 +170,13 @@ const column = [
|
|
|
{ type: 'selection', width: 60, fixed: 'left' },
|
|
|
{ name: 'id', label: 'ID', width: 80, inSearch: true, valueType: 'input' },
|
|
|
{ name: 'assetsUrl', label: '资源地址' },
|
|
|
- { name: 'assetsVer', label: '资源版本号' },
|
|
|
+ { name: 'assetsVer', label: '资源版本' },
|
|
|
+ { name: 'forceAssetsVer', label: '强更资源版本' },
|
|
|
+ { name: 'apkVer', label: '安装包版本' },
|
|
|
+ { name: 'apkSubVer', label: '安装包子版本' },
|
|
|
+ { name: 'buildVer', label: '打包版本' },
|
|
|
+ { name: 'protocolVer', label: '协议版本' },
|
|
|
{ name: 'loadType', label: '资源加载类型', slot: true},
|
|
|
- { name: 'apkVer', label: '安装包版本号' },
|
|
|
- { name: 'buildVer', label: '打包版本号' },
|
|
|
- { name: 'protocolVer', label: '协议版本号' },
|
|
|
{ name: 'operation', slot: true, fixed: 'right', width: 200, label: '操作' },
|
|
|
]
|
|
|
|
|
@@ -190,7 +197,9 @@ const ruleForm = reactive({
|
|
|
id: null,
|
|
|
assetsUrl: null,
|
|
|
assetsVer: null,
|
|
|
+ forceAssetsVer: null,
|
|
|
apkVer: null,
|
|
|
+ apkSubVer: null,
|
|
|
buildVer: null,
|
|
|
protocolVer: null,
|
|
|
loadType:0
|
|
@@ -233,10 +242,12 @@ const add = () => {
|
|
|
ruleForm.id = null
|
|
|
ruleForm.assetsUrl = null
|
|
|
ruleForm.assetsVer = null
|
|
|
- ruleForm.loadType = 0
|
|
|
+ ruleForm.forceAssetsVer = null
|
|
|
ruleForm.apkVer = null
|
|
|
+ ruleForm.apkSubVer = null
|
|
|
ruleForm.buildVer = null
|
|
|
ruleForm.protocolVer = null
|
|
|
+ ruleForm.loadType = 0
|
|
|
}
|
|
|
|
|
|
const handleConfirm = () => {
|
|
@@ -336,10 +347,12 @@ const edit = (row) => {
|
|
|
ruleForm.id = row.id
|
|
|
ruleForm.assetsUrl = row.assetsUrl
|
|
|
ruleForm.assetsVer = row.assetsVer == null ? row.assetsVer : row.assetsVer.toString()
|
|
|
- ruleForm.loadType = row.loadType
|
|
|
+ ruleForm.forceAssetsVer = row.forceAssetsVer == null ? row.forceAssetsVer : row.forceAssetsVer.toString()
|
|
|
ruleForm.apkVer = row.apkVer == null ? row.apkVer : row.apkVer.toString()
|
|
|
+ ruleForm.apkSubVer = row.apkSubVer == null ? row.apkSubVer : row.apkSubVer.toString()
|
|
|
ruleForm.buildVer = row.buildVer == null ? row.buildVer : row.buildVer.toString()
|
|
|
ruleForm.protocolVer = row.protocolVer == null ? row.protocolVer : row.protocolVer.toString()
|
|
|
+ ruleForm.loadType = row.loadType
|
|
|
}
|
|
|
|
|
|
const del = (row) => {
|