mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 20:42:55 +08:00
fix: 模版管理 插件管理 国际化 bug修复
This commit is contained in:
parent
495fe81801
commit
9bf6a752bb
3
frontend/src/icons/svg/icon-maybe.svg
Normal file
3
frontend/src/icons/svg/icon-maybe.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00008 13.9993C11.3138 13.9993 14.0001 11.3131 14.0001 7.99935C14.0001 4.68564 11.3138 1.99935 8.00008 1.99935C4.68637 1.99935 2.00008 4.68564 2.00008 7.99935C2.00008 11.3131 4.68637 13.9993 8.00008 13.9993ZM8.00008 15.3327C3.94999 15.3327 0.666748 12.0494 0.666748 7.99935C0.666748 3.94926 3.94999 0.666016 8.00008 0.666016C12.0502 0.666016 15.3334 3.94926 15.3334 7.99935C15.3334 12.0494 12.0502 15.3327 8.00008 15.3327ZM7.66675 10.666H8.33341C8.51751 10.666 8.66675 10.8153 8.66675 10.9993V11.666C8.66675 11.8501 8.51751 11.9993 8.33341 11.9993H7.66675C7.48265 11.9993 7.33341 11.8501 7.33341 11.666V10.9993C7.33341 10.8153 7.48265 10.666 7.66675 10.666ZM5.36665 6.18716C5.37512 6.11264 5.3838 6.05066 5.39268 6.00119C5.52264 5.27747 5.85178 4.74524 6.38009 4.40449C6.79386 4.13439 7.30229 3.99935 7.9054 3.99935C8.69787 3.99935 9.3562 4.19126 9.88042 4.57508C10.4046 4.9589 10.6667 5.52751 10.6667 6.28094C10.6667 6.74295 10.5528 7.13209 10.3249 7.44839C10.1916 7.6403 9.93565 7.88552 9.55695 8.18405L9.18351 8.47724C8.98013 8.63717 8.84514 8.82374 8.77851 9.03698C8.76038 9.09517 8.74445 9.20335 8.73071 9.36151C8.71576 9.53379 8.57155 9.66601 8.39863 9.66601H7.65236C7.46826 9.66601 7.31903 9.51678 7.31903 9.33268C7.31903 9.32243 7.3195 9.31218 7.32044 9.30197C7.36337 8.83804 7.40933 8.54447 7.45833 8.42127C7.5495 8.19204 7.78443 7.92817 8.16313 7.62964L8.54709 7.32578C8.67332 7.22983 9.32379 6.77178 9.32379 6.36623C9.32379 5.96069 9.25314 5.81152 9.04952 5.58895C8.8459 5.36638 8.38755 5.29474 7.97378 5.29474C7.56703 5.29474 7.21945 5.40276 7.04938 5.67641C6.97061 5.80315 6.90621 5.93836 6.85975 6.07631C6.84148 6.13058 6.82528 6.19886 6.81118 6.28115C6.78373 6.44117 6.64499 6.55814 6.48264 6.55814H5.69786C5.51376 6.55815 5.36452 6.40891 5.36452 6.22481C5.36452 6.21223 5.36523 6.19966 5.36665 6.18716Z" fill="#646A73"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
4
frontend/src/icons/svg/icon_calendar_outlined.svg
Normal file
4
frontend/src/icons/svg/icon_calendar_outlined.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.83301 1.33398C5.10915 1.33398 5.33301 1.55784 5.33301 1.83398V2.00065H10.6663V1.83398C10.6663 1.55784 10.8902 1.33398 11.1663 1.33398H11.4997C11.7758 1.33398 11.9997 1.55784 11.9997 1.83398V2.00065H13.9997C14.3679 2.00065 14.6663 2.29913 14.6663 2.66732V14.0007C14.6663 14.3688 14.3679 14.6673 13.9997 14.6673H1.99967C1.63148 14.6673 1.33301 14.3688 1.33301 14.0007L1.33301 2.66732C1.33301 2.29913 1.63148 2.00065 1.99967 2.00065H3.99967V1.83398C3.99967 1.55784 4.22353 1.33398 4.49967 1.33398H4.83301ZM10.6663 3.33398H5.33301V3.50065C5.33301 3.77679 5.10915 4.00065 4.83301 4.00065H4.49967C4.22353 4.00065 3.99967 3.77679 3.99967 3.50065V3.33398H2.66634V13.334H13.333V3.33398H11.9997V3.50065C11.9997 3.77679 11.7758 4.00065 11.4997 4.00065H11.1663C10.8902 4.00065 10.6663 3.77679 10.6663 3.50065V3.33398ZM5.99967 6.83398C5.99967 6.55784 5.77582 6.33398 5.49967 6.33398H4.49967C4.22353 6.33398 3.99967 6.55784 3.99967 6.83398V7.83398C3.99967 8.11013 4.22353 8.33398 4.49967 8.33398H5.49967C5.77582 8.33398 5.99967 8.11013 5.99967 7.83398V6.83398ZM6.99967 6.83398C6.99967 6.55784 7.22353 6.33398 7.49967 6.33398H8.49967C8.77582 6.33398 8.99967 6.55784 8.99967 6.83398V7.83398C8.99967 8.11013 8.77582 8.33398 8.49967 8.33398H7.49967C7.22353 8.33398 6.99967 8.11013 6.99967 7.83398V6.83398ZM5.99967 9.83398C5.99967 9.55784 5.77582 9.33398 5.49967 9.33398H4.49967C4.22353 9.33398 3.99967 9.55784 3.99967 9.83398V10.834C3.99967 11.1101 4.22353 11.334 4.49967 11.334H5.49967C5.77582 11.334 5.99967 11.1101 5.99967 10.834V9.83398ZM6.99967 9.83398C6.99967 9.55784 7.22353 9.33398 7.49967 9.33398H8.49967C8.77582 9.33398 8.99967 9.55784 8.99967 9.83398V10.834C8.99967 11.1101 8.77582 11.334 8.49967 11.334H7.49967C7.22353 11.334 6.99967 11.1101 6.99967 10.834V9.83398ZM11.9997 6.83398C11.9997 6.55784 11.7758 6.33398 11.4997 6.33398H10.4997C10.2235 6.33398 9.99967 6.55784 9.99967 6.83398V7.83398C9.99967 8.11013 10.2235 8.33398 10.4997 8.33398H11.4997C11.7758 8.33398 11.9997 8.11013 11.9997 7.83398V6.83398Z" fill="#646A73"/>
|
||||
<path d="M11.9997 9.83398C11.9997 9.55784 11.7758 9.33398 11.4997 9.33398H10.4997C10.2235 9.33398 9.99967 9.55784 9.99967 9.83398V10.834C9.99967 11.1101 10.2235 11.334 10.4997 11.334H11.4997C11.7758 11.334 11.9997 11.1101 11.9997 10.834V9.83398Z" fill="#646A73"/>
|
||||
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
@ -395,7 +395,51 @@ export default {
|
||||
stickyTips: 'when the page is scrolled to the preset position will be sticky on the top.',
|
||||
backToTopTips1: 'When the page is scrolled to the specified position, the Back to Top button appears in the lower right corner',
|
||||
backToTopTips2: 'You can customize the style of the button, show / hide, height of appearance, height of the return. If you need a text prompt, you can use element-ui el-tooltip elements externally',
|
||||
imageUploadTips: 'Since I was using only the vue@1 version, and it is not compatible with mockjs at the moment, I modified it myself, and if you are going to use it, it is better to use official version.'
|
||||
imageUploadTips: 'Since I was using only the vue@1 version, and it is not compatible with mockjs at the moment, I modified it myself, and if you are going to use it, it is better to use official version.',
|
||||
run_once: 'Run once',
|
||||
continue: 'continue',
|
||||
hour: 'hour',
|
||||
minute: 'minute',
|
||||
by_task_name: 'Search by task name',
|
||||
delete_this_task: 'Are you sure to delete this task?',
|
||||
message_receiving_management: 'Message receiving management',
|
||||
upload_failed: 'Upload failed',
|
||||
is_not_supported: 'The file format is not supported',
|
||||
is_too_large: 'The file is too large',
|
||||
enter_kettle_address: 'Please enter kettle address',
|
||||
enter_the_port: 'Please enter the port',
|
||||
one_user_name: 'enter one user name',
|
||||
input_a_password: 'Please input a password',
|
||||
address_is_required: 'Kettle address is required',
|
||||
port_is_required: 'Port is required',
|
||||
name_is_required: 'User name is required',
|
||||
password_is_required: 'Password is required',
|
||||
help_document_link: 'Invalid help document link',
|
||||
such_as_dataeasedataease: 'Please enter the login page title, such as: dataeasedataease',
|
||||
for_example_dataease: 'Please enter the system name, for example: dataease',
|
||||
time_is_required: 'Start time is required',
|
||||
delete_this_task: 'Are you sure to delete this task?',
|
||||
it_takes_effect: 'Uninstall and restart the server before it takes effect',
|
||||
uninstall_the_plugin: 'Are you sure to uninstall the plug-in?',
|
||||
uninstall: 'uninstall',
|
||||
relevant_content_found: 'No relevant content found',
|
||||
view_tasks: 'View tasks',
|
||||
day: 'day',
|
||||
no_classification: 'No classification',
|
||||
no_template: 'No template',
|
||||
data_set_required: 'Data set (required)',
|
||||
unread_message: 'Unread message',
|
||||
read_message: 'Read message',
|
||||
all_messages: 'All messages',
|
||||
message_list: 'Message list',
|
||||
all_read_successfully: 'All read successfully',
|
||||
by_plugin_name: 'Search by plug-in name',
|
||||
unable_to_uninstall: 'Built in plug-in, unable to uninstall',
|
||||
free: 'free',
|
||||
cost: 'cost',
|
||||
developer: 'developer',
|
||||
edition: 'edition',
|
||||
installation_time: 'Installation time:'
|
||||
},
|
||||
table: {
|
||||
dynamicTips1: 'Fixed header, sorted by header order',
|
||||
|
@ -395,7 +395,51 @@ export default {
|
||||
stickyTips: '當頁面滾動到預設的位置會吸附在頂部',
|
||||
backToTopTips1: '頁面滾動到指定位置會在右下角出現返回頂部按鈕',
|
||||
backToTopTips2: '可自定義按鈕的樣式、show/hide、出現的高度、返回的位置 如需文字提示,可在外部使用Element的el-tooltip元素',
|
||||
imageUploadTips: '由於我在使用時它只有vue@1版本,而且和mockjs不兼容,所以自己改造了一下,如果大家要使用的話,優先還是使用官方版本。'
|
||||
imageUploadTips: '由於我在使用時它只有vue@1版本,而且和mockjs不兼容,所以自己改造了一下,如果大家要使用的話,優先還是使用官方版本。',
|
||||
run_once: '運行一次',
|
||||
continue: '繼續',
|
||||
hour: '小時',
|
||||
minute: '分鐘',
|
||||
by_task_name: '通過任務名稱蒐索',
|
||||
delete_this_task: '確定删除該任務嗎?',
|
||||
message_receiving_management: '消息接收管理',
|
||||
upload_failed: '上傳失敗',
|
||||
is_not_supported: '檔案格式不支持',
|
||||
is_too_large: '檔案過大',
|
||||
enter_kettle_address: '請輸入Kettle地址',
|
||||
enter_the_port: '請輸入埠',
|
||||
one_user_name: '請輸入用戶名',
|
||||
input_a_password: '請輸入密碼',
|
||||
address_is_required: 'Kettle地址為必填',
|
||||
port_is_required: '埠為必填',
|
||||
name_is_required: '用戶名為必填',
|
||||
password_is_required: '密碼為必填',
|
||||
help_document_link: '幫助文檔連結無效',
|
||||
such_as_dataeasedataease: '請輸入登入頁面標題,比如:DataEaseDataEase',
|
||||
for_example_dataease: '請輸入系統名稱,比如:DataEase',
|
||||
time_is_required: '開始時間為必填',
|
||||
delete_this_task: '確定删除該任務嗎?',
|
||||
it_takes_effect: '卸載並重啓服務器之後才能生效',
|
||||
uninstall_the_plugin: '確定卸載該挿件?',
|
||||
uninstall: '卸載',
|
||||
relevant_content_found: '沒有找到相關內容',
|
||||
view_tasks: '查看任務',
|
||||
day: '天',
|
||||
no_classification: '暫無分類',
|
||||
no_template: '暫無模版',
|
||||
data_set_required: '數据集必填',
|
||||
unread_message: '未讀消息',
|
||||
read_message: '已讀消息',
|
||||
all_messages: '全部消息',
|
||||
message_list: '消息清單',
|
||||
all_read_successfully: '全部已讀成功',
|
||||
by_plugin_name: '通過挿件名稱蒐索',
|
||||
unable_to_uninstall: '內寘挿件,無法卸載',
|
||||
free: '免費',
|
||||
cost: '費用',
|
||||
developer: '開發者',
|
||||
edition: '版本',
|
||||
installation_time: '安裝時間'
|
||||
},
|
||||
table: {
|
||||
dynamicTips1: '固定錶頭, 按照錶頭順序排序',
|
||||
|
@ -396,7 +396,52 @@ export default {
|
||||
stickyTips: '当页面滚动到预设的位置会吸附在顶部',
|
||||
backToTopTips1: '页面滚动到指定位置会在右下角出现返回顶部按钮',
|
||||
backToTopTips2: '可自定义按钮的样式、show/hide、出现的高度、返回的位置 如需文字提示,可在外部使用Element的el-tooltip元素',
|
||||
imageUploadTips: '由于我在使用时它只有vue@1版本,而且和mockjs不兼容,所以自己改造了一下,如果大家要使用的话,优先还是使用官方版本。'
|
||||
imageUploadTips: '由于我在使用时它只有vue@1版本,而且和mockjs不兼容,所以自己改造了一下,如果大家要使用的话,优先还是使用官方版本。',
|
||||
run_once: '运行一次',
|
||||
continue: '继续',
|
||||
hour: '小时',
|
||||
minute: '分钟',
|
||||
day: '天',
|
||||
by_task_name: '通过任务名称搜索',
|
||||
delete_this_task: '确定删除该任务吗?',
|
||||
all_read_successfully: '全部已读成功',
|
||||
message_receiving_management: '消息接收管理',
|
||||
upload_failed: '上传失败',
|
||||
is_not_supported: '文件格式不支持',
|
||||
is_too_large: '文件过大',
|
||||
enter_kettle_address: '请输入 Kettle 地址',
|
||||
enter_the_port: '请输入端口',
|
||||
one_user_name: '请输入用户名',
|
||||
input_a_password: '请输入密码',
|
||||
address_is_required: 'Kettle 地址为必填',
|
||||
port_is_required: '端口为必填',
|
||||
name_is_required: '用户名为必填',
|
||||
password_is_required: '密码为必填',
|
||||
help_document_link: '帮助文档链接无效',
|
||||
such_as_dataeasedataease: '请输入登录页面标题,比如:DataEaseDataEase',
|
||||
for_example_dataease: '请输入系统名称,比如:DataEase',
|
||||
time_is_required: '开始时间为必填',
|
||||
delete_this_task: '确定删除该任务吗?',
|
||||
message_receiving_management: '消息接收管理',
|
||||
it_takes_effect: '卸载并重启服务器之后才能生效',
|
||||
uninstall_the_plugin: '确定卸载该插件?',
|
||||
uninstall: '卸载',
|
||||
relevant_content_found: '没有找到相关内容',
|
||||
view_tasks: '查看任务',
|
||||
no_classification: '暂无分类',
|
||||
no_template: '暂无模版',
|
||||
data_set_required: '数据集必填',
|
||||
unread_message: '未读消息',
|
||||
read_message: '已读消息',
|
||||
all_messages: '全部消息',
|
||||
message_list: '消息列表',
|
||||
by_plugin_name: '通过插件名称搜索',
|
||||
unable_to_uninstall: '内置插件,无法卸载',
|
||||
free: '免费',
|
||||
cost: '费用',
|
||||
developer: '开发者',
|
||||
edition: '版本',
|
||||
installation_time: '安装时间'
|
||||
},
|
||||
table: {
|
||||
dynamicTips1: '固定表头, 按照表头顺序排序',
|
||||
|
@ -1181,3 +1181,19 @@ div:focus {
|
||||
.tox {
|
||||
border-radius: 4px !important;
|
||||
}
|
||||
|
||||
.de-date-picker {
|
||||
.el-input__inner {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.el-input__prefix {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-calendar-outlined {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
bottom: 12px;
|
||||
}
|
@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<de-layout-content
|
||||
:header="$t('消息列表')"
|
||||
:header="$t('components.message_list')"
|
||||
v-loading="$store.getters.loadingMap[$store.getters.currentPath]"
|
||||
>
|
||||
<div class="organization">
|
||||
<el-tabs v-model="tabActive" @tab-click="changeTab">
|
||||
<el-tab-pane :label="$t('未读消息')" name="unread"> </el-tab-pane>
|
||||
<el-tab-pane :label="$t('已读消息')" name="readed"> </el-tab-pane>
|
||||
<el-tab-pane :label="$t('全部消息')" name="allMsg"> </el-tab-pane>
|
||||
<el-tab-pane :label="$t('components.unread_message')" name="unread"> </el-tab-pane>
|
||||
<el-tab-pane :label="$t('components.read_message')" name="readed"> </el-tab-pane>
|
||||
<el-tab-pane :label="$t('components.all_messages')" name="allMsg"> </el-tab-pane>
|
||||
</el-tabs>
|
||||
<div class="tabs-container">
|
||||
<div class="msg-cont">
|
||||
@ -185,7 +185,7 @@ export default {
|
||||
},
|
||||
allMarkReaded() {
|
||||
allRead().then(res => {
|
||||
this.openMessageSuccess('webmsg.mark_success');
|
||||
this.openMessageSuccess('components.all_read_successfully');
|
||||
bus.$emit('refresh-top-notification')
|
||||
this.initSearch()
|
||||
})
|
||||
|
@ -18,11 +18,11 @@
|
||||
<slot>
|
||||
<el-dropdown-item command="rename">
|
||||
<i class="el-icon-edit"></i>
|
||||
重命名
|
||||
{{ $t('chart.rename')}}
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item command="delete">
|
||||
<i class="el-icon-delete"></i>
|
||||
删除
|
||||
{{ $t('chart.delete')}}
|
||||
</el-dropdown-item>
|
||||
</slot>
|
||||
</el-dropdown-menu>
|
||||
|
@ -8,12 +8,14 @@
|
||||
prefix-icon="el-icon-search"
|
||||
/>
|
||||
<el-empty
|
||||
:image="noneImg"
|
||||
v-if="!templateListComputed.length && templateFilterText === ''"
|
||||
description="暂无分类"
|
||||
:description="$t('components.no_classification')"
|
||||
></el-empty>
|
||||
<el-empty
|
||||
:image="nothingImg"
|
||||
v-if="!templateListComputed.length && templateFilterText !== ''"
|
||||
description="没有找到相关内容"
|
||||
:description="$t('components.relevant_content_found')"
|
||||
></el-empty>
|
||||
<ul>
|
||||
<li
|
||||
@ -83,6 +85,8 @@ export default {
|
||||
return {
|
||||
templateFilterText: "",
|
||||
activeTemplate: "",
|
||||
noneImg: require('@/assets/None.png'),
|
||||
nothingImg: require('@/assets/nothing.png'),
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
@ -45,8 +45,9 @@
|
||||
</deBtn>
|
||||
</div>
|
||||
<el-empty
|
||||
:image="noneImg"
|
||||
v-if="!currentTemplateShowList.length"
|
||||
description="暂无模版"
|
||||
:description="$t('components.no_template')"
|
||||
></el-empty>
|
||||
<div
|
||||
id="template-box"
|
||||
@ -126,6 +127,7 @@ export default {
|
||||
return {
|
||||
showShare: false,
|
||||
currentTemplateShowList: [],
|
||||
noneImg: require('@/assets/None.png'),
|
||||
currentPid: "",
|
||||
currentTemplateType: "self",
|
||||
templateEditFormRules: {
|
||||
|
@ -28,7 +28,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('system_parameter_setting.message_retention_time')" prop="msgTimeOut">
|
||||
<el-input v-model="formInline.msgTimeOut" :placeholder="$t('system_parameter_setting.empty_msg')"><template
|
||||
slot="append">天</template></el-input>
|
||||
slot="append">{{ $t('components.day') }}</template></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item v-if="loginTypes.length > 1" :label="$t('system_parameter_setting.login_type')" prop="loginType">
|
||||
|
@ -77,22 +77,23 @@
|
||||
:rules="rule"
|
||||
>
|
||||
<el-form-item :label="$t('kettle.carte')" prop="configuration.carte">
|
||||
<el-input v-model="form.configuration.carte" />
|
||||
<el-input v-model="form.configuration.carte" :placeholder="$t('components.enter_kettle_address')" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('kettle.port')" prop="configuration.port">
|
||||
<el-input-number
|
||||
v-model="form.configuration.port"
|
||||
controls-position="right"
|
||||
:placeholder="$t('components.enter_the_port')"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('kettle.user')" prop="configuration.user">
|
||||
<el-input v-model="form.configuration.user" />
|
||||
<el-input :placeholder="$t('components.one_user_name')" v-model="form.configuration.user" />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('kettle.passwd')"
|
||||
prop="configuration.passwd"
|
||||
>
|
||||
<el-input v-model="form.configuration.passwd" show-password />
|
||||
<el-input :placeholder="$t('components.input_a_password')" v-model="form.configuration.passwd" show-password />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-col>
|
||||
@ -149,28 +150,28 @@ export default {
|
||||
"configuration.carte": [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("commons.required"),
|
||||
message: this.$t("components.address_is_required"),
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
"configuration.port": [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("commons.required"),
|
||||
message: this.$t("components.port_is_required"),
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
"configuration.user": [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("commons.required"),
|
||||
message: this.$t("components.name_is_required"),
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
"configuration.passwd": [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("commons.required"),
|
||||
message: this.$t("components.password_is_required"),
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
|
@ -4,7 +4,7 @@
|
||||
>
|
||||
<div class="top-install">
|
||||
<el-input
|
||||
placeholder="通过插件名称搜索"
|
||||
:placeholder="$t('components.by_plugin_name')"
|
||||
size="small"
|
||||
prefix-icon="el-icon-search"
|
||||
v-model="name"
|
||||
@ -64,13 +64,13 @@
|
||||
</div>
|
||||
<div class="info-left">
|
||||
<p class="list name" v-for="item in listName" :key="item">
|
||||
{{ item }}
|
||||
{{ $t(`components.${item}`) }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="info-right">
|
||||
<p class="list value" v-for="item in listValue" :key="item">
|
||||
<template v-if="item === 'cost' && !ele.cost">
|
||||
<el-tag size="mini" type="success">免费</el-tag>
|
||||
<el-tag size="mini" type="success">{{ $t('components.free')}}</el-tag>
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ ele[item] }}
|
||||
@ -93,14 +93,14 @@
|
||||
:headers="headers"
|
||||
>
|
||||
<div class="btn-plugin update">
|
||||
<i class="el-icon-more"></i>更新
|
||||
<i class="el-icon-more"></i>{{ $t('dataset.update')}}
|
||||
</div>
|
||||
</el-upload>
|
||||
<el-divider v-if="numPlugin === 2" direction="vertical"></el-divider>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="'内置插件,无法卸载'"
|
||||
:content="$t('components.unable_to_uninstall')"
|
||||
placement="top"
|
||||
>
|
||||
<div
|
||||
@ -109,7 +109,7 @@
|
||||
@click="del(ele)"
|
||||
class="btn-plugin uninstall"
|
||||
>
|
||||
<i class="el-icon-more"></i>卸载
|
||||
<i class="el-icon-more"></i> {{$t('components.uninstall')}}
|
||||
</div>
|
||||
</el-tooltip>
|
||||
<div
|
||||
@ -118,7 +118,7 @@
|
||||
@click="del(ele)"
|
||||
class="btn-plugin uninstall"
|
||||
>
|
||||
<i class="el-icon-more"></i>卸载
|
||||
<i class="el-icon-more"></i>{{$t('components.uninstall')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -140,7 +140,7 @@ export default {
|
||||
mixins: [msgCfm],
|
||||
data() {
|
||||
return {
|
||||
listName: ["费用", "开发者", "版本", "安装时间"],
|
||||
listName: ["cost", "developer", "edition", "installation_time"],
|
||||
name: "",
|
||||
listValue: ["cost", "creator", "version", "installTime"],
|
||||
data: [],
|
||||
|
@ -17,7 +17,7 @@
|
||||
</el-col>
|
||||
<el-col :span="14" class="right-user">
|
||||
<el-input
|
||||
:placeholder="$t('通过任务名称搜索')"
|
||||
:placeholder="$t('components.by_task_name')"
|
||||
prefix-icon="el-icon-search"
|
||||
class="name-email-search"
|
||||
size="small"
|
||||
@ -168,11 +168,7 @@
|
||||
>{{
|
||||
$t(`dataset.${scope.row.lastExecStatus.toLocaleLowerCase()}`)
|
||||
}}
|
||||
<i
|
||||
v-if="scope.row.lastExecStatus === 'Error'"
|
||||
class="el-icon-s-order"
|
||||
@click="showErrorMassage(scope.row.msg)"
|
||||
></i>
|
||||
<svg-icon style="cursor: pointer;" v-if="scope.row.lastExecStatus === 'Error'" @click="showErrorMassage(scope.row.msg)" icon-class="icon-maybe" class="field-icon-location" />
|
||||
</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
@ -240,13 +236,13 @@
|
||||
:disabled="disableExec(scope.row)"
|
||||
command="exec"
|
||||
>
|
||||
{{ $t("运行一次") }}
|
||||
{{ $t("components.run_once") }}
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item
|
||||
v-if="scope.row.status === 'Pending'"
|
||||
command="contine"
|
||||
>
|
||||
{{ $t("继续") }}
|
||||
{{ $t("components.continue") }}
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item
|
||||
v-if="scope.row.status === 'Underway'"
|
||||
|
@ -6,7 +6,7 @@
|
||||
</el-col>
|
||||
<el-col :span="14" class="right-user">
|
||||
<el-input
|
||||
:placeholder="$t('通过任务名称搜索')"
|
||||
:placeholder="$t('components.by_task_name')"
|
||||
prefix-icon="el-icon-search"
|
||||
class="name-email-search"
|
||||
size="small"
|
||||
@ -100,11 +100,7 @@
|
||||
v-if="scope.row.status"
|
||||
:class="[`de-${scope.row.status}`, 'de-status']"
|
||||
>{{ $t(`dataset.${scope.row.status.toLocaleLowerCase()}`) }}
|
||||
<i
|
||||
v-if="scope.row.status === 'Error'"
|
||||
class="el-icon-question"
|
||||
@click="showErrorMassage(scope.row.msg)"
|
||||
></i>
|
||||
<svg-icon style="cursor: pointer;" v-if="scope.row.status === 'Error'" @click="showErrorMassage(scope.row.msg)" icon-class="icon-maybe" class="field-icon-location" />
|
||||
</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
|
@ -42,7 +42,7 @@
|
||||
</el-form-item>
|
||||
<div class="add-scope-cont" v-if="taskForm.type === 'add_scope'">
|
||||
<el-form-item
|
||||
prop=""
|
||||
prop="incrementalUpdateType"
|
||||
:label="$t('dataset.incremental_update_type')"
|
||||
>
|
||||
<el-radio-group
|
||||
@ -121,9 +121,9 @@
|
||||
size="small"
|
||||
@change="onSimpleCronChange()"
|
||||
>
|
||||
<el-option :label="$t('分钟')" value="minute" />
|
||||
<el-option :label="$t('小时')" value="hour" />
|
||||
<el-option :label="$t('天')" value="day" />
|
||||
<el-option :label="$t('components.minute')" value="minute" />
|
||||
<el-option :label="$t('components.hour')" value="hour" />
|
||||
<el-option :label="$t('components.day')" value="day" />
|
||||
</el-select>
|
||||
{{ $t("cron.every_exec") }}
|
||||
</div>
|
||||
@ -155,10 +155,13 @@
|
||||
>
|
||||
<el-date-picker
|
||||
v-model="taskForm.startTime"
|
||||
class="de-date-picker"
|
||||
type="datetime"
|
||||
:placeholder="$t('dataset.start_time')"
|
||||
size="small"
|
||||
/>
|
||||
>
|
||||
</el-date-picker>
|
||||
<svg-icon icon-class="icon_calendar_outlined" class="icon-calendar-outlined" />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="taskForm.rate !== 'SIMPLE'"
|
||||
@ -172,10 +175,12 @@
|
||||
<el-date-picker
|
||||
v-if="taskForm.end === '1'"
|
||||
v-model="taskForm.endTime"
|
||||
class="de-date-picker"
|
||||
type="datetime"
|
||||
:placeholder="$t('dataset.end_time')"
|
||||
size="small"
|
||||
/>
|
||||
<svg-icon v-if="taskForm.end === '1'" icon-class="icon_calendar_outlined" class="icon-calendar-outlined" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
</el-form>
|
||||
@ -278,7 +283,7 @@ export default {
|
||||
startTime: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("dataset.required"),
|
||||
message: this.$t("components.time_is_required"),
|
||||
trigger: "change",
|
||||
},
|
||||
],
|
||||
@ -306,7 +311,13 @@ export default {
|
||||
datasetName: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("数据集必填"),
|
||||
message: this.$t("components.data_set_required"),
|
||||
trigger: "change",
|
||||
},
|
||||
],
|
||||
incrementalUpdateType: [
|
||||
{
|
||||
required: true,
|
||||
trigger: "change",
|
||||
},
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user