Browse Source

[Fix][UI Next][V1.0.0-Alpha] Fix the scale of the table on the task instance page is out of balance. (#9006)

3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
2e9740c39e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui-next/src/views/projects/task/instance/index.tsx
  2. 14
      dolphinscheduler-ui-next/src/views/projects/task/instance/use-table.ts
  3. 7
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-auto-layout-modal.tsx
  4. 5
      dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/copy-modal.tsx
  5. 5
      dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/import-modal.tsx
  6. 5
      dolphinscheduler-ui-next/src/views/resource/file/folder/index.tsx
  7. 5
      dolphinscheduler-ui-next/src/views/resource/file/rename/index.tsx
  8. 5
      dolphinscheduler-ui-next/src/views/resource/file/upload/index.tsx
  9. 10
      dolphinscheduler-ui-next/src/views/resource/udf/function/components/function-modal.tsx
  10. 5
      dolphinscheduler-ui-next/src/views/resource/udf/resource/components/folder-modal.tsx
  11. 5
      dolphinscheduler-ui-next/src/views/resource/udf/resource/components/upload-modal.tsx
  12. 8
      dolphinscheduler-ui-next/src/views/security/alarm-instance-manage/detail.tsx

6
dolphinscheduler-ui-next/src/views/projects/task/instance/index.tsx

@ -182,7 +182,11 @@ const TaskInstance = defineComponent({
</NSpace>
</NCard>
<Card class={styles['table-card']}>
<NDataTable columns={this.columns} data={this.tableData} />
<NDataTable
columns={this.columns}
data={this.tableData}
scrollX={1800}
/>
<div class={styles.pagination}>
<NPagination
v-model:page={this.page}

14
dolphinscheduler-ui-next/src/views/projects/task/instance/use-table.ts

@ -73,7 +73,6 @@ export function useTable() {
{
title: t('project.task.workflow_instance'),
key: 'processInstanceName',
width: 250,
render: (row: {
processInstanceId: number
processInstanceName: string
@ -106,18 +105,15 @@ export function useTable() {
},
{
title: t('project.task.submit_time'),
key: 'submitTime',
width: 170
key: 'submitTime'
},
{
title: t('project.task.start_time'),
key: 'startTime',
width: 170
key: 'startTime'
},
{
title: t('project.task.end_time'),
key: 'endTime',
width: 170
key: 'endTime'
},
{
title: t('project.task.duration'),
@ -134,13 +130,13 @@ export function useTable() {
},
{
title: t('project.task.host'),
key: 'host',
width: 160
key: 'host'
},
{
title: t('project.task.operation'),
key: 'operation',
width: 150,
fixed: 'right',
render(row: any) {
return h(NSpace, null, {
default: () => [

7
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-auto-layout-modal.tsx

@ -67,12 +67,7 @@ export default defineComponent({
onCancel={cancel}
autoFocus={false}
>
<NForm
model={formValue.value}
rules={{}}
size='medium'
ref={formRef}
>
<NForm model={formValue.value} rules={{}} size='medium' ref={formRef}>
<NFormItem label={t('project.dag.layout_type')} path='type'>
<NRadioGroup
v-model={[formValue.value.type, 'value']}

5
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/copy-modal.tsx

@ -92,10 +92,7 @@ export default defineComponent({
onConfirm={this.handleCopy}
confirmLoading={this.saving}
>
<NForm
rules={this.copyRules}
ref='copyFormRef'
>
<NForm rules={this.copyRules} ref='copyFormRef'>
<NFormItem
label={t('project.workflow.project_name')}
path='projectCode'

5
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/import-modal.tsx

@ -69,10 +69,7 @@ export default defineComponent({
onConfirm={this.handleImport}
confirmLoading={this.saving}
>
<NForm
rules={this.importRules}
ref='importFormRef'
>
<NForm rules={this.importRules} ref='importFormRef'>
<NFormItem label={t('project.workflow.upload_file')} path='file'>
<NButton>
<NUpload

5
dolphinscheduler-ui-next/src/views/resource/file/folder/index.tsx

@ -63,10 +63,7 @@ export default defineComponent({
cancelClassName='btn-cancel'
confirmLoading={this.saving}
>
<NForm
rules={this.rules}
ref='folderFormRef'
>
<NForm rules={this.rules} ref='folderFormRef'>
<NFormItem label={t('resource.file.folder_name')} path='name'>
<NInput
v-model={[this.folderForm.name, 'value']}

5
dolphinscheduler-ui-next/src/views/resource/file/rename/index.tsx

@ -79,10 +79,7 @@ export default defineComponent({
cancelClassName='btn-cancel'
confirmLoading={this.saving}
>
<NForm
rules={this.rules}
ref='renameFormRef'
>
<NForm rules={this.rules} ref='renameFormRef'>
<NFormItem label={t('resource.file.name')} path='name'>
<NInput
v-model={[this.renameForm.name, 'value']}

5
dolphinscheduler-ui-next/src/views/resource/file/upload/index.tsx

@ -69,10 +69,7 @@ export default defineComponent({
cancelClassName='btn-cancel'
confirmLoading={this.saving}
>
<NForm
rules={this.rules}
ref='uploadFormRef'
>
<NForm rules={this.rules} ref='uploadFormRef'>
<NFormItem label={t('resource.file.file_name')} path='name'>
<NInput
v-model={[this.uploadForm.name, 'value']}

10
dolphinscheduler-ui-next/src/views/resource/udf/function/components/function-modal.tsx

@ -128,10 +128,7 @@ export default defineComponent({
cancelClassName='btn-cancel'
confirmLoading={this.saving}
>
<NForm
rules={this.rules}
ref='functionFormRef'
>
<NForm rules={this.rules} ref='functionFormRef'>
<NFormItem label={t('resource.function.type')} path='type'>
<NRadioGroup
v-model={[this.functionForm.type, 'value']}
@ -189,10 +186,7 @@ export default defineComponent({
</NInputGroup>
</NFormItem>
{this.uploadShow && (
<NForm
rules={this.uploadRules}
ref='uploadFormRef'
>
<NForm rules={this.uploadRules} ref='uploadFormRef'>
<NFormItem
label={t('resource.function.udf_resources_directory')}
path='pid'

5
dolphinscheduler-ui-next/src/views/resource/udf/resource/components/folder-modal.tsx

@ -83,10 +83,7 @@ export default defineComponent({
cancelClassName='btn-cancel'
confirmLoading={this.saving}
>
<NForm
rules={this.rules}
ref='folderFormRef'
>
<NForm rules={this.rules} ref='folderFormRef'>
<NFormItem label={t('resource.udf.folder_name')} path='name'>
<NInput
v-model={[this.folderForm.name, 'value']}

5
dolphinscheduler-ui-next/src/views/resource/udf/resource/components/upload-modal.tsx

@ -70,10 +70,7 @@ export default defineComponent({
cancelClassName='btn-cancel'
confirmLoading={this.saving}
>
<NForm
rules={this.rules}
ref='uploadFormRef'
>
<NForm rules={this.rules} ref='uploadFormRef'>
<NFormItem label={t('resource.udf.file_name')} path='name'>
<NInput
v-model={[this.uploadForm.name, 'value']}

8
dolphinscheduler-ui-next/src/views/security/alarm-instance-manage/detail.tsx

@ -15,13 +15,7 @@
* limitations under the License.
*/
import {
defineComponent,
toRefs,
watch,
onMounted,
ref
} from 'vue'
import { defineComponent, toRefs, watch, onMounted, ref } from 'vue'
import { NSelect, NInput } from 'naive-ui'
import { isFunction } from 'lodash'
import { useI18n } from 'vue-i18n'

Loading…
Cancel
Save