fix: Optimize copywriting and style

This commit is contained in:
wangdan-fit2cloud 2025-03-28 11:54:08 +08:00 committed by GitHub
parent 2b079a4144
commit 89be3e317d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 83 additions and 84 deletions

View File

@ -16,10 +16,11 @@ export default {
editSuccess: 'Successful', editSuccess: 'Successful',
modify: 'Modify', modify: 'Modify',
modifySuccess: 'Successful', modifySuccess: 'Successful',
add: 'Add',
addSuccess: 'Successful',
cancel: 'Cancel', cancel: 'Cancel',
confirm: 'OK', confirm: 'OK',
tip: 'Tips', tip: 'Tips',
add: 'Add',
refresh: 'Refresh', refresh: 'Refresh',
search: 'Search', search: 'Search',
clear: 'Clear', clear: 'Clear',

View File

@ -16,10 +16,11 @@ export default {
editSuccess: '编辑成功', editSuccess: '编辑成功',
modify: '修改', modify: '修改',
modifySuccess: '修改成功', modifySuccess: '修改成功',
add: '添加',
addSuccess: '添加成功',
cancel: '取消', cancel: '取消',
confirm: '确定', confirm: '确定',
tip: '提示', tip: '提示',
add: '添加',
refresh: '刷新', refresh: '刷新',
search: '搜索', search: '搜索',
clear: '清空', clear: '清空',
@ -57,7 +58,7 @@ export default {
param: { param: {
outputParam: '输出参数', outputParam: '输出参数',
inputParam: '输入参数', inputParam: '输入参数',
initParam: '启动参数', initParam: '启动参数'
}, },
rename: '重命名' rename: '重命名'
} }

View File

@ -16,10 +16,11 @@ export default {
editSuccess: '編輯成功', editSuccess: '編輯成功',
modify: '修改', modify: '修改',
modifySuccess: '修改成功', modifySuccess: '修改成功',
add: '添加',
addSuccess: '添加成功',
cancel: '取消', cancel: '取消',
confirm: '確認', confirm: '確認',
tip: '提示', tip: '提示',
add: '新增',
refresh: '重新整理', refresh: '重新整理',
search: '搜尋', search: '搜尋',
clear: '清除', clear: '清除',
@ -57,7 +58,7 @@ export default {
param: { param: {
outputParam: '輸出參數', outputParam: '輸出參數',
inputParam: '輸入參數', inputParam: '輸入參數',
initParam: '啟動參數', initParam: '啟動參數'
}, },
rename: '重命名' rename: '重命名'
} }

View File

@ -5,7 +5,6 @@
</template> </template>
<div class="create-dataset__main flex" v-loading="loading"> <div class="create-dataset__main flex" v-loading="loading">
<div class="create-dataset__component main-calc-height"> <div class="create-dataset__component main-calc-height">
<el-scrollbar>
<div class="upload-document p-24"> <div class="upload-document p-24">
<h4 class="title-decoration-1 mb-8"> <h4 class="title-decoration-1 mb-8">
{{ $t('views.document.feishu.selectDocument') }} {{ $t('views.document.feishu.selectDocument') }}
@ -42,7 +41,8 @@
@change="handleAllCheckChange" @change="handleAllCheckChange"
/> />
</div> </div>
<div style="height:calc(100vh - 430px)">
<el-scrollbar>
<el-tree <el-tree
:props="props" :props="props"
:load="loadNode" :load="loadNode"
@ -76,9 +76,10 @@
</div> </div>
</template> </template>
</el-tree> </el-tree>
</el-scrollbar>
</div>
</el-form> </el-form>
</div> </div>
</el-scrollbar>
</div> </div>
</div> </div>
<div class="create-dataset__footer text-right border-t"> <div class="create-dataset__footer text-right border-t">

View File

@ -23,7 +23,7 @@
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click.prevent="dialogVisible = false"> {{ $t('common.cancel') }} </el-button> <el-button @click.prevent="dialogVisible = false"> {{ $t('common.cancel') }} </el-button>
<el-button type="primary" @click="submit(fieldFormRef)" :loading="loading"> <el-button type="primary" @click="submit(fieldFormRef)" :loading="loading">
{{ isEdit ? $t('common.save') : $t('common.add') }} {{ $t('common.add') }}
</el-button> </el-button>
</span> </span>
</template> </template>
@ -34,14 +34,11 @@ import { reactive, ref, watch } from 'vue'
import type { FormInstance } from 'element-plus' import type { FormInstance } from 'element-plus'
import { cloneDeep } from 'lodash' import { cloneDeep } from 'lodash'
import { t } from '@/locales' import { t } from '@/locales'
import functionLibApi from '@/api/function-lib'
import { MsgSuccess } from '@/utils/message'
const emit = defineEmits(['refresh']) const emit = defineEmits(['refresh'])
const fieldFormRef = ref() const fieldFormRef = ref()
const loading = ref<boolean>(false) const loading = ref<boolean>(false)
const isEdit = ref(false)
const form = ref<any>({ const form = ref<any>({
name: '' name: ''
@ -64,14 +61,12 @@ watch(dialogVisible, (bool) => {
form.value = { form.value = {
name: '' name: ''
} }
isEdit.value = false
} }
}) })
const open = (row: any) => { const open = (row: any) => {
if (row) { if (row) {
form.value = cloneDeep(row) form.value = cloneDeep(row)
isEdit.value = true
} }
dialogVisible.value = true dialogVisible.value = true

View File

@ -47,7 +47,7 @@
</div> </div>
<div class="mt-16"> <div class="mt-16">
<el-text type="info" v-if="functionDetail?.desc"> <el-text type="info">
<div>{{ $t('common.author') }}: MaxKB</div> <div>{{ $t('common.author') }}: MaxKB</div>
</el-text> </el-text>
</div> </div>