[Fix][UI Next][V1.0.0-Alpha] Fix the scale of the table on the task instance page is out of balance. (#9006)
parent
5c5f737a00
commit
2e9740c39e
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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: () => [
|
||||
|
|
|
|||
|
|
@ -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']}
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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']}
|
||||
|
|
|
|||
|
|
@ -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']}
|
||||
|
|
|
|||
|
|
@ -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']}
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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']}
|
||||
|
|
|
|||
|
|
@ -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']}
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue