perf: 远程应用上传过程中,如果应用不存在,则创建该应用;如果已存在,则进行应用更新。

This commit is contained in:
feng
2023-12-11 14:26:43 +08:00
parent 4e23a34af9
commit dc4378b637
5 changed files with 12 additions and 1 deletions

View File

@@ -1500,6 +1500,7 @@
"UploadSucceed": "Upload succeed",
"UploadFailed": "Upload failed",
"Applets": "Remote apps",
"AppletHelpText": "During the upload process, if the application does not exist, the application is created; if it already exists, the application is updated.",
"AppletHostSelectHelpMessage": "When connecting assets, the selection of the applet host is random. If you want to assign a specific one, you can specify the label AppletHost:AppletHostName in the asset label",
"AppletHosts": "Remote hosts",
"uploadZipTips": "Please upload zip file",

View File

@@ -1493,6 +1493,7 @@
"UploadFailed": "アップロードに失敗しました",
"AppletHostSelectHelpMessage": "アセットを接続する際、アプリケーションのデプロイホストの選択はランダムです。特定のアセットに固定のデプロイホストを割り当てたい場合は、AppletHost: <ホスト名>」というラベルを指定してください。",
"Applets": "リモートアプリケーション",
"AppletHelpText": "アップロード プロセス中に、アプリケーションが存在しない場合はアプリケーションが作成され、すでに存在する場合はアプリケーションが更新されます。",
"AppletHosts": "アプリケーションパブリッシャ",
"uploadZipTips": "zip形式のファイルをアップロードしてください",
"HostDeployment": "パブリッシャーの導入",

View File

@@ -1479,6 +1479,7 @@
"UploadSucceed": "上传成功",
"UploadFailed": "上传失败",
"Applets": "远程应用",
"AppletHelpText": "在上传过程中,如果应用不存在,则创建该应用;如果已存在,则进行应用更新。",
"AppletHosts": "应用发布机",
"AppletHostSelectHelpMessage": "连接资产时,应用发布机选择是随机的(但优先选择上次使用的),如果想为某个资产固定发布机,可以指定标签 <发布机:发布机名称> 或 <AppletHost:发布机名称>; <br>连接该发布机选择账号时,以下情况会选择用户的 <b>同名账号 或 专有账号(js开头)</b>,否则使用公用账号(jms开头)<br>&nbsp; 1. 发布机和应用都支持并发; <br>&nbsp; 2. 发布机支持并发,应用不支持并发,当前应用没有使用专有账号; <br>&nbsp; 3. 发布机不支持并发,应用支持并发或不支持,没有任一应用使用专有账号; <br> 注意: 应用支不支持并发是开发者决定,主机支不支持是发布机配置中的 单用户单会话决定",
"uploadZipTips": "请上传 zip 格式的文件",

View File

@@ -1,5 +1,12 @@
<template>
<div>
<el-row :gutter="20">
<el-col :md="24" :sm="24">
<el-alert type="success">
{{ $t('terminal.AppletHelpText') }}
</el-alert>
</el-col>
</el-row>
<CardTable ref="CardTable" v-bind="$data" />
<UploadDialog :visible.sync="uploadDialogVisible" @upload-event="handleUpload" />
</div>

View File

@@ -90,7 +90,8 @@ export default {
form,
{
headers: { 'Content-Type': 'multipart/form-data' },
disableFlashErrorMsg: true
disableFlashErrorMsg: true,
params: { update: true }
}
).then(res => {
this.isFinished = true