任务级别列表更改
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
6321bddfd3
commit
769c5f8440
|
|
@ -2,10 +2,25 @@
|
|||
<BaseContainer>
|
||||
<template slot="search-container">
|
||||
<el-form :inline="true">
|
||||
|
||||
<!-- 文件名称 -->
|
||||
<el-form-item label="文件名称" prop="FileName">
|
||||
<el-input v-model="searchData.FileName" size="small" clearable style="width: 120px" />
|
||||
</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-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
|
|
@ -73,6 +88,7 @@ const searchDataDefault = () => {
|
|||
FileUploadRecordId: '',
|
||||
JobState: null,
|
||||
FileName: '',
|
||||
Path: '',
|
||||
Asc: false,
|
||||
SortField: '',
|
||||
PageIndex: 1,
|
||||
|
|
@ -87,6 +103,10 @@ export default {
|
|||
type: String,
|
||||
default: '',
|
||||
},
|
||||
path: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
rowInfo: {
|
||||
type: Object,
|
||||
required: true,
|
||||
|
|
@ -116,6 +136,7 @@ export default {
|
|||
// },
|
||||
mounted() {
|
||||
this.$nextTick(()=>{
|
||||
this.searchData.Path = this.path
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
|
|
@ -128,6 +149,7 @@ export default {
|
|||
this.searchData.SubjectCode = this.rowInfo.SubjectCode
|
||||
this.searchData.VisitName = this.rowInfo.VisitName
|
||||
this.searchData.FileUploadRecordId = this.fileUploadRecordId
|
||||
this.searchData.Path = this.path
|
||||
let res = await getUploadFileSyncRecordList(this.searchData)
|
||||
this.loading = false
|
||||
this.list = res.Result.CurrentPageData
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@
|
|||
v-if="detailDialog.activeTab === 'task'"
|
||||
:rowInfo="detailDialog.currentRow"
|
||||
:fileUploadRecordId="fileUploadRecordId"
|
||||
:path="path"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
|
|
@ -173,7 +174,8 @@ export default {
|
|||
label: 'US'
|
||||
}
|
||||
],
|
||||
fileUploadRecordId: ''
|
||||
fileUploadRecordId: '',
|
||||
path: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -202,6 +204,7 @@ export default {
|
|||
},
|
||||
openTaskTable(row) {
|
||||
this.fileUploadRecordId = row.Id
|
||||
this.path = row.Path
|
||||
this.detailDialog.activeTab = 'task'
|
||||
|
||||
},
|
||||
|
|
@ -209,6 +212,7 @@ export default {
|
|||
const name = tab.name
|
||||
if (name === 'file') {
|
||||
this.fileUploadRecordId = ''
|
||||
this.path = ''
|
||||
}
|
||||
// if (name !== 'upload' && name !== 'sync') return
|
||||
// if (this.detailDialog[name].list && this.detailDialog[name].list.length) return
|
||||
|
|
|
|||
Loading…
Reference in New Issue