任务级别列表更改
continuous-integration/drone/push Build is running Details

main
caiyiling 2026-04-03 13:42:14 +08:00
parent 6321bddfd3
commit 769c5f8440
2 changed files with 28 additions and 2 deletions

View File

@ -2,10 +2,25 @@
<BaseContainer> <BaseContainer>
<template slot="search-container"> <template slot="search-container">
<el-form :inline="true"> <el-form :inline="true">
<!-- 文件名称 -->
<el-form-item label="文件名称" prop="FileName"> <el-form-item label="文件名称" prop="FileName">
<el-input v-model="searchData.FileName" size="small" clearable style="width: 120px" /> <el-input v-model="searchData.FileName" size="small" clearable style="width: 120px" />
</el-form-item> </el-form-item>
<!-- 文件路径 -->
<el-form-item label="文件路径" prop="Path">
<el-input v-model="searchData.Path" size="small" clearable />
</el-form-item>
<!-- 任务状态 -->
<el-form-item label="任务状态" prop="JobState">
<el-select v-model="searchData.JobState" clearable style="width: 120px">
<el-option
v-for="item of $d.JobState"
:key="'JobState' + item.label"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleSearch"> <el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t('common:button:search') }} {{ $t('common:button:search') }}
@ -73,6 +88,7 @@ const searchDataDefault = () => {
FileUploadRecordId: '', FileUploadRecordId: '',
JobState: null, JobState: null,
FileName: '', FileName: '',
Path: '',
Asc: false, Asc: false,
SortField: '', SortField: '',
PageIndex: 1, PageIndex: 1,
@ -87,6 +103,10 @@ export default {
type: String, type: String,
default: '', default: '',
}, },
path: {
type: String,
default: '',
},
rowInfo: { rowInfo: {
type: Object, type: Object,
required: true, required: true,
@ -116,6 +136,7 @@ export default {
// }, // },
mounted() { mounted() {
this.$nextTick(()=>{ this.$nextTick(()=>{
this.searchData.Path = this.path
this.getList() this.getList()
}) })
}, },
@ -128,6 +149,7 @@ export default {
this.searchData.SubjectCode = this.rowInfo.SubjectCode this.searchData.SubjectCode = this.rowInfo.SubjectCode
this.searchData.VisitName = this.rowInfo.VisitName this.searchData.VisitName = this.rowInfo.VisitName
this.searchData.FileUploadRecordId = this.fileUploadRecordId this.searchData.FileUploadRecordId = this.fileUploadRecordId
this.searchData.Path = this.path
let res = await getUploadFileSyncRecordList(this.searchData) let res = await getUploadFileSyncRecordList(this.searchData)
this.loading = false this.loading = false
this.list = res.Result.CurrentPageData this.list = res.Result.CurrentPageData

View File

@ -118,6 +118,7 @@
v-if="detailDialog.activeTab === 'task'" v-if="detailDialog.activeTab === 'task'"
:rowInfo="detailDialog.currentRow" :rowInfo="detailDialog.currentRow"
:fileUploadRecordId="fileUploadRecordId" :fileUploadRecordId="fileUploadRecordId"
:path="path"
/> />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -173,7 +174,8 @@ export default {
label: 'US' label: 'US'
} }
], ],
fileUploadRecordId: '' fileUploadRecordId: '',
path: ''
} }
}, },
mounted() { mounted() {
@ -202,6 +204,7 @@ export default {
}, },
openTaskTable(row) { openTaskTable(row) {
this.fileUploadRecordId = row.Id this.fileUploadRecordId = row.Id
this.path = row.Path
this.detailDialog.activeTab = 'task' this.detailDialog.activeTab = 'task'
}, },
@ -209,6 +212,7 @@ export default {
const name = tab.name const name = tab.name
if (name === 'file') { if (name === 'file') {
this.fileUploadRecordId = '' this.fileUploadRecordId = ''
this.path = ''
} }
// if (name !== 'upload' && name !== 'sync') return // if (name !== 'upload' && name !== 'sync') return
// if (this.detailDialog[name].list && this.detailDialog[name].list.length) return // if (this.detailDialog[name].list && this.detailDialog[name].list.length) return