|
@@ -62,6 +62,11 @@
|
|
|
<dict-tag :options="isForceOptions" :value="scope.row.isForce"/>
|
|
<dict-tag :options="isForceOptions" :value="scope.row.isForce"/>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column label="热更新强制更新" align="center" prop="isHotForce">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <dict-tag :options="isHotForceOptions" :value="scope.row.isHotForce"/>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="APP类型" align="center" prop="appType" >
|
|
<el-table-column label="APP类型" align="center" prop="appType" >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<dict-tag :options="appTypeOptions" :value="scope.row.appType"/>
|
|
<dict-tag :options="appTypeOptions" :value="scope.row.appType"/>
|
|
@@ -118,7 +123,7 @@
|
|
|
<el-form-item label="更新描述" prop="note">
|
|
<el-form-item label="更新描述" prop="note">
|
|
|
<el-input v-model="form.note" type="textarea" placeholder="请输入内容" />
|
|
<el-input v-model="form.note" type="textarea" placeholder="请输入内容" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="安装包上传" prop="url" v-if="form.appType!==4">
|
|
|
|
|
|
|
+ <el-form-item label="安装包上传(apk)" prop="url" v-if="form.appType!==4">
|
|
|
<el-upload
|
|
<el-upload
|
|
|
accept=".apk"
|
|
accept=".apk"
|
|
|
class="upload-demo"
|
|
class="upload-demo"
|
|
@@ -135,6 +140,23 @@
|
|
|
<div slot="tip" class="el-upload__tip">只能上传APK文件</div>
|
|
<div slot="tip" class="el-upload__tip">只能上传APK文件</div>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="安装包上传(wgt)" prop="wgtUrl" v-if="form.appType!==4">
|
|
|
|
|
+ <el-upload
|
|
|
|
|
+ accept=".wgt"
|
|
|
|
|
+ class="upload-demo"
|
|
|
|
|
+ :action="uploadUrl"
|
|
|
|
|
+ :before-upload="beforeUpload"
|
|
|
|
|
+ :on-success="handleWgtSuccess"
|
|
|
|
|
+ :on-preview="handlePreview"
|
|
|
|
|
+ :on-remove="handleWgtRemove"
|
|
|
|
|
+ :before-remove="beforeRemove"
|
|
|
|
|
+ :limit="1"
|
|
|
|
|
+ :on-exceed="handleWgtExceed"
|
|
|
|
|
+ :file-list="fileWgtList">
|
|
|
|
|
+ <el-button size="small" type="primary">点击上传</el-button>
|
|
|
|
|
+ <div slot="tip" class="el-upload__tip">只能上传WGT文件</div>
|
|
|
|
|
+ </el-upload>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="压缩包上传" prop="url" v-if="form.appType===4">
|
|
<el-form-item label="压缩包上传" prop="url" v-if="form.appType===4">
|
|
|
<el-upload
|
|
<el-upload
|
|
|
accept=".zip"
|
|
accept=".zip"
|
|
@@ -155,6 +177,9 @@
|
|
|
<el-form-item label="下载地址" prop="url" v-if="form.url!==null">
|
|
<el-form-item label="下载地址" prop="url" v-if="form.url!==null">
|
|
|
<el-input v-model="form.url" readonly />
|
|
<el-input v-model="form.url" readonly />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="wgt下载地址" prop="wgtUrl" v-if="form.wgtUrl!==null">
|
|
|
|
|
+ <el-input v-model="form.wgtUrl" readonly />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="baidu安装包上传" prop="baiduUrl" v-if="form.appType===3">
|
|
<el-form-item label="baidu安装包上传" prop="baiduUrl" v-if="form.appType===3">
|
|
|
<el-upload
|
|
<el-upload
|
|
@@ -197,6 +222,15 @@
|
|
|
>{{dict.dictLabel}}</el-radio>
|
|
>{{dict.dictLabel}}</el-radio>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="是否强制更新" prop="isHotForce">
|
|
|
|
|
+ <el-radio-group v-model="form.isHotForce">
|
|
|
|
|
+ <el-radio
|
|
|
|
|
+ v-for="dict in isHotForceOptions"
|
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
|
+ :label="parseInt(dict.dictValue)"
|
|
|
|
|
+ >{{dict.dictLabel}}</el-radio>
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="强制更新渠道" prop="uploadConfig" v-if="form.appType===3">
|
|
<el-form-item label="强制更新渠道" prop="uploadConfig" v-if="form.appType===3">
|
|
|
<el-checkbox v-model="updateConfig.appstore" >应用宝</el-checkbox>
|
|
<el-checkbox v-model="updateConfig.appstore" >应用宝</el-checkbox>
|
|
@@ -247,9 +281,11 @@ export default {
|
|
|
typeOptions: [],
|
|
typeOptions: [],
|
|
|
// 是否强制更新字典
|
|
// 是否强制更新字典
|
|
|
isForceOptions: [],
|
|
isForceOptions: [],
|
|
|
|
|
+ isHotForceOptions: [],
|
|
|
// APP 类型 1医生端 2药师端字典
|
|
// APP 类型 1医生端 2药师端字典
|
|
|
appTypeOptions: [],
|
|
appTypeOptions: [],
|
|
|
fileList:[],
|
|
fileList:[],
|
|
|
|
|
+ fileWgtList:[],
|
|
|
fileList1:[],
|
|
fileList1:[],
|
|
|
// 查询参数
|
|
// 查询参数
|
|
|
queryParams: {
|
|
queryParams: {
|
|
@@ -261,6 +297,7 @@ export default {
|
|
|
url: null,
|
|
url: null,
|
|
|
type: null,
|
|
type: null,
|
|
|
isForce: null,
|
|
isForce: null,
|
|
|
|
|
+ isHotForce:null,
|
|
|
appType: null
|
|
appType: null
|
|
|
},
|
|
},
|
|
|
// 表单参数
|
|
// 表单参数
|
|
@@ -282,6 +319,9 @@ export default {
|
|
|
isForce: [
|
|
isForce: [
|
|
|
{ required: true, message: "是否强制更新不能为空", trigger: "blur" }
|
|
{ required: true, message: "是否强制更新不能为空", trigger: "blur" }
|
|
|
],
|
|
],
|
|
|
|
|
+ isHotForce: [
|
|
|
|
|
+ { required: true, message: "是否强制更新不能为空", trigger: "blur" }
|
|
|
|
|
+ ],
|
|
|
note: [
|
|
note: [
|
|
|
{ required: true, message: "描述不能为空", trigger: "blur" }
|
|
{ required: true, message: "描述不能为空", trigger: "blur" }
|
|
|
],
|
|
],
|
|
@@ -299,6 +339,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
this.getDicts("sys_company_or").then(response => {
|
|
this.getDicts("sys_company_or").then(response => {
|
|
|
this.isForceOptions = response.data;
|
|
this.isForceOptions = response.data;
|
|
|
|
|
+ this.isHotForceOptions = response.data;
|
|
|
});
|
|
});
|
|
|
this.getDicts("sys_app_type").then(response => {
|
|
this.getDicts("sys_app_type").then(response => {
|
|
|
this.appTypeOptions = response.data;
|
|
this.appTypeOptions = response.data;
|
|
@@ -313,6 +354,16 @@ export default {
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ handleWgtSuccess(res, file) {
|
|
|
|
|
+ this.myloading.close();
|
|
|
|
|
+ if(res.code==200){
|
|
|
|
|
+ this.form.wgtUrl=res.url;
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+ this.msgError(res.msg);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
handleSuccess(res, file) {
|
|
handleSuccess(res, file) {
|
|
|
this.myloading.close();
|
|
this.myloading.close();
|
|
|
if(res.code==200){
|
|
if(res.code==200){
|
|
@@ -322,6 +373,11 @@ export default {
|
|
|
this.msgError(res.msg);
|
|
this.msgError(res.msg);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ handleWgtRemove(file, fileList) {
|
|
|
|
|
+ console.log(this.fileWgtList);
|
|
|
|
|
+ this.form.wgtUrl=null;
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
handleRemove(file, fileList) {
|
|
handleRemove(file, fileList) {
|
|
|
console.log(this.fileList);
|
|
console.log(this.fileList);
|
|
@@ -335,6 +391,9 @@ export default {
|
|
|
handleExceed(files, fileList) {
|
|
handleExceed(files, fileList) {
|
|
|
this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
|
|
this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
|
|
|
},
|
|
},
|
|
|
|
|
+ handleWgtExceed(files, fileWgtList) {
|
|
|
|
|
+ this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileWgtList.length} 个文件`);
|
|
|
|
|
+ },
|
|
|
beforeRemove(file, fileList) {
|
|
beforeRemove(file, fileList) {
|
|
|
|
|
|
|
|
return this.$confirm(`确定移除 ${ file.name }?`);
|
|
return this.$confirm(`确定移除 ${ file.name }?`);
|
|
@@ -399,6 +458,7 @@ export default {
|
|
|
baiduUrl: null,
|
|
baiduUrl: null,
|
|
|
type: 1,
|
|
type: 1,
|
|
|
isForce: 1,
|
|
isForce: 1,
|
|
|
|
|
+ isHotForce: 1,
|
|
|
createTime: null,
|
|
createTime: null,
|
|
|
appType: 1,
|
|
appType: 1,
|
|
|
appStoreUpdate:false,
|
|
appStoreUpdate:false,
|